about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2016-07-31 18:11:54 +0100
committerGitHub <noreply@github.com>2016-07-31 18:11:54 +0100
commit21749dee2b14b56d4b2d0330046a9007552d577f (patch)
tree39758f99f65880ead77655e66171113208443d80 /lib
parent66adc6374cc9b43db2beccec9ae0a547dc411eae (diff)
parent2cdbb892e93c3a6556fc4eb989ccd7cab8bfdb63 (diff)
downloadklee-21749dee2b14b56d4b2d0330046a9007552d577f.tar.gz
Merge pull request #422 from ccadar/div-zero-test
Added test case exposing division by zero failure reported by @kren1 and made division total in STP to fix it.
Diffstat (limited to 'lib')
-rw-r--r--lib/Solver/STPSolver.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Solver/STPSolver.cpp b/lib/Solver/STPSolver.cpp
index 5c49521e..f2500572 100644
--- a/lib/Solver/STPSolver.cpp
+++ b/lib/Solver/STPSolver.cpp
@@ -98,6 +98,8 @@ STPSolverImpl::STPSolverImpl(bool _useForkedSTP, bool _optimizeDivides)
   // we restore the old behaviour.
   vc_setInterfaceFlags(vc, EXPRDELETE, 0);
 
+  make_division_total(vc);
+
   vc_registerErrorHandler(::stp_error_handler);
 
   if (useForkedSTP) {