Skip to content

Small simplifier improvements#863

Merged
marcoeilers merged 2 commits into
masterfrom
meilers_simplifier_improvements
May 15, 2025
Merged

Small simplifier improvements#863
marcoeilers merged 2 commits into
masterfrom
meilers_simplifier_improvements

Conversation

@marcoeilers

Copy link
Copy Markdown
Contributor
  • Added utility method Expressions.isKnownWellDefined to check whether some expression is statically known to be well-defined more efficiently than by explicitly computing Expressions.proofObligations; additionally, the new method does not require to be given the current program (which is used to look up function preconditions), whereas the existing one does.
  • Modified the Simplifier s.t. it performs simplifications that might in general make a non-well-defined expression well-defined in cases where it can statically show that the original expression is well-defined.
  • Added a couple of cases for conditionals to the Simplifier.

…nedness, added a couple of cases to simplifier
Comment thread src/main/scala/viper/silver/ast/utility/Simplifier.scala
@marcoeilers marcoeilers merged commit d59b51a into master May 15, 2025
5 checks passed
@marcoeilers marcoeilers deleted the meilers_simplifier_improvements branch May 15, 2025 08:41
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