Skip to content

Commit

Permalink
Merge pull request klee#20 from delcypher/remove_pointless_loop
Browse files Browse the repository at this point in the history
Remove unnecessary loop from SolverTest unit test.
  • Loading branch information
ccadar committed Aug 30, 2013
2 parents 8cc2105 + 61a555a commit 0efeb6c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions unittests/Solver/SolverTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0efeb6c

Please sign in to comment.