diff options
| author | Alasdair Armstrong | 2019-02-25 14:53:57 +0000 |
|---|---|---|
| committer | Alasdair Armstrong | 2019-02-25 14:53:57 +0000 |
| commit | 7fc5222ef8daa887eab8a7d178a459c0c84d45f6 (patch) | |
| tree | dabd9354b68f69a5ca0a23af817eb5edd67c33d2 /lib | |
| parent | baed6162b5f823a44fd1045c18714d4973d151e9 (diff) | |
Fix some builtins, and make mod_int return natural
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/arith.sail | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arith.sail b/lib/arith.sail index 8825ac2f..20231de1 100644 --- a/lib/arith.sail +++ b/lib/arith.sail @@ -94,7 +94,7 @@ val mod_int = { lem: "integerMod", c: "tmod_int", coq: "Z.rem" -} : (int, int) -> int +} : (int, int) -> nat overload operator % = {mod_int} @@ -104,6 +104,6 @@ val abs_int = { lem: "abs_int", c: "abs_int", coq: "Z.abs" -} : (int, int) -> int +} : int -> int $endif |
