File tree 1 file changed +48
-0
lines changed
1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -1171,6 +1171,30 @@ class mod_exprt:public binary_exprt
1171
1171
: binary_exprt(std::move(_lhs), ID_mod, std::move(_rhs))
1172
1172
{
1173
1173
}
1174
+
1175
+ // / The dividend of a division is the number that is being divided
1176
+ exprt ÷nd ()
1177
+ {
1178
+ return op0 ();
1179
+ }
1180
+
1181
+ // / The dividend of a division is the number that is being divided
1182
+ const exprt ÷nd () const
1183
+ {
1184
+ return op0 ();
1185
+ }
1186
+
1187
+ // / The divisor of a division is the number the dividend is being divided by
1188
+ exprt &divisor ()
1189
+ {
1190
+ return op1 ();
1191
+ }
1192
+
1193
+ // / The divisor of a division is the number the dividend is being divided by
1194
+ const exprt &divisor () const
1195
+ {
1196
+ return op1 ();
1197
+ }
1174
1198
};
1175
1199
1176
1200
template <>
@@ -1215,6 +1239,30 @@ class euclidean_mod_exprt : public binary_exprt
1215
1239
: binary_exprt(std::move(_lhs), ID_euclidean_mod, std::move(_rhs))
1216
1240
{
1217
1241
}
1242
+
1243
+ // / The dividend of a division is the number that is being divided
1244
+ exprt ÷nd ()
1245
+ {
1246
+ return op0 ();
1247
+ }
1248
+
1249
+ // / The dividend of a division is the number that is being divided
1250
+ const exprt ÷nd () const
1251
+ {
1252
+ return op0 ();
1253
+ }
1254
+
1255
+ // / The divisor of a division is the number the dividend is being divided by
1256
+ exprt &divisor ()
1257
+ {
1258
+ return op1 ();
1259
+ }
1260
+
1261
+ // / The divisor of a division is the number the dividend is being divided by
1262
+ const exprt &divisor () const
1263
+ {
1264
+ return op1 ();
1265
+ }
1218
1266
};
1219
1267
1220
1268
template <>
You can’t perform that action at this time.
0 commit comments