about summary refs log tree commit diff homepage
path: root/tools
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2018-09-06 11:29:25 +0100
committerCristian Cadar <c.cadar@imperial.ac.uk>2018-09-10 15:24:17 +0100
commit88e1e0f90eda8c562f5dcf5eaafc45cf2de3522f (patch)
tree5c2e512ce315d158868c2c117296ed518a5fd0d7 /tools
parent83fcf1504597b2ee77276d287e70bd0ae8d201ec (diff)
downloadklee-88e1e0f90eda8c562f5dcf5eaafc45cf2de3522f.tar.gz
Unify the error message if that function has not been found.
Diffstat (limited to 'tools')
-rw-r--r--tools/klee/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp
index 0b22f5c1..77b1fe7c 100644
--- a/tools/klee/main.cpp
+++ b/tools/klee/main.cpp
@@ -639,7 +639,7 @@ preparePOSIX(std::vector<std::unique_ptr<llvm::Module>> &loadedModules,
   }
 
   if (!mainFn)
-    klee_error("'%s' function not found in module.", EntryPoint.c_str());
+    klee_error("Entry function '%s' not found in module.", EntryPoint.c_str());
   mainFn->setName("__klee_posix_wrapped_main");
 
   // Add a definition of the entry function if needed. This is the case if we
@@ -1278,7 +1278,7 @@ int main(int argc, char **argv, char **envp) {
   auto finalModule = interpreter->setModule(loadedModules, Opts);
   Function *mainFn = finalModule->getFunction(EntryPoint);
   if (!mainFn) {
-    klee_error("'%s' function not found in module.", EntryPoint.c_str());
+    klee_error("Entry function '%s' not found in module.", EntryPoint.c_str());
   }
 
   externalsAndGlobalsCheck(finalModule);