From a1b73df93e5a2fac4a7ac87fb1753c4eb518c8c0 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Wed, 27 Mar 2019 11:33:07 +0000 Subject: Separate constraint set and constraint manager --- lib/Core/Executor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/Core/Executor.cpp') diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index af376755..39de6e8d 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -1252,7 +1252,7 @@ ref Executor::toConstant(ExecutionState &state, ref e, const char *reason) { - e = state.constraints.simplifyExpr(e); + e = ConstraintManager::simplifyExpr(state.constraints, e); if (ConstantExpr *CE = dyn_cast(e)) return CE; @@ -1280,7 +1280,7 @@ Executor::toConstant(ExecutionState &state, void Executor::executeGetValue(ExecutionState &state, ref e, KInstruction *target) { - e = state.constraints.simplifyExpr(e); + e = ConstraintManager::simplifyExpr(state.constraints, e); std::map< ExecutionState*, std::vector >::iterator it = seedMap.find(&state); if (it==seedMap.end() || isa(e)) { @@ -3651,9 +3651,9 @@ void Executor::executeMemoryOperation(ExecutionState &state, if (SimplifySymIndices) { if (!isa(address)) - address = state.constraints.simplifyExpr(address); + address = ConstraintManager::simplifyExpr(state.constraints, address); if (isWrite && !isa(value)) - value = state.constraints.simplifyExpr(value); + value = ConstraintManager::simplifyExpr(state.constraints, value); } address = optimizer.optimizeExpr(address, true); -- cgit 1.4.1