Skip to content

Simplify If Expressions#183

Merged
rcosta358 merged 2 commits intomainfrom
simplify-ifs
Mar 28, 2026
Merged

Simplify If Expressions#183
rcosta358 merged 2 commits intomainfrom
simplify-ifs

Conversation

@rcosta358
Copy link
Copy Markdown
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
Copy link
Copy Markdown
Collaborator

@CatarinaGamboa CatarinaGamboa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great!

@rcosta358 rcosta358 merged commit 9e339f2 into main Mar 28, 2026
1 check passed
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

2 participants