Skip to content

Avoid list concatenation when collecting all paths in flattenExpr #735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blishko
Copy link
Collaborator

@blishko blishko commented May 7, 2025

Description

Instead of concatenating branches from true and false cases of ITE, we use the accumulator to accumulate the branches.
Since we are prepending, we traverse the false case first, so that in the accumulator, the paths from true case will end up before the branches from the false case.

Checklist

  • tested locally
  • added automated tests
  • updated the docs
  • updated the changelog

Instead of concatenating branches from true and false cases of ITE, we
use the accumulator to accumulate the branches.
Since we are prepending, we traverse the false case first, so that in
the accumulator, the paths from true case will end up before the
branches from the false case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant