[FIR] Add control flow graph for class initialization

This commit is contained in:
Dmitriy Novozhilov
2020-03-27 14:48:08 +03:00
parent ad9e6517c7
commit 8cb6e8f8af
43 changed files with 7687 additions and 7023 deletions
@@ -29,192 +29,199 @@ digraph elvis_kt {
subgraph cluster_3 {
color=red
6 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
7 [label="Enter when"];
subgraph cluster_5 {
color=blue
8 [label="Enter when branch condition "];
subgraph cluster_6 {
color=blue
9 [label="Enter when"];
10 [label="Access variable R|<local>/x|"];
11 [label="Enter safe call"];
12 [label="Access variable R|/A.b|"];
13 [label="Exit safe call"];
14 [label="Variable declaration: lval <elvis>: R|kotlin/Boolean?|"];
subgraph cluster_7 {
color=blue
15 [label="Enter when branch condition "];
16 [label="Const: Null(null)"];
17 [label="Operator =="];
18 [label="Exit when branch condition"];
}
subgraph cluster_8 {
color=blue
19 [label="Enter when branch condition else"];
20 [label="Exit when branch condition"];
}
21 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
22 [label="Enter block"];
23 [label="Access variable R|<local>/<elvis>|"];
24 [label="Exit block"];
}
25 [label="Exit when branch result"];
26 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
27 [label="Enter block"];
28 [label="Jump: ^test_1 Unit"];
29 [label="Stub" style="filled" fillcolor=gray];
30 [label="Exit block" style="filled" fillcolor=gray];
}
31 [label="Exit when branch result" style="filled" fillcolor=gray];
32 [label="Exit when"];
}
33 [label="Exit when branch condition"];
}
34 [label="Synthetic else branch"];
35 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
36 [label="Enter block"];
37 [label="Access variable R|<local>/x|"];
38 [label="Function call: R|<local>/x|.R|/A.foo|()"];
39 [label="Exit block"];
}
40 [label="Exit when branch result"];
41 [label="Exit when"];
}
42 [label="Exit function test_1" style="filled" fillcolor=red];
6 [label="Enter class A" style="filled" fillcolor=red];
7 [label="Exit class A" style="filled" fillcolor=red];
}
subgraph cluster_4 {
color=red
8 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
9 [label="Enter when"];
subgraph cluster_6 {
color=blue
10 [label="Enter when branch condition "];
subgraph cluster_7 {
color=blue
11 [label="Enter when"];
12 [label="Access variable R|<local>/x|"];
13 [label="Enter safe call"];
14 [label="Access variable R|/A.b|"];
15 [label="Exit safe call"];
16 [label="Variable declaration: lval <elvis>: R|kotlin/Boolean?|"];
subgraph cluster_8 {
color=blue
17 [label="Enter when branch condition "];
18 [label="Const: Null(null)"];
19 [label="Operator =="];
20 [label="Exit when branch condition"];
}
subgraph cluster_9 {
color=blue
21 [label="Enter when branch condition else"];
22 [label="Exit when branch condition"];
}
23 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
24 [label="Enter block"];
25 [label="Access variable R|<local>/<elvis>|"];
26 [label="Exit block"];
}
27 [label="Exit when branch result"];
28 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
29 [label="Enter block"];
30 [label="Jump: ^test_1 Unit"];
31 [label="Stub" style="filled" fillcolor=gray];
32 [label="Exit block" style="filled" fillcolor=gray];
}
33 [label="Exit when branch result" style="filled" fillcolor=gray];
34 [label="Exit when"];
}
35 [label="Exit when branch condition"];
}
36 [label="Synthetic else branch"];
37 [label="Enter when branch result"];
subgraph cluster_12 {
color=blue
38 [label="Enter block"];
39 [label="Access variable R|<local>/x|"];
40 [label="Function call: R|<local>/x|.R|/A.foo|()"];
41 [label="Exit block"];
}
42 [label="Exit when branch result"];
43 [label="Exit when"];
}
44 [label="Exit function test_1" style="filled" fillcolor=red];
}
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11 13};
10 -> {11};
11 -> {12};
12 -> {13};
12 -> {13 15};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {26 19};
18 -> {19};
19 -> {20};
20 -> {21};
20 -> {28 21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {32};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {42};
28 -> {29} [style=dotted];
29 -> {30} [style=dotted];
27 -> {34};
28 -> {29};
29 -> {30};
30 -> {44};
30 -> {31} [style=dotted];
31 -> {32} [style=dotted];
32 -> {33};
33 -> {35 34};
34 -> {41};
35 -> {36};
36 -> {37};
32 -> {33} [style=dotted];
33 -> {34} [style=dotted];
34 -> {35};
35 -> {37 36};
36 -> {43};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
subgraph cluster_12 {
subgraph cluster_13 {
color=red
43 [label="Enter function test2" style="filled" fillcolor=red];
subgraph cluster_13 {
45 [label="Enter function test2" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
44 [label="Enter when"];
subgraph cluster_14 {
color=blue
45 [label="Enter when branch condition "];
46 [label="Access variable R|<local>/b|"];
47 [label="Type operator: (R|<local>/b| !is R|kotlin/String|)"];
48 [label="Exit when branch condition"];
}
49 [label="Synthetic else branch"];
50 [label="Enter when branch result"];
46 [label="Enter when"];
subgraph cluster_15 {
color=blue
51 [label="Enter block"];
52 [label="Const: String()"];
53 [label="Jump: ^test2 String()"];
54 [label="Stub" style="filled" fillcolor=gray];
55 [label="Exit block" style="filled" fillcolor=gray];
47 [label="Enter when branch condition "];
48 [label="Access variable R|<local>/b|"];
49 [label="Type operator: (R|<local>/b| !is R|kotlin/String|)"];
50 [label="Exit when branch condition"];
}
56 [label="Exit when branch result" style="filled" fillcolor=gray];
57 [label="Exit when"];
}
subgraph cluster_16 {
color=blue
58 [label="Enter when"];
subgraph cluster_17 {
51 [label="Synthetic else branch"];
52 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
59 [label="Enter when branch condition "];
60 [label="Access variable R|<local>/a|"];
61 [label="Type operator: (R|<local>/a| !is R|kotlin/String?|)"];
62 [label="Exit when branch condition"];
53 [label="Enter block"];
54 [label="Const: String()"];
55 [label="Jump: ^test2 String()"];
56 [label="Stub" style="filled" fillcolor=gray];
57 [label="Exit block" style="filled" fillcolor=gray];
}
63 [label="Synthetic else branch"];
64 [label="Enter when branch result"];
58 [label="Exit when branch result" style="filled" fillcolor=gray];
59 [label="Exit when"];
}
subgraph cluster_17 {
color=blue
60 [label="Enter when"];
subgraph cluster_18 {
color=blue
65 [label="Enter block"];
66 [label="Const: String()"];
67 [label="Jump: ^test2 String()"];
68 [label="Stub" style="filled" fillcolor=gray];
69 [label="Exit block" style="filled" fillcolor=gray];
61 [label="Enter when branch condition "];
62 [label="Access variable R|<local>/a|"];
63 [label="Type operator: (R|<local>/a| !is R|kotlin/String?|)"];
64 [label="Exit when branch condition"];
}
70 [label="Exit when branch result" style="filled" fillcolor=gray];
71 [label="Exit when"];
}
subgraph cluster_19 {
color=blue
72 [label="Enter when"];
73 [label="Access variable R|<local>/a|"];
74 [label="Variable declaration: lval <elvis>: R|kotlin/String?|"];
subgraph cluster_20 {
65 [label="Synthetic else branch"];
66 [label="Enter when branch result"];
subgraph cluster_19 {
color=blue
75 [label="Enter when branch condition "];
76 [label="Const: Null(null)"];
77 [label="Operator =="];
78 [label="Exit when branch condition"];
67 [label="Enter block"];
68 [label="Const: String()"];
69 [label="Jump: ^test2 String()"];
70 [label="Stub" style="filled" fillcolor=gray];
71 [label="Exit block" style="filled" fillcolor=gray];
}
72 [label="Exit when branch result" style="filled" fillcolor=gray];
73 [label="Exit when"];
}
subgraph cluster_20 {
color=blue
74 [label="Enter when"];
75 [label="Access variable R|<local>/a|"];
76 [label="Variable declaration: lval <elvis>: R|kotlin/String?|"];
subgraph cluster_21 {
color=blue
79 [label="Enter when branch condition else"];
77 [label="Enter when branch condition "];
78 [label="Const: Null(null)"];
79 [label="Operator =="];
80 [label="Exit when branch condition"];
}
81 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
82 [label="Enter block"];
83 [label="Access variable R|<local>/<elvis>|"];
84 [label="Exit block"];
81 [label="Enter when branch condition else"];
82 [label="Exit when branch condition"];
}
85 [label="Exit when branch result"];
86 [label="Enter when branch result"];
83 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
87 [label="Enter block"];
88 [label="Access variable R|<local>/b|"];
89 [label="Exit block"];
84 [label="Enter block"];
85 [label="Access variable R|<local>/<elvis>|"];
86 [label="Exit block"];
}
90 [label="Exit when branch result"];
91 [label="Exit when"];
87 [label="Exit when branch result"];
88 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue
89 [label="Enter block"];
90 [label="Access variable R|<local>/b|"];
91 [label="Exit block"];
}
92 [label="Exit when branch result"];
93 [label="Exit when"];
}
92 [label="Jump: ^test2 when (lval <elvis>: R|kotlin/String?| = R|<local>/a|) {
94 [label="Jump: ^test2 when (lval <elvis>: R|kotlin/String?| = R|<local>/a|) {
==($subj$, Null(null)) -> {
R|<local>/b|
}
@@ -223,63 +230,63 @@ digraph elvis_kt {
}
}
"];
93 [label="Stub" style="filled" fillcolor=gray];
94 [label="Exit function test2" style="filled" fillcolor=red];
95 [label="Stub" style="filled" fillcolor=gray];
96 [label="Exit function test2" style="filled" fillcolor=red];
}
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {50 49};
49 -> {57};
50 -> {51};
51 -> {52};
48 -> {49};
49 -> {50};
50 -> {52 51};
51 -> {59};
52 -> {53};
53 -> {94};
53 -> {54} [style=dotted];
54 -> {55} [style=dotted];
53 -> {54};
54 -> {55};
55 -> {96};
55 -> {56} [style=dotted];
56 -> {57} [style=dotted];
57 -> {58};
58 -> {59};
57 -> {58} [style=dotted];
58 -> {59} [style=dotted];
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {64 63};
63 -> {71};
64 -> {65};
65 -> {66};
62 -> {63};
63 -> {64};
64 -> {66 65};
65 -> {73};
66 -> {67};
67 -> {94};
67 -> {68} [style=dotted];
68 -> {69} [style=dotted];
67 -> {68};
68 -> {69};
69 -> {96};
69 -> {70} [style=dotted];
70 -> {71} [style=dotted];
71 -> {72};
72 -> {73};
71 -> {72} [style=dotted];
72 -> {73} [style=dotted];
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {86 79};
78 -> {79};
79 -> {80};
80 -> {81};
80 -> {88 81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {91};
85 -> {86};
86 -> {87};
87 -> {88};
87 -> {93};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {94};
92 -> {93} [style=dotted];
93 -> {94} [style=dotted];
92 -> {93};
93 -> {94};
94 -> {96};
94 -> {95} [style=dotted];
95 -> {96} [style=dotted];
}
@@ -144,114 +144,132 @@ digraph returns_kt {
subgraph cluster_13 {
color=red
48 [label="Enter function bar" style="filled" fillcolor=red];
49 [label="Exit function bar" style="filled" fillcolor=red];
48 [label="Enter class A" style="filled" fillcolor=red];
49 [label="Exit class A" style="filled" fillcolor=red];
}
48 -> {49};
48 -> {49} [color=green];
subgraph cluster_14 {
color=red
50 [label="Enter function baz" style="filled" fillcolor=red];
51 [label="Exit function baz" style="filled" fillcolor=red];
50 [label="Enter function bar" style="filled" fillcolor=red];
51 [label="Exit function bar" style="filled" fillcolor=red];
}
50 -> {51};
subgraph cluster_15 {
color=red
52 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_16 {
52 [label="Enter class B" style="filled" fillcolor=red];
53 [label="Exit class B" style="filled" fillcolor=red];
}
52 -> {53} [color=green];
subgraph cluster_16 {
color=red
54 [label="Enter function baz" style="filled" fillcolor=red];
55 [label="Exit function baz" style="filled" fillcolor=red];
}
54 -> {55};
subgraph cluster_17 {
color=red
56 [label="Enter class C" style="filled" fillcolor=red];
57 [label="Exit class C" style="filled" fillcolor=red];
}
56 -> {57} [color=green];
subgraph cluster_18 {
color=red
58 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue
53 [label="Enter when"];
subgraph cluster_17 {
color=blue
54 [label="Enter when branch condition "];
55 [label="Access variable R|<local>/x|"];
56 [label="Type operator: (R|<local>/x| is R|B|)"];
57 [label="Exit when branch condition"];
}
subgraph cluster_18 {
color=blue
58 [label="Enter when branch condition "];
59 [label="Access variable R|<local>/x|"];
60 [label="Type operator: (R|<local>/x| is R|C|)"];
61 [label="Exit when branch condition"];
}
subgraph cluster_19 {
color=blue
62 [label="Enter when branch condition else"];
63 [label="Exit when branch condition"];
}
64 [label="Enter when branch result"];
59 [label="Enter when"];
subgraph cluster_20 {
color=blue
65 [label="Enter block"];
66 [label="Jump: ^test_2 Unit"];
67 [label="Stub" style="filled" fillcolor=gray];
68 [label="Exit block" style="filled" fillcolor=gray];
60 [label="Enter when branch condition "];
61 [label="Access variable R|<local>/x|"];
62 [label="Type operator: (R|<local>/x| is R|B|)"];
63 [label="Exit when branch condition"];
}
69 [label="Exit when branch result" style="filled" fillcolor=gray];
70 [label="Enter when branch result"];
subgraph cluster_21 {
color=blue
71 [label="Enter block"];
72 [label="Access variable R|<local>/x|"];
73 [label="Function call: R|<local>/x|.R|/C.baz|()"];
74 [label="Exit block"];
64 [label="Enter when branch condition "];
65 [label="Access variable R|<local>/x|"];
66 [label="Type operator: (R|<local>/x| is R|C|)"];
67 [label="Exit when branch condition"];
}
75 [label="Exit when branch result"];
76 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
68 [label="Enter when branch condition else"];
69 [label="Exit when branch condition"];
}
70 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
71 [label="Enter block"];
72 [label="Jump: ^test_2 Unit"];
73 [label="Stub" style="filled" fillcolor=gray];
74 [label="Exit block" style="filled" fillcolor=gray];
}
75 [label="Exit when branch result" style="filled" fillcolor=gray];
76 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue
77 [label="Enter block"];
78 [label="Access variable R|<local>/x|"];
79 [label="Function call: R|<local>/x|.R|/B.bar|()"];
79 [label="Function call: R|<local>/x|.R|/C.baz|()"];
80 [label="Exit block"];
}
81 [label="Exit when branch result"];
82 [label="Exit when"];
82 [label="Enter when branch result"];
subgraph cluster_25 {
color=blue
83 [label="Enter block"];
84 [label="Access variable R|<local>/x|"];
85 [label="Function call: R|<local>/x|.R|/B.bar|()"];
86 [label="Exit block"];
}
87 [label="Exit when branch result"];
88 [label="Exit when"];
}
83 [label="Access variable R|<local>/x|"];
84 [label="Function call: R|<local>/x|.R|/A.foo|()"];
85 [label="Access variable R|<local>/x|"];
86 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"];
87 [label="Access variable R|<local>/x|"];
88 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"];
89 [label="Exit function test_2" style="filled" fillcolor=red];
89 [label="Access variable R|<local>/x|"];
90 [label="Function call: R|<local>/x|.R|/A.foo|()"];
91 [label="Access variable R|<local>/x|"];
92 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"];
93 [label="Access variable R|<local>/x|"];
94 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"];
95 [label="Exit function test_2" style="filled" fillcolor=red];
}
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {76 58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {70 62};
61 -> {62};
62 -> {63};
63 -> {64};
63 -> {82 64};
64 -> {65};
65 -> {66};
66 -> {89};
66 -> {67} [style=dotted];
67 -> {68} [style=dotted];
68 -> {69} [style=dotted];
69 -> {82} [style=dotted];
66 -> {67};
67 -> {76 68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {82};
72 -> {95};
72 -> {73} [style=dotted];
73 -> {74} [style=dotted];
74 -> {75} [style=dotted];
75 -> {88} [style=dotted];
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81};
81 -> {82};
81 -> {88};
82 -> {83};
83 -> {84};
84 -> {85};
@@ -259,80 +277,80 @@ digraph returns_kt {
86 -> {87};
87 -> {88};
88 -> {89};
subgraph cluster_23 {
color=red
90 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_24 {
color=blue
91 [label="Enter when"];
subgraph cluster_25 {
color=blue
92 [label="Enter when branch condition "];
93 [label="Access variable R|<local>/x|"];
94 [label="Type operator: (R|<local>/x| is R|B|)"];
95 [label="Exit when branch condition"];
}
subgraph cluster_26 {
color=blue
96 [label="Enter when branch condition "];
97 [label="Access variable R|<local>/x|"];
98 [label="Type operator: (R|<local>/x| is R|C|)"];
99 [label="Exit when branch condition"];
}
100 [label="Synthetic else branch"];
101 [label="Enter when branch result"];
subgraph cluster_27 {
color=blue
102 [label="Enter block"];
103 [label="Access variable R|<local>/x|"];
104 [label="Function call: R|<local>/x|.R|/C.baz|()"];
105 [label="Exit block"];
}
106 [label="Exit when branch result"];
107 [label="Enter when branch result"];
subgraph cluster_28 {
color=blue
108 [label="Enter block"];
109 [label="Access variable R|<local>/x|"];
110 [label="Function call: R|<local>/x|.R|/B.bar|()"];
111 [label="Exit block"];
}
112 [label="Exit when branch result"];
113 [label="Exit when"];
}
114 [label="Access variable R|<local>/x|"];
115 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"];
116 [label="Access variable R|<local>/x|"];
117 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"];
118 [label="Access variable R|<local>/x|"];
119 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"];
120 [label="Exit function test_3" style="filled" fillcolor=red];
}
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {107 96};
subgraph cluster_26 {
color=red
96 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_27 {
color=blue
97 [label="Enter when"];
subgraph cluster_28 {
color=blue
98 [label="Enter when branch condition "];
99 [label="Access variable R|<local>/x|"];
100 [label="Type operator: (R|<local>/x| is R|B|)"];
101 [label="Exit when branch condition"];
}
subgraph cluster_29 {
color=blue
102 [label="Enter when branch condition "];
103 [label="Access variable R|<local>/x|"];
104 [label="Type operator: (R|<local>/x| is R|C|)"];
105 [label="Exit when branch condition"];
}
106 [label="Synthetic else branch"];
107 [label="Enter when branch result"];
subgraph cluster_30 {
color=blue
108 [label="Enter block"];
109 [label="Access variable R|<local>/x|"];
110 [label="Function call: R|<local>/x|.R|/C.baz|()"];
111 [label="Exit block"];
}
112 [label="Exit when branch result"];
113 [label="Enter when branch result"];
subgraph cluster_31 {
color=blue
114 [label="Enter block"];
115 [label="Access variable R|<local>/x|"];
116 [label="Function call: R|<local>/x|.R|/B.bar|()"];
117 [label="Exit block"];
}
118 [label="Exit when branch result"];
119 [label="Exit when"];
}
120 [label="Access variable R|<local>/x|"];
121 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"];
122 [label="Access variable R|<local>/x|"];
123 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"];
124 [label="Access variable R|<local>/x|"];
125 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"];
126 [label="Exit function test_3" style="filled" fillcolor=red];
}
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {101 100};
100 -> {113};
101 -> {102};
99 -> {100};
100 -> {101};
101 -> {113 102};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {113};
105 -> {107 106};
106 -> {119};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
112 -> {119};
113 -> {114};
114 -> {115};
115 -> {116};
@@ -340,141 +358,147 @@ digraph returns_kt {
117 -> {118};
118 -> {119};
119 -> {120};
subgraph cluster_29 {
color=red
121 [label="Enter function runHigherOrder" style="filled" fillcolor=red];
122 [label="Function call: R|<local>/f|.R|FakeOverride<kotlin/Function0.invoke: R|T|>|()"];
123 [label="Jump: ^runHigherOrder R|<local>/f|.R|FakeOverride<kotlin/Function0.invoke: R|T|>|()"];
124 [label="Stub" style="filled" fillcolor=gray];
125 [label="Exit function runHigherOrder" style="filled" fillcolor=red];
}
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {125};
123 -> {124} [style=dotted];
124 -> {125} [style=dotted];
subgraph cluster_30 {
color=red
126 [label="Enter function getter" style="filled" fillcolor=red];
127 [label="Access variable R|kotlin/String.length|"];
128 [label="Jump: ^ this@R|/ext|.R|kotlin/String.length|"];
129 [label="Stub" style="filled" fillcolor=gray];
130 [label="Exit function getter" style="filled" fillcolor=red];
}
126 -> {127};
127 -> {128};
128 -> {130};
128 -> {129} [style=dotted];
129 -> {130} [style=dotted];
subgraph cluster_31 {
color=red
131 [label="Enter property" style="filled" fillcolor=red];
132 [label="Exit property" style="filled" fillcolor=red];
}
131 -> {132};
123 -> {124};
124 -> {125};
125 -> {126};
subgraph cluster_32 {
color=red
133 [label="Enter function test_4" style="filled" fillcolor=red];
134 [label="Access variable R|<local>/a|"];
135 [label="Type operator: (R|<local>/a| as? R|kotlin/String|)"];
136 [label="Variable declaration: lval s: R|kotlin/String?|"];
subgraph cluster_33 {
color=blue
137 [label="Enter when"];
138 [label="Access variable R|<local>/s|"];
139 [label="Enter safe call"];
140 [label="Access variable R|/ext|"];
141 [label="Exit safe call"];
142 [label="Variable declaration: lval <elvis>: R|kotlin/Int?|"];
subgraph cluster_34 {
color=blue
143 [label="Enter when branch condition "];
144 [label="Const: Null(null)"];
145 [label="Operator =="];
146 [label="Exit when branch condition"];
}
subgraph cluster_35 {
color=blue
147 [label="Enter when branch condition else"];
148 [label="Exit when branch condition"];
}
149 [label="Enter when branch result"];
subgraph cluster_36 {
color=blue
150 [label="Enter block"];
151 [label="Access variable R|<local>/<elvis>|"];
152 [label="Exit block"];
}
153 [label="Exit when branch result"];
154 [label="Enter when branch result"];
subgraph cluster_37 {
color=blue
155 [label="Enter block"];
156 [label="Jump: ^test_4 Unit"];
157 [label="Stub" style="filled" fillcolor=gray];
158 [label="Exit block" style="filled" fillcolor=gray];
}
159 [label="Exit when branch result" style="filled" fillcolor=gray];
160 [label="Exit when"];
}
161 [label="Variable declaration: lval length: R|kotlin/Int|"];
162 [label="Postponed enter to lambda"];
163 [label="Postponed exit from lambda"];
164 [label="Function call: R|/runHigherOrder|<R|kotlin/Int|>(...)"];
165 [label="Exit function test_4" style="filled" fillcolor=red];
127 [label="Enter function runHigherOrder" style="filled" fillcolor=red];
128 [label="Function call: R|<local>/f|.R|FakeOverride<kotlin/Function0.invoke: R|T|>|()"];
129 [label="Jump: ^runHigherOrder R|<local>/f|.R|FakeOverride<kotlin/Function0.invoke: R|T|>|()"];
130 [label="Stub" style="filled" fillcolor=gray];
131 [label="Exit function runHigherOrder" style="filled" fillcolor=red];
}
127 -> {128};
128 -> {129};
129 -> {131};
129 -> {130} [style=dotted];
130 -> {131} [style=dotted];
subgraph cluster_33 {
color=red
132 [label="Enter function getter" style="filled" fillcolor=red];
133 [label="Access variable R|kotlin/String.length|"];
134 [label="Jump: ^ this@R|/ext|.R|kotlin/String.length|"];
135 [label="Stub" style="filled" fillcolor=gray];
136 [label="Exit function getter" style="filled" fillcolor=red];
}
132 -> {133};
133 -> {134};
134 -> {135};
135 -> {136};
136 -> {137};
134 -> {136};
134 -> {135} [style=dotted];
135 -> {136} [style=dotted];
subgraph cluster_34 {
color=red
137 [label="Enter property" style="filled" fillcolor=red];
138 [label="Exit property" style="filled" fillcolor=red];
}
137 -> {138};
138 -> {139 141};
subgraph cluster_35 {
color=red
139 [label="Enter function test_4" style="filled" fillcolor=red];
140 [label="Access variable R|<local>/a|"];
141 [label="Type operator: (R|<local>/a| as? R|kotlin/String|)"];
142 [label="Variable declaration: lval s: R|kotlin/String?|"];
subgraph cluster_36 {
color=blue
143 [label="Enter when"];
144 [label="Access variable R|<local>/s|"];
145 [label="Enter safe call"];
146 [label="Access variable R|/ext|"];
147 [label="Exit safe call"];
148 [label="Variable declaration: lval <elvis>: R|kotlin/Int?|"];
subgraph cluster_37 {
color=blue
149 [label="Enter when branch condition "];
150 [label="Const: Null(null)"];
151 [label="Operator =="];
152 [label="Exit when branch condition"];
}
subgraph cluster_38 {
color=blue
153 [label="Enter when branch condition else"];
154 [label="Exit when branch condition"];
}
155 [label="Enter when branch result"];
subgraph cluster_39 {
color=blue
156 [label="Enter block"];
157 [label="Access variable R|<local>/<elvis>|"];
158 [label="Exit block"];
}
159 [label="Exit when branch result"];
160 [label="Enter when branch result"];
subgraph cluster_40 {
color=blue
161 [label="Enter block"];
162 [label="Jump: ^test_4 Unit"];
163 [label="Stub" style="filled" fillcolor=gray];
164 [label="Exit block" style="filled" fillcolor=gray];
}
165 [label="Exit when branch result" style="filled" fillcolor=gray];
166 [label="Exit when"];
}
167 [label="Variable declaration: lval length: R|kotlin/Int|"];
168 [label="Postponed enter to lambda"];
169 [label="Postponed exit from lambda"];
170 [label="Function call: R|/runHigherOrder|<R|kotlin/Int|>(...)"];
171 [label="Exit function test_4" style="filled" fillcolor=red];
}
139 -> {140};
140 -> {141};
141 -> {142};
142 -> {143};
143 -> {144};
144 -> {145};
144 -> {145 147};
145 -> {146};
146 -> {154 147};
146 -> {147};
147 -> {148};
148 -> {149};
149 -> {150};
150 -> {151};
151 -> {152};
152 -> {153};
153 -> {160};
152 -> {160 153};
153 -> {154};
154 -> {155};
155 -> {156};
156 -> {165};
156 -> {157} [style=dotted];
157 -> {158} [style=dotted];
158 -> {159} [style=dotted];
159 -> {160} [style=dotted];
156 -> {157};
157 -> {158};
158 -> {159};
159 -> {166};
160 -> {161};
161 -> {162};
162 -> {163 163} [color=green];
163 -> {164};
164 -> {165};
subgraph cluster_38 {
color=red
166 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
167 [label="Access variable R|<local>/s|"];
168 [label="Access variable R|kotlin/String.length|"];
169 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
162 -> {171};
162 -> {163} [style=dotted];
163 -> {164} [style=dotted];
164 -> {165} [style=dotted];
165 -> {166} [style=dotted];
166 -> {167};
167 -> {168};
168 -> {169};
168 -> {169 169} [color=green];
169 -> {170};
170 -> {171};
subgraph cluster_41 {
color=red
172 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
173 [label="Access variable R|<local>/s|"];
174 [label="Access variable R|kotlin/String.length|"];
175 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
172 -> {173};
173 -> {174};
174 -> {175};
}
@@ -13,85 +13,91 @@ digraph smartcastFromArgument_kt {
subgraph cluster_1 {
color=red
2 [label="Enter function takeA" style="filled" fillcolor=red];
3 [label="Const: Boolean(true)"];
4 [label="Jump: ^takeA Boolean(true)"];
5 [label="Stub" style="filled" fillcolor=gray];
6 [label="Exit function takeA" style="filled" fillcolor=red];
2 [label="Enter class A" style="filled" fillcolor=red];
3 [label="Exit class A" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {6};
4 -> {5} [style=dotted];
5 -> {6} [style=dotted];
2 -> {3} [color=green];
subgraph cluster_2 {
color=red
7 [label="Enter function test" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
8 [label="Enter when"];
subgraph cluster_4 {
color=blue
9 [label="Enter when branch condition "];
subgraph cluster_5 {
color=blue
10 [label="Enter when"];
11 [label="Access variable R|<local>/a|"];
12 [label="Type operator: (R|<local>/a| as? R|A|)"];
13 [label="Variable declaration: lval <elvis>: R|A?|"];
subgraph cluster_6 {
color=blue
14 [label="Enter when branch condition "];
15 [label="Const: Null(null)"];
16 [label="Operator =="];
17 [label="Exit when branch condition"];
}
subgraph cluster_7 {
color=blue
18 [label="Enter when branch condition else"];
19 [label="Exit when branch condition"];
}
20 [label="Enter when branch result"];
subgraph cluster_8 {
color=blue
21 [label="Enter block"];
22 [label="Access variable R|<local>/<elvis>|"];
23 [label="Exit block"];
}
24 [label="Exit when branch result"];
25 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
26 [label="Enter block"];
27 [label="Jump: ^test Unit"];
28 [label="Stub" style="filled" fillcolor=gray];
29 [label="Exit block" style="filled" fillcolor=gray];
}
30 [label="Exit when branch result" style="filled" fillcolor=gray];
31 [label="Exit when"];
}
32 [label="Function call: R|/takeA|(...)"];
33 [label="Exit when branch condition"];
}
34 [label="Synthetic else branch"];
35 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
36 [label="Enter block"];
37 [label="Access variable R|<local>/a|"];
38 [label="Function call: R|<local>/a|.R|/A.foo|()"];
39 [label="Exit block"];
}
40 [label="Exit when branch result"];
41 [label="Exit when"];
}
42 [label="Exit function test" style="filled" fillcolor=red];
4 [label="Enter function takeA" style="filled" fillcolor=red];
5 [label="Const: Boolean(true)"];
6 [label="Jump: ^takeA Boolean(true)"];
7 [label="Stub" style="filled" fillcolor=gray];
8 [label="Exit function takeA" style="filled" fillcolor=red];
}
4 -> {5};
5 -> {6};
6 -> {8};
6 -> {7} [style=dotted];
7 -> {8} [style=dotted];
subgraph cluster_3 {
color=red
9 [label="Enter function test" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue
10 [label="Enter when"];
subgraph cluster_5 {
color=blue
11 [label="Enter when branch condition "];
subgraph cluster_6 {
color=blue
12 [label="Enter when"];
13 [label="Access variable R|<local>/a|"];
14 [label="Type operator: (R|<local>/a| as? R|A|)"];
15 [label="Variable declaration: lval <elvis>: R|A?|"];
subgraph cluster_7 {
color=blue
16 [label="Enter when branch condition "];
17 [label="Const: Null(null)"];
18 [label="Operator =="];
19 [label="Exit when branch condition"];
}
subgraph cluster_8 {
color=blue
20 [label="Enter when branch condition else"];
21 [label="Exit when branch condition"];
}
22 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
23 [label="Enter block"];
24 [label="Access variable R|<local>/<elvis>|"];
25 [label="Exit block"];
}
26 [label="Exit when branch result"];
27 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
28 [label="Enter block"];
29 [label="Jump: ^test Unit"];
30 [label="Stub" style="filled" fillcolor=gray];
31 [label="Exit block" style="filled" fillcolor=gray];
}
32 [label="Exit when branch result" style="filled" fillcolor=gray];
33 [label="Exit when"];
}
34 [label="Function call: R|/takeA|(...)"];
35 [label="Exit when branch condition"];
}
36 [label="Synthetic else branch"];
37 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
38 [label="Enter block"];
39 [label="Access variable R|<local>/a|"];
40 [label="Function call: R|<local>/a|.R|/A.foo|()"];
41 [label="Exit block"];
}
42 [label="Exit when branch result"];
43 [label="Exit when"];
}
44 [label="Exit function test" style="filled" fillcolor=red];
}
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
@@ -100,31 +106,33 @@ digraph smartcastFromArgument_kt {
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {25 18};
17 -> {18};
18 -> {19};
19 -> {20};
19 -> {27 20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {31};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {42};
27 -> {28} [style=dotted];
28 -> {29} [style=dotted];
26 -> {33};
27 -> {28};
28 -> {29};
29 -> {44};
29 -> {30} [style=dotted];
30 -> {31} [style=dotted];
31 -> {32};
32 -> {33};
33 -> {35 34};
34 -> {41};
35 -> {36};
36 -> {37};
31 -> {32} [style=dotted];
32 -> {33} [style=dotted];
33 -> {34};
34 -> {35};
35 -> {37 36};
36 -> {43};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
}
File diff suppressed because it is too large Load Diff