Skip to content

Commit 41858de

Browse files
The branch node only needs to remember the positive condition.
use the sub-nodes of the branch to classify whether the execution is true or false
1 parent 8d81fbe commit 41858de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/wasm/StagedConcolicMiniWasm.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ trait StagedWasmEvaluator extends SAIOps {
228228
ExploreTree.fillWithIfElse(cond.s, true)
229229
eval(thn, restK _, mkont, restK _ :: trail)(newCtx)
230230
} else {
231-
ExploreTree.fillWithIfElse(cond.s.not, false)
231+
ExploreTree.fillWithIfElse(cond.s, false)
232232
eval(els, restK _, mkont, restK _ :: trail)(newCtx)
233233
}
234234
()
@@ -245,7 +245,7 @@ trait StagedWasmEvaluator extends SAIOps {
245245
trail(label)(newCtx)(mkont)
246246
} else {
247247
info(s"Continue")
248-
ExploreTree.fillWithIfElse(cond.s.not, false)
248+
ExploreTree.fillWithIfElse(cond.s, false)
249249
eval(rest, kont, mkont, trail)(newCtx)
250250
}
251251
()

0 commit comments

Comments
 (0)