diff options
| author | Brian Campbell | 2018-06-22 15:23:42 +0100 |
|---|---|---|
| committer | Brian Campbell | 2018-06-22 15:28:20 +0100 |
| commit | 9053c13aa70a9d27cd308660b71d62623db34f50 (patch) | |
| tree | ce1b8d58106582d5b5b07ad94a5d790c32e2e0a0 /lib/smt.sail | |
| parent | 877d9fbfc44ebbdb0dee62c71d15d0055e811dee (diff) | |
Add coq builtins for MIPS
Diffstat (limited to 'lib/smt.sail')
| -rw-r--r-- | lib/smt.sail | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/smt.sail b/lib/smt.sail index c9312819..efcbe48c 100644 --- a/lib/smt.sail +++ b/lib/smt.sail @@ -7,7 +7,8 @@ val div = { smt: "div", ocaml: "quotient", lem: "integerDiv", - c: "tdiv_int" + c: "tdiv_int", + coq: "div_with_eq" } : forall 'n 'm. (atom('n), atom('m)) -> {'o, 'o = div('n, 'm). atom('o)} overload operator / = {div} @@ -16,7 +17,8 @@ val mod = { smt: "mod", ocaml: "modulus", lem: "integerMod", - c: "tmod_int" + c: "tmod_int", + coq: "mod_with_eq" } : forall 'n 'm. (atom('n), atom('m)) -> {'o, 'o = mod('n, 'm). atom('o)} overload operator % = {mod} @@ -25,7 +27,8 @@ val abs_atom = { smt : "abs", ocaml: "abs_int", lem: "abs_int", - c: "abs_int" + c: "abs_int", + coq: "abs_with_eq" } : forall 'n. atom('n) -> {'o, 'o = abs_atom('n). atom('o)} $ifdef TEST |
