diff options
author | Unknown <Shuvendu@SHUVENDU-Z400.redmond.corp.microsoft.com> | 2013-07-30 15:02:00 -0700 |
---|---|---|
committer | Unknown <Shuvendu@SHUVENDU-Z400.redmond.corp.microsoft.com> | 2013-07-30 15:02:00 -0700 |
commit | 7bea611b3cac30d5d55d4687d1c921fbaebe7078 (patch) | |
tree | 1d9c609ce71e2a2c5b11b0df06c5dfa573c4072b | |
parent | ef007fa516b790fedb2f5430c4069fbb8d1bbb58 (diff) |
Added test cases for symdiff (z3multipleErrors flag)
-rw-r--r-- | Test/alltests.txt | 1 | ||||
-rw-r--r-- | Test/symdiff/Answer | 5 | ||||
-rw-r--r-- | Test/symdiff/foo.bpl | 17 | ||||
-rw-r--r-- | Test/symdiff/runtest.bat | 9 |
4 files changed, 32 insertions, 0 deletions
diff --git a/Test/alltests.txt b/Test/alltests.txt index c0eec7ad..ece814a3 100644 --- a/Test/alltests.txt +++ b/Test/alltests.txt @@ -29,3 +29,4 @@ extractloops Use Extract loops benchmarks havoc0 Use HAVOC-generated bpl files
AbsHoudini Postponed Test for abstract houdini
snapshots Use Tests for program snapshot verification
+symdiff Use Tests for symdiff
\ No newline at end of file diff --git a/Test/symdiff/Answer b/Test/symdiff/Answer new file mode 100644 index 00000000..ad21a1ea --- /dev/null +++ b/Test/symdiff/Answer @@ -0,0 +1,5 @@ +foo.bpl(15,3): Error BP5001: This assertion might not hold.
+foo.bpl(15,3): Error BP5001: This assertion might not hold.
+foo.bpl(15,3): Error BP5001: This assertion might not hold.
+
+Boogie program verifier finished with 0 verified, 3 errors
diff --git a/Test/symdiff/foo.bpl b/Test/symdiff/foo.bpl new file mode 100644 index 00000000..2859aa45 --- /dev/null +++ b/Test/symdiff/foo.bpl @@ -0,0 +1,17 @@ +procedure Foo(x:int)
+{
+ var ok:bool;
+
+ ok := true;
+
+ if (x == 1) {
+ ok := false;
+ } else if (x == 2) {
+ ok := false;
+ } else if (x == 3) {
+ ok := false;
+ }
+
+ assert ok;
+
+}
\ No newline at end of file diff --git a/Test/symdiff/runtest.bat b/Test/symdiff/runtest.bat new file mode 100644 index 00000000..1596661c --- /dev/null +++ b/Test/symdiff/runtest.bat @@ -0,0 +1,9 @@ +@echo off
+setlocal
+
+set BGEXE=..\..\Binaries\Boogie.exe
+rem set BGEXE=mono ..\..\Binaries\Boogie.exe
+
+%BGEXE% %* /z3multipleErrors /errorTrace:0 foo.bpl
+
+
|