diff options
author | wuestholz <unknown> | 2014-04-21 13:21:52 +0200 |
---|---|---|
committer | wuestholz <unknown> | 2014-04-21 13:21:52 +0200 |
commit | b17515ca23fc7f5ae1fb8e6642366f761d0eeacf (patch) | |
tree | 1f1b42a681dab35e9d6aa02bc1a79d01c113c82f /Test/test2/AssumptionVariables0.bpl | |
parent | c29f461136e76fd406677e1e12245ee69368190f (diff) |
Add support for assumption variables.
Diffstat (limited to 'Test/test2/AssumptionVariables0.bpl')
-rw-r--r-- | Test/test2/AssumptionVariables0.bpl | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Test/test2/AssumptionVariables0.bpl b/Test/test2/AssumptionVariables0.bpl new file mode 100644 index 00000000..96537c0d --- /dev/null +++ b/Test/test2/AssumptionVariables0.bpl @@ -0,0 +1,38 @@ +procedure Test0()
+{
+ var {:assumption} a0: bool;
+
+ assert a0;
+}
+
+
+procedure Test1(n: int)
+{
+ var {:assumption} a0: bool;
+
+ a0 := a0 && (0 <= n);
+
+ assert a0; // error
+}
+
+
+procedure Test2()
+{
+ var {:assumption} a0: bool;
+
+ havoc a0;
+
+ assert a0; // error
+}
+
+
+var {:assumption} a0: bool;
+
+
+procedure Test3()
+ modifies a0;
+{
+ a0 := a0 && true;
+
+ assert a0; // error
+}
|