Skip to content

Commit

Permalink
Resetting heap instead of throwing away entire state after checking a…
Browse files Browse the repository at this point in the history
…ssertion
  • Loading branch information
marcoeilers committed Oct 4, 2024
1 parent 562b9fe commit 52f94d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/scala/rules/Evaluator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1030,8 +1030,9 @@ object evaluator extends EvaluationRules {
=> Q(s4, r4._1, r4._2, v4))

case ast.Asserting(eAss, eIn) =>
consume(s, eAss, pve, v)((_, _, _) => {
eval(s, eIn, pve, v)(Q)
consume(s, eAss, pve, v)((s2, _, v2) => {
val s3 = s2.copy(g = s.g, h = s.h)
eval(s3, eIn, pve, v2)(Q)
})

/* Sequences */
Expand Down

0 comments on commit 52f94d2

Please sign in to comment.