diff --git a/src/main/scala/rules/MoreCompleteExhaleSupporter.scala b/src/main/scala/rules/MoreCompleteExhaleSupporter.scala index 25b36614..da9c1851 100644 --- a/src/main/scala/rules/MoreCompleteExhaleSupporter.scala +++ b/src/main/scala/rules/MoreCompleteExhaleSupporter.scala @@ -407,13 +407,13 @@ object moreCompleteExhaleSupporter extends SymbolicExecutionRules { }) } else { if (!moreNeeded) { - Q(s, newHeap, None, v) + Q(s0, newHeap, None, v) } else { v.decider.assert(pNeeded === NoPerm) { case true => - Q(s, newHeap, None, v) + Q(s0, newHeap, None, v) case false => - createFailure(ve, v, s, pNeeded === NoPerm, pNeededExp.map(pn => ast.EqCmp(pn, ast.NoPerm()())(pn.pos, pn.info, pn.errT))) + createFailure(ve, v, s0, pNeeded === NoPerm, pNeededExp.map(pn => ast.EqCmp(pn, ast.NoPerm()())(pn.pos, pn.info, pn.errT))) } } }