summaryrefslogtreecommitdiff
path: root/Test/snapshots
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2013-06-10 14:34:54 -0700
committerGravatar wuestholz <unknown>2013-06-10 14:34:54 -0700
commitbfa3c64c4a4c583e30242da5a11b37800513418e (patch)
tree771a3f7ca5957c689d62ae35add352db2bf6ae47 /Test/snapshots
parent14ec8db388dc3d4db99fc25a6b8f434bba6fccd9 (diff)
Worked on improving program snapshot verification.
Diffstat (limited to 'Test/snapshots')
-rw-r--r--Test/snapshots/Answer17
-rw-r--r--Test/snapshots/Snapshots3.v0.bpl18
-rw-r--r--Test/snapshots/Snapshots3.v1.bpl18
-rw-r--r--Test/snapshots/runtest.bat16
4 files changed, 55 insertions, 14 deletions
diff --git a/Test/snapshots/Answer b/Test/snapshots/Answer
index a7a6b0be..676f0323 100644
--- a/Test/snapshots/Answer
+++ b/Test/snapshots/Answer
@@ -1,4 +1,5 @@
--------------------- Snapshots0.bpl --------------------
+
+-------------------- Snapshots0 --------------------
Snapshots0.v0.bpl(41,5): Error BP5001: This assertion might not hold.
Execution trace:
Snapshots0.v0.bpl(41,5): anon0
@@ -27,7 +28,7 @@ Execution trace:
Boogie program verifier finished with 2 verified, 1 error
--------------------- Snapshots1.bpl --------------------
+-------------------- Snapshots1 --------------------
Snapshots1.v0.bpl(13,5): Error BP5001: This assertion might not hold.
Execution trace:
Snapshots1.v0.bpl(13,5): anon0
@@ -45,7 +46,9 @@ Execution trace:
Boogie program verifier finished with 1 verified, 1 error
--------------------- Snapshots2.bpl --------------------
+-------------------- Snapshots2 --------------------
+
+Boogie program verifier finished with 1 verified, 0 errors
Boogie program verifier finished with 1 verified, 0 errors
@@ -57,4 +60,12 @@ Boogie program verifier finished with 1 verified, 0 errors
Boogie program verifier finished with 1 verified, 0 errors
+-------------------- Snapshots3 --------------------
+
Boogie program verifier finished with 1 verified, 0 errors
+Snapshots3.v1.bpl(6,1): Error BP5003: A postcondition might not hold on this return path.
+Snapshots3.v1.bpl(2,1): Related location: This is the postcondition that might not hold.
+Execution trace:
+ Snapshots3.v1.bpl(6,1): anon0
+
+Boogie program verifier finished with 0 verified, 1 error
diff --git a/Test/snapshots/Snapshots3.v0.bpl b/Test/snapshots/Snapshots3.v0.bpl
new file mode 100644
index 00000000..65dd49ff
--- /dev/null
+++ b/Test/snapshots/Snapshots3.v0.bpl
@@ -0,0 +1,18 @@
+procedure {:checksum "P0$proc#0"} P0();
+ensures G();
+// Action: verify
+implementation {:checksum "P0$impl#0"} P0()
+{
+}
+
+
+function {:checksum "F#0"} F() : bool
+{
+ true
+}
+
+
+function {:checksum "G#0"} G() : bool
+{
+ F()
+}
diff --git a/Test/snapshots/Snapshots3.v1.bpl b/Test/snapshots/Snapshots3.v1.bpl
new file mode 100644
index 00000000..329382ac
--- /dev/null
+++ b/Test/snapshots/Snapshots3.v1.bpl
@@ -0,0 +1,18 @@
+procedure {:checksum "P0$proc#0"} P0();
+ensures G();
+// Action: verify
+implementation {:checksum "P0$impl#0"} P0()
+{
+}
+
+
+function {:checksum "F#1"} F() : bool
+{
+ false
+}
+
+
+function {:checksum "G#0"} G() : bool
+{
+ F()
+}
diff --git a/Test/snapshots/runtest.bat b/Test/snapshots/runtest.bat
index fa45d56a..663cef07 100644
--- a/Test/snapshots/runtest.bat
+++ b/Test/snapshots/runtest.bat
@@ -1,17 +1,11 @@
-
@echo off
setlocal
set BOOGIEDIR=..\..\Binaries
set BGEXE=%BOOGIEDIR%\Boogie.exe
-echo -------------------- Snapshots0.bpl --------------------
-%BGEXE% %* /verifySnapshots Snapshots0.bpl
-
-echo.
-echo -------------------- Snapshots1.bpl --------------------
-%BGEXE% %* /verifySnapshots Snapshots1.bpl
-
-echo.
-echo -------------------- Snapshots2.bpl --------------------
-%BGEXE% %* /verifySnapshots Snapshots2.bpl
+for %%f in (Snapshots0 Snapshots1 Snapshots2 Snapshots3) do (
+ echo.
+ echo -------------------- %%f --------------------
+ %BGEXE% %* /verifySnapshots %%f.bpl
+)