diff options
| author | Alasdair Armstrong | 2019-02-06 15:26:32 +0000 |
|---|---|---|
| committer | Alasdair Armstrong | 2019-02-06 15:26:32 +0000 |
| commit | 55f65f92812a6927d5661c2c25a09051630334b3 (patch) | |
| tree | b82c48bddd3592854ac133be85a0e7dda22abd3e /lib/flow.sail | |
| parent | 0f736fcb7fd46d902dffa171d1458253b2070b79 (diff) | |
Fix some tests
Diffstat (limited to 'lib/flow.sail')
| -rw-r--r-- | lib/flow.sail | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/flow.sail b/lib/flow.sail index cb77f5b1..e6fe7fc0 100644 --- a/lib/flow.sail +++ b/lib/flow.sail @@ -50,4 +50,15 @@ overload operator < = {lt_int} overload operator >= = {gteq_int} overload operator > = {gt_int} +/* + +when we have sizeof('n) where x : int('n), we can remove that sizeof +by rewriting it to __size(x). + +*/ + +function __id forall 'n. (x: int('n)) -> int('n) = x + +overload __size = {__id} + $endif |
