summaryrefslogtreecommitdiff
path: root/Test/snapshots/Snapshots24.v0.bpl
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2014-10-13 23:26:57 +0200
committerGravatar wuestholz <unknown>2014-10-13 23:26:57 +0200
commit1db1508be2b8206fd1a9051f887f2fb20970c4c0 (patch)
tree2fda3b8a2e1c34d0896a0be895c80482f10e2419 /Test/snapshots/Snapshots24.v0.bpl
parent446723cdee734937e3467d9d27ae90bfe088a19b (diff)
Fix issue in verification result caching for assertions without subsumption.
Diffstat (limited to 'Test/snapshots/Snapshots24.v0.bpl')
-rw-r--r--Test/snapshots/Snapshots24.v0.bpl25
1 files changed, 25 insertions, 0 deletions
diff --git a/Test/snapshots/Snapshots24.v0.bpl b/Test/snapshots/Snapshots24.v0.bpl
new file mode 100644
index 00000000..1289399b
--- /dev/null
+++ b/Test/snapshots/Snapshots24.v0.bpl
@@ -0,0 +1,25 @@
+procedure {:checksum "0"} M();
+
+implementation {:id "M"} {:checksum "1"} M()
+{
+ if (*)
+ {
+ assert {:subsumption 0} 1 != 1; // error
+ }
+ else if (*)
+ {
+ assert {:subsumption 1} 5 != 5; // error
+ }
+ else if (*)
+ {
+ assert {:subsumption 2} 6 != 6; // error
+ }
+ else
+ {
+ assert {:subsumption 1} 2 == 2;
+ assert {:subsumption 2} 4 == 4;
+ assert 5 == 5;
+ }
+
+ assert {:subsumption 0} 3 == 3;
+}