about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2020-12-22 21:01:44 +0000
committerMartinNowack <2443641+MartinNowack@users.noreply.github.com>2021-04-20 11:42:23 +0100
commit126387bc7921e892d4a5b75a8874242527cc8111 (patch)
tree9640019296e66b72d8b7bfadd9e1ca2336f2badc /lib
parentc8ef08267fd5e67f40defac1ae692e8ec906fa3f (diff)
downloadklee-126387bc7921e892d4a5b75a8874242527cc8111.tar.gz
Added a warning when forking is skipped due to MaxStatic*Pct limits being reached
Diffstat (limited to 'lib')
-rw-r--r--lib/Core/Executor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp
index cc3ac50f..7bfc0dac 100644
--- a/lib/Core/Executor.cpp
+++ b/lib/Core/Executor.cpp
@@ -1003,6 +1003,13 @@ ref<Expr> Executor::maxStaticPctChecks(ExecutionState &current,
                                     current.queryMetaData);
     assert(success && "FIXME: Unhandled solver failure");
     (void)success;
+
+    std::string msg("skipping fork and concretizing condition (MaxStatic*Pct "
+                    "limit reached) at ");
+    llvm::raw_string_ostream os(msg);
+    os << current.prevPC->getSourceLocation();
+    klee_warning_once(0, "%s", os.str().c_str());
+
     addConstraint(current, EqExpr::create(value, condition));
     condition = value;
   }