-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinheritance.fir.diag.txt
More file actions
173 lines (131 loc) · 4.57 KB
/
inheritance.fir.diag.txt
File metadata and controls
173 lines (131 loc) · 4.57 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
/inheritance.kt:(93,97): info: Generated Viper text for getY:
field bf$b: Ref
field bf$x: Ref
field bf$y: Ref
method f$c$Foo$getY$TF$T$Foo$T$Int(this$dispatch: Ref) returns (ret$0: Ref)
requires df$rt$isSubtype(df$rt$typeOf(this$dispatch), df$rt$c$Foo())
ensures df$rt$isSubtype(df$rt$typeOf(ret$0), df$rt$intType())
{
inhale acc(p$c$Foo$shared(this$dispatch), wildcard)
unfold acc(p$c$Foo$shared(this$dispatch), wildcard)
ret$0 := this$dispatch.bf$y
goto lbl$ret$0
label lbl$ret$0
}
/inheritance.kt:(190,193): info: Generated Viper text for sum:
field bf$b: Ref
field bf$x: Ref
field bf$y: Ref
field bf$z: Ref
method f$c$Bar$sum$TF$T$Bar$T$Int(this$dispatch: Ref) returns (ret$0: Ref)
requires df$rt$isSubtype(df$rt$typeOf(this$dispatch), df$rt$c$Bar())
ensures df$rt$isSubtype(df$rt$typeOf(ret$0), df$rt$intType())
{
var anon$0: Ref
var anon$1: Ref
inhale acc(p$c$Bar$shared(this$dispatch), wildcard)
unfold acc(p$c$Bar$shared(this$dispatch), wildcard)
unfold acc(p$c$Foo$shared(this$dispatch), wildcard)
anon$0 := this$dispatch.bf$x
unfold acc(p$c$Bar$shared(this$dispatch), wildcard)
anon$1 := this$dispatch.bf$z
ret$0 := sp$plusInts(anon$0, anon$1)
goto lbl$ret$0
label lbl$ret$0
}
/inheritance.kt:(236,251): info: Generated Viper text for callSuperMethod:
field bf$b: Ref
field bf$x: Ref
field bf$y: Ref
field bf$z: Ref
method f$c$Foo$getY$TF$T$Foo$T$Int(this$dispatch: Ref) returns (ret: Ref)
requires df$rt$isSubtype(df$rt$typeOf(this$dispatch), df$rt$c$Foo())
ensures df$rt$isSubtype(df$rt$typeOf(ret), df$rt$intType())
method f$callSuperMethod$TF$T$Bar$T$Int(p$bar: Ref) returns (ret$0: Ref)
requires df$rt$isSubtype(df$rt$typeOf(p$bar), df$rt$c$Bar())
ensures df$rt$isSubtype(df$rt$typeOf(ret$0), df$rt$intType())
{
inhale acc(p$c$Bar$shared(p$bar), wildcard)
unfold acc(p$c$Bar$shared(p$bar), wildcard)
ret$0 := f$c$Foo$getY$TF$T$Foo$T$Int(p$bar)
goto lbl$ret$0
label lbl$ret$0
}
/inheritance.kt:(298,314): info: Generated Viper text for accessSuperField:
field bf$b: Ref
field bf$x: Ref
field bf$y: Ref
field bf$z: Ref
method f$accessSuperField$TF$T$Bar$T$Boolean(p$bar: Ref)
returns (ret$0: Ref)
requires df$rt$isSubtype(df$rt$typeOf(p$bar), df$rt$c$Bar())
ensures df$rt$isSubtype(df$rt$typeOf(ret$0), df$rt$boolType())
{
inhale acc(p$c$Bar$shared(p$bar), wildcard)
ret$0 := havoc$T$Boolean()
goto lbl$ret$0
label lbl$ret$0
}
/inheritance.kt:(360,374): info: Generated Viper text for accessNewField:
field bf$b: Ref
field bf$x: Ref
field bf$y: Ref
field bf$z: Ref
method f$accessNewField$TF$T$Bar$T$Int(p$bar: Ref) returns (ret$0: Ref)
requires df$rt$isSubtype(df$rt$typeOf(p$bar), df$rt$c$Bar())
ensures df$rt$isSubtype(df$rt$typeOf(ret$0), df$rt$intType())
{
inhale acc(p$c$Bar$shared(p$bar), wildcard)
unfold acc(p$c$Bar$shared(p$bar), wildcard)
ret$0 := p$bar.bf$z
goto lbl$ret$0
label lbl$ret$0
}
/inheritance.kt:(416,429): info: Generated Viper text for callNewMethod:
field bf$b: Ref
field bf$x: Ref
field bf$y: Ref
field bf$z: Ref
method f$c$Bar$sum$TF$T$Bar$T$Int(this$dispatch: Ref) returns (ret: Ref)
requires df$rt$isSubtype(df$rt$typeOf(this$dispatch), df$rt$c$Bar())
ensures df$rt$isSubtype(df$rt$typeOf(ret), df$rt$intType())
method f$callNewMethod$TF$T$Bar$T$Int(p$bar: Ref) returns (ret$0: Ref)
requires df$rt$isSubtype(df$rt$typeOf(p$bar), df$rt$c$Bar())
ensures df$rt$isSubtype(df$rt$typeOf(ret$0), df$rt$intType())
{
inhale acc(p$c$Bar$shared(p$bar), wildcard)
ret$0 := f$c$Bar$sum$TF$T$Bar$T$Int(p$bar)
goto lbl$ret$0
label lbl$ret$0
}
/inheritance.kt:(475,488): info: Generated Viper text for setSuperField:
field bf$b: Ref
field bf$x: Ref
field bf$y: Ref
field bf$z: Ref
method f$setSuperField$TF$T$Bar$T$Unit(p$bar: Ref) returns (ret$0: Ref)
requires df$rt$isSubtype(df$rt$typeOf(p$bar), df$rt$c$Bar())
ensures df$rt$isSubtype(df$rt$typeOf(ret$0), df$rt$unitType())
{
inhale acc(p$c$Bar$shared(p$bar), wildcard)
label lbl$ret$0
inhale df$rt$isSubtype(df$rt$typeOf(ret$0), df$rt$unitType())
}
/inheritance.kt:(525,546): info: Generated Viper text for accessSuperSuperField:
field bf$b: Ref
field bf$x: Ref
field bf$y: Ref
field bf$z: Ref
method f$accessSuperSuperField$TF$T$Baz$T$Int(p$baz: Ref)
returns (ret$0: Ref)
requires df$rt$isSubtype(df$rt$typeOf(p$baz), df$rt$c$Baz())
ensures df$rt$isSubtype(df$rt$typeOf(ret$0), df$rt$intType())
{
inhale acc(p$c$Baz$shared(p$baz), wildcard)
unfold acc(p$c$Baz$shared(p$baz), wildcard)
unfold acc(p$c$Bar$shared(p$baz), wildcard)
unfold acc(p$c$Foo$shared(p$baz), wildcard)
ret$0 := p$baz.bf$x
goto lbl$ret$0
label lbl$ret$0
}