From 88e1e0f90eda8c562f5dcf5eaafc45cf2de3522f Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Thu, 6 Sep 2018 11:29:25 +0100 Subject: Unify the error message if that function has not been found. --- lib/Module/KModule.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Module/KModule.cpp') diff --git a/lib/Module/KModule.cpp b/lib/Module/KModule.cpp index 07f3572e..49a1ba69 100644 --- a/lib/Module/KModule.cpp +++ b/lib/Module/KModule.cpp @@ -153,7 +153,8 @@ injectStaticConstructorsAndDestructors(Module *m, Function *mainFn = m->getFunction(entryFunction); if (!mainFn) - klee_error("Could not find main() function."); + klee_error("Entry function '%s' not found in module.", + entryFunction.str().c_str()); if (ctors) { #if LLVM_VERSION_CODE >= LLVM_VERSION(3, 8) -- cgit 1.4.1