FIR CFG: add union nodes
Quick quiz:
Q: In a CFG, what does `a -> b -> c -> d` mean?
A: `a`, then `b`, then `c`, then `d`.
Q: In a CFG, what does `a -> b -> d; a -> c -> d` mean?
A: `a`, then `b` or `c`, then `d`.
Q: So how do you encode "a, then (b, then c) or (c, then b), then d`?
A: You can't.
Problem is, you need to, because that's what `a; run2({ b }, { c }); d`
does when `run2` has a contract that it calls both its lambda arguments
in-place: `shuffle(listOf(block1, block2)).forEach { it() }` is a
perfectly valid implementation for it, as little sense as that makes.
So that's what union nodes solve. When a node implements
`UnionNodeMarker`, its inputs are interpreted as "all visited in some
order" instead of the normal "one of the inputs is visited".
Currently this is used for data flow. It *should* also be used for
control flow, but it isn't. But it should be. But that's not so easy.
BTW, `try` exit is NOT a union node; although lambdas in one branch can
be completed according to types' of lambdas in another, data does not
flow between the branches anyway (since we don't know how much of the
`try` executed before jumping into `catch`, and `catch`es are mutually
exclusive) so a `try` expression is more like `when` than a function
call with called-in-place-exactly-once arguments. The fact that
`exitTryExpression` used `processUnionOfArguments` in a weird way
should've hinted at that, but now we know for certain.
This commit is contained in:
+20
-20
@@ -85,13 +85,13 @@ digraph booleanOperators_kt {
|
||||
30 [label="Enter block"];
|
||||
31 [label="Access variable R|<local>/x|"];
|
||||
32 [label="Smart cast: R|<local>/x|"];
|
||||
33 [label="Function call: R|<local>/x|.R|/A.foo|()"];
|
||||
33 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
|
||||
34 [label="Access variable R|<local>/x|"];
|
||||
35 [label="Smart cast: R|<local>/x|"];
|
||||
36 [label="Function call: R|<local>/x|.R|/B.bar|()"];
|
||||
36 [label="Function call: R|<local>/x|.R|/B.bar|()" style="filled" fillcolor=yellow];
|
||||
37 [label="Access variable R|<local>/x|"];
|
||||
38 [label="Smart cast: R|<local>/x|"];
|
||||
39 [label="Function call: R|<local>/x|.R|/C.baz|()"];
|
||||
39 [label="Function call: R|<local>/x|.R|/C.baz|()" style="filled" fillcolor=yellow];
|
||||
40 [label="Exit block"];
|
||||
}
|
||||
41 [label="Exit when branch result"];
|
||||
@@ -164,13 +164,13 @@ digraph booleanOperators_kt {
|
||||
60 [label="Enter block"];
|
||||
61 [label="Access variable R|<local>/x|"];
|
||||
62 [label="Smart cast: R|<local>/x|"];
|
||||
63 [label="Function call: R|<local>/x|.R|/A.foo|()"];
|
||||
63 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
|
||||
64 [label="Access variable R|<local>/x|"];
|
||||
65 [label="Smart cast: R|<local>/x|"];
|
||||
66 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"];
|
||||
66 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()" style="filled" fillcolor=yellow];
|
||||
67 [label="Access variable R|<local>/x|"];
|
||||
68 [label="Smart cast: R|<local>/x|"];
|
||||
69 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"];
|
||||
69 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()" style="filled" fillcolor=yellow];
|
||||
70 [label="Exit block"];
|
||||
}
|
||||
71 [label="Exit when branch result"];
|
||||
@@ -224,7 +224,7 @@ digraph booleanOperators_kt {
|
||||
78 [label="Enter when branch condition "];
|
||||
79 [label="Access variable R|<local>/x|"];
|
||||
80 [label="Type operator: (R|<local>/x| !is R|A|)"];
|
||||
81 [label="Function call: (R|<local>/x| !is R|A|).R|kotlin/Boolean.not|()"];
|
||||
81 [label="Function call: (R|<local>/x| !is R|A|).R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
|
||||
82 [label="Exit when branch condition"];
|
||||
}
|
||||
83 [label="Synthetic else branch"];
|
||||
@@ -234,7 +234,7 @@ digraph booleanOperators_kt {
|
||||
85 [label="Enter block"];
|
||||
86 [label="Access variable R|<local>/x|"];
|
||||
87 [label="Smart cast: R|<local>/x|"];
|
||||
88 [label="Function call: R|<local>/x|.R|/A.foo|()"];
|
||||
88 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
|
||||
89 [label="Exit block"];
|
||||
}
|
||||
90 [label="Exit when branch result"];
|
||||
@@ -358,7 +358,7 @@ digraph booleanOperators_kt {
|
||||
130 [label="Enter right part of &&"];
|
||||
131 [label="Access variable R|<local>/x|"];
|
||||
132 [label="Smart cast: R|<local>/x|"];
|
||||
133 [label="Function call: R|<local>/x|.R|/A.bool|()"];
|
||||
133 [label="Function call: R|<local>/x|.R|/A.bool|()" style="filled" fillcolor=yellow];
|
||||
134 [label="Exit &&"];
|
||||
}
|
||||
135 [label="Exit when branch condition"];
|
||||
@@ -370,7 +370,7 @@ digraph booleanOperators_kt {
|
||||
138 [label="Enter block"];
|
||||
139 [label="Access variable R|<local>/x|"];
|
||||
140 [label="Smart cast: R|<local>/x|"];
|
||||
141 [label="Function call: R|<local>/x|.R|/A.foo|()"];
|
||||
141 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
|
||||
142 [label="Exit block"];
|
||||
}
|
||||
143 [label="Exit when branch result"];
|
||||
@@ -419,7 +419,7 @@ digraph booleanOperators_kt {
|
||||
150 [label="Enter when branch condition "];
|
||||
151 [label="Access variable R|<local>/x|"];
|
||||
152 [label="Type operator: (R|<local>/x| !is R|A|)"];
|
||||
153 [label="Function call: (R|<local>/x| !is R|A|).R|kotlin/Boolean.not|()"];
|
||||
153 [label="Function call: (R|<local>/x| !is R|A|).R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
|
||||
154 [label="Exit when branch condition"];
|
||||
}
|
||||
155 [label="Synthetic else branch"];
|
||||
@@ -429,7 +429,7 @@ digraph booleanOperators_kt {
|
||||
157 [label="Enter block"];
|
||||
158 [label="Access variable R|<local>/x|"];
|
||||
159 [label="Smart cast: R|<local>/x|"];
|
||||
160 [label="Function call: R|<local>/x|.R|/A.foo|()"];
|
||||
160 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
|
||||
161 [label="Exit block"];
|
||||
}
|
||||
162 [label="Exit when branch result"];
|
||||
@@ -488,7 +488,7 @@ digraph booleanOperators_kt {
|
||||
color=blue
|
||||
180 [label="Enter block"];
|
||||
181 [label="Access variable R|<local>/x|"];
|
||||
182 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"];
|
||||
182 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
|
||||
183 [label="Exit block"];
|
||||
}
|
||||
184 [label="Exit when branch result"];
|
||||
@@ -550,7 +550,7 @@ digraph booleanOperators_kt {
|
||||
color=blue
|
||||
202 [label="Enter block"];
|
||||
203 [label="Access variable R|<local>/x|"];
|
||||
204 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"];
|
||||
204 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
|
||||
205 [label="Exit block"];
|
||||
}
|
||||
206 [label="Exit when branch result"];
|
||||
@@ -613,7 +613,7 @@ digraph booleanOperators_kt {
|
||||
color=blue
|
||||
224 [label="Enter block"];
|
||||
225 [label="Access variable R|<local>/x|"];
|
||||
226 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"];
|
||||
226 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
|
||||
227 [label="Exit block"];
|
||||
}
|
||||
228 [label="Exit when branch result"];
|
||||
@@ -675,7 +675,7 @@ digraph booleanOperators_kt {
|
||||
color=blue
|
||||
246 [label="Enter block"];
|
||||
247 [label="Access variable R|<local>/x|"];
|
||||
248 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"];
|
||||
248 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
|
||||
249 [label="Exit block"];
|
||||
}
|
||||
250 [label="Exit when branch result"];
|
||||
@@ -738,7 +738,7 @@ digraph booleanOperators_kt {
|
||||
color=blue
|
||||
268 [label="Enter block"];
|
||||
269 [label="Access variable R|<local>/x|"];
|
||||
270 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"];
|
||||
270 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()" style="filled" fillcolor=yellow];
|
||||
271 [label="Exit block"];
|
||||
}
|
||||
272 [label="Exit when branch result"];
|
||||
@@ -802,7 +802,7 @@ digraph booleanOperators_kt {
|
||||
290 [label="Enter block"];
|
||||
291 [label="Access variable R|<local>/x|"];
|
||||
292 [label="Smart cast: R|<local>/x|"];
|
||||
293 [label="Function call: R|<local>/x|.R|/A.foo|()"];
|
||||
293 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
|
||||
294 [label="Exit block"];
|
||||
}
|
||||
295 [label="Exit when branch result"];
|
||||
@@ -866,7 +866,7 @@ digraph booleanOperators_kt {
|
||||
313 [label="Enter block"];
|
||||
314 [label="Access variable R|<local>/x|"];
|
||||
315 [label="Smart cast: R|<local>/x|"];
|
||||
316 [label="Function call: R|<local>/x|.R|/A.foo|()"];
|
||||
316 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
|
||||
317 [label="Exit block"];
|
||||
}
|
||||
318 [label="Exit when branch result"];
|
||||
@@ -931,7 +931,7 @@ digraph booleanOperators_kt {
|
||||
336 [label="Enter block"];
|
||||
337 [label="Access variable R|<local>/x|"];
|
||||
338 [label="Smart cast: R|<local>/x|"];
|
||||
339 [label="Function call: R|<local>/x|.R|/A.foo|()"];
|
||||
339 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=yellow];
|
||||
340 [label="Exit block"];
|
||||
}
|
||||
341 [label="Exit when branch result"];
|
||||
|
||||
+16
-16
@@ -46,7 +46,7 @@ digraph equalsToBoolean_kt {
|
||||
color=blue
|
||||
17 [label="Enter block"];
|
||||
18 [label="Access variable R|<local>/b|"];
|
||||
19 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()"];
|
||||
19 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()" style="filled" fillcolor=yellow];
|
||||
20 [label="Exit block"];
|
||||
}
|
||||
21 [label="Exit when branch result"];
|
||||
@@ -56,7 +56,7 @@ digraph equalsToBoolean_kt {
|
||||
23 [label="Enter block"];
|
||||
24 [label="Access variable R|<local>/b|"];
|
||||
25 [label="Smart cast: R|<local>/b|"];
|
||||
26 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
|
||||
26 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
|
||||
27 [label="Exit block"];
|
||||
}
|
||||
28 [label="Exit when branch result"];
|
||||
@@ -124,7 +124,7 @@ digraph equalsToBoolean_kt {
|
||||
45 [label="Enter block"];
|
||||
46 [label="Access variable R|<local>/b|"];
|
||||
47 [label="Smart cast: R|<local>/b|"];
|
||||
48 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
|
||||
48 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
|
||||
49 [label="Exit block"];
|
||||
}
|
||||
50 [label="Exit when branch result"];
|
||||
@@ -133,7 +133,7 @@ digraph equalsToBoolean_kt {
|
||||
color=blue
|
||||
52 [label="Enter block"];
|
||||
53 [label="Access variable R|<local>/b|"];
|
||||
54 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()"];
|
||||
54 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()" style="filled" fillcolor=yellow];
|
||||
55 [label="Exit block"];
|
||||
}
|
||||
56 [label="Exit when branch result"];
|
||||
@@ -201,7 +201,7 @@ digraph equalsToBoolean_kt {
|
||||
73 [label="Enter block"];
|
||||
74 [label="Access variable R|<local>/b|"];
|
||||
75 [label="Smart cast: R|<local>/b|"];
|
||||
76 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
|
||||
76 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
|
||||
77 [label="Exit block"];
|
||||
}
|
||||
78 [label="Exit when branch result"];
|
||||
@@ -210,7 +210,7 @@ digraph equalsToBoolean_kt {
|
||||
color=blue
|
||||
80 [label="Enter block"];
|
||||
81 [label="Access variable R|<local>/b|"];
|
||||
82 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()"];
|
||||
82 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()" style="filled" fillcolor=yellow];
|
||||
83 [label="Exit block"];
|
||||
}
|
||||
84 [label="Exit when branch result"];
|
||||
@@ -277,7 +277,7 @@ digraph equalsToBoolean_kt {
|
||||
color=blue
|
||||
101 [label="Enter block"];
|
||||
102 [label="Access variable R|<local>/b|"];
|
||||
103 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()"];
|
||||
103 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()" style="filled" fillcolor=yellow];
|
||||
104 [label="Exit block"];
|
||||
}
|
||||
105 [label="Exit when branch result"];
|
||||
@@ -287,7 +287,7 @@ digraph equalsToBoolean_kt {
|
||||
107 [label="Enter block"];
|
||||
108 [label="Access variable R|<local>/b|"];
|
||||
109 [label="Smart cast: R|<local>/b|"];
|
||||
110 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
|
||||
110 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
|
||||
111 [label="Exit block"];
|
||||
}
|
||||
112 [label="Exit when branch result"];
|
||||
@@ -355,7 +355,7 @@ digraph equalsToBoolean_kt {
|
||||
129 [label="Enter block"];
|
||||
130 [label="Access variable R|<local>/b|"];
|
||||
131 [label="Smart cast: R|<local>/b|"];
|
||||
132 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
|
||||
132 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
|
||||
133 [label="Exit block"];
|
||||
}
|
||||
134 [label="Exit when branch result"];
|
||||
@@ -364,7 +364,7 @@ digraph equalsToBoolean_kt {
|
||||
color=blue
|
||||
136 [label="Enter block"];
|
||||
137 [label="Access variable R|<local>/b|"];
|
||||
138 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()"];
|
||||
138 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()" style="filled" fillcolor=yellow];
|
||||
139 [label="Exit block"];
|
||||
}
|
||||
140 [label="Exit when branch result"];
|
||||
@@ -431,7 +431,7 @@ digraph equalsToBoolean_kt {
|
||||
color=blue
|
||||
157 [label="Enter block"];
|
||||
158 [label="Access variable R|<local>/b|"];
|
||||
159 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()"];
|
||||
159 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()" style="filled" fillcolor=yellow];
|
||||
160 [label="Exit block"];
|
||||
}
|
||||
161 [label="Exit when branch result"];
|
||||
@@ -441,7 +441,7 @@ digraph equalsToBoolean_kt {
|
||||
163 [label="Enter block"];
|
||||
164 [label="Access variable R|<local>/b|"];
|
||||
165 [label="Smart cast: R|<local>/b|"];
|
||||
166 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
|
||||
166 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
|
||||
167 [label="Exit block"];
|
||||
}
|
||||
168 [label="Exit when branch result"];
|
||||
@@ -508,7 +508,7 @@ digraph equalsToBoolean_kt {
|
||||
color=blue
|
||||
185 [label="Enter block"];
|
||||
186 [label="Access variable R|<local>/b|"];
|
||||
187 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()"];
|
||||
187 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()" style="filled" fillcolor=yellow];
|
||||
188 [label="Exit block"];
|
||||
}
|
||||
189 [label="Exit when branch result"];
|
||||
@@ -518,7 +518,7 @@ digraph equalsToBoolean_kt {
|
||||
191 [label="Enter block"];
|
||||
192 [label="Access variable R|<local>/b|"];
|
||||
193 [label="Smart cast: R|<local>/b|"];
|
||||
194 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
|
||||
194 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
|
||||
195 [label="Exit block"];
|
||||
}
|
||||
196 [label="Exit when branch result"];
|
||||
@@ -586,7 +586,7 @@ digraph equalsToBoolean_kt {
|
||||
213 [label="Enter block"];
|
||||
214 [label="Access variable R|<local>/b|"];
|
||||
215 [label="Smart cast: R|<local>/b|"];
|
||||
216 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
|
||||
216 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()" style="filled" fillcolor=yellow];
|
||||
217 [label="Exit block"];
|
||||
}
|
||||
218 [label="Exit when branch result"];
|
||||
@@ -595,7 +595,7 @@ digraph equalsToBoolean_kt {
|
||||
color=blue
|
||||
220 [label="Enter block"];
|
||||
221 [label="Access variable R|<local>/b|"];
|
||||
222 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()"];
|
||||
222 [label="Function call: R|<local>/b|.<Inapplicable(UNSAFE_CALL): kotlin/Boolean.not>#()" style="filled" fillcolor=yellow];
|
||||
223 [label="Exit block"];
|
||||
}
|
||||
224 [label="Exit when branch result"];
|
||||
|
||||
+20
-20
@@ -31,14 +31,14 @@ digraph jumpFromRhsOfOperator_kt {
|
||||
9 [label="Equality operator !="];
|
||||
10 [label="Exit left part of ||"];
|
||||
11 [label="Enter right part of ||"];
|
||||
12 [label="Function call: R|java/lang/Exception.Exception|()"];
|
||||
12 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
|
||||
13 [label="Throw: throw R|java/lang/Exception.Exception|()"];
|
||||
14 [label="Stub" style="filled" fillcolor=gray];
|
||||
15 [label="Exit ||"];
|
||||
}
|
||||
16 [label="Access variable R|<local>/a|"];
|
||||
17 [label="Smart cast: R|<local>/a|"];
|
||||
18 [label="Function call: R|<local>/a|.R|/A.foo|()"];
|
||||
18 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
|
||||
19 [label="Exit block"];
|
||||
}
|
||||
20 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
@@ -75,14 +75,14 @@ digraph jumpFromRhsOfOperator_kt {
|
||||
26 [label="Equality operator =="];
|
||||
27 [label="Exit left part of &&"];
|
||||
28 [label="Enter right part of &&"];
|
||||
29 [label="Function call: R|java/lang/Exception.Exception|()"];
|
||||
29 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
|
||||
30 [label="Throw: throw R|java/lang/Exception.Exception|()"];
|
||||
31 [label="Stub" style="filled" fillcolor=gray];
|
||||
32 [label="Exit &&"];
|
||||
}
|
||||
33 [label="Access variable R|<local>/a|"];
|
||||
34 [label="Smart cast: R|<local>/a|"];
|
||||
35 [label="Function call: R|<local>/a|.R|/A.foo|()"];
|
||||
35 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
|
||||
36 [label="Exit block"];
|
||||
}
|
||||
37 [label="Exit function teat_2" style="filled" fillcolor=red];
|
||||
@@ -125,7 +125,7 @@ digraph jumpFromRhsOfOperator_kt {
|
||||
45 [label="Equality operator !="];
|
||||
46 [label="Exit left part of ||"];
|
||||
47 [label="Enter right part of ||"];
|
||||
48 [label="Function call: R|java/lang/Exception.Exception|()"];
|
||||
48 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
|
||||
49 [label="Throw: throw R|java/lang/Exception.Exception|()"];
|
||||
50 [label="Stub" style="filled" fillcolor=gray];
|
||||
51 [label="Exit ||"];
|
||||
@@ -139,7 +139,7 @@ digraph jumpFromRhsOfOperator_kt {
|
||||
55 [label="Enter block"];
|
||||
56 [label="Access variable R|<local>/a|"];
|
||||
57 [label="Smart cast: R|<local>/a|"];
|
||||
58 [label="Function call: R|<local>/a|.R|/A.foo|()"];
|
||||
58 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
|
||||
59 [label="Exit block"];
|
||||
}
|
||||
60 [label="Exit when branch result"];
|
||||
@@ -147,7 +147,7 @@ digraph jumpFromRhsOfOperator_kt {
|
||||
}
|
||||
62 [label="Access variable R|<local>/a|"];
|
||||
63 [label="Smart cast: R|<local>/a|"];
|
||||
64 [label="Function call: R|<local>/a|.R|/A.foo|()"];
|
||||
64 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
|
||||
65 [label="Exit block"];
|
||||
}
|
||||
66 [label="Exit function test_3" style="filled" fillcolor=red];
|
||||
@@ -202,7 +202,7 @@ digraph jumpFromRhsOfOperator_kt {
|
||||
74 [label="Equality operator =="];
|
||||
75 [label="Exit left part of &&"];
|
||||
76 [label="Enter right part of &&"];
|
||||
77 [label="Function call: R|java/lang/Exception.Exception|()"];
|
||||
77 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
|
||||
78 [label="Throw: throw R|java/lang/Exception.Exception|()"];
|
||||
79 [label="Stub" style="filled" fillcolor=gray];
|
||||
80 [label="Exit &&"];
|
||||
@@ -216,7 +216,7 @@ digraph jumpFromRhsOfOperator_kt {
|
||||
84 [label="Enter block"];
|
||||
85 [label="Access variable R|<local>/a|"];
|
||||
86 [label="Smart cast: R|<local>/a|"];
|
||||
87 [label="Function call: R|<local>/a|.R|/A.foo|()"];
|
||||
87 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
|
||||
88 [label="Exit block"];
|
||||
}
|
||||
89 [label="Exit when branch result"];
|
||||
@@ -224,7 +224,7 @@ digraph jumpFromRhsOfOperator_kt {
|
||||
}
|
||||
91 [label="Access variable R|<local>/a|"];
|
||||
92 [label="Smart cast: R|<local>/a|"];
|
||||
93 [label="Function call: R|<local>/a|.R|/A.foo|()"];
|
||||
93 [label="Function call: R|<local>/a|.R|/A.foo|()" style="filled" fillcolor=yellow];
|
||||
94 [label="Exit block"];
|
||||
}
|
||||
95 [label="Exit function test_4" style="filled" fillcolor=red];
|
||||
@@ -273,14 +273,14 @@ digraph jumpFromRhsOfOperator_kt {
|
||||
101 [label="Equality operator =="];
|
||||
102 [label="Exit left part of ||"];
|
||||
103 [label="Enter right part of ||"];
|
||||
104 [label="Function call: R|java/lang/Exception.Exception|()"];
|
||||
104 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
|
||||
105 [label="Throw: throw R|java/lang/Exception.Exception|()"];
|
||||
106 [label="Stub" style="filled" fillcolor=gray];
|
||||
107 [label="Exit ||"];
|
||||
}
|
||||
108 [label="Access variable R|<local>/a|"];
|
||||
109 [label="Smart cast: R|<local>/a|"];
|
||||
110 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"];
|
||||
110 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
|
||||
111 [label="Exit block"];
|
||||
}
|
||||
112 [label="Exit function test_5" style="filled" fillcolor=red];
|
||||
@@ -317,14 +317,14 @@ digraph jumpFromRhsOfOperator_kt {
|
||||
118 [label="Equality operator !="];
|
||||
119 [label="Exit left part of &&"];
|
||||
120 [label="Enter right part of &&"];
|
||||
121 [label="Function call: R|java/lang/Exception.Exception|()"];
|
||||
121 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
|
||||
122 [label="Throw: throw R|java/lang/Exception.Exception|()"];
|
||||
123 [label="Stub" style="filled" fillcolor=gray];
|
||||
124 [label="Exit &&"];
|
||||
}
|
||||
125 [label="Access variable R|<local>/a|"];
|
||||
126 [label="Smart cast: R|<local>/a|"];
|
||||
127 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"];
|
||||
127 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
|
||||
128 [label="Exit block"];
|
||||
}
|
||||
129 [label="Exit function teat_6" style="filled" fillcolor=red];
|
||||
@@ -367,7 +367,7 @@ digraph jumpFromRhsOfOperator_kt {
|
||||
137 [label="Equality operator =="];
|
||||
138 [label="Exit left part of ||"];
|
||||
139 [label="Enter right part of ||"];
|
||||
140 [label="Function call: R|java/lang/Exception.Exception|()"];
|
||||
140 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
|
||||
141 [label="Throw: throw R|java/lang/Exception.Exception|()"];
|
||||
142 [label="Stub" style="filled" fillcolor=gray];
|
||||
143 [label="Exit ||"];
|
||||
@@ -381,7 +381,7 @@ digraph jumpFromRhsOfOperator_kt {
|
||||
147 [label="Enter block"];
|
||||
148 [label="Access variable R|<local>/a|"];
|
||||
149 [label="Smart cast: R|<local>/a|"];
|
||||
150 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"];
|
||||
150 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
|
||||
151 [label="Exit block"];
|
||||
}
|
||||
152 [label="Exit when branch result"];
|
||||
@@ -389,7 +389,7 @@ digraph jumpFromRhsOfOperator_kt {
|
||||
}
|
||||
154 [label="Access variable R|<local>/a|"];
|
||||
155 [label="Smart cast: R|<local>/a|"];
|
||||
156 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"];
|
||||
156 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
|
||||
157 [label="Exit block"];
|
||||
}
|
||||
158 [label="Exit function test_7" style="filled" fillcolor=red];
|
||||
@@ -444,7 +444,7 @@ digraph jumpFromRhsOfOperator_kt {
|
||||
166 [label="Equality operator !="];
|
||||
167 [label="Exit left part of &&"];
|
||||
168 [label="Enter right part of &&"];
|
||||
169 [label="Function call: R|java/lang/Exception.Exception|()"];
|
||||
169 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
|
||||
170 [label="Throw: throw R|java/lang/Exception.Exception|()"];
|
||||
171 [label="Stub" style="filled" fillcolor=gray];
|
||||
172 [label="Exit &&"];
|
||||
@@ -458,7 +458,7 @@ digraph jumpFromRhsOfOperator_kt {
|
||||
176 [label="Enter block"];
|
||||
177 [label="Access variable R|<local>/a|"];
|
||||
178 [label="Smart cast: R|<local>/a|"];
|
||||
179 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"];
|
||||
179 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
|
||||
180 [label="Exit block"];
|
||||
}
|
||||
181 [label="Exit when branch result"];
|
||||
@@ -466,7 +466,7 @@ digraph jumpFromRhsOfOperator_kt {
|
||||
}
|
||||
183 [label="Access variable R|<local>/a|"];
|
||||
184 [label="Smart cast: R|<local>/a|"];
|
||||
185 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()"];
|
||||
185 [label="Function call: R|<local>/a|.<Inapplicable(UNSAFE_CALL): /A.foo>#()" style="filled" fillcolor=yellow];
|
||||
186 [label="Exit block"];
|
||||
}
|
||||
187 [label="Exit function test_8" style="filled" fillcolor=red];
|
||||
|
||||
Reference in New Issue
Block a user