summaryrefslogtreecommitdiff
path: root/Test/aitest9/TestIntervals.bpl
diff options
context:
space:
mode:
Diffstat (limited to 'Test/aitest9/TestIntervals.bpl')
-rw-r--r--Test/aitest9/TestIntervals.bpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/Test/aitest9/TestIntervals.bpl b/Test/aitest9/TestIntervals.bpl
index b989e16c..bee73a57 100644
--- a/Test/aitest9/TestIntervals.bpl
+++ b/Test/aitest9/TestIntervals.bpl
@@ -22,3 +22,19 @@ procedure P()
assert -3 <= c;
assert c <= 0; // error (there was once an error in the Intervals which thought this assertion to be true)
}
+
+// The following tests a triply nested array, where the innermost array is a polymorphic map.
+// There was once an error in Boogie's handling of such things in the AI code.
+
+type ref;
+type teflon;
+
+type Field a;
+type HeapType = <a>[Field a]a;
+var Heap: HeapType;
+
+procedure Q(myField: Field [ref][teflon]bool, r: ref, t: teflon)
+ modifies Heap;
+{
+ Heap[myField][r][t] := true;
+}