Skip to content

Propagate Expressions#215

Open
rcosta358 wants to merge 3 commits intomainfrom
improve-simplification
Open

Propagate Expressions#215
rcosta358 wants to merge 3 commits intomainfrom
improve-simplification

Conversation

@rcosta358
Copy link
Copy Markdown
Collaborator

Description

This PR enables the propagation of assignments that contain expressions, instead of only constants or other variables.
For example, the assignment x == y + 1 now adds the mapping x → y + 1, allowing the RHS to be propagated wherever x appears.

Example

Before

Refinement Error: #ret³ == y² - 2 && y² == x + 1 is not a subtype of #ret³ > 0

After

Refinement Error: #ret³ == x - 1 is not a subtype of #ret³ > 0

Related Issue

None.

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Code refactoring

Checklist

  • Added tests in ExpressionSimplifierTest
  • mvn test passes locally
  • Updated docs/README if behavior or API changed

@rcosta358 rcosta358 requested a review from CatarinaGamboa May 9, 2026 21:44
@rcosta358 rcosta358 self-assigned this May 9, 2026
@rcosta358 rcosta358 added enhancement New feature or request simplification Related to the simplification of expressions labels May 9, 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.

1 participant