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

@ -10,7 +10,7 @@ let program =
)
;;
Printf.printf "%d\n" (reduce 100 program)
Printf.printf "%d\n" (reduce 1 program)
(* -------------------------------------------------------------------------- *)
(* y not defined program *)
@ -57,7 +57,7 @@ Printf.printf "%d\n" (reduce 10 program)
;;
(* -------------------------------------------------------------------------- *)
(* hailstone sequence lenght program *)
(* hailstone sequence's lenght program *)
let program =
Main
("a",