summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2014-07-06 21:34:07 +0200
committerGravatar wuestholz <unknown>2014-07-06 21:34:07 +0200
commitbb6e253feab04cc13de3132520eac3ffc8150f01 (patch)
tree4bf497f94085b3d50b616dee8d61952cbaa9bbed /Test
parent454f7ff730ca2b17e6b9c705d36f071d66d9ef45 (diff)
Did some refactoring, fixed minor issues, and made it apply the more advanced verification result caching even for implementations with errors.
Diffstat (limited to 'Test')
-rw-r--r--Test/snapshots/Snapshots19.v0.bpl11
-rw-r--r--Test/snapshots/Snapshots19.v1.bpl11
-rw-r--r--Test/snapshots/runtest.snapshot2
-rw-r--r--Test/snapshots/runtest.snapshot.expect10
4 files changed, 33 insertions, 1 deletions
diff --git a/Test/snapshots/Snapshots19.v0.bpl b/Test/snapshots/Snapshots19.v0.bpl
new file mode 100644
index 00000000..935ee793
--- /dev/null
+++ b/Test/snapshots/Snapshots19.v0.bpl
@@ -0,0 +1,11 @@
+procedure {:checksum "0"} M();
+
+implementation {:id "M"} {:checksum "1"} M()
+{
+ call N();
+
+ assert 1 != 1;
+}
+
+procedure {:checksum "2"} N();
+ requires 2 == 2;
diff --git a/Test/snapshots/Snapshots19.v1.bpl b/Test/snapshots/Snapshots19.v1.bpl
new file mode 100644
index 00000000..2afdd641
--- /dev/null
+++ b/Test/snapshots/Snapshots19.v1.bpl
@@ -0,0 +1,11 @@
+procedure {:checksum "0"} M();
+
+implementation {:id "M"} {:checksum "1"} M()
+{
+ call N();
+
+ assert 1 != 1;
+}
+
+procedure {:checksum "3"} N();
+ requires 2 == 2;
diff --git a/Test/snapshots/runtest.snapshot b/Test/snapshots/runtest.snapshot
index e2d566d8..b36e1aa2 100644
--- a/Test/snapshots/runtest.snapshot
+++ b/Test/snapshots/runtest.snapshot
@@ -1,2 +1,2 @@
-// RUN: %boogie -verifySnapshots:2 -verifySeparately Snapshots0.bpl Snapshots1.bpl Snapshots2.bpl Snapshots3.bpl Snapshots4.bpl Snapshots5.bpl Snapshots6.bpl Snapshots7.bpl Snapshots8.bpl Snapshots9.bpl Snapshots10.bpl Snapshots11.bpl Snapshots12.bpl Snapshots13.bpl Snapshots14.bpl Snapshots15.bpl Snapshots16.bpl Snapshots17.bpl Snapshots18.bpl > "%t"
+// RUN: %boogie -verifySnapshots:2 -verifySeparately Snapshots0.bpl Snapshots1.bpl Snapshots2.bpl Snapshots3.bpl Snapshots4.bpl Snapshots5.bpl Snapshots6.bpl Snapshots7.bpl Snapshots8.bpl Snapshots9.bpl Snapshots10.bpl Snapshots11.bpl Snapshots12.bpl Snapshots13.bpl Snapshots14.bpl Snapshots15.bpl Snapshots16.bpl Snapshots17.bpl Snapshots18.bpl Snapshots19.bpl > "%t"
// RUN: %diff "%s.expect" "%t"
diff --git a/Test/snapshots/runtest.snapshot.expect b/Test/snapshots/runtest.snapshot.expect
index 8b363791..554837e6 100644
--- a/Test/snapshots/runtest.snapshot.expect
+++ b/Test/snapshots/runtest.snapshot.expect
@@ -180,3 +180,13 @@ Execution trace:
Snapshots18.v1.bpl(20,5): anon4
Boogie program verifier finished with 0 verified, 2 errors
+Snapshots19.v0.bpl(7,5): Error BP5001: This assertion might not hold.
+Execution trace:
+ Snapshots19.v0.bpl(5,5): anon0
+
+Boogie program verifier finished with 0 verified, 1 error
+Snapshots19.v1.bpl(7,5): Error BP5001: This assertion might not hold.
+Execution trace:
+ Snapshots19.v1.bpl(5,5): anon0
+
+Boogie program verifier finished with 0 verified, 1 error