blob: 82184bf871bfd81678c7040714b997127b8eae34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
default Order dec
$include <prelude.sail>
$property
function prop(x: int, y: int(32), z: int) -> bool = {
let add_comm = x + y == y + x;
let add_assoc = (x + y) + z == x + (y + z);
let add_id = x + 0 == x;
add_comm & add_assoc & add_id
}
|