summaryrefslogtreecommitdiff
path: root/lib/flow.sail
diff options
context:
space:
mode:
authorAlasdair Armstrong2019-02-06 15:26:32 +0000
committerAlasdair Armstrong2019-02-06 15:26:32 +0000
commit55f65f92812a6927d5661c2c25a09051630334b3 (patch)
treeb82c48bddd3592854ac133be85a0e7dda22abd3e /lib/flow.sail
parent0f736fcb7fd46d902dffa171d1458253b2070b79 (diff)
Fix some tests
Diffstat (limited to 'lib/flow.sail')
-rw-r--r--lib/flow.sail11
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