diff options
author | wuestholz <unknown> | 2014-07-09 19:17:43 +0200 |
---|---|---|
committer | wuestholz <unknown> | 2014-07-09 19:17:43 +0200 |
commit | 736eb8d7b2d80e7672fcdffba8d731c7bb9bb9d7 (patch) | |
tree | 6ea8fea728bbf388ea6749cbdec9660f66fc30d0 /Test/snapshots | |
parent | 15279d479f3d97952a7345043a1e50b36c88c189 (diff) |
Worked on the more advanced verification result caching.
Diffstat (limited to 'Test/snapshots')
-rw-r--r-- | Test/snapshots/Snapshots22.v0.bpl | 15 | ||||
-rw-r--r-- | Test/snapshots/Snapshots22.v1.bpl | 15 | ||||
-rw-r--r-- | Test/snapshots/runtest.snapshot | 2 | ||||
-rw-r--r-- | Test/snapshots/runtest.snapshot.expect | 8 |
4 files changed, 39 insertions, 1 deletions
diff --git a/Test/snapshots/Snapshots22.v0.bpl b/Test/snapshots/Snapshots22.v0.bpl new file mode 100644 index 00000000..c2be13de --- /dev/null +++ b/Test/snapshots/Snapshots22.v0.bpl @@ -0,0 +1,15 @@ +procedure {:checksum "0"} M();
+
+implementation {:id "M"} {:checksum "1"} M()
+{
+ if (*)
+ {
+ assert 1 != 1; // error
+ }
+ else
+ {
+ assert 2 == 2;
+ }
+
+ assert 3 == 3;
+}
diff --git a/Test/snapshots/Snapshots22.v1.bpl b/Test/snapshots/Snapshots22.v1.bpl new file mode 100644 index 00000000..9d43f2c2 --- /dev/null +++ b/Test/snapshots/Snapshots22.v1.bpl @@ -0,0 +1,15 @@ +procedure {:checksum "0"} M();
+
+implementation {:id "M"} {:checksum "2"} M()
+{
+ if (*)
+ {
+ assert 1 == 1;
+ }
+ else
+ {
+ assert 2 == 2;
+ }
+
+ assert 3 == 3;
+}
diff --git a/Test/snapshots/runtest.snapshot b/Test/snapshots/runtest.snapshot index e73e4eba..e3c00eee 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 Snapshots19.bpl Snapshots20.bpl Snapshots21.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 Snapshots20.bpl Snapshots21.bpl Snapshots22.bpl > "%t" // RUN: %diff "%s.expect" "%t" diff --git a/Test/snapshots/runtest.snapshot.expect b/Test/snapshots/runtest.snapshot.expect index daabfca9..f4ee0ca9 100644 --- a/Test/snapshots/runtest.snapshot.expect +++ b/Test/snapshots/runtest.snapshot.expect @@ -227,3 +227,11 @@ Execution trace: Snapshots21.v1.bpl(14,5): anon3
Boogie program verifier finished with 0 verified, 2 errors
+Snapshots22.v0.bpl(7,9): Error BP5001: This assertion might not hold.
+Execution trace:
+ Snapshots22.v0.bpl(5,5): anon0
+ Snapshots22.v0.bpl(7,9): anon4_Then
+
+Boogie program verifier finished with 0 verified, 1 error
+
+Boogie program verifier finished with 1 verified, 0 errors
|