summaryrefslogtreecommitdiff
path: root/Test/snapshots/Snapshots16.v1.bpl
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2014-07-03 03:20:50 +0200
committerGravatar wuestholz <unknown>2014-07-03 03:20:50 +0200
commitd274c9f110459096a71b8aabbcf7cf27582bf70e (patch)
treea6ed947fe2550ab1dec3456d28e59dba840b8cf7 /Test/snapshots/Snapshots16.v1.bpl
parentcd4a6b3e97b74abd0fabc70b071ba2b80d6227d2 (diff)
Fixed issue involving axioms in the dependency analysis used for verification result caching.
Diffstat (limited to 'Test/snapshots/Snapshots16.v1.bpl')
-rw-r--r--Test/snapshots/Snapshots16.v1.bpl15
1 files changed, 15 insertions, 0 deletions
diff --git a/Test/snapshots/Snapshots16.v1.bpl b/Test/snapshots/Snapshots16.v1.bpl
new file mode 100644
index 00000000..4d7cc354
--- /dev/null
+++ b/Test/snapshots/Snapshots16.v1.bpl
@@ -0,0 +1,15 @@
+function {:checksum "4"} PlusOne(n: int) : int
+{
+ n + 2
+}
+
+function {:checksum "0"} F(n: int) : int;
+
+axiom (forall n: int :: { F(n) } F(n) == PlusOne(n));
+
+procedure {:checksum "2"} M();
+
+implementation {:id "M"} {:checksum "3"} M()
+{
+ assert F(0) == 1; // error
+}