diff options
author | wuestholz <unknown> | 2014-07-09 19:17:57 +0200 |
---|---|---|
committer | wuestholz <unknown> | 2014-07-09 19:17:57 +0200 |
commit | e6994bfa0d98f4b08722c0ee805ee01f2ce0263d (patch) | |
tree | 4b2d0183bf9c246341d4bedfe16aea266ba3a419 /Test/dafny0/snapshots | |
parent | b8fbc5d9e51283ddf952d6eea30e4e24e79624a9 (diff) |
Worked on the more advanced verification result caching.
Diffstat (limited to 'Test/dafny0/snapshots')
-rw-r--r-- | Test/dafny0/snapshots/Snapshots3.v0.dfy | 11 | ||||
-rw-r--r-- | Test/dafny0/snapshots/Snapshots3.v1.dfy | 11 | ||||
-rw-r--r-- | Test/dafny0/snapshots/runtest.snapshot | 2 | ||||
-rw-r--r-- | Test/dafny0/snapshots/runtest.snapshot.expect | 14 |
4 files changed, 37 insertions, 1 deletions
diff --git a/Test/dafny0/snapshots/Snapshots3.v0.dfy b/Test/dafny0/snapshots/Snapshots3.v0.dfy new file mode 100644 index 00000000..72607412 --- /dev/null +++ b/Test/dafny0/snapshots/Snapshots3.v0.dfy @@ -0,0 +1,11 @@ +method M()
+{
+ if (*)
+ {
+
+ }
+ else
+ {
+ assert 0 != 0; // error
+ }
+}
diff --git a/Test/dafny0/snapshots/Snapshots3.v1.dfy b/Test/dafny0/snapshots/Snapshots3.v1.dfy new file mode 100644 index 00000000..3b186318 --- /dev/null +++ b/Test/dafny0/snapshots/Snapshots3.v1.dfy @@ -0,0 +1,11 @@ +method M()
+{
+ if (*)
+ {
+ assert true;
+ }
+ else
+ {
+ assert 0 != 0; // error
+ }
+}
diff --git a/Test/dafny0/snapshots/runtest.snapshot b/Test/dafny0/snapshots/runtest.snapshot index c3cf6b00..2d1cbe02 100644 --- a/Test/dafny0/snapshots/runtest.snapshot +++ b/Test/dafny0/snapshots/runtest.snapshot @@ -1,2 +1,2 @@ -// RUN: %dafny /compile:0 /verifySnapshots:2 /verifySeparately Snapshots0.dfy Snapshots1.dfy Snapshots2.dfy > "%t" +// RUN: %dafny /compile:0 /verifySnapshots:2 /verifySeparately Snapshots0.dfy Snapshots1.dfy Snapshots2.dfy Snapshots3.dfy > "%t" // RUN: %diff "%s.expect" "%t" diff --git a/Test/dafny0/snapshots/runtest.snapshot.expect b/Test/dafny0/snapshots/runtest.snapshot.expect index 87827811..963ba754 100644 --- a/Test/dafny0/snapshots/runtest.snapshot.expect +++ b/Test/dafny0/snapshots/runtest.snapshot.expect @@ -25,3 +25,17 @@ Execution trace: (0,0): anon0
Dafny program verifier finished with 5 verified, 1 error
+
+-------------------- Snapshots3.dfy --------------------
+Snapshots3.v0.dfy(9,14): Error: assertion violation
+Execution trace:
+ (0,0): anon0
+ (0,0): anon3_Else
+
+Dafny program verifier finished with 1 verified, 1 error
+Snapshots3.v1.dfy(9,14): Error: assertion violation
+Execution trace:
+ (0,0): anon0
+ (0,0): anon3_Else
+
+Dafny program verifier finished with 1 verified, 1 error
|