diff options
author | mikebarnett <unknown> | 2009-07-15 21:03:41 +0000 |
---|---|---|
committer | mikebarnett <unknown> | 2009-07-15 21:03:41 +0000 |
commit | ce1c2de044c91624370411e23acab13b0381949b (patch) | |
tree | 592539996fe08050ead5ee210c973801611dde40 /Test/test21/FunAxioms2.bpl |
Initial set of files.
Diffstat (limited to 'Test/test21/FunAxioms2.bpl')
-rw-r--r-- | Test/test21/FunAxioms2.bpl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Test/test21/FunAxioms2.bpl b/Test/test21/FunAxioms2.bpl new file mode 100644 index 00000000..f487dcab --- /dev/null +++ b/Test/test21/FunAxioms2.bpl @@ -0,0 +1,21 @@ +
+type T;
+
+function f() returns (int); // functions without arguments
+function g() returns (T);
+
+
+const c : T;
+
+axiom (f() >= 13);
+axiom (g() != c);
+
+procedure P() returns () {
+ var x : int;
+
+ x := f();
+
+ assert x >= 0 && f() >= 7;
+ assert g() != c;
+ assert f() >= 20; // should not be provable
+}
\ No newline at end of file |