Skip to content

Commit

Permalink
More strictly constraining wildcards in MCE (viperproject#829)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoeilers authored Mar 29, 2024
1 parent b1c2311 commit 5e3ab01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/rules/MoreCompleteExhaleSupporter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ object moreCompleteExhaleSupporter extends SymbolicExecutionRules {

val constraint = And(IsValidPermVar(permTaken),
PermAtMost(permTaken, ch.perm),
Implies(Not(eq), permTaken === NoPerm)
Implies(Not(eq), permTaken === NoPerm),
Implies(And(eq, IsPositive(ch.perm)), PermLess(permTaken, ch.perm))
)

v.decider.assume(constraint)
Expand Down

0 comments on commit 5e3ab01

Please sign in to comment.