Added powmod in utility and PowerMod in the sintax and semantics of MiniImp

This commit is contained in:
elvis
2024-10-07 14:13:28 +02:00
parent f40428251a
commit 27c82f6357
5 changed files with 19 additions and 2 deletions

View File

@ -28,6 +28,7 @@ and a_exp =
| Division of a_exp * a_exp (* a / a *)
| Modulo of a_exp * a_exp (* a % a *)
| Power of a_exp * a_exp (* a ^ a *)
| PowerMod of a_exp * a_exp * a_exp (* a ^ a % a *)
| Rand of a_exp (* rand(0, a) *)