diff options
author | Dan Liew <daniel.liew@imperial.ac.uk> | 2013-08-21 18:09:01 +0100 |
---|---|---|
committer | Dan Liew <daniel.liew@imperial.ac.uk> | 2013-08-21 18:09:01 +0100 |
commit | 61a555abd558f1429624af000ee126bd60837f56 (patch) | |
tree | cf9841afeda544aa3b96753e7ff6abfe1569e495 /unittests/Solver | |
parent | c4147c2ad9ba1e74642e1a3de31be8f4446cc7f3 (diff) | |
download | klee-61a555abd558f1429624af000ee126bd60837f56.tar.gz |
Remove unnecessary loop from SolverTest unit test.
Diffstat (limited to 'unittests/Solver')
-rw-r--r-- | unittests/Solver/SolverTest.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/unittests/Solver/SolverTest.cpp b/unittests/Solver/SolverTest.cpp index 3c9bf89a..94529d56 100644 --- a/unittests/Solver/SolverTest.cpp +++ b/unittests/Solver/SolverTest.cpp @@ -61,9 +61,7 @@ void testOperation(Solver &solver, // replaced value is appropriated constrained. for (unsigned kid = 0; kid < T::numKids; kid++) { std::vector<Expr::CreateArg> partiallyConstantArgs(symbolicArgs); - for (unsigned i = 0; i < T::numKids; i++) - if (i==kid) - partiallyConstantArgs[i] = getConstant(value, operandWidth); + partiallyConstantArgs[kid] = getConstant(value, operandWidth); ref<Expr> expr = NotOptimizedExpr::create(EqExpr::create(partiallyConstantArgs[kid].expr, |