From 9c97c7c52776575485c3b131202addb1d864e3d9 Mon Sep 17 00:00:00 2001 From: qadeer Date: Wed, 10 Jun 2015 10:46:17 -0700 Subject: fixed crash --- Test/civl/chris3.bpl | 19 +++++++++++++++++++ Test/civl/chris3.bpl.expect | 3 +++ 2 files changed, 22 insertions(+) create mode 100644 Test/civl/chris3.bpl create mode 100644 Test/civl/chris3.bpl.expect (limited to 'Test/civl') 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 -- cgit v1.2.3