Skip to content

Commit 377538f

Browse files
committed
fix: Revert checkMemoryUsage logic
1 parent 349238f commit 377538f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/Core/Executor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4384,7 +4384,8 @@ Executor::MemoryUsage Executor::checkMemoryUsage() {
43844384
return Executor::None;
43854385
}
43864386

4387-
auto toKill = std::max(1UL, numStates - numStates * MaxMemory / totalUsage);
4387+
auto toKill =
4388+
std::max(1UL, numStates - numStates * MaxMemory / (2 * totalUsage));
43884389

43894390
if (toKill != 0) {
43904391
klee_warning("killing %lu states (total memory usage: %luMB)", toKill,

0 commit comments

Comments
 (0)