FIR CFA: put primary constructor before other class members

This commit is contained in:
pyos
2022-12-11 16:35:08 +01:00
committed by Dmitriy Novozhilov
parent c6e9afb788
commit 17ee8f3a7b
31 changed files with 1890 additions and 1871 deletions
@@ -6,19 +6,20 @@ digraph annotatedLocalClass_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter class Ann" style="filled" fillcolor=red]; 0 [label="Enter class Ann" style="filled" fillcolor=red];
1 [label="Exit class Ann" style="filled" fillcolor=red]; subgraph cluster_1 {
} color=blue
subgraph cluster_1 { 1 [label="Enter function <init>" style="filled" fillcolor=red];
color=blue 2 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Enter function <init>" style="filled" fillcolor=red]; 3 [label="Exit function <init>" style="filled" fillcolor=red];
3 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
4 [label="Exit function <init>" style="filled" fillcolor=red]; 4 [label="Exit class Ann" style="filled" fillcolor=red];
} }
0 -> {1} [color=green]; 0 -> {1} [color=green];
1 -> {2} [color=green]; 0 -> {4} [style=dotted];
1 -> {2} [style=dashed]; 0 -> {1} [style=dashed];
1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4} [color=green];
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
@@ -56,13 +57,13 @@ digraph annotatedLocalClass_kt {
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
23 [label="Enter class Local" style="filled" fillcolor=red]; 23 [label="Enter class Local" style="filled" fillcolor=red];
24 [label="Exit class Local" style="filled" fillcolor=red]; subgraph cluster_8 {
} color=blue
subgraph cluster_8 { 24 [label="Enter function <init>" style="filled" fillcolor=red];
color=blue 25 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
25 [label="Enter function <init>" style="filled" fillcolor=red]; 26 [label="Exit function <init>" style="filled" fillcolor=red];
26 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
27 [label="Exit function <init>" style="filled" fillcolor=red]; 27 [label="Exit class Local" style="filled" fillcolor=red];
} }
5 -> {6}; 5 -> {6};
6 -> {7}; 6 -> {7};
@@ -83,12 +84,12 @@ digraph annotatedLocalClass_kt {
19 -> {23} [style=dashed]; 19 -> {23} [style=dashed];
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
23 -> {24} [color=green]; 23 -> {24};
23 -> {25} [color=red]; 23 -> {27} [style=dotted];
24 -> {25} [color=green]; 23 -> {24} [style=dashed];
24 -> {25} [style=dashed]; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {27} [color=green];
subgraph cluster_9 { subgraph cluster_9 {
color=red color=red
@@ -8,82 +8,80 @@ digraph initBlock_kt {
0 [label="Enter class Foo" style="filled" fillcolor=red]; 0 [label="Enter class Foo" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter init block" style="filled" fillcolor=red]; 1 [label="Enter function <init>" style="filled" fillcolor=red];
subgraph cluster_2 { 2 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
color=blue 3 [label="Exit function <init>" style="filled" fillcolor=red];
2 [label="Enter block"];
3 [label="Const: Int(1)"];
4 [label="Variable declaration: lval x: R|kotlin/Int|"];
5 [label="Exit block"];
}
6 [label="Exit init block" style="filled" fillcolor=red];
} }
7 [label="Exit class Foo" style="filled" fillcolor=red]; subgraph cluster_2 {
} color=blue
subgraph cluster_3 { 4 [label="Enter init block" style="filled" fillcolor=red];
color=blue subgraph cluster_3 {
8 [label="Enter function <init>" style="filled" fillcolor=red]; color=blue
9 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; 5 [label="Enter block"];
10 [label="Exit function <init>" style="filled" fillcolor=red]; 6 [label="Const: Int(1)"];
7 [label="Variable declaration: lval x: R|kotlin/Int|"];
8 [label="Exit block"];
}
9 [label="Exit init block" style="filled" fillcolor=red];
}
10 [label="Exit class Foo" style="filled" fillcolor=red];
} }
0 -> {1} [color=green]; 0 -> {1} [color=green];
0 -> {7} [style=dotted]; 0 -> {10} [style=dotted];
0 -> {1} [style=dashed]; 0 -> {1 4} [style=dashed];
1 -> {2}; 1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4} [color=green];
4 -> {5}; 4 -> {5};
5 -> {6}; 5 -> {6};
6 -> {7} [color=green]; 6 -> {7};
7 -> {8} [color=green]; 7 -> {8};
7 -> {8} [style=dashed];
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10} [color=green];
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
11 [label="Enter class Bar" style="filled" fillcolor=red]; 11 [label="Enter class Bar" style="filled" fillcolor=red];
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
12 [label="Enter init block" style="filled" fillcolor=red]; 12 [label="Enter function <init>" style="filled" fillcolor=red];
subgraph cluster_6 { 13 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
color=blue 14 [label="Exit function <init>" style="filled" fillcolor=red];
13 [label="Enter block"];
14 [label="Const: Int(1)"];
15 [label="Variable declaration: lval x: R|kotlin/Int|"];
16 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
17 [label="Throw: throw R|java/lang/Exception.Exception|()"];
18 [label="Stub" style="filled" fillcolor=gray];
19 [label="Const: Int(2)" style="filled" fillcolor=gray];
20 [label="Variable declaration: lval y: R|kotlin/Int|" style="filled" fillcolor=gray];
21 [label="Exit block" style="filled" fillcolor=gray];
}
22 [label="Exit init block" style="filled" fillcolor=gray];
} }
23 [label="Exit class Bar" style="filled" fillcolor=gray]; subgraph cluster_6 {
} color=blue
subgraph cluster_7 { 15 [label="Enter init block" style="filled" fillcolor=red];
color=blue subgraph cluster_7 {
24 [label="Enter function <init>" style="filled" fillcolor=gray]; color=blue
25 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=gray]; 16 [label="Enter block"];
26 [label="Exit function <init>" style="filled" fillcolor=gray]; 17 [label="Const: Int(1)"];
18 [label="Variable declaration: lval x: R|kotlin/Int|"];
19 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
20 [label="Throw: throw R|java/lang/Exception.Exception|()"];
21 [label="Stub" style="filled" fillcolor=gray];
22 [label="Const: Int(2)" style="filled" fillcolor=gray];
23 [label="Variable declaration: lval y: R|kotlin/Int|" style="filled" fillcolor=gray];
24 [label="Exit block" style="filled" fillcolor=gray];
}
25 [label="Exit init block" style="filled" fillcolor=gray];
}
26 [label="Exit class Bar" style="filled" fillcolor=gray];
} }
11 -> {12} [color=green]; 11 -> {12} [color=green];
11 -> {23} [style=dotted]; 11 -> {26} [style=dotted];
11 -> {12} [style=dashed]; 11 -> {12 15} [style=dashed];
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15} [color=green];
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18} [style=dotted]; 17 -> {18};
18 -> {19} [style=dotted]; 18 -> {19};
19 -> {20} [style=dotted]; 19 -> {20};
20 -> {21} [style=dotted]; 20 -> {21} [style=dotted];
21 -> {22} [style=dotted]; 21 -> {22} [style=dotted];
22 -> {23} [style=dotted]; 22 -> {23} [style=dotted];
23 -> {24} [style=dotted]; 23 -> {24} [style=dotted];
23 -> {24} [style=dashed];
24 -> {25} [style=dotted]; 24 -> {25} [style=dotted];
25 -> {26} [style=dotted]; 25 -> {26} [style=dotted];
@@ -22,57 +22,57 @@ digraph initBlockAndInPlaceLambda_kt {
4 [label="Enter class C" style="filled" fillcolor=red]; 4 [label="Enter class C" style="filled" fillcolor=red];
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
5 [label="Enter init block" style="filled" fillcolor=red]; 5 [label="Enter function <init>" style="filled" fillcolor=red];
subgraph cluster_4 { 6 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
color=blue 7 [label="Exit function <init>" style="filled" fillcolor=red];
6 [label="Enter block"];
7 [label="Access variable R|<local>/a|"];
8 [label="Access variable R|/A.b|"];
9 [label="Enter safe call"];
10 [label="Postponed enter to lambda"];
subgraph cluster_5 {
color=blue
11 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
12 [label="Enter block"];
13 [label="Access variable R|<local>/a|"];
14 [label="Access variable R|<local>/it|"];
15 [label="Function call: R|/C.C|(...)" style="filled" fillcolor=yellow];
16 [label="Exit block"];
}
17 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
18 [label="Postponed exit from lambda"];
19 [label="Function call: $subj$.R|kotlin/let|<R|B|, R|C|>(...)" style="filled" fillcolor=yellow];
20 [label="Exit safe call"];
21 [label="Variable declaration: lval c: R|C?|"];
22 [label="Exit block"];
}
23 [label="Exit init block" style="filled" fillcolor=red];
} }
24 [label="Exit class C" style="filled" fillcolor=red]; subgraph cluster_4 {
} color=blue
subgraph cluster_7 { 8 [label="Enter init block" style="filled" fillcolor=red];
color=blue subgraph cluster_5 {
25 [label="Enter function <init>" style="filled" fillcolor=red]; color=blue
26 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; 9 [label="Enter block"];
27 [label="Exit function <init>" style="filled" fillcolor=red]; 10 [label="Access variable R|<local>/a|"];
11 [label="Access variable R|/A.b|"];
12 [label="Enter safe call"];
13 [label="Postponed enter to lambda"];
subgraph cluster_6 {
color=blue
14 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
15 [label="Enter block"];
16 [label="Access variable R|<local>/a|"];
17 [label="Access variable R|<local>/it|"];
18 [label="Function call: R|/C.C|(...)" style="filled" fillcolor=yellow];
19 [label="Exit block"];
}
20 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
21 [label="Postponed exit from lambda"];
22 [label="Function call: $subj$.R|kotlin/let|<R|B|, R|C|>(...)" style="filled" fillcolor=yellow];
23 [label="Exit safe call"];
24 [label="Variable declaration: lval c: R|C?|"];
25 [label="Exit block"];
}
26 [label="Exit init block" style="filled" fillcolor=red];
}
27 [label="Exit class C" style="filled" fillcolor=red];
} }
4 -> {5} [color=green]; 4 -> {5} [color=green];
4 -> {24} [style=dotted]; 4 -> {27} [style=dotted];
4 -> {5} [style=dashed]; 4 -> {5 8} [style=dashed];
5 -> {6}; 5 -> {6};
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8} [color=green];
8 -> {9 20}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11 19}; 10 -> {11};
10 -> {18} [style=dotted]; 11 -> {12 23};
10 -> {11} [style=dashed];
11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14 22};
13 -> {21} [style=dotted];
13 -> {14} [style=dashed];
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
@@ -82,10 +82,9 @@ digraph initBlockAndInPlaceLambda_kt {
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24} [color=green]; 23 -> {24};
24 -> {25} [color=green]; 24 -> {25};
24 -> {25} [style=dashed];
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {27} [color=green];
} }
@@ -10,58 +10,64 @@ digraph innerClassInAnonymousObject_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
2 [label="Enter class <anonymous object>" style="filled" fillcolor=red]; 2 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
3 [label="Exit class <anonymous object>" style="filled" fillcolor=red]; subgraph cluster_2 {
color=blue
3 [label="Enter function <init>" style="filled" fillcolor=red];
4 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
5 [label="Exit function <init>" style="filled" fillcolor=red];
}
6 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
} }
4 [label="Exit anonymous object"]; 7 [label="Exit anonymous object"];
5 [label="Exit anonymous object expression"]; 8 [label="Exit anonymous object expression"];
6 [label="Exit property" style="filled" fillcolor=red]; 9 [label="Exit property" style="filled" fillcolor=red];
}
subgraph cluster_2 {
color=blue
7 [label="Enter class Nested" style="filled" fillcolor=red];
8 [label="Exit class Nested" style="filled" fillcolor=red];
} }
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
9 [label="Enter function foo" style="filled" fillcolor=red]; 10 [label="Enter class Nested" style="filled" fillcolor=red];
subgraph cluster_4 { subgraph cluster_4 {
color=blue color=blue
10 [label="Enter block"]; 11 [label="Enter function <init>" style="filled" fillcolor=red];
11 [label="Exit block"]; 12 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
13 [label="Exit function <init>" style="filled" fillcolor=red];
} }
12 [label="Exit function foo" style="filled" fillcolor=red]; 14 [label="Exit class Nested" style="filled" fillcolor=red];
} }
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
13 [label="Enter function <init>" style="filled" fillcolor=red]; 15 [label="Enter function foo" style="filled" fillcolor=red];
14 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; subgraph cluster_6 {
15 [label="Exit function <init>" style="filled" fillcolor=red]; color=blue
} 16 [label="Enter block"];
subgraph cluster_6 { 17 [label="Exit block"];
color=blue }
16 [label="Enter function <init>" style="filled" fillcolor=red]; 18 [label="Exit function foo" style="filled" fillcolor=red];
17 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
18 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
1 -> {2}; 1 -> {2};
1 -> {4} [color=red]; 1 -> {7} [color=red];
1 -> {2} [style=dashed]; 1 -> {2} [style=dashed];
2 -> {3} [color=green]; 2 -> {3};
2 -> {7 16} [color=red]; 2 -> {10} [color=red];
3 -> {4 7 16} [color=green]; 2 -> {6} [style=dotted];
3 -> {7 16} [style=dashed]; 2 -> {3} [style=dashed];
3 -> {4};
4 -> {5}; 4 -> {5};
5 -> {6}; 5 -> {6} [color=green];
7 -> {8} [color=green]; 6 -> {7 10} [color=green];
7 -> {9 13} [color=red]; 6 -> {10} [style=dashed];
8 -> {9 13} [color=green]; 7 -> {8};
8 -> {9 13} [style=dashed]; 8 -> {9};
9 -> {10};
10 -> {11}; 10 -> {11};
10 -> {15} [color=red];
10 -> {14} [style=dotted];
10 -> {11} [style=dashed];
11 -> {12}; 11 -> {12};
13 -> {14}; 12 -> {13};
14 -> {15}; 13 -> {14} [color=green];
14 -> {15} [color=green];
14 -> {15} [style=dashed];
15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18};
@@ -34,19 +34,20 @@ digraph lambdaReturningObject_kt {
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
8 [label="Enter class IrStarProjectionImpl" style="filled" fillcolor=red]; 8 [label="Enter class IrStarProjectionImpl" style="filled" fillcolor=red];
9 [label="Exit class IrStarProjectionImpl" style="filled" fillcolor=red]; subgraph cluster_5 {
} color=blue
subgraph cluster_5 { 9 [label="Enter function <init>" style="filled" fillcolor=red];
color=blue 10 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
10 [label="Enter function <init>" style="filled" fillcolor=red]; 11 [label="Exit function <init>" style="filled" fillcolor=red];
11 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
12 [label="Exit function <init>" style="filled" fillcolor=red]; 12 [label="Exit class IrStarProjectionImpl" style="filled" fillcolor=red];
} }
8 -> {9} [color=green]; 8 -> {9} [color=green];
9 -> {10} [color=green]; 8 -> {12} [style=dotted];
9 -> {10} [style=dashed]; 8 -> {9} [style=dashed];
9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12} [color=green];
subgraph cluster_6 { subgraph cluster_6 {
color=red color=red
@@ -57,123 +57,129 @@ digraph localClassesWithImplicit_kt {
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
24 [label="Enter class <anonymous object>" style="filled" fillcolor=red]; 24 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
25 [label="Exit class <anonymous object>" style="filled" fillcolor=red]; subgraph cluster_8 {
}
26 [label="Exit anonymous object"];
27 [label="Exit anonymous object expression"];
28 [label="Variable declaration: lval x: R|<anonymous>|"];
29 [label="Exit block"];
}
30 [label="Exit function test" style="filled" fillcolor=red];
}
subgraph cluster_8 {
color=blue
31 [label="Enter function baz" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
32 [label="Enter block"];
33 [label="Const: Int(1)"];
34 [label="Jump: ^baz Int(1)"];
35 [label="Stub" style="filled" fillcolor=gray];
36 [label="Exit block" style="filled" fillcolor=gray];
}
37 [label="Exit function baz" style="filled" fillcolor=red];
}
subgraph cluster_10 {
color=blue
38 [label="Enter function bar" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
39 [label="Enter block"];
40 [label="Postponed enter to lambda"];
subgraph cluster_12 {
color=blue
41 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue color=blue
42 [label="Enter block"]; 25 [label="Enter function <init>" style="filled" fillcolor=red];
43 [label="Access variable R|<local>/a|"]; 26 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
44 [label="Smart cast: R|<local>/a|"]; 27 [label="Exit function <init>" style="filled" fillcolor=red];
45 [label="Access variable R|kotlin/String.length|"];
46 [label="Access variable R|<local>/b|"];
47 [label="Access variable <Unresolved name: length>#"];
48 [label="Function call: this@R|/<anonymous>|.R|/<anonymous>.baz|()" style="filled" fillcolor=yellow];
49 [label="Exit block"];
} }
50 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 28 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
} }
51 [label="Postponed exit from lambda"]; 29 [label="Exit anonymous object"];
52 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow]; 30 [label="Exit anonymous object expression"];
53 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> { 31 [label="Variable declaration: lval x: R|<anonymous>|"];
32 [label="Exit block"];
}
33 [label="Exit function test" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
34 [label="Enter function baz" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
35 [label="Enter block"];
36 [label="Const: Int(1)"];
37 [label="Jump: ^baz Int(1)"];
38 [label="Stub" style="filled" fillcolor=gray];
39 [label="Exit block" style="filled" fillcolor=gray];
}
40 [label="Exit function baz" style="filled" fillcolor=red];
}
subgraph cluster_11 {
color=blue
41 [label="Enter function bar" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
42 [label="Enter block"];
43 [label="Postponed enter to lambda"];
subgraph cluster_13 {
color=blue
44 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
45 [label="Enter block"];
46 [label="Access variable R|<local>/a|"];
47 [label="Smart cast: R|<local>/a|"];
48 [label="Access variable R|kotlin/String.length|"];
49 [label="Access variable R|<local>/b|"];
50 [label="Access variable <Unresolved name: length>#"];
51 [label="Function call: this@R|/<anonymous>|.R|/<anonymous>.baz|()" style="filled" fillcolor=yellow];
52 [label="Exit block"];
}
53 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
54 [label="Postponed exit from lambda"];
55 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
56 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
R|<local>/a|.R|kotlin/String.length| R|<local>/a|.R|kotlin/String.length|
R|<local>/b|.<Unresolved name: length># R|<local>/b|.<Unresolved name: length>#
^ this@R|/<anonymous>|.R|/<anonymous>.baz|() ^ this@R|/<anonymous>|.R|/<anonymous>.baz|()
} }
)"]; )"];
54 [label="Stub" style="filled" fillcolor=gray]; 57 [label="Stub" style="filled" fillcolor=gray];
55 [label="Exit block" style="filled" fillcolor=gray]; 58 [label="Exit block" style="filled" fillcolor=gray];
} }
56 [label="Exit function bar" style="filled" fillcolor=red]; 59 [label="Exit function bar" style="filled" fillcolor=red];
} }
subgraph cluster_14 { subgraph cluster_15 {
color=blue color=blue
57 [label="Enter function foo" style="filled" fillcolor=red]; 60 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_15 { subgraph cluster_16 {
color=blue color=blue
58 [label="Enter block"]; 61 [label="Enter block"];
59 [label="Postponed enter to lambda"]; 62 [label="Postponed enter to lambda"];
subgraph cluster_16 { subgraph cluster_17 {
color=blue color=blue
60 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 63 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_17 { subgraph cluster_18 {
color=blue color=blue
61 [label="Enter block"]; 64 [label="Enter block"];
62 [label="Access variable R|<local>/a|"]; 65 [label="Access variable R|<local>/a|"];
63 [label="Smart cast: R|<local>/a|"]; 66 [label="Smart cast: R|<local>/a|"];
64 [label="Access variable R|kotlin/String.length|"]; 67 [label="Access variable R|kotlin/String.length|"];
subgraph cluster_18 { subgraph cluster_19 {
color=blue color=blue
65 [label="Enter when"]; 68 [label="Enter when"];
subgraph cluster_19 {
color=blue
66 [label="Enter when branch condition "];
67 [label="Access variable R|<local>/b|"];
68 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
69 [label="Exit when branch condition"];
}
subgraph cluster_20 { subgraph cluster_20 {
color=blue color=blue
70 [label="Enter when branch condition else"]; 69 [label="Enter when branch condition "];
71 [label="Exit when branch condition"]; 70 [label="Access variable R|<local>/b|"];
71 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
72 [label="Exit when branch condition"];
} }
72 [label="Enter when branch result"];
subgraph cluster_21 { subgraph cluster_21 {
color=blue color=blue
73 [label="Enter block"]; 73 [label="Enter when branch condition else"];
74 [label="Const: Int(1)"]; 74 [label="Exit when branch condition"];
75 [label="Exit block"];
} }
76 [label="Exit when branch result"]; 75 [label="Enter when branch result"];
77 [label="Enter when branch result"];
subgraph cluster_22 { subgraph cluster_22 {
color=blue color=blue
78 [label="Enter block"]; 76 [label="Enter block"];
79 [label="Access variable R|<local>/b|"]; 77 [label="Const: Int(1)"];
80 [label="Smart cast: R|<local>/b|"]; 78 [label="Exit block"];
81 [label="Access variable R|kotlin/String.length|"];
82 [label="Function call: this@R|/<anonymous>|.R|/<anonymous>.bar|()" style="filled" fillcolor=yellow];
83 [label="Exit block"];
} }
84 [label="Exit when branch result"]; 79 [label="Exit when branch result"];
85 [label="Exit when"]; 80 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
81 [label="Enter block"];
82 [label="Access variable R|<local>/b|"];
83 [label="Smart cast: R|<local>/b|"];
84 [label="Access variable R|kotlin/String.length|"];
85 [label="Function call: this@R|/<anonymous>|.R|/<anonymous>.bar|()" style="filled" fillcolor=yellow];
86 [label="Exit block"];
}
87 [label="Exit when branch result"];
88 [label="Exit when"];
} }
86 [label="Exit block"]; 89 [label="Exit block"];
} }
87 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 90 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
88 [label="Postponed exit from lambda"]; 91 [label="Postponed exit from lambda"];
89 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow]; 92 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
90 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> { 93 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
R|<local>/a|.R|kotlin/String.length| R|<local>/a|.R|kotlin/String.length|
^ when () { ^ when () {
(R|<local>/b| is R|kotlin/String|) -> { (R|<local>/b| is R|kotlin/String|) -> {
@@ -187,130 +193,130 @@ digraph localClassesWithImplicit_kt {
} }
)"]; )"];
91 [label="Stub" style="filled" fillcolor=gray]; 94 [label="Stub" style="filled" fillcolor=gray];
92 [label="Exit block" style="filled" fillcolor=gray]; 95 [label="Exit block" style="filled" fillcolor=gray];
} }
93 [label="Exit function foo" style="filled" fillcolor=red]; 96 [label="Exit function foo" style="filled" fillcolor=red];
}
subgraph cluster_23 {
color=blue
94 [label="Enter function <init>" style="filled" fillcolor=red];
95 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
96 [label="Exit function <init>" style="filled" fillcolor=red];
} }
subgraph cluster_24 { subgraph cluster_24 {
color=blue color=blue
97 [label="Enter class A" style="filled" fillcolor=red]; 97 [label="Enter class A" style="filled" fillcolor=red];
98 [label="Exit class A" style="filled" fillcolor=red]; subgraph cluster_25 {
}
subgraph cluster_25 {
color=blue
99 [label="Enter function baz" style="filled" fillcolor=red];
subgraph cluster_26 {
color=blue color=blue
100 [label="Enter block"]; 98 [label="Enter function <init>" style="filled" fillcolor=red];
101 [label="Const: Int(1)"]; 99 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
102 [label="Jump: ^baz Int(1)"]; 100 [label="Exit function <init>" style="filled" fillcolor=red];
103 [label="Stub" style="filled" fillcolor=gray];
104 [label="Exit block" style="filled" fillcolor=gray];
} }
105 [label="Exit function baz" style="filled" fillcolor=red]; 101 [label="Exit class A" style="filled" fillcolor=red];
} }
subgraph cluster_27 { subgraph cluster_26 {
color=blue color=blue
106 [label="Enter function bar" style="filled" fillcolor=red]; 102 [label="Enter function baz" style="filled" fillcolor=red];
subgraph cluster_28 { subgraph cluster_27 {
color=blue color=blue
107 [label="Enter block"]; 103 [label="Enter block"];
108 [label="Postponed enter to lambda"]; 104 [label="Const: Int(1)"];
subgraph cluster_29 { 105 [label="Jump: ^baz Int(1)"];
106 [label="Stub" style="filled" fillcolor=gray];
107 [label="Exit block" style="filled" fillcolor=gray];
}
108 [label="Exit function baz" style="filled" fillcolor=red];
}
subgraph cluster_28 {
color=blue
109 [label="Enter function bar" style="filled" fillcolor=red];
subgraph cluster_29 {
color=blue
110 [label="Enter block"];
111 [label="Postponed enter to lambda"];
subgraph cluster_30 {
color=blue color=blue
109 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 112 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_30 { subgraph cluster_31 {
color=blue color=blue
110 [label="Enter block"]; 113 [label="Enter block"];
111 [label="Access variable R|<local>/b|"]; 114 [label="Access variable R|<local>/b|"];
112 [label="Access variable <Unresolved name: length>#"]; 115 [label="Access variable <Unresolved name: length>#"];
113 [label="Access variable R|<local>/a|"]; 116 [label="Access variable R|<local>/a|"];
114 [label="Smart cast: R|<local>/a|"]; 117 [label="Smart cast: R|<local>/a|"];
115 [label="Access variable R|kotlin/String.length|"]; 118 [label="Access variable R|kotlin/String.length|"];
116 [label="Function call: this@R|/A|.R|<local>/baz|()" style="filled" fillcolor=yellow]; 119 [label="Function call: this@R|/A|.R|<local>/baz|()" style="filled" fillcolor=yellow];
117 [label="Exit block"]; 120 [label="Exit block"];
} }
118 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 121 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
119 [label="Postponed exit from lambda"]; 122 [label="Postponed exit from lambda"];
120 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow]; 123 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
121 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> { 124 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
R|<local>/b|.<Unresolved name: length># R|<local>/b|.<Unresolved name: length>#
R|<local>/a|.R|kotlin/String.length| R|<local>/a|.R|kotlin/String.length|
^ this@R|/A|.R|<local>/baz|() ^ this@R|/A|.R|<local>/baz|()
} }
)"]; )"];
122 [label="Stub" style="filled" fillcolor=gray]; 125 [label="Stub" style="filled" fillcolor=gray];
123 [label="Exit block" style="filled" fillcolor=gray]; 126 [label="Exit block" style="filled" fillcolor=gray];
} }
124 [label="Exit function bar" style="filled" fillcolor=red]; 127 [label="Exit function bar" style="filled" fillcolor=red];
} }
subgraph cluster_31 { subgraph cluster_32 {
color=blue color=blue
125 [label="Enter function foo" style="filled" fillcolor=red]; 128 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_32 { subgraph cluster_33 {
color=blue color=blue
126 [label="Enter block"]; 129 [label="Enter block"];
127 [label="Postponed enter to lambda"]; 130 [label="Postponed enter to lambda"];
subgraph cluster_33 { subgraph cluster_34 {
color=blue color=blue
128 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 131 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_34 { subgraph cluster_35 {
color=blue color=blue
129 [label="Enter block"]; 132 [label="Enter block"];
130 [label="Access variable R|<local>/a|"]; 133 [label="Access variable R|<local>/a|"];
131 [label="Smart cast: R|<local>/a|"]; 134 [label="Smart cast: R|<local>/a|"];
132 [label="Access variable R|kotlin/String.length|"]; 135 [label="Access variable R|kotlin/String.length|"];
subgraph cluster_35 { subgraph cluster_36 {
color=blue color=blue
133 [label="Enter when"]; 136 [label="Enter when"];
subgraph cluster_36 {
color=blue
134 [label="Enter when branch condition "];
135 [label="Access variable R|<local>/b|"];
136 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
137 [label="Exit when branch condition"];
}
subgraph cluster_37 { subgraph cluster_37 {
color=blue color=blue
138 [label="Enter when branch condition else"]; 137 [label="Enter when branch condition "];
139 [label="Exit when branch condition"]; 138 [label="Access variable R|<local>/b|"];
139 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
140 [label="Exit when branch condition"];
} }
140 [label="Enter when branch result"];
subgraph cluster_38 { subgraph cluster_38 {
color=blue color=blue
141 [label="Enter block"]; 141 [label="Enter when branch condition else"];
142 [label="Const: Int(1)"]; 142 [label="Exit when branch condition"];
143 [label="Exit block"];
} }
144 [label="Exit when branch result"]; 143 [label="Enter when branch result"];
145 [label="Enter when branch result"];
subgraph cluster_39 { subgraph cluster_39 {
color=blue color=blue
146 [label="Enter block"]; 144 [label="Enter block"];
147 [label="Access variable R|<local>/b|"]; 145 [label="Const: Int(1)"];
148 [label="Smart cast: R|<local>/b|"]; 146 [label="Exit block"];
149 [label="Access variable R|kotlin/String.length|"];
150 [label="Function call: this@R|/A|.R|<local>/bar|()" style="filled" fillcolor=yellow];
151 [label="Exit block"];
} }
152 [label="Exit when branch result"]; 147 [label="Exit when branch result"];
153 [label="Exit when"]; 148 [label="Enter when branch result"];
subgraph cluster_40 {
color=blue
149 [label="Enter block"];
150 [label="Access variable R|<local>/b|"];
151 [label="Smart cast: R|<local>/b|"];
152 [label="Access variable R|kotlin/String.length|"];
153 [label="Function call: this@R|/A|.R|<local>/bar|()" style="filled" fillcolor=yellow];
154 [label="Exit block"];
}
155 [label="Exit when branch result"];
156 [label="Exit when"];
} }
154 [label="Exit block"]; 157 [label="Exit block"];
} }
155 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 158 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
156 [label="Postponed exit from lambda"]; 159 [label="Postponed exit from lambda"];
157 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow]; 160 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)" style="filled" fillcolor=yellow];
158 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> { 161 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
R|<local>/a|.R|kotlin/String.length| R|<local>/a|.R|kotlin/String.length|
^ when () { ^ when () {
(R|<local>/b| is R|kotlin/String|) -> { (R|<local>/b| is R|kotlin/String|) -> {
@@ -324,16 +330,10 @@ digraph localClassesWithImplicit_kt {
} }
)"]; )"];
159 [label="Stub" style="filled" fillcolor=gray]; 162 [label="Stub" style="filled" fillcolor=gray];
160 [label="Exit block" style="filled" fillcolor=gray]; 163 [label="Exit block" style="filled" fillcolor=gray];
} }
161 [label="Exit function foo" style="filled" fillcolor=red]; 164 [label="Exit function foo" style="filled" fillcolor=red];
}
subgraph cluster_40 {
color=blue
162 [label="Enter function <init>" style="filled" fillcolor=red];
163 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
164 [label="Exit function <init>" style="filled" fillcolor=red];
} }
7 -> {8}; 7 -> {8};
8 -> {9}; 8 -> {9};
@@ -345,7 +345,7 @@ digraph localClassesWithImplicit_kt {
14 -> {21}; 14 -> {21};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {30}; 17 -> {33};
17 -> {18} [style=dotted]; 17 -> {18} [style=dotted];
18 -> {19} [style=dotted]; 18 -> {19} [style=dotted];
19 -> {20} [style=dotted]; 19 -> {20} [style=dotted];
@@ -354,30 +354,32 @@ digraph localClassesWithImplicit_kt {
22 -> {23 97}; 22 -> {23 97};
22 -> {97} [style=dashed]; 22 -> {97} [style=dashed];
23 -> {24}; 23 -> {24};
23 -> {26} [color=red]; 23 -> {29} [color=red];
23 -> {24} [style=dashed]; 23 -> {24} [style=dashed];
24 -> {25} [color=green]; 24 -> {25};
24 -> {31 38 57 94} [color=red]; 24 -> {34 41 60} [color=red];
25 -> {26 31 38 57 94} [color=green]; 24 -> {28} [style=dotted];
25 -> {31 38 57 94} [style=dashed]; 24 -> {25} [style=dashed];
25 -> {26};
26 -> {27}; 26 -> {27};
27 -> {28}; 27 -> {28} [color=green];
28 -> {29}; 28 -> {29 34 41 60} [color=green];
28 -> {34 41 60} [style=dashed];
29 -> {30}; 29 -> {30};
30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34}; 34 -> {35};
34 -> {37}; 35 -> {36};
34 -> {35} [style=dotted]; 36 -> {37};
35 -> {36} [style=dotted]; 37 -> {40};
36 -> {37} [style=dotted]; 37 -> {38} [style=dotted];
38 -> {39}; 38 -> {39} [style=dotted];
39 -> {40}; 39 -> {40} [style=dotted];
40 -> {41 51 52};
40 -> {41} [style=dashed];
41 -> {42}; 41 -> {42};
42 -> {43}; 42 -> {43};
43 -> {44}; 43 -> {44 54 55};
43 -> {44} [style=dashed];
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
@@ -386,36 +388,36 @@ digraph localClassesWithImplicit_kt {
49 -> {50}; 49 -> {50};
50 -> {51}; 50 -> {51};
51 -> {52}; 51 -> {52};
51 -> {40} [color=green style=dashed];
52 -> {53}; 52 -> {53};
53 -> {56}; 53 -> {54};
53 -> {54} [style=dotted]; 54 -> {55};
54 -> {55} [style=dotted]; 54 -> {43} [color=green style=dashed];
55 -> {56} [style=dotted]; 55 -> {56};
57 -> {58}; 56 -> {59};
58 -> {59}; 56 -> {57} [style=dotted];
59 -> {60 88 89}; 57 -> {58} [style=dotted];
59 -> {60} [style=dashed]; 58 -> {59} [style=dotted];
60 -> {61}; 60 -> {61};
61 -> {62}; 61 -> {62};
62 -> {63}; 62 -> {63 91 92};
62 -> {63} [style=dashed];
63 -> {64}; 63 -> {64};
64 -> {65}; 64 -> {65};
65 -> {66}; 65 -> {66};
66 -> {67}; 66 -> {67};
67 -> {68}; 67 -> {68};
68 -> {69}; 68 -> {69};
69 -> {70 77}; 69 -> {70};
70 -> {71}; 70 -> {71};
71 -> {72}; 71 -> {72};
72 -> {73}; 72 -> {73 80};
73 -> {74}; 73 -> {74};
74 -> {75}; 74 -> {75};
75 -> {76}; 75 -> {76};
76 -> {85}; 76 -> {77};
77 -> {78}; 77 -> {78};
78 -> {79}; 78 -> {79};
79 -> {80}; 79 -> {88};
80 -> {81}; 80 -> {81};
81 -> {82}; 81 -> {82};
82 -> {83}; 82 -> {83};
@@ -425,32 +427,35 @@ digraph localClassesWithImplicit_kt {
86 -> {87}; 86 -> {87};
87 -> {88}; 87 -> {88};
88 -> {89}; 88 -> {89};
88 -> {59} [color=green style=dashed];
89 -> {90}; 89 -> {90};
90 -> {93}; 90 -> {91};
90 -> {91} [style=dotted]; 91 -> {92};
91 -> {92} [style=dotted]; 91 -> {62} [color=green style=dashed];
92 -> {93} [style=dotted]; 92 -> {93};
94 -> {95}; 93 -> {96};
95 -> {96}; 93 -> {94} [style=dotted];
97 -> {98} [color=green]; 94 -> {95} [style=dotted];
97 -> {99 106 125 162} [color=red]; 95 -> {96} [style=dotted];
98 -> {99 106 125 162} [color=green]; 97 -> {98};
98 -> {99 106 125 162} [style=dashed]; 97 -> {102 109 128} [color=red];
97 -> {101} [style=dotted];
97 -> {98} [style=dashed];
98 -> {99};
99 -> {100}; 99 -> {100};
100 -> {101}; 100 -> {101} [color=green];
101 -> {102}; 101 -> {102 109 128} [color=green];
102 -> {105}; 101 -> {102 109 128} [style=dashed];
102 -> {103} [style=dotted]; 102 -> {103};
103 -> {104} [style=dotted]; 103 -> {104};
104 -> {105} [style=dotted]; 104 -> {105};
106 -> {107}; 105 -> {108};
107 -> {108}; 105 -> {106} [style=dotted];
108 -> {109 119 120}; 106 -> {107} [style=dotted];
108 -> {109} [style=dashed]; 107 -> {108} [style=dotted];
109 -> {110}; 109 -> {110};
110 -> {111}; 110 -> {111};
111 -> {112}; 111 -> {112 122 123};
111 -> {112} [style=dashed];
112 -> {113}; 112 -> {113};
113 -> {114}; 113 -> {114};
114 -> {115}; 114 -> {115};
@@ -459,36 +464,36 @@ digraph localClassesWithImplicit_kt {
117 -> {118}; 117 -> {118};
118 -> {119}; 118 -> {119};
119 -> {120}; 119 -> {120};
119 -> {108} [color=green style=dashed];
120 -> {121}; 120 -> {121};
121 -> {124}; 121 -> {122};
121 -> {122} [style=dotted]; 122 -> {123};
122 -> {123} [style=dotted]; 122 -> {111} [color=green style=dashed];
123 -> {124} [style=dotted]; 123 -> {124};
125 -> {126}; 124 -> {127};
126 -> {127}; 124 -> {125} [style=dotted];
127 -> {128 156 157}; 125 -> {126} [style=dotted];
127 -> {128} [style=dashed]; 126 -> {127} [style=dotted];
128 -> {129}; 128 -> {129};
129 -> {130}; 129 -> {130};
130 -> {131}; 130 -> {131 159 160};
130 -> {131} [style=dashed];
131 -> {132}; 131 -> {132};
132 -> {133}; 132 -> {133};
133 -> {134}; 133 -> {134};
134 -> {135}; 134 -> {135};
135 -> {136}; 135 -> {136};
136 -> {137}; 136 -> {137};
137 -> {138 145}; 137 -> {138};
138 -> {139}; 138 -> {139};
139 -> {140}; 139 -> {140};
140 -> {141}; 140 -> {141 148};
141 -> {142}; 141 -> {142};
142 -> {143}; 142 -> {143};
143 -> {144}; 143 -> {144};
144 -> {153}; 144 -> {145};
145 -> {146}; 145 -> {146};
146 -> {147}; 146 -> {147};
147 -> {148}; 147 -> {156};
148 -> {149}; 148 -> {149};
149 -> {150}; 149 -> {150};
150 -> {151}; 150 -> {151};
@@ -498,13 +503,14 @@ digraph localClassesWithImplicit_kt {
154 -> {155}; 154 -> {155};
155 -> {156}; 155 -> {156};
156 -> {157}; 156 -> {157};
156 -> {127} [color=green style=dashed];
157 -> {158}; 157 -> {158};
158 -> {161}; 158 -> {159};
158 -> {159} [style=dotted]; 159 -> {160};
159 -> {160} [style=dotted]; 159 -> {130} [color=green style=dashed];
160 -> {161} [style=dotted]; 160 -> {161};
162 -> {163}; 161 -> {164};
163 -> {164}; 161 -> {162} [style=dotted];
162 -> {163} [style=dotted];
163 -> {164} [style=dotted];
} }
@@ -6,103 +6,105 @@ digraph postponedLambdaInConstructor_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter class A" style="filled" fillcolor=red]; 0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red]; subgraph cluster_1 {
} color=blue
subgraph cluster_1 { 1 [label="Enter function <init>" style="filled" fillcolor=red];
color=blue 2 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Enter function <init>" style="filled" fillcolor=red]; 3 [label="Exit function <init>" style="filled" fillcolor=red];
3 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
4 [label="Exit function <init>" style="filled" fillcolor=red]; 4 [label="Exit class A" style="filled" fillcolor=red];
} }
0 -> {1} [color=green]; 0 -> {1} [color=green];
1 -> {2} [color=green]; 0 -> {4} [style=dotted];
1 -> {2} [style=dashed]; 0 -> {1} [style=dashed];
1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4} [color=green];
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
5 [label="Enter class B" style="filled" fillcolor=red]; 5 [label="Enter class B" style="filled" fillcolor=red];
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
6 [label="Enter property" style="filled" fillcolor=red]; 6 [label="Enter function <init>" style="filled" fillcolor=red];
7 [label="Access variable R|<local>/s|"]; 7 [label="Access variable R|<local>/s|"];
8 [label="Exit property" style="filled" fillcolor=red]; 8 [label="Postponed enter to lambda"];
} subgraph cluster_4 {
9 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_4 {
color=blue
10 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
11 [label="Enter block"];
12 [label="Function call: this@R|/B|.R|/B.foo|()" style="filled" fillcolor=yellow];
13 [label="Exit block"];
}
14 [label="Exit function foo" style="filled" fillcolor=red];
}
subgraph cluster_6 {
color=blue
15 [label="Enter function <init>" style="filled" fillcolor=red];
16 [label="Access variable R|<local>/s|"];
17 [label="Postponed enter to lambda"];
subgraph cluster_7 {
color=blue
18 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue color=blue
19 [label="Enter block"]; 9 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
20 [label="Exit anonymous function expression"]; subgraph cluster_5 {
subgraph cluster_9 {
color=blue color=blue
21 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 10 [label="Enter block"];
subgraph cluster_10 { 11 [label="Exit anonymous function expression"];
subgraph cluster_6 {
color=blue color=blue
22 [label="Enter block"]; 12 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
23 [label="Access variable R|<local>/it|"]; subgraph cluster_7 {
24 [label="Exit block"]; color=blue
13 [label="Enter block"];
14 [label="Access variable R|<local>/it|"];
15 [label="Exit block"];
}
16 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
25 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 17 [label="Exit block"];
} }
26 [label="Exit block"]; 18 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
27 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 19 [label="Postponed exit from lambda"];
20 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)" style="filled" fillcolor=yellow];
21 [label="Delegated constructor call: super<R|A|>(...)" style="filled" fillcolor=yellow];
22 [label="Exit function <init>" style="filled" fillcolor=red];
} }
28 [label="Postponed exit from lambda"]; subgraph cluster_8 {
29 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)" style="filled" fillcolor=yellow]; color=blue
30 [label="Delegated constructor call: super<R|A|>(...)" style="filled" fillcolor=yellow]; 23 [label="Enter property" style="filled" fillcolor=red];
31 [label="Exit function <init>" style="filled" fillcolor=red]; 24 [label="Access variable R|<local>/s|"];
25 [label="Exit property" style="filled" fillcolor=red];
}
26 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
27 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
28 [label="Enter block"];
29 [label="Function call: this@R|/B|.R|/B.foo|()" style="filled" fillcolor=yellow];
30 [label="Exit block"];
}
31 [label="Exit function foo" style="filled" fillcolor=red];
} }
5 -> {6} [color=green]; 5 -> {6} [color=green];
5 -> {9} [style=dotted]; 5 -> {26} [style=dotted];
5 -> {6} [style=dashed]; 5 -> {6 23} [style=dashed];
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {9} [color=green]; 8 -> {9 20};
9 -> {10 15} [color=green]; 8 -> {19} [style=dotted];
9 -> {10 15} [style=dashed]; 8 -> {9} [style=dashed];
9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12 17};
11 -> {12} [style=dashed];
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 17 -> {18};
17 -> {18 29};
17 -> {28} [style=dotted];
17 -> {18} [style=dashed];
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20} [color=green];
20 -> {21 26}; 19 -> {21} [color=red];
20 -> {21} [style=dashed]; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23} [color=green];
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
26 -> {27}; 25 -> {26} [color=green];
26 -> {27} [color=green];
26 -> {27} [style=dashed];
27 -> {28}; 27 -> {28};
28 -> {29} [color=green]; 28 -> {29};
28 -> {30} [color=red];
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
@@ -6,19 +6,20 @@ digraph postponedLambdaInReturn_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter class Lateinit" style="filled" fillcolor=red]; 0 [label="Enter class Lateinit" style="filled" fillcolor=red];
1 [label="Exit class Lateinit" style="filled" fillcolor=red]; subgraph cluster_1 {
} color=blue
subgraph cluster_1 { 1 [label="Enter function <init>" style="filled" fillcolor=red];
color=blue 2 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Enter function <init>" style="filled" fillcolor=red]; 3 [label="Exit function <init>" style="filled" fillcolor=red];
3 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
4 [label="Exit function <init>" style="filled" fillcolor=red]; 4 [label="Exit class Lateinit" style="filled" fillcolor=red];
} }
0 -> {1} [color=green]; 0 -> {1} [color=green];
1 -> {2} [color=green]; 0 -> {4} [style=dotted];
1 -> {2} [style=dashed]; 0 -> {1} [style=dashed];
1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4} [color=green];
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
@@ -92,24 +92,24 @@ digraph propertiesAndInitBlocks_kt {
29 [label="Enter class GetterLocalClass" style="filled" fillcolor=red]; 29 [label="Enter class GetterLocalClass" style="filled" fillcolor=red];
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
30 [label="Enter init block" style="filled" fillcolor=red]; 30 [label="Enter function <init>" style="filled" fillcolor=red];
subgraph cluster_12 { 31 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
color=blue 32 [label="Exit function <init>" style="filled" fillcolor=red];
31 [label="Enter block"];
32 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
33 [label="Throw: throw R|java/lang/Exception.Exception|()"];
34 [label="Stub" style="filled" fillcolor=gray];
35 [label="Exit block" style="filled" fillcolor=gray];
}
36 [label="Exit init block" style="filled" fillcolor=gray];
} }
37 [label="Exit class GetterLocalClass" style="filled" fillcolor=gray]; subgraph cluster_12 {
} color=blue
subgraph cluster_13 { 33 [label="Enter init block" style="filled" fillcolor=red];
color=blue subgraph cluster_13 {
38 [label="Enter function <init>" style="filled" fillcolor=gray]; color=blue
39 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=gray]; 34 [label="Enter block"];
40 [label="Exit function <init>" style="filled" fillcolor=gray]; 35 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
36 [label="Throw: throw R|java/lang/Exception.Exception|()"];
37 [label="Stub" style="filled" fillcolor=gray];
38 [label="Exit block" style="filled" fillcolor=gray];
}
39 [label="Exit init block" style="filled" fillcolor=gray];
}
40 [label="Exit class GetterLocalClass" style="filled" fillcolor=gray];
} }
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
@@ -117,18 +117,17 @@ digraph propertiesAndInitBlocks_kt {
26 -> {29} [style=dashed]; 26 -> {29} [style=dashed];
27 -> {28}; 27 -> {28};
29 -> {30}; 29 -> {30};
29 -> {38} [color=red]; 29 -> {33} [color=red];
29 -> {37} [style=dotted]; 29 -> {40} [style=dotted];
29 -> {30} [style=dashed]; 29 -> {30 33} [style=dashed];
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33} [color=green];
33 -> {34} [style=dotted]; 33 -> {34};
34 -> {35} [style=dotted]; 34 -> {35};
35 -> {36} [style=dotted]; 35 -> {36};
36 -> {37} [style=dotted]; 36 -> {37} [style=dotted];
37 -> {38} [style=dotted]; 37 -> {38} [style=dotted];
37 -> {38} [style=dashed];
38 -> {39} [style=dotted]; 38 -> {39} [style=dotted];
39 -> {40} [style=dotted]; 39 -> {40} [style=dotted];
@@ -156,25 +155,25 @@ digraph propertiesAndInitBlocks_kt {
52 [label="Enter class InitializerLocalClass" style="filled" fillcolor=red]; 52 [label="Enter class InitializerLocalClass" style="filled" fillcolor=red];
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
53 [label="Enter init block" style="filled" fillcolor=red]; 53 [label="Enter function <init>" style="filled" fillcolor=red];
subgraph cluster_19 { 54 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
color=blue 55 [label="Exit function <init>" style="filled" fillcolor=red];
54 [label="Enter block"];
55 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
56 [label="Throw: throw R|java/lang/Exception.Exception|()"];
57 [label="Stub" style="filled" fillcolor=gray];
58 [label="Const: Int(1)" style="filled" fillcolor=gray];
59 [label="Exit block" style="filled" fillcolor=gray];
}
60 [label="Exit init block" style="filled" fillcolor=gray];
} }
61 [label="Exit class InitializerLocalClass" style="filled" fillcolor=gray]; subgraph cluster_19 {
} color=blue
subgraph cluster_20 { 56 [label="Enter init block" style="filled" fillcolor=red];
color=blue subgraph cluster_20 {
62 [label="Enter function <init>" style="filled" fillcolor=gray]; color=blue
63 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=gray]; 57 [label="Enter block"];
64 [label="Exit function <init>" style="filled" fillcolor=gray]; 58 [label="Function call: R|java/lang/Exception.Exception|()" style="filled" fillcolor=yellow];
59 [label="Throw: throw R|java/lang/Exception.Exception|()"];
60 [label="Stub" style="filled" fillcolor=gray];
61 [label="Const: Int(1)" style="filled" fillcolor=gray];
62 [label="Exit block" style="filled" fillcolor=gray];
}
63 [label="Exit init block" style="filled" fillcolor=gray];
}
64 [label="Exit class InitializerLocalClass" style="filled" fillcolor=gray];
} }
subgraph cluster_21 { subgraph cluster_21 {
color=blue color=blue
@@ -212,19 +211,18 @@ digraph propertiesAndInitBlocks_kt {
50 -> {51} [style=dotted]; 50 -> {51} [style=dotted];
51 -> {76} [style=dotted]; 51 -> {76} [style=dotted];
52 -> {53}; 52 -> {53};
52 -> {62} [color=red]; 52 -> {56} [color=red];
52 -> {61} [style=dotted]; 52 -> {64} [style=dotted];
52 -> {53} [style=dashed]; 52 -> {53 56} [style=dashed];
53 -> {54}; 53 -> {54};
54 -> {55}; 54 -> {55};
55 -> {56}; 55 -> {56} [color=green];
56 -> {57} [style=dotted]; 56 -> {57};
57 -> {58} [style=dotted]; 57 -> {58};
58 -> {59} [style=dotted]; 58 -> {59};
59 -> {60} [style=dotted]; 59 -> {60} [style=dotted];
60 -> {61} [style=dotted]; 60 -> {61} [style=dotted];
61 -> {62} [style=dotted]; 61 -> {62} [style=dotted];
61 -> {62} [style=dashed];
62 -> {63} [style=dotted]; 62 -> {63} [style=dotted];
63 -> {64} [style=dotted]; 63 -> {64} [style=dotted];
65 -> {66}; 65 -> {66};
@@ -13,36 +13,38 @@ digraph returnValuesFromLambda_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter class B" style="filled" fillcolor=red]; 2 [label="Enter class B" style="filled" fillcolor=red];
3 [label="Exit class B" style="filled" fillcolor=red]; subgraph cluster_2 {
} color=blue
subgraph cluster_2 { 3 [label="Enter function <init>" style="filled" fillcolor=red];
color=blue 4 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
4 [label="Enter function <init>" style="filled" fillcolor=red]; 5 [label="Exit function <init>" style="filled" fillcolor=red];
5 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
6 [label="Exit function <init>" style="filled" fillcolor=red]; 6 [label="Exit class B" style="filled" fillcolor=red];
} }
2 -> {3} [color=green]; 2 -> {3} [color=green];
3 -> {4} [color=green]; 2 -> {6} [style=dotted];
3 -> {4} [style=dashed]; 2 -> {3} [style=dashed];
3 -> {4};
4 -> {5}; 4 -> {5};
5 -> {6}; 5 -> {6} [color=green];
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
7 [label="Enter class C" style="filled" fillcolor=red]; 7 [label="Enter class C" style="filled" fillcolor=red];
8 [label="Exit class C" style="filled" fillcolor=red]; subgraph cluster_4 {
} color=blue
subgraph cluster_4 { 8 [label="Enter function <init>" style="filled" fillcolor=red];
color=blue 9 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
9 [label="Enter function <init>" style="filled" fillcolor=red]; 10 [label="Exit function <init>" style="filled" fillcolor=red];
10 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
11 [label="Exit function <init>" style="filled" fillcolor=red]; 11 [label="Exit class C" style="filled" fillcolor=red];
} }
7 -> {8} [color=green]; 7 -> {8} [color=green];
8 -> {9} [color=green]; 7 -> {11} [style=dotted];
8 -> {9} [style=dashed]; 7 -> {8} [style=dashed];
8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11} [color=green];
subgraph cluster_5 { subgraph cluster_5 {
color=red color=red
@@ -6,36 +6,38 @@ digraph exhaustiveWhenAndDNNType_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter class SomeEnum" style="filled" fillcolor=red]; 0 [label="Enter class SomeEnum" style="filled" fillcolor=red];
1 [label="Exit class SomeEnum" style="filled" fillcolor=red]; subgraph cluster_1 {
} color=blue
subgraph cluster_1 { 1 [label="Enter function <init>" style="filled" fillcolor=red];
color=blue 2 [label="Delegated constructor call: super<R|kotlin/Enum<SomeEnum>|>()" style="filled" fillcolor=yellow];
2 [label="Enter function <init>" style="filled" fillcolor=red]; 3 [label="Exit function <init>" style="filled" fillcolor=red];
3 [label="Delegated constructor call: super<R|kotlin/Enum<SomeEnum>|>()" style="filled" fillcolor=yellow]; }
4 [label="Exit function <init>" style="filled" fillcolor=red]; 4 [label="Exit class SomeEnum" style="filled" fillcolor=red];
} }
0 -> {1} [color=green]; 0 -> {1} [color=green];
1 -> {2} [color=green]; 0 -> {4} [style=dotted];
1 -> {2} [style=dashed]; 0 -> {1} [style=dashed];
1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4} [color=green];
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
5 [label="Enter class B" style="filled" fillcolor=red]; 5 [label="Enter class B" style="filled" fillcolor=red];
6 [label="Exit class B" style="filled" fillcolor=red]; subgraph cluster_3 {
} color=blue
subgraph cluster_3 { 6 [label="Enter function <init>" style="filled" fillcolor=red];
color=blue 7 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
7 [label="Enter function <init>" style="filled" fillcolor=red]; 8 [label="Exit function <init>" style="filled" fillcolor=red];
8 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
9 [label="Exit function <init>" style="filled" fillcolor=red]; 9 [label="Exit class B" style="filled" fillcolor=red];
} }
5 -> {6} [color=green]; 5 -> {6} [color=green];
6 -> {7} [color=green]; 5 -> {9} [style=dotted];
6 -> {7} [style=dashed]; 5 -> {6} [style=dashed];
6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {9}; 8 -> {9} [color=green];
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
@@ -8,82 +8,83 @@ digraph secondaryConstructorCfg_kt {
0 [label="Enter class B" style="filled" fillcolor=red]; 0 [label="Enter class B" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter property" style="filled" fillcolor=red]; 1 [label="Enter function <init>" style="filled" fillcolor=red];
2 [label="Access variable R|<local>/p0|"]; 2 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
3 [label="Exit property" style="filled" fillcolor=red]; 3 [label="Exit function <init>" style="filled" fillcolor=red];
} }
subgraph cluster_2 { subgraph cluster_2 {
color=blue color=blue
4 [label="Enter property" style="filled" fillcolor=red]; 4 [label="Enter property" style="filled" fillcolor=red];
5 [label="Access variable R|<local>/p0|"]; 5 [label="Access variable R|<local>/p0|"];
6 [label="Access variable R|kotlin/String.length|"]; 6 [label="Exit property" style="filled" fillcolor=red];
7 [label="Exit property" style="filled" fillcolor=red];
} }
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
8 [label="Enter init block" style="filled" fillcolor=red]; 7 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_4 { 8 [label="Access variable R|<local>/p0|"];
color=blue 9 [label="Access variable R|kotlin/String.length|"];
9 [label="Enter block"]; 10 [label="Exit property" style="filled" fillcolor=red];
10 [label="Access variable R|<local>/p0|"];
11 [label="Access variable R|kotlin/String.length|"];
12 [label="Assignment: R|/B.p1|"];
13 [label="Const: String()"];
14 [label="Assignment: R|/B.p3|"];
15 [label="Exit block"];
}
16 [label="Exit init block" style="filled" fillcolor=red];
} }
17 [label="Exit class B" style="filled" fillcolor=red]; subgraph cluster_4 {
}
subgraph cluster_5 {
color=blue
18 [label="Enter function <init>" style="filled" fillcolor=red];
19 [label="Access variable R|<local>/p0|"];
20 [label="Delegated constructor call: this<R|B|>(...)" style="filled" fillcolor=yellow];
subgraph cluster_6 {
color=blue color=blue
21 [label="Enter block"]; 11 [label="Enter init block" style="filled" fillcolor=red];
22 [label="Access variable R|<local>/p1|"]; subgraph cluster_5 {
23 [label="Assignment: R|/B.p3|"]; color=blue
24 [label="Exit block"]; 12 [label="Enter block"];
13 [label="Access variable R|<local>/p0|"];
14 [label="Access variable R|kotlin/String.length|"];
15 [label="Assignment: R|/B.p1|"];
16 [label="Const: String()"];
17 [label="Assignment: R|/B.p3|"];
18 [label="Exit block"];
}
19 [label="Exit init block" style="filled" fillcolor=red];
} }
25 [label="Exit function <init>" style="filled" fillcolor=red]; 20 [label="Exit class B" style="filled" fillcolor=red];
} }
subgraph cluster_7 { subgraph cluster_6 {
color=blue color=blue
26 [label="Enter function <init>" style="filled" fillcolor=red]; 21 [label="Enter function <init>" style="filled" fillcolor=red];
27 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; 22 [label="Access variable R|<local>/p0|"];
23 [label="Delegated constructor call: this<R|B|>(...)" style="filled" fillcolor=yellow];
subgraph cluster_7 {
color=blue
24 [label="Enter block"];
25 [label="Access variable R|<local>/p1|"];
26 [label="Assignment: R|/B.p3|"];
27 [label="Exit block"];
}
28 [label="Exit function <init>" style="filled" fillcolor=red]; 28 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1} [color=green]; 0 -> {1} [color=green];
0 -> {17} [style=dotted]; 0 -> {20} [style=dotted];
0 -> {1 4 8} [style=dashed]; 0 -> {1 4 7 11} [style=dashed];
1 -> {2}; 1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4} [color=green]; 3 -> {4} [color=green];
4 -> {5}; 4 -> {5};
5 -> {6}; 5 -> {6};
6 -> {7}; 6 -> {7} [color=green];
7 -> {8} [color=green]; 7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11} [color=green];
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17} [color=green]; 16 -> {17};
17 -> {18 26} [color=green]; 17 -> {18};
17 -> {18 26} [style=dashed];
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20} [color=green];
20 -> {21}; 20 -> {21} [color=green];
20 -> {21} [style=dashed];
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26};
26 -> {27}; 26 -> {27};
27 -> {28}; 27 -> {28};
@@ -341,28 +341,27 @@ digraph boundSmartcasts_kt {
125 [label="Enter class D" style="filled" fillcolor=red]; 125 [label="Enter class D" style="filled" fillcolor=red];
subgraph cluster_28 { subgraph cluster_28 {
color=blue color=blue
126 [label="Enter property" style="filled" fillcolor=red]; 126 [label="Enter function <init>" style="filled" fillcolor=red];
127 [label="Access variable R|<local>/any|"]; 127 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
128 [label="Exit property" style="filled" fillcolor=red]; 128 [label="Exit function <init>" style="filled" fillcolor=red];
} }
129 [label="Exit class D" style="filled" fillcolor=red]; subgraph cluster_29 {
} color=blue
subgraph cluster_29 { 129 [label="Enter property" style="filled" fillcolor=red];
color=blue 130 [label="Access variable R|<local>/any|"];
130 [label="Enter function <init>" style="filled" fillcolor=red]; 131 [label="Exit property" style="filled" fillcolor=red];
131 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
132 [label="Exit function <init>" style="filled" fillcolor=red]; 132 [label="Exit class D" style="filled" fillcolor=red];
} }
125 -> {126} [color=green]; 125 -> {126} [color=green];
125 -> {129} [style=dotted]; 125 -> {132} [style=dotted];
125 -> {126} [style=dashed]; 125 -> {126 129} [style=dashed];
126 -> {127}; 126 -> {127};
127 -> {128}; 127 -> {128};
128 -> {129} [color=green]; 128 -> {129} [color=green];
129 -> {130} [color=green]; 129 -> {130};
129 -> {130} [style=dashed];
130 -> {131}; 130 -> {131};
131 -> {132}; 131 -> {132} [color=green];
subgraph cluster_30 { subgraph cluster_30 {
color=red color=red
@@ -8,28 +8,27 @@ digraph boundSmartcastsInBranches_kt {
0 [label="Enter class A" style="filled" fillcolor=red]; 0 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter property" style="filled" fillcolor=red]; 1 [label="Enter function <init>" style="filled" fillcolor=red];
2 [label="Const: String()"]; 2 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
3 [label="Exit property" style="filled" fillcolor=red]; 3 [label="Exit function <init>" style="filled" fillcolor=red];
} }
4 [label="Exit class A" style="filled" fillcolor=red]; subgraph cluster_2 {
} color=blue
subgraph cluster_2 { 4 [label="Enter property" style="filled" fillcolor=red];
color=blue 5 [label="Const: String()"];
5 [label="Enter function <init>" style="filled" fillcolor=red]; 6 [label="Exit property" style="filled" fillcolor=red];
6 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
7 [label="Exit function <init>" style="filled" fillcolor=red]; 7 [label="Exit class A" style="filled" fillcolor=red];
} }
0 -> {1} [color=green]; 0 -> {1} [color=green];
0 -> {4} [style=dotted]; 0 -> {7} [style=dotted];
0 -> {1} [style=dashed]; 0 -> {1 4} [style=dashed];
1 -> {2}; 1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4} [color=green]; 3 -> {4} [color=green];
4 -> {5} [color=green]; 4 -> {5};
4 -> {5} [style=dashed];
5 -> {6}; 5 -> {6};
6 -> {7}; 6 -> {7} [color=green];
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
@@ -6,47 +6,47 @@ digraph functionCallBound_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter class Base" style="filled" fillcolor=red]; 0 [label="Enter class Base" style="filled" fillcolor=red];
1 [label="Exit class Base" style="filled" fillcolor=red]; subgraph cluster_1 {
} color=blue
subgraph cluster_1 { 1 [label="Enter function <init>" style="filled" fillcolor=red];
color=blue 2 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Enter function <init>" style="filled" fillcolor=red]; 3 [label="Exit function <init>" style="filled" fillcolor=red];
3 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
4 [label="Exit function <init>" style="filled" fillcolor=red]; 4 [label="Exit class Base" style="filled" fillcolor=red];
} }
0 -> {1} [color=green]; 0 -> {1} [color=green];
1 -> {2} [color=green]; 0 -> {4} [style=dotted];
1 -> {2} [style=dashed]; 0 -> {1} [style=dashed];
1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4} [color=green];
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
5 [label="Enter class Sub" style="filled" fillcolor=red]; 5 [label="Enter class Sub" style="filled" fillcolor=red];
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
6 [label="Enter property" style="filled" fillcolor=red]; 6 [label="Enter function <init>" style="filled" fillcolor=red];
7 [label="Access variable R|<local>/data|"]; 7 [label="Delegated constructor call: super<R|Base|>()" style="filled" fillcolor=yellow];
8 [label="Exit property" style="filled" fillcolor=red]; 8 [label="Exit function <init>" style="filled" fillcolor=red];
} }
9 [label="Exit class Sub" style="filled" fillcolor=red]; subgraph cluster_4 {
} color=blue
subgraph cluster_4 { 9 [label="Enter property" style="filled" fillcolor=red];
color=blue 10 [label="Access variable R|<local>/data|"];
10 [label="Enter function <init>" style="filled" fillcolor=red]; 11 [label="Exit property" style="filled" fillcolor=red];
11 [label="Delegated constructor call: super<R|Base|>()" style="filled" fillcolor=yellow]; }
12 [label="Exit function <init>" style="filled" fillcolor=red]; 12 [label="Exit class Sub" style="filled" fillcolor=red];
} }
5 -> {6} [color=green]; 5 -> {6} [color=green];
5 -> {9} [style=dotted]; 5 -> {12} [style=dotted];
5 -> {6} [style=dashed]; 5 -> {6 9} [style=dashed];
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {9} [color=green]; 8 -> {9} [color=green];
9 -> {10} [color=green]; 9 -> {10};
9 -> {10} [style=dashed];
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12} [color=green];
subgraph cluster_5 { subgraph cluster_5 {
color=red color=red
@@ -6,95 +6,100 @@ digraph lambdaInWhenBranch_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter class Sealed" style="filled" fillcolor=red]; 0 [label="Enter class Sealed" style="filled" fillcolor=red];
1 [label="Exit class Sealed" style="filled" fillcolor=red]; subgraph cluster_1 {
} color=blue
subgraph cluster_1 { 1 [label="Enter function <init>" style="filled" fillcolor=red];
color=blue 2 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Enter function <init>" style="filled" fillcolor=red]; 3 [label="Exit function <init>" style="filled" fillcolor=red];
3 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
4 [label="Exit function <init>" style="filled" fillcolor=red]; 4 [label="Exit class Sealed" style="filled" fillcolor=red];
} }
0 -> {1} [color=green]; 0 -> {1} [color=green];
1 -> {2} [color=green]; 0 -> {4} [style=dotted];
1 -> {2} [style=dashed]; 0 -> {1} [style=dashed];
1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4} [color=green];
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
5 [label="Enter class SubClass1" style="filled" fillcolor=red]; 5 [label="Enter class SubClass1" style="filled" fillcolor=red];
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
6 [label="Enter property" style="filled" fillcolor=red]; 6 [label="Enter function <init>" style="filled" fillcolor=red];
7 [label="Access variable R|<local>/t|"]; 7 [label="Delegated constructor call: super<R|Sealed|>()" style="filled" fillcolor=yellow];
8 [label="Exit property" style="filled" fillcolor=red]; 8 [label="Exit function <init>" style="filled" fillcolor=red];
} }
9 [label="Exit class SubClass1" style="filled" fillcolor=red]; subgraph cluster_4 {
}
subgraph cluster_4 {
color=blue
10 [label="Enter function copy" style="filled" fillcolor=red];
11 [label="Enter default value of t"];
subgraph cluster_5 {
color=blue color=blue
12 [label="Enter default value of t" style="filled" fillcolor=red]; 9 [label="Enter property" style="filled" fillcolor=red];
13 [label="Access variable R|/SubClass1.t|"]; 10 [label="Access variable R|<local>/t|"];
14 [label="Exit default value of t" style="filled" fillcolor=red]; 11 [label="Exit property" style="filled" fillcolor=red];
} }
15 [label="Exit default value of t"]; 12 [label="Exit class SubClass1" style="filled" fillcolor=red];
16 [label="Exit function copy" style="filled" fillcolor=red];
} }
subgraph cluster_6 { subgraph cluster_5 {
color=blue color=blue
17 [label="Enter function component1" style="filled" fillcolor=red]; 13 [label="Enter function copy" style="filled" fillcolor=red];
18 [label="Exit function component1" style="filled" fillcolor=red]; 14 [label="Enter default value of t"];
subgraph cluster_6 {
color=blue
15 [label="Enter default value of t" style="filled" fillcolor=red];
16 [label="Access variable R|/SubClass1.t|"];
17 [label="Exit default value of t" style="filled" fillcolor=red];
}
18 [label="Exit default value of t"];
19 [label="Exit function copy" style="filled" fillcolor=red];
} }
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
19 [label="Enter function <init>" style="filled" fillcolor=red]; 20 [label="Enter function component1" style="filled" fillcolor=red];
20 [label="Delegated constructor call: super<R|Sealed|>()" style="filled" fillcolor=yellow]; 21 [label="Exit function component1" style="filled" fillcolor=red];
21 [label="Exit function <init>" style="filled" fillcolor=red];
} }
5 -> {6} [color=green]; 5 -> {6} [color=green];
5 -> {9} [style=dotted]; 5 -> {12} [style=dotted];
5 -> {6} [style=dashed]; 5 -> {6 9} [style=dashed];
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {9} [color=green]; 8 -> {9} [color=green];
9 -> {10 17 19} [color=green]; 9 -> {10};
9 -> {10 17 19} [style=dashed];
10 -> {11}; 10 -> {11};
11 -> {12 15}; 11 -> {12} [color=green];
11 -> {12} [style=dashed]; 12 -> {13 20} [color=green];
12 -> {13}; 12 -> {13 20} [style=dashed];
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15 18};
14 -> {15} [style=dashed];
15 -> {16}; 15 -> {16};
16 -> {17};
17 -> {18}; 17 -> {18};
19 -> {20}; 18 -> {19};
20 -> {21}; 20 -> {21};
subgraph cluster_8 { subgraph cluster_8 {
color=red color=red
22 [label="Enter class SubClass2" style="filled" fillcolor=red]; 22 [label="Enter class SubClass2" style="filled" fillcolor=red];
23 [label="Exit class SubClass2" style="filled" fillcolor=red]; subgraph cluster_9 {
} color=blue
subgraph cluster_9 { 23 [label="Enter function <init>" style="filled" fillcolor=red];
color=blue 24 [label="Delegated constructor call: super<R|Sealed|>()" style="filled" fillcolor=yellow];
24 [label="Enter function copy" style="filled" fillcolor=red]; 25 [label="Exit function <init>" style="filled" fillcolor=red];
25 [label="Exit function copy" style="filled" fillcolor=red]; }
26 [label="Exit class SubClass2" style="filled" fillcolor=red];
} }
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
26 [label="Enter function <init>" style="filled" fillcolor=red]; 27 [label="Enter function copy" style="filled" fillcolor=red];
27 [label="Delegated constructor call: super<R|Sealed|>()" style="filled" fillcolor=yellow]; 28 [label="Exit function copy" style="filled" fillcolor=red];
28 [label="Exit function <init>" style="filled" fillcolor=red];
} }
22 -> {23} [color=green]; 22 -> {23} [color=green];
23 -> {24 26} [color=green]; 22 -> {26} [style=dotted];
23 -> {24 26} [style=dashed]; 22 -> {23} [style=dashed];
23 -> {24};
24 -> {25}; 24 -> {25};
26 -> {27}; 25 -> {26} [color=green];
26 -> {27} [color=green];
26 -> {27} [style=dashed];
27 -> {28}; 27 -> {28};
subgraph cluster_11 { subgraph cluster_11 {
@@ -59,153 +59,158 @@ digraph nullability_kt {
14 [label="Enter class QImpl" style="filled" fillcolor=red]; 14 [label="Enter class QImpl" style="filled" fillcolor=red];
subgraph cluster_8 { subgraph cluster_8 {
color=blue color=blue
15 [label="Enter property" style="filled" fillcolor=red]; 15 [label="Enter function <init>" style="filled" fillcolor=red];
16 [label="Access variable R|<local>/data|"]; 16 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
17 [label="Exit property" style="filled" fillcolor=red]; 17 [label="Exit function <init>" style="filled" fillcolor=red];
} }
18 [label="Exit class QImpl" style="filled" fillcolor=red]; subgraph cluster_9 {
}
subgraph cluster_9 {
color=blue
19 [label="Enter function fdata" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue color=blue
20 [label="Enter block"]; 18 [label="Enter property" style="filled" fillcolor=red];
21 [label="Const: Null(null)"]; 19 [label="Access variable R|<local>/data|"];
22 [label="Jump: ^fdata Null(null)"]; 20 [label="Exit property" style="filled" fillcolor=red];
23 [label="Stub" style="filled" fillcolor=gray];
24 [label="Exit block" style="filled" fillcolor=gray];
} }
25 [label="Exit function fdata" style="filled" fillcolor=red]; 21 [label="Exit class QImpl" style="filled" fillcolor=red];
} }
subgraph cluster_11 { subgraph cluster_10 {
color=blue color=blue
26 [label="Enter function <init>" style="filled" fillcolor=red]; 22 [label="Enter function fdata" style="filled" fillcolor=red];
27 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; subgraph cluster_11 {
28 [label="Exit function <init>" style="filled" fillcolor=red]; color=blue
23 [label="Enter block"];
24 [label="Const: Null(null)"];
25 [label="Jump: ^fdata Null(null)"];
26 [label="Stub" style="filled" fillcolor=gray];
27 [label="Exit block" style="filled" fillcolor=gray];
}
28 [label="Exit function fdata" style="filled" fillcolor=red];
} }
14 -> {15} [color=green]; 14 -> {15} [color=green];
14 -> {18} [style=dotted]; 14 -> {21} [style=dotted];
14 -> {15} [style=dashed]; 14 -> {15 18} [style=dashed];
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18} [color=green]; 17 -> {18} [color=green];
18 -> {19 26} [color=green]; 18 -> {19};
18 -> {19 26} [style=dashed];
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21} [color=green];
21 -> {22}; 21 -> {22} [color=green];
22 -> {25}; 21 -> {22} [style=dashed];
22 -> {23} [style=dotted]; 22 -> {23};
23 -> {24} [style=dotted]; 23 -> {24};
24 -> {25} [style=dotted]; 24 -> {25};
26 -> {27}; 25 -> {28};
27 -> {28}; 25 -> {26} [style=dotted];
26 -> {27} [style=dotted];
27 -> {28} [style=dotted];
subgraph cluster_12 { subgraph cluster_12 {
color=red color=red
29 [label="Enter class QImplMutable" style="filled" fillcolor=red]; 29 [label="Enter class QImplMutable" style="filled" fillcolor=red];
subgraph cluster_13 { subgraph cluster_13 {
color=blue color=blue
30 [label="Enter property" style="filled" fillcolor=red]; 30 [label="Enter function <init>" style="filled" fillcolor=red];
31 [label="Access variable R|<local>/data|"]; 31 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
32 [label="Exit property" style="filled" fillcolor=red]; 32 [label="Exit function <init>" style="filled" fillcolor=red];
} }
33 [label="Exit class QImplMutable" style="filled" fillcolor=red]; subgraph cluster_14 {
}
subgraph cluster_14 {
color=blue
34 [label="Enter function fdata" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue color=blue
35 [label="Enter block"]; 33 [label="Enter property" style="filled" fillcolor=red];
36 [label="Const: Null(null)"]; 34 [label="Access variable R|<local>/data|"];
37 [label="Jump: ^fdata Null(null)"]; 35 [label="Exit property" style="filled" fillcolor=red];
38 [label="Stub" style="filled" fillcolor=gray];
39 [label="Exit block" style="filled" fillcolor=gray];
} }
40 [label="Exit function fdata" style="filled" fillcolor=red]; 36 [label="Exit class QImplMutable" style="filled" fillcolor=red];
} }
subgraph cluster_16 { subgraph cluster_15 {
color=blue color=blue
41 [label="Enter function <init>" style="filled" fillcolor=red]; 37 [label="Enter function fdata" style="filled" fillcolor=red];
42 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; subgraph cluster_16 {
43 [label="Exit function <init>" style="filled" fillcolor=red]; color=blue
38 [label="Enter block"];
39 [label="Const: Null(null)"];
40 [label="Jump: ^fdata Null(null)"];
41 [label="Stub" style="filled" fillcolor=gray];
42 [label="Exit block" style="filled" fillcolor=gray];
}
43 [label="Exit function fdata" style="filled" fillcolor=red];
} }
29 -> {30} [color=green]; 29 -> {30} [color=green];
29 -> {33} [style=dotted]; 29 -> {36} [style=dotted];
29 -> {30} [style=dashed]; 29 -> {30 33} [style=dashed];
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33} [color=green]; 32 -> {33} [color=green];
33 -> {34 41} [color=green]; 33 -> {34};
33 -> {34 41} [style=dashed];
34 -> {35}; 34 -> {35};
35 -> {36}; 35 -> {36} [color=green];
36 -> {37}; 36 -> {37} [color=green];
37 -> {40}; 36 -> {37} [style=dashed];
37 -> {38} [style=dotted]; 37 -> {38};
38 -> {39} [style=dotted]; 38 -> {39};
39 -> {40} [style=dotted]; 39 -> {40};
41 -> {42}; 40 -> {43};
42 -> {43}; 40 -> {41} [style=dotted];
41 -> {42} [style=dotted];
42 -> {43} [style=dotted];
subgraph cluster_17 { subgraph cluster_17 {
color=red color=red
44 [label="Enter class QImplWithCustomGetter" style="filled" fillcolor=red]; 44 [label="Enter class QImplWithCustomGetter" style="filled" fillcolor=red];
45 [label="Exit class QImplWithCustomGetter" style="filled" fillcolor=red]; subgraph cluster_18 {
}
subgraph cluster_18 {
color=blue
46 [label="Enter function fdata" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue color=blue
47 [label="Enter block"]; 45 [label="Enter function <init>" style="filled" fillcolor=red];
48 [label="Const: Null(null)"]; 46 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
49 [label="Jump: ^fdata Null(null)"]; 47 [label="Exit function <init>" style="filled" fillcolor=red];
50 [label="Stub" style="filled" fillcolor=gray];
51 [label="Exit block" style="filled" fillcolor=gray];
} }
52 [label="Exit function fdata" style="filled" fillcolor=red]; 48 [label="Exit class QImplWithCustomGetter" style="filled" fillcolor=red];
} }
subgraph cluster_20 { subgraph cluster_19 {
color=blue color=blue
53 [label="Enter function getter" style="filled" fillcolor=red]; 49 [label="Enter function fdata" style="filled" fillcolor=red];
subgraph cluster_21 { subgraph cluster_20 {
color=blue color=blue
54 [label="Enter block"]; 50 [label="Enter block"];
55 [label="Const: Null(null)"]; 51 [label="Const: Null(null)"];
56 [label="Jump: ^ Null(null)"]; 52 [label="Jump: ^fdata Null(null)"];
57 [label="Stub" style="filled" fillcolor=gray]; 53 [label="Stub" style="filled" fillcolor=gray];
58 [label="Exit block" style="filled" fillcolor=gray]; 54 [label="Exit block" style="filled" fillcolor=gray];
} }
59 [label="Exit function getter" style="filled" fillcolor=red]; 55 [label="Exit function fdata" style="filled" fillcolor=red];
} }
subgraph cluster_22 { subgraph cluster_21 {
color=blue color=blue
60 [label="Enter function <init>" style="filled" fillcolor=red]; 56 [label="Enter function getter" style="filled" fillcolor=red];
61 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; subgraph cluster_22 {
62 [label="Exit function <init>" style="filled" fillcolor=red]; color=blue
57 [label="Enter block"];
58 [label="Const: Null(null)"];
59 [label="Jump: ^ Null(null)"];
60 [label="Stub" style="filled" fillcolor=gray];
61 [label="Exit block" style="filled" fillcolor=gray];
}
62 [label="Exit function getter" style="filled" fillcolor=red];
} }
44 -> {45} [color=green]; 44 -> {45} [color=green];
45 -> {46 53 60} [color=green]; 44 -> {48} [style=dotted];
45 -> {46 53 60} [style=dashed]; 44 -> {45} [style=dashed];
45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48} [color=green];
48 -> {49}; 48 -> {49 56} [color=green];
49 -> {52}; 48 -> {49 56} [style=dashed];
49 -> {50} [style=dotted]; 49 -> {50};
50 -> {51} [style=dotted]; 50 -> {51};
51 -> {52} [style=dotted]; 51 -> {52};
53 -> {54}; 52 -> {55};
54 -> {55}; 52 -> {53} [style=dotted];
55 -> {56}; 53 -> {54} [style=dotted];
56 -> {59}; 54 -> {55} [style=dotted];
56 -> {57} [style=dotted]; 56 -> {57};
57 -> {58} [style=dotted]; 57 -> {58};
58 -> {59} [style=dotted]; 58 -> {59};
60 -> {61}; 59 -> {62};
61 -> {62}; 59 -> {60} [style=dotted];
60 -> {61} [style=dotted];
61 -> {62} [style=dotted];
subgraph cluster_23 { subgraph cluster_23 {
color=red color=red
@@ -6,60 +6,66 @@ digraph implicitReceivers_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter class A" style="filled" fillcolor=red]; 0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red]; subgraph cluster_1 {
}
subgraph cluster_1 {
color=blue
2 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue color=blue
3 [label="Enter block"]; 1 [label="Enter function <init>" style="filled" fillcolor=red];
4 [label="Exit block"]; 2 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
3 [label="Exit function <init>" style="filled" fillcolor=red];
} }
5 [label="Exit function foo" style="filled" fillcolor=red]; 4 [label="Exit class A" style="filled" fillcolor=red];
} }
subgraph cluster_3 { subgraph cluster_2 {
color=blue color=blue
6 [label="Enter function <init>" style="filled" fillcolor=red]; 5 [label="Enter function foo" style="filled" fillcolor=red];
7 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; subgraph cluster_3 {
8 [label="Exit function <init>" style="filled" fillcolor=red]; color=blue
6 [label="Enter block"];
7 [label="Exit block"];
}
8 [label="Exit function foo" style="filled" fillcolor=red];
} }
0 -> {1} [color=green]; 0 -> {1} [color=green];
1 -> {2 6} [color=green]; 0 -> {4} [style=dotted];
1 -> {2 6} [style=dashed]; 0 -> {1} [style=dashed];
1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4} [color=green];
4 -> {5}; 4 -> {5} [color=green];
4 -> {5} [style=dashed];
5 -> {6};
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
9 [label="Enter class B" style="filled" fillcolor=red]; 9 [label="Enter class B" style="filled" fillcolor=red];
10 [label="Exit class B" style="filled" fillcolor=red]; subgraph cluster_5 {
}
subgraph cluster_5 {
color=blue
11 [label="Enter function bar" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue color=blue
12 [label="Enter block"]; 10 [label="Enter function <init>" style="filled" fillcolor=red];
13 [label="Exit block"]; 11 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
12 [label="Exit function <init>" style="filled" fillcolor=red];
} }
14 [label="Exit function bar" style="filled" fillcolor=red]; 13 [label="Exit class B" style="filled" fillcolor=red];
} }
subgraph cluster_7 { subgraph cluster_6 {
color=blue color=blue
15 [label="Enter function <init>" style="filled" fillcolor=red]; 14 [label="Enter function bar" style="filled" fillcolor=red];
16 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; subgraph cluster_7 {
17 [label="Exit function <init>" style="filled" fillcolor=red]; color=blue
15 [label="Enter block"];
16 [label="Exit block"];
}
17 [label="Exit function bar" style="filled" fillcolor=red];
} }
9 -> {10} [color=green]; 9 -> {10} [color=green];
10 -> {11 15} [color=green]; 9 -> {13} [style=dotted];
10 -> {11 15} [style=dashed]; 9 -> {10} [style=dashed];
10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13} [color=green];
13 -> {14}; 13 -> {14} [color=green];
13 -> {14} [style=dashed];
14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
@@ -8,61 +8,62 @@ digraph assignSafeCall_kt {
0 [label="Enter class A" style="filled" fillcolor=red]; 0 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter property" style="filled" fillcolor=red]; 1 [label="Enter function <init>" style="filled" fillcolor=red];
2 [label="Const: Int(1)"]; 2 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
3 [label="Exit property" style="filled" fillcolor=red]; 3 [label="Exit function <init>" style="filled" fillcolor=red];
} }
4 [label="Exit class A" style="filled" fillcolor=red]; subgraph cluster_2 {
}
subgraph cluster_2 {
color=blue
5 [label="Enter function bar" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue color=blue
6 [label="Enter block"]; 4 [label="Enter property" style="filled" fillcolor=red];
7 [label="Exit block"]; 5 [label="Const: Int(1)"];
6 [label="Exit property" style="filled" fillcolor=red];
} }
8 [label="Exit function bar" style="filled" fillcolor=red]; 7 [label="Exit class A" style="filled" fillcolor=red];
} }
subgraph cluster_4 { subgraph cluster_3 {
color=blue color=blue
9 [label="Enter function foo" style="filled" fillcolor=red]; 8 [label="Enter function bar" style="filled" fillcolor=red];
subgraph cluster_5 { subgraph cluster_4 {
color=blue color=blue
10 [label="Enter block"]; 9 [label="Enter block"];
11 [label="Const: Int(1)"]; 10 [label="Exit block"];
12 [label="Jump: ^foo Int(1)"];
13 [label="Stub" style="filled" fillcolor=gray];
14 [label="Exit block" style="filled" fillcolor=gray];
} }
15 [label="Exit function foo" style="filled" fillcolor=red]; 11 [label="Exit function bar" style="filled" fillcolor=red];
} }
subgraph cluster_6 { subgraph cluster_5 {
color=blue color=blue
16 [label="Enter function <init>" style="filled" fillcolor=red]; 12 [label="Enter function foo" style="filled" fillcolor=red];
17 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; subgraph cluster_6 {
18 [label="Exit function <init>" style="filled" fillcolor=red]; color=blue
13 [label="Enter block"];
14 [label="Const: Int(1)"];
15 [label="Jump: ^foo Int(1)"];
16 [label="Stub" style="filled" fillcolor=gray];
17 [label="Exit block" style="filled" fillcolor=gray];
}
18 [label="Exit function foo" style="filled" fillcolor=red];
} }
0 -> {1} [color=green]; 0 -> {1} [color=green];
0 -> {4} [style=dotted]; 0 -> {7} [style=dotted];
0 -> {1} [style=dashed]; 0 -> {1 4} [style=dashed];
1 -> {2}; 1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4} [color=green]; 3 -> {4} [color=green];
4 -> {5 9 16} [color=green]; 4 -> {5};
4 -> {5 9 16} [style=dashed];
5 -> {6}; 5 -> {6};
6 -> {7}; 6 -> {7} [color=green];
7 -> {8}; 7 -> {8 12} [color=green];
7 -> {8 12} [style=dashed];
8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {12}; 12 -> {13};
12 -> {15}; 13 -> {14};
12 -> {13} [style=dotted]; 14 -> {15};
13 -> {14} [style=dotted]; 15 -> {18};
14 -> {15} [style=dotted]; 15 -> {16} [style=dotted];
16 -> {17}; 16 -> {17} [style=dotted];
17 -> {18}; 17 -> {18} [style=dotted];
subgraph cluster_7 { subgraph cluster_7 {
color=red color=red
@@ -52,42 +52,41 @@ digraph smartCastInInit_kt {
14 [label="Enter class Main" style="filled" fillcolor=red]; 14 [label="Enter class Main" style="filled" fillcolor=red];
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
15 [label="Enter init block" style="filled" fillcolor=red]; 15 [label="Enter function <init>" style="filled" fillcolor=red];
subgraph cluster_7 { 16 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
color=blue 17 [label="Exit function <init>" style="filled" fillcolor=red];
16 [label="Enter block"];
17 [label="Function call: R|/s|()" style="filled" fillcolor=yellow];
18 [label="Assignment: R|/Main.x|"];
19 [label="Access variable R|/Main.x|"];
20 [label="Smart cast: this@R|/Main|.R|/Main.x|"];
21 [label="Function call: this@R|/Main|.R|/Main.x|.R|/S.foo|()" style="filled" fillcolor=yellow];
22 [label="Exit block"];
}
23 [label="Exit init block" style="filled" fillcolor=red];
} }
24 [label="Exit class Main" style="filled" fillcolor=red]; subgraph cluster_7 {
} color=blue
subgraph cluster_8 { 18 [label="Enter init block" style="filled" fillcolor=red];
color=blue subgraph cluster_8 {
25 [label="Enter function <init>" style="filled" fillcolor=red]; color=blue
26 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; 19 [label="Enter block"];
27 [label="Exit function <init>" style="filled" fillcolor=red]; 20 [label="Function call: R|/s|()" style="filled" fillcolor=yellow];
21 [label="Assignment: R|/Main.x|"];
22 [label="Access variable R|/Main.x|"];
23 [label="Smart cast: this@R|/Main|.R|/Main.x|"];
24 [label="Function call: this@R|/Main|.R|/Main.x|.R|/S.foo|()" style="filled" fillcolor=yellow];
25 [label="Exit block"];
}
26 [label="Exit init block" style="filled" fillcolor=red];
}
27 [label="Exit class Main" style="filled" fillcolor=red];
} }
14 -> {15} [color=green]; 14 -> {15} [color=green];
14 -> {24} [style=dotted]; 14 -> {27} [style=dotted];
14 -> {15} [style=dashed]; 14 -> {15 18} [style=dashed];
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18} [color=green];
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24} [color=green]; 23 -> {24};
24 -> {25} [color=green]; 24 -> {25};
24 -> {25} [style=dashed];
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {27} [color=green];
} }
@@ -8,37 +8,36 @@ digraph smartcastInByClause_kt {
0 [label="Enter class A" style="filled" fillcolor=red]; 0 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter property" style="filled" fillcolor=red]; 1 [label="Enter function <init>" style="filled" fillcolor=red];
2 [label="Access variable R|<local>/path|"]; 2 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
3 [label="Exit property" style="filled" fillcolor=red]; 3 [label="Exit function <init>" style="filled" fillcolor=red];
} }
subgraph cluster_2 { subgraph cluster_2 {
color=blue color=blue
4 [label="Enter property" style="filled" fillcolor=red]; 4 [label="Enter property" style="filled" fillcolor=red];
5 [label="Access variable R|<local>/index|"]; 5 [label="Access variable R|<local>/path|"];
6 [label="Exit property" style="filled" fillcolor=red]; 6 [label="Exit property" style="filled" fillcolor=red];
} }
7 [label="Exit class A" style="filled" fillcolor=red]; subgraph cluster_3 {
} color=blue
subgraph cluster_3 { 7 [label="Enter property" style="filled" fillcolor=red];
color=blue 8 [label="Access variable R|<local>/index|"];
8 [label="Enter function <init>" style="filled" fillcolor=red]; 9 [label="Exit property" style="filled" fillcolor=red];
9 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
10 [label="Exit function <init>" style="filled" fillcolor=red]; 10 [label="Exit class A" style="filled" fillcolor=red];
} }
0 -> {1} [color=green]; 0 -> {1} [color=green];
0 -> {7} [style=dotted]; 0 -> {10} [style=dotted];
0 -> {1 4} [style=dashed]; 0 -> {1 4 7} [style=dashed];
1 -> {2}; 1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4} [color=green]; 3 -> {4} [color=green];
4 -> {5}; 4 -> {5};
5 -> {6}; 5 -> {6};
6 -> {7} [color=green]; 6 -> {7} [color=green];
7 -> {8} [color=green]; 7 -> {8};
7 -> {8} [style=dashed];
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10} [color=green];
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
@@ -52,28 +51,27 @@ digraph smartcastInByClause_kt {
13 [label="Enter class Derived" style="filled" fillcolor=red]; 13 [label="Enter class Derived" style="filled" fillcolor=red];
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
14 [label="Enter property" style="filled" fillcolor=red]; 14 [label="Enter function <init>" style="filled" fillcolor=red];
15 [label="Access variable R|<local>/index|"]; 15 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
16 [label="Exit property" style="filled" fillcolor=red]; 16 [label="Exit function <init>" style="filled" fillcolor=red];
} }
17 [label="Exit class Derived" style="filled" fillcolor=red]; subgraph cluster_7 {
} color=blue
subgraph cluster_7 { 17 [label="Enter property" style="filled" fillcolor=red];
color=blue 18 [label="Access variable R|<local>/index|"];
18 [label="Enter function <init>" style="filled" fillcolor=red]; 19 [label="Exit property" style="filled" fillcolor=red];
19 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
20 [label="Exit function <init>" style="filled" fillcolor=red]; 20 [label="Exit class Derived" style="filled" fillcolor=red];
} }
13 -> {14} [color=green]; 13 -> {14} [color=green];
13 -> {17} [style=dotted]; 13 -> {20} [style=dotted];
13 -> {14} [style=dashed]; 13 -> {14 17} [style=dashed];
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17} [color=green]; 16 -> {17} [color=green];
17 -> {18} [color=green]; 17 -> {18};
17 -> {18} [style=dashed];
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20} [color=green];
subgraph cluster_8 { subgraph cluster_8 {
color=red color=red
@@ -103,26 +101,32 @@ digraph smartcastInByClause_kt {
40 [label="Enter class <anonymous object>" style="filled" fillcolor=red]; 40 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
41 [label="Enter field" style="filled" fillcolor=red]; 41 [label="Enter function <init>" style="filled" fillcolor=red];
42 [label="Access variable R|<local>/a|"]; 42 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
43 [label="Smart cast: R|<local>/a|"]; 43 [label="Exit function <init>" style="filled" fillcolor=red];
44 [label="Access variable R|/A.index|"];
45 [label="Function call: R|/Derived.Derived|(...)" style="filled" fillcolor=yellow];
46 [label="Exit field" style="filled" fillcolor=red];
} }
subgraph cluster_12 { subgraph cluster_12 {
color=blue color=blue
47 [label="Enter property" style="filled" fillcolor=red]; 44 [label="Enter field" style="filled" fillcolor=red];
48 [label="Access variable R|<local>/a|"]; 45 [label="Access variable R|<local>/a|"];
49 [label="Smart cast: R|<local>/a|"]; 46 [label="Smart cast: R|<local>/a|"];
50 [label="Access variable R|/A.index|"]; 47 [label="Access variable R|/A.index|"];
51 [label="Exit property" style="filled" fillcolor=red]; 48 [label="Function call: R|/Derived.Derived|(...)" style="filled" fillcolor=yellow];
49 [label="Exit field" style="filled" fillcolor=red];
} }
52 [label="Exit class <anonymous object>" style="filled" fillcolor=red]; subgraph cluster_13 {
color=blue
50 [label="Enter property" style="filled" fillcolor=red];
51 [label="Access variable R|<local>/a|"];
52 [label="Smart cast: R|<local>/a|"];
53 [label="Access variable R|/A.index|"];
54 [label="Exit property" style="filled" fillcolor=red];
}
55 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
} }
53 [label="Exit anonymous object"]; 56 [label="Exit anonymous object"];
54 [label="Exit anonymous object expression"]; 57 [label="Exit anonymous object expression"];
55 [label="Jump: ^test object : R|Base| { 58 [label="Jump: ^test object : R|Base| {
private constructor(): R|<anonymous>| { private constructor(): R|<anonymous>| {
super<R|kotlin/Any|>() super<R|kotlin/Any|>()
} }
@@ -138,30 +142,24 @@ digraph smartcastInByClause_kt {
} }
"]; "];
56 [label="Stub" style="filled" fillcolor=gray]; 59 [label="Stub" style="filled" fillcolor=gray];
57 [label="Exit block" style="filled" fillcolor=gray]; 60 [label="Exit block" style="filled" fillcolor=gray];
} }
58 [label="Exit function test" style="filled" fillcolor=red]; 61 [label="Exit function test" style="filled" fillcolor=red];
} }
subgraph cluster_13 { subgraph cluster_14 {
color=blue color=blue
59 [label="Enter function foo" style="filled" fillcolor=red]; 62 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_14 { subgraph cluster_15 {
color=blue color=blue
60 [label="Enter block"]; 63 [label="Enter block"];
61 [label="Access variable R|<local>/a|"]; 64 [label="Access variable R|<local>/a|"];
62 [label="Smart cast: R|<local>/a|"]; 65 [label="Smart cast: R|<local>/a|"];
63 [label="Access variable R|/A.index|"]; 66 [label="Access variable R|/A.index|"];
64 [label="Function call: R|/takeInt|(...)" style="filled" fillcolor=yellow]; 67 [label="Function call: R|/takeInt|(...)" style="filled" fillcolor=yellow];
65 [label="Exit block"]; 68 [label="Exit block"];
} }
66 [label="Exit function foo" style="filled" fillcolor=red]; 69 [label="Exit function foo" style="filled" fillcolor=red];
}
subgraph cluster_15 {
color=blue
67 [label="Enter function <init>" style="filled" fillcolor=red];
68 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
69 [label="Exit function <init>" style="filled" fillcolor=red];
} }
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
@@ -172,7 +170,7 @@ digraph smartcastInByClause_kt {
27 -> {28 32}; 27 -> {28 32};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {58}; 30 -> {61};
30 -> {31} [style=dotted]; 30 -> {31} [style=dotted];
31 -> {33} [style=dotted]; 31 -> {33} [style=dotted];
32 -> {33}; 32 -> {33};
@@ -183,38 +181,39 @@ digraph smartcastInByClause_kt {
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
39 -> {53} [color=red]; 39 -> {56} [color=red];
39 -> {40} [style=dashed]; 39 -> {40} [style=dashed];
40 -> {41}; 40 -> {41};
40 -> {47 59 67} [color=red]; 40 -> {44 50 62} [color=red];
40 -> {52} [style=dotted]; 40 -> {55} [style=dotted];
40 -> {41 47} [style=dashed]; 40 -> {41 44 50} [style=dashed];
41 -> {42}; 41 -> {42};
42 -> {43}; 42 -> {43};
43 -> {44}; 43 -> {44} [color=green];
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47} [color=green]; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {49};
49 -> {50}; 49 -> {50} [color=green];
50 -> {51}; 50 -> {51};
51 -> {52} [color=green]; 51 -> {52};
52 -> {53 59 67} [color=green]; 52 -> {53};
52 -> {59 67} [style=dashed];
53 -> {54}; 53 -> {54};
54 -> {55}; 54 -> {55} [color=green];
55 -> {58}; 55 -> {56 62} [color=green];
55 -> {56} [style=dotted]; 55 -> {62} [style=dashed];
56 -> {57} [style=dotted]; 56 -> {57};
57 -> {58} [style=dotted]; 57 -> {58};
59 -> {60}; 58 -> {61};
60 -> {61}; 58 -> {59} [style=dotted];
61 -> {62}; 59 -> {60} [style=dotted];
60 -> {61} [style=dotted];
62 -> {63}; 62 -> {63};
63 -> {64}; 63 -> {64};
64 -> {65}; 64 -> {65};
65 -> {66}; 65 -> {66};
66 -> {67};
67 -> {68}; 67 -> {68};
68 -> {69}; 68 -> {69};
@@ -119,37 +119,36 @@ digraph smartcastToNothing_kt {
39 [label="Enter class A" style="filled" fillcolor=red]; 39 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
40 [label="Enter property" style="filled" fillcolor=red]; 40 [label="Enter function <init>" style="filled" fillcolor=red];
41 [label="Const: Int(1)"]; 41 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
42 [label="Exit property" style="filled" fillcolor=red]; 42 [label="Exit function <init>" style="filled" fillcolor=red];
} }
subgraph cluster_12 { subgraph cluster_12 {
color=blue color=blue
43 [label="Enter property" style="filled" fillcolor=red]; 43 [label="Enter property" style="filled" fillcolor=red];
44 [label="Const: Boolean(true)"]; 44 [label="Const: Int(1)"];
45 [label="Exit property" style="filled" fillcolor=red]; 45 [label="Exit property" style="filled" fillcolor=red];
} }
46 [label="Exit class A" style="filled" fillcolor=red]; subgraph cluster_13 {
} color=blue
subgraph cluster_13 { 46 [label="Enter property" style="filled" fillcolor=red];
color=blue 47 [label="Const: Boolean(true)"];
47 [label="Enter function <init>" style="filled" fillcolor=red]; 48 [label="Exit property" style="filled" fillcolor=red];
48 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
49 [label="Exit function <init>" style="filled" fillcolor=red]; 49 [label="Exit class A" style="filled" fillcolor=red];
} }
39 -> {40} [color=green]; 39 -> {40} [color=green];
39 -> {46} [style=dotted]; 39 -> {49} [style=dotted];
39 -> {40 43} [style=dashed]; 39 -> {40 43 46} [style=dashed];
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {42};
42 -> {43} [color=green]; 42 -> {43} [color=green];
43 -> {44}; 43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {46} [color=green]; 45 -> {46} [color=green];
46 -> {47} [color=green]; 46 -> {47};
46 -> {47} [style=dashed];
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {49} [color=green];
subgraph cluster_14 { subgraph cluster_14 {
color=red color=red
@@ -8,94 +8,96 @@ digraph overridenOpenVal_kt {
0 [label="Enter class A" style="filled" fillcolor=red]; 0 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter property" style="filled" fillcolor=red]; 1 [label="Enter function <init>" style="filled" fillcolor=red];
2 [label="Access variable R|<local>/x|"]; 2 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
3 [label="Exit property" style="filled" fillcolor=red]; 3 [label="Exit function <init>" style="filled" fillcolor=red];
} }
4 [label="Exit class A" style="filled" fillcolor=red]; subgraph cluster_2 {
} color=blue
subgraph cluster_2 { 4 [label="Enter property" style="filled" fillcolor=red];
color=blue 5 [label="Access variable R|<local>/x|"];
5 [label="Enter function <init>" style="filled" fillcolor=red]; 6 [label="Exit property" style="filled" fillcolor=red];
6 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
7 [label="Exit function <init>" style="filled" fillcolor=red]; 7 [label="Exit class A" style="filled" fillcolor=red];
} }
0 -> {1} [color=green]; 0 -> {1} [color=green];
0 -> {4} [style=dotted]; 0 -> {7} [style=dotted];
0 -> {1} [style=dashed]; 0 -> {1 4} [style=dashed];
1 -> {2}; 1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4} [color=green]; 3 -> {4} [color=green];
4 -> {5} [color=green]; 4 -> {5};
4 -> {5} [style=dashed];
5 -> {6}; 5 -> {6};
6 -> {7}; 6 -> {7} [color=green];
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
8 [label="Enter class B" style="filled" fillcolor=red]; 8 [label="Enter class B" style="filled" fillcolor=red];
9 [label="Exit class B" style="filled" fillcolor=red]; subgraph cluster_4 {
}
subgraph cluster_4 {
color=blue
10 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue color=blue
11 [label="Enter block"]; 9 [label="Enter function <init>" style="filled" fillcolor=red];
subgraph cluster_6 { 10 [label="Access variable R|<local>/x|"];
11 [label="Delegated constructor call: super<R|A|>(...)" style="filled" fillcolor=yellow];
12 [label="Exit function <init>" style="filled" fillcolor=red];
}
13 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_5 {
color=blue
14 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
15 [label="Enter block"];
subgraph cluster_7 {
color=blue color=blue
12 [label="Enter when"]; 16 [label="Enter when"];
subgraph cluster_7 {
color=blue
13 [label="Enter when branch condition "];
14 [label="Access variable R|/A.x|"];
15 [label="Type operator: (this@R|/B|.R|/A.x| is R|kotlin/String|)"];
16 [label="Exit when branch condition"];
}
17 [label="Synthetic else branch"];
18 [label="Enter when branch result"];
subgraph cluster_8 { subgraph cluster_8 {
color=blue color=blue
19 [label="Enter block"]; 17 [label="Enter when branch condition "];
20 [label="Access variable R|/A.x|"]; 18 [label="Access variable R|/A.x|"];
21 [label="Smart cast: this@R|/B|.R|/A.x|"]; 19 [label="Type operator: (this@R|/B|.R|/A.x| is R|kotlin/String|)"];
22 [label="Access variable R|kotlin/String.length|"]; 20 [label="Exit when branch condition"];
23 [label="Exit block"];
} }
24 [label="Exit when branch result"]; 21 [label="Synthetic else branch"];
25 [label="Exit when"]; 22 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
23 [label="Enter block"];
24 [label="Access variable R|/A.x|"];
25 [label="Smart cast: this@R|/B|.R|/A.x|"];
26 [label="Access variable R|kotlin/String.length|"];
27 [label="Exit block"];
}
28 [label="Exit when branch result"];
29 [label="Exit when"];
} }
26 [label="Exit block"]; 30 [label="Exit block"];
} }
27 [label="Exit function test_1" style="filled" fillcolor=red]; 31 [label="Exit function test_1" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
28 [label="Enter function <init>" style="filled" fillcolor=red];
29 [label="Access variable R|<local>/x|"];
30 [label="Delegated constructor call: super<R|A|>(...)" style="filled" fillcolor=yellow];
31 [label="Exit function <init>" style="filled" fillcolor=red];
} }
8 -> {9} [color=green]; 8 -> {9} [color=green];
9 -> {10 28} [color=green]; 8 -> {13} [style=dotted];
9 -> {10 28} [style=dashed]; 8 -> {9} [style=dashed];
9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13} [color=green];
13 -> {14}; 13 -> {14} [color=green];
13 -> {14} [style=dashed];
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17 18}; 16 -> {17};
17 -> {25}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21 22};
21 -> {22}; 21 -> {29};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {27};
27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
@@ -6,30 +6,33 @@ digraph delayedAssignment_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter class A" style="filled" fillcolor=red]; 0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit class A" style="filled" fillcolor=red]; subgraph cluster_1 {
}
subgraph cluster_1 {
color=blue
2 [label="Enter function foo" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue color=blue
3 [label="Enter block"]; 1 [label="Enter function <init>" style="filled" fillcolor=red];
4 [label="Exit block"]; 2 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
3 [label="Exit function <init>" style="filled" fillcolor=red];
} }
5 [label="Exit function foo" style="filled" fillcolor=red]; 4 [label="Exit class A" style="filled" fillcolor=red];
} }
subgraph cluster_3 { subgraph cluster_2 {
color=blue color=blue
6 [label="Enter function <init>" style="filled" fillcolor=red]; 5 [label="Enter function foo" style="filled" fillcolor=red];
7 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; subgraph cluster_3 {
8 [label="Exit function <init>" style="filled" fillcolor=red]; color=blue
6 [label="Enter block"];
7 [label="Exit block"];
}
8 [label="Exit function foo" style="filled" fillcolor=red];
} }
0 -> {1} [color=green]; 0 -> {1} [color=green];
1 -> {2 6} [color=green]; 0 -> {4} [style=dotted];
1 -> {2 6} [style=dashed]; 0 -> {1} [style=dashed];
1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4} [color=green];
4 -> {5}; 4 -> {5} [color=green];
4 -> {5} [style=dashed];
5 -> {6};
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
@@ -20,84 +20,85 @@ digraph inAnonymousObject_kt {
5 [label="Enter class <anonymous object>" style="filled" fillcolor=red]; 5 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
subgraph cluster_4 { subgraph cluster_4 {
color=blue color=blue
6 [label="Enter property" style="filled" fillcolor=red]; 6 [label="Enter function <init>" style="filled" fillcolor=red];
7 [label="Access variable R|<local>/a|"]; 7 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
8 [label="Exit property" style="filled" fillcolor=red]; 8 [label="Exit function <init>" style="filled" fillcolor=red];
} }
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
9 [label="Enter init block" style="filled" fillcolor=red]; 9 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_6 { 10 [label="Access variable R|<local>/a|"];
color=blue 11 [label="Exit property" style="filled" fillcolor=red];
10 [label="Enter block"];
11 [label="Access variable R|<local>/b|"];
12 [label="Assignment: R|/<anonymous>.leaked|"];
13 [label="Exit block"];
}
14 [label="Exit init block" style="filled" fillcolor=red];
} }
15 [label="Exit class <anonymous object>" style="filled" fillcolor=red]; subgraph cluster_6 {
color=blue
12 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
13 [label="Enter block"];
14 [label="Access variable R|<local>/b|"];
15 [label="Assignment: R|/<anonymous>.leaked|"];
16 [label="Exit block"];
}
17 [label="Exit init block" style="filled" fillcolor=red];
}
18 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
} }
16 [label="Exit anonymous object"]; 19 [label="Exit anonymous object"];
17 [label="Exit anonymous object expression"]; 20 [label="Exit anonymous object expression"];
18 [label="Variable declaration: lval obj: R|<anonymous>|"]; 21 [label="Variable declaration: lval obj: R|<anonymous>|"];
19 [label="Access variable R|<local>/obj|"]; 22 [label="Access variable R|<local>/obj|"];
20 [label="Function call: R|<local>/obj|.R|/<anonymous>.run|()" style="filled" fillcolor=yellow]; 23 [label="Function call: R|<local>/obj|.R|/<anonymous>.run|()" style="filled" fillcolor=yellow];
21 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow]; 24 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
22 [label="Exit block"]; 25 [label="Exit block"];
} }
23 [label="Exit function foo" style="filled" fillcolor=red]; 26 [label="Exit function foo" style="filled" fillcolor=red];
} }
subgraph cluster_7 { subgraph cluster_8 {
color=blue color=blue
24 [label="Enter function run" style="filled" fillcolor=red]; 27 [label="Enter function run" style="filled" fillcolor=red];
subgraph cluster_8 { subgraph cluster_9 {
color=blue color=blue
25 [label="Enter block"]; 28 [label="Enter block"];
26 [label="Function call: R|<local>/c|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow]; 29 [label="Function call: R|<local>/c|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
27 [label="Exit block"]; 30 [label="Exit block"];
} }
28 [label="Exit function run" style="filled" fillcolor=red]; 31 [label="Exit function run" style="filled" fillcolor=red];
}
subgraph cluster_9 {
color=blue
29 [label="Enter function <init>" style="filled" fillcolor=red];
30 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
31 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
1 -> {2}; 1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4};
4 -> {5}; 4 -> {5};
4 -> {16} [color=red]; 4 -> {19} [color=red];
4 -> {5} [style=dashed]; 4 -> {5} [style=dashed];
5 -> {6}; 5 -> {6};
5 -> {9 24 29} [color=red]; 5 -> {9 12 27} [color=red];
5 -> {15} [style=dotted]; 5 -> {18} [style=dotted];
5 -> {6 9} [style=dashed]; 5 -> {6 9 12} [style=dashed];
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {9} [color=green]; 8 -> {9} [color=green];
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12} [color=green];
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15} [color=green]; 14 -> {15};
15 -> {16 24 29} [color=green]; 15 -> {16};
15 -> {24 29} [style=dashed];
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18} [color=green];
18 -> {19}; 18 -> {19 27} [color=green];
18 -> {27} [style=dashed];
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
@@ -6,19 +6,20 @@ digraph delegateWithAnonymousObject_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter class DelegateProvider" style="filled" fillcolor=red]; 0 [label="Enter class DelegateProvider" style="filled" fillcolor=red];
1 [label="Exit class DelegateProvider" style="filled" fillcolor=red]; subgraph cluster_1 {
} color=blue
subgraph cluster_1 { 1 [label="Enter function <init>" style="filled" fillcolor=red];
color=blue 2 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
2 [label="Enter function <init>" style="filled" fillcolor=red]; 3 [label="Exit function <init>" style="filled" fillcolor=red];
3 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
4 [label="Exit function <init>" style="filled" fillcolor=red]; 4 [label="Exit class DelegateProvider" style="filled" fillcolor=red];
} }
0 -> {1} [color=green]; 0 -> {1} [color=green];
1 -> {2} [color=green]; 0 -> {4} [style=dotted];
1 -> {2} [style=dashed]; 0 -> {1} [style=dashed];
1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4} [color=green];
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
@@ -47,30 +48,33 @@ digraph delegateWithAnonymousObject_kt {
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
14 [label="Enter class IssueListView" style="filled" fillcolor=red]; 14 [label="Enter class IssueListView" style="filled" fillcolor=red];
15 [label="Exit class IssueListView" style="filled" fillcolor=red]; subgraph cluster_5 {
}
subgraph cluster_5 {
color=blue
16 [label="Enter function updateFrom" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue color=blue
17 [label="Enter block"]; 15 [label="Enter function <init>" style="filled" fillcolor=red];
18 [label="Exit block"]; 16 [label="Delegated constructor call: super<R|DelegateProvider<IssueListView>|>()" style="filled" fillcolor=yellow];
17 [label="Exit function <init>" style="filled" fillcolor=red];
} }
19 [label="Exit function updateFrom" style="filled" fillcolor=red]; 18 [label="Exit class IssueListView" style="filled" fillcolor=red];
} }
subgraph cluster_7 { subgraph cluster_6 {
color=blue color=blue
20 [label="Enter function <init>" style="filled" fillcolor=red]; 19 [label="Enter function updateFrom" style="filled" fillcolor=red];
21 [label="Delegated constructor call: super<R|DelegateProvider<IssueListView>|>()" style="filled" fillcolor=yellow]; subgraph cluster_7 {
22 [label="Exit function <init>" style="filled" fillcolor=red]; color=blue
20 [label="Enter block"];
21 [label="Exit block"];
}
22 [label="Exit function updateFrom" style="filled" fillcolor=red];
} }
14 -> {15} [color=green]; 14 -> {15} [color=green];
15 -> {16 20} [color=green]; 14 -> {18} [style=dotted];
15 -> {16 20} [style=dashed]; 14 -> {15} [style=dashed];
15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18} [color=green];
18 -> {19}; 18 -> {19} [color=green];
18 -> {19} [style=dashed];
19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
@@ -79,166 +83,170 @@ digraph delegateWithAnonymousObject_kt {
23 [label="Enter class IssuesListUserProfile" style="filled" fillcolor=red]; 23 [label="Enter class IssuesListUserProfile" style="filled" fillcolor=red];
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
24 [label="Enter property" style="filled" fillcolor=red]; 24 [label="Enter function <init>" style="filled" fillcolor=red];
25 [label="Postponed enter to lambda"]; 25 [label="Delegated constructor call: super<R|DelegateProvider<IssuesListUserProfile>|>()" style="filled" fillcolor=yellow];
subgraph cluster_10 { 26 [label="Exit function <init>" style="filled" fillcolor=red];
}
subgraph cluster_10 {
color=blue
27 [label="Enter property" style="filled" fillcolor=red];
28 [label="Postponed enter to lambda"];
subgraph cluster_11 {
color=blue color=blue
26 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 29 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
subgraph cluster_11 { subgraph cluster_12 {
color=blue color=blue
27 [label="Enter block"]; 30 [label="Enter block"];
28 [label="Enter anonymous object"]; 31 [label="Enter anonymous object"];
subgraph cluster_12 { subgraph cluster_13 {
color=blue color=blue
29 [label="Enter class <anonymous object>" style="filled" fillcolor=red]; 32 [label="Enter class <anonymous object>" style="filled" fillcolor=red];
30 [label="Exit class <anonymous object>" style="filled" fillcolor=red]; subgraph cluster_14 {
color=blue
33 [label="Enter function <init>" style="filled" fillcolor=red];
34 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
35 [label="Exit function <init>" style="filled" fillcolor=red];
}
36 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
} }
31 [label="Exit anonymous object"]; 37 [label="Exit anonymous object"];
32 [label="Exit anonymous object expression"]; 38 [label="Exit anonymous object expression"];
33 [label="Exit block"]; 39 [label="Exit block"];
} }
34 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 40 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
subgraph cluster_13 {
color=blue
35 [label="Enter function setValue" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
36 [label="Enter block"];
37 [label="Function call: R|/IssueListView.IssueListView|()" style="filled" fillcolor=yellow];
38 [label="Access variable R|<local>/value|"];
39 [label="Function call: R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(...)" style="filled" fillcolor=yellow];
40 [label="Jump: ^setValue R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(R|<local>/value|)"];
41 [label="Stub" style="filled" fillcolor=gray];
42 [label="Exit block" style="filled" fillcolor=gray];
}
43 [label="Exit function setValue" style="filled" fillcolor=red];
} }
subgraph cluster_15 { subgraph cluster_15 {
color=blue color=blue
44 [label="Enter function getValue" style="filled" fillcolor=red]; 41 [label="Enter function setValue" style="filled" fillcolor=red];
subgraph cluster_16 { subgraph cluster_16 {
color=blue color=blue
45 [label="Enter block"]; 42 [label="Enter block"];
46 [label="Function call: R|/IssueListView.IssueListView|()" style="filled" fillcolor=yellow]; 43 [label="Function call: R|/IssueListView.IssueListView|()" style="filled" fillcolor=yellow];
47 [label="Jump: ^getValue R|/IssueListView.IssueListView|()"]; 44 [label="Access variable R|<local>/value|"];
48 [label="Stub" style="filled" fillcolor=gray]; 45 [label="Function call: R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(...)" style="filled" fillcolor=yellow];
49 [label="Exit block" style="filled" fillcolor=gray]; 46 [label="Jump: ^setValue R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(R|<local>/value|)"];
47 [label="Stub" style="filled" fillcolor=gray];
48 [label="Exit block" style="filled" fillcolor=gray];
} }
50 [label="Exit function getValue" style="filled" fillcolor=red]; 49 [label="Exit function setValue" style="filled" fillcolor=red];
} }
subgraph cluster_17 { subgraph cluster_17 {
color=blue color=blue
51 [label="Enter function <init>" style="filled" fillcolor=red]; 50 [label="Enter function getValue" style="filled" fillcolor=red];
52 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; subgraph cluster_18 {
53 [label="Exit function <init>" style="filled" fillcolor=red]; color=blue
51 [label="Enter block"];
52 [label="Function call: R|/IssueListView.IssueListView|()" style="filled" fillcolor=yellow];
53 [label="Jump: ^getValue R|/IssueListView.IssueListView|()"];
54 [label="Stub" style="filled" fillcolor=gray];
55 [label="Exit block" style="filled" fillcolor=gray];
}
56 [label="Exit function getValue" style="filled" fillcolor=red];
} }
54 [label="Postponed exit from lambda"]; 57 [label="Postponed exit from lambda"];
55 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)" style="filled" fillcolor=yellow]; 58 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)" style="filled" fillcolor=yellow];
56 [label="Access variable this@R|/IssuesListUserProfile|"]; 59 [label="Access variable this@R|/IssuesListUserProfile|"];
57 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...).<Unresolved name: provideDelegate>#(...)" style="filled" fillcolor=yellow]; 60 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...).<Unresolved name: provideDelegate>#(...)" style="filled" fillcolor=yellow];
58 [label="Exit property delegate" style="filled" fillcolor=yellow]; 61 [label="Exit property delegate" style="filled" fillcolor=yellow];
59 [label="Exit property" style="filled" fillcolor=red]; 62 [label="Exit property" style="filled" fillcolor=red];
} }
60 [label="Exit class IssuesListUserProfile" style="filled" fillcolor=red]; 63 [label="Exit class IssuesListUserProfile" style="filled" fillcolor=red];
} }
subgraph cluster_18 { subgraph cluster_19 {
color=blue color=blue
61 [label="Enter function setter" style="filled" fillcolor=red]; 64 [label="Enter function setter" style="filled" fillcolor=red];
subgraph cluster_19 { subgraph cluster_20 {
color=blue color=blue
62 [label="Enter block"]; 65 [label="Enter block"];
63 [label="Access variable D|/IssuesListUserProfile.issueListView|"]; 66 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
64 [label="Access variable this@R|/IssuesListUserProfile|"]; 67 [label="Access variable this@R|/IssuesListUserProfile|"];
65 [label="Access variable R|<local>/issueListView|"]; 68 [label="Access variable R|<local>/issueListView|"];
66 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.setValue: R|kotlin/Unit|>|(...)" style="filled" fillcolor=yellow]; 69 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.setValue: R|kotlin/Unit|>|(...)" style="filled" fillcolor=yellow];
67 [label="Exit block"]; 70 [label="Exit block"];
} }
68 [label="Exit function setter" style="filled" fillcolor=red]; 71 [label="Exit function setter" style="filled" fillcolor=red];
} }
subgraph cluster_20 { subgraph cluster_21 {
color=blue color=blue
69 [label="Enter function getter" style="filled" fillcolor=red]; 72 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_21 { subgraph cluster_22 {
color=blue color=blue
70 [label="Enter block"]; 73 [label="Enter block"];
71 [label="Access variable D|/IssuesListUserProfile.issueListView|"]; 74 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
72 [label="Access variable this@R|/IssuesListUserProfile|"]; 75 [label="Access variable this@R|/IssuesListUserProfile|"];
73 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.getValue: R|Stub (chain inference): TypeVariable(_Target)|>|(...)" style="filled" fillcolor=yellow]; 76 [label="Function call: this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.getValue: R|Stub (chain inference): TypeVariable(_Target)|>|(...)" style="filled" fillcolor=yellow];
74 [label="Jump: ^ this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.getValue: R|Stub (chain inference): TypeVariable(_Target)|>|(this@R|/IssuesListUserProfile|, ::R|/IssuesListUserProfile.issueListView|)"]; 77 [label="Jump: ^ this@R|/IssuesListUserProfile|.D|/IssuesListUserProfile.issueListView|.R|SubstitutionOverride<kotlin/properties/ReadWriteProperty.getValue: R|Stub (chain inference): TypeVariable(_Target)|>|(this@R|/IssuesListUserProfile|, ::R|/IssuesListUserProfile.issueListView|)"];
75 [label="Stub" style="filled" fillcolor=gray]; 78 [label="Stub" style="filled" fillcolor=gray];
76 [label="Exit block" style="filled" fillcolor=gray]; 79 [label="Exit block" style="filled" fillcolor=gray];
} }
77 [label="Exit function getter" style="filled" fillcolor=red]; 80 [label="Exit function getter" style="filled" fillcolor=red];
}
subgraph cluster_22 {
color=blue
78 [label="Enter function <init>" style="filled" fillcolor=red];
79 [label="Delegated constructor call: super<R|DelegateProvider<IssuesListUserProfile>|>()" style="filled" fillcolor=yellow];
80 [label="Exit function <init>" style="filled" fillcolor=red];
} }
23 -> {24} [color=green]; 23 -> {24} [color=green];
23 -> {60} [style=dotted]; 23 -> {63} [style=dotted];
23 -> {24} [style=dashed]; 23 -> {24 27} [style=dashed];
24 -> {25}; 24 -> {25};
25 -> {26 54 55}; 25 -> {26};
25 -> {26} [style=dashed]; 26 -> {27} [color=green];
26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29 57 58};
28 -> {31} [color=red];
28 -> {29} [style=dashed]; 28 -> {29} [style=dashed];
29 -> {30} [color=green]; 29 -> {30};
29 -> {35 44 51} [color=red]; 30 -> {31};
30 -> {31 35 44 51} [color=green];
30 -> {35 44 51} [style=dashed];
31 -> {32}; 31 -> {32};
31 -> {37} [color=red];
31 -> {32} [style=dashed];
32 -> {33}; 32 -> {33};
32 -> {41 50} [color=red];
32 -> {36} [style=dotted];
32 -> {33} [style=dashed];
33 -> {34}; 33 -> {34};
35 -> {36}; 34 -> {35};
36 -> {37}; 35 -> {36} [color=green];
36 -> {37 41 50} [color=green];
36 -> {41 50} [style=dashed];
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {43}; 41 -> {42};
40 -> {41} [style=dotted]; 42 -> {43};
41 -> {42} [style=dotted]; 43 -> {44};
42 -> {43} [style=dotted];
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {49};
47 -> {50}; 46 -> {47} [style=dotted];
47 -> {48} [style=dotted]; 47 -> {48} [style=dotted];
48 -> {49} [style=dotted]; 48 -> {49} [style=dotted];
49 -> {50} [style=dotted]; 50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
54 -> {55} [color=green]; 53 -> {56};
54 -> {58} [color=red]; 53 -> {54} [style=dotted];
55 -> {56}; 54 -> {55} [style=dotted];
56 -> {57}; 55 -> {56} [style=dotted];
57 -> {58}; 57 -> {58} [color=green];
57 -> {61} [color=red];
58 -> {59}; 58 -> {59};
59 -> {60} [color=green]; 59 -> {60};
60 -> {61 69 78} [color=green]; 60 -> {61};
60 -> {61 69 78} [style=dashed];
61 -> {62}; 61 -> {62};
62 -> {63}; 62 -> {63} [color=green];
63 -> {64}; 63 -> {64 72} [color=green];
63 -> {64 72} [style=dashed];
64 -> {65}; 64 -> {65};
65 -> {66}; 65 -> {66};
66 -> {67}; 66 -> {67};
67 -> {68}; 67 -> {68};
68 -> {69};
69 -> {70}; 69 -> {70};
70 -> {71}; 70 -> {71};
71 -> {72};
72 -> {73}; 72 -> {73};
73 -> {74}; 73 -> {74};
74 -> {77}; 74 -> {75};
74 -> {75} [style=dotted]; 75 -> {76};
75 -> {76} [style=dotted]; 76 -> {77};
76 -> {77} [style=dotted]; 77 -> {80};
78 -> {79}; 77 -> {78} [style=dotted];
79 -> {80}; 78 -> {79} [style=dotted];
79 -> {80} [style=dotted];
} }
@@ -54,28 +54,27 @@ digraph plusAssignWithLambdaInRhs_kt {
17 [label="Enter class A" style="filled" fillcolor=red]; 17 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
18 [label="Enter property" style="filled" fillcolor=red]; 18 [label="Enter function <init>" style="filled" fillcolor=red];
19 [label="Access variable R|<local>/executor|"]; 19 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow];
20 [label="Exit property" style="filled" fillcolor=red]; 20 [label="Exit function <init>" style="filled" fillcolor=red];
} }
21 [label="Exit class A" style="filled" fillcolor=red]; subgraph cluster_6 {
} color=blue
subgraph cluster_6 { 21 [label="Enter property" style="filled" fillcolor=red];
color=blue 22 [label="Access variable R|<local>/executor|"];
22 [label="Enter function <init>" style="filled" fillcolor=red]; 23 [label="Exit property" style="filled" fillcolor=red];
23 [label="Delegated constructor call: super<R|kotlin/Any|>()" style="filled" fillcolor=yellow]; }
24 [label="Exit function <init>" style="filled" fillcolor=red]; 24 [label="Exit class A" style="filled" fillcolor=red];
} }
17 -> {18} [color=green]; 17 -> {18} [color=green];
17 -> {21} [style=dotted]; 17 -> {24} [style=dotted];
17 -> {18} [style=dashed]; 17 -> {18 21} [style=dashed];
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21} [color=green]; 20 -> {21} [color=green];
21 -> {22} [color=green]; 21 -> {22};
21 -> {22} [style=dashed];
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24} [color=green];
subgraph cluster_7 { subgraph cluster_7 {
color=red color=red
@@ -365,14 +365,14 @@ class ControlFlowGraphBuilder {
} }
private inline fun FirClass.forEachGraphOwner(block: (FirControlFlowGraphOwner, isInPlace: Boolean) -> Unit) { private inline fun FirClass.forEachGraphOwner(block: (FirControlFlowGraphOwner, isInPlace: Boolean) -> Unit) {
for (declaration in declarations) { for (member in declarations) {
// TODO: constructors are also called-in-place, but after everything else, and only one of them is chosen. if (member is FirControlFlowGraphOwner && member.memberShouldHaveGraph) {
if (declaration is FirControlFlowGraphOwner && declaration.memberShouldHaveGraph) { // TODO: class secondary constructors are called-in-place after everything else, and at most one is chosen.
block(declaration, declaration !is FirFunction && declaration !is FirClass) block(member, (member is FirConstructor && member.isPrimary) || (member !is FirFunction && member !is FirClass))
} }
if (declaration is FirProperty) { if (member is FirProperty) {
declaration.getter?.let { block(it, false) } member.getter?.let { block(it, false) }
declaration.setter?.let { block(it, false) } member.setter?.let { block(it, false) }
} }
} }
} }
@@ -417,6 +417,9 @@ class ControlFlowGraphBuilder {
if (enterNode.previousNodes.isNotEmpty()) { if (enterNode.previousNodes.isNotEmpty()) {
klass.forEachGraphOwner { member, isInPlace -> klass.forEachGraphOwner { member, isInPlace ->
val kind = if (!isInPlace || foundInPlace) { val kind = if (!isInPlace || foundInPlace) {
assert(member !is FirConstructor || !member.isPrimary) {
"primary constructor of $name not first called-in-place member, CFG will be wrong"
}
EdgeKind.DfgForward EdgeKind.DfgForward
} else { } else {
EdgeKind.Forward.also { foundInPlace = true } EdgeKind.Forward.also { foundInPlace = true }
File diff suppressed because it is too large Load Diff
@@ -1,36 +0,0 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun testObject() {
object : <!UNREACHABLE_CODE!>Foo(<!>todo()<!UNREACHABLE_CODE!>)<!> {
fun foo() = 1
}
}
fun testObjectExpression() {
val <!UNUSED_VARIABLE!>a<!> = object : <!UNREACHABLE_CODE!>Foo(<!>todo()<!UNREACHABLE_CODE!>)<!> {
fun foo() = 1
}
}
fun testObjectExpression1() {
fun bar(i: Int, x: Any) {}
bar(1, object : <!UNREACHABLE_CODE!>Foo(<!>todo()<!UNREACHABLE_CODE!>)<!> {
fun foo() = 1
})
}
fun testClassDeclaration() {
class C : <!UNREACHABLE_CODE!>Foo(<!>todo()<!UNREACHABLE_CODE!>)<!> {}
bar()
}
fun testFunctionDefaultArgument() {
fun foo(x: Int = todo()) { bar() }
}
open class Foo(i: Int) {}
fun todo(): Nothing = throw Exception()
fun bar() {}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER // !DIAGNOSTICS: -UNUSED_PARAMETER
fun testObject() { fun testObject() {