Skip to content

Commit b5b989d

Browse files
Rename variables in boolbv_if for easier legibility
1 parent 01a348c commit b5b989d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/solvers/flattening/boolbv_if.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ bvt boolbvt::convert_if(const if_exprt &expr)
1818

1919
literalt cond=convert(expr.cond());
2020

21-
const bvt &op1_bv=convert_bv(expr.true_case());
22-
const bvt &op2_bv=convert_bv(expr.false_case());
21+
const bvt &true_case_bv = convert_bv(expr.true_case());
22+
const bvt &false_case_bv = convert_bv(expr.false_case());
2323

24-
if(op1_bv.size()!=width || op2_bv.size()!=width)
24+
if(true_case_bv.size() != width || false_case_bv.size() != width)
2525
throw "operand size mismatch for if "+expr.pretty();
2626

27-
return bv_utils.select(cond, op1_bv, op2_bv);
27+
return bv_utils.select(cond, true_case_bv, false_case_bv);
2828
}

0 commit comments

Comments
 (0)