[FIR] Introduce new algorithm for building CFG for declarations

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