summaryrefslogtreecommitdiff
path: root/Test/civl
diff options
context:
space:
mode:
authorGravatar qadeer <qadeer@microsoft.com>2015-06-10 10:46:17 -0700
committerGravatar qadeer <qadeer@microsoft.com>2015-06-10 10:46:17 -0700
commit9c97c7c52776575485c3b131202addb1d864e3d9 (patch)
treeda29e22ba497d5bef18b1219f1a36f70dc22953d /Test/civl
parent47d48285c8ea7ab0c368c2594a4d8717a9361291 (diff)
fixed crash
Diffstat (limited to 'Test/civl')
-rw-r--r--Test/civl/chris3.bpl19
-rw-r--r--Test/civl/chris3.bpl.expect3
2 files changed, 22 insertions, 0 deletions
diff --git a/Test/civl/chris3.bpl b/Test/civl/chris3.bpl
new file mode 100644
index 00000000..5cbc000a
--- /dev/null
+++ b/Test/civl/chris3.bpl
@@ -0,0 +1,19 @@
+// RUN: %boogie -noinfer -typeEncoding:m -useArrayTheory "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+procedure{:yields}{:layer 94,94} H()
+{
+ yield;
+}
+
+procedure{:yields}{:layer 94,95} A()
+ ensures{:atomic} |{ A: return true; }|;
+{
+ yield;
+}
+
+procedure{:yields}{:layer 95,95} P()
+{
+ yield;
+ par A() | H();
+ yield;
+}
diff --git a/Test/civl/chris3.bpl.expect b/Test/civl/chris3.bpl.expect
new file mode 100644
index 00000000..c8b2ab00
--- /dev/null
+++ b/Test/civl/chris3.bpl.expect
@@ -0,0 +1,3 @@
+chris3.bpl(3,33): Error: Creation layer number must be less than the available upto layer number
+chris3.bpl(14,33): Error: Creation layer number must be less than the available upto layer number
+2 type checking errors detected in chris3.bpl