summaryrefslogtreecommitdiff
path: root/Test/jennisys0/Prog0.jen
blob: 7ce79cac5ce4ce624a428618dafe5a5e37daa8ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 a[*]
    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 * abc * klm
     mno pqr
  invariant x <= x
  var q: bool
  invariant frame frame
  invariant x < 100 y < 1000
  frame a * b c
}

code C {
}