diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-10 05:10:00 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-10 05:10:00 +0000 |
commit | ab35f2e9941f250ca3a36454487c5a07b38dfbf6 (patch) | |
tree | eb2992009ef7d09b2a4d6df27dbe581b8a88de94 /lib/Solver | |
parent | 91099032ed67a46c257d1a538a5474fad90abb21 (diff) | |
download | klee-ab35f2e9941f250ca3a36454487c5a07b38dfbf6.tar.gz |
Fix a bug in the logging solver which was printing the expression in a
getInitialValues query in the wrong place. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Solver')
-rw-r--r-- | lib/Solver/PCLoggingSolver.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/Solver/PCLoggingSolver.cpp b/lib/Solver/PCLoggingSolver.cpp index 03146251..e7128982 100644 --- a/lib/Solver/PCLoggingSolver.cpp +++ b/lib/Solver/PCLoggingSolver.cpp @@ -103,17 +103,12 @@ public: const std::vector<const Array*> &objects, std::vector< std::vector<unsigned char> > &values, bool &hasSolution) { - const ref<Expr> *evalExprBegin = 0, *evalExprEnd = 0; - if (!query.expr->isFalse()) { - evalExprBegin = &query.expr; - evalExprEnd = evalExprBegin + 1; - } if (objects.empty()) { - startQuery(query.withFalse(), "InitialValues", - evalExprBegin, evalExprEnd); + startQuery(query, "InitialValues", + 0, 0); } else { - startQuery(query.withFalse(), "InitialValues", - evalExprBegin, evalExprEnd, + startQuery(query, "InitialValues", + 0, 0, &objects[0], &objects[0] + objects.size()); } bool success = solver->impl->computeInitialValues(query, objects, |