Skip to content

Commit

Permalink
Continue simulation on SMT timeout in enabledness check (#2758)
Browse files Browse the repository at this point in the history
* Continue simulation on SMT timeout

* Update changelog
  • Loading branch information
thpani authored Oct 16, 2023
1 parent 5316435 commit c877256
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .unreleased/bug-fixes/2758-sim-timeout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Continue simulation on SMT timeout in enabledness check, see #2758
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,12 @@ class SeqModelChecker[ExecutorContextT](
logger.info(s"Step ${trex.stepNo}: Transition #$no is disabled")

case None =>
searchState.onResult(RuntimeError())
return (Set.empty, Set.empty) // UNKNOWN or timeout
if (params.isRandomSimulation) {
logger.info(s"Step ${trex.stepNo}: Transition #$no enabledness is UNKNOWN; assuming it is disabled")
} else {
searchState.onResult(RuntimeError())
return (Set.empty, Set.empty) // UNKNOWN or timeout
}
}
// recover from the snapshot
trex.recover(snapshot.get)
Expand Down

0 comments on commit c877256

Please sign in to comment.