Skip to content

Commit d689a53

Browse files
committed
fix: Swap computation order of condition in isStuck
1 parent 5d59a91 commit d689a53

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Core/ExecutionState.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,9 +570,9 @@ class ExecutionState {
570570
}
571571

572572
inline bool isStuck(unsigned long long bound) const {
573-
if (depth == 0)
573+
if (depth == 0 || bound == 0)
574574
return false;
575-
return isSymbolicCycled(bound) && klee::util::ulog2(depth) > bound;
575+
return klee::util::ulog2(depth) > bound && isSymbolicCycled(bound);
576576
}
577577

578578
bool isCoveredNew() const {

0 commit comments

Comments
 (0)