From 71214ea259ee62e3484b1ca6ff516a6c2a66fdc2 Mon Sep 17 00:00:00 2001 From: "Hoang M. Le" Date: Thu, 27 Oct 2016 17:50:13 +0200 Subject: update comments --- lib/Solver/MetaSMTSolver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/Solver/MetaSMTSolver.cpp b/lib/Solver/MetaSMTSolver.cpp index 2dec1873..a34e26d0 100644 --- a/lib/Solver/MetaSMTSolver.cpp +++ b/lib/Solver/MetaSMTSolver.cpp @@ -281,6 +281,7 @@ MetaSMTSolverImpl::runAndGetCexForked( ::alarm(std::max(1, (int)timeout)); } + // assert constraints as we are in a child process for (ConstraintManager::const_iterator it = query.constraints.begin(), ie = query.constraints.end(); it != ie; ++it) { @@ -288,9 +289,8 @@ MetaSMTSolverImpl::runAndGetCexForked( // assumption(_meta_solver, _builder->construct(*it)); } - // assume the negation of the query - // can be also asserted instead of assumed as we are in a child process - assumption(_meta_solver, + // asssert the negation of the query as we are in a child process + assertion(_meta_solver, _builder->construct(Expr::createIsZero(query.expr))); unsigned res = solve(_meta_solver); -- cgit 1.4.1