From 98407f4fc7af2fbe5a54488dfdfc3973b72d2fd3 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Wed, 7 May 2014 19:10:57 +0100 Subject: Enable "SLAM example" lit tests. --- Test/lock/Answer | 6 +++--- Test/lock/Lock.bpl | 2 ++ Test/lock/Lock.bpl.expect | 2 ++ Test/lock/LockIncorrect.bpl | 2 ++ Test/lock/LockIncorrect.bpl.expect | 6 ++++++ 5 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 Test/lock/Lock.bpl.expect create mode 100644 Test/lock/LockIncorrect.bpl.expect (limited to 'Test/lock') diff --git a/Test/lock/Answer b/Test/lock/Answer index bcfc9f1c..a5b63e44 100644 --- a/Test/lock/Answer +++ b/Test/lock/Answer @@ -1,8 +1,8 @@ Boogie program verifier finished with 3 verified, 0 errors -LockIncorrect.bpl(17,3): Error BP5001: This assertion might not hold. +LockIncorrect.bpl(19,3): Error BP5001: This assertion might not hold. Execution trace: - LockIncorrect.bpl(9,1): start - LockIncorrect.bpl(14,1): LoopHead + LockIncorrect.bpl(11,1): start + LockIncorrect.bpl(16,1): LoopHead Boogie program verifier finished with 0 verified, 1 error diff --git a/Test/lock/Lock.bpl b/Test/lock/Lock.bpl index ed24a710..ab7f20fe 100644 --- a/Test/lock/Lock.bpl +++ b/Test/lock/Lock.bpl @@ -1,3 +1,5 @@ +// RUN: %boogie %s > %t +// RUN: %diff %s.expect %t procedure LockingExample(); implementation LockingExample() diff --git a/Test/lock/Lock.bpl.expect b/Test/lock/Lock.bpl.expect new file mode 100644 index 00000000..a9949f2e --- /dev/null +++ b/Test/lock/Lock.bpl.expect @@ -0,0 +1,2 @@ + +Boogie program verifier finished with 3 verified, 0 errors diff --git a/Test/lock/LockIncorrect.bpl b/Test/lock/LockIncorrect.bpl index 776f8af6..cffcc256 100644 --- a/Test/lock/LockIncorrect.bpl +++ b/Test/lock/LockIncorrect.bpl @@ -1,3 +1,5 @@ +// RUN: %boogie %s > %t +// RUN: %diff %s.expect %t procedure LockingExample(); implementation LockingExample() diff --git a/Test/lock/LockIncorrect.bpl.expect b/Test/lock/LockIncorrect.bpl.expect new file mode 100644 index 00000000..a320da62 --- /dev/null +++ b/Test/lock/LockIncorrect.bpl.expect @@ -0,0 +1,6 @@ +LockIncorrect.bpl(19,3): Error BP5001: This assertion might not hold. +Execution trace: + LockIncorrect.bpl(11,1): start + LockIncorrect.bpl(16,1): LoopHead + +Boogie program verifier finished with 0 verified, 1 error -- cgit v1.2.3