diff options
author | Martin Nowack <martin.nowack@gmail.com> | 2015-08-09 23:39:55 +0200 |
---|---|---|
committer | Dan Liew <daniel.liew@imperial.ac.uk> | 2015-12-17 19:30:14 +0000 |
commit | 8331998f8232db61e960863936ac27b36a147507 (patch) | |
tree | 991e4b856fac8b775f737cc49a247db80a26b5d4 | |
parent | c7e5ed32a3cb869d63fbb3f98b55035cbc4bbcf7 (diff) | |
download | klee-8331998f8232db61e960863936ac27b36a147507.tar.gz |
Report fatal error in case CexCache Bindings do not match
-rw-r--r-- | lib/Solver/CexCachingSolver.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Solver/CexCachingSolver.cpp b/lib/Solver/CexCachingSolver.cpp index 8b626c04..fb07a6ec 100644 --- a/lib/Solver/CexCachingSolver.cpp +++ b/lib/Solver/CexCachingSolver.cpp @@ -240,7 +240,11 @@ bool CexCachingSolver::getAssignment(const Query& query, Assignment *&result) { } if (DebugCexCacheCheckBinding) - assert(binding->satisfies(key.begin(), key.end())); + if (!binding->satisfies(key.begin(), key.end())) { + query.dump(); + binding->dump(); + klee_error("Generated assignment doesn't match query"); + } } else { binding = (Assignment*) 0; } |