summaryrefslogtreecommitdiff
path: root/Test/test7/MultipleErrors.bpl
diff options
context:
space:
mode:
authorGravatar Dan Liew <daniel.liew@imperial.ac.uk>2014-05-07 16:50:59 +0100
committerGravatar Dan Liew <daniel.liew@imperial.ac.uk>2014-05-07 16:50:59 +0100
commiteb766c19e8e082cc2164859c19c3a7e27feef84b (patch)
tree405bc20923d2dc5349f13a55c188c368f9aa9561 /Test/test7/MultipleErrors.bpl
parent356ebe6de99459cfb89920b18124aae016206ef0 (diff)
Enable the VCVariety.BlockNested tests as lit tests.
Diffstat (limited to 'Test/test7/MultipleErrors.bpl')
-rw-r--r--Test/test7/MultipleErrors.bpl21
1 files changed, 21 insertions, 0 deletions
diff --git a/Test/test7/MultipleErrors.bpl b/Test/test7/MultipleErrors.bpl
index 5a2024d4..ac1f7e54 100644
--- a/Test/test7/MultipleErrors.bpl
+++ b/Test/test7/MultipleErrors.bpl
@@ -1,3 +1,24 @@
+// RUN: %boogie -vc:block -errorLimit:1 -errorTrace:1 -logPrefix:-1block %s > %t1
+// RUN: %diff %s.e1.block.expect %t1
+// RUN: %boogie -vc:local -errorLimit:1 -errorTrace:1 -logPrefix:-1local %s > %t2
+// RUN: %diff %s.e1.local.expect %t2
+// RUN: %boogie -vc:dag -errorLimit:1 -errorTrace:1 -logPrefix:-1dag %s > %t3
+// RUN: %diff %s.e1.dag.expect %t3
+// RUN: %boogie -vc:local -errorLimit:10 -errorTrace:1 -logPrefix:-10local %s > %t4
+// RUN: %diff %s.e10.local.expect %t4
+// RUN: %boogie -vc:dag -errorLimit:10 -errorTrace:1 -logPrefix:-10dag %s > %t5
+// RUN: %diff %s.e10.dag.expect %t5
+
+// Author of this comment: mikebarnett ec02177eefb5
+// The following tests are rather fickle at the moment--different errors
+// may be reported during different runs. Moreover, it is conceivable that
+// the error trace would be reported in different orders, since we do not
+// attempt to sort the trace labels at this time.
+// An interesting thing is that /vc:local can with Simplify report more than one
+// error for this file, even with /errorLimit:1. Other than that, only
+// local and dag produce VCs to which Simplify actually produces different
+// counterexamples.
+
procedure P(x: int)
{
start: