diff options
author | wuestholz <unknown> | 2013-06-12 17:58:55 -0700 |
---|---|---|
committer | wuestholz <unknown> | 2013-06-12 17:58:55 -0700 |
commit | 27cdbd69584fca026e526cda68ba4c2e017242a9 (patch) | |
tree | c538d659f29bcf8fa322d0b7473ba5ee909b115e /Test | |
parent | c299df935b8d562277a0c9d69ac42b3e14de2bd9 (diff) |
Worked on improving program snapshot verification (automatic prioritization).
Diffstat (limited to 'Test')
-rw-r--r-- | Test/snapshots/Snapshots4.v0.bpl | 36 | ||||
-rw-r--r-- | Test/snapshots/Snapshots4.v1.bpl | 45 |
2 files changed, 81 insertions, 0 deletions
diff --git a/Test/snapshots/Snapshots4.v0.bpl b/Test/snapshots/Snapshots4.v0.bpl new file mode 100644 index 00000000..430aee99 --- /dev/null +++ b/Test/snapshots/Snapshots4.v0.bpl @@ -0,0 +1,36 @@ +procedure {:checksum "P0$proc#0"} P0();
+// Action: verify
+implementation {:checksum "P0$impl#0"} P0()
+{
+}
+
+
+procedure {:checksum "P1$proc#0"} P1();
+// Action: verify
+implementation {:checksum "P1$impl#0"} P1()
+{
+ call P2();
+}
+
+
+procedure {:checksum "P2$proc#0"} P2();
+ ensures G();
+
+
+procedure {:checksum "P3$proc#0"} P3();
+// Action: verify
+implementation {:checksum "P3$impl#0"} P3()
+{
+}
+
+
+function {:checksum "G#0"} G() : bool
+{
+ F()
+}
+
+
+function {:checksum "F#0"} F() : bool
+{
+ true
+}
diff --git a/Test/snapshots/Snapshots4.v1.bpl b/Test/snapshots/Snapshots4.v1.bpl new file mode 100644 index 00000000..025a3f5f --- /dev/null +++ b/Test/snapshots/Snapshots4.v1.bpl @@ -0,0 +1,45 @@ +procedure {:checksum "P0$proc#0"} P0();
+// Action: skip
+// Priority: 0
+implementation {:checksum "P0$impl#0"} P0()
+{
+}
+
+
+procedure {:checksum "P1$proc#0"} P1();
+// Action: verify
+// Priority: 1
+implementation {:checksum "P1$impl#0"} P1()
+{
+ call P2();
+}
+
+
+procedure {:checksum "P3$proc#0"} P3();
+// Action: verify
+// Priority: 2
+implementation {:checksum "P3$impl#1"} P3()
+{
+ assert false;
+}
+
+
+procedure {:checksum "P2$proc#0"} P2();
+ ensures G();
+// Action: verify
+// Priority: 3
+implementation {:checksum "P2$impl#0"} P2()
+{
+}
+
+
+function {:checksum "G#0"} G() : bool
+{
+ F()
+}
+
+
+function {:checksum "F#1"} F() : bool
+{
+ false
+}
|