diff options
author | Cristian Cadar <cristic@cs.stanford.edu> | 2009-07-10 04:15:25 +0000 |
---|---|---|
committer | Cristian Cadar <cristic@cs.stanford.edu> | 2009-07-10 04:15:25 +0000 |
commit | 7300bfbc2d0df000cd9ce3090eb6716c3be9f98d (patch) | |
tree | bad751cdf18a8e48ad7125d5d30148a9555a47c7 /lib/Core | |
parent | 65319873a052826cbea5198815316f676bb86a84 (diff) | |
download | klee-7300bfbc2d0df000cd9ce3090eb6716c3be9f98d.tar.gz |
Replaced createNot() by createIsZero() and "Not" macro by "Nz".
Not will become bitwise not. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@75224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Core')
-rw-r--r-- | lib/Core/Executor.cpp | 12 | ||||
-rw-r--r-- | lib/Core/TimingSolver.cpp | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index 79b2040b..62f033be 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -728,7 +728,7 @@ Executor::fork(ExecutionState ¤t, ref<Expr> condition, bool isInternal) { addConstraint(current, condition); } else { res = Solver::False; - addConstraint(current, Expr::createNot(condition)); + addConstraint(current, Expr::createIsZero(condition)); } } } else if (res==Solver::Unknown) { @@ -753,7 +753,7 @@ Executor::fork(ExecutionState ¤t, ref<Expr> condition, bool isInternal) { addConstraint(current, condition); res = Solver::True; } else { - addConstraint(current, Expr::createNot(condition)); + addConstraint(current, Expr::createIsZero(condition)); res = Solver::False; } } @@ -786,7 +786,7 @@ Executor::fork(ExecutionState ¤t, ref<Expr> condition, bool isInternal) { assert(trueSeed || falseSeed); res = trueSeed ? Solver::True : Solver::False; - addConstraint(current, trueSeed ? condition : Expr::createNot(condition)); + addConstraint(current, trueSeed ? condition : Expr::createIsZero(condition)); } } @@ -880,7 +880,7 @@ Executor::fork(ExecutionState ¤t, ref<Expr> condition, bool isInternal) { } addConstraint(*trueState, condition); - addConstraint(*falseState, Expr::createNot(condition)); + addConstraint(*falseState, Expr::createIsZero(condition)); // Kinda gross, do we even really still want this option? if (MaxDepth && MaxDepth<=trueState->depth) { @@ -1389,7 +1389,7 @@ void Executor::executeInstruction(ExecutionState &state, KInstruction *ki) { for (unsigned i=1; i<cases; ++i) { ref<Expr> value = evalConstant(si->getCaseValue(i)); ref<Expr> match = EqExpr::create(cond, value); - isDefault = AndExpr::create(isDefault, Expr::createNot(match)); + isDefault = AndExpr::create(isDefault, Expr::createIsZero(match)); bool result; bool success = solver->mayBeTrue(state, match, result); assert(success && "FIXME: Unhandled solver failure"); @@ -3119,7 +3119,7 @@ bool Executor::getSymbolicSolution(const ExecutionState &state, mo->cexPreferences.begin(), pie = mo->cexPreferences.end(); for (; pi != pie; ++pi) { bool mustBeTrue; - bool success = solver->mustBeTrue(tmp, Expr::createNot(*pi), + bool success = solver->mustBeTrue(tmp, Expr::createIsZero(*pi), mustBeTrue); if (!success) break; if (!mustBeTrue) tmp.addConstraint(*pi); diff --git a/lib/Core/TimingSolver.cpp b/lib/Core/TimingSolver.cpp index 0154ddcf..542a3c8e 100644 --- a/lib/Core/TimingSolver.cpp +++ b/lib/Core/TimingSolver.cpp @@ -72,7 +72,7 @@ bool TimingSolver::mustBeTrue(const ExecutionState& state, ref<Expr> expr, bool TimingSolver::mustBeFalse(const ExecutionState& state, ref<Expr> expr, bool &result) { - return mustBeTrue(state, Expr::createNot(expr), result); + return mustBeTrue(state, Expr::createIsZero(expr), result); } bool TimingSolver::mayBeTrue(const ExecutionState& state, ref<Expr> expr, |