Skip to content

Commit 5e3ab01

Browse files
authored
More strictly constraining wildcards in MCE (#829)
1 parent b1c2311 commit 5e3ab01

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/scala/rules/MoreCompleteExhaleSupporter.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ object moreCompleteExhaleSupporter extends SymbolicExecutionRules {
360360

361361
val constraint = And(IsValidPermVar(permTaken),
362362
PermAtMost(permTaken, ch.perm),
363-
Implies(Not(eq), permTaken === NoPerm)
363+
Implies(Not(eq), permTaken === NoPerm),
364+
Implies(And(eq, IsPositive(ch.perm)), PermLess(permTaken, ch.perm))
364365
)
365366

366367
v.decider.assume(constraint)

0 commit comments

Comments
 (0)