FIR. Refactor smart-cast representation in FIR tree

Make smart-casts non-transparent expression without delegation
to underlying FirQualifiedAccessExpression, as children delegation in
fir tree has unclear semantics
Remove two different kinds of tree nodes for smart-casts
This commit is contained in:
Simon Ogorodnik
2022-08-02 00:49:24 +02:00
committed by teamcity
parent bc9db58b3c
commit 513af2dfbc
154 changed files with 9573 additions and 9320 deletions
+90 -86
View File
@@ -72,35 +72,36 @@ digraph complex_kt {
color=blue
28 [label="Enter block"];
29 [label="Access variable R|<local>/cause|"];
30 [label="Access variable R|<local>/closeException|"];
31 [label="Function call: R|<local>/cause|.R|kotlin/Throwable.addSuppressed|(...)"];
32 [label="Exit block"];
30 [label="Smart cast: R|<local>/cause|"];
31 [label="Access variable R|<local>/closeException|"];
32 [label="Function call: R|<local>/cause|.R|kotlin/Throwable.addSuppressed|(...)"];
33 [label="Exit block"];
}
33 [label="Catch exit"];
34 [label="Catch exit"];
}
34 [label="Try expression exit"];
35 [label="Try expression exit"];
}
35 [label="Exit block"];
36 [label="Exit block"];
}
36 [label="Exit when branch result"];
37 [label="Enter when branch result"];
37 [label="Exit when branch result"];
38 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
38 [label="Enter block"];
39 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"];
40 [label="Exit block"];
39 [label="Enter block"];
40 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"];
41 [label="Exit block"];
}
41 [label="Exit when branch result"];
42 [label="Enter when branch result"];
42 [label="Exit when branch result"];
43 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
43 [label="Enter block"];
44 [label="Exit block"];
44 [label="Enter block"];
45 [label="Exit block"];
}
45 [label="Exit when branch result"];
46 [label="Exit when"];
46 [label="Exit when branch result"];
47 [label="Exit when"];
}
47 [label="Jump: ^closeFinally when () {
48 [label="Jump: ^closeFinally when () {
==(this@R|/closeFinally|, Null(null)) -> {
}
==(R|<local>/cause|, Null(null)) -> {
@@ -117,10 +118,10 @@ digraph complex_kt {
}
}
"];
48 [label="Stub" style="filled" fillcolor=gray];
49 [label="Exit block" style="filled" fillcolor=gray];
49 [label="Stub" style="filled" fillcolor=gray];
50 [label="Exit block" style="filled" fillcolor=gray];
}
50 [label="Exit function closeFinally" style="filled" fillcolor=red];
51 [label="Exit function closeFinally" style="filled" fillcolor=red];
}
4 -> {5};
5 -> {6};
@@ -129,12 +130,12 @@ digraph complex_kt {
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {42 12};
11 -> {43 12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {37 17};
16 -> {38 17};
17 -> {18};
18 -> {19};
19 -> {20};
@@ -144,9 +145,9 @@ digraph complex_kt {
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {34 27};
26 -> {35 27};
27 -> {28};
27 -> {50} [label=onUncaughtException];
27 -> {51} [label=onUncaughtException];
28 -> {29};
29 -> {30};
30 -> {31};
@@ -155,92 +156,93 @@ digraph complex_kt {
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {46};
37 -> {38};
36 -> {37};
37 -> {47};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {46};
42 -> {43};
41 -> {42};
42 -> {47};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {50};
47 -> {48} [style=dotted];
47 -> {48};
48 -> {51};
48 -> {49} [style=dotted];
49 -> {50} [style=dotted];
50 -> {51} [style=dotted];
subgraph cluster_16 {
color=red
51 [label="Enter function firstIsInstanceOrNull" style="filled" fillcolor=red];
52 [label="Enter function firstIsInstanceOrNull" style="filled" fillcolor=red];
subgraph cluster_17 {
color=blue
52 [label="Enter block"];
53 [label="Enter block"];
subgraph cluster_18 {
color=blue
53 [label="Enter block"];
54 [label="Access variable this@R|/firstIsInstanceOrNull|"];
55 [label="Function call: this@R|/firstIsInstanceOrNull|.R|SubstitutionOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<CapturedType(*)>|>|()"];
56 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Any?>|"];
54 [label="Enter block"];
55 [label="Access variable this@R|/firstIsInstanceOrNull|"];
56 [label="Function call: this@R|/firstIsInstanceOrNull|.R|SubstitutionOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<CapturedType(*)>|>|()"];
57 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Any?>|"];
subgraph cluster_19 {
color=blue
57 [label="Enter while loop"];
58 [label="Enter while loop"];
subgraph cluster_20 {
color=blue
58 [label="Enter loop condition"];
59 [label="Access variable R|<local>/<iterator>|"];
60 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.hasNext: R|kotlin/Boolean|>|()"];
61 [label="Exit loop condition"];
59 [label="Enter loop condition"];
60 [label="Access variable R|<local>/<iterator>|"];
61 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.hasNext: R|kotlin/Boolean|>|()"];
62 [label="Exit loop condition"];
}
subgraph cluster_21 {
color=blue
62 [label="Enter loop block"];
63 [label="Enter loop block"];
subgraph cluster_22 {
color=blue
63 [label="Enter block"];
64 [label="Access variable R|<local>/<iterator>|"];
65 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.next: R|kotlin/Any?|>|()"];
66 [label="Variable declaration: lval element: R|kotlin/Any?|"];
64 [label="Enter block"];
65 [label="Access variable R|<local>/<iterator>|"];
66 [label="Function call: R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/Iterator.next: R|kotlin/Any?|>|()"];
67 [label="Variable declaration: lval element: R|kotlin/Any?|"];
subgraph cluster_23 {
color=blue
67 [label="Enter when"];
68 [label="Enter when"];
subgraph cluster_24 {
color=blue
68 [label="Enter when branch condition "];
69 [label="Access variable R|<local>/element|"];
70 [label="Type operator: (R|<local>/element| is R|T|)"];
71 [label="Exit when branch condition"];
69 [label="Enter when branch condition "];
70 [label="Access variable R|<local>/element|"];
71 [label="Type operator: (R|<local>/element| is R|T|)"];
72 [label="Exit when branch condition"];
}
72 [label="Synthetic else branch"];
73 [label="Enter when branch result"];
73 [label="Synthetic else branch"];
74 [label="Enter when branch result"];
subgraph cluster_25 {
color=blue
74 [label="Enter block"];
75 [label="Access variable R|<local>/element|"];
76 [label="Jump: ^firstIsInstanceOrNull R|<local>/element|"];
77 [label="Stub" style="filled" fillcolor=gray];
78 [label="Exit block" style="filled" fillcolor=gray];
75 [label="Enter block"];
76 [label="Access variable R|<local>/element|"];
77 [label="Smart cast: R|<local>/element|"];
78 [label="Jump: ^firstIsInstanceOrNull R|<local>/element|"];
79 [label="Stub" style="filled" fillcolor=gray];
80 [label="Exit block" style="filled" fillcolor=gray];
}
79 [label="Exit when branch result" style="filled" fillcolor=gray];
80 [label="Exit when"];
81 [label="Exit when branch result" style="filled" fillcolor=gray];
82 [label="Exit when"];
}
81 [label="Exit block"];
83 [label="Exit block"];
}
82 [label="Exit loop block"];
84 [label="Exit loop block"];
}
83 [label="Exit whileloop"];
85 [label="Exit whileloop"];
}
84 [label="Exit block"];
86 [label="Exit block"];
}
85 [label="Const: Null(null)"];
86 [label="Jump: ^firstIsInstanceOrNull Null(null)"];
87 [label="Stub" style="filled" fillcolor=gray];
88 [label="Exit block" style="filled" fillcolor=gray];
87 [label="Const: Null(null)"];
88 [label="Jump: ^firstIsInstanceOrNull Null(null)"];
89 [label="Stub" style="filled" fillcolor=gray];
90 [label="Exit block" style="filled" fillcolor=gray];
}
89 [label="Exit function firstIsInstanceOrNull" style="filled" fillcolor=red];
91 [label="Exit function firstIsInstanceOrNull" style="filled" fillcolor=red];
}
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
@@ -250,8 +252,8 @@ digraph complex_kt {
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {83 62};
62 -> {63};
61 -> {62};
62 -> {85 63};
63 -> {64};
64 -> {65};
65 -> {66};
@@ -260,25 +262,27 @@ digraph complex_kt {
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {73 72};
72 -> {80};
73 -> {74};
71 -> {72};
72 -> {74 73};
73 -> {82};
74 -> {75};
75 -> {76};
76 -> {89};
76 -> {77} [style=dotted];
77 -> {78} [style=dotted];
76 -> {77};
77 -> {78};
78 -> {91};
78 -> {79} [style=dotted];
79 -> {80} [style=dotted];
80 -> {81};
81 -> {82};
82 -> {58} [color=green style=dashed];
80 -> {81} [style=dotted];
81 -> {82} [style=dotted];
82 -> {83};
83 -> {84};
84 -> {85};
84 -> {59} [color=green style=dashed];
85 -> {86};
86 -> {89};
86 -> {87} [style=dotted];
87 -> {88} [style=dotted];
86 -> {87};
87 -> {88};
88 -> {91};
88 -> {89} [style=dotted];
89 -> {90} [style=dotted];
90 -> {91} [style=dotted];
}
@@ -118,117 +118,122 @@ digraph flowFromInplaceLambda_kt {
38 [label="Postponed enter to lambda"];
subgraph cluster_12 {
color=blue
46 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
47 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
47 [label="Enter block"];
48 [label="Access variable R|<local>/x|"];
49 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
50 [label="Exit block"];
48 [label="Enter block"];
49 [label="Access variable R|<local>/x|"];
50 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
51 [label="Exit block"];
}
51 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
52 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
39 [label="Call arguments union" style="filled" fillcolor=yellow];
40 [label="Postponed exit from lambda"];
41 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
42 [label="Access variable R|<local>/x|"];
43 [label="Function call: R|/takeInt|(...)"];
44 [label="Exit block"];
43 [label="Smart cast: R|<local>/x|"];
44 [label="Function call: R|/takeInt|(...)"];
45 [label="Exit block"];
}
45 [label="Exit function test_1" style="filled" fillcolor=red];
46 [label="Exit function test_1" style="filled" fillcolor=red];
}
36 -> {37};
37 -> {38};
38 -> {46};
38 -> {47};
38 -> {40} [color=red];
38 -> {46} [style=dashed];
38 -> {47} [style=dashed];
39 -> {41} [color=red];
40 -> {41} [color=green];
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
46 -> {47};
45 -> {46};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {39} [color=red];
51 -> {40} [color=green];
51 -> {52};
52 -> {39} [color=red];
52 -> {40} [color=green];
subgraph cluster_14 {
color=red
52 [label="Enter function test_2" style="filled" fillcolor=red];
53 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
53 [label="Enter block"];
54 [label="Postponed enter to lambda"];
54 [label="Enter block"];
55 [label="Postponed enter to lambda"];
subgraph cluster_16 {
color=blue
75 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
78 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_17 {
color=blue
76 [label="Enter block"];
77 [label="Access variable R|<local>/y|"];
78 [label="Function call: R|<local>/y|.<Unresolved name: inc>#()"];
79 [label="Access variable R|<local>/x|"];
80 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
81 [label="Exit block"];
79 [label="Enter block"];
80 [label="Access variable R|<local>/y|"];
81 [label="Function call: R|<local>/y|.<Unresolved name: inc>#()"];
82 [label="Access variable R|<local>/x|"];
83 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
84 [label="Exit block"];
}
82 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
85 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
55 [label="Postponed exit from lambda"];
56 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
57 [label="Call arguments union" style="filled" fillcolor=yellow];
58 [label="Function call: R|/id|<R|kotlin/Int|>(...)"];
59 [label="Access variable R|<local>/y|"];
60 [label="Type operator: (R|<local>/y| as R|kotlin/Int|)"];
61 [label="Postponed enter to lambda"];
56 [label="Postponed exit from lambda"];
57 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
58 [label="Call arguments union" style="filled" fillcolor=yellow];
59 [label="Function call: R|/id|<R|kotlin/Int|>(...)"];
60 [label="Access variable R|<local>/y|"];
61 [label="Type operator: (R|<local>/y| as R|kotlin/Int|)"];
62 [label="Postponed enter to lambda"];
subgraph cluster_18 {
color=blue
83 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
86 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue
84 [label="Enter block"];
85 [label="Access variable R|<local>/x|"];
86 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
87 [label="Access variable R|<local>/y|"];
88 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
89 [label="Const: Int(1)"];
90 [label="Exit block"];
87 [label="Enter block"];
88 [label="Access variable R|<local>/x|"];
89 [label="Smart cast: R|<local>/x|"];
90 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
91 [label="Access variable R|<local>/y|"];
92 [label="Smart cast: R|<local>/y|"];
93 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
94 [label="Const: Int(1)"];
95 [label="Exit block"];
}
91 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
96 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
62 [label="Postponed exit from lambda"];
63 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
64 [label="Call arguments union" style="filled" fillcolor=yellow];
65 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
66 [label="Variable declaration: lval a: R|kotlin/Int|"];
67 [label="Access variable R|<local>/x|"];
68 [label="Function call: R|/takeInt|(...)"];
69 [label="Access variable R|<local>/y|"];
63 [label="Postponed exit from lambda"];
64 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
65 [label="Call arguments union" style="filled" fillcolor=yellow];
66 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
67 [label="Variable declaration: lval a: R|kotlin/Int|"];
68 [label="Access variable R|<local>/x|"];
69 [label="Smart cast: R|<local>/x|"];
70 [label="Function call: R|/takeInt|(...)"];
71 [label="Access variable R|<local>/a|"];
72 [label="Function call: R|/takeInt|(...)"];
73 [label="Exit block"];
71 [label="Access variable R|<local>/y|"];
72 [label="Smart cast: R|<local>/y|"];
73 [label="Function call: R|/takeInt|(...)"];
74 [label="Access variable R|<local>/a|"];
75 [label="Function call: R|/takeInt|(...)"];
76 [label="Exit block"];
}
74 [label="Exit function test_2" style="filled" fillcolor=red];
77 [label="Exit function test_2" style="filled" fillcolor=red];
}
52 -> {53};
53 -> {54};
54 -> {75};
54 -> {55} [color=red];
54 -> {75} [style=dashed];
55 -> {56};
54 -> {55};
55 -> {78};
55 -> {56} [color=red];
55 -> {78} [style=dashed];
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {83};
61 -> {62} [color=red];
61 -> {83} [style=dashed];
62 -> {63};
61 -> {62};
62 -> {86};
62 -> {63} [color=red];
62 -> {86} [style=dashed];
63 -> {64};
64 -> {65};
65 -> {66};
@@ -240,100 +245,103 @@ digraph flowFromInplaceLambda_kt {
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {57} [color=red];
82 -> {55} [color=green];
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
85 -> {58} [color=red];
85 -> {56} [color=green];
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {64} [color=red];
91 -> {62} [color=green];
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {65} [color=red];
96 -> {63} [color=green];
subgraph cluster_20 {
color=red
92 [label="Enter function test_3" style="filled" fillcolor=red];
97 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
93 [label="Enter block"];
94 [label="Postponed enter to lambda"];
98 [label="Enter block"];
99 [label="Postponed enter to lambda"];
subgraph cluster_22 {
color=blue
112 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
119 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_23 {
color=blue
113 [label="Enter block"];
114 [label="Access variable R|<local>/y|"];
115 [label="Function call: R|<local>/y|.<Unresolved name: inc>#()"];
116 [label="Access variable R|<local>/x|"];
117 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
118 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
119 [label="Exit block"];
120 [label="Enter block"];
121 [label="Access variable R|<local>/y|"];
122 [label="Function call: R|<local>/y|.<Unresolved name: inc>#()"];
123 [label="Access variable R|<local>/x|"];
124 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
125 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
126 [label="Exit block"];
}
120 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
127 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
95 [label="Postponed exit from lambda"];
96 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
97 [label="Function call: R|/id|<R|kotlin/Int|>(...)"];
98 [label="Postponed enter to lambda"];
100 [label="Postponed exit from lambda"];
101 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
102 [label="Function call: R|/id|<R|kotlin/Int|>(...)"];
103 [label="Postponed enter to lambda"];
subgraph cluster_24 {
color=blue
121 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
128 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_25 {
color=blue
122 [label="Enter block"];
123 [label="Access variable R|<local>/y|"];
124 [label="Type operator: (R|<local>/y| as R|kotlin/Int|)"];
125 [label="Access variable R|<local>/x|"];
126 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
127 [label="Access variable R|<local>/y|"];
128 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
129 [label="Const: Int(1)"];
130 [label="Exit block"];
129 [label="Enter block"];
130 [label="Access variable R|<local>/y|"];
131 [label="Type operator: (R|<local>/y| as R|kotlin/Int|)"];
132 [label="Access variable R|<local>/x|"];
133 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
134 [label="Access variable R|<local>/y|"];
135 [label="Smart cast: R|<local>/y|"];
136 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
137 [label="Const: Int(1)"];
138 [label="Exit block"];
}
131 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
139 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
99 [label="Postponed exit from lambda"];
100 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
101 [label="Call arguments union" style="filled" fillcolor=yellow];
102 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
103 [label="Variable declaration: lval a: R|kotlin/Int|"];
104 [label="Access variable R|<local>/x|"];
105 [label="Function call: R|/takeInt|(...)"];
106 [label="Access variable R|<local>/y|"];
107 [label="Function call: R|/takeInt|(...)"];
108 [label="Access variable R|<local>/a|"];
109 [label="Function call: R|/takeInt|(...)"];
110 [label="Exit block"];
104 [label="Postponed exit from lambda"];
105 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
106 [label="Call arguments union" style="filled" fillcolor=yellow];
107 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
108 [label="Variable declaration: lval a: R|kotlin/Int|"];
109 [label="Access variable R|<local>/x|"];
110 [label="Smart cast: R|<local>/x|"];
111 [label="Function call: R|/takeInt|(...)"];
112 [label="Access variable R|<local>/y|"];
113 [label="Smart cast: R|<local>/y|"];
114 [label="Function call: R|/takeInt|(...)"];
115 [label="Access variable R|<local>/a|"];
116 [label="Function call: R|/takeInt|(...)"];
117 [label="Exit block"];
}
111 [label="Exit function test_3" style="filled" fillcolor=red];
118 [label="Exit function test_3" style="filled" fillcolor=red];
}
92 -> {93};
93 -> {94};
94 -> {112};
94 -> {95} [color=red];
94 -> {112} [style=dashed];
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {121};
98 -> {99} [color=red];
98 -> {121} [style=dashed];
99 -> {100};
98 -> {99};
99 -> {119};
99 -> {100} [color=red];
99 -> {119} [style=dashed];
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
103 -> {128};
103 -> {104} [color=red];
103 -> {128} [style=dashed];
104 -> {105};
105 -> {106};
106 -> {107};
@@ -341,107 +349,110 @@ digraph flowFromInplaceLambda_kt {
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {101} [color=red];
120 -> {95} [color=green];
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {126};
126 -> {127};
127 -> {128};
127 -> {106} [color=red];
127 -> {100} [color=green];
128 -> {129};
129 -> {130};
130 -> {131};
131 -> {101} [color=red];
131 -> {99} [color=green];
subgraph cluster_26 {
color=red
132 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_27 {
color=blue
133 [label="Enter block"];
134 [label="Postponed enter to lambda"];
subgraph cluster_28 {
color=blue
153 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_29 {
color=blue
154 [label="Enter block"];
155 [label="Access variable R|<local>/y|"];
156 [label="Function call: R|<local>/y|.<Unresolved name: inc>#()"];
157 [label="Access variable R|<local>/x|"];
158 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
159 [label="Exit block"];
}
160 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
135 [label="Postponed exit from lambda"];
136 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
137 [label="Function call: R|/id|<R|kotlin/Int|>(...)"];
138 [label="Access variable R|<local>/y|"];
139 [label="Type operator: (R|<local>/y| as R|kotlin/Int|)"];
140 [label="Postponed enter to lambda"];
subgraph cluster_30 {
color=blue
161 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_31 {
color=blue
162 [label="Enter block"];
163 [label="Access variable R|<local>/x|"];
164 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
165 [label="Access variable R|<local>/y|"];
166 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
167 [label="Const: Int(1)"];
168 [label="Exit block"];
}
169 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
141 [label="Postponed exit from lambda"];
142 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
143 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
144 [label="Variable declaration: lval a: R|kotlin/Int|"];
145 [label="Access variable R|<local>/x|"];
146 [label="Function call: <Inapplicable(INAPPLICABLE): /takeInt>#(...)"];
147 [label="Access variable R|<local>/y|"];
148 [label="Function call: R|/takeInt|(...)"];
149 [label="Access variable R|<local>/a|"];
150 [label="Function call: R|/takeInt|(...)"];
151 [label="Exit block"];
}
152 [label="Exit function test_4" style="filled" fillcolor=red];
}
131 -> {132};
132 -> {133};
133 -> {134};
134 -> {135 153};
134 -> {153} [style=dashed];
134 -> {135};
135 -> {136};
136 -> {137};
137 -> {138};
138 -> {139};
139 -> {140};
140 -> {141 161};
140 -> {161} [style=dashed];
139 -> {106} [color=red];
139 -> {104} [color=green];
subgraph cluster_26 {
color=red
140 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_27 {
color=blue
141 [label="Enter block"];
142 [label="Postponed enter to lambda"];
subgraph cluster_28 {
color=blue
162 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_29 {
color=blue
163 [label="Enter block"];
164 [label="Access variable R|<local>/y|"];
165 [label="Function call: R|<local>/y|.<Unresolved name: inc>#()"];
166 [label="Access variable R|<local>/x|"];
167 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
168 [label="Exit block"];
}
169 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
143 [label="Postponed exit from lambda"];
144 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
145 [label="Function call: R|/id|<R|kotlin/Int|>(...)"];
146 [label="Access variable R|<local>/y|"];
147 [label="Type operator: (R|<local>/y| as R|kotlin/Int|)"];
148 [label="Postponed enter to lambda"];
subgraph cluster_30 {
color=blue
170 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_31 {
color=blue
171 [label="Enter block"];
172 [label="Access variable R|<local>/x|"];
173 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
174 [label="Access variable R|<local>/y|"];
175 [label="Smart cast: R|<local>/y|"];
176 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
177 [label="Const: Int(1)"];
178 [label="Exit block"];
}
179 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
149 [label="Postponed exit from lambda"];
150 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
151 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
152 [label="Variable declaration: lval a: R|kotlin/Int|"];
153 [label="Access variable R|<local>/x|"];
154 [label="Function call: <Inapplicable(INAPPLICABLE): /takeInt>#(...)"];
155 [label="Access variable R|<local>/y|"];
156 [label="Smart cast: R|<local>/y|"];
157 [label="Function call: R|/takeInt|(...)"];
158 [label="Access variable R|<local>/a|"];
159 [label="Function call: R|/takeInt|(...)"];
160 [label="Exit block"];
}
161 [label="Exit function test_4" style="filled" fillcolor=red];
}
140 -> {141};
141 -> {142};
142 -> {143};
142 -> {143 162};
142 -> {162} [style=dashed];
143 -> {144};
144 -> {145};
145 -> {146};
146 -> {147};
147 -> {148};
148 -> {149};
148 -> {149 170};
148 -> {170} [style=dashed];
149 -> {150};
150 -> {151};
151 -> {152};
152 -> {153};
153 -> {154};
154 -> {155};
155 -> {156};
@@ -449,7 +460,7 @@ digraph flowFromInplaceLambda_kt {
157 -> {158};
158 -> {159};
159 -> {160};
161 -> {162};
160 -> {161};
162 -> {163};
163 -> {164};
164 -> {165};
@@ -457,141 +468,150 @@ digraph flowFromInplaceLambda_kt {
166 -> {167};
167 -> {168};
168 -> {169};
subgraph cluster_32 {
color=red
170 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_33 {
color=blue
171 [label="Enter block"];
172 [label="Postponed enter to lambda"];
subgraph cluster_34 {
color=blue
185 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_35 {
color=blue
186 [label="Enter block"];
187 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
188 [label="Exit block"];
}
189 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
173 [label="Postponed exit from lambda"];
174 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
175 [label="Postponed enter to lambda"];
subgraph cluster_36 {
color=blue
190 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_37 {
color=blue
191 [label="Enter block"];
192 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
193 [label="Exit block"];
}
194 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
176 [label="Postponed exit from lambda"];
177 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
178 [label="Call arguments union" style="filled" fillcolor=yellow];
179 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
180 [label="Variable declaration: lval x: R|kotlin/Int|"];
181 [label="Access variable R|<local>/x|"];
182 [label="Function call: R|/takeInt|(...)"];
183 [label="Exit block"];
}
184 [label="Exit function test_5" style="filled" fillcolor=red];
}
170 -> {171};
171 -> {172};
172 -> {185};
172 -> {173} [color=red];
172 -> {185} [style=dashed];
172 -> {173};
173 -> {174};
174 -> {175};
175 -> {190};
175 -> {176} [color=red];
175 -> {190} [style=dashed];
175 -> {176};
176 -> {177};
177 -> {178};
178 -> {179};
179 -> {180};
subgraph cluster_32 {
color=red
180 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_33 {
color=blue
181 [label="Enter block"];
182 [label="Postponed enter to lambda"];
subgraph cluster_34 {
color=blue
195 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_35 {
color=blue
196 [label="Enter block"];
197 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
198 [label="Exit block"];
}
199 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
183 [label="Postponed exit from lambda"];
184 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
185 [label="Postponed enter to lambda"];
subgraph cluster_36 {
color=blue
200 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_37 {
color=blue
201 [label="Enter block"];
202 [label="Function call: R|/materialize|<R|kotlin/Int|>()"];
203 [label="Exit block"];
}
204 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
186 [label="Postponed exit from lambda"];
187 [label="Function call: R|kotlin/run|<R|kotlin/Int|>(...)"];
188 [label="Call arguments union" style="filled" fillcolor=yellow];
189 [label="Function call: R|/select|<R|kotlin/Int|>(...)"];
190 [label="Variable declaration: lval x: R|kotlin/Int|"];
191 [label="Access variable R|<local>/x|"];
192 [label="Function call: R|/takeInt|(...)"];
193 [label="Exit block"];
}
194 [label="Exit function test_5" style="filled" fillcolor=red];
}
180 -> {181};
181 -> {182};
182 -> {183};
182 -> {195};
182 -> {183} [color=red];
182 -> {195} [style=dashed];
183 -> {184};
185 -> {186};
184 -> {185};
185 -> {200};
185 -> {186} [color=red];
185 -> {200} [style=dashed];
186 -> {187};
187 -> {188};
188 -> {189};
189 -> {178} [color=red];
189 -> {173} [color=green];
189 -> {190};
190 -> {191};
191 -> {192};
192 -> {193};
193 -> {194};
194 -> {178} [color=red];
194 -> {176} [color=green];
subgraph cluster_38 {
color=red
195 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_39 {
color=blue
196 [label="Enter block"];
197 [label="Postponed enter to lambda"];
subgraph cluster_40 {
color=blue
204 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_41 {
color=blue
205 [label="Enter block"];
206 [label="Postponed enter to lambda"];
subgraph cluster_42 {
color=blue
211 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_43 {
color=blue
212 [label="Enter block"];
213 [label="Function call: R|/materialize|<R|kotlin/String|>()"];
214 [label="Exit block"];
}
215 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
207 [label="Postponed exit from lambda"];
208 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)"];
209 [label="Exit block"];
}
210 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
198 [label="Postponed exit from lambda"];
199 [label="Function call: R|/myRun|<R|kotlin/String|>(...)"];
200 [label="Function call: R|/id|<R|kotlin/String|>(...)"];
201 [label="Variable declaration: lval x: R|kotlin/String|"];
202 [label="Exit block"];
}
203 [label="Exit function test_6" style="filled" fillcolor=red];
}
195 -> {196};
196 -> {197};
197 -> {198 204};
197 -> {204} [style=dashed];
197 -> {198};
198 -> {199};
199 -> {200};
199 -> {188} [color=red];
199 -> {183} [color=green];
200 -> {201};
201 -> {202};
202 -> {203};
204 -> {205};
203 -> {204};
204 -> {188} [color=red];
204 -> {186} [color=green];
subgraph cluster_38 {
color=red
205 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_39 {
color=blue
206 [label="Enter block"];
207 [label="Postponed enter to lambda"];
subgraph cluster_40 {
color=blue
214 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_41 {
color=blue
215 [label="Enter block"];
216 [label="Postponed enter to lambda"];
subgraph cluster_42 {
color=blue
221 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_43 {
color=blue
222 [label="Enter block"];
223 [label="Function call: R|/materialize|<R|kotlin/String|>()"];
224 [label="Exit block"];
}
225 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
217 [label="Postponed exit from lambda"];
218 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)"];
219 [label="Exit block"];
}
220 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
208 [label="Postponed exit from lambda"];
209 [label="Function call: R|/myRun|<R|kotlin/String|>(...)"];
210 [label="Function call: R|/id|<R|kotlin/String|>(...)"];
211 [label="Variable declaration: lval x: R|kotlin/String|"];
212 [label="Exit block"];
}
213 [label="Exit function test_6" style="filled" fillcolor=red];
}
205 -> {206};
206 -> {211};
206 -> {207} [color=red];
206 -> {211} [style=dashed];
207 -> {208};
206 -> {207};
207 -> {208 214};
207 -> {214} [style=dashed];
208 -> {209};
209 -> {210};
210 -> {211};
211 -> {212};
212 -> {213};
213 -> {214};
214 -> {215};
215 -> {207} [color=green];
215 -> {216};
216 -> {221};
216 -> {217} [color=red];
216 -> {221} [style=dashed];
217 -> {218};
218 -> {219};
219 -> {220};
221 -> {222};
222 -> {223};
223 -> {224};
224 -> {225};
225 -> {217} [color=green];
}
File diff suppressed because it is too large Load Diff
@@ -75,29 +75,32 @@ digraph flowFromInplaceLambda3_kt {
22 [label="Const: String()"];
23 [label="Assignment: R|<local>/x|"];
24 [label="Access variable R|<local>/x|"];
25 [label="Access variable R|kotlin/String.length|"];
26 [label="Postponed enter to lambda"];
25 [label="Smart cast: R|<local>/x|"];
26 [label="Access variable R|kotlin/String.length|"];
27 [label="Postponed enter to lambda"];
subgraph cluster_10 {
color=blue
35 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
38 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
36 [label="Enter block"];
37 [label="Const: Int(1)"];
38 [label="Assignment: R|<local>/x|"];
39 [label="Exit block"];
39 [label="Enter block"];
40 [label="Const: Int(1)"];
41 [label="Assignment: R|<local>/x|"];
42 [label="Exit block"];
}
40 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
43 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
27 [label="Postponed exit from lambda"];
28 [label="Function call: R|/unknown|(...)"];
29 [label="Access variable R|<local>/x|"];
30 [label="Access variable <Unresolved name: length>#"];
31 [label="Access variable R|<local>/x|"];
32 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
33 [label="Exit block"];
28 [label="Postponed exit from lambda"];
29 [label="Function call: R|/unknown|(...)"];
30 [label="Access variable R|<local>/x|"];
31 [label="Smart cast: R|<local>/x|"];
32 [label="Access variable <Unresolved name: length>#"];
33 [label="Access variable R|<local>/x|"];
34 [label="Smart cast: R|<local>/x|"];
35 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
36 [label="Exit block"];
}
34 [label="Exit function test1" style="filled" fillcolor=red];
37 [label="Exit function test1" style="filled" fillcolor=red];
}
19 -> {20};
20 -> {21};
@@ -106,202 +109,223 @@ digraph flowFromInplaceLambda3_kt {
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27 35};
26 -> {35} [style=dashed];
27 -> {28};
26 -> {27};
27 -> {28 38};
27 -> {38} [style=dashed];
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
35 -> {40 36};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
38 -> {43 39};
39 -> {40};
40 -> {27};
40 -> {35} [color=green style=dashed];
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {28};
43 -> {38} [color=green style=dashed];
subgraph cluster_12 {
color=red
41 [label="Enter function test2" style="filled" fillcolor=red];
44 [label="Enter function test2" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
42 [label="Enter block"];
43 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
44 [label="Const: String()"];
45 [label="Assignment: R|<local>/x|"];
46 [label="Access variable R|<local>/x|"];
47 [label="Access variable R|kotlin/String.length|"];
48 [label="Postponed enter to lambda"];
45 [label="Enter block"];
46 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
47 [label="Const: String()"];
48 [label="Assignment: R|<local>/x|"];
49 [label="Access variable R|<local>/x|"];
50 [label="Smart cast: R|<local>/x|"];
51 [label="Access variable R|kotlin/String.length|"];
52 [label="Postponed enter to lambda"];
subgraph cluster_14 {
color=blue
58 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
64 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
59 [label="Enter block"];
60 [label="Const: Int(1)"];
61 [label="Assignment: R|<local>/x|"];
62 [label="Exit block"];
65 [label="Enter block"];
66 [label="Const: Int(1)"];
67 [label="Assignment: R|<local>/x|"];
68 [label="Exit block"];
}
63 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
69 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
49 [label="Call arguments union" style="filled" fillcolor=yellow];
50 [label="Postponed exit from lambda"];
51 [label="Function call: R|/atLeastOnce|(...)"];
52 [label="Access variable R|<local>/x|"];
53 [label="Access variable <Unresolved name: length>#"];
54 [label="Access variable R|<local>/x|"];
55 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
56 [label="Exit block"];
53 [label="Call arguments union" style="filled" fillcolor=yellow];
54 [label="Postponed exit from lambda"];
55 [label="Function call: R|/atLeastOnce|(...)"];
56 [label="Access variable R|<local>/x|"];
57 [label="Smart cast: R|<local>/x|"];
58 [label="Access variable <Unresolved name: length>#"];
59 [label="Access variable R|<local>/x|"];
60 [label="Smart cast: R|<local>/x|"];
61 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
62 [label="Exit block"];
}
57 [label="Exit function test2" style="filled" fillcolor=red];
63 [label="Exit function test2" style="filled" fillcolor=red];
}
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {58};
48 -> {50} [color=red];
48 -> {58} [style=dashed];
49 -> {51} [color=red];
50 -> {51} [color=green];
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
52 -> {64};
52 -> {54} [color=red];
52 -> {64} [style=dashed];
53 -> {55} [color=red];
54 -> {55} [color=green];
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {49} [color=red];
63 -> {50} [color=green];
63 -> {58} [color=green style=dashed];
subgraph cluster_16 {
color=red
64 [label="Enter function test3" style="filled" fillcolor=red];
subgraph cluster_17 {
color=blue
65 [label="Enter block"];
66 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
67 [label="Const: String()"];
68 [label="Assignment: R|<local>/x|"];
69 [label="Access variable R|<local>/x|"];
70 [label="Access variable R|kotlin/String.length|"];
71 [label="Postponed enter to lambda"];
subgraph cluster_18 {
color=blue
81 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue
82 [label="Enter block"];
83 [label="Const: Int(1)"];
84 [label="Assignment: R|<local>/x|"];
85 [label="Exit block"];
}
86 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
72 [label="Call arguments union" style="filled" fillcolor=yellow];
73 [label="Postponed exit from lambda"];
74 [label="Function call: R|/exactlyOnce|(...)"];
75 [label="Access variable R|<local>/x|"];
76 [label="Access variable <Unresolved name: length>#"];
77 [label="Access variable R|<local>/x|"];
78 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
79 [label="Exit block"];
}
80 [label="Exit function test3" style="filled" fillcolor=red];
}
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
69 -> {53} [color=red];
69 -> {54} [color=green];
69 -> {64} [color=green style=dashed];
subgraph cluster_16 {
color=red
70 [label="Enter function test3" style="filled" fillcolor=red];
subgraph cluster_17 {
color=blue
71 [label="Enter block"];
72 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
73 [label="Const: String()"];
74 [label="Assignment: R|<local>/x|"];
75 [label="Access variable R|<local>/x|"];
76 [label="Smart cast: R|<local>/x|"];
77 [label="Access variable R|kotlin/String.length|"];
78 [label="Postponed enter to lambda"];
subgraph cluster_18 {
color=blue
90 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue
91 [label="Enter block"];
92 [label="Const: Int(1)"];
93 [label="Assignment: R|<local>/x|"];
94 [label="Exit block"];
}
95 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
79 [label="Call arguments union" style="filled" fillcolor=yellow];
80 [label="Postponed exit from lambda"];
81 [label="Function call: R|/exactlyOnce|(...)"];
82 [label="Access variable R|<local>/x|"];
83 [label="Smart cast: R|<local>/x|"];
84 [label="Access variable <Unresolved name: length>#"];
85 [label="Access variable R|<local>/x|"];
86 [label="Smart cast: R|<local>/x|"];
87 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
88 [label="Exit block"];
}
89 [label="Exit function test3" style="filled" fillcolor=red];
}
70 -> {71};
71 -> {81};
71 -> {73} [color=red];
71 -> {81} [style=dashed];
72 -> {74} [color=red];
73 -> {74} [color=green];
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
78 -> {90};
78 -> {80} [color=red];
78 -> {90} [style=dashed];
79 -> {81} [color=red];
80 -> {81} [color=green];
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {72} [color=red];
86 -> {73} [color=green];
86 -> {81} [color=green style=dashed];
subgraph cluster_20 {
color=red
87 [label="Enter function test4" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
88 [label="Enter block"];
89 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
90 [label="Const: String()"];
91 [label="Assignment: R|<local>/x|"];
92 [label="Access variable R|<local>/x|"];
93 [label="Access variable R|kotlin/String.length|"];
94 [label="Postponed enter to lambda"];
subgraph cluster_22 {
color=blue
103 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_23 {
color=blue
104 [label="Enter block"];
105 [label="Const: Int(1)"];
106 [label="Assignment: R|<local>/x|"];
107 [label="Exit block"];
}
108 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
95 [label="Postponed exit from lambda"];
96 [label="Function call: R|/atMostOnce|(...)"];
97 [label="Access variable R|<local>/x|"];
98 [label="Access variable <Unresolved name: length>#"];
99 [label="Access variable R|<local>/x|"];
100 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
101 [label="Exit block"];
}
102 [label="Exit function test4" style="filled" fillcolor=red];
}
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95 103};
94 -> {103} [style=dashed];
95 -> {96};
94 -> {95};
95 -> {79} [color=red];
95 -> {80} [color=green];
95 -> {90} [color=green style=dashed];
subgraph cluster_20 {
color=red
96 [label="Enter function test4" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
97 [label="Enter block"];
98 [label="Variable declaration: lvar x: R|kotlin/Any?|"];
99 [label="Const: String()"];
100 [label="Assignment: R|<local>/x|"];
101 [label="Access variable R|<local>/x|"];
102 [label="Smart cast: R|<local>/x|"];
103 [label="Access variable R|kotlin/String.length|"];
104 [label="Postponed enter to lambda"];
subgraph cluster_22 {
color=blue
115 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_23 {
color=blue
116 [label="Enter block"];
117 [label="Const: Int(1)"];
118 [label="Assignment: R|<local>/x|"];
119 [label="Exit block"];
}
120 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
105 [label="Postponed exit from lambda"];
106 [label="Function call: R|/atMostOnce|(...)"];
107 [label="Access variable R|<local>/x|"];
108 [label="Smart cast: R|<local>/x|"];
109 [label="Access variable <Unresolved name: length>#"];
110 [label="Access variable R|<local>/x|"];
111 [label="Smart cast: R|<local>/x|"];
112 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
113 [label="Exit block"];
}
114 [label="Exit function test4" style="filled" fillcolor=red];
}
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
103 -> {108 104};
104 -> {105};
102 -> {103};
103 -> {104};
104 -> {105 115};
104 -> {115} [style=dashed];
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {95};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
113 -> {114};
115 -> {120 116};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {105};
}
@@ -89,11 +89,12 @@ digraph flowFromTwoInplaceLambdas_kt {
color=blue
47 [label="Enter block"];
48 [label="Access variable R|<local>/p|"];
49 [label="Access variable <Inapplicable(UNSTABLE_SMARTCAST): kotlin/String.length>#"];
50 [label="Const: Int(123)"];
51 [label="Exit block"];
49 [label="Smart cast: R|<local>/p|"];
50 [label="Access variable <Inapplicable(UNSTABLE_SMARTCAST): kotlin/String.length>#"];
51 [label="Const: Int(123)"];
52 [label="Exit block"];
}
52 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
53 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
27 [label="Call arguments union" style="filled" fillcolor=yellow];
30 [label="Postponed exit from lambda"];
@@ -152,77 +153,78 @@ digraph flowFromTwoInplaceLambdas_kt {
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {27} [color=red];
52 -> {30} [color=green];
52 -> {53};
53 -> {27} [color=red];
53 -> {30} [color=green];
subgraph cluster_13 {
color=red
53 [label="Enter function test1_tail" style="filled" fillcolor=red];
54 [label="Enter function test1_tail" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
54 [label="Enter block"];
55 [label="Access variable R|<local>/x|"];
56 [label="Variable declaration: lvar p: R|kotlin/String?|"];
55 [label="Enter block"];
56 [label="Access variable R|<local>/x|"];
57 [label="Variable declaration: lvar p: R|kotlin/String?|"];
subgraph cluster_15 {
color=blue
57 [label="Enter when"];
58 [label="Enter when"];
subgraph cluster_16 {
color=blue
58 [label="Enter when branch condition "];
59 [label="Access variable R|<local>/p|"];
60 [label="Const: Null(null)"];
61 [label="Equality operator !="];
62 [label="Exit when branch condition"];
59 [label="Enter when branch condition "];
60 [label="Access variable R|<local>/p|"];
61 [label="Const: Null(null)"];
62 [label="Equality operator !="];
63 [label="Exit when branch condition"];
}
63 [label="Synthetic else branch"];
64 [label="Enter when branch result"];
64 [label="Synthetic else branch"];
65 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
65 [label="Enter block"];
66 [label="Postponed enter to lambda"];
66 [label="Enter block"];
67 [label="Postponed enter to lambda"];
subgraph cluster_18 {
color=blue
86 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
87 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue
87 [label="Enter block"];
88 [label="Access variable R|<local>/p|"];
89 [label="Access variable <Inapplicable(UNSTABLE_SMARTCAST): kotlin/String.length>#"];
90 [label="Const: Int(123)"];
91 [label="Exit block"];
88 [label="Enter block"];
89 [label="Access variable R|<local>/p|"];
90 [label="Smart cast: R|<local>/p|"];
91 [label="Access variable <Inapplicable(UNSTABLE_SMARTCAST): kotlin/String.length>#"];
92 [label="Const: Int(123)"];
93 [label="Exit block"];
}
92 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
94 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
68 [label="Postponed exit from lambda"];
69 [label="Postponed enter to lambda"];
69 [label="Postponed exit from lambda"];
70 [label="Postponed enter to lambda"];
subgraph cluster_20 {
color=blue
79 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
80 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
80 [label="Enter block"];
81 [label="Const: Null(null)"];
82 [label="Assignment: R|<local>/p|"];
83 [label="Function call: R|/n|<R|kotlin/Int?|>()"];
84 [label="Exit block"];
81 [label="Enter block"];
82 [label="Const: Null(null)"];
83 [label="Assignment: R|<local>/p|"];
84 [label="Function call: R|/n|<R|kotlin/Int?|>()"];
85 [label="Exit block"];
}
85 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
86 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
67 [label="Call arguments union" style="filled" fillcolor=yellow];
70 [label="Postponed exit from lambda"];
71 [label="Function call: R|/run2|<R|kotlin/Int?|>(...)"];
72 [label="Access variable R|<local>/p|"];
73 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
74 [label="Exit block"];
68 [label="Call arguments union" style="filled" fillcolor=yellow];
71 [label="Postponed exit from lambda"];
72 [label="Function call: R|/run2|<R|kotlin/Int?|>(...)"];
73 [label="Access variable R|<local>/p|"];
74 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
75 [label="Exit block"];
}
75 [label="Exit when branch result"];
76 [label="Exit when"];
76 [label="Exit when branch result"];
77 [label="Exit when"];
}
77 [label="Exit block"];
78 [label="Exit block"];
}
78 [label="Exit function test1_tail" style="filled" fillcolor=red];
79 [label="Exit function test1_tail" style="filled" fillcolor=red];
}
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
@@ -231,316 +233,325 @@ digraph flowFromTwoInplaceLambdas_kt {
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {64 63};
63 -> {76};
64 -> {65};
62 -> {63};
63 -> {65 64};
64 -> {77};
65 -> {66};
66 -> {86};
66 -> {68} [color=red];
66 -> {86} [style=dashed];
67 -> {71} [color=red];
68 -> {69};
69 -> {79};
69 -> {70} [color=red];
69 -> {79} [style=dashed];
70 -> {71} [color=green];
71 -> {72};
66 -> {67};
67 -> {87};
67 -> {69} [color=red];
67 -> {87} [style=dashed];
68 -> {72} [color=red];
69 -> {70};
70 -> {80};
70 -> {71} [color=red];
70 -> {80} [style=dashed];
71 -> {72} [color=green];
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
79 -> {80};
78 -> {79};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {67} [color=red];
85 -> {70} [color=green];
86 -> {87};
85 -> {86};
86 -> {68} [color=red];
86 -> {71} [color=green];
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {67} [color=red];
92 -> {68} [color=green];
92 -> {93};
93 -> {94};
94 -> {68} [color=red];
94 -> {69} [color=green];
subgraph cluster_22 {
color=red
93 [label="Enter function test2" style="filled" fillcolor=red];
95 [label="Enter function test2" style="filled" fillcolor=red];
subgraph cluster_23 {
color=blue
94 [label="Enter block"];
95 [label="Access variable R|<local>/x|"];
96 [label="Variable declaration: lvar p: R|kotlin/Any?|"];
97 [label="Access variable R|<local>/p|"];
98 [label="Access variable <Unresolved name: length>#"];
99 [label="Postponed enter to lambda"];
96 [label="Enter block"];
97 [label="Access variable R|<local>/x|"];
98 [label="Variable declaration: lvar p: R|kotlin/Any?|"];
99 [label="Access variable R|<local>/p|"];
100 [label="Access variable <Unresolved name: length>#"];
101 [label="Postponed enter to lambda"];
subgraph cluster_24 {
color=blue
113 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
117 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_25 {
color=blue
114 [label="Enter block"];
115 [label="Const: Null(null)"];
116 [label="Assignment: R|<local>/p|"];
117 [label="Function call: R|/n|<R|kotlin/Int?|>()"];
118 [label="Exit block"];
118 [label="Enter block"];
119 [label="Const: Null(null)"];
120 [label="Assignment: R|<local>/p|"];
121 [label="Function call: R|/n|<R|kotlin/Int?|>()"];
122 [label="Exit block"];
}
119 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
123 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
101 [label="Postponed exit from lambda"];
102 [label="Postponed enter to lambda"];
103 [label="Postponed exit from lambda"];
104 [label="Postponed enter to lambda"];
subgraph cluster_26 {
color=blue
120 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
124 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_27 {
color=blue
121 [label="Enter block"];
122 [label="Access variable R|<local>/p|"];
123 [label="Type operator: (R|<local>/p| as R|kotlin/String|)"];
124 [label="Const: Int(123)"];
125 [label="Exit block"];
125 [label="Enter block"];
126 [label="Access variable R|<local>/p|"];
127 [label="Type operator: (R|<local>/p| as R|kotlin/String|)"];
128 [label="Const: Int(123)"];
129 [label="Exit block"];
}
126 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
130 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
100 [label="Call arguments union" style="filled" fillcolor=yellow];
103 [label="Postponed exit from lambda"];
104 [label="Function call: R|/run2|<R|kotlin/Int?|>(...)"];
105 [label="Access variable R|<local>/p|"];
106 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
102 [label="Call arguments union" style="filled" fillcolor=yellow];
105 [label="Postponed exit from lambda"];
106 [label="Function call: R|/run2|<R|kotlin/Int?|>(...)"];
107 [label="Access variable R|<local>/p|"];
108 [label="Enter safe call"];
109 [label="Access variable R|kotlin/String.length|"];
110 [label="Exit safe call"];
111 [label="Exit block"];
108 [label="Smart cast: R|<local>/p|"];
109 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
110 [label="Access variable R|<local>/p|"];
111 [label="Smart cast: R|<local>/p|"];
112 [label="Enter safe call"];
113 [label="Access variable R|kotlin/String.length|"];
114 [label="Exit safe call"];
115 [label="Exit block"];
}
112 [label="Exit function test2" style="filled" fillcolor=red];
116 [label="Exit function test2" style="filled" fillcolor=red];
}
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {113};
99 -> {101} [color=red];
99 -> {113} [style=dashed];
100 -> {104} [color=red];
101 -> {102};
102 -> {120};
102 -> {103} [color=red];
102 -> {120} [style=dashed];
103 -> {104} [color=green];
104 -> {105};
105 -> {106};
99 -> {100};
100 -> {101};
101 -> {117};
101 -> {103} [color=red];
101 -> {117} [style=dashed];
102 -> {106} [color=red];
103 -> {104};
104 -> {124};
104 -> {105} [color=red];
104 -> {124} [style=dashed];
105 -> {106} [color=green];
106 -> {107};
107 -> {108 110};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
111 -> {112 114};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {100} [color=red];
119 -> {101} [color=green];
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
123 -> {102} [color=red];
123 -> {103} [color=green];
124 -> {125};
125 -> {126};
126 -> {100} [color=red];
126 -> {103} [color=green];
subgraph cluster_28 {
color=red
127 [label="Enter function test3" style="filled" fillcolor=red];
subgraph cluster_29 {
color=blue
128 [label="Enter block"];
129 [label="Access variable R|<local>/x|"];
130 [label="Variable declaration: lvar p: R|kotlin/Any?|"];
131 [label="Access variable R|<local>/p|"];
132 [label="Access variable <Unresolved name: length>#"];
133 [label="Postponed enter to lambda"];
subgraph cluster_30 {
color=blue
147 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_31 {
color=blue
148 [label="Enter block"];
149 [label="Const: Null(null)"];
150 [label="Assignment: R|<local>/p|"];
151 [label="Function call: R|/n|<R|kotlin/Int?|>()"];
152 [label="Exit block"];
}
153 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
135 [label="Postponed exit from lambda"];
136 [label="Postponed enter to lambda"];
subgraph cluster_32 {
color=blue
154 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_33 {
color=blue
155 [label="Enter block"];
156 [label="Const: String()"];
157 [label="Assignment: R|<local>/p|"];
158 [label="Const: Int(123)"];
159 [label="Exit block"];
}
160 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
134 [label="Call arguments union" style="filled" fillcolor=yellow];
137 [label="Postponed exit from lambda"];
138 [label="Function call: R|/run2|<R|kotlin/Int?|>(...)"];
139 [label="Access variable R|<local>/p|"];
140 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
141 [label="Access variable R|<local>/p|"];
142 [label="Enter safe call"];
143 [label="Access variable R|kotlin/String.length|"];
144 [label="Exit safe call"];
145 [label="Exit block"];
}
146 [label="Exit function test3" style="filled" fillcolor=red];
}
126 -> {127};
127 -> {128};
128 -> {129};
129 -> {130};
130 -> {131};
130 -> {102} [color=red];
130 -> {105} [color=green];
subgraph cluster_28 {
color=red
131 [label="Enter function test3" style="filled" fillcolor=red];
subgraph cluster_29 {
color=blue
132 [label="Enter block"];
133 [label="Access variable R|<local>/x|"];
134 [label="Variable declaration: lvar p: R|kotlin/Any?|"];
135 [label="Access variable R|<local>/p|"];
136 [label="Access variable <Unresolved name: length>#"];
137 [label="Postponed enter to lambda"];
subgraph cluster_30 {
color=blue
153 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_31 {
color=blue
154 [label="Enter block"];
155 [label="Const: Null(null)"];
156 [label="Assignment: R|<local>/p|"];
157 [label="Function call: R|/n|<R|kotlin/Int?|>()"];
158 [label="Exit block"];
}
159 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
139 [label="Postponed exit from lambda"];
140 [label="Postponed enter to lambda"];
subgraph cluster_32 {
color=blue
160 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_33 {
color=blue
161 [label="Enter block"];
162 [label="Const: String()"];
163 [label="Assignment: R|<local>/p|"];
164 [label="Const: Int(123)"];
165 [label="Exit block"];
}
166 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
138 [label="Call arguments union" style="filled" fillcolor=yellow];
141 [label="Postponed exit from lambda"];
142 [label="Function call: R|/run2|<R|kotlin/Int?|>(...)"];
143 [label="Access variable R|<local>/p|"];
144 [label="Smart cast: R|<local>/p|"];
145 [label="Access variable <Inapplicable(UNSAFE_CALL): kotlin/String.length>#"];
146 [label="Access variable R|<local>/p|"];
147 [label="Smart cast: R|<local>/p|"];
148 [label="Enter safe call"];
149 [label="Access variable R|kotlin/String.length|"];
150 [label="Exit safe call"];
151 [label="Exit block"];
}
152 [label="Exit function test3" style="filled" fillcolor=red];
}
131 -> {132};
132 -> {133};
133 -> {147};
133 -> {135} [color=red];
133 -> {147} [style=dashed];
134 -> {138} [color=red];
133 -> {134};
134 -> {135};
135 -> {136};
136 -> {154};
136 -> {137} [color=red];
136 -> {154} [style=dashed];
137 -> {138} [color=green];
138 -> {139};
136 -> {137};
137 -> {153};
137 -> {139} [color=red];
137 -> {153} [style=dashed];
138 -> {142} [color=red];
139 -> {140};
140 -> {141};
141 -> {142 144};
140 -> {160};
140 -> {141} [color=red];
140 -> {160} [style=dashed];
141 -> {142} [color=green];
142 -> {143};
143 -> {144};
144 -> {145};
145 -> {146};
147 -> {148};
146 -> {147};
147 -> {148 150};
148 -> {149};
149 -> {150};
150 -> {151};
151 -> {152};
152 -> {153};
153 -> {134} [color=red];
153 -> {135} [color=green];
153 -> {154};
154 -> {155};
155 -> {156};
156 -> {157};
157 -> {158};
158 -> {159};
159 -> {160};
160 -> {134} [color=red];
160 -> {137} [color=green];
159 -> {138} [color=red];
159 -> {139} [color=green];
160 -> {161};
161 -> {162};
162 -> {163};
163 -> {164};
164 -> {165};
165 -> {166};
166 -> {138} [color=red];
166 -> {141} [color=green];
subgraph cluster_34 {
color=red
161 [label="Enter class I1" style="filled" fillcolor=red];
162 [label="Exit class I1" style="filled" fillcolor=red];
167 [label="Enter class I1" style="filled" fillcolor=red];
168 [label="Exit class I1" style="filled" fillcolor=red];
}
161 -> {162} [color=green];
167 -> {168} [color=green];
subgraph cluster_35 {
color=red
163 [label="Enter class I2" style="filled" fillcolor=red];
164 [label="Exit class I2" style="filled" fillcolor=red];
169 [label="Enter class I2" style="filled" fillcolor=red];
170 [label="Exit class I2" style="filled" fillcolor=red];
}
163 -> {164} [color=green];
169 -> {170} [color=green];
subgraph cluster_36 {
color=red
165 [label="Enter function test4" style="filled" fillcolor=red];
171 [label="Enter function test4" style="filled" fillcolor=red];
subgraph cluster_37 {
color=blue
166 [label="Enter block"];
167 [label="Access variable R|<local>/x|"];
168 [label="Access variable <Unresolved name: x>#"];
169 [label="Access variable R|<local>/x|"];
170 [label="Access variable <Unresolved name: y>#"];
171 [label="Postponed enter to lambda"];
172 [label="Enter block"];
173 [label="Access variable R|<local>/x|"];
174 [label="Access variable <Unresolved name: x>#"];
175 [label="Access variable R|<local>/x|"];
176 [label="Access variable <Unresolved name: y>#"];
177 [label="Postponed enter to lambda"];
subgraph cluster_38 {
color=blue
183 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
191 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_39 {
color=blue
184 [label="Enter block"];
185 [label="Access variable R|<local>/x|"];
186 [label="Type operator: (R|<local>/x| as R|I1|)"];
187 [label="Access variable R|<local>/x|"];
188 [label="Access variable <Unresolved name: y>#"];
189 [label="Function call: R|/n|<R|kotlin/Int?|>()"];
190 [label="Exit block"];
}
191 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
173 [label="Postponed exit from lambda"];
174 [label="Postponed enter to lambda"];
subgraph cluster_40 {
color=blue
192 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_41 {
color=blue
193 [label="Enter block"];
194 [label="Access variable R|<local>/x|"];
195 [label="Type operator: (R|<local>/x| as R|I2|)"];
196 [label="Access variable R|<local>/x|"];
197 [label="Access variable <Unresolved name: x>#"];
198 [label="Const: Int(123)"];
192 [label="Enter block"];
193 [label="Access variable R|<local>/x|"];
194 [label="Type operator: (R|<local>/x| as R|I1|)"];
195 [label="Access variable R|<local>/x|"];
196 [label="Smart cast: R|<local>/x|"];
197 [label="Access variable <Unresolved name: y>#"];
198 [label="Function call: R|/n|<R|kotlin/Int?|>()"];
199 [label="Exit block"];
}
200 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
172 [label="Call arguments union" style="filled" fillcolor=yellow];
175 [label="Postponed exit from lambda"];
176 [label="Function call: R|/run2|<R|kotlin/Int?|>(...)"];
177 [label="Access variable R|<local>/x|"];
178 [label="Access variable R|/I1.x|"];
179 [label="Access variable R|<local>/x|"];
180 [label="Access variable R|/I2.y|"];
181 [label="Exit block"];
179 [label="Postponed exit from lambda"];
180 [label="Postponed enter to lambda"];
subgraph cluster_40 {
color=blue
201 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_41 {
color=blue
202 [label="Enter block"];
203 [label="Access variable R|<local>/x|"];
204 [label="Type operator: (R|<local>/x| as R|I2|)"];
205 [label="Access variable R|<local>/x|"];
206 [label="Smart cast: R|<local>/x|"];
207 [label="Access variable <Unresolved name: x>#"];
208 [label="Const: Int(123)"];
209 [label="Exit block"];
}
210 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
178 [label="Call arguments union" style="filled" fillcolor=yellow];
181 [label="Postponed exit from lambda"];
182 [label="Function call: R|/run2|<R|kotlin/Int?|>(...)"];
183 [label="Access variable R|<local>/x|"];
184 [label="Smart cast: R|<local>/x|"];
185 [label="Access variable R|/I1.x|"];
186 [label="Access variable R|<local>/x|"];
187 [label="Smart cast: R|<local>/x|"];
188 [label="Access variable R|/I2.y|"];
189 [label="Exit block"];
}
182 [label="Exit function test4" style="filled" fillcolor=red];
190 [label="Exit function test4" style="filled" fillcolor=red];
}
165 -> {166};
166 -> {167};
167 -> {168};
168 -> {169};
169 -> {170};
170 -> {171};
171 -> {183};
171 -> {173} [color=red];
171 -> {183} [style=dashed];
172 -> {176} [color=red];
171 -> {172};
172 -> {173};
173 -> {174};
174 -> {192};
174 -> {175} [color=red];
174 -> {192} [style=dashed];
175 -> {176} [color=green];
174 -> {175};
175 -> {176};
176 -> {177};
177 -> {178};
178 -> {179};
177 -> {191};
177 -> {179} [color=red];
177 -> {191} [style=dashed];
178 -> {182} [color=red];
179 -> {180};
180 -> {181};
181 -> {182};
180 -> {201};
180 -> {181} [color=red];
180 -> {201} [style=dashed];
181 -> {182} [color=green];
182 -> {183};
183 -> {184};
184 -> {185};
185 -> {186};
@@ -548,9 +559,7 @@ digraph flowFromTwoInplaceLambdas_kt {
187 -> {188};
188 -> {189};
189 -> {190};
190 -> {191};
191 -> {172} [color=red];
191 -> {173} [color=green];
191 -> {192};
192 -> {193};
193 -> {194};
194 -> {195};
@@ -559,7 +568,18 @@ digraph flowFromTwoInplaceLambdas_kt {
197 -> {198};
198 -> {199};
199 -> {200};
200 -> {172} [color=red];
200 -> {175} [color=green];
200 -> {178} [color=red];
200 -> {179} [color=green];
201 -> {202};
202 -> {203};
203 -> {204};
204 -> {205};
205 -> {206};
206 -> {207};
207 -> {208};
208 -> {209};
209 -> {210};
210 -> {178} [color=red];
210 -> {181} [color=green];
}
+267 -255
View File
@@ -30,29 +30,31 @@ digraph jumps_kt {
color=blue
11 [label="Enter block"];
12 [label="Access variable R|<local>/x|"];
13 [label="Exit block"];
13 [label="Smart cast: R|<local>/x|"];
14 [label="Exit block"];
}
14 [label="Exit when branch result"];
15 [label="Enter when branch result"];
15 [label="Exit when branch result"];
16 [label="Enter when branch result"];
subgraph cluster_6 {
color=blue
16 [label="Enter block"];
17 [label="Function call: R|java/lang/Exception.Exception|()"];
18 [label="Throw: throw R|java/lang/Exception.Exception|()"];
19 [label="Stub" style="filled" fillcolor=gray];
20 [label="Exit block" style="filled" fillcolor=gray];
17 [label="Enter block"];
18 [label="Function call: R|java/lang/Exception.Exception|()"];
19 [label="Throw: throw R|java/lang/Exception.Exception|()"];
20 [label="Stub" style="filled" fillcolor=gray];
21 [label="Exit block" style="filled" fillcolor=gray];
}
21 [label="Exit when branch result" style="filled" fillcolor=gray];
22 [label="Exit when"];
22 [label="Exit when branch result" style="filled" fillcolor=gray];
23 [label="Exit when"];
}
23 [label="Variable declaration: lval y: R|kotlin/Int|"];
24 [label="Access variable R|<local>/y|"];
25 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
26 [label="Access variable R|<local>/x|"];
27 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
28 [label="Exit block"];
24 [label="Variable declaration: lval y: R|kotlin/Int|"];
25 [label="Access variable R|<local>/y|"];
26 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
27 [label="Access variable R|<local>/x|"];
28 [label="Smart cast: R|<local>/x|"];
29 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
30 [label="Exit block"];
}
29 [label="Exit function test_1" style="filled" fillcolor=red];
31 [label="Exit function test_1" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
@@ -61,95 +63,97 @@ digraph jumps_kt {
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {15 8};
7 -> {16 8};
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {22};
15 -> {16};
14 -> {15};
15 -> {23};
16 -> {17};
17 -> {18};
18 -> {29} [label=onUncaughtException];
18 -> {19} [style=dotted];
18 -> {19};
19 -> {31} [label=onUncaughtException];
19 -> {20} [style=dotted];
20 -> {21} [style=dotted];
21 -> {22} [style=dotted];
22 -> {23};
22 -> {23} [style=dotted];
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
subgraph cluster_7 {
color=red
30 [label="Enter function test_2" style="filled" fillcolor=red];
32 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
31 [label="Enter block"];
33 [label="Enter block"];
subgraph cluster_9 {
color=blue
32 [label="Enter when"];
34 [label="Enter when"];
subgraph cluster_10 {
color=blue
33 [label="Enter when branch condition "];
34 [label="Access variable R|<local>/x|"];
35 [label="Const: Null(null)"];
36 [label="Equality operator =="];
37 [label="Exit when branch condition"];
35 [label="Enter when branch condition "];
36 [label="Access variable R|<local>/x|"];
37 [label="Const: Null(null)"];
38 [label="Equality operator =="];
39 [label="Exit when branch condition"];
}
subgraph cluster_11 {
color=blue
38 [label="Enter when branch condition else"];
39 [label="Exit when branch condition"];
40 [label="Enter when branch condition else"];
41 [label="Exit when branch condition"];
}
40 [label="Enter when branch result"];
42 [label="Enter when branch result"];
subgraph cluster_12 {
color=blue
41 [label="Enter block"];
42 [label="Access variable R|<local>/x|"];
43 [label="Exit block"];
43 [label="Enter block"];
44 [label="Access variable R|<local>/x|"];
45 [label="Smart cast: R|<local>/x|"];
46 [label="Exit block"];
}
44 [label="Exit when branch result"];
45 [label="Enter when branch result"];
47 [label="Exit when branch result"];
48 [label="Enter when branch result"];
subgraph cluster_13 {
color=blue
46 [label="Enter block"];
47 [label="Access variable R|<local>/x|"];
48 [label="Exit block"];
49 [label="Enter block"];
50 [label="Access variable R|<local>/x|"];
51 [label="Smart cast: R|<local>/x|"];
52 [label="Exit block"];
}
49 [label="Exit when branch result"];
50 [label="Exit when"];
53 [label="Exit when branch result"];
54 [label="Exit when"];
}
51 [label="Variable declaration: lval y: R|kotlin/Int?|"];
52 [label="Access variable R|<local>/y|"];
53 [label="Function call: R|<local>/y|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()"];
54 [label="Exit block"];
55 [label="Variable declaration: lval y: R|kotlin/Int?|"];
56 [label="Access variable R|<local>/y|"];
57 [label="Function call: R|<local>/y|.<Inapplicable(UNSAFE_CALL): kotlin/Int.inc>#()"];
58 [label="Exit block"];
}
55 [label="Exit function test_2" style="filled" fillcolor=red];
59 [label="Exit function test_2" style="filled" fillcolor=red];
}
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {45 38};
37 -> {38};
38 -> {39};
39 -> {40};
39 -> {48 40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {50};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
47 -> {54};
48 -> {49};
49 -> {50};
50 -> {51};
@@ -157,256 +161,264 @@ digraph jumps_kt {
52 -> {53};
53 -> {54};
54 -> {55};
subgraph cluster_14 {
color=red
56 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
57 [label="Enter block"];
subgraph cluster_16 {
color=blue
58 [label="Enter while loop"];
subgraph cluster_17 {
color=blue
59 [label="Enter loop condition"];
60 [label="Const: Boolean(true)"];
61 [label="Exit loop condition"];
}
subgraph cluster_18 {
color=blue
62 [label="Enter loop block"];
subgraph cluster_19 {
color=blue
63 [label="Enter block"];
64 [label="Access variable R|<local>/x|"];
65 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
66 [label="Jump: break@@@[Boolean(true)] "];
67 [label="Stub" style="filled" fillcolor=gray];
68 [label="Exit block" style="filled" fillcolor=gray];
}
69 [label="Exit loop block" style="filled" fillcolor=gray];
}
70 [label="Exit whileloop"];
}
71 [label="Access variable R|<local>/x|"];
72 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
73 [label="Exit block"];
}
74 [label="Exit function test_3" style="filled" fillcolor=red];
}
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
subgraph cluster_14 {
color=red
60 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
61 [label="Enter block"];
subgraph cluster_16 {
color=blue
62 [label="Enter while loop"];
subgraph cluster_17 {
color=blue
63 [label="Enter loop condition"];
64 [label="Const: Boolean(true)"];
65 [label="Exit loop condition"];
}
subgraph cluster_18 {
color=blue
66 [label="Enter loop block"];
subgraph cluster_19 {
color=blue
67 [label="Enter block"];
68 [label="Access variable R|<local>/x|"];
69 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
70 [label="Jump: break@@@[Boolean(true)] "];
71 [label="Stub" style="filled" fillcolor=gray];
72 [label="Exit block" style="filled" fillcolor=gray];
}
73 [label="Exit loop block" style="filled" fillcolor=gray];
}
74 [label="Exit whileloop"];
}
75 [label="Access variable R|<local>/x|"];
76 [label="Smart cast: R|<local>/x|"];
77 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
78 [label="Exit block"];
}
79 [label="Exit function test_3" style="filled" fillcolor=red];
}
60 -> {61};
61 -> {62};
61 -> {70} [style=dotted];
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {70};
66 -> {67} [style=dotted];
67 -> {68} [style=dotted];
68 -> {69} [style=dotted];
69 -> {59} [color=green style=dotted];
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
subgraph cluster_20 {
color=red
75 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
76 [label="Enter block"];
subgraph cluster_22 {
color=blue
77 [label="Enter do-while loop"];
subgraph cluster_23 {
color=blue
78 [label="Enter loop block"];
subgraph cluster_24 {
color=blue
79 [label="Enter block"];
80 [label="Access variable R|<local>/x|"];
81 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
82 [label="Jump: break@@@[Boolean(true)] "];
83 [label="Stub" style="filled" fillcolor=gray];
84 [label="Exit block" style="filled" fillcolor=gray];
}
85 [label="Exit loop block" style="filled" fillcolor=gray];
}
subgraph cluster_25 {
color=blue
86 [label="Enter loop condition" style="filled" fillcolor=gray];
87 [label="Const: Boolean(true)" style="filled" fillcolor=gray];
88 [label="Exit loop condition" style="filled" fillcolor=gray];
}
89 [label="Exit do-whileloop"];
}
90 [label="Access variable R|<local>/x|"];
91 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
92 [label="Exit block"];
}
93 [label="Exit function test_4" style="filled" fillcolor=red];
}
65 -> {74} [style=dotted];
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {74};
70 -> {71} [style=dotted];
71 -> {72} [style=dotted];
72 -> {73} [style=dotted];
73 -> {63} [color=green style=dotted];
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
subgraph cluster_20 {
color=red
80 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
81 [label="Enter block"];
subgraph cluster_22 {
color=blue
82 [label="Enter do-while loop"];
subgraph cluster_23 {
color=blue
83 [label="Enter loop block"];
subgraph cluster_24 {
color=blue
84 [label="Enter block"];
85 [label="Access variable R|<local>/x|"];
86 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
87 [label="Jump: break@@@[Boolean(true)] "];
88 [label="Stub" style="filled" fillcolor=gray];
89 [label="Exit block" style="filled" fillcolor=gray];
}
90 [label="Exit loop block" style="filled" fillcolor=gray];
}
subgraph cluster_25 {
color=blue
91 [label="Enter loop condition" style="filled" fillcolor=gray];
92 [label="Const: Boolean(true)" style="filled" fillcolor=gray];
93 [label="Exit loop condition" style="filled" fillcolor=gray];
}
94 [label="Exit do-whileloop"];
}
95 [label="Access variable R|<local>/x|"];
96 [label="Smart cast: R|<local>/x|"];
97 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
98 [label="Exit block"];
}
99 [label="Exit function test_4" style="filled" fillcolor=red];
}
80 -> {81};
81 -> {82};
82 -> {89};
82 -> {83} [style=dotted];
83 -> {84} [style=dotted];
84 -> {85} [style=dotted];
85 -> {86} [style=dotted];
86 -> {87} [style=dotted];
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {94};
87 -> {88} [style=dotted];
88 -> {89} [style=dotted];
88 -> {78} [color=green style=dotted];
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {93};
subgraph cluster_26 {
color=red
94 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_27 {
color=blue
95 [label="Enter block"];
subgraph cluster_28 {
color=blue
96 [label="Enter while loop"];
subgraph cluster_29 {
color=blue
97 [label="Enter loop condition"];
98 [label="Access variable R|<local>/b|"];
99 [label="Exit loop condition"];
}
subgraph cluster_30 {
color=blue
100 [label="Enter loop block"];
subgraph cluster_31 {
color=blue
101 [label="Enter block"];
subgraph cluster_32 {
color=blue
102 [label="Enter when"];
subgraph cluster_33 {
color=blue
103 [label="Enter when branch condition "];
104 [label="Access variable R|<local>/b|"];
105 [label="Exit when branch condition"];
}
106 [label="Synthetic else branch"];
107 [label="Enter when branch result"];
subgraph cluster_34 {
color=blue
108 [label="Enter block"];
109 [label="Jump: continue@@@[R|<local>/b|] "];
110 [label="Stub" style="filled" fillcolor=gray];
111 [label="Exit block" style="filled" fillcolor=gray];
}
112 [label="Exit when branch result" style="filled" fillcolor=gray];
113 [label="Exit when"];
}
114 [label="Exit block"];
}
115 [label="Exit loop block"];
}
116 [label="Exit whileloop"];
}
117 [label="Exit block"];
}
118 [label="Exit function test_5" style="filled" fillcolor=red];
}
89 -> {90} [style=dotted];
90 -> {91} [style=dotted];
91 -> {92} [style=dotted];
92 -> {93} [style=dotted];
93 -> {94} [style=dotted];
93 -> {83} [color=green style=dotted];
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {116 100};
subgraph cluster_26 {
color=red
100 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_27 {
color=blue
101 [label="Enter block"];
subgraph cluster_28 {
color=blue
102 [label="Enter while loop"];
subgraph cluster_29 {
color=blue
103 [label="Enter loop condition"];
104 [label="Access variable R|<local>/b|"];
105 [label="Exit loop condition"];
}
subgraph cluster_30 {
color=blue
106 [label="Enter loop block"];
subgraph cluster_31 {
color=blue
107 [label="Enter block"];
subgraph cluster_32 {
color=blue
108 [label="Enter when"];
subgraph cluster_33 {
color=blue
109 [label="Enter when branch condition "];
110 [label="Access variable R|<local>/b|"];
111 [label="Exit when branch condition"];
}
112 [label="Synthetic else branch"];
113 [label="Enter when branch result"];
subgraph cluster_34 {
color=blue
114 [label="Enter block"];
115 [label="Jump: continue@@@[R|<local>/b|] "];
116 [label="Stub" style="filled" fillcolor=gray];
117 [label="Exit block" style="filled" fillcolor=gray];
}
118 [label="Exit when branch result" style="filled" fillcolor=gray];
119 [label="Exit when"];
}
120 [label="Exit block"];
}
121 [label="Exit loop block"];
}
122 [label="Exit whileloop"];
}
123 [label="Exit block"];
}
124 [label="Exit function test_5" style="filled" fillcolor=red];
}
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {107 106};
106 -> {113};
105 -> {122 106};
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {110} [style=dotted];
109 -> {96} [color=green style=dashed];
110 -> {111} [style=dotted];
111 -> {112} [style=dotted];
112 -> {113} [style=dotted];
109 -> {110};
110 -> {111};
111 -> {113 112};
112 -> {119};
113 -> {114};
114 -> {115};
115 -> {97} [color=green style=dashed];
116 -> {117};
117 -> {118};
115 -> {116} [style=dotted];
115 -> {102} [color=green style=dashed];
116 -> {117} [style=dotted];
117 -> {118} [style=dotted];
118 -> {119} [style=dotted];
119 -> {120};
120 -> {121};
121 -> {103} [color=green style=dashed];
122 -> {123};
123 -> {124};
subgraph cluster_35 {
color=red
119 [label="Enter function run" style="filled" fillcolor=red];
125 [label="Enter function run" style="filled" fillcolor=red];
subgraph cluster_36 {
color=blue
120 [label="Enter block"];
121 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
122 [label="Exit block"];
126 [label="Enter block"];
127 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
128 [label="Exit block"];
}
123 [label="Exit function run" style="filled" fillcolor=red];
129 [label="Exit function run" style="filled" fillcolor=red];
}
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
125 -> {126};
126 -> {127};
127 -> {128};
128 -> {129};
subgraph cluster_37 {
color=red
124 [label="Enter function test_6" style="filled" fillcolor=red];
130 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_38 {
color=blue
125 [label="Enter block"];
126 [label="Postponed enter to lambda"];
131 [label="Enter block"];
132 [label="Postponed enter to lambda"];
subgraph cluster_39 {
color=blue
131 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
137 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_40 {
color=blue
132 [label="Enter block"];
133 [label="Jump: ^@run Unit"];
134 [label="Stub" style="filled" fillcolor=gray];
135 [label="Exit block" style="filled" fillcolor=gray];
138 [label="Enter block"];
139 [label="Jump: ^@run Unit"];
140 [label="Stub" style="filled" fillcolor=gray];
141 [label="Exit block" style="filled" fillcolor=gray];
}
136 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
142 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
127 [label="Postponed exit from lambda"];
128 [label="Function call: R|/run|(...)"];
129 [label="Exit block"];
133 [label="Postponed exit from lambda"];
134 [label="Function call: R|/run|(...)"];
135 [label="Exit block"];
}
130 [label="Exit function test_6" style="filled" fillcolor=red];
136 [label="Exit function test_6" style="filled" fillcolor=red];
}
124 -> {125};
125 -> {126};
126 -> {127 131};
126 -> {131} [style=dashed];
127 -> {128};
128 -> {129};
129 -> {130};
131 -> {136 132};
132 -> {133};
133 -> {136};
133 -> {134} [style=dotted];
134 -> {135} [style=dotted];
135 -> {136} [style=dotted];
136 -> {127};
136 -> {131} [color=green style=dashed];
130 -> {131};
131 -> {132};
132 -> {133 137};
132 -> {137} [style=dashed];
133 -> {134};
134 -> {135};
135 -> {136};
137 -> {142 138};
138 -> {139};
139 -> {142};
139 -> {140} [style=dotted];
140 -> {141} [style=dotted];
141 -> {142} [style=dotted];
142 -> {133};
142 -> {137} [color=green style=dashed];
}
+120 -116
View File
@@ -48,10 +48,11 @@ digraph lambdas_kt {
color=blue
24 [label="Enter block"];
25 [label="Access variable R|<local>/x|"];
26 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
27 [label="Exit block"];
26 [label="Smart cast: R|<local>/x|"];
27 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
28 [label="Exit block"];
}
28 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
29 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
16 [label="Postponed exit from lambda"];
17 [label="Function call: R|/run|(...)"];
@@ -82,208 +83,211 @@ digraph lambdas_kt {
19 -> {20};
20 -> {21};
21 -> {22};
23 -> {28 24};
23 -> {29 24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {16};
28 -> {23} [color=green style=dashed];
28 -> {29};
29 -> {16};
29 -> {23} [color=green style=dashed];
subgraph cluster_9 {
color=red
29 [label="Enter function test_2" style="filled" fillcolor=red];
30 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
30 [label="Enter block"];
31 [label="Enter block"];
subgraph cluster_11 {
color=blue
31 [label="Enter when"];
32 [label="Enter when"];
subgraph cluster_12 {
color=blue
32 [label="Enter when branch condition "];
33 [label="Access variable R|<local>/x|"];
34 [label="Type operator: (R|<local>/x| is R|kotlin/Int|)"];
35 [label="Exit when branch condition"];
33 [label="Enter when branch condition "];
34 [label="Access variable R|<local>/x|"];
35 [label="Type operator: (R|<local>/x| is R|kotlin/Int|)"];
36 [label="Exit when branch condition"];
}
36 [label="Synthetic else branch"];
37 [label="Enter when branch result"];
37 [label="Synthetic else branch"];
38 [label="Enter when branch result"];
subgraph cluster_13 {
color=blue
38 [label="Enter block"];
39 [label="Postponed enter to lambda"];
39 [label="Enter block"];
40 [label="Postponed enter to lambda"];
subgraph cluster_14 {
color=blue
48 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
49 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
49 [label="Enter block"];
50 [label="Access variable R|<local>/x|"];
51 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
52 [label="Exit block"];
50 [label="Enter block"];
51 [label="Access variable R|<local>/x|"];
52 [label="Smart cast: R|<local>/x|"];
53 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
54 [label="Exit block"];
}
53 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
55 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
40 [label="Postponed exit from lambda"];
41 [label="Exit anonymous function expression"];
42 [label="Variable declaration: lval lambda: R|() -> kotlin/Int|"];
43 [label="Exit block"];
41 [label="Postponed exit from lambda"];
42 [label="Exit anonymous function expression"];
43 [label="Variable declaration: lval lambda: R|() -> kotlin/Int|"];
44 [label="Exit block"];
}
44 [label="Exit when branch result"];
45 [label="Exit when"];
45 [label="Exit when branch result"];
46 [label="Exit when"];
}
46 [label="Exit block"];
47 [label="Exit block"];
}
47 [label="Exit function test_2" style="filled" fillcolor=red];
48 [label="Exit function test_2" style="filled" fillcolor=red];
}
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {37 36};
36 -> {45};
37 -> {38};
35 -> {36};
36 -> {38 37};
37 -> {46};
38 -> {39};
39 -> {40 48};
39 -> {48} [style=dashed];
40 -> {41};
39 -> {40};
40 -> {41 49};
40 -> {49} [style=dashed];
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
48 -> {49};
47 -> {48};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
subgraph cluster_16 {
color=red
54 [label="Enter function getInt" style="filled" fillcolor=red];
56 [label="Enter function getInt" style="filled" fillcolor=red];
subgraph cluster_17 {
color=blue
55 [label="Enter block"];
56 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
57 [label="Const: Int(1)"];
58 [label="Jump: ^getInt Int(1)"];
59 [label="Stub" style="filled" fillcolor=gray];
60 [label="Exit block" style="filled" fillcolor=gray];
57 [label="Enter block"];
58 [label="Function call: R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
59 [label="Const: Int(1)"];
60 [label="Jump: ^getInt Int(1)"];
61 [label="Stub" style="filled" fillcolor=gray];
62 [label="Exit block" style="filled" fillcolor=gray];
}
61 [label="Exit function getInt" style="filled" fillcolor=red];
63 [label="Exit function getInt" style="filled" fillcolor=red];
}
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {61};
58 -> {59} [style=dotted];
59 -> {60} [style=dotted];
58 -> {59};
59 -> {60};
60 -> {63};
60 -> {61} [style=dotted];
61 -> {62} [style=dotted];
62 -> {63} [style=dotted];
subgraph cluster_18 {
color=red
62 [label="Enter function test_3" style="filled" fillcolor=red];
64 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue
63 [label="Enter block"];
64 [label="Postponed enter to lambda"];
65 [label="Enter block"];
66 [label="Postponed enter to lambda"];
subgraph cluster_20 {
color=blue
71 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
73 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
72 [label="Enter block"];
73 [label="Const: Int(1)"];
74 [label="Jump: ^test_3 Int(1)"];
75 [label="Stub" style="filled" fillcolor=gray];
76 [label="Exit block" style="filled" fillcolor=gray];
74 [label="Enter block"];
75 [label="Const: Int(1)"];
76 [label="Jump: ^test_3 Int(1)"];
77 [label="Stub" style="filled" fillcolor=gray];
78 [label="Exit block" style="filled" fillcolor=gray];
}
77 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
79 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
65 [label="Postponed exit from lambda"];
66 [label="Function call: R|/getInt|(...)"];
67 [label="Jump: ^test_3 R|/getInt|(<L> = getInt@fun <anonymous>(): R|kotlin/Unit| <inline=Inline, kind=UNKNOWN> {
67 [label="Postponed exit from lambda"];
68 [label="Function call: R|/getInt|(...)"];
69 [label="Jump: ^test_3 R|/getInt|(<L> = getInt@fun <anonymous>(): R|kotlin/Unit| <inline=Inline, kind=UNKNOWN> {
^test_3 Int(1)
}
)"];
68 [label="Stub" style="filled" fillcolor=gray];
69 [label="Exit block" style="filled" fillcolor=gray];
70 [label="Stub" style="filled" fillcolor=gray];
71 [label="Exit block" style="filled" fillcolor=gray];
}
70 [label="Exit function test_3" style="filled" fillcolor=red];
72 [label="Exit function test_3" style="filled" fillcolor=red];
}
62 -> {63};
63 -> {64};
64 -> {65 71};
64 -> {71} [style=dashed];
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {70};
67 -> {68} [style=dotted];
68 -> {69} [style=dotted];
66 -> {67 73};
66 -> {73} [style=dashed];
67 -> {68};
68 -> {69};
69 -> {72};
69 -> {70} [style=dotted];
71 -> {77 72};
72 -> {73};
73 -> {74};
74 -> {70};
74 -> {75} [style=dotted];
75 -> {76} [style=dotted];
70 -> {71} [style=dotted];
71 -> {72} [style=dotted];
73 -> {79 74};
74 -> {75};
75 -> {76};
76 -> {72};
76 -> {77} [style=dotted];
77 -> {65};
77 -> {71} [color=green style=dashed];
77 -> {78} [style=dotted];
78 -> {79} [style=dotted];
79 -> {67};
79 -> {73} [color=green style=dashed];
subgraph cluster_22 {
color=red
78 [label="Enter function test_4" style="filled" fillcolor=red];
80 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_23 {
color=blue
79 [label="Enter block"];
80 [label="Postponed enter to lambda"];
81 [label="Enter block"];
82 [label="Postponed enter to lambda"];
subgraph cluster_24 {
color=blue
87 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
89 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_25 {
color=blue
88 [label="Enter block"];
89 [label="Const: Int(1)"];
90 [label="Jump: ^test_4 Int(1)"];
91 [label="Stub" style="filled" fillcolor=gray];
92 [label="Exit block" style="filled" fillcolor=gray];
90 [label="Enter block"];
91 [label="Const: Int(1)"];
92 [label="Jump: ^test_4 Int(1)"];
93 [label="Stub" style="filled" fillcolor=gray];
94 [label="Exit block" style="filled" fillcolor=gray];
}
93 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
95 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
81 [label="Postponed exit from lambda"];
82 [label="Function call: R|/getInt|(...)"];
83 [label="Jump: ^test_4 R|/getInt|(block = getInt@fun <anonymous>(): R|kotlin/Unit| <inline=Inline, kind=UNKNOWN> {
83 [label="Postponed exit from lambda"];
84 [label="Function call: R|/getInt|(...)"];
85 [label="Jump: ^test_4 R|/getInt|(block = getInt@fun <anonymous>(): R|kotlin/Unit| <inline=Inline, kind=UNKNOWN> {
^test_4 Int(1)
}
)"];
84 [label="Stub" style="filled" fillcolor=gray];
85 [label="Exit block" style="filled" fillcolor=gray];
86 [label="Stub" style="filled" fillcolor=gray];
87 [label="Exit block" style="filled" fillcolor=gray];
}
86 [label="Exit function test_4" style="filled" fillcolor=red];
88 [label="Exit function test_4" style="filled" fillcolor=red];
}
78 -> {79};
79 -> {80};
80 -> {81 87};
80 -> {87} [style=dashed];
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {86};
83 -> {84} [style=dotted];
84 -> {85} [style=dotted];
82 -> {83 89};
82 -> {89} [style=dashed];
83 -> {84};
84 -> {85};
85 -> {88};
85 -> {86} [style=dotted];
87 -> {93 88};
88 -> {89};
89 -> {90};
90 -> {86};
90 -> {91} [style=dotted];
91 -> {92} [style=dotted];
86 -> {87} [style=dotted];
87 -> {88} [style=dotted];
89 -> {95 90};
90 -> {91};
91 -> {92};
92 -> {88};
92 -> {93} [style=dotted];
93 -> {81};
93 -> {87} [color=green style=dashed];
93 -> {94} [style=dotted];
94 -> {95} [style=dotted];
95 -> {83};
95 -> {89} [color=green style=dashed];
}
@@ -87,17 +87,17 @@ digraph localClassesWithImplicit_kt {
19 -> {20} [style=dotted];
20 -> {21} [style=dotted];
21 -> {22};
21 -> {33 36 71 89} [color=red];
21 -> {33 36 73 92} [color=red];
22 -> {23};
22 -> {96 99 134 152} [color=red];
22 -> {33 36 71 89 29} [color=green];
22 -> {33 36 71 89 29} [style=dashed];
22 -> {99 102 139 158} [color=red];
22 -> {33 36 73 92 29} [color=green];
22 -> {33 36 73 92 29} [style=dashed];
23 -> {24} [color=red];
23 -> {31} [color=green];
23 -> {31} [style=dashed];
24 -> {25};
24 -> {96 99 134 152} [color=green];
24 -> {96 99 134 152} [style=dashed];
24 -> {99 102 139 158} [color=green];
24 -> {99 102 139 158} [style=dashed];
25 -> {26};
26 -> {27};
27 -> {28};
@@ -128,45 +128,47 @@ digraph localClassesWithImplicit_kt {
color=blue
46 [label="Enter block"];
47 [label="Access variable R|<local>/a|"];
48 [label="Access variable R|kotlin/String.length|"];
48 [label="Smart cast: R|<local>/a|"];
49 [label="Access variable R|kotlin/String.length|"];
subgraph cluster_14 {
color=blue
49 [label="Enter when"];
50 [label="Enter when"];
subgraph cluster_15 {
color=blue
50 [label="Enter when branch condition "];
51 [label="Access variable R|<local>/b|"];
52 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
53 [label="Exit when branch condition"];
51 [label="Enter when branch condition "];
52 [label="Access variable R|<local>/b|"];
53 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
54 [label="Exit when branch condition"];
}
subgraph cluster_16 {
color=blue
54 [label="Enter when branch condition else"];
55 [label="Exit when branch condition"];
55 [label="Enter when branch condition else"];
56 [label="Exit when branch condition"];
}
56 [label="Enter when branch result"];
57 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
57 [label="Enter block"];
58 [label="Const: Int(1)"];
59 [label="Exit block"];
58 [label="Enter block"];
59 [label="Const: Int(1)"];
60 [label="Exit block"];
}
60 [label="Exit when branch result"];
61 [label="Enter when branch result"];
61 [label="Exit when branch result"];
62 [label="Enter when branch result"];
subgraph cluster_18 {
color=blue
62 [label="Enter block"];
63 [label="Access variable R|<local>/b|"];
64 [label="Access variable R|kotlin/String.length|"];
65 [label="Function call: this@R|/A|.R|<local>/bar|()"];
66 [label="Exit block"];
63 [label="Enter block"];
64 [label="Access variable R|<local>/b|"];
65 [label="Smart cast: R|<local>/b|"];
66 [label="Access variable R|kotlin/String.length|"];
67 [label="Function call: this@R|/A|.R|<local>/bar|()"];
68 [label="Exit block"];
}
67 [label="Exit when branch result"];
68 [label="Exit when"];
69 [label="Exit when branch result"];
70 [label="Exit when"];
}
69 [label="Exit block"];
71 [label="Exit block"];
}
70 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
72 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
39 [label="Postponed exit from lambda"];
40 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
@@ -199,7 +201,7 @@ digraph localClassesWithImplicit_kt {
41 -> {42} [style=dotted];
42 -> {43} [style=dotted];
43 -> {44} [style=dotted];
45 -> {70 46};
45 -> {72 46};
46 -> {47};
47 -> {48};
48 -> {49};
@@ -207,15 +209,15 @@ digraph localClassesWithImplicit_kt {
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {61 54};
54 -> {55};
53 -> {54};
54 -> {62 55};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {68};
61 -> {62};
60 -> {61};
61 -> {70};
62 -> {63};
63 -> {64};
64 -> {65};
@@ -224,152 +226,158 @@ digraph localClassesWithImplicit_kt {
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {39};
70 -> {45} [color=green style=dashed];
70 -> {71};
71 -> {72};
72 -> {39};
72 -> {45} [color=green style=dashed];
subgraph cluster_19 {
color=red
71 [label="Enter function bar" style="filled" fillcolor=red];
73 [label="Enter function bar" style="filled" fillcolor=red];
subgraph cluster_20 {
color=blue
72 [label="Enter block"];
73 [label="Postponed enter to lambda"];
74 [label="Enter block"];
75 [label="Postponed enter to lambda"];
subgraph cluster_21 {
color=blue
80 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
82 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_22 {
color=blue
81 [label="Enter block"];
82 [label="Access variable R|<local>/b|"];
83 [label="Access variable <Unresolved name: length>#"];
84 [label="Access variable R|<local>/a|"];
85 [label="Access variable R|kotlin/String.length|"];
86 [label="Function call: this@R|/A|.R|<local>/baz|()"];
87 [label="Exit block"];
83 [label="Enter block"];
84 [label="Access variable R|<local>/b|"];
85 [label="Access variable <Unresolved name: length>#"];
86 [label="Access variable R|<local>/a|"];
87 [label="Smart cast: R|<local>/a|"];
88 [label="Access variable R|kotlin/String.length|"];
89 [label="Function call: this@R|/A|.R|<local>/baz|()"];
90 [label="Exit block"];
}
88 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
91 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
74 [label="Postponed exit from lambda"];
75 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
76 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
76 [label="Postponed exit from lambda"];
77 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
78 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
R|<local>/b|.<Unresolved name: length>#
R|<local>/a|.R|kotlin/String.length|
^ this@R|/A|.R|<local>/baz|()
}
)"];
77 [label="Stub" style="filled" fillcolor=gray];
78 [label="Exit block" style="filled" fillcolor=gray];
79 [label="Stub" style="filled" fillcolor=gray];
80 [label="Exit block" style="filled" fillcolor=gray];
}
79 [label="Exit function bar" style="filled" fillcolor=red];
81 [label="Exit function bar" style="filled" fillcolor=red];
}
71 -> {72};
72 -> {73};
73 -> {74 80};
73 -> {80} [style=dashed];
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {79};
76 -> {77} [style=dotted];
77 -> {78} [style=dotted];
75 -> {76 82};
75 -> {82} [style=dashed];
76 -> {77};
77 -> {78};
78 -> {81};
78 -> {79} [style=dotted];
80 -> {88 81};
81 -> {82};
82 -> {83};
79 -> {80} [style=dotted];
80 -> {81} [style=dotted];
82 -> {91 83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {74};
88 -> {80} [color=green style=dashed];
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {76};
91 -> {82} [color=green style=dashed];
subgraph cluster_23 {
color=red
89 [label="Enter function baz" style="filled" fillcolor=red];
92 [label="Enter function baz" style="filled" fillcolor=red];
subgraph cluster_24 {
color=blue
90 [label="Enter block"];
91 [label="Const: Int(1)"];
92 [label="Jump: ^baz Int(1)"];
93 [label="Stub" style="filled" fillcolor=gray];
94 [label="Exit block" style="filled" fillcolor=gray];
93 [label="Enter block"];
94 [label="Const: Int(1)"];
95 [label="Jump: ^baz Int(1)"];
96 [label="Stub" style="filled" fillcolor=gray];
97 [label="Exit block" style="filled" fillcolor=gray];
}
95 [label="Exit function baz" style="filled" fillcolor=red];
98 [label="Exit function baz" style="filled" fillcolor=red];
}
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {95};
92 -> {93} [style=dotted];
93 -> {94} [style=dotted];
94 -> {95} [style=dotted];
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {98};
95 -> {96} [style=dotted];
96 -> {97} [style=dotted];
97 -> {98} [style=dotted];
subgraph cluster_25 {
color=red
96 [label="Enter function <init>" style="filled" fillcolor=red];
97 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
98 [label="Exit function <init>" style="filled" fillcolor=red];
99 [label="Enter function <init>" style="filled" fillcolor=red];
100 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
101 [label="Exit function <init>" style="filled" fillcolor=red];
}
96 -> {97};
97 -> {98};
99 -> {100};
100 -> {101};
subgraph cluster_26 {
color=red
99 [label="Enter function foo" style="filled" fillcolor=red];
102 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_27 {
color=blue
100 [label="Enter block"];
101 [label="Postponed enter to lambda"];
103 [label="Enter block"];
104 [label="Postponed enter to lambda"];
subgraph cluster_28 {
color=blue
108 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
111 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_29 {
color=blue
109 [label="Enter block"];
110 [label="Access variable R|<local>/a|"];
111 [label="Access variable R|kotlin/String.length|"];
112 [label="Enter block"];
113 [label="Access variable R|<local>/a|"];
114 [label="Smart cast: R|<local>/a|"];
115 [label="Access variable R|kotlin/String.length|"];
subgraph cluster_30 {
color=blue
112 [label="Enter when"];
116 [label="Enter when"];
subgraph cluster_31 {
color=blue
113 [label="Enter when branch condition "];
114 [label="Access variable R|<local>/b|"];
115 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
116 [label="Exit when branch condition"];
117 [label="Enter when branch condition "];
118 [label="Access variable R|<local>/b|"];
119 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
120 [label="Exit when branch condition"];
}
subgraph cluster_32 {
color=blue
117 [label="Enter when branch condition else"];
118 [label="Exit when branch condition"];
121 [label="Enter when branch condition else"];
122 [label="Exit when branch condition"];
}
119 [label="Enter when branch result"];
123 [label="Enter when branch result"];
subgraph cluster_33 {
color=blue
120 [label="Enter block"];
121 [label="Const: Int(1)"];
122 [label="Exit block"];
124 [label="Enter block"];
125 [label="Const: Int(1)"];
126 [label="Exit block"];
}
123 [label="Exit when branch result"];
124 [label="Enter when branch result"];
127 [label="Exit when branch result"];
128 [label="Enter when branch result"];
subgraph cluster_34 {
color=blue
125 [label="Enter block"];
126 [label="Access variable R|<local>/b|"];
127 [label="Access variable R|kotlin/String.length|"];
128 [label="Function call: this@R|/<anonymous>|.R|/<anonymous>.bar|()"];
129 [label="Exit block"];
129 [label="Enter block"];
130 [label="Access variable R|<local>/b|"];
131 [label="Smart cast: R|<local>/b|"];
132 [label="Access variable R|kotlin/String.length|"];
133 [label="Function call: this@R|/<anonymous>|.R|/<anonymous>.bar|()"];
134 [label="Exit block"];
}
130 [label="Exit when branch result"];
131 [label="Exit when"];
135 [label="Exit when branch result"];
136 [label="Exit when"];
}
132 [label="Exit block"];
137 [label="Exit block"];
}
133 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
138 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
102 [label="Postponed exit from lambda"];
103 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
104 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
105 [label="Postponed exit from lambda"];
106 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
107 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
R|<local>/a|.R|kotlin/String.length|
^ when () {
(R|<local>/b| is R|kotlin/String|) -> {
@@ -383,124 +391,128 @@ digraph localClassesWithImplicit_kt {
}
)"];
105 [label="Stub" style="filled" fillcolor=gray];
106 [label="Exit block" style="filled" fillcolor=gray];
108 [label="Stub" style="filled" fillcolor=gray];
109 [label="Exit block" style="filled" fillcolor=gray];
}
107 [label="Exit function foo" style="filled" fillcolor=red];
110 [label="Exit function foo" style="filled" fillcolor=red];
}
99 -> {100};
100 -> {101};
101 -> {102 108};
101 -> {108} [style=dashed];
102 -> {103};
103 -> {104};
104 -> {107};
104 -> {105} [style=dotted];
105 -> {106} [style=dotted];
106 -> {107} [style=dotted];
108 -> {133 109};
109 -> {110};
110 -> {111};
111 -> {112};
104 -> {105 111};
104 -> {111} [style=dashed];
105 -> {106};
106 -> {107};
107 -> {110};
107 -> {108} [style=dotted];
108 -> {109} [style=dotted];
109 -> {110} [style=dotted];
111 -> {138 112};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {124 117};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
120 -> {128 121};
121 -> {122};
122 -> {123};
123 -> {131};
123 -> {124};
124 -> {125};
125 -> {126};
126 -> {127};
127 -> {128};
127 -> {136};
128 -> {129};
129 -> {130};
130 -> {131};
131 -> {132};
132 -> {133};
133 -> {102};
133 -> {108} [color=green style=dashed];
133 -> {134};
134 -> {135};
135 -> {136};
136 -> {137};
137 -> {138};
138 -> {105};
138 -> {111} [color=green style=dashed];
subgraph cluster_35 {
color=red
134 [label="Enter function bar" style="filled" fillcolor=red];
139 [label="Enter function bar" style="filled" fillcolor=red];
subgraph cluster_36 {
color=blue
135 [label="Enter block"];
136 [label="Postponed enter to lambda"];
140 [label="Enter block"];
141 [label="Postponed enter to lambda"];
subgraph cluster_37 {
color=blue
143 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
148 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_38 {
color=blue
144 [label="Enter block"];
145 [label="Access variable R|<local>/a|"];
146 [label="Access variable R|kotlin/String.length|"];
147 [label="Access variable R|<local>/b|"];
148 [label="Access variable <Unresolved name: length>#"];
149 [label="Function call: this@R|/<anonymous>|.R|/<anonymous>.baz|()"];
150 [label="Exit block"];
149 [label="Enter block"];
150 [label="Access variable R|<local>/a|"];
151 [label="Smart cast: R|<local>/a|"];
152 [label="Access variable R|kotlin/String.length|"];
153 [label="Access variable R|<local>/b|"];
154 [label="Access variable <Unresolved name: length>#"];
155 [label="Function call: this@R|/<anonymous>|.R|/<anonymous>.baz|()"];
156 [label="Exit block"];
}
151 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
157 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
137 [label="Postponed exit from lambda"];
138 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
139 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
142 [label="Postponed exit from lambda"];
143 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
144 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
R|<local>/a|.R|kotlin/String.length|
R|<local>/b|.<Unresolved name: length>#
^ this@R|/<anonymous>|.R|/<anonymous>.baz|()
}
)"];
140 [label="Stub" style="filled" fillcolor=gray];
141 [label="Exit block" style="filled" fillcolor=gray];
145 [label="Stub" style="filled" fillcolor=gray];
146 [label="Exit block" style="filled" fillcolor=gray];
}
142 [label="Exit function bar" style="filled" fillcolor=red];
147 [label="Exit function bar" style="filled" fillcolor=red];
}
134 -> {135};
135 -> {136};
136 -> {137 143};
136 -> {143} [style=dashed];
137 -> {138};
138 -> {139};
139 -> {142};
139 -> {140} [style=dotted];
140 -> {141} [style=dotted];
141 -> {142} [style=dotted];
143 -> {151 144};
144 -> {145};
145 -> {146};
146 -> {147};
147 -> {148};
148 -> {149};
139 -> {140};
140 -> {141};
141 -> {142 148};
141 -> {148} [style=dashed];
142 -> {143};
143 -> {144};
144 -> {147};
144 -> {145} [style=dotted];
145 -> {146} [style=dotted];
146 -> {147} [style=dotted];
148 -> {157 149};
149 -> {150};
150 -> {151};
151 -> {137};
151 -> {143} [color=green style=dashed];
subgraph cluster_39 {
color=red
152 [label="Enter function baz" style="filled" fillcolor=red];
subgraph cluster_40 {
color=blue
153 [label="Enter block"];
154 [label="Const: Int(1)"];
155 [label="Jump: ^baz Int(1)"];
156 [label="Stub" style="filled" fillcolor=gray];
157 [label="Exit block" style="filled" fillcolor=gray];
}
158 [label="Exit function baz" style="filled" fillcolor=red];
}
151 -> {152};
152 -> {153};
153 -> {154};
154 -> {155};
155 -> {158};
155 -> {156} [style=dotted];
156 -> {157} [style=dotted];
157 -> {158} [style=dotted];
155 -> {156};
156 -> {157};
157 -> {142};
157 -> {148} [color=green style=dashed];
subgraph cluster_39 {
color=red
158 [label="Enter function baz" style="filled" fillcolor=red];
subgraph cluster_40 {
color=blue
159 [label="Enter block"];
160 [label="Const: Int(1)"];
161 [label="Jump: ^baz Int(1)"];
162 [label="Stub" style="filled" fillcolor=gray];
163 [label="Exit block" style="filled" fillcolor=gray];
}
164 [label="Exit function baz" style="filled" fillcolor=red];
}
158 -> {159};
159 -> {160};
160 -> {161};
161 -> {164};
161 -> {162} [style=dotted];
162 -> {163} [style=dotted];
163 -> {164} [style=dotted];
}
+21 -17
View File
@@ -169,26 +169,28 @@ digraph when_kt {
60 [label="Exit left part of &&"];
61 [label="Enter right part of &&"];
62 [label="Access variable R|<local>/x|"];
63 [label="Type operator: (R|<local>/x| is R|B|)"];
64 [label="Exit &&"];
63 [label="Smart cast: R|<local>/x|"];
64 [label="Type operator: (R|<local>/x| is R|B|)"];
65 [label="Exit &&"];
}
65 [label="Exit when branch condition"];
66 [label="Exit when branch condition"];
}
66 [label="Synthetic else branch"];
67 [label="Enter when branch result"];
67 [label="Synthetic else branch"];
68 [label="Enter when branch result"];
subgraph cluster_18 {
color=blue
68 [label="Enter block"];
69 [label="Access variable R|<local>/x|"];
70 [label="Type operator: (R|<local>/x| is R|A|)"];
71 [label="Exit block"];
69 [label="Enter block"];
70 [label="Access variable R|<local>/x|"];
71 [label="Smart cast: R|<local>/x|"];
72 [label="Type operator: (R|<local>/x| is R|A|)"];
73 [label="Exit block"];
}
72 [label="Exit when branch result"];
73 [label="Exit when"];
74 [label="Exit when branch result"];
75 [label="Exit when"];
}
74 [label="Exit block"];
76 [label="Exit block"];
}
75 [label="Exit function test_2" style="filled" fillcolor=red];
77 [label="Exit function test_2" style="filled" fillcolor=red];
}
53 -> {54};
54 -> {55};
@@ -197,14 +199,14 @@ digraph when_kt {
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {64 61};
60 -> {65 61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {67 66};
66 -> {73};
67 -> {68};
65 -> {66};
66 -> {68 67};
67 -> {75};
68 -> {69};
69 -> {70};
70 -> {71};
@@ -212,5 +214,7 @@ digraph when_kt {
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
}