summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrian Campbell2019-04-16 17:12:13 +0100
committerBrian Campbell2019-04-16 17:47:36 +0100
commit09036008ccf88ab897abf03e227b393541580bed (patch)
tree036541fee507d80c82e4088f05aa1026354fdcdc /lib
parent41d2b4fec5e904b6a1d336ceed0adf4474d90279 (diff)
Coq: tdiv builtins
Diffstat (limited to 'lib')
-rw-r--r--lib/arith.sail6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/arith.sail b/lib/arith.sail
index af814c81..1950080a 100644
--- a/lib/arith.sail
+++ b/lib/arith.sail
@@ -83,7 +83,8 @@ val tdiv_int = {
ocaml: "tdiv_int",
interpreter: "tdiv_int",
lem: "integerDiv_t",
- c: "tdiv_int"
+ c: "tdiv_int",
+ coq: "Z.quot"
} : (int, int) -> int
/*! Remainder for truncating division (has sign of dividend) */
@@ -91,7 +92,8 @@ val tmod_int = {
ocaml: "tmod_int",
interpreter: "tmod_int",
lem: "integerMod_t",
- c: "tmod_int"
+ c: "tmod_int",
+ coq: "Z.rem"
} : (int, int) -> nat
val abs_int = {