Skip to content

Commit 4c7f9fc

Browse files
authored
Merge pull request #3803 from tautschnig/vs-shadow-bv
Do not shadow "bv" [blocks: #2310]
2 parents ef3eba3 + 1db7c02 commit 4c7f9fc

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/solvers/flattening/bv_pointers.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,9 @@ bvt bv_pointerst::convert_pointer_type(const exprt &expr)
362362
if(it->type().id()!=ID_unsignedbv &&
363363
it->type().id()!=ID_signedbv)
364364
{
365-
bvt bv;
366-
conversion_failed(plus_expr, bv);
367-
return bv;
365+
bvt failed_bv;
366+
conversion_failed(plus_expr, failed_bv);
367+
return failed_bv;
368368
}
369369

370370
bv_utilst::representationt rep=
@@ -398,8 +398,6 @@ bvt bv_pointerst::convert_pointer_type(const exprt &expr)
398398
minus_expr.op0().type().id() == ID_pointer,
399399
"first operand should be of pointer type");
400400

401-
bvt bv;
402-
403401
if(
404402
minus_expr.op1().type().id() != ID_unsignedbv &&
405403
minus_expr.op1().type().id() != ID_signedbv)
@@ -411,7 +409,7 @@ bvt bv_pointerst::convert_pointer_type(const exprt &expr)
411409

412410
const unary_minus_exprt neg_op1(minus_expr.op1());
413411

414-
bv = convert_bv(minus_expr.op0());
412+
bvt bv = convert_bv(minus_expr.op0());
415413

416414
typet pointer_sub_type = minus_expr.op0().type().subtype();
417415
mp_integer element_size;

0 commit comments

Comments
 (0)