@@ -25,25 +25,25 @@ bvt boolbvt::convert_mod(const mod_exprt &expr)
2525 std::size_t width=boolbv_width (expr.type ());
2626
2727 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 "
3030 " expression type" );
3131
3232 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 "
3535 " expression type" );
3636
3737 bv_utilst::representationt rep=
3838 expr.type ().id ()==ID_signedbv?bv_utilst::representationt::SIGNED:
3939 bv_utilst::representationt::UNSIGNED;
4040
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);
4343
4444 bvt res, rem;
4545
46- bv_utils.divider (op0, op1 , res, rem, rep);
46+ bv_utils.divider (dividend_bv, divisor_bv , res, rem, rep);
4747
4848 return rem;
4949}
0 commit comments