Skip to content

Commit

Permalink
Merge pull request viperproject#778 from viperproject/meilers_fix_777
Browse files Browse the repository at this point in the history
Using builtin equals for definitions
  • Loading branch information
marcoeilers authored Nov 24, 2023
2 parents 8fa723a + 525893c commit 37fbe36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/supporters/functions/FunctionData.scala
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class FunctionData(val programFunction: ast.Function,

val limitedAxiom =
Forall(arguments,
limitedFunctionApplication === functionApplication,
BuiltinEquals(limitedFunctionApplication, functionApplication),
Trigger(functionApplication))

val triggerAxiom =
Expand Down Expand Up @@ -258,7 +258,7 @@ class FunctionData(val programFunction: ast.Function,
optBody.map(translatedBody => {
val pre = preconditionFunctionApplication
val nestedDefinitionalAxioms = generateNestedDefinitionalAxioms
val body = And(nestedDefinitionalAxioms ++ List(Implies(pre, And(functionApplication === translatedBody))))
val body = And(nestedDefinitionalAxioms ++ List(Implies(pre, And(BuiltinEquals(functionApplication, translatedBody)))))
val funcAnn = programFunction.info.getUniqueInfo[ast.AnnotationInfo]
val actualPredicateTriggers = funcAnn match {
case Some(a) if a.values.contains("opaque") => Seq()
Expand Down

0 comments on commit 37fbe36

Please sign in to comment.