diff options
| author | Alasdair Armstrong | 2019-05-14 15:46:10 +0100 |
|---|---|---|
| committer | Alasdair Armstrong | 2019-05-14 15:46:10 +0100 |
| commit | 9d6734f717639f9babdec4441f8362bfeca10d66 (patch) | |
| tree | 91080afb376c38328de7262352f7c3217bc22719 /src/value.ml | |
| parent | 63d7f669f3d292315e4a353115284358ba7d5627 (diff) | |
| parent | f6cc45f2788dc777d1fa35aa9a216de994992288 (diff) | |
Merge branch 'smt_experiments' into sail2
Diffstat (limited to 'src/value.ml')
| -rw-r--r-- | src/value.ml | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/value.ml b/src/value.ml index 2760b220..6c2e0839 100644 --- a/src/value.ml +++ b/src/value.ml @@ -350,11 +350,8 @@ let value_sub_int = function | _ -> failwith "value sub" let value_sub_nat = function - | [v1; v2] -> V_int ( - let n = Sail_lib.sub_int (coerce_int v1, coerce_int v2) in - if Big_int.less_equal n Big_int.zero then Big_int.zero else n - ) - | _ -> failwith "value sub_int" + | [v1; v2] -> V_int (Sail_lib.sub_nat (coerce_int v1, coerce_int v2)) + | _ -> failwith "value sub_nat" let value_negate = function | [v1] -> V_int (Sail_lib.negate (coerce_int v1)) |
