From 61a555abd558f1429624af000ee126bd60837f56 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Wed, 21 Aug 2013 18:09:01 +0100 Subject: Remove unnecessary loop from SolverTest unit test. --- unittests/Solver/SolverTest.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'unittests/Solver') 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 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 = NotOptimizedExpr::create(EqExpr::create(partiallyConstantArgs[kid].expr, -- cgit 1.4.1