diff options
author | Rustan Leino <leino@microsoft.com> | 2011-04-07 18:33:22 -0700 |
---|---|---|
committer | Rustan Leino <leino@microsoft.com> | 2011-04-07 18:33:22 -0700 |
commit | 7ae15e4ab4aa4e63257ed2e426fe2a0efa35de21 (patch) | |
tree | 28ce98153ac5b86a07feeaf0488462f43eee83ed /Test/jennisys0/Prog0.jen | |
parent | 4c4750f967d56c02bb55b2f485ddc466f1b33a58 (diff) |
Jennisys: Parse and print
Diffstat (limited to 'Test/jennisys0/Prog0.jen')
-rw-r--r-- | Test/jennisys0/Prog0.jen | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Test/jennisys0/Prog0.jen b/Test/jennisys0/Prog0.jen new file mode 100644 index 00000000..cd847846 --- /dev/null +++ b/Test/jennisys0/Prog0.jen @@ -0,0 +1,34 @@ +class C {
+ var a: seq[int]
+ var x: int
+ constructor Init()
+ { }
+ method Update(d)
+ {
+ x := x + 1
+ { nested := statement yes := sirrie }
+ x.f := (12 + true)[8000 := 0 <= n]
+ }
+ method Query() returns (r)
+ requires r
+ requires true
+ requires *
+ requires r.r.s
+ requires a[i]
+ requires a[i := 58]
+ requires (((hello)))
+ requires (((hello) + (goodbye)) - soonyousoon)
+ requires 0 <= r
+ { }
+ method ManyParams(x:bool,y) returns (r,s:set[MyClass],t)
+ { }
+}
+
+model C {
+ var x: int
+ frame xyz
+ invariant x <= x
+}
+
+code C {
+}
|