[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
@@ -13,65 +13,89 @@ digraph dataFlowInfoFromWhileCondition_kt {
subgraph cluster_1 {
color=red
2 [label="Enter function test" style="filled" fillcolor=red];
3 [label="Const: Null(null)"];
4 [label="Variable declaration: lvar a: R|A?|"];
subgraph cluster_2 {
color=blue
5 [label="Enter while loop"];
subgraph cluster_3 {
color=blue
6 [label="Enter loop condition"];
subgraph cluster_4 {
color=blue
7 [label="Enter ||"];
8 [label="Access variable R|<local>/a|"];
9 [label="Type operator: (R|<local>/a| is R|B|)"];
10 [label="Exit left part of ||"];
11 [label="Enter right part of ||"];
12 [label="Access variable R|<local>/a|"];
13 [label="Type operator: (R|<local>/a| is R|C|)"];
14 [label="Exit ||"];
}
15 [label="Exit loop condition"];
}
subgraph cluster_5 {
color=blue
16 [label="Enter loop block"];
subgraph cluster_6 {
color=blue
17 [label="Enter block"];
18 [label="Access variable R|<local>/a|"];
19 [label="Function call: R|<local>/a|.R|/A.foo|()"];
20 [label="Exit block"];
}
21 [label="Exit loop block"];
}
22 [label="Exit whileloop"];
}
23 [label="Exit function test" style="filled" fillcolor=red];
2 [label="Enter class A" style="filled" fillcolor=red];
3 [label="Exit class A" style="filled" fillcolor=red];
}
2 -> {3} [color=green];
subgraph cluster_2 {
color=red
4 [label="Enter class B" style="filled" fillcolor=red];
5 [label="Exit class B" style="filled" fillcolor=red];
}
4 -> {5} [color=green];
subgraph cluster_3 {
color=red
6 [label="Enter class C" style="filled" fillcolor=red];
7 [label="Exit class C" style="filled" fillcolor=red];
}
6 -> {7} [color=green];
subgraph cluster_4 {
color=red
8 [label="Enter function test" style="filled" fillcolor=red];
9 [label="Const: Null(null)"];
10 [label="Variable declaration: lvar a: R|A?|"];
subgraph cluster_5 {
color=blue
11 [label="Enter while loop"];
subgraph cluster_6 {
color=blue
12 [label="Enter loop condition"];
subgraph cluster_7 {
color=blue
13 [label="Enter ||"];
14 [label="Access variable R|<local>/a|"];
15 [label="Type operator: (R|<local>/a| is R|B|)"];
16 [label="Exit left part of ||"];
17 [label="Enter right part of ||"];
18 [label="Access variable R|<local>/a|"];
19 [label="Type operator: (R|<local>/a| is R|C|)"];
20 [label="Exit ||"];
}
21 [label="Exit loop condition"];
}
subgraph cluster_8 {
color=blue
22 [label="Enter loop block"];
subgraph cluster_9 {
color=blue
23 [label="Enter block"];
24 [label="Access variable R|<local>/a|"];
25 [label="Function call: R|<local>/a|.R|/A.foo|()"];
26 [label="Exit block"];
}
27 [label="Exit loop block"];
}
28 [label="Exit whileloop"];
}
29 [label="Exit function test" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {14 11};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {22 16};
16 -> {17};
15 -> {16};
16 -> {20 17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {6};
21 -> {28 22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {12};
28 -> {29};
}
@@ -13,502 +13,508 @@ digraph endlessLoops_kt {
subgraph cluster_1 {
color=red
2 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue
3 [label="Enter while loop"];
subgraph cluster_3 {
color=blue
4 [label="Enter loop condition"];
5 [label="Const: Boolean(true)"];
6 [label="Exit loop condition"];
}
subgraph cluster_4 {
color=blue
7 [label="Enter loop block"];
subgraph cluster_5 {
color=blue
8 [label="Enter block"];
9 [label="Access variable R|<local>/x|"];
10 [label="Type operator: (R|<local>/x| as R|A|)"];
subgraph cluster_6 {
color=blue
11 [label="Enter when"];
subgraph cluster_7 {
color=blue
12 [label="Enter when branch condition "];
13 [label="Access variable R|<local>/b|"];
14 [label="Exit when branch condition"];
}
15 [label="Synthetic else branch"];
16 [label="Enter when branch result"];
subgraph cluster_8 {
color=blue
17 [label="Enter block"];
18 [label="Jump: break@@@[Boolean(true)] "];
19 [label="Stub" style="filled" fillcolor=gray];
20 [label="Exit block" style="filled" fillcolor=gray];
}
21 [label="Exit when branch result" style="filled" fillcolor=gray];
22 [label="Exit when"];
}
23 [label="Exit block"];
}
24 [label="Exit loop block"];
}
25 [label="Exit whileloop"];
}
26 [label="Access variable R|<local>/x|"];
27 [label="Function call: R|<local>/x|.R|/A.foo|()"];
28 [label="Exit function test_1" style="filled" fillcolor=red];
2 [label="Enter class A" style="filled" fillcolor=red];
3 [label="Exit class A" style="filled" fillcolor=red];
}
2 -> {3} [color=green];
subgraph cluster_2 {
color=red
4 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
5 [label="Enter while loop"];
subgraph cluster_4 {
color=blue
6 [label="Enter loop condition"];
7 [label="Const: Boolean(true)"];
8 [label="Exit loop condition"];
}
subgraph cluster_5 {
color=blue
9 [label="Enter loop block"];
subgraph cluster_6 {
color=blue
10 [label="Enter block"];
11 [label="Access variable R|<local>/x|"];
12 [label="Type operator: (R|<local>/x| as R|A|)"];
subgraph cluster_7 {
color=blue
13 [label="Enter when"];
subgraph cluster_8 {
color=blue
14 [label="Enter when branch condition "];
15 [label="Access variable R|<local>/b|"];
16 [label="Exit when branch condition"];
}
17 [label="Synthetic else branch"];
18 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
19 [label="Enter block"];
20 [label="Jump: break@@@[Boolean(true)] "];
21 [label="Stub" style="filled" fillcolor=gray];
22 [label="Exit block" style="filled" fillcolor=gray];
}
23 [label="Exit when branch result" style="filled" fillcolor=gray];
24 [label="Exit when"];
}
25 [label="Exit block"];
}
26 [label="Exit loop block"];
}
27 [label="Exit whileloop"];
}
28 [label="Access variable R|<local>/x|"];
29 [label="Function call: R|<local>/x|.R|/A.foo|()"];
30 [label="Exit function test_1" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
6 -> {25} [style=dotted];
7 -> {8};
8 -> {9};
8 -> {27} [style=dotted];
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {16 15};
15 -> {22};
16 -> {17};
17 -> {18};
18 -> {25};
18 -> {19} [style=dotted];
19 -> {20} [style=dotted];
14 -> {15};
15 -> {16};
16 -> {18 17};
17 -> {24};
18 -> {19};
19 -> {20};
20 -> {27};
20 -> {21} [style=dotted];
21 -> {22} [style=dotted];
22 -> {23};
23 -> {24};
24 -> {4};
22 -> {23} [style=dotted];
23 -> {24} [style=dotted];
24 -> {25};
25 -> {26};
26 -> {27};
26 -> {6};
27 -> {28};
28 -> {29};
29 -> {30};
subgraph cluster_9 {
subgraph cluster_10 {
color=red
29 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_10 {
31 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
30 [label="Enter while loop"];
subgraph cluster_11 {
color=blue
31 [label="Enter loop condition"];
32 [label="Const: Boolean(true)"];
33 [label="Exit loop condition"];
}
32 [label="Enter while loop"];
subgraph cluster_12 {
color=blue
34 [label="Enter loop block"];
subgraph cluster_13 {
33 [label="Enter loop condition"];
34 [label="Const: Boolean(true)"];
35 [label="Exit loop condition"];
}
subgraph cluster_13 {
color=blue
36 [label="Enter loop block"];
subgraph cluster_14 {
color=blue
35 [label="Enter block"];
subgraph cluster_14 {
37 [label="Enter block"];
subgraph cluster_15 {
color=blue
36 [label="Enter when"];
subgraph cluster_15 {
color=blue
37 [label="Enter when branch condition "];
38 [label="Access variable R|<local>/b|"];
39 [label="Exit when branch condition"];
}
40 [label="Synthetic else branch"];
41 [label="Enter when branch result"];
38 [label="Enter when"];
subgraph cluster_16 {
color=blue
42 [label="Enter block"];
43 [label="Access variable R|<local>/x|"];
44 [label="Type operator: (R|<local>/x| as R|A|)"];
45 [label="Jump: break@@@[Boolean(true)] "];
46 [label="Stub" style="filled" fillcolor=gray];
47 [label="Exit block" style="filled" fillcolor=gray];
39 [label="Enter when branch condition "];
40 [label="Access variable R|<local>/b|"];
41 [label="Exit when branch condition"];
}
48 [label="Exit when branch result" style="filled" fillcolor=gray];
49 [label="Exit when"];
42 [label="Synthetic else branch"];
43 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
44 [label="Enter block"];
45 [label="Access variable R|<local>/x|"];
46 [label="Type operator: (R|<local>/x| as R|A|)"];
47 [label="Jump: break@@@[Boolean(true)] "];
48 [label="Stub" style="filled" fillcolor=gray];
49 [label="Exit block" style="filled" fillcolor=gray];
}
50 [label="Exit when branch result" style="filled" fillcolor=gray];
51 [label="Exit when"];
}
50 [label="Exit block"];
52 [label="Exit block"];
}
51 [label="Exit loop block"];
53 [label="Exit loop block"];
}
52 [label="Exit whileloop"];
54 [label="Exit whileloop"];
}
53 [label="Access variable R|<local>/x|"];
54 [label="Function call: R|<local>/x|.R|/A.foo|()"];
55 [label="Exit function test_2" style="filled" fillcolor=red];
55 [label="Access variable R|<local>/x|"];
56 [label="Function call: R|<local>/x|.R|/A.foo|()"];
57 [label="Exit function test_2" style="filled" fillcolor=red];
}
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
33 -> {52} [style=dotted];
34 -> {35};
35 -> {36};
35 -> {54} [style=dotted];
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {41 40};
40 -> {49};
41 -> {42};
42 -> {43};
39 -> {40};
40 -> {41};
41 -> {43 42};
42 -> {51};
43 -> {44};
44 -> {45};
45 -> {52};
45 -> {46} [style=dotted];
46 -> {47} [style=dotted];
45 -> {46};
46 -> {47};
47 -> {54};
47 -> {48} [style=dotted];
48 -> {49} [style=dotted];
49 -> {50};
50 -> {51};
51 -> {31};
49 -> {50} [style=dotted];
50 -> {51} [style=dotted];
51 -> {52};
52 -> {53};
53 -> {54};
53 -> {33};
54 -> {55};
55 -> {56};
56 -> {57};
subgraph cluster_17 {
subgraph cluster_18 {
color=red
56 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_18 {
58 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue
57 [label="Enter while loop"];
subgraph cluster_19 {
color=blue
58 [label="Enter loop condition"];
59 [label="Const: Boolean(true)"];
60 [label="Exit loop condition"];
}
59 [label="Enter while loop"];
subgraph cluster_20 {
color=blue
61 [label="Enter loop block"];
subgraph cluster_21 {
60 [label="Enter loop condition"];
61 [label="Const: Boolean(true)"];
62 [label="Exit loop condition"];
}
subgraph cluster_21 {
color=blue
63 [label="Enter loop block"];
subgraph cluster_22 {
color=blue
62 [label="Enter block"];
63 [label="Access variable R|<local>/x|"];
64 [label="Type operator: (R|<local>/x| as R|A|)"];
subgraph cluster_22 {
64 [label="Enter block"];
65 [label="Access variable R|<local>/x|"];
66 [label="Type operator: (R|<local>/x| as R|A|)"];
subgraph cluster_23 {
color=blue
65 [label="Enter when"];
subgraph cluster_23 {
color=blue
66 [label="Enter when branch condition "];
67 [label="Access variable R|<local>/b|"];
68 [label="Exit when branch condition"];
}
69 [label="Synthetic else branch"];
70 [label="Enter when branch result"];
67 [label="Enter when"];
subgraph cluster_24 {
color=blue
71 [label="Enter block"];
72 [label="Jump: break@@@[Boolean(true)] "];
73 [label="Stub" style="filled" fillcolor=gray];
74 [label="Exit block" style="filled" fillcolor=gray];
68 [label="Enter when branch condition "];
69 [label="Access variable R|<local>/b|"];
70 [label="Exit when branch condition"];
}
75 [label="Exit when branch result" style="filled" fillcolor=gray];
76 [label="Exit when"];
}
subgraph cluster_25 {
color=blue
77 [label="Enter when"];
subgraph cluster_26 {
71 [label="Synthetic else branch"];
72 [label="Enter when branch result"];
subgraph cluster_25 {
color=blue
78 [label="Enter when branch condition "];
79 [label="Access variable R|<local>/b|"];
80 [label="Exit when branch condition"];
73 [label="Enter block"];
74 [label="Jump: break@@@[Boolean(true)] "];
75 [label="Stub" style="filled" fillcolor=gray];
76 [label="Exit block" style="filled" fillcolor=gray];
}
81 [label="Synthetic else branch"];
82 [label="Enter when branch result"];
77 [label="Exit when branch result" style="filled" fillcolor=gray];
78 [label="Exit when"];
}
subgraph cluster_26 {
color=blue
79 [label="Enter when"];
subgraph cluster_27 {
color=blue
83 [label="Enter block"];
84 [label="Jump: break@@@[Boolean(true)] "];
85 [label="Stub" style="filled" fillcolor=gray];
86 [label="Exit block" style="filled" fillcolor=gray];
80 [label="Enter when branch condition "];
81 [label="Access variable R|<local>/b|"];
82 [label="Exit when branch condition"];
}
87 [label="Exit when branch result" style="filled" fillcolor=gray];
88 [label="Exit when"];
83 [label="Synthetic else branch"];
84 [label="Enter when branch result"];
subgraph cluster_28 {
color=blue
85 [label="Enter block"];
86 [label="Jump: break@@@[Boolean(true)] "];
87 [label="Stub" style="filled" fillcolor=gray];
88 [label="Exit block" style="filled" fillcolor=gray];
}
89 [label="Exit when branch result" style="filled" fillcolor=gray];
90 [label="Exit when"];
}
89 [label="Exit block"];
91 [label="Exit block"];
}
90 [label="Exit loop block"];
92 [label="Exit loop block"];
}
91 [label="Exit whileloop"];
93 [label="Exit whileloop"];
}
92 [label="Access variable R|<local>/x|"];
93 [label="Function call: R|<local>/x|.R|/A.foo|()"];
94 [label="Exit function test_3" style="filled" fillcolor=red];
94 [label="Access variable R|<local>/x|"];
95 [label="Function call: R|<local>/x|.R|/A.foo|()"];
96 [label="Exit function test_3" style="filled" fillcolor=red];
}
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
60 -> {91} [style=dotted];
61 -> {62};
62 -> {63};
62 -> {93} [style=dotted];
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {70 69};
69 -> {76};
70 -> {71};
71 -> {72};
72 -> {91};
72 -> {73} [style=dotted];
73 -> {74} [style=dotted];
68 -> {69};
69 -> {70};
70 -> {72 71};
71 -> {78};
72 -> {73};
73 -> {74};
74 -> {93};
74 -> {75} [style=dotted];
75 -> {76} [style=dotted];
76 -> {77};
77 -> {78};
76 -> {77} [style=dotted];
77 -> {78} [style=dotted];
78 -> {79};
79 -> {80};
80 -> {82 81};
81 -> {88};
82 -> {83};
83 -> {84};
84 -> {91};
84 -> {85} [style=dotted];
85 -> {86} [style=dotted];
80 -> {81};
81 -> {82};
82 -> {84 83};
83 -> {90};
84 -> {85};
85 -> {86};
86 -> {93};
86 -> {87} [style=dotted];
87 -> {88} [style=dotted];
88 -> {89};
89 -> {90};
90 -> {58};
88 -> {89} [style=dotted];
89 -> {90} [style=dotted];
90 -> {91};
91 -> {92};
92 -> {93};
92 -> {60};
93 -> {94};
94 -> {95};
95 -> {96};
subgraph cluster_28 {
subgraph cluster_29 {
color=red
95 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_29 {
97 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_30 {
color=blue
96 [label="Enter while loop"];
subgraph cluster_30 {
color=blue
97 [label="Enter loop condition"];
98 [label="Const: Boolean(true)"];
99 [label="Exit loop condition"];
}
98 [label="Enter while loop"];
subgraph cluster_31 {
color=blue
100 [label="Enter loop block"];
subgraph cluster_32 {
99 [label="Enter loop condition"];
100 [label="Const: Boolean(true)"];
101 [label="Exit loop condition"];
}
subgraph cluster_32 {
color=blue
102 [label="Enter loop block"];
subgraph cluster_33 {
color=blue
101 [label="Enter block"];
subgraph cluster_33 {
103 [label="Enter block"];
subgraph cluster_34 {
color=blue
102 [label="Enter when"];
subgraph cluster_34 {
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"];
104 [label="Enter when"];
subgraph cluster_35 {
color=blue
108 [label="Enter block"];
109 [label="Access variable R|<local>/x|"];
110 [label="Type operator: (R|<local>/x| as R|A|)"];
111 [label="Jump: break@@@[Boolean(true)] "];
112 [label="Stub" style="filled" fillcolor=gray];
113 [label="Exit block" style="filled" fillcolor=gray];
105 [label="Enter when branch condition "];
106 [label="Access variable R|<local>/b|"];
107 [label="Exit when branch condition"];
}
114 [label="Exit when branch result" style="filled" fillcolor=gray];
115 [label="Exit when"];
108 [label="Synthetic else branch"];
109 [label="Enter when branch result"];
subgraph cluster_36 {
color=blue
110 [label="Enter block"];
111 [label="Access variable R|<local>/x|"];
112 [label="Type operator: (R|<local>/x| as R|A|)"];
113 [label="Jump: break@@@[Boolean(true)] "];
114 [label="Stub" style="filled" fillcolor=gray];
115 [label="Exit block" style="filled" fillcolor=gray];
}
116 [label="Exit when branch result" style="filled" fillcolor=gray];
117 [label="Exit when"];
}
116 [label="Jump: break@@@[Boolean(true)] "];
117 [label="Stub" style="filled" fillcolor=gray];
118 [label="Exit block" style="filled" fillcolor=gray];
118 [label="Jump: break@@@[Boolean(true)] "];
119 [label="Stub" style="filled" fillcolor=gray];
120 [label="Exit block" style="filled" fillcolor=gray];
}
119 [label="Exit loop block" style="filled" fillcolor=gray];
121 [label="Exit loop block" style="filled" fillcolor=gray];
}
120 [label="Exit whileloop"];
122 [label="Exit whileloop"];
}
121 [label="Access variable R|<local>/x|"];
122 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"];
123 [label="Exit function test_4" style="filled" fillcolor=red];
123 [label="Access variable R|<local>/x|"];
124 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"];
125 [label="Exit function test_4" style="filled" fillcolor=red];
}
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
99 -> {120} [style=dotted];
100 -> {101};
101 -> {102};
101 -> {122} [style=dotted];
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {107 106};
106 -> {115};
107 -> {108};
108 -> {109};
105 -> {106};
106 -> {107};
107 -> {109 108};
108 -> {117};
109 -> {110};
110 -> {111};
111 -> {120};
111 -> {112} [style=dotted];
112 -> {113} [style=dotted];
111 -> {112};
112 -> {113};
113 -> {122};
113 -> {114} [style=dotted];
114 -> {115} [style=dotted];
115 -> {116};
116 -> {120};
115 -> {116} [style=dotted];
116 -> {117} [style=dotted];
117 -> {118} [style=dotted];
117 -> {118};
118 -> {122};
118 -> {119} [style=dotted];
119 -> {97} [style=dotted];
120 -> {121};
121 -> {122};
119 -> {120} [style=dotted];
120 -> {121} [style=dotted];
121 -> {99} [style=dotted];
122 -> {123};
123 -> {124};
124 -> {125};
subgraph cluster_36 {
subgraph cluster_37 {
color=red
124 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_37 {
126 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_38 {
color=blue
125 [label="Enter do-while loop"];
subgraph cluster_38 {
127 [label="Enter do-while loop"];
subgraph cluster_39 {
color=blue
126 [label="Enter loop block"];
subgraph cluster_39 {
128 [label="Enter loop block"];
subgraph cluster_40 {
color=blue
127 [label="Enter block"];
subgraph cluster_40 {
129 [label="Enter block"];
subgraph cluster_41 {
color=blue
128 [label="Enter when"];
subgraph cluster_41 {
color=blue
129 [label="Enter when branch condition "];
130 [label="Access variable R|<local>/b|"];
131 [label="Exit when branch condition"];
}
132 [label="Synthetic else branch"];
133 [label="Enter when branch result"];
130 [label="Enter when"];
subgraph cluster_42 {
color=blue
134 [label="Enter block"];
135 [label="Access variable R|<local>/x|"];
136 [label="Type operator: (R|<local>/x| as R|A|)"];
137 [label="Jump: break@@@[Boolean(true)] "];
138 [label="Stub" style="filled" fillcolor=gray];
139 [label="Exit block" style="filled" fillcolor=gray];
131 [label="Enter when branch condition "];
132 [label="Access variable R|<local>/b|"];
133 [label="Exit when branch condition"];
}
140 [label="Exit when branch result" style="filled" fillcolor=gray];
141 [label="Exit when"];
134 [label="Synthetic else branch"];
135 [label="Enter when branch result"];
subgraph cluster_43 {
color=blue
136 [label="Enter block"];
137 [label="Access variable R|<local>/x|"];
138 [label="Type operator: (R|<local>/x| as R|A|)"];
139 [label="Jump: break@@@[Boolean(true)] "];
140 [label="Stub" style="filled" fillcolor=gray];
141 [label="Exit block" style="filled" fillcolor=gray];
}
142 [label="Exit when branch result" style="filled" fillcolor=gray];
143 [label="Exit when"];
}
142 [label="Exit block"];
144 [label="Exit block"];
}
143 [label="Exit loop block"];
145 [label="Exit loop block"];
}
subgraph cluster_43 {
subgraph cluster_44 {
color=blue
144 [label="Enter loop condition"];
145 [label="Const: Boolean(true)"];
146 [label="Exit loop condition"];
146 [label="Enter loop condition"];
147 [label="Const: Boolean(true)"];
148 [label="Exit loop condition"];
}
147 [label="Exit do-whileloop"];
149 [label="Exit do-whileloop"];
}
148 [label="Access variable R|<local>/x|"];
149 [label="Function call: R|<local>/x|.R|/A.foo|()"];
150 [label="Exit function test_5" style="filled" fillcolor=red];
150 [label="Access variable R|<local>/x|"];
151 [label="Function call: R|<local>/x|.R|/A.foo|()"];
152 [label="Exit function test_5" style="filled" fillcolor=red];
}
124 -> {125};
125 -> {126};
126 -> {127};
127 -> {128};
128 -> {129};
129 -> {130};
130 -> {131};
131 -> {133 132};
132 -> {141};
133 -> {134};
134 -> {135};
131 -> {132};
132 -> {133};
133 -> {135 134};
134 -> {143};
135 -> {136};
136 -> {137};
137 -> {147};
137 -> {138} [style=dotted];
138 -> {139} [style=dotted];
137 -> {138};
138 -> {139};
139 -> {149};
139 -> {140} [style=dotted];
140 -> {141} [style=dotted];
141 -> {142};
142 -> {143};
141 -> {142} [style=dotted];
142 -> {143} [style=dotted];
143 -> {144};
144 -> {145};
145 -> {146};
146 -> {126};
146 -> {147} [style=dotted];
146 -> {147};
147 -> {148};
148 -> {149};
148 -> {128};
148 -> {149} [style=dotted];
149 -> {150};
150 -> {151};
151 -> {152};
subgraph cluster_44 {
subgraph cluster_45 {
color=red
151 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_45 {
153 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_46 {
color=blue
152 [label="Enter do-while loop"];
subgraph cluster_46 {
154 [label="Enter do-while loop"];
subgraph cluster_47 {
color=blue
153 [label="Enter loop block"];
subgraph cluster_47 {
155 [label="Enter loop block"];
subgraph cluster_48 {
color=blue
154 [label="Enter block"];
155 [label="Access variable R|<local>/x|"];
156 [label="Type operator: (R|<local>/x| as R|A|)"];
subgraph cluster_48 {
156 [label="Enter block"];
157 [label="Access variable R|<local>/x|"];
158 [label="Type operator: (R|<local>/x| as R|A|)"];
subgraph cluster_49 {
color=blue
157 [label="Enter when"];
subgraph cluster_49 {
color=blue
158 [label="Enter when branch condition "];
159 [label="Access variable R|<local>/b|"];
160 [label="Exit when branch condition"];
}
161 [label="Synthetic else branch"];
162 [label="Enter when branch result"];
159 [label="Enter when"];
subgraph cluster_50 {
color=blue
163 [label="Enter block"];
164 [label="Jump: break@@@[Boolean(true)] "];
165 [label="Stub" style="filled" fillcolor=gray];
166 [label="Exit block" style="filled" fillcolor=gray];
160 [label="Enter when branch condition "];
161 [label="Access variable R|<local>/b|"];
162 [label="Exit when branch condition"];
}
167 [label="Exit when branch result" style="filled" fillcolor=gray];
168 [label="Exit when"];
163 [label="Synthetic else branch"];
164 [label="Enter when branch result"];
subgraph cluster_51 {
color=blue
165 [label="Enter block"];
166 [label="Jump: break@@@[Boolean(true)] "];
167 [label="Stub" style="filled" fillcolor=gray];
168 [label="Exit block" style="filled" fillcolor=gray];
}
169 [label="Exit when branch result" style="filled" fillcolor=gray];
170 [label="Exit when"];
}
169 [label="Exit block"];
171 [label="Exit block"];
}
170 [label="Exit loop block"];
172 [label="Exit loop block"];
}
subgraph cluster_51 {
subgraph cluster_52 {
color=blue
171 [label="Enter loop condition"];
172 [label="Const: Boolean(true)"];
173 [label="Exit loop condition"];
173 [label="Enter loop condition"];
174 [label="Const: Boolean(true)"];
175 [label="Exit loop condition"];
}
174 [label="Exit do-whileloop"];
176 [label="Exit do-whileloop"];
}
175 [label="Access variable R|<local>/x|"];
176 [label="Function call: R|<local>/x|.R|/A.foo|()"];
177 [label="Exit function test_6" style="filled" fillcolor=red];
177 [label="Access variable R|<local>/x|"];
178 [label="Function call: R|<local>/x|.R|/A.foo|()"];
179 [label="Exit function test_6" style="filled" fillcolor=red];
}
151 -> {152};
152 -> {153};
153 -> {154};
154 -> {155};
155 -> {156};
@@ -516,59 +522,59 @@ digraph endlessLoops_kt {
157 -> {158};
158 -> {159};
159 -> {160};
160 -> {162 161};
161 -> {168};
162 -> {163};
163 -> {164};
164 -> {174};
164 -> {165} [style=dotted];
165 -> {166} [style=dotted];
160 -> {161};
161 -> {162};
162 -> {164 163};
163 -> {170};
164 -> {165};
165 -> {166};
166 -> {176};
166 -> {167} [style=dotted];
167 -> {168} [style=dotted];
168 -> {169};
169 -> {170};
168 -> {169} [style=dotted];
169 -> {170} [style=dotted];
170 -> {171};
171 -> {172};
172 -> {173};
173 -> {153};
173 -> {174} [style=dotted];
173 -> {174};
174 -> {175};
175 -> {176};
175 -> {155};
175 -> {176} [style=dotted];
176 -> {177};
177 -> {178};
178 -> {179};
subgraph cluster_52 {
subgraph cluster_53 {
color=red
178 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_53 {
180 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_54 {
color=blue
179 [label="Enter do-while loop"];
subgraph cluster_54 {
181 [label="Enter do-while loop"];
subgraph cluster_55 {
color=blue
180 [label="Enter loop block"];
subgraph cluster_55 {
182 [label="Enter loop block"];
subgraph cluster_56 {
color=blue
181 [label="Enter block"];
182 [label="Access variable R|<local>/x|"];
183 [label="Type operator: (R|<local>/x| as R|A|)"];
184 [label="Exit block"];
183 [label="Enter block"];
184 [label="Access variable R|<local>/x|"];
185 [label="Type operator: (R|<local>/x| as R|A|)"];
186 [label="Exit block"];
}
185 [label="Exit loop block"];
187 [label="Exit loop block"];
}
subgraph cluster_56 {
subgraph cluster_57 {
color=blue
186 [label="Enter loop condition"];
187 [label="Const: Boolean(true)"];
188 [label="Exit loop condition"];
188 [label="Enter loop condition"];
189 [label="Const: Boolean(true)"];
190 [label="Exit loop condition"];
}
189 [label="Exit do-whileloop" style="filled" fillcolor=gray];
191 [label="Exit do-whileloop" style="filled" fillcolor=gray];
}
190 [label="Access variable R|<local>/x|" style="filled" fillcolor=gray];
191 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=gray];
192 [label="Exit function test_7" style="filled" fillcolor=red style="filled" fillcolor=gray];
192 [label="Access variable R|<local>/x|" style="filled" fillcolor=gray];
193 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=gray];
194 [label="Exit function test_7" style="filled" fillcolor=red style="filled" fillcolor=gray];
}
178 -> {179};
179 -> {180};
180 -> {181};
181 -> {182};
182 -> {183};
@@ -577,10 +583,12 @@ digraph endlessLoops_kt {
185 -> {186};
186 -> {187};
187 -> {188};
188 -> {180};
188 -> {189} [style=dotted];
189 -> {190} [style=dotted];
188 -> {189};
189 -> {190};
190 -> {182};
190 -> {191} [style=dotted];
191 -> {192} [style=dotted];
192 -> {193} [style=dotted];
193 -> {194} [style=dotted];
}