Skip to content

Simplify If Expressions#183

Open
rcosta358 wants to merge 1 commit intomainfrom
simplify-ifs
Open

Simplify If Expressions#183
rcosta358 wants to merge 1 commit intomainfrom
simplify-ifs

Conversation

@rcosta358
Copy link
Collaborator

Closes #158. Simplifies if expressions and tracks the simplifications by introducing a new IteDerivationNode.
The simplification follows three simple rules:

  • true ? a : ba
  • false ? a : bb
  • cond ? b : bb

@rcosta358 rcosta358 self-assigned this Mar 18, 2026
@rcosta358 rcosta358 added enhancement New feature or request simplification Related to the simplification of expressions labels Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request simplification Related to the simplification of expressions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify if expressions

1 participant