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/z3api/boog12.bpl |
Initial set of files.
Diffstat (limited to 'Test/z3api/boog12.bpl')
-rw-r--r-- | Test/z3api/boog12.bpl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Test/z3api/boog12.bpl b/Test/z3api/boog12.bpl new file mode 100644 index 00000000..d20a8f35 --- /dev/null +++ b/Test/z3api/boog12.bpl @@ -0,0 +1,20 @@ +// types
+type Color;
+const blue: Color;
+
+var myArray:[int] Color;
+var myMatrix:[int,int] Color;
+
+// procedure
+procedure SetTo(c: Color);
+ modifies myArray, myMatrix
;
+
+ ensures myArray[0]==c;
+
+implementation SetTo(c: Color) {
+ myMatrix[0,1]:=c;
+ myArray[0]:=blue;
+}
+
+
+
|