@@ -25,25 +25,25 @@ bvt boolbvt::convert_mod(const mod_exprt &expr)
25
25
std::size_t width=boolbv_width (expr.type ());
26
26
27
27
DATA_INVARIANT (
28
- expr.op0 ().type ().id () == expr.type ().id (),
29
- " type of the first operand of a modulo operation shall equal the "
28
+ expr.dividend ().type ().id () == expr.type ().id (),
29
+ " type of the dividend of a modulo operation shall equal the "
30
30
" expression type" );
31
31
32
32
DATA_INVARIANT (
33
- expr.op1 ().type ().id () == expr.type ().id (),
34
- " type of the second operand of a modulo operation shall equal the "
33
+ expr.divisor ().type ().id () == expr.type ().id (),
34
+ " type of the divisor of a modulo operation shall equal the "
35
35
" expression type" );
36
36
37
37
bv_utilst::representationt rep=
38
38
expr.type ().id ()==ID_signedbv?bv_utilst::representationt::SIGNED:
39
39
bv_utilst::representationt::UNSIGNED;
40
40
41
- const bvt &op0 = convert_bv (expr.op0 (), width);
42
- const bvt &op1 = convert_bv (expr.op1 (), width);
41
+ const bvt ÷nd_bv = convert_bv (expr.dividend (), width);
42
+ const bvt &divisor_bv = convert_bv (expr.divisor (), width);
43
43
44
44
bvt res, rem;
45
45
46
- bv_utils.divider (op0, op1 , res, rem, rep);
46
+ bv_utils.divider (dividend_bv, divisor_bv , res, rem, rep);
47
47
48
48
return rem;
49
49
}
0 commit comments