about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2015-03-12 15:53:19 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2015-03-12 15:53:19 +0000
commitd9b5b92cb1627edce7d476f8fd4328f5ee6f3bc8 (patch)
treedb49951f03abdf86e0bd08c13062f0746a46950d /lib
parent93b5671574cb1922e13ead59493dcc185e9c626d (diff)
parent591585d86a8755ed57620d9f00ffd667f2df286c (diff)
downloadklee-d9b5b92cb1627edce7d476f8fd4328f5ee6f3bc8.tar.gz
Merge pull request #212 from MartinNowack/killing_states_warning
[Core] Always warn if states get deleted due to memory limits
Diffstat (limited to 'lib')
-rw-r--r--lib/Core/Executor.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp
index c78c9f8a..45876659 100644
--- a/lib/Core/Executor.cpp
+++ b/lib/Core/Executor.cpp
@@ -2592,9 +2592,7 @@ void Executor::run(ExecutionState &initialState) {
             unsigned numStates = states.size();
             unsigned toKill = std::max(1U, numStates - numStates*MaxMemory/mbs);
 
-            if (MaxMemoryInhibit)
-              klee_warning("killing %d states (over memory cap)",
-                           toKill);
+            klee_warning("killing %d states (over memory cap)", toKill);
 
             std::vector<ExecutionState*> arr(states.begin(), states.end());
             for (unsigned i=0,N=arr.size(); N && i<toKill; ++i,--N) {