diff options
author | Unknown <qadeer@FAIZ-AHMED-FAIZ.redmond.corp.microsoft.com> | 2013-02-13 13:19:38 -0800 |
---|---|---|
committer | Unknown <qadeer@FAIZ-AHMED-FAIZ.redmond.corp.microsoft.com> | 2013-02-13 13:19:38 -0800 |
commit | 6204a4510168dbcd95a0e9e0ec255fb58bb44d87 (patch) | |
tree | 57a538891cb769aa6771f16f37a918d5ac03aced /Test/og/linear-set.bpl | |
parent | 1ca4bdc8652046f902b50820c1c250148e1abe25 (diff) |
fixed bugs in typechecking of linear sets
added regressions to linear sets
removed the need to supply the builtin map operations manually
Diffstat (limited to 'Test/og/linear-set.bpl')
-rw-r--r-- | Test/og/linear-set.bpl | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/Test/og/linear-set.bpl b/Test/og/linear-set.bpl index 1a0cde42..04ad0df2 100644 --- a/Test/og/linear-set.bpl +++ b/Test/og/linear-set.bpl @@ -1,12 +1,7 @@ -function {:inline} Subset(a: [X]bool, b: [X]bool) : bool
-{
- MapImp(a, b) == MapConstBool(true)
-}
-
-function {:inline} In(a: X, b: [X]bool) : bool
-{
- b[a]
-}
+type X;
+function {:builtin "MapConst"} MapConstInt(int) : [X]int;
+function {:builtin "MapConst"} MapConstBool(bool) : [X]bool;
+function {:builtin "MapOr"} MapOr([X]bool, [X]bool) : [X]bool;
function {:inline} None() : [X]bool
{
|