From 27cdbd69584fca026e526cda68ba4c2e017242a9 Mon Sep 17 00:00:00 2001 From: wuestholz Date: Wed, 12 Jun 2013 17:58:55 -0700 Subject: Worked on improving program snapshot verification (automatic prioritization). --- Test/snapshots/Snapshots4.v0.bpl | 36 ++++++++++++++++++++++++++++++++ Test/snapshots/Snapshots4.v1.bpl | 45 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 Test/snapshots/Snapshots4.v0.bpl create mode 100644 Test/snapshots/Snapshots4.v1.bpl (limited to 'Test') 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 +} -- cgit v1.2.3