From 8331998f8232db61e960863936ac27b36a147507 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Sun, 9 Aug 2015 23:39:55 +0200 Subject: Report fatal error in case CexCache Bindings do not match --- lib/Solver/CexCachingSolver.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') 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; } -- cgit 1.4.1