Skip to content
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

WIP - rewrite_expr: simplify binary expressions whenever possible #699

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

Conversation

jussisaurio
Copy link
Collaborator

@jussisaurio jussisaurio commented Jan 15, 2025

🚫 Don't merge this yet, I think there's still bugs

Adds logic for, after other expression rewriting is done, to simplify any binary expressions that either were originally, or have become trivially true or false post-rewriting. it also rewrites things like x OR false to be just x

This came about during investigating the fix for #698, not essential at this stage but since i had sketched it out anyway, here it is.

@jussisaurio jussisaurio force-pushed the rewrite-expr-simply-binary-exprs branch from 039f858 to 903c11c Compare January 15, 2025 14:59
@penberg
Copy link
Collaborator

penberg commented Jan 15, 2025

@jussisaurio Merge conflict

@jussisaurio jussisaurio force-pushed the rewrite-expr-simply-binary-exprs branch from 903c11c to 0df158c Compare January 15, 2025 17:25
@jussisaurio jussisaurio changed the title rewrite_expr: simplify binary expressions whenever possible WIP - rewrite_expr: simplify binary expressions whenever possible Jan 16, 2025
@jussisaurio jussisaurio force-pushed the rewrite-expr-simply-binary-exprs branch from 0df158c to 5a9c602 Compare January 16, 2025 05:55
@jussisaurio jussisaurio force-pushed the rewrite-expr-simply-binary-exprs branch from 5a9c602 to a1d0c27 Compare January 16, 2025 05:57
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.

2 participants