Correct handling of choose in verification.
- Choose expressions becomes uninterpreted functions under the same constraints. - Fix bug with variablesOf considering choose binders as free. - Silence evaluator errors when occuring with tentative lucky models. Note that choose expressions cannot be evaluated nor compiled.
Showing
- src/main/scala/leon/purescala/TreeOps.scala 1 addition, 0 deletionssrc/main/scala/leon/purescala/TreeOps.scala
- src/main/scala/leon/solvers/z3/FairZ3Solver.scala 8 additions, 4 deletionssrc/main/scala/leon/solvers/z3/FairZ3Solver.scala
- src/main/scala/leon/solvers/z3/FunctionTemplate.scala 12 additions, 1 deletionsrc/main/scala/leon/solvers/z3/FunctionTemplate.scala
- src/test/resources/regression/verification/purescala/invalid/Choose1.scala 39 additions, 0 deletions...s/regression/verification/purescala/invalid/Choose1.scala
- src/test/resources/regression/verification/purescala/valid/Choose1.scala 39 additions, 0 deletions...ces/regression/verification/purescala/valid/Choose1.scala
Please register or sign in to comment