diff options
| author | Alasdair Armstrong | 2019-05-28 17:13:44 +0100 |
|---|---|---|
| committer | Alasdair Armstrong | 2019-05-28 17:13:44 +0100 |
| commit | 5f3e0d30ad5906e343094e46eed9ed1456b30c9a (patch) | |
| tree | 51009725373cf70d4bf2859c6a0452962816a01c /test/smt/minmax_2.sat.sail | |
| parent | c8665edc57e755d4151c2af092a1058def5bf0ca (diff) | |
SMT: Add min and max functions
Allow conversion between int(n) and int in smt_conversion
Diffstat (limited to 'test/smt/minmax_2.sat.sail')
| -rw-r--r-- | test/smt/minmax_2.sat.sail | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/smt/minmax_2.sat.sail b/test/smt/minmax_2.sat.sail new file mode 100644 index 00000000..dd773058 --- /dev/null +++ b/test/smt/minmax_2.sat.sail @@ -0,0 +1,12 @@ + +val operator == = "eq_int" : (int, int) -> bool + +val "max_int" : (int, int) -> int + +val "min_int" : (int, int) -> int + +$counterexample +function prop(a: int, b: int) -> bool = { + assert(max_int(a, b) == min_int(a, b)); + true +} |
