[FIR] Add control flow graph for class initialization

This commit is contained in:
Dmitriy Novozhilov
2020-03-27 14:48:08 +03:00
parent ad9e6517c7
commit 8cb6e8f8af
43 changed files with 7687 additions and 7023 deletions
+157 -149
View File
@@ -13,93 +13,101 @@ digraph complex_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function addSuppressed" style="filled" fillcolor=red]; 2 [label="Enter class AutoCloseable" style="filled" fillcolor=red];
3 [label="Exit function addSuppressed" style="filled" fillcolor=red]; 3 [label="Exit class AutoCloseable" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3} [color=green];
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
4 [label="Enter function closeFinally" style="filled" fillcolor=red]; 4 [label="Enter function addSuppressed" style="filled" fillcolor=red];
subgraph cluster_3 { 5 [label="Exit function addSuppressed" style="filled" fillcolor=red];
}
4 -> {5};
subgraph cluster_3 {
color=red
6 [label="Enter function closeFinally" style="filled" fillcolor=red];
subgraph cluster_4 {
color=blue color=blue
5 [label="Enter when"]; 7 [label="Enter when"];
subgraph cluster_4 {
color=blue
6 [label="Enter when branch condition "];
7 [label="Access variable this@R|/closeFinally|"];
8 [label="Const: Null(null)"];
9 [label="Operator =="];
10 [label="Exit when branch condition"];
}
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
11 [label="Enter when branch condition "]; 8 [label="Enter when branch condition "];
12 [label="Access variable R|<local>/cause|"]; 9 [label="Access variable this@R|/closeFinally|"];
13 [label="Const: Null(null)"]; 10 [label="Const: Null(null)"];
14 [label="Operator =="]; 11 [label="Operator =="];
15 [label="Exit when branch condition"]; 12 [label="Exit when branch condition"];
} }
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
16 [label="Enter when branch condition else"]; 13 [label="Enter when branch condition "];
14 [label="Access variable R|<local>/cause|"];
15 [label="Const: Null(null)"];
16 [label="Operator =="];
17 [label="Exit when branch condition"]; 17 [label="Exit when branch condition"];
} }
18 [label="Enter when branch result"];
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
19 [label="Enter block"]; 18 [label="Enter when branch condition else"];
subgraph cluster_8 { 19 [label="Exit when branch condition"];
color=blue
20 [label="Try expression enter"];
subgraph cluster_9 {
color=blue
21 [label="Try main block enter"];
subgraph cluster_10 {
color=blue
22 [label="Enter block"];
23 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"];
24 [label="Exit block"];
}
25 [label="Try main block exit"];
}
subgraph cluster_11 {
color=blue
26 [label="Catch enter"];
subgraph cluster_12 {
color=blue
27 [label="Enter block"];
28 [label="Access variable R|<local>/cause|"];
29 [label="Access variable R|<local>/closeException|"];
30 [label="Function call: R|<local>/cause|.R|/addSuppressed|(...)"];
31 [label="Exit block"];
}
32 [label="Catch exit"];
}
33 [label="Try expression exit"];
}
34 [label="Exit block"];
} }
35 [label="Exit when branch result"]; 20 [label="Enter when branch result"];
36 [label="Enter when branch result"]; subgraph cluster_8 {
subgraph cluster_13 {
color=blue color=blue
37 [label="Enter block"]; 21 [label="Enter block"];
38 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"]; subgraph cluster_9 {
39 [label="Exit block"]; color=blue
22 [label="Try expression enter"];
subgraph cluster_10 {
color=blue
23 [label="Try main block enter"];
subgraph cluster_11 {
color=blue
24 [label="Enter block"];
25 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"];
26 [label="Exit block"];
}
27 [label="Try main block exit"];
}
subgraph cluster_12 {
color=blue
28 [label="Catch enter"];
subgraph cluster_13 {
color=blue
29 [label="Enter block"];
30 [label="Access variable R|<local>/cause|"];
31 [label="Access variable R|<local>/closeException|"];
32 [label="Function call: R|<local>/cause|.R|/addSuppressed|(...)"];
33 [label="Exit block"];
}
34 [label="Catch exit"];
}
35 [label="Try expression exit"];
}
36 [label="Exit block"];
} }
40 [label="Exit when branch result"]; 37 [label="Exit when branch result"];
41 [label="Enter when branch result"]; 38 [label="Enter when branch result"];
subgraph cluster_14 { subgraph cluster_14 {
color=blue color=blue
42 [label="Enter block"]; 39 [label="Enter block"];
43 [label="Exit block"]; 40 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"];
41 [label="Exit block"];
} }
44 [label="Exit when branch result"]; 42 [label="Exit when branch result"];
45 [label="Exit when"]; 43 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
44 [label="Enter block"];
45 [label="Exit block"];
}
46 [label="Exit when branch result"];
47 [label="Exit when"];
} }
46 [label="Jump: ^closeFinally when () { 48 [label="Jump: ^closeFinally when () {
==(this@R|/closeFinally|, Null(null)) -> { ==(this@R|/closeFinally|, Null(null)) -> {
} }
==(R|<local>/cause|, Null(null)) -> { ==(R|<local>/cause|, Null(null)) -> {
@@ -116,127 +124,125 @@ digraph complex_kt {
} }
} }
"]; "];
47 [label="Stub" style="filled" fillcolor=gray]; 49 [label="Stub" style="filled" fillcolor=gray];
48 [label="Exit function closeFinally" style="filled" fillcolor=red]; 50 [label="Exit function closeFinally" style="filled" fillcolor=red];
} }
4 -> {5};
5 -> {6};
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {41 11}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {43 13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {36 16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {38 18};
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {48 26 22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {50 28 24};
24 -> {25}; 24 -> {25};
25 -> {33}; 25 -> {26};
26 -> {48 27}; 26 -> {27};
27 -> {28}; 27 -> {35};
28 -> {29}; 28 -> {50 29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {45}; 35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {47};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {45}; 40 -> {41};
41 -> {42}; 41 -> {42};
42 -> {43}; 42 -> {47};
43 -> {44}; 43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {48}; 46 -> {47};
46 -> {47} [style=dotted]; 47 -> {48};
47 -> {48} [style=dotted]; 48 -> {50};
48 -> {49} [style=dotted];
49 -> {50} [style=dotted];
subgraph cluster_15 { subgraph cluster_16 {
color=red color=red
49 [label="Enter function firstIsInstanceOrNull" style="filled" fillcolor=red]; 51 [label="Enter function firstIsInstanceOrNull" style="filled" fillcolor=red];
50 [label="Access variable this@R|/firstIsInstanceOrNull|"]; 52 [label="Access variable this@R|/firstIsInstanceOrNull|"];
51 [label="Function call: this@R|/firstIsInstanceOrNull|.R|FakeOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<kotlin/Any?>|>|()"]; 53 [label="Function call: this@R|/firstIsInstanceOrNull|.R|FakeOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<kotlin/Any?>|>|()"];
52 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Any?>|"]; 54 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Any?>|"];
subgraph cluster_16 { subgraph cluster_17 {
color=blue color=blue
53 [label="Enter while loop"]; 55 [label="Enter while loop"];
subgraph cluster_17 {
color=blue
54 [label="Enter loop condition"];
55 [label="Access variable R|<local>/<iterator>|"];
56 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()"];
57 [label="Exit loop condition"];
}
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
58 [label="Enter loop block"]; 56 [label="Enter loop condition"];
subgraph cluster_19 { 57 [label="Access variable R|<local>/<iterator>|"];
58 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()"];
59 [label="Exit loop condition"];
}
subgraph cluster_19 {
color=blue
60 [label="Enter loop block"];
subgraph cluster_20 {
color=blue color=blue
59 [label="Enter block"]; 61 [label="Enter block"];
60 [label="Access variable R|<local>/<iterator>|"]; 62 [label="Access variable R|<local>/<iterator>|"];
61 [label="Function call: R|<local>/<iterator>|.R|FakeOverride<kotlin/collections/Iterator.next: R|kotlin/Any?|>|()"]; 63 [label="Function call: R|<local>/<iterator>|.R|FakeOverride<kotlin/collections/Iterator.next: R|kotlin/Any?|>|()"];
62 [label="Variable declaration: lval element: R|kotlin/Any?|"]; 64 [label="Variable declaration: lval element: R|kotlin/Any?|"];
subgraph cluster_20 { subgraph cluster_21 {
color=blue color=blue
63 [label="Enter when"]; 65 [label="Enter when"];
subgraph cluster_21 {
color=blue
64 [label="Enter when branch condition "];
65 [label="Access variable R|<local>/element|"];
66 [label="Type operator: (R|<local>/element| is R|T|)"];
67 [label="Exit when branch condition"];
}
68 [label="Synthetic else branch"];
69 [label="Enter when branch result"];
subgraph cluster_22 { subgraph cluster_22 {
color=blue color=blue
70 [label="Enter block"]; 66 [label="Enter when branch condition "];
71 [label="Access variable R|<local>/element|"]; 67 [label="Access variable R|<local>/element|"];
72 [label="Jump: ^firstIsInstanceOrNull R|<local>/element|"]; 68 [label="Type operator: (R|<local>/element| is R|T|)"];
73 [label="Stub" style="filled" fillcolor=gray]; 69 [label="Exit when branch condition"];
74 [label="Exit block" style="filled" fillcolor=gray];
} }
75 [label="Exit when branch result" style="filled" fillcolor=gray]; 70 [label="Synthetic else branch"];
76 [label="Exit when"]; 71 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
72 [label="Enter block"];
73 [label="Access variable R|<local>/element|"];
74 [label="Jump: ^firstIsInstanceOrNull R|<local>/element|"];
75 [label="Stub" style="filled" fillcolor=gray];
76 [label="Exit block" style="filled" fillcolor=gray];
}
77 [label="Exit when branch result" style="filled" fillcolor=gray];
78 [label="Exit when"];
} }
77 [label="Exit block"]; 79 [label="Exit block"];
} }
78 [label="Exit loop block"]; 80 [label="Exit loop block"];
} }
79 [label="Exit whileloop"]; 81 [label="Exit whileloop"];
} }
80 [label="Const: Null(null)"]; 82 [label="Const: Null(null)"];
81 [label="Jump: ^firstIsInstanceOrNull Null(null)"]; 83 [label="Jump: ^firstIsInstanceOrNull Null(null)"];
82 [label="Stub" style="filled" fillcolor=gray]; 84 [label="Stub" style="filled" fillcolor=gray];
83 [label="Exit function firstIsInstanceOrNull" style="filled" fillcolor=red]; 85 [label="Exit function firstIsInstanceOrNull" style="filled" fillcolor=red];
} }
49 -> {50};
50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {54};
54 -> {55}; 54 -> {55};
55 -> {56}; 55 -> {56};
56 -> {57}; 56 -> {57};
57 -> {79 58}; 57 -> {58};
58 -> {59}; 58 -> {59};
59 -> {60}; 59 -> {81 60};
60 -> {61}; 60 -> {61};
61 -> {62}; 61 -> {62};
62 -> {63}; 62 -> {63};
@@ -244,23 +250,25 @@ digraph complex_kt {
64 -> {65}; 64 -> {65};
65 -> {66}; 65 -> {66};
66 -> {67}; 66 -> {67};
67 -> {69 68}; 67 -> {68};
68 -> {76}; 68 -> {69};
69 -> {70}; 69 -> {71 70};
70 -> {71}; 70 -> {78};
71 -> {72}; 71 -> {72};
72 -> {83}; 72 -> {73};
72 -> {73} [style=dotted]; 73 -> {74};
73 -> {74} [style=dotted]; 74 -> {85};
74 -> {75} [style=dotted]; 74 -> {75} [style=dotted];
75 -> {76} [style=dotted]; 75 -> {76} [style=dotted];
76 -> {77}; 76 -> {77} [style=dotted];
77 -> {78}; 77 -> {78} [style=dotted];
78 -> {54}; 78 -> {79};
79 -> {80}; 79 -> {80};
80 -> {81}; 80 -> {56};
81 -> {83}; 81 -> {82};
81 -> {82} [style=dotted]; 82 -> {83};
82 -> {83} [style=dotted]; 83 -> {85};
83 -> {84} [style=dotted];
84 -> {85} [style=dotted];
} }
@@ -34,42 +34,56 @@ digraph initBlock_kt {
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
9 [label="Enter function <init>" style="filled" fillcolor=red]; 9 [label="Enter class Foo" style="filled" fillcolor=red];
10 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 10 [label="Exit class Foo" style="filled" fillcolor=red];
11 [label="Exit function <init>" style="filled" fillcolor=red];
} }
9 -> {10};
10 -> {11};
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
12 [label="Enter init block" style="filled" fillcolor=red]; 11 [label="Enter function <init>" style="filled" fillcolor=red];
subgraph cluster_5 { 12 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
color=blue 13 [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|()"];
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=red];
} }
11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14};
subgraph cluster_5 {
color=red
14 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
15 [label="Enter block"];
16 [label="Const: Int(1)"];
17 [label="Variable declaration: lval x: R|kotlin/Int|"];
18 [label="Function call: R|java/lang/Exception.Exception|()"];
19 [label="Throw: throw R|java/lang/Exception.Exception|()"];
20 [label="Stub" style="filled" fillcolor=gray];
21 [label="Const: Int(2)" style="filled" fillcolor=gray];
22 [label="Variable declaration: lval y: R|kotlin/Int|" style="filled" fillcolor=gray];
23 [label="Exit block" style="filled" fillcolor=gray];
}
24 [label="Exit init block" style="filled" fillcolor=red];
}
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {22}; 17 -> {18};
17 -> {18} [style=dotted]; 18 -> {19};
18 -> {19} [style=dotted]; 19 -> {24};
19 -> {20} [style=dotted]; 19 -> {20} [style=dotted];
20 -> {21} [style=dotted]; 20 -> {21} [style=dotted];
21 -> {22} [style=dotted]; 21 -> {22} [style=dotted];
22 -> {23} [style=dotted];
23 -> {24} [style=dotted];
subgraph cluster_7 {
color=red
25 [label="Enter class Bar" style="filled" fillcolor=red];
26 [label="Exit class Bar" style="filled" fillcolor=red];
}
} }
@@ -5,76 +5,98 @@ digraph initBlockAndInPlaceLambda_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function getter" style="filled" fillcolor=red]; 0 [label="Enter class B" style="filled" fillcolor=red];
1 [label="Exit function getter" style="filled" fillcolor=red]; 1 [label="Exit class B" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1} [color=green];
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter property" style="filled" fillcolor=red]; 2 [label="Enter function getter" style="filled" fillcolor=red];
3 [label="Exit property" style="filled" fillcolor=red]; 3 [label="Exit function getter" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3};
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
4 [label="Enter function <init>" style="filled" fillcolor=red]; 4 [label="Enter property" style="filled" fillcolor=red];
5 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 5 [label="Exit property" style="filled" fillcolor=red];
6 [label="Exit function <init>" style="filled" fillcolor=red];
} }
4 -> {5}; 4 -> {5};
5 -> {6};
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
7 [label="Enter init block" style="filled" fillcolor=red]; 6 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_4 { 7 [label="Exit class A" style="filled" fillcolor=red];
color=blue }
8 [label="Enter block"];
9 [label="Access variable R|<local>/a|"];
10 [label="Access variable R|/A.b|"]; subgraph cluster_4 {
11 [label="Enter safe call"]; color=red
12 [label="Postponed enter to lambda"]; 8 [label="Enter function <init>" style="filled" fillcolor=red];
subgraph cluster_5 { 9 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
color=blue 10 [label="Exit function <init>" style="filled" fillcolor=red];
13 [label="Enter function anonymousFunction"];
14 [label="Access variable R|<local>/a|"];
15 [label="Access variable R|<local>/it|"];
16 [label="Function call: R|/C.C|(...)"];
17 [label="Exit function anonymousFunction"];
}
18 [label="Call arguments union" style="filled" fillcolor=yellow];
19 [label="Postponed exit from lambda"];
20 [label="Function call: R|<local>/a|.R|/A.b|?.R|kotlin/let|<R|B|, R|C|>(...)"];
21 [label="Exit safe call"];
22 [label="Variable declaration: lval c: R|C?|"];
23 [label="Exit block"];
}
24 [label="Exit init block" style="filled" fillcolor=red];
} }
7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11 21};
subgraph cluster_5 {
color=red
11 [label="Enter init block" 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|/A.b|"];
15 [label="Enter safe call"];
16 [label="Postponed enter to lambda"];
subgraph cluster_7 {
color=blue
17 [label="Enter function anonymousFunction"];
18 [label="Access variable R|<local>/a|"];
19 [label="Access variable R|<local>/it|"];
20 [label="Function call: R|/C.C|(...)"];
21 [label="Exit function anonymousFunction"];
}
22 [label="Call arguments union" style="filled" fillcolor=yellow];
23 [label="Postponed exit from lambda"];
24 [label="Function call: R|<local>/a|.R|/A.b|?.R|kotlin/let|<R|B|, R|C|>(...)"];
25 [label="Exit safe call"];
26 [label="Variable declaration: lval c: R|C?|"];
27 [label="Exit block"];
}
28 [label="Exit init block" style="filled" fillcolor=red];
}
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
12 -> {19} [color=red];
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15 25};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {19} [color=green]; 16 -> {23} [color=red];
17 -> {18} [color=red]; 17 -> {18};
18 -> {20} [color=red]; 18 -> {19};
19 -> {20} [color=green]; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {23} [color=green];
22 -> {23}; 21 -> {22} [color=red];
23 -> {24}; 22 -> {24} [color=red];
23 -> {24} [color=green];
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
subgraph cluster_8 {
color=red
29 [label="Enter class C" style="filled" fillcolor=red];
30 [label="Exit class C" style="filled" fillcolor=red];
}
} }
@@ -5,63 +5,87 @@ digraph lambdaReturningObject_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function bar" style="filled" fillcolor=red]; 0 [label="Enter class Out" style="filled" fillcolor=red];
1 [label="Exit function bar" style="filled" fillcolor=red]; 1 [label="Exit class Out" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1} [color=green];
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function <init>" style="filled" fillcolor=red]; 2 [label="Enter function bar" style="filled" fillcolor=red];
3 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 3 [label="Exit function bar" style="filled" fillcolor=red];
4 [label="Exit function <init>" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3};
3 -> {4};
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
5 [label="Enter function MyOut" style="filled" fillcolor=red]; 4 [label="Enter class IrTypeArgument" style="filled" fillcolor=red];
6 [label="Function call: R|kotlin/TODO|()"]; 5 [label="Exit class IrTypeArgument" style="filled" fillcolor=red];
7 [label="Stub" style="filled" fillcolor=gray];
8 [label="Jump: ^MyOut R|kotlin/TODO|()" style="filled" fillcolor=gray];
9 [label="Stub" style="filled" fillcolor=gray];
10 [label="Exit function MyOut" style="filled" fillcolor=red];
} }
5 -> {6}; 4 -> {5} [color=green];
6 -> {10};
6 -> {7} [style=dotted];
7 -> {8} [style=dotted];
8 -> {10 9} [style=dotted];
9 -> {10} [style=dotted];
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
11 [label="Enter function foo" style="filled" fillcolor=red]; 6 [label="Enter function <init>" style="filled" fillcolor=red];
12 [label="Postponed enter to lambda"]; 7 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
13 [label="Postponed exit from lambda"]; 8 [label="Exit function <init>" style="filled" fillcolor=red];
14 [label="Function call: R|/MyOut|<R|IrStarProjectionImpl|>(...)"];
15 [label="Function call: R|/bar|(...)"];
16 [label="Exit function foo" style="filled" fillcolor=red];
} }
11 -> {12}; 6 -> {7};
12 -> {13 13} [color=green]; 7 -> {8};
13 -> {14};
14 -> {15};
15 -> {16};
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
17 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 9 [label="Enter class IrStarProjectionImpl" style="filled" fillcolor=red];
18 [label="Access qualifier /IrStarProjectionImpl"]; 10 [label="Exit class IrStarProjectionImpl" style="filled" fillcolor=red];
19 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; }
9 -> {10} [color=green];
subgraph cluster_5 {
color=red
11 [label="Enter function MyOut" style="filled" fillcolor=red];
12 [label="Function call: R|kotlin/TODO|()"];
13 [label="Stub" style="filled" fillcolor=gray];
14 [label="Jump: ^MyOut R|kotlin/TODO|()" style="filled" fillcolor=gray];
15 [label="Stub" style="filled" fillcolor=gray];
16 [label="Exit function MyOut" style="filled" fillcolor=red];
}
11 -> {12};
12 -> {16};
12 -> {13} [style=dotted];
13 -> {14} [style=dotted];
14 -> {16 15} [style=dotted];
15 -> {16} [style=dotted];
subgraph cluster_6 {
color=red
17 [label="Enter function foo" style="filled" fillcolor=red];
18 [label="Postponed enter to lambda"];
19 [label="Postponed exit from lambda"];
20 [label="Function call: R|/MyOut|<R|IrStarProjectionImpl|>(...)"];
21 [label="Function call: R|/bar|(...)"];
22 [label="Exit function foo" style="filled" fillcolor=red];
} }
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19 19} [color=green];
19 -> {20};
20 -> {21};
21 -> {22};
subgraph cluster_7 {
color=red
23 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
24 [label="Access qualifier /IrStarProjectionImpl"];
25 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
23 -> {24};
24 -> {25};
} }
@@ -43,9 +43,10 @@ digraph localClassesWithImplicit_kt {
17 [label="Exit when branch result" style="filled" fillcolor=gray]; 17 [label="Exit when branch result" style="filled" fillcolor=gray];
18 [label="Exit when"]; 18 [label="Exit when"];
} }
19 [label="Exit anonymous object"]; 19 [label="Exit local class test"];
20 [label="Variable declaration: lval x: R|anonymous|"]; 20 [label="Exit anonymous object"];
21 [label="Exit function test" style="filled" fillcolor=red]; 21 [label="Variable declaration: lval x: R|anonymous|"];
22 [label="Exit function test" style="filled" fillcolor=red];
} }
5 -> {6}; 5 -> {6};
@@ -57,7 +58,7 @@ digraph localClassesWithImplicit_kt {
11 -> {18}; 11 -> {18};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {21}; 14 -> {22};
14 -> {15} [style=dotted]; 14 -> {15} [style=dotted];
15 -> {16} [style=dotted]; 15 -> {16} [style=dotted];
16 -> {17} [style=dotted]; 16 -> {17} [style=dotted];
@@ -65,66 +66,67 @@ digraph localClassesWithImplicit_kt {
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22};
subgraph cluster_5 { subgraph cluster_5 {
color=red color=red
22 [label="Enter function <init>" style="filled" fillcolor=red]; 23 [label="Enter function <init>" style="filled" fillcolor=red];
23 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 24 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
24 [label="Exit function <init>" style="filled" fillcolor=red]; 25 [label="Exit function <init>" style="filled" fillcolor=red];
} }
22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25};
subgraph cluster_6 { subgraph cluster_6 {
color=red color=red
25 [label="Enter function foo" style="filled" fillcolor=red]; 26 [label="Enter function foo" style="filled" fillcolor=red];
26 [label="Postponed enter to lambda"]; 27 [label="Postponed enter to lambda"];
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
27 [label="Enter function anonymousFunction"]; 28 [label="Enter function anonymousFunction"];
28 [label="Access variable R|<local>/a|"]; 29 [label="Access variable R|<local>/a|"];
29 [label="Access variable R|kotlin/String.length|"]; 30 [label="Access variable R|kotlin/String.length|"];
subgraph cluster_8 { subgraph cluster_8 {
color=blue color=blue
30 [label="Enter when"]; 31 [label="Enter when"];
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
31 [label="Enter when branch condition "]; 32 [label="Enter when branch condition "];
32 [label="Access variable R|<local>/b|"]; 33 [label="Access variable R|<local>/b|"];
33 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"]; 34 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
34 [label="Exit when branch condition"]; 35 [label="Exit when branch condition"];
} }
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
35 [label="Enter when branch condition else"]; 36 [label="Enter when branch condition else"];
36 [label="Exit when branch condition"]; 37 [label="Exit when branch condition"];
} }
37 [label="Enter when branch result"]; 38 [label="Enter when branch result"];
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
38 [label="Enter block"]; 39 [label="Enter block"];
39 [label="Const: Int(1)"]; 40 [label="Const: Int(1)"];
40 [label="Exit block"]; 41 [label="Exit block"];
} }
41 [label="Exit when branch result"]; 42 [label="Exit when branch result"];
42 [label="Enter when branch result"]; 43 [label="Enter when branch result"];
subgraph cluster_12 { subgraph cluster_12 {
color=blue color=blue
43 [label="Enter block"]; 44 [label="Enter block"];
44 [label="Access variable R|<local>/b|"]; 45 [label="Access variable R|<local>/b|"];
45 [label="Access variable R|kotlin/String.length|"]; 46 [label="Access variable R|kotlin/String.length|"];
46 [label="Function call: this@R|/A|.R|/A.bar|()"]; 47 [label="Function call: this@R|/A|.R|/A.bar|()"];
47 [label="Exit block"]; 48 [label="Exit block"];
} }
48 [label="Exit when branch result"]; 49 [label="Exit when branch result"];
49 [label="Exit when"]; 50 [label="Exit when"];
} }
50 [label="Exit function anonymousFunction"]; 51 [label="Exit function anonymousFunction"];
} }
51 [label="Postponed exit from lambda"]; 52 [label="Postponed exit from lambda"];
52 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"]; 53 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
53 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> { 54 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <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|) -> {
@@ -138,29 +140,28 @@ digraph localClassesWithImplicit_kt {
} }
)"]; )"];
54 [label="Stub" style="filled" fillcolor=gray]; 55 [label="Stub" style="filled" fillcolor=gray];
55 [label="Exit function foo" style="filled" fillcolor=red]; 56 [label="Exit function foo" style="filled" fillcolor=red];
} }
25 -> {26};
26 -> {27}; 26 -> {27};
26 -> {51} [color=red]; 27 -> {28};
27 -> {50 28}; 27 -> {52} [color=red];
28 -> {29}; 28 -> {51 29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {42 35}; 34 -> {35};
35 -> {36}; 35 -> {43 36};
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {49}; 41 -> {42};
42 -> {43}; 42 -> {50};
43 -> {44}; 43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
@@ -168,132 +169,140 @@ digraph localClassesWithImplicit_kt {
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {49};
49 -> {50}; 49 -> {50};
50 -> {27}; 50 -> {51};
50 -> {51} [color=green]; 51 -> {28};
51 -> {52}; 51 -> {52} [color=green];
52 -> {53}; 52 -> {53};
53 -> {55}; 53 -> {54};
53 -> {54} [style=dotted]; 54 -> {56};
54 -> {55} [style=dotted]; 54 -> {55} [style=dotted];
55 -> {56} [style=dotted];
subgraph cluster_13 { subgraph cluster_13 {
color=red color=red
56 [label="Enter function bar" style="filled" fillcolor=red]; 57 [label="Enter function bar" style="filled" fillcolor=red];
57 [label="Postponed enter to lambda"]; 58 [label="Postponed enter to lambda"];
subgraph cluster_14 { subgraph cluster_14 {
color=blue color=blue
58 [label="Enter function anonymousFunction"]; 59 [label="Enter function anonymousFunction"];
59 [label="Access variable R|<local>/b|"]; 60 [label="Access variable R|<local>/b|"];
60 [label="Access variable <Unresolved name: length>#"]; 61 [label="Access variable <Unresolved name: length>#"];
61 [label="Access variable R|<local>/a|"]; 62 [label="Access variable R|<local>/a|"];
62 [label="Access variable R|kotlin/String.length|"]; 63 [label="Access variable R|kotlin/String.length|"];
63 [label="Function call: this@R|/A|.R|/A.baz|()"]; 64 [label="Function call: this@R|/A|.R|/A.baz|()"];
64 [label="Exit function anonymousFunction"]; 65 [label="Exit function anonymousFunction"];
} }
65 [label="Postponed exit from lambda"]; 66 [label="Postponed exit from lambda"];
66 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"]; 67 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
67 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> { 68 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <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|/A.baz|() ^ this@R|/A|.R|/A.baz|()
} }
)"]; )"];
68 [label="Stub" style="filled" fillcolor=gray]; 69 [label="Stub" style="filled" fillcolor=gray];
69 [label="Exit function bar" style="filled" fillcolor=red]; 70 [label="Exit function bar" style="filled" fillcolor=red];
} }
56 -> {57};
57 -> {58}; 57 -> {58};
57 -> {65} [color=red]; 58 -> {59};
58 -> {64 59}; 58 -> {66} [color=red];
59 -> {60}; 59 -> {65 60};
60 -> {61}; 60 -> {61};
61 -> {62}; 61 -> {62};
62 -> {63}; 62 -> {63};
63 -> {64}; 63 -> {64};
64 -> {58}; 64 -> {65};
64 -> {65} [color=green]; 65 -> {59};
65 -> {66}; 65 -> {66} [color=green];
66 -> {67}; 66 -> {67};
67 -> {69}; 67 -> {68};
67 -> {68} [style=dotted]; 68 -> {70};
68 -> {69} [style=dotted]; 68 -> {69} [style=dotted];
69 -> {70} [style=dotted];
subgraph cluster_15 { subgraph cluster_15 {
color=red color=red
70 [label="Enter function baz" style="filled" fillcolor=red]; 71 [label="Enter function baz" style="filled" fillcolor=red];
71 [label="Const: Int(1)"]; 72 [label="Const: Int(1)"];
72 [label="Jump: ^baz Int(1)"]; 73 [label="Jump: ^baz Int(1)"];
73 [label="Stub" style="filled" fillcolor=gray]; 74 [label="Stub" style="filled" fillcolor=gray];
74 [label="Exit function baz" style="filled" fillcolor=red]; 75 [label="Exit function baz" style="filled" fillcolor=red];
} }
70 -> {71};
71 -> {72}; 71 -> {72};
72 -> {74}; 72 -> {73};
72 -> {73} [style=dotted]; 73 -> {75};
73 -> {74} [style=dotted]; 73 -> {74} [style=dotted];
74 -> {75} [style=dotted];
subgraph cluster_16 { subgraph cluster_16 {
color=red color=red
75 [label="Enter function <init>" style="filled" fillcolor=red]; 76 [label="Enter class A" style="filled" fillcolor=red];
76 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 77 [label="Exit class A" style="filled" fillcolor=red];
77 [label="Exit function <init>" style="filled" fillcolor=red];
} }
75 -> {76}; 76 -> {77} [color=green];
76 -> {77};
subgraph cluster_17 { subgraph cluster_17 {
color=red color=red
78 [label="Enter function foo" style="filled" fillcolor=red]; 78 [label="Enter function <init>" style="filled" fillcolor=red];
79 [label="Postponed enter to lambda"]; 79 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
subgraph cluster_18 { 80 [label="Exit function <init>" style="filled" fillcolor=red];
}
78 -> {79};
79 -> {80};
subgraph cluster_18 {
color=red
81 [label="Enter function foo" style="filled" fillcolor=red];
82 [label="Postponed enter to lambda"];
subgraph cluster_19 {
color=blue color=blue
80 [label="Enter function anonymousFunction"]; 83 [label="Enter function anonymousFunction"];
81 [label="Access variable R|<local>/a|"]; 84 [label="Access variable R|<local>/a|"];
82 [label="Access variable R|kotlin/String.length|"]; 85 [label="Access variable R|kotlin/String.length|"];
subgraph cluster_19 { subgraph cluster_20 {
color=blue color=blue
83 [label="Enter when"]; 86 [label="Enter when"];
subgraph cluster_20 {
color=blue
84 [label="Enter when branch condition "];
85 [label="Access variable R|<local>/b|"];
86 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
87 [label="Exit when branch condition"];
}
subgraph cluster_21 { subgraph cluster_21 {
color=blue color=blue
88 [label="Enter when branch condition else"]; 87 [label="Enter when branch condition "];
89 [label="Exit when branch condition"]; 88 [label="Access variable R|<local>/b|"];
89 [label="Type operator: (R|<local>/b| is R|kotlin/String|)"];
90 [label="Exit when branch condition"];
} }
90 [label="Enter when branch result"];
subgraph cluster_22 { subgraph cluster_22 {
color=blue color=blue
91 [label="Enter block"]; 91 [label="Enter when branch condition else"];
92 [label="Const: Int(1)"]; 92 [label="Exit when branch condition"];
93 [label="Exit block"];
} }
94 [label="Exit when branch result"]; 93 [label="Enter when branch result"];
95 [label="Enter when branch result"];
subgraph cluster_23 { subgraph cluster_23 {
color=blue color=blue
96 [label="Enter block"]; 94 [label="Enter block"];
97 [label="Access variable R|<local>/b|"]; 95 [label="Const: Int(1)"];
98 [label="Access variable R|kotlin/String.length|"]; 96 [label="Exit block"];
99 [label="Exit anonymous object"];
100 [label="Function call: this@R|/anonymous|.R|/anonymous.bar|()"];
101 [label="Exit block"];
} }
102 [label="Exit when branch result"]; 97 [label="Exit when branch result"];
103 [label="Exit when"]; 98 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue
99 [label="Enter block"];
100 [label="Access variable R|<local>/b|"];
101 [label="Access variable R|kotlin/String.length|"];
102 [label="Function call: this@R|/anonymous|.R|/anonymous.bar|()"];
103 [label="Exit block"];
}
104 [label="Exit when branch result"];
105 [label="Exit when"];
} }
104 [label="Exit function anonymousFunction"]; 106 [label="Exit function anonymousFunction"];
} }
105 [label="Postponed exit from lambda"]; 107 [label="Postponed exit from lambda"];
106 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"]; 108 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
107 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> { 109 [label="Jump: ^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <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|) -> {
@@ -307,103 +316,108 @@ digraph localClassesWithImplicit_kt {
} }
)"]; )"];
108 [label="Stub" style="filled" fillcolor=gray]; 110 [label="Stub" style="filled" fillcolor=gray];
109 [label="Exit function foo" style="filled" fillcolor=red]; 111 [label="Exit function foo" style="filled" fillcolor=red];
} }
78 -> {79};
79 -> {80};
79 -> {105} [color=red];
80 -> {104 81};
81 -> {82}; 81 -> {82};
82 -> {83}; 82 -> {83};
83 -> {84}; 82 -> {107} [color=red];
83 -> {106 84};
84 -> {85}; 84 -> {85};
85 -> {86}; 85 -> {86};
86 -> {87}; 86 -> {87};
87 -> {95 88}; 87 -> {88};
88 -> {89}; 88 -> {89};
89 -> {90}; 89 -> {90};
90 -> {91}; 90 -> {98 91};
91 -> {92}; 91 -> {92};
92 -> {93}; 92 -> {93};
93 -> {94}; 93 -> {94};
94 -> {103}; 94 -> {95};
95 -> {96}; 95 -> {96};
96 -> {97}; 96 -> {97};
97 -> {98}; 97 -> {105};
98 -> {99}; 98 -> {99};
99 -> {100}; 99 -> {100};
100 -> {101}; 100 -> {101};
101 -> {102}; 101 -> {102};
102 -> {103}; 102 -> {103};
103 -> {104}; 103 -> {104};
104 -> {80}; 104 -> {105};
104 -> {105} [color=green];
105 -> {106}; 105 -> {106};
106 -> {107}; 106 -> {83};
107 -> {109}; 106 -> {107} [color=green];
107 -> {108} [style=dotted]; 107 -> {108};
108 -> {109} [style=dotted]; 108 -> {109};
109 -> {111};
109 -> {110} [style=dotted];
110 -> {111} [style=dotted];
subgraph cluster_24 { subgraph cluster_25 {
color=red color=red
110 [label="Enter function bar" style="filled" fillcolor=red]; 112 [label="Enter function bar" style="filled" fillcolor=red];
111 [label="Postponed enter to lambda"]; 113 [label="Postponed enter to lambda"];
subgraph cluster_25 { subgraph cluster_26 {
color=blue color=blue
112 [label="Enter function anonymousFunction"]; 114 [label="Enter function anonymousFunction"];
113 [label="Access variable R|<local>/a|"]; 115 [label="Access variable R|<local>/a|"];
114 [label="Access variable R|kotlin/String.length|"]; 116 [label="Access variable R|kotlin/String.length|"];
115 [label="Access variable R|<local>/b|"]; 117 [label="Access variable R|<local>/b|"];
116 [label="Access variable <Unresolved name: length>#"]; 118 [label="Access variable <Unresolved name: length>#"];
117 [label="Exit anonymous object"]; 119 [label="Function call: this@R|/anonymous|.R|/anonymous.baz|()"];
118 [label="Function call: this@R|/anonymous|.R|/anonymous.baz|()"]; 120 [label="Exit function anonymousFunction"];
119 [label="Exit function anonymousFunction"];
} }
120 [label="Postponed exit from lambda"]; 121 [label="Postponed exit from lambda"];
121 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"]; 122 [label="Function call: R|/myRun|<R|kotlin/Int|>(...)"];
122 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> { 123 [label="Jump: ^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <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|()
} }
)"]; )"];
123 [label="Stub" style="filled" fillcolor=gray]; 124 [label="Stub" style="filled" fillcolor=gray];
124 [label="Exit function bar" style="filled" fillcolor=red]; 125 [label="Exit function bar" style="filled" fillcolor=red];
} }
110 -> {111}; 112 -> {113};
111 -> {112};
111 -> {120} [color=red];
112 -> {119 113};
113 -> {114}; 113 -> {114};
114 -> {115}; 113 -> {121} [color=red];
114 -> {120 115};
115 -> {116}; 115 -> {116};
116 -> {117}; 116 -> {117};
117 -> {118}; 117 -> {118};
118 -> {119}; 118 -> {119};
119 -> {112}; 119 -> {120};
119 -> {120} [color=green]; 120 -> {114};
120 -> {121}; 120 -> {121} [color=green];
121 -> {122}; 121 -> {122};
122 -> {124}; 122 -> {123};
122 -> {123} [style=dotted]; 123 -> {125};
123 -> {124} [style=dotted]; 123 -> {124} [style=dotted];
124 -> {125} [style=dotted];
subgraph cluster_26 { subgraph cluster_27 {
color=red color=red
125 [label="Enter function baz" style="filled" fillcolor=red]; 126 [label="Enter function baz" style="filled" fillcolor=red];
126 [label="Const: Int(1)"]; 127 [label="Const: Int(1)"];
127 [label="Jump: ^baz Int(1)"]; 128 [label="Jump: ^baz Int(1)"];
128 [label="Stub" style="filled" fillcolor=gray]; 129 [label="Stub" style="filled" fillcolor=gray];
129 [label="Exit function baz" style="filled" fillcolor=red]; 130 [label="Exit function baz" style="filled" fillcolor=red];
} }
125 -> {126};
126 -> {127}; 126 -> {127};
127 -> {129}; 127 -> {128};
127 -> {128} [style=dotted]; 128 -> {130};
128 -> {129} [style=dotted]; 128 -> {129} [style=dotted];
129 -> {130} [style=dotted];
subgraph cluster_28 {
color=red
131 [label="Enter class <anonymous>" style="filled" fillcolor=red];
132 [label="Exit class <anonymous>" style="filled" fillcolor=red];
}
131 -> {132} [color=green];
} }
@@ -15,73 +15,88 @@ digraph postponedLambdaInConstructor_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
3 [label="Enter function <init>" style="filled" fillcolor=red]; 3 [label="Enter class A" style="filled" fillcolor=red];
4 [label="Access variable R|<local>/s|"]; 4 [label="Exit class A" style="filled" fillcolor=red];
5 [label="Postponed enter to lambda"]; }
subgraph cluster_2 {
color=blue 3 -> {4} [color=green];
6 [label="Enter function anonymousFunction"];
7 [label="Postponed enter to lambda"]; subgraph cluster_2 {
8 [label="Postponed exit from lambda"]; color=red
9 [label="Exit function anonymousFunction"]; 5 [label="Enter function <init>" style="filled" fillcolor=red];
} 6 [label="Access variable R|<local>/s|"];
10 [label="Postponed exit from lambda"]; 7 [label="Postponed enter to lambda"];
11 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)"]; subgraph cluster_3 {
12 [label="Call arguments union" style="filled" fillcolor=yellow]; color=blue
13 [label="Delegated constructor call: super<R|A|>(...)"]; 8 [label="Enter function anonymousFunction"];
14 [label="Exit function <init>" style="filled" fillcolor=red]; 9 [label="Postponed enter to lambda"];
10 [label="Postponed exit from lambda"];
11 [label="Exit function anonymousFunction"];
}
12 [label="Postponed exit from lambda"];
13 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)"];
14 [label="Call arguments union" style="filled" fillcolor=yellow];
15 [label="Delegated constructor call: super<R|A|>(...)"];
16 [label="Exit function <init>" style="filled" fillcolor=red];
} }
3 -> {4};
4 -> {5};
5 -> {6}; 5 -> {6};
5 -> {10} [color=red];
6 -> {7}; 6 -> {7};
7 -> {8 8} [color=green]; 7 -> {8};
7 -> {12} [color=red];
8 -> {9}; 8 -> {9};
9 -> {10} [color=green]; 9 -> {10 10} [color=green];
9 -> {12} [color=red];
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12} [color=green];
11 -> {14} [color=red];
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15};
subgraph cluster_3 {
color=red
15 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
16 [label="Access variable R|<local>/it|"];
17 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
15 -> {16}; 15 -> {16};
16 -> {17};
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
18 [label="Enter function getter" style="filled" fillcolor=red]; 17 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
19 [label="Exit function getter" style="filled" fillcolor=red]; 18 [label="Access variable R|<local>/it|"];
19 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
17 -> {18};
18 -> {19}; 18 -> {19};
subgraph cluster_5 { subgraph cluster_5 {
color=red color=red
20 [label="Enter property" style="filled" fillcolor=red]; 20 [label="Enter function getter" style="filled" fillcolor=red];
21 [label="Access variable R|<local>/s|"]; 21 [label="Exit function getter" style="filled" fillcolor=red];
22 [label="Exit property" style="filled" fillcolor=red];
} }
20 -> {21}; 20 -> {21};
21 -> {22};
subgraph cluster_6 { subgraph cluster_6 {
color=red color=red
23 [label="Enter function foo" style="filled" fillcolor=red]; 22 [label="Enter property" style="filled" fillcolor=red];
24 [label="Function call: this@R|/B|.R|/B.foo|()"]; 23 [label="Access variable R|<local>/s|"];
25 [label="Exit function foo" style="filled" fillcolor=red]; 24 [label="Exit property" style="filled" fillcolor=red];
} }
22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25};
subgraph cluster_7 {
color=red
25 [label="Enter function foo" style="filled" fillcolor=red];
26 [label="Function call: this@R|/B|.R|/B.foo|()"];
27 [label="Exit function foo" style="filled" fillcolor=red];
}
25 -> {26};
26 -> {27};
subgraph cluster_8 {
color=red
28 [label="Enter class B" style="filled" fillcolor=red];
29 [label="Exit class B" style="filled" fillcolor=red];
}
} }
@@ -127,143 +127,157 @@ digraph propertiesAndInitBlocks_kt {
subgraph cluster_10 { subgraph cluster_10 {
color=red color=red
40 [label="Enter function getter" style="filled" fillcolor=red]; 40 [label="Enter class LocalClass" style="filled" fillcolor=red];
41 [label="Exit function getter" style="filled" fillcolor=red]; 41 [label="Exit class LocalClass" style="filled" fillcolor=red];
} }
40 -> {41};
subgraph cluster_11 { subgraph cluster_11 {
color=red color=red
42 [label="Enter function <init>" style="filled" fillcolor=red]; 42 [label="Enter function getter" style="filled" fillcolor=red];
43 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 43 [label="Exit function getter" style="filled" fillcolor=red];
44 [label="Exit function <init>" style="filled" fillcolor=red];
} }
42 -> {43}; 42 -> {43};
43 -> {44};
subgraph cluster_12 { subgraph cluster_12 {
color=red color=red
45 [label="Enter init block" style="filled" fillcolor=red]; 44 [label="Enter function <init>" style="filled" fillcolor=red];
subgraph cluster_13 { 45 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
color=blue 46 [label="Exit function <init>" style="filled" fillcolor=red];
46 [label="Enter block"];
47 [label="Function call: R|java/lang/Exception.Exception|()"];
48 [label="Throw: throw R|java/lang/Exception.Exception|()"];
49 [label="Stub" style="filled" fillcolor=gray];
50 [label="Exit block" style="filled" fillcolor=gray];
}
51 [label="Exit init block" style="filled" fillcolor=red];
} }
44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47};
47 -> {48};
48 -> {51};
48 -> {49} [style=dotted];
49 -> {50} [style=dotted];
50 -> {51} [style=dotted];
subgraph cluster_14 { subgraph cluster_13 {
color=red color=red
52 [label="Enter property" style="filled" fillcolor=red]; 47 [label="Enter init block" style="filled" fillcolor=red];
53 [label="Postponed enter to lambda"]; subgraph cluster_14 {
subgraph cluster_15 {
color=blue color=blue
54 [label="Enter function anonymousFunction"]; 48 [label="Enter block"];
55 [label="Function call: R|java/lang/Exception.Exception|()"]; 49 [label="Function call: R|java/lang/Exception.Exception|()"];
56 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 50 [label="Throw: throw R|java/lang/Exception.Exception|()"];
57 [label="Stub" style="filled" fillcolor=gray]; 51 [label="Stub" style="filled" fillcolor=gray];
58 [label="Exit function anonymousFunction"]; 52 [label="Exit block" style="filled" fillcolor=gray];
} }
59 [label="Postponed exit from lambda"]; 53 [label="Exit init block" style="filled" fillcolor=red];
60 [label="Function call: R|/run|(...)"]; }
61 [label="Exit property" style="filled" fillcolor=red];
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {53};
50 -> {51} [style=dotted];
51 -> {52} [style=dotted];
52 -> {53} [style=dotted];
subgraph cluster_15 {
color=red
54 [label="Enter class LocalClass" style="filled" fillcolor=red];
55 [label="Exit class LocalClass" style="filled" fillcolor=red];
} }
52 -> {53};
53 -> {54};
53 -> {59} [color=red];
54 -> {58 55};
55 -> {56};
56 -> {61};
56 -> {57} [style=dotted];
57 -> {58} [style=dotted];
58 -> {54};
58 -> {59} [color=green];
59 -> {60};
60 -> {61};
subgraph cluster_16 { subgraph cluster_16 {
color=red color=red
62 [label="Enter function getter" style="filled" fillcolor=red]; 56 [label="Enter property" style="filled" fillcolor=red];
63 [label="Exit function getter" style="filled" fillcolor=red]; 57 [label="Postponed enter to lambda"];
subgraph cluster_17 {
color=blue
58 [label="Enter function anonymousFunction"];
59 [label="Function call: R|java/lang/Exception.Exception|()"];
60 [label="Throw: throw R|java/lang/Exception.Exception|()"];
61 [label="Stub" style="filled" fillcolor=gray];
62 [label="Exit function anonymousFunction"];
}
63 [label="Postponed exit from lambda"];
64 [label="Function call: R|/run|(...)"];
65 [label="Exit property" style="filled" fillcolor=red];
} }
62 -> {63}; 56 -> {57};
57 -> {58};
57 -> {63} [color=red];
58 -> {62 59};
59 -> {60};
60 -> {65};
60 -> {61} [style=dotted];
61 -> {62} [style=dotted];
62 -> {58};
62 -> {63} [color=green];
63 -> {64};
64 -> {65};
subgraph cluster_17 { subgraph cluster_18 {
color=red color=red
64 [label="Enter property" style="filled" fillcolor=red]; 66 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_18 { 67 [label="Exit function getter" style="filled" fillcolor=red];
}
66 -> {67};
subgraph cluster_19 {
color=red
68 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_20 {
color=blue color=blue
65 [label="Try expression enter"]; 69 [label="Try expression enter"];
subgraph cluster_19 {
color=blue
66 [label="Try main block enter"];
subgraph cluster_20 {
color=blue
67 [label="Enter block"];
68 [label="Const: Int(1)"];
69 [label="Exit block"];
}
70 [label="Try main block exit"];
}
subgraph cluster_21 { subgraph cluster_21 {
color=blue color=blue
71 [label="Enter finally"]; 70 [label="Try main block enter"];
subgraph cluster_22 { subgraph cluster_22 {
color=blue color=blue
72 [label="Enter block"]; 71 [label="Enter block"];
73 [label="Const: Int(0)"]; 72 [label="Const: Int(1)"];
74 [label="Exit block"]; 73 [label="Exit block"];
} }
75 [label="Exit finally"]; 74 [label="Try main block exit"];
} }
subgraph cluster_23 { subgraph cluster_23 {
color=blue color=blue
76 [label="Catch enter"]; 75 [label="Enter finally"];
subgraph cluster_24 { subgraph cluster_24 {
color=blue color=blue
77 [label="Enter block"]; 76 [label="Enter block"];
78 [label="Const: Int(2)"]; 77 [label="Const: Int(0)"];
79 [label="Exit block"]; 78 [label="Exit block"];
} }
80 [label="Catch exit"]; 79 [label="Exit finally"];
} }
81 [label="Try expression exit"]; subgraph cluster_25 {
color=blue
80 [label="Catch enter"];
subgraph cluster_26 {
color=blue
81 [label="Enter block"];
82 [label="Const: Int(2)"];
83 [label="Exit block"];
}
84 [label="Catch exit"];
}
85 [label="Try expression exit"];
} }
82 [label="Exit property" style="filled" fillcolor=red]; 86 [label="Exit property" style="filled" fillcolor=red];
} }
64 -> {65};
65 -> {66};
66 -> {82 76 71 67};
67 -> {68};
68 -> {69}; 68 -> {69};
69 -> {70}; 69 -> {70};
70 -> {81}; 70 -> {86 80 75 71};
71 -> {72}; 71 -> {72};
72 -> {73}; 72 -> {73};
73 -> {74}; 73 -> {74};
74 -> {75}; 74 -> {85};
75 -> {81}; 75 -> {76};
76 -> {82 77}; 76 -> {77};
77 -> {78}; 77 -> {78};
78 -> {79}; 78 -> {79};
79 -> {80}; 79 -> {85};
80 -> {81}; 80 -> {86 81};
81 -> {82}; 81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
} }
@@ -5,155 +5,179 @@ digraph returnValuesFromLambda_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 1 [label="Exit class A" style="filled" fillcolor=red];
2 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1} [color=green];
1 -> {2};
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
3 [label="Enter function <init>" style="filled" fillcolor=red]; 2 [label="Enter function <init>" style="filled" fillcolor=red];
4 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 3 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
5 [label="Exit function <init>" style="filled" fillcolor=red]; 4 [label="Exit function <init>" style="filled" fillcolor=red];
} }
2 -> {3};
3 -> {4}; 3 -> {4};
4 -> {5};
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
6 [label="Enter function test_1" style="filled" fillcolor=red]; 5 [label="Enter class B" style="filled" fillcolor=red];
7 [label="Postponed enter to lambda"]; 6 [label="Exit class B" style="filled" fillcolor=red];
subgraph cluster_3 { }
color=blue
8 [label="Enter function anonymousFunction"]; 5 -> {6} [color=green];
subgraph cluster_4 {
color=blue subgraph cluster_3 {
9 [label="Enter when"]; color=red
subgraph cluster_5 { 7 [label="Enter function <init>" style="filled" fillcolor=red];
color=blue 8 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
10 [label="Enter when branch condition "]; 9 [label="Exit function <init>" style="filled" fillcolor=red];
11 [label="Access variable R|<local>/b|"];
12 [label="Exit when branch condition"];
}
13 [label="Synthetic else branch"];
14 [label="Enter when branch result"];
subgraph cluster_6 {
color=blue
15 [label="Enter block"];
16 [label="Function call: R|/B.B|()"];
17 [label="Jump: ^@run R|/B.B|()"];
18 [label="Stub" style="filled" fillcolor=gray];
19 [label="Exit block" style="filled" fillcolor=gray];
}
20 [label="Exit when branch result" style="filled" fillcolor=gray];
21 [label="Exit when"];
}
22 [label="Function call: R|/C.C|()"];
23 [label="Exit function anonymousFunction"];
}
24 [label="Call arguments union" style="filled" fillcolor=yellow];
25 [label="Postponed exit from lambda"];
26 [label="Function call: R|kotlin/run|<R|A|>(...)"];
27 [label="Variable declaration: lval x: R|A|"];
28 [label="Exit function test_1" style="filled" fillcolor=red];
} }
6 -> {7};
7 -> {8}; 7 -> {8};
7 -> {25} [color=red];
8 -> {9}; 8 -> {9};
9 -> {10};
10 -> {11}; subgraph cluster_4 {
11 -> {12}; color=red
12 -> {14 13}; 10 [label="Enter class C" style="filled" fillcolor=red];
13 -> {21}; 11 [label="Exit class C" style="filled" fillcolor=red];
}
10 -> {11} [color=green];
subgraph cluster_5 {
color=red
12 [label="Enter function test_1" style="filled" fillcolor=red];
13 [label="Postponed enter to lambda"];
subgraph cluster_6 {
color=blue
14 [label="Enter function anonymousFunction"];
subgraph cluster_7 {
color=blue
15 [label="Enter when"];
subgraph cluster_8 {
color=blue
16 [label="Enter when branch condition "];
17 [label="Access variable R|<local>/b|"];
18 [label="Exit when branch condition"];
}
19 [label="Synthetic else branch"];
20 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
21 [label="Enter block"];
22 [label="Function call: R|/B.B|()"];
23 [label="Jump: ^@run R|/B.B|()"];
24 [label="Stub" style="filled" fillcolor=gray];
25 [label="Exit block" style="filled" fillcolor=gray];
}
26 [label="Exit when branch result" style="filled" fillcolor=gray];
27 [label="Exit when"];
}
28 [label="Function call: R|/C.C|()"];
29 [label="Exit function anonymousFunction"];
}
30 [label="Call arguments union" style="filled" fillcolor=yellow];
31 [label="Postponed exit from lambda"];
32 [label="Function call: R|kotlin/run|<R|A|>(...)"];
33 [label="Variable declaration: lval x: R|A|"];
34 [label="Exit function test_1" style="filled" fillcolor=red];
}
12 -> {13};
13 -> {14};
13 -> {31} [color=red];
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {23}; 17 -> {18};
17 -> {18} [style=dotted]; 18 -> {20 19};
18 -> {19} [style=dotted]; 19 -> {27};
19 -> {20} [style=dotted]; 20 -> {21};
20 -> {21} [style=dotted];
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {25} [color=green]; 23 -> {29};
23 -> {24} [color=red]; 23 -> {24} [style=dotted];
24 -> {26} [color=red]; 24 -> {25} [style=dotted];
25 -> {26} [color=green]; 25 -> {26} [style=dotted];
26 -> {27}; 26 -> {27} [style=dotted];
27 -> {28}; 27 -> {28};
28 -> {29};
subgraph cluster_7 { 29 -> {31} [color=green];
color=red 29 -> {30} [color=red];
29 [label="Enter function test_2" style="filled" fillcolor=red]; 30 -> {32} [color=red];
30 [label="Postponed enter to lambda"]; 31 -> {32} [color=green];
subgraph cluster_8 {
color=blue
31 [label="Enter function anonymousFunction"];
32 [label="Function call: R|/C.C|()"];
33 [label="Jump: ^@run R|/C.C|()"];
34 [label="Stub" style="filled" fillcolor=gray];
35 [label="Exit function anonymousFunction"];
}
36 [label="Call arguments union" style="filled" fillcolor=yellow];
37 [label="Postponed exit from lambda"];
38 [label="Function call: R|kotlin/run|<R|C|>(...)"];
39 [label="Variable declaration: lval x: R|C|"];
40 [label="Exit function test_2" style="filled" fillcolor=red];
}
29 -> {30};
30 -> {31};
30 -> {37} [color=red];
31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {35}; 33 -> {34};
33 -> {34} [style=dotted];
34 -> {35} [style=dotted];
35 -> {37} [color=green];
35 -> {36} [color=red];
36 -> {38} [color=red];
37 -> {38} [color=green];
38 -> {39};
39 -> {40};
subgraph cluster_9 { subgraph cluster_10 {
color=red color=red
41 [label="Enter function test_3" style="filled" fillcolor=red]; 35 [label="Enter function test_2" style="filled" fillcolor=red];
42 [label="Postponed enter to lambda"]; 36 [label="Postponed enter to lambda"];
subgraph cluster_10 { subgraph cluster_11 {
color=blue color=blue
43 [label="Enter function anonymousFunction"]; 37 [label="Enter function anonymousFunction"];
44 [label="Jump: ^test_3 Unit"]; 38 [label="Function call: R|/C.C|()"];
45 [label="Stub" style="filled" fillcolor=gray]; 39 [label="Jump: ^@run R|/C.C|()"];
46 [label="Exit function anonymousFunction" style="filled" fillcolor=gray]; 40 [label="Stub" style="filled" fillcolor=gray];
41 [label="Exit function anonymousFunction"];
} }
47 [label="Call arguments union" style="filled" fillcolor=gray]; 42 [label="Call arguments union" style="filled" fillcolor=yellow];
48 [label="Postponed exit from lambda"]; 43 [label="Postponed exit from lambda"];
49 [label="Function call: R|kotlin/run|<R|kotlin/Nothing|>(...)" style="filled" fillcolor=gray]; 44 [label="Function call: R|kotlin/run|<R|C|>(...)"];
50 [label="Stub" style="filled" fillcolor=gray]; 45 [label="Variable declaration: lval x: R|C|"];
51 [label="Variable declaration: lval x: R|kotlin/Nothing|" style="filled" fillcolor=gray]; 46 [label="Exit function test_2" style="filled" fillcolor=red];
52 [label="Exit function test_3" style="filled" fillcolor=red];
} }
41 -> {42}; 35 -> {36};
42 -> {43}; 36 -> {37};
42 -> {48} [color=red]; 36 -> {43} [color=red];
43 -> {44}; 37 -> {38};
44 -> {52}; 38 -> {39};
44 -> {45} [style=dotted]; 39 -> {41};
45 -> {46} [style=dotted]; 39 -> {40} [style=dotted];
46 -> {47} [style=dotted]; 40 -> {41} [style=dotted];
46 -> {48} [color=green]; 41 -> {43} [color=green];
47 -> {49} [style=dotted]; 41 -> {42} [color=red];
48 -> {49} [color=green]; 42 -> {44} [color=red];
49 -> {52 50} [style=dotted]; 43 -> {44} [color=green];
44 -> {45};
45 -> {46};
subgraph cluster_12 {
color=red
47 [label="Enter function test_3" style="filled" fillcolor=red];
48 [label="Postponed enter to lambda"];
subgraph cluster_13 {
color=blue
49 [label="Enter function anonymousFunction"];
50 [label="Jump: ^test_3 Unit"];
51 [label="Stub" style="filled" fillcolor=gray];
52 [label="Exit function anonymousFunction" style="filled" fillcolor=gray];
}
53 [label="Call arguments union" style="filled" fillcolor=gray];
54 [label="Postponed exit from lambda"];
55 [label="Function call: R|kotlin/run|<R|kotlin/Nothing|>(...)" style="filled" fillcolor=gray];
56 [label="Stub" style="filled" fillcolor=gray];
57 [label="Variable declaration: lval x: R|kotlin/Nothing|" style="filled" fillcolor=gray];
58 [label="Exit function test_3" style="filled" fillcolor=red];
}
47 -> {48};
48 -> {49};
48 -> {54} [color=red];
49 -> {50};
50 -> {58};
50 -> {51} [style=dotted]; 50 -> {51} [style=dotted];
51 -> {52} [style=dotted]; 51 -> {52} [style=dotted];
52 -> {53} [style=dotted];
52 -> {54} [color=green];
53 -> {55} [style=dotted];
54 -> {55} [color=green];
55 -> {58 56} [style=dotted];
56 -> {57} [style=dotted];
57 -> {58} [style=dotted];
} }
@@ -21,78 +21,93 @@ digraph safeCalls_kt {
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
4 [label="Enter function getter" style="filled" fillcolor=red]; 4 [label="Enter class A" style="filled" fillcolor=red];
5 [label="Exit function getter" style="filled" fillcolor=red]; 5 [label="Exit class A" style="filled" fillcolor=red];
} }
4 -> {5}; 4 -> {5} [color=green];
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
6 [label="Enter property" style="filled" fillcolor=red]; 6 [label="Enter function getter" style="filled" fillcolor=red];
7 [label="Exit property" style="filled" fillcolor=red]; 7 [label="Exit function getter" style="filled" fillcolor=red];
} }
6 -> {7}; 6 -> {7};
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
8 [label="Enter function getter" style="filled" fillcolor=red]; 8 [label="Enter property" style="filled" fillcolor=red];
9 [label="Exit function getter" style="filled" fillcolor=red]; 9 [label="Exit property" style="filled" fillcolor=red];
} }
8 -> {9}; 8 -> {9};
subgraph cluster_5 { subgraph cluster_5 {
color=red color=red
10 [label="Enter property" style="filled" fillcolor=red]; 10 [label="Enter function getter" style="filled" fillcolor=red];
11 [label="Exit property" style="filled" fillcolor=red]; 11 [label="Exit function getter" style="filled" fillcolor=red];
} }
10 -> {11}; 10 -> {11};
subgraph cluster_6 { subgraph cluster_6 {
color=red color=red
12 [label="Enter function test_1" style="filled" fillcolor=red]; 12 [label="Enter property" style="filled" fillcolor=red];
13 [label="Access variable R|<local>/x|"]; 13 [label="Exit property" style="filled" fillcolor=red];
14 [label="Enter safe call"];
15 [label="Function call: R|<local>/x|?.R|/A.foo|()"];
16 [label="Exit safe call"];
17 [label="Enter safe call"];
18 [label="Function call: R|<local>/x|?.R|/A.foo|()?.R|/A.bar|()"];
19 [label="Exit safe call"];
20 [label="Exit function test_1" style="filled" fillcolor=red];
} }
12 -> {13}; 12 -> {13};
13 -> {14 16};
14 -> {15};
15 -> {16};
16 -> {17 19};
17 -> {18};
18 -> {19};
19 -> {20};
subgraph cluster_7 { subgraph cluster_7 {
color=red color=red
21 [label="Enter function test_2" style="filled" fillcolor=red]; 14 [label="Enter class B" style="filled" fillcolor=red];
22 [label="Access variable R|<local>/x|"]; 15 [label="Exit class B" style="filled" fillcolor=red];
23 [label="Enter safe call"];
24 [label="Access variable R|/B.foo|"];
25 [label="Exit safe call"];
26 [label="Enter safe call"];
27 [label="Access variable R|/B.bar|"];
28 [label="Exit safe call"];
29 [label="Exit function test_2" style="filled" fillcolor=red];
} }
subgraph cluster_8 {
color=red
16 [label="Enter function test_1" style="filled" fillcolor=red];
17 [label="Access variable R|<local>/x|"];
18 [label="Enter safe call"];
19 [label="Function call: R|<local>/x|?.R|/A.foo|()"];
20 [label="Exit safe call"];
21 [label="Enter safe call"];
22 [label="Function call: R|<local>/x|?.R|/A.foo|()?.R|/A.bar|()"];
23 [label="Exit safe call"];
24 [label="Exit function test_1" style="filled" fillcolor=red];
}
16 -> {17};
17 -> {18 20};
18 -> {19};
19 -> {20};
20 -> {21 23};
21 -> {22}; 21 -> {22};
22 -> {23 25}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25};
25 -> {26 28}; subgraph cluster_9 {
26 -> {27}; color=red
25 [label="Enter function test_2" style="filled" fillcolor=red];
26 [label="Access variable R|<local>/x|"];
27 [label="Enter safe call"];
28 [label="Access variable R|/B.foo|"];
29 [label="Exit safe call"];
30 [label="Enter safe call"];
31 [label="Access variable R|/B.bar|"];
32 [label="Exit safe call"];
33 [label="Exit function test_2" style="filled" fillcolor=red];
}
25 -> {26};
26 -> {27 29};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30 32};
30 -> {31};
31 -> {32};
32 -> {33};
} }
+59 -43
View File
@@ -131,60 +131,76 @@ digraph when_kt {
subgraph cluster_10 { subgraph cluster_10 {
color=red color=red
47 [label="Enter function test_2" style="filled" fillcolor=red]; 47 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_11 { 48 [label="Exit class A" style="filled" fillcolor=red];
color=blue }
48 [label="Enter when"];
subgraph cluster_12 { 47 -> {48} [color=green];
color=blue
49 [label="Enter when branch condition "]; subgraph cluster_11 {
subgraph cluster_13 { color=red
color=blue 49 [label="Enter class B" style="filled" fillcolor=red];
50 [label="Enter &&"]; 50 [label="Exit class B" style="filled" fillcolor=red];
51 [label="Access variable R|<local>/x|"]; }
52 [label="Type operator: (R|<local>/x| is R|A|)"];
53 [label="Exit left part of &&"]; 49 -> {50} [color=green];
54 [label="Enter right part of &&"];
55 [label="Access variable R|<local>/x|"]; subgraph cluster_12 {
56 [label="Type operator: (R|<local>/x| is R|B|)"]; color=red
57 [label="Exit &&"]; 51 [label="Enter function test_2" style="filled" fillcolor=red];
} subgraph cluster_13 {
58 [label="Exit when branch condition"]; color=blue
} 52 [label="Enter when"];
59 [label="Synthetic else branch"]; subgraph cluster_14 {
60 [label="Enter when branch result"]; color=blue
subgraph cluster_14 { 53 [label="Enter when branch condition "];
color=blue subgraph cluster_15 {
61 [label="Enter block"]; color=blue
62 [label="Access variable R|<local>/x|"]; 54 [label="Enter &&"];
63 [label="Type operator: (R|<local>/x| is R|A|)"]; 55 [label="Access variable R|<local>/x|"];
64 [label="Exit block"]; 56 [label="Type operator: (R|<local>/x| is R|A|)"];
} 57 [label="Exit left part of &&"];
65 [label="Exit when branch result"]; 58 [label="Enter right part of &&"];
66 [label="Exit when"]; 59 [label="Access variable R|<local>/x|"];
} 60 [label="Type operator: (R|<local>/x| is R|B|)"];
67 [label="Exit function test_2" style="filled" fillcolor=red]; 61 [label="Exit &&"];
}
62 [label="Exit when branch condition"];
}
63 [label="Synthetic else branch"];
64 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
65 [label="Enter block"];
66 [label="Access variable R|<local>/x|"];
67 [label="Type operator: (R|<local>/x| is R|A|)"];
68 [label="Exit block"];
}
69 [label="Exit when branch result"];
70 [label="Exit when"];
}
71 [label="Exit function test_2" style="filled" fillcolor=red];
} }
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {57 54}; 53 -> {54};
54 -> {55}; 54 -> {55};
55 -> {56}; 55 -> {56};
56 -> {57}; 56 -> {57};
57 -> {58}; 57 -> {61 58};
58 -> {60 59}; 58 -> {59};
59 -> {66}; 59 -> {60};
60 -> {61}; 60 -> {61};
61 -> {62}; 61 -> {62};
62 -> {63}; 62 -> {64 63};
63 -> {64}; 63 -> {70};
64 -> {65}; 64 -> {65};
65 -> {66}; 65 -> {66};
66 -> {67}; 66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
} }
@@ -31,77 +31,89 @@ digraph exhaustiveWhenAndDNNType_kt {
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
7 [label="Enter function <init>" style="filled" fillcolor=red]; 7 [label="Enter class SomeEnum" style="filled" fillcolor=red];
8 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 8 [label="Exit class SomeEnum" style="filled" fillcolor=red];
9 [label="Exit function <init>" style="filled" fillcolor=red];
} }
7 -> {8}; 7 -> {8} [color=green];
8 -> {9};
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
10 [label="Enter function takeB" style="filled" fillcolor=red]; 9 [label="Enter function <init>" style="filled" fillcolor=red];
11 [label="Exit function takeB" style="filled" fillcolor=red]; 10 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
11 [label="Exit function <init>" style="filled" fillcolor=red];
} }
9 -> {10};
10 -> {11}; 10 -> {11};
subgraph cluster_5 { subgraph cluster_5 {
color=red color=red
12 [label="Enter function test_1" style="filled" fillcolor=red]; 12 [label="Enter class B" style="filled" fillcolor=red];
13 [label="Access qualifier /SomeEnum"]; 13 [label="Exit class B" style="filled" fillcolor=red];
14 [label="Access variable R|/SomeEnum.A1|"]; }
15 [label="Variable declaration: lval flag: R|SomeEnum|"];
subgraph cluster_6 { 12 -> {13} [color=green];
color=blue
16 [label="Enter when"]; subgraph cluster_6 {
17 [label="Access variable R|<local>/flag|"]; color=red
18 [label="Check not null: R|<local>/flag|!!"]; 14 [label="Enter function takeB" style="filled" fillcolor=red];
subgraph cluster_7 { 15 [label="Exit function takeB" style="filled" fillcolor=red];
color=blue
19 [label="Enter when branch condition "];
20 [label="Access qualifier /SomeEnum"];
21 [label="Access variable R|/SomeEnum.A1|"];
22 [label="Operator =="];
23 [label="Exit when branch condition"];
}
subgraph cluster_8 {
color=blue
24 [label="Enter when branch condition "];
25 [label="Access qualifier /SomeEnum"];
26 [label="Access variable R|/SomeEnum.A2|"];
27 [label="Operator =="];
28 [label="Exit when branch condition"];
}
29 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
30 [label="Enter block"];
31 [label="Function call: R|/B.B|()"];
32 [label="Exit block"];
}
33 [label="Exit when branch result"];
34 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
35 [label="Enter block"];
36 [label="Function call: R|/B.B|()"];
37 [label="Exit block"];
}
38 [label="Exit when branch result"];
39 [label="Exit when"];
}
40 [label="Variable declaration: lval b: R|B|"];
41 [label="Access variable R|<local>/b|"];
42 [label="Function call: R|/takeB|(...)"];
43 [label="Exit function test_1" style="filled" fillcolor=red];
} }
12 -> {13};
13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16};
subgraph cluster_7 {
color=red
16 [label="Enter function test_1" style="filled" fillcolor=red];
17 [label="Access qualifier /SomeEnum"];
18 [label="Access variable R|/SomeEnum.A1|"];
19 [label="Variable declaration: lval flag: R|SomeEnum|"];
subgraph cluster_8 {
color=blue
20 [label="Enter when"];
21 [label="Access variable R|<local>/flag|"];
22 [label="Check not null: R|<local>/flag|!!"];
subgraph cluster_9 {
color=blue
23 [label="Enter when branch condition "];
24 [label="Access qualifier /SomeEnum"];
25 [label="Access variable R|/SomeEnum.A1|"];
26 [label="Operator =="];
27 [label="Exit when branch condition"];
}
subgraph cluster_10 {
color=blue
28 [label="Enter when branch condition "];
29 [label="Access qualifier /SomeEnum"];
30 [label="Access variable R|/SomeEnum.A2|"];
31 [label="Operator =="];
32 [label="Exit when branch condition"];
}
33 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
34 [label="Enter block"];
35 [label="Function call: R|/B.B|()"];
36 [label="Exit block"];
}
37 [label="Exit when branch result"];
38 [label="Enter when branch result"];
subgraph cluster_12 {
color=blue
39 [label="Enter block"];
40 [label="Function call: R|/B.B|()"];
41 [label="Exit block"];
}
42 [label="Exit when branch result"];
43 [label="Exit when"];
}
44 [label="Variable declaration: lval b: R|B|"];
45 [label="Access variable R|<local>/b|"];
46 [label="Function call: R|/takeB|(...)"];
47 [label="Exit function test_1" style="filled" fillcolor=red];
}
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
@@ -109,82 +121,82 @@ digraph exhaustiveWhenAndDNNType_kt {
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {34 24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {27};
27 -> {28}; 27 -> {38 28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {39}; 33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {36}; 35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {43};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {42};
42 -> {43}; 42 -> {43};
43 -> {44};
subgraph cluster_11 {
color=red
44 [label="Enter function test_2" style="filled" fillcolor=red];
45 [label="Access qualifier /SomeEnum"];
46 [label="Access variable R|/SomeEnum.A1|"];
47 [label="Variable declaration: lval flag: R|SomeEnum|"];
subgraph cluster_12 {
color=blue
48 [label="Enter when"];
49 [label="Access variable R|<local>/flag|"];
50 [label="Check not null: R|<local>/flag|!!"];
subgraph cluster_13 {
color=blue
51 [label="Enter when branch condition "];
52 [label="Access qualifier /SomeEnum"];
53 [label="Access variable R|/SomeEnum.A1|"];
54 [label="Operator =="];
55 [label="Exit when branch condition"];
}
subgraph cluster_14 {
color=blue
56 [label="Enter when branch condition "];
57 [label="Access qualifier /SomeEnum"];
58 [label="Access variable R|/SomeEnum.A2|"];
59 [label="Operator =="];
60 [label="Exit when branch condition"];
}
61 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
62 [label="Enter block"];
63 [label="Function call: R|/B.B|()"];
64 [label="Exit block"];
}
65 [label="Exit when branch result"];
66 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
67 [label="Enter block"];
68 [label="Function call: R|/B.B|()"];
69 [label="Exit block"];
}
70 [label="Exit when branch result"];
71 [label="Exit when"];
}
72 [label="Variable declaration: lval b: R|B|"];
73 [label="Access variable R|<local>/b|"];
74 [label="Function call: R|/takeB|(...)"];
75 [label="Exit function test_2" style="filled" fillcolor=red];
}
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48};
subgraph cluster_13 {
color=red
48 [label="Enter function test_2" style="filled" fillcolor=red];
49 [label="Access qualifier /SomeEnum"];
50 [label="Access variable R|/SomeEnum.A1|"];
51 [label="Variable declaration: lval flag: R|SomeEnum|"];
subgraph cluster_14 {
color=blue
52 [label="Enter when"];
53 [label="Access variable R|<local>/flag|"];
54 [label="Check not null: R|<local>/flag|!!"];
subgraph cluster_15 {
color=blue
55 [label="Enter when branch condition "];
56 [label="Access qualifier /SomeEnum"];
57 [label="Access variable R|/SomeEnum.A1|"];
58 [label="Operator =="];
59 [label="Exit when branch condition"];
}
subgraph cluster_16 {
color=blue
60 [label="Enter when branch condition "];
61 [label="Access qualifier /SomeEnum"];
62 [label="Access variable R|/SomeEnum.A2|"];
63 [label="Operator =="];
64 [label="Exit when branch condition"];
}
65 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
66 [label="Enter block"];
67 [label="Function call: R|/B.B|()"];
68 [label="Exit block"];
}
69 [label="Exit when branch result"];
70 [label="Enter when branch result"];
subgraph cluster_18 {
color=blue
71 [label="Enter block"];
72 [label="Function call: R|/B.B|()"];
73 [label="Exit block"];
}
74 [label="Exit when branch result"];
75 [label="Exit when"];
}
76 [label="Variable declaration: lval b: R|B|"];
77 [label="Access variable R|<local>/b|"];
78 [label="Function call: R|/takeB|(...)"];
79 [label="Exit function test_2" style="filled" fillcolor=red];
}
48 -> {49}; 48 -> {49};
49 -> {50}; 49 -> {50};
50 -> {51}; 50 -> {51};
@@ -192,106 +204,110 @@ digraph exhaustiveWhenAndDNNType_kt {
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {54};
54 -> {55}; 54 -> {55};
55 -> {66 56}; 55 -> {56};
56 -> {57}; 56 -> {57};
57 -> {58}; 57 -> {58};
58 -> {59}; 58 -> {59};
59 -> {60}; 59 -> {70 60};
60 -> {61}; 60 -> {61};
61 -> {62}; 61 -> {62};
62 -> {63}; 62 -> {63};
63 -> {64}; 63 -> {64};
64 -> {65}; 64 -> {65};
65 -> {71}; 65 -> {66};
66 -> {67}; 66 -> {67};
67 -> {68}; 67 -> {68};
68 -> {69}; 68 -> {69};
69 -> {70}; 69 -> {75};
70 -> {71}; 70 -> {71};
71 -> {72}; 71 -> {72};
72 -> {73}; 72 -> {73};
73 -> {74}; 73 -> {74};
74 -> {75}; 74 -> {75};
75 -> {76};
subgraph cluster_17 {
color=red
76 [label="Enter function test_3" style="filled" fillcolor=red];
77 [label="Access qualifier /SomeEnum"];
78 [label="Access variable R|/SomeEnum.A1|"];
79 [label="Variable declaration: lval flag: R|SomeEnum|"];
subgraph cluster_18 {
color=blue
80 [label="Enter when"];
81 [label="Access variable R|<local>/flag|"];
subgraph cluster_19 {
color=blue
82 [label="Enter when branch condition "];
83 [label="Access qualifier /SomeEnum"];
84 [label="Access variable R|/SomeEnum.A1|"];
85 [label="Operator =="];
86 [label="Exit when branch condition"];
}
subgraph cluster_20 {
color=blue
87 [label="Enter when branch condition "];
88 [label="Access qualifier /SomeEnum"];
89 [label="Access variable R|/SomeEnum.A2|"];
90 [label="Operator =="];
91 [label="Exit when branch condition"];
}
92 [label="Enter when branch result"];
subgraph cluster_21 {
color=blue
93 [label="Enter block"];
94 [label="Function call: R|/B.B|()"];
95 [label="Exit block"];
}
96 [label="Exit when branch result"];
97 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
98 [label="Enter block"];
99 [label="Function call: R|/B.B|()"];
100 [label="Exit block"];
}
101 [label="Exit when branch result"];
102 [label="Exit when"];
}
103 [label="Variable declaration: lval b: R|B|"];
104 [label="Access variable R|<local>/b|"];
105 [label="Function call: R|/takeB|(...)"];
106 [label="Exit function test_3" style="filled" fillcolor=red];
}
76 -> {77}; 76 -> {77};
77 -> {78}; 77 -> {78};
78 -> {79}; 78 -> {79};
79 -> {80};
subgraph cluster_19 {
color=red
80 [label="Enter function test_3" style="filled" fillcolor=red];
81 [label="Access qualifier /SomeEnum"];
82 [label="Access variable R|/SomeEnum.A1|"];
83 [label="Variable declaration: lval flag: R|SomeEnum|"];
subgraph cluster_20 {
color=blue
84 [label="Enter when"];
85 [label="Access variable R|<local>/flag|"];
subgraph cluster_21 {
color=blue
86 [label="Enter when branch condition "];
87 [label="Access qualifier /SomeEnum"];
88 [label="Access variable R|/SomeEnum.A1|"];
89 [label="Operator =="];
90 [label="Exit when branch condition"];
}
subgraph cluster_22 {
color=blue
91 [label="Enter when branch condition "];
92 [label="Access qualifier /SomeEnum"];
93 [label="Access variable R|/SomeEnum.A2|"];
94 [label="Operator =="];
95 [label="Exit when branch condition"];
}
96 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
97 [label="Enter block"];
98 [label="Function call: R|/B.B|()"];
99 [label="Exit block"];
}
100 [label="Exit when branch result"];
101 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue
102 [label="Enter block"];
103 [label="Function call: R|/B.B|()"];
104 [label="Exit block"];
}
105 [label="Exit when branch result"];
106 [label="Exit when"];
}
107 [label="Variable declaration: lval b: R|B|"];
108 [label="Access variable R|<local>/b|"];
109 [label="Function call: R|/takeB|(...)"];
110 [label="Exit function test_3" style="filled" fillcolor=red];
}
80 -> {81}; 80 -> {81};
81 -> {82}; 81 -> {82};
82 -> {83}; 82 -> {83};
83 -> {84}; 83 -> {84};
84 -> {85}; 84 -> {85};
85 -> {86}; 85 -> {86};
86 -> {97 87}; 86 -> {87};
87 -> {88}; 87 -> {88};
88 -> {89}; 88 -> {89};
89 -> {90}; 89 -> {90};
90 -> {91}; 90 -> {101 91};
91 -> {92}; 91 -> {92};
92 -> {93}; 92 -> {93};
93 -> {94}; 93 -> {94};
94 -> {95}; 94 -> {95};
95 -> {96}; 95 -> {96};
96 -> {102}; 96 -> {97};
97 -> {98}; 97 -> {98};
98 -> {99}; 98 -> {99};
99 -> {100}; 99 -> {100};
100 -> {101}; 100 -> {106};
101 -> {102}; 101 -> {102};
102 -> {103}; 102 -> {103};
103 -> {104}; 103 -> {104};
104 -> {105}; 104 -> {105};
105 -> {106}; 105 -> {106};
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {110};
} }
@@ -13,63 +13,69 @@ digraph bangbang_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function test_0" style="filled" fillcolor=red]; 2 [label="Enter class A" style="filled" fillcolor=red];
3 [label="Access variable R|<local>/a|"]; 3 [label="Exit class A" style="filled" fillcolor=red];
4 [label="Check not null: R|<local>/a|!!"]; }
5 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
6 [label="Access variable R|<local>/a|"]; 2 -> {3} [color=green];
7 [label="Function call: R|<local>/a|.R|/A.foo|()"];
8 [label="Exit function test_0" style="filled" fillcolor=red]; subgraph cluster_2 {
color=red
4 [label="Enter function test_0" style="filled" fillcolor=red];
5 [label="Access variable R|<local>/a|"];
6 [label="Check not null: R|<local>/a|!!"];
7 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
8 [label="Access variable R|<local>/a|"];
9 [label="Function call: R|<local>/a|.R|/A.foo|()"];
10 [label="Exit function test_0" style="filled" fillcolor=red];
} }
2 -> {3};
3 -> {4};
4 -> {5}; 4 -> {5};
5 -> {6}; 5 -> {6};
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {9};
9 -> {10};
subgraph cluster_2 { subgraph cluster_3 {
color=red color=red
9 [label="Enter function test_1" style="filled" fillcolor=red]; 11 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_3 { subgraph cluster_4 {
color=blue color=blue
10 [label="Enter when"]; 12 [label="Enter when"];
subgraph cluster_4 {
color=blue
11 [label="Enter when branch condition "];
12 [label="Access variable R|<local>/a|"];
13 [label="Check not null: R|<local>/a|!!"];
14 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
15 [label="Exit when branch condition"];
}
16 [label="Synthetic else branch"];
17 [label="Enter when branch result"];
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
18 [label="Enter block"]; 13 [label="Enter when branch condition "];
19 [label="Access variable R|<local>/a|"]; 14 [label="Access variable R|<local>/a|"];
20 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 15 [label="Check not null: R|<local>/a|!!"];
21 [label="Exit block"]; 16 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
17 [label="Exit when branch condition"];
} }
22 [label="Exit when branch result"]; 18 [label="Synthetic else branch"];
23 [label="Exit when"]; 19 [label="Enter when branch result"];
subgraph cluster_6 {
color=blue
20 [label="Enter block"];
21 [label="Access variable R|<local>/a|"];
22 [label="Function call: R|<local>/a|.R|/A.foo|()"];
23 [label="Exit block"];
}
24 [label="Exit when branch result"];
25 [label="Exit when"];
} }
24 [label="Access variable R|<local>/a|"]; 26 [label="Access variable R|<local>/a|"];
25 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 27 [label="Function call: R|<local>/a|.R|/A.foo|()"];
26 [label="Exit function test_1" style="filled" fillcolor=red]; 28 [label="Exit function test_1" style="filled" fillcolor=red];
} }
9 -> {10};
10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {17 16}; 15 -> {16};
16 -> {23}; 16 -> {17};
17 -> {18}; 17 -> {19 18};
18 -> {19}; 18 -> {25};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
@@ -77,61 +83,61 @@ digraph bangbang_kt {
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27};
27 -> {28};
subgraph cluster_6 { subgraph cluster_7 {
color=red color=red
27 [label="Enter function test_2" style="filled" fillcolor=red]; 29 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_7 { subgraph cluster_8 {
color=blue color=blue
28 [label="Enter when"]; 30 [label="Enter when"];
subgraph cluster_8 { subgraph cluster_9 {
color=blue color=blue
29 [label="Enter when branch condition "]; 31 [label="Enter when branch condition "];
subgraph cluster_9 { subgraph cluster_10 {
color=blue color=blue
30 [label="Enter &&"]; 32 [label="Enter &&"];
31 [label="Access variable R|<local>/a|"]; 33 [label="Access variable R|<local>/a|"];
32 [label="Check not null: R|<local>/a|!!"]; 34 [label="Check not null: R|<local>/a|!!"];
33 [label="Function call: R|<local>/a|!!.R|/A.foo|()"]; 35 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
34 [label="Exit left part of &&"]; 36 [label="Exit left part of &&"];
35 [label="Enter right part of &&"]; 37 [label="Enter right part of &&"];
36 [label="Access variable R|<local>/b|"]; 38 [label="Access variable R|<local>/b|"];
37 [label="Exit &&"]; 39 [label="Exit &&"];
} }
38 [label="Exit when branch condition"]; 40 [label="Exit when branch condition"];
} }
39 [label="Synthetic else branch"]; 41 [label="Synthetic else branch"];
40 [label="Enter when branch result"]; 42 [label="Enter when branch result"];
subgraph cluster_10 { subgraph cluster_11 {
color=blue color=blue
41 [label="Enter block"]; 43 [label="Enter block"];
42 [label="Access variable R|<local>/a|"]; 44 [label="Access variable R|<local>/a|"];
43 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 45 [label="Function call: R|<local>/a|.R|/A.foo|()"];
44 [label="Exit block"]; 46 [label="Exit block"];
} }
45 [label="Exit when branch result"]; 47 [label="Exit when branch result"];
46 [label="Exit when"]; 48 [label="Exit when"];
} }
47 [label="Access variable R|<local>/a|"]; 49 [label="Access variable R|<local>/a|"];
48 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 50 [label="Function call: R|<local>/a|.R|/A.foo|()"];
49 [label="Exit function test_2" style="filled" fillcolor=red]; 51 [label="Exit function test_2" style="filled" fillcolor=red];
} }
27 -> {28};
28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {37 35}; 34 -> {35};
35 -> {36}; 35 -> {36};
36 -> {37}; 36 -> {39 37};
37 -> {38}; 37 -> {38};
38 -> {40 39}; 38 -> {39};
39 -> {46}; 39 -> {40};
40 -> {41}; 40 -> {42 41};
41 -> {42}; 41 -> {48};
42 -> {43}; 42 -> {43};
43 -> {44}; 43 -> {44};
44 -> {45}; 44 -> {45};
@@ -139,61 +145,61 @@ digraph bangbang_kt {
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {49};
49 -> {50};
50 -> {51};
subgraph cluster_11 { subgraph cluster_12 {
color=red color=red
50 [label="Enter function test_3" style="filled" fillcolor=red]; 52 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_12 { subgraph cluster_13 {
color=blue color=blue
51 [label="Enter when"]; 53 [label="Enter when"];
subgraph cluster_13 { subgraph cluster_14 {
color=blue color=blue
52 [label="Enter when branch condition "]; 54 [label="Enter when branch condition "];
subgraph cluster_14 { subgraph cluster_15 {
color=blue color=blue
53 [label="Enter &&"]; 55 [label="Enter &&"];
54 [label="Access variable R|<local>/b|"]; 56 [label="Access variable R|<local>/b|"];
55 [label="Exit left part of &&"]; 57 [label="Exit left part of &&"];
56 [label="Enter right part of &&"]; 58 [label="Enter right part of &&"];
57 [label="Access variable R|<local>/a|"]; 59 [label="Access variable R|<local>/a|"];
58 [label="Check not null: R|<local>/a|!!"]; 60 [label="Check not null: R|<local>/a|!!"];
59 [label="Function call: R|<local>/a|!!.R|/A.foo|()"]; 61 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
60 [label="Exit &&"]; 62 [label="Exit &&"];
} }
61 [label="Exit when branch condition"]; 63 [label="Exit when branch condition"];
} }
62 [label="Synthetic else branch"]; 64 [label="Synthetic else branch"];
63 [label="Enter when branch result"]; 65 [label="Enter when branch result"];
subgraph cluster_15 { subgraph cluster_16 {
color=blue color=blue
64 [label="Enter block"]; 66 [label="Enter block"];
65 [label="Access variable R|<local>/a|"]; 67 [label="Access variable R|<local>/a|"];
66 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 68 [label="Function call: R|<local>/a|.R|/A.foo|()"];
67 [label="Exit block"]; 69 [label="Exit block"];
} }
68 [label="Exit when branch result"]; 70 [label="Exit when branch result"];
69 [label="Exit when"]; 71 [label="Exit when"];
} }
70 [label="Access variable R|<local>/a|"]; 72 [label="Access variable R|<local>/a|"];
71 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"]; 73 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
72 [label="Exit function test_3" style="filled" fillcolor=red]; 74 [label="Exit function test_3" style="filled" fillcolor=red];
} }
50 -> {51};
51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {54};
54 -> {55}; 54 -> {55};
55 -> {60 56}; 55 -> {56};
56 -> {57}; 56 -> {57};
57 -> {58}; 57 -> {62 58};
58 -> {59}; 58 -> {59};
59 -> {60}; 59 -> {60};
60 -> {61}; 60 -> {61};
61 -> {63 62}; 61 -> {62};
62 -> {69}; 62 -> {63};
63 -> {64}; 63 -> {65 64};
64 -> {65}; 64 -> {71};
65 -> {66}; 65 -> {66};
66 -> {67}; 66 -> {67};
67 -> {68}; 67 -> {68};
@@ -201,61 +207,61 @@ digraph bangbang_kt {
69 -> {70}; 69 -> {70};
70 -> {71}; 70 -> {71};
71 -> {72}; 71 -> {72};
72 -> {73};
73 -> {74};
subgraph cluster_16 { subgraph cluster_17 {
color=red color=red
73 [label="Enter function test_4" style="filled" fillcolor=red]; 75 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_17 { subgraph cluster_18 {
color=blue color=blue
74 [label="Enter when"]; 76 [label="Enter when"];
subgraph cluster_18 { subgraph cluster_19 {
color=blue color=blue
75 [label="Enter when branch condition "]; 77 [label="Enter when branch condition "];
subgraph cluster_19 { subgraph cluster_20 {
color=blue color=blue
76 [label="Enter ||"]; 78 [label="Enter ||"];
77 [label="Access variable R|<local>/a|"]; 79 [label="Access variable R|<local>/a|"];
78 [label="Check not null: R|<local>/a|!!"]; 80 [label="Check not null: R|<local>/a|!!"];
79 [label="Function call: R|<local>/a|!!.R|/A.foo|()"]; 81 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
80 [label="Exit left part of ||"]; 82 [label="Exit left part of ||"];
81 [label="Enter right part of ||"]; 83 [label="Enter right part of ||"];
82 [label="Access variable R|<local>/b|"]; 84 [label="Access variable R|<local>/b|"];
83 [label="Exit ||"]; 85 [label="Exit ||"];
} }
84 [label="Exit when branch condition"]; 86 [label="Exit when branch condition"];
} }
85 [label="Synthetic else branch"]; 87 [label="Synthetic else branch"];
86 [label="Enter when branch result"]; 88 [label="Enter when branch result"];
subgraph cluster_20 { subgraph cluster_21 {
color=blue color=blue
87 [label="Enter block"]; 89 [label="Enter block"];
88 [label="Access variable R|<local>/a|"]; 90 [label="Access variable R|<local>/a|"];
89 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 91 [label="Function call: R|<local>/a|.R|/A.foo|()"];
90 [label="Exit block"]; 92 [label="Exit block"];
} }
91 [label="Exit when branch result"]; 93 [label="Exit when branch result"];
92 [label="Exit when"]; 94 [label="Exit when"];
} }
93 [label="Access variable R|<local>/a|"]; 95 [label="Access variable R|<local>/a|"];
94 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 96 [label="Function call: R|<local>/a|.R|/A.foo|()"];
95 [label="Exit function test_4" style="filled" fillcolor=red]; 97 [label="Exit function test_4" style="filled" fillcolor=red];
} }
73 -> {74};
74 -> {75};
75 -> {76}; 75 -> {76};
76 -> {77}; 76 -> {77};
77 -> {78}; 77 -> {78};
78 -> {79}; 78 -> {79};
79 -> {80}; 79 -> {80};
80 -> {83 81}; 80 -> {81};
81 -> {82}; 81 -> {82};
82 -> {83}; 82 -> {85 83};
83 -> {84}; 83 -> {84};
84 -> {86 85}; 84 -> {85};
85 -> {92}; 85 -> {86};
86 -> {87}; 86 -> {88 87};
87 -> {88}; 87 -> {94};
88 -> {89}; 88 -> {89};
89 -> {90}; 89 -> {90};
90 -> {91}; 90 -> {91};
@@ -263,61 +269,61 @@ digraph bangbang_kt {
92 -> {93}; 92 -> {93};
93 -> {94}; 93 -> {94};
94 -> {95}; 94 -> {95};
95 -> {96};
96 -> {97};
subgraph cluster_21 { subgraph cluster_22 {
color=red color=red
96 [label="Enter function test_5" style="filled" fillcolor=red]; 98 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_22 { subgraph cluster_23 {
color=blue color=blue
97 [label="Enter when"]; 99 [label="Enter when"];
subgraph cluster_23 { subgraph cluster_24 {
color=blue color=blue
98 [label="Enter when branch condition "]; 100 [label="Enter when branch condition "];
subgraph cluster_24 { subgraph cluster_25 {
color=blue color=blue
99 [label="Enter ||"]; 101 [label="Enter ||"];
100 [label="Access variable R|<local>/b|"]; 102 [label="Access variable R|<local>/b|"];
101 [label="Exit left part of ||"]; 103 [label="Exit left part of ||"];
102 [label="Enter right part of ||"]; 104 [label="Enter right part of ||"];
103 [label="Access variable R|<local>/a|"]; 105 [label="Access variable R|<local>/a|"];
104 [label="Check not null: R|<local>/a|!!"]; 106 [label="Check not null: R|<local>/a|!!"];
105 [label="Function call: R|<local>/a|!!.R|/A.foo|()"]; 107 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
106 [label="Exit ||"]; 108 [label="Exit ||"];
} }
107 [label="Exit when branch condition"]; 109 [label="Exit when branch condition"];
} }
108 [label="Synthetic else branch"]; 110 [label="Synthetic else branch"];
109 [label="Enter when branch result"]; 111 [label="Enter when branch result"];
subgraph cluster_25 { subgraph cluster_26 {
color=blue color=blue
110 [label="Enter block"]; 112 [label="Enter block"];
111 [label="Access variable R|<local>/a|"]; 113 [label="Access variable R|<local>/a|"];
112 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"]; 114 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
113 [label="Exit block"]; 115 [label="Exit block"];
} }
114 [label="Exit when branch result"]; 116 [label="Exit when branch result"];
115 [label="Exit when"]; 117 [label="Exit when"];
} }
116 [label="Access variable R|<local>/a|"]; 118 [label="Access variable R|<local>/a|"];
117 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"]; 119 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
118 [label="Exit function test_5" style="filled" fillcolor=red]; 120 [label="Exit function test_5" style="filled" fillcolor=red];
} }
96 -> {97};
97 -> {98};
98 -> {99}; 98 -> {99};
99 -> {100}; 99 -> {100};
100 -> {101}; 100 -> {101};
101 -> {106 102}; 101 -> {102};
102 -> {103}; 102 -> {103};
103 -> {104}; 103 -> {108 104};
104 -> {105}; 104 -> {105};
105 -> {106}; 105 -> {106};
106 -> {107}; 106 -> {107};
107 -> {109 108}; 107 -> {108};
108 -> {115}; 108 -> {109};
109 -> {110}; 109 -> {111 110};
110 -> {111}; 110 -> {117};
111 -> {112}; 111 -> {112};
112 -> {113}; 112 -> {113};
113 -> {114}; 113 -> {114};
@@ -325,33 +331,35 @@ digraph bangbang_kt {
115 -> {116}; 115 -> {116};
116 -> {117}; 116 -> {117};
117 -> {118}; 117 -> {118};
118 -> {119};
subgraph cluster_26 {
color=red
119 [label="Enter function test_6" style="filled" fillcolor=red];
120 [label="Access variable R|<local>/x|"];
121 [label="Check not null: R|<local>/x|!!"];
122 [label="Function call: R|<local>/x|!!.R|/A.foo|()"];
123 [label="Exit function test_6" style="filled" fillcolor=red];
}
119 -> {120}; 119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
subgraph cluster_27 { subgraph cluster_27 {
color=red color=red
124 [label="Enter function test_7" style="filled" fillcolor=red]; 121 [label="Enter function test_6" style="filled" fillcolor=red];
125 [label="Access variable R|<local>/x|"]; 122 [label="Access variable R|<local>/x|"];
126 [label="Check not null: R|<local>/x|!!"]; 123 [label="Check not null: R|<local>/x|!!"];
127 [label="Function call: R|<local>/x|!!.R|/A.foo|()"]; 124 [label="Function call: R|<local>/x|!!.R|/A.foo|()"];
128 [label="Exit function test_7" style="filled" fillcolor=red]; 125 [label="Exit function test_6" style="filled" fillcolor=red];
} }
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125}; 124 -> {125};
125 -> {126};
subgraph cluster_28 {
color=red
126 [label="Enter function test_7" style="filled" fillcolor=red];
127 [label="Access variable R|<local>/x|"];
128 [label="Check not null: R|<local>/x|!!"];
129 [label="Function call: R|<local>/x|!!.R|/A.foo|()"];
130 [label="Exit function test_7" style="filled" fillcolor=red];
}
126 -> {127}; 126 -> {127};
127 -> {128}; 127 -> {128};
128 -> {129};
129 -> {130};
} }
File diff suppressed because it is too large Load Diff
@@ -29,554 +29,561 @@ digraph equalsToBoolean_kt {
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
6 [label="Enter function test_1" style="filled" fillcolor=red]; 6 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_4 { 7 [label="Exit class A" style="filled" fillcolor=red];
color=blue }
7 [label="Enter when"];
subgraph cluster_5 {
color=blue subgraph cluster_4 {
8 [label="Enter when branch condition "]; color=red
9 [label="Access variable R|<local>/b|"]; 8 [label="Enter function test_1" style="filled" fillcolor=red];
10 [label="Const: Boolean(true)"]; subgraph cluster_5 {
11 [label="Operator =="]; color=blue
12 [label="Const: Boolean(true)"]; 9 [label="Enter when"];
13 [label="Operator =="]; subgraph cluster_6 {
14 [label="Exit when branch condition"]; color=blue
} 10 [label="Enter when branch condition "];
subgraph cluster_6 { 11 [label="Access variable R|<local>/b|"];
color=blue 12 [label="Const: Boolean(true)"];
15 [label="Enter when branch condition else"]; 13 [label="Operator =="];
16 [label="Exit when branch condition"]; 14 [label="Const: Boolean(true)"];
} 15 [label="Operator =="];
17 [label="Enter when branch result"]; 16 [label="Exit when branch condition"];
subgraph cluster_7 { }
color=blue subgraph cluster_7 {
18 [label="Enter block"]; color=blue
19 [label="Access variable R|<local>/b|"]; 17 [label="Enter when branch condition else"];
20 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"]; 18 [label="Exit when branch condition"];
21 [label="Exit block"]; }
} 19 [label="Enter when branch result"];
22 [label="Exit when branch result"]; subgraph cluster_8 {
23 [label="Enter when branch result"]; color=blue
subgraph cluster_8 { 20 [label="Enter block"];
color=blue 21 [label="Access variable R|<local>/b|"];
24 [label="Enter block"]; 22 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
25 [label="Access variable R|<local>/b|"]; 23 [label="Exit block"];
26 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; }
27 [label="Exit block"]; 24 [label="Exit when branch result"];
} 25 [label="Enter when branch result"];
28 [label="Exit when branch result"]; subgraph cluster_9 {
29 [label="Exit when"]; color=blue
} 26 [label="Enter block"];
30 [label="Exit function test_1" style="filled" fillcolor=red]; 27 [label="Access variable R|<local>/b|"];
28 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
29 [label="Exit block"];
}
30 [label="Exit when branch result"];
31 [label="Exit when"];
}
32 [label="Exit function test_1" style="filled" fillcolor=red];
} }
6 -> {7};
7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {23 15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {25 17};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {29}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {31};
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31};
31 -> {32};
subgraph cluster_9 { subgraph cluster_10 {
color=red color=red
31 [label="Enter function test_2" style="filled" fillcolor=red]; 33 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_10 { subgraph cluster_11 {
color=blue color=blue
32 [label="Enter when"]; 34 [label="Enter when"];
subgraph cluster_11 {
color=blue
33 [label="Enter when branch condition "];
34 [label="Access variable R|<local>/b|"];
35 [label="Const: Boolean(true)"];
36 [label="Operator =="];
37 [label="Const: Boolean(true)"];
38 [label="Operator !="];
39 [label="Exit when branch condition"];
}
subgraph cluster_12 { subgraph cluster_12 {
color=blue color=blue
40 [label="Enter when branch condition else"]; 35 [label="Enter when branch condition "];
36 [label="Access variable R|<local>/b|"];
37 [label="Const: Boolean(true)"];
38 [label="Operator =="];
39 [label="Const: Boolean(true)"];
40 [label="Operator !="];
41 [label="Exit when branch condition"]; 41 [label="Exit when branch condition"];
} }
42 [label="Enter when branch result"];
subgraph cluster_13 { subgraph cluster_13 {
color=blue color=blue
43 [label="Enter block"]; 42 [label="Enter when branch condition else"];
44 [label="Access variable R|<local>/b|"]; 43 [label="Exit when branch condition"];
45 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
46 [label="Exit block"];
} }
47 [label="Exit when branch result"]; 44 [label="Enter when branch result"];
48 [label="Enter when branch result"];
subgraph cluster_14 { subgraph cluster_14 {
color=blue color=blue
49 [label="Enter block"]; 45 [label="Enter block"];
50 [label="Access variable R|<local>/b|"]; 46 [label="Access variable R|<local>/b|"];
51 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"]; 47 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
52 [label="Exit block"]; 48 [label="Exit block"];
} }
53 [label="Exit when branch result"]; 49 [label="Exit when branch result"];
54 [label="Exit when"]; 50 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
51 [label="Enter block"];
52 [label="Access variable R|<local>/b|"];
53 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
54 [label="Exit block"];
}
55 [label="Exit when branch result"];
56 [label="Exit when"];
} }
55 [label="Exit function test_2" style="filled" fillcolor=red]; 57 [label="Exit function test_2" style="filled" fillcolor=red];
} }
31 -> {32};
32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {36}; 35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {48 40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {50 42};
42 -> {43}; 42 -> {43};
43 -> {44}; 43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {54}; 47 -> {48};
48 -> {49}; 48 -> {49};
49 -> {50}; 49 -> {56};
50 -> {51}; 50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {54};
54 -> {55}; 54 -> {55};
55 -> {56};
56 -> {57};
subgraph cluster_15 { subgraph cluster_16 {
color=red color=red
56 [label="Enter function test_3" style="filled" fillcolor=red]; 58 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_16 { subgraph cluster_17 {
color=blue color=blue
57 [label="Enter when"]; 59 [label="Enter when"];
subgraph cluster_17 {
color=blue
58 [label="Enter when branch condition "];
59 [label="Access variable R|<local>/b|"];
60 [label="Const: Boolean(true)"];
61 [label="Operator =="];
62 [label="Const: Boolean(false)"];
63 [label="Operator =="];
64 [label="Exit when branch condition"];
}
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
65 [label="Enter when branch condition else"]; 60 [label="Enter when branch condition "];
61 [label="Access variable R|<local>/b|"];
62 [label="Const: Boolean(true)"];
63 [label="Operator =="];
64 [label="Const: Boolean(false)"];
65 [label="Operator =="];
66 [label="Exit when branch condition"]; 66 [label="Exit when branch condition"];
} }
67 [label="Enter when branch result"];
subgraph cluster_19 { subgraph cluster_19 {
color=blue color=blue
68 [label="Enter block"]; 67 [label="Enter when branch condition else"];
69 [label="Access variable R|<local>/b|"]; 68 [label="Exit when branch condition"];
70 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
71 [label="Exit block"];
} }
72 [label="Exit when branch result"]; 69 [label="Enter when branch result"];
73 [label="Enter when branch result"];
subgraph cluster_20 { subgraph cluster_20 {
color=blue color=blue
74 [label="Enter block"]; 70 [label="Enter block"];
75 [label="Access variable R|<local>/b|"]; 71 [label="Access variable R|<local>/b|"];
76 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"]; 72 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
77 [label="Exit block"]; 73 [label="Exit block"];
} }
78 [label="Exit when branch result"]; 74 [label="Exit when branch result"];
79 [label="Exit when"]; 75 [label="Enter when branch result"];
subgraph cluster_21 {
color=blue
76 [label="Enter block"];
77 [label="Access variable R|<local>/b|"];
78 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
79 [label="Exit block"];
}
80 [label="Exit when branch result"];
81 [label="Exit when"];
} }
80 [label="Exit function test_3" style="filled" fillcolor=red]; 82 [label="Exit function test_3" style="filled" fillcolor=red];
} }
56 -> {57};
57 -> {58};
58 -> {59}; 58 -> {59};
59 -> {60}; 59 -> {60};
60 -> {61}; 60 -> {61};
61 -> {62}; 61 -> {62};
62 -> {63}; 62 -> {63};
63 -> {64}; 63 -> {64};
64 -> {73 65}; 64 -> {65};
65 -> {66}; 65 -> {66};
66 -> {67}; 66 -> {75 67};
67 -> {68}; 67 -> {68};
68 -> {69}; 68 -> {69};
69 -> {70}; 69 -> {70};
70 -> {71}; 70 -> {71};
71 -> {72}; 71 -> {72};
72 -> {79}; 72 -> {73};
73 -> {74}; 73 -> {74};
74 -> {75}; 74 -> {81};
75 -> {76}; 75 -> {76};
76 -> {77}; 76 -> {77};
77 -> {78}; 77 -> {78};
78 -> {79}; 78 -> {79};
79 -> {80}; 79 -> {80};
80 -> {81};
81 -> {82};
subgraph cluster_21 { subgraph cluster_22 {
color=red color=red
81 [label="Enter function test_4" style="filled" fillcolor=red]; 83 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_22 { subgraph cluster_23 {
color=blue color=blue
82 [label="Enter when"]; 84 [label="Enter when"];
subgraph cluster_23 {
color=blue
83 [label="Enter when branch condition "];
84 [label="Access variable R|<local>/b|"];
85 [label="Const: Boolean(true)"];
86 [label="Operator =="];
87 [label="Const: Boolean(false)"];
88 [label="Operator !="];
89 [label="Exit when branch condition"];
}
subgraph cluster_24 { subgraph cluster_24 {
color=blue color=blue
90 [label="Enter when branch condition else"]; 85 [label="Enter when branch condition "];
86 [label="Access variable R|<local>/b|"];
87 [label="Const: Boolean(true)"];
88 [label="Operator =="];
89 [label="Const: Boolean(false)"];
90 [label="Operator !="];
91 [label="Exit when branch condition"]; 91 [label="Exit when branch condition"];
} }
92 [label="Enter when branch result"];
subgraph cluster_25 { subgraph cluster_25 {
color=blue color=blue
93 [label="Enter block"]; 92 [label="Enter when branch condition else"];
94 [label="Access variable R|<local>/b|"]; 93 [label="Exit when branch condition"];
95 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
96 [label="Exit block"];
} }
97 [label="Exit when branch result"]; 94 [label="Enter when branch result"];
98 [label="Enter when branch result"];
subgraph cluster_26 { subgraph cluster_26 {
color=blue color=blue
99 [label="Enter block"]; 95 [label="Enter block"];
100 [label="Access variable R|<local>/b|"]; 96 [label="Access variable R|<local>/b|"];
101 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 97 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
102 [label="Exit block"]; 98 [label="Exit block"];
} }
103 [label="Exit when branch result"]; 99 [label="Exit when branch result"];
104 [label="Exit when"]; 100 [label="Enter when branch result"];
subgraph cluster_27 {
color=blue
101 [label="Enter block"];
102 [label="Access variable R|<local>/b|"];
103 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
104 [label="Exit block"];
}
105 [label="Exit when branch result"];
106 [label="Exit when"];
} }
105 [label="Exit function test_4" style="filled" fillcolor=red]; 107 [label="Exit function test_4" style="filled" fillcolor=red];
} }
81 -> {82};
82 -> {83};
83 -> {84}; 83 -> {84};
84 -> {85}; 84 -> {85};
85 -> {86}; 85 -> {86};
86 -> {87}; 86 -> {87};
87 -> {88}; 87 -> {88};
88 -> {89}; 88 -> {89};
89 -> {98 90}; 89 -> {90};
90 -> {91}; 90 -> {91};
91 -> {92}; 91 -> {100 92};
92 -> {93}; 92 -> {93};
93 -> {94}; 93 -> {94};
94 -> {95}; 94 -> {95};
95 -> {96}; 95 -> {96};
96 -> {97}; 96 -> {97};
97 -> {104}; 97 -> {98};
98 -> {99}; 98 -> {99};
99 -> {100}; 99 -> {106};
100 -> {101}; 100 -> {101};
101 -> {102}; 101 -> {102};
102 -> {103}; 102 -> {103};
103 -> {104}; 103 -> {104};
104 -> {105}; 104 -> {105};
105 -> {106};
106 -> {107};
subgraph cluster_27 { subgraph cluster_28 {
color=red color=red
106 [label="Enter function test_5" style="filled" fillcolor=red]; 108 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_28 { subgraph cluster_29 {
color=blue color=blue
107 [label="Enter when"]; 109 [label="Enter when"];
subgraph cluster_29 {
color=blue
108 [label="Enter when branch condition "];
109 [label="Access variable R|<local>/b|"];
110 [label="Const: Boolean(true)"];
111 [label="Operator !="];
112 [label="Const: Boolean(true)"];
113 [label="Operator =="];
114 [label="Exit when branch condition"];
}
subgraph cluster_30 { subgraph cluster_30 {
color=blue color=blue
115 [label="Enter when branch condition else"]; 110 [label="Enter when branch condition "];
111 [label="Access variable R|<local>/b|"];
112 [label="Const: Boolean(true)"];
113 [label="Operator !="];
114 [label="Const: Boolean(true)"];
115 [label="Operator =="];
116 [label="Exit when branch condition"]; 116 [label="Exit when branch condition"];
} }
117 [label="Enter when branch result"];
subgraph cluster_31 { subgraph cluster_31 {
color=blue color=blue
118 [label="Enter block"]; 117 [label="Enter when branch condition else"];
119 [label="Access variable R|<local>/b|"]; 118 [label="Exit when branch condition"];
120 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
121 [label="Exit block"];
} }
122 [label="Exit when branch result"]; 119 [label="Enter when branch result"];
123 [label="Enter when branch result"];
subgraph cluster_32 { subgraph cluster_32 {
color=blue color=blue
124 [label="Enter block"]; 120 [label="Enter block"];
125 [label="Access variable R|<local>/b|"]; 121 [label="Access variable R|<local>/b|"];
126 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"]; 122 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
127 [label="Exit block"]; 123 [label="Exit block"];
} }
128 [label="Exit when branch result"]; 124 [label="Exit when branch result"];
129 [label="Exit when"]; 125 [label="Enter when branch result"];
subgraph cluster_33 {
color=blue
126 [label="Enter block"];
127 [label="Access variable R|<local>/b|"];
128 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
129 [label="Exit block"];
}
130 [label="Exit when branch result"];
131 [label="Exit when"];
} }
130 [label="Exit function test_5" style="filled" fillcolor=red]; 132 [label="Exit function test_5" style="filled" fillcolor=red];
} }
106 -> {107};
107 -> {108};
108 -> {109}; 108 -> {109};
109 -> {110}; 109 -> {110};
110 -> {111}; 110 -> {111};
111 -> {112}; 111 -> {112};
112 -> {113}; 112 -> {113};
113 -> {114}; 113 -> {114};
114 -> {123 115}; 114 -> {115};
115 -> {116}; 115 -> {116};
116 -> {117}; 116 -> {125 117};
117 -> {118}; 117 -> {118};
118 -> {119}; 118 -> {119};
119 -> {120}; 119 -> {120};
120 -> {121}; 120 -> {121};
121 -> {122}; 121 -> {122};
122 -> {129}; 122 -> {123};
123 -> {124}; 123 -> {124};
124 -> {125}; 124 -> {131};
125 -> {126}; 125 -> {126};
126 -> {127}; 126 -> {127};
127 -> {128}; 127 -> {128};
128 -> {129}; 128 -> {129};
129 -> {130}; 129 -> {130};
130 -> {131};
131 -> {132};
subgraph cluster_33 { subgraph cluster_34 {
color=red color=red
131 [label="Enter function test_6" style="filled" fillcolor=red]; 133 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_34 { subgraph cluster_35 {
color=blue color=blue
132 [label="Enter when"]; 134 [label="Enter when"];
subgraph cluster_35 {
color=blue
133 [label="Enter when branch condition "];
134 [label="Access variable R|<local>/b|"];
135 [label="Const: Boolean(true)"];
136 [label="Operator !="];
137 [label="Const: Boolean(true)"];
138 [label="Operator !="];
139 [label="Exit when branch condition"];
}
subgraph cluster_36 { subgraph cluster_36 {
color=blue color=blue
140 [label="Enter when branch condition else"]; 135 [label="Enter when branch condition "];
136 [label="Access variable R|<local>/b|"];
137 [label="Const: Boolean(true)"];
138 [label="Operator !="];
139 [label="Const: Boolean(true)"];
140 [label="Operator !="];
141 [label="Exit when branch condition"]; 141 [label="Exit when branch condition"];
} }
142 [label="Enter when branch result"];
subgraph cluster_37 { subgraph cluster_37 {
color=blue color=blue
143 [label="Enter block"]; 142 [label="Enter when branch condition else"];
144 [label="Access variable R|<local>/b|"]; 143 [label="Exit when branch condition"];
145 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
146 [label="Exit block"];
} }
147 [label="Exit when branch result"]; 144 [label="Enter when branch result"];
148 [label="Enter when branch result"];
subgraph cluster_38 { subgraph cluster_38 {
color=blue color=blue
149 [label="Enter block"]; 145 [label="Enter block"];
150 [label="Access variable R|<local>/b|"]; 146 [label="Access variable R|<local>/b|"];
151 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 147 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
152 [label="Exit block"]; 148 [label="Exit block"];
} }
153 [label="Exit when branch result"]; 149 [label="Exit when branch result"];
154 [label="Exit when"]; 150 [label="Enter when branch result"];
subgraph cluster_39 {
color=blue
151 [label="Enter block"];
152 [label="Access variable R|<local>/b|"];
153 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
154 [label="Exit block"];
}
155 [label="Exit when branch result"];
156 [label="Exit when"];
} }
155 [label="Exit function test_6" style="filled" fillcolor=red]; 157 [label="Exit function test_6" style="filled" fillcolor=red];
} }
131 -> {132};
132 -> {133};
133 -> {134}; 133 -> {134};
134 -> {135}; 134 -> {135};
135 -> {136}; 135 -> {136};
136 -> {137}; 136 -> {137};
137 -> {138}; 137 -> {138};
138 -> {139}; 138 -> {139};
139 -> {148 140}; 139 -> {140};
140 -> {141}; 140 -> {141};
141 -> {142}; 141 -> {150 142};
142 -> {143}; 142 -> {143};
143 -> {144}; 143 -> {144};
144 -> {145}; 144 -> {145};
145 -> {146}; 145 -> {146};
146 -> {147}; 146 -> {147};
147 -> {154}; 147 -> {148};
148 -> {149}; 148 -> {149};
149 -> {150}; 149 -> {156};
150 -> {151}; 150 -> {151};
151 -> {152}; 151 -> {152};
152 -> {153}; 152 -> {153};
153 -> {154}; 153 -> {154};
154 -> {155}; 154 -> {155};
155 -> {156};
156 -> {157};
subgraph cluster_39 { subgraph cluster_40 {
color=red color=red
156 [label="Enter function test_7" style="filled" fillcolor=red]; 158 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_40 { subgraph cluster_41 {
color=blue color=blue
157 [label="Enter when"]; 159 [label="Enter when"];
subgraph cluster_41 {
color=blue
158 [label="Enter when branch condition "];
159 [label="Access variable R|<local>/b|"];
160 [label="Const: Boolean(true)"];
161 [label="Operator !="];
162 [label="Const: Boolean(false)"];
163 [label="Operator =="];
164 [label="Exit when branch condition"];
}
subgraph cluster_42 { subgraph cluster_42 {
color=blue color=blue
165 [label="Enter when branch condition else"]; 160 [label="Enter when branch condition "];
161 [label="Access variable R|<local>/b|"];
162 [label="Const: Boolean(true)"];
163 [label="Operator !="];
164 [label="Const: Boolean(false)"];
165 [label="Operator =="];
166 [label="Exit when branch condition"]; 166 [label="Exit when branch condition"];
} }
167 [label="Enter when branch result"];
subgraph cluster_43 { subgraph cluster_43 {
color=blue color=blue
168 [label="Enter block"]; 167 [label="Enter when branch condition else"];
169 [label="Access variable R|<local>/b|"]; 168 [label="Exit when branch condition"];
170 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
171 [label="Exit block"];
} }
172 [label="Exit when branch result"]; 169 [label="Enter when branch result"];
173 [label="Enter when branch result"];
subgraph cluster_44 { subgraph cluster_44 {
color=blue color=blue
174 [label="Enter block"]; 170 [label="Enter block"];
175 [label="Access variable R|<local>/b|"]; 171 [label="Access variable R|<local>/b|"];
176 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 172 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
177 [label="Exit block"]; 173 [label="Exit block"];
} }
178 [label="Exit when branch result"]; 174 [label="Exit when branch result"];
179 [label="Exit when"]; 175 [label="Enter when branch result"];
subgraph cluster_45 {
color=blue
176 [label="Enter block"];
177 [label="Access variable R|<local>/b|"];
178 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
179 [label="Exit block"];
}
180 [label="Exit when branch result"];
181 [label="Exit when"];
} }
180 [label="Exit function test_7" style="filled" fillcolor=red]; 182 [label="Exit function test_7" style="filled" fillcolor=red];
} }
156 -> {157};
157 -> {158};
158 -> {159}; 158 -> {159};
159 -> {160}; 159 -> {160};
160 -> {161}; 160 -> {161};
161 -> {162}; 161 -> {162};
162 -> {163}; 162 -> {163};
163 -> {164}; 163 -> {164};
164 -> {173 165}; 164 -> {165};
165 -> {166}; 165 -> {166};
166 -> {167}; 166 -> {175 167};
167 -> {168}; 167 -> {168};
168 -> {169}; 168 -> {169};
169 -> {170}; 169 -> {170};
170 -> {171}; 170 -> {171};
171 -> {172}; 171 -> {172};
172 -> {179}; 172 -> {173};
173 -> {174}; 173 -> {174};
174 -> {175}; 174 -> {181};
175 -> {176}; 175 -> {176};
176 -> {177}; 176 -> {177};
177 -> {178}; 177 -> {178};
178 -> {179}; 178 -> {179};
179 -> {180}; 179 -> {180};
180 -> {181};
181 -> {182};
subgraph cluster_45 { subgraph cluster_46 {
color=red color=red
181 [label="Enter function test_8" style="filled" fillcolor=red]; 183 [label="Enter function test_8" style="filled" fillcolor=red];
subgraph cluster_46 { subgraph cluster_47 {
color=blue color=blue
182 [label="Enter when"]; 184 [label="Enter when"];
subgraph cluster_47 {
color=blue
183 [label="Enter when branch condition "];
184 [label="Access variable R|<local>/b|"];
185 [label="Const: Boolean(true)"];
186 [label="Operator !="];
187 [label="Const: Boolean(false)"];
188 [label="Operator !="];
189 [label="Exit when branch condition"];
}
subgraph cluster_48 { subgraph cluster_48 {
color=blue color=blue
190 [label="Enter when branch condition else"]; 185 [label="Enter when branch condition "];
186 [label="Access variable R|<local>/b|"];
187 [label="Const: Boolean(true)"];
188 [label="Operator !="];
189 [label="Const: Boolean(false)"];
190 [label="Operator !="];
191 [label="Exit when branch condition"]; 191 [label="Exit when branch condition"];
} }
192 [label="Enter when branch result"];
subgraph cluster_49 { subgraph cluster_49 {
color=blue color=blue
193 [label="Enter block"]; 192 [label="Enter when branch condition else"];
194 [label="Access variable R|<local>/b|"]; 193 [label="Exit when branch condition"];
195 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
196 [label="Exit block"];
} }
197 [label="Exit when branch result"]; 194 [label="Enter when branch result"];
198 [label="Enter when branch result"];
subgraph cluster_50 { subgraph cluster_50 {
color=blue color=blue
199 [label="Enter block"]; 195 [label="Enter block"];
200 [label="Access variable R|<local>/b|"]; 196 [label="Access variable R|<local>/b|"];
201 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"]; 197 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
202 [label="Exit block"]; 198 [label="Exit block"];
} }
203 [label="Exit when branch result"]; 199 [label="Exit when branch result"];
204 [label="Exit when"]; 200 [label="Enter when branch result"];
subgraph cluster_51 {
color=blue
201 [label="Enter block"];
202 [label="Access variable R|<local>/b|"];
203 [label="Function call: R|<local>/b|.<Inapplicable(WRONG_RECEIVER): [kotlin/Boolean.not]>#()"];
204 [label="Exit block"];
}
205 [label="Exit when branch result"];
206 [label="Exit when"];
} }
205 [label="Exit function test_8" style="filled" fillcolor=red]; 207 [label="Exit function test_8" style="filled" fillcolor=red];
} }
181 -> {182};
182 -> {183};
183 -> {184}; 183 -> {184};
184 -> {185}; 184 -> {185};
185 -> {186}; 185 -> {186};
186 -> {187}; 186 -> {187};
187 -> {188}; 187 -> {188};
188 -> {189}; 188 -> {189};
189 -> {198 190}; 189 -> {190};
190 -> {191}; 190 -> {191};
191 -> {192}; 191 -> {200 192};
192 -> {193}; 192 -> {193};
193 -> {194}; 193 -> {194};
194 -> {195}; 194 -> {195};
195 -> {196}; 195 -> {196};
196 -> {197}; 196 -> {197};
197 -> {204}; 197 -> {198};
198 -> {199}; 198 -> {199};
199 -> {200}; 199 -> {206};
200 -> {201}; 200 -> {201};
201 -> {202}; 201 -> {202};
202 -> {203}; 202 -> {203};
203 -> {204}; 203 -> {204};
204 -> {205}; 204 -> {205};
205 -> {206};
206 -> {207};
} }
@@ -13,135 +13,141 @@ digraph jumpFromRhsOfOperator_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function test_1" style="filled" fillcolor=red]; 2 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_2 { 3 [label="Exit class A" style="filled" fillcolor=red];
color=blue }
3 [label="Enter ||"];
4 [label="Access variable R|<local>/a|"]; 2 -> {3} [color=green];
5 [label="Const: Null(null)"];
6 [label="Operator !="]; subgraph cluster_2 {
7 [label="Exit left part of ||"]; color=red
8 [label="Enter right part of ||"]; 4 [label="Enter function test_1" style="filled" fillcolor=red];
9 [label="Function call: R|java/lang/Exception.Exception|()"]; subgraph cluster_3 {
10 [label="Throw: throw R|java/lang/Exception.Exception|()"]; color=blue
11 [label="Stub" style="filled" fillcolor=gray]; 5 [label="Enter ||"];
12 [label="Exit ||"]; 6 [label="Access variable R|<local>/a|"];
} 7 [label="Const: Null(null)"];
13 [label="Access variable R|<local>/a|"]; 8 [label="Operator !="];
14 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 9 [label="Exit left part of ||"];
15 [label="Exit function test_1" style="filled" fillcolor=red]; 10 [label="Enter right part of ||"];
11 [label="Function call: R|java/lang/Exception.Exception|()"];
12 [label="Throw: throw R|java/lang/Exception.Exception|()"];
13 [label="Stub" style="filled" fillcolor=gray];
14 [label="Exit ||"];
}
15 [label="Access variable R|<local>/a|"];
16 [label="Function call: R|<local>/a|.R|/A.foo|()"];
17 [label="Exit function test_1" style="filled" fillcolor=red];
} }
2 -> {3};
3 -> {4};
4 -> {5}; 4 -> {5};
5 -> {6}; 5 -> {6};
6 -> {7}; 6 -> {7};
7 -> {12 8}; 7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {14 10};
10 -> {15}; 10 -> {11};
10 -> {11} [style=dotted]; 11 -> {12};
11 -> {12} [style=dotted]; 12 -> {17};
12 -> {13}; 12 -> {13} [style=dotted];
13 -> {14}; 13 -> {14} [style=dotted];
14 -> {15}; 14 -> {15};
15 -> {16};
16 -> {17};
subgraph cluster_3 { subgraph cluster_4 {
color=red color=red
16 [label="Enter function teat_2" style="filled" fillcolor=red]; 18 [label="Enter function teat_2" style="filled" fillcolor=red];
subgraph cluster_4 { subgraph cluster_5 {
color=blue color=blue
17 [label="Enter &&"]; 19 [label="Enter &&"];
18 [label="Access variable R|<local>/a|"]; 20 [label="Access variable R|<local>/a|"];
19 [label="Const: Null(null)"]; 21 [label="Const: Null(null)"];
20 [label="Operator =="]; 22 [label="Operator =="];
21 [label="Exit left part of &&"]; 23 [label="Exit left part of &&"];
22 [label="Enter right part of &&"]; 24 [label="Enter right part of &&"];
23 [label="Function call: R|java/lang/Exception.Exception|()"]; 25 [label="Function call: R|java/lang/Exception.Exception|()"];
24 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 26 [label="Throw: throw R|java/lang/Exception.Exception|()"];
25 [label="Stub" style="filled" fillcolor=gray]; 27 [label="Stub" style="filled" fillcolor=gray];
26 [label="Exit &&"]; 28 [label="Exit &&"];
} }
27 [label="Access variable R|<local>/a|"]; 29 [label="Access variable R|<local>/a|"];
28 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 30 [label="Function call: R|<local>/a|.R|/A.foo|()"];
29 [label="Exit function teat_2" style="filled" fillcolor=red]; 31 [label="Exit function teat_2" style="filled" fillcolor=red];
} }
16 -> {17};
17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {26 22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {28 24};
24 -> {29}; 24 -> {25};
24 -> {25} [style=dotted]; 25 -> {26};
25 -> {26} [style=dotted]; 26 -> {31};
26 -> {27}; 26 -> {27} [style=dotted];
27 -> {28}; 27 -> {28} [style=dotted];
28 -> {29}; 28 -> {29};
29 -> {30};
30 -> {31};
subgraph cluster_5 { subgraph cluster_6 {
color=red color=red
30 [label="Enter function test_3" style="filled" fillcolor=red]; 32 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_6 { subgraph cluster_7 {
color=blue color=blue
31 [label="Enter when"]; 33 [label="Enter when"];
subgraph cluster_7 { subgraph cluster_8 {
color=blue color=blue
32 [label="Enter when branch condition "]; 34 [label="Enter when branch condition "];
subgraph cluster_8 { subgraph cluster_9 {
color=blue color=blue
33 [label="Enter ||"]; 35 [label="Enter ||"];
34 [label="Access variable R|<local>/a|"]; 36 [label="Access variable R|<local>/a|"];
35 [label="Const: Null(null)"]; 37 [label="Const: Null(null)"];
36 [label="Operator !="]; 38 [label="Operator !="];
37 [label="Exit left part of ||"]; 39 [label="Exit left part of ||"];
38 [label="Enter right part of ||"]; 40 [label="Enter right part of ||"];
39 [label="Function call: R|java/lang/Exception.Exception|()"]; 41 [label="Function call: R|java/lang/Exception.Exception|()"];
40 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 42 [label="Throw: throw R|java/lang/Exception.Exception|()"];
41 [label="Stub" style="filled" fillcolor=gray]; 43 [label="Stub" style="filled" fillcolor=gray];
42 [label="Exit ||"]; 44 [label="Exit ||"];
} }
43 [label="Exit when branch condition"]; 45 [label="Exit when branch condition"];
} }
44 [label="Synthetic else branch"]; 46 [label="Synthetic else branch"];
45 [label="Enter when branch result"]; 47 [label="Enter when branch result"];
subgraph cluster_9 { subgraph cluster_10 {
color=blue color=blue
46 [label="Enter block"]; 48 [label="Enter block"];
47 [label="Access variable R|<local>/a|"]; 49 [label="Access variable R|<local>/a|"];
48 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 50 [label="Function call: R|<local>/a|.R|/A.foo|()"];
49 [label="Exit block"]; 51 [label="Exit block"];
} }
50 [label="Exit when branch result"]; 52 [label="Exit when branch result"];
51 [label="Exit when"]; 53 [label="Exit when"];
} }
52 [label="Access variable R|<local>/a|"]; 54 [label="Access variable R|<local>/a|"];
53 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 55 [label="Function call: R|<local>/a|.R|/A.foo|()"];
54 [label="Exit function test_3" style="filled" fillcolor=red]; 56 [label="Exit function test_3" style="filled" fillcolor=red];
} }
30 -> {31};
31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {36}; 35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {42 38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {44 40};
40 -> {54}; 40 -> {41};
40 -> {41} [style=dotted]; 41 -> {42};
41 -> {42} [style=dotted]; 42 -> {56};
42 -> {43}; 42 -> {43} [style=dotted];
43 -> {45 44}; 43 -> {44} [style=dotted];
44 -> {51}; 44 -> {45};
45 -> {46}; 45 -> {47 46};
46 -> {47}; 46 -> {53};
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {49};
49 -> {50}; 49 -> {50};
@@ -149,66 +155,66 @@ digraph jumpFromRhsOfOperator_kt {
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {54};
54 -> {55};
55 -> {56};
subgraph cluster_10 { subgraph cluster_11 {
color=red color=red
55 [label="Enter function test_4" style="filled" fillcolor=red]; 57 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_11 { subgraph cluster_12 {
color=blue color=blue
56 [label="Enter when"]; 58 [label="Enter when"];
subgraph cluster_12 { subgraph cluster_13 {
color=blue color=blue
57 [label="Enter when branch condition "]; 59 [label="Enter when branch condition "];
subgraph cluster_13 { subgraph cluster_14 {
color=blue color=blue
58 [label="Enter &&"]; 60 [label="Enter &&"];
59 [label="Access variable R|<local>/a|"]; 61 [label="Access variable R|<local>/a|"];
60 [label="Const: Null(null)"]; 62 [label="Const: Null(null)"];
61 [label="Operator =="]; 63 [label="Operator =="];
62 [label="Exit left part of &&"]; 64 [label="Exit left part of &&"];
63 [label="Enter right part of &&"]; 65 [label="Enter right part of &&"];
64 [label="Function call: R|java/lang/Exception.Exception|()"]; 66 [label="Function call: R|java/lang/Exception.Exception|()"];
65 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 67 [label="Throw: throw R|java/lang/Exception.Exception|()"];
66 [label="Stub" style="filled" fillcolor=gray]; 68 [label="Stub" style="filled" fillcolor=gray];
67 [label="Exit &&"]; 69 [label="Exit &&"];
} }
68 [label="Exit when branch condition"]; 70 [label="Exit when branch condition"];
} }
69 [label="Synthetic else branch"]; 71 [label="Synthetic else branch"];
70 [label="Enter when branch result"]; 72 [label="Enter when branch result"];
subgraph cluster_14 { subgraph cluster_15 {
color=blue color=blue
71 [label="Enter block"]; 73 [label="Enter block"];
72 [label="Access variable R|<local>/a|"]; 74 [label="Access variable R|<local>/a|"];
73 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 75 [label="Function call: R|<local>/a|.R|/A.foo|()"];
74 [label="Exit block"]; 76 [label="Exit block"];
} }
75 [label="Exit when branch result"]; 77 [label="Exit when branch result"];
76 [label="Exit when"]; 78 [label="Exit when"];
} }
77 [label="Access variable R|<local>/a|"]; 79 [label="Access variable R|<local>/a|"];
78 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 80 [label="Function call: R|<local>/a|.R|/A.foo|()"];
79 [label="Exit function test_4" style="filled" fillcolor=red]; 81 [label="Exit function test_4" style="filled" fillcolor=red];
} }
55 -> {56};
56 -> {57};
57 -> {58}; 57 -> {58};
58 -> {59}; 58 -> {59};
59 -> {60}; 59 -> {60};
60 -> {61}; 60 -> {61};
61 -> {62}; 61 -> {62};
62 -> {67 63}; 62 -> {63};
63 -> {64}; 63 -> {64};
64 -> {65}; 64 -> {69 65};
65 -> {79}; 65 -> {66};
65 -> {66} [style=dotted]; 66 -> {67};
66 -> {67} [style=dotted]; 67 -> {81};
67 -> {68}; 67 -> {68} [style=dotted];
68 -> {70 69}; 68 -> {69} [style=dotted];
69 -> {76}; 69 -> {70};
70 -> {71}; 70 -> {72 71};
71 -> {72}; 71 -> {78};
72 -> {73}; 72 -> {73};
73 -> {74}; 73 -> {74};
74 -> {75}; 74 -> {75};
@@ -216,138 +222,138 @@ digraph jumpFromRhsOfOperator_kt {
76 -> {77}; 76 -> {77};
77 -> {78}; 77 -> {78};
78 -> {79}; 78 -> {79};
79 -> {80};
80 -> {81};
subgraph cluster_15 { subgraph cluster_16 {
color=red color=red
80 [label="Enter function test_5" style="filled" fillcolor=red]; 82 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_16 { subgraph cluster_17 {
color=blue color=blue
81 [label="Enter ||"]; 83 [label="Enter ||"];
82 [label="Access variable R|<local>/a|"]; 84 [label="Access variable R|<local>/a|"];
83 [label="Const: Null(null)"]; 85 [label="Const: Null(null)"];
84 [label="Operator =="]; 86 [label="Operator =="];
85 [label="Exit left part of ||"]; 87 [label="Exit left part of ||"];
86 [label="Enter right part of ||"]; 88 [label="Enter right part of ||"];
87 [label="Function call: R|java/lang/Exception.Exception|()"]; 89 [label="Function call: R|java/lang/Exception.Exception|()"];
88 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 90 [label="Throw: throw R|java/lang/Exception.Exception|()"];
89 [label="Stub" style="filled" fillcolor=gray]; 91 [label="Stub" style="filled" fillcolor=gray];
90 [label="Exit ||"]; 92 [label="Exit ||"];
} }
91 [label="Access variable R|<local>/a|"]; 93 [label="Access variable R|<local>/a|"];
92 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"]; 94 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
93 [label="Exit function test_5" style="filled" fillcolor=red]; 95 [label="Exit function test_5" style="filled" fillcolor=red];
} }
80 -> {81};
81 -> {82};
82 -> {83}; 82 -> {83};
83 -> {84}; 83 -> {84};
84 -> {85}; 84 -> {85};
85 -> {90 86}; 85 -> {86};
86 -> {87}; 86 -> {87};
87 -> {88}; 87 -> {92 88};
88 -> {93}; 88 -> {89};
88 -> {89} [style=dotted]; 89 -> {90};
89 -> {90} [style=dotted]; 90 -> {95};
90 -> {91}; 90 -> {91} [style=dotted];
91 -> {92}; 91 -> {92} [style=dotted];
92 -> {93}; 92 -> {93};
93 -> {94};
94 -> {95};
subgraph cluster_17 { subgraph cluster_18 {
color=red color=red
94 [label="Enter function teat_6" style="filled" fillcolor=red]; 96 [label="Enter function teat_6" style="filled" fillcolor=red];
subgraph cluster_18 { subgraph cluster_19 {
color=blue color=blue
95 [label="Enter &&"]; 97 [label="Enter &&"];
96 [label="Access variable R|<local>/a|"]; 98 [label="Access variable R|<local>/a|"];
97 [label="Const: Null(null)"]; 99 [label="Const: Null(null)"];
98 [label="Operator !="]; 100 [label="Operator !="];
99 [label="Exit left part of &&"]; 101 [label="Exit left part of &&"];
100 [label="Enter right part of &&"]; 102 [label="Enter right part of &&"];
101 [label="Function call: R|java/lang/Exception.Exception|()"]; 103 [label="Function call: R|java/lang/Exception.Exception|()"];
102 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 104 [label="Throw: throw R|java/lang/Exception.Exception|()"];
103 [label="Stub" style="filled" fillcolor=gray]; 105 [label="Stub" style="filled" fillcolor=gray];
104 [label="Exit &&"]; 106 [label="Exit &&"];
} }
105 [label="Access variable R|<local>/a|"]; 107 [label="Access variable R|<local>/a|"];
106 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"]; 108 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
107 [label="Exit function teat_6" style="filled" fillcolor=red]; 109 [label="Exit function teat_6" style="filled" fillcolor=red];
} }
94 -> {95};
95 -> {96};
96 -> {97}; 96 -> {97};
97 -> {98}; 97 -> {98};
98 -> {99}; 98 -> {99};
99 -> {104 100}; 99 -> {100};
100 -> {101}; 100 -> {101};
101 -> {102}; 101 -> {106 102};
102 -> {107}; 102 -> {103};
102 -> {103} [style=dotted]; 103 -> {104};
103 -> {104} [style=dotted]; 104 -> {109};
104 -> {105}; 104 -> {105} [style=dotted];
105 -> {106}; 105 -> {106} [style=dotted];
106 -> {107}; 106 -> {107};
107 -> {108};
108 -> {109};
subgraph cluster_19 { subgraph cluster_20 {
color=red color=red
108 [label="Enter function test_7" style="filled" fillcolor=red]; 110 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_20 { subgraph cluster_21 {
color=blue color=blue
109 [label="Enter when"]; 111 [label="Enter when"];
subgraph cluster_21 { subgraph cluster_22 {
color=blue color=blue
110 [label="Enter when branch condition "]; 112 [label="Enter when branch condition "];
subgraph cluster_22 { subgraph cluster_23 {
color=blue color=blue
111 [label="Enter ||"]; 113 [label="Enter ||"];
112 [label="Access variable R|<local>/a|"]; 114 [label="Access variable R|<local>/a|"];
113 [label="Const: Null(null)"]; 115 [label="Const: Null(null)"];
114 [label="Operator =="]; 116 [label="Operator =="];
115 [label="Exit left part of ||"]; 117 [label="Exit left part of ||"];
116 [label="Enter right part of ||"]; 118 [label="Enter right part of ||"];
117 [label="Function call: R|java/lang/Exception.Exception|()"]; 119 [label="Function call: R|java/lang/Exception.Exception|()"];
118 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 120 [label="Throw: throw R|java/lang/Exception.Exception|()"];
119 [label="Stub" style="filled" fillcolor=gray]; 121 [label="Stub" style="filled" fillcolor=gray];
120 [label="Exit ||"]; 122 [label="Exit ||"];
} }
121 [label="Exit when branch condition"]; 123 [label="Exit when branch condition"];
} }
122 [label="Synthetic else branch"]; 124 [label="Synthetic else branch"];
123 [label="Enter when branch result"]; 125 [label="Enter when branch result"];
subgraph cluster_23 { subgraph cluster_24 {
color=blue color=blue
124 [label="Enter block"]; 126 [label="Enter block"];
125 [label="Access variable R|<local>/a|"]; 127 [label="Access variable R|<local>/a|"];
126 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"]; 128 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
127 [label="Exit block"]; 129 [label="Exit block"];
} }
128 [label="Exit when branch result"]; 130 [label="Exit when branch result"];
129 [label="Exit when"]; 131 [label="Exit when"];
} }
130 [label="Access variable R|<local>/a|"]; 132 [label="Access variable R|<local>/a|"];
131 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"]; 133 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
132 [label="Exit function test_7" style="filled" fillcolor=red]; 134 [label="Exit function test_7" style="filled" fillcolor=red];
} }
108 -> {109};
109 -> {110};
110 -> {111}; 110 -> {111};
111 -> {112}; 111 -> {112};
112 -> {113}; 112 -> {113};
113 -> {114}; 113 -> {114};
114 -> {115}; 114 -> {115};
115 -> {120 116}; 115 -> {116};
116 -> {117}; 116 -> {117};
117 -> {118}; 117 -> {122 118};
118 -> {132}; 118 -> {119};
118 -> {119} [style=dotted]; 119 -> {120};
119 -> {120} [style=dotted]; 120 -> {134};
120 -> {121}; 120 -> {121} [style=dotted];
121 -> {123 122}; 121 -> {122} [style=dotted];
122 -> {129}; 122 -> {123};
123 -> {124}; 123 -> {125 124};
124 -> {125}; 124 -> {131};
125 -> {126}; 125 -> {126};
126 -> {127}; 126 -> {127};
127 -> {128}; 127 -> {128};
@@ -355,66 +361,66 @@ digraph jumpFromRhsOfOperator_kt {
129 -> {130}; 129 -> {130};
130 -> {131}; 130 -> {131};
131 -> {132}; 131 -> {132};
132 -> {133};
133 -> {134};
subgraph cluster_24 { subgraph cluster_25 {
color=red color=red
133 [label="Enter function test_8" style="filled" fillcolor=red]; 135 [label="Enter function test_8" style="filled" fillcolor=red];
subgraph cluster_25 { subgraph cluster_26 {
color=blue color=blue
134 [label="Enter when"]; 136 [label="Enter when"];
subgraph cluster_26 { subgraph cluster_27 {
color=blue color=blue
135 [label="Enter when branch condition "]; 137 [label="Enter when branch condition "];
subgraph cluster_27 { subgraph cluster_28 {
color=blue color=blue
136 [label="Enter &&"]; 138 [label="Enter &&"];
137 [label="Access variable R|<local>/a|"]; 139 [label="Access variable R|<local>/a|"];
138 [label="Const: Null(null)"]; 140 [label="Const: Null(null)"];
139 [label="Operator !="]; 141 [label="Operator !="];
140 [label="Exit left part of &&"]; 142 [label="Exit left part of &&"];
141 [label="Enter right part of &&"]; 143 [label="Enter right part of &&"];
142 [label="Function call: R|java/lang/Exception.Exception|()"]; 144 [label="Function call: R|java/lang/Exception.Exception|()"];
143 [label="Throw: throw R|java/lang/Exception.Exception|()"]; 145 [label="Throw: throw R|java/lang/Exception.Exception|()"];
144 [label="Stub" style="filled" fillcolor=gray]; 146 [label="Stub" style="filled" fillcolor=gray];
145 [label="Exit &&"]; 147 [label="Exit &&"];
} }
146 [label="Exit when branch condition"]; 148 [label="Exit when branch condition"];
} }
147 [label="Synthetic else branch"]; 149 [label="Synthetic else branch"];
148 [label="Enter when branch result"]; 150 [label="Enter when branch result"];
subgraph cluster_28 { subgraph cluster_29 {
color=blue color=blue
149 [label="Enter block"]; 151 [label="Enter block"];
150 [label="Access variable R|<local>/a|"]; 152 [label="Access variable R|<local>/a|"];
151 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"]; 153 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
152 [label="Exit block"]; 154 [label="Exit block"];
} }
153 [label="Exit when branch result"]; 155 [label="Exit when branch result"];
154 [label="Exit when"]; 156 [label="Exit when"];
} }
155 [label="Access variable R|<local>/a|"]; 157 [label="Access variable R|<local>/a|"];
156 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"]; 158 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
157 [label="Exit function test_8" style="filled" fillcolor=red]; 159 [label="Exit function test_8" style="filled" fillcolor=red];
} }
133 -> {134};
134 -> {135};
135 -> {136}; 135 -> {136};
136 -> {137}; 136 -> {137};
137 -> {138}; 137 -> {138};
138 -> {139}; 138 -> {139};
139 -> {140}; 139 -> {140};
140 -> {145 141}; 140 -> {141};
141 -> {142}; 141 -> {142};
142 -> {143}; 142 -> {147 143};
143 -> {157}; 143 -> {144};
143 -> {144} [style=dotted]; 144 -> {145};
144 -> {145} [style=dotted]; 145 -> {159};
145 -> {146}; 145 -> {146} [style=dotted];
146 -> {148 147}; 146 -> {147} [style=dotted];
147 -> {154}; 147 -> {148};
148 -> {149}; 148 -> {150 149};
149 -> {150}; 149 -> {156};
150 -> {151}; 150 -> {151};
151 -> {152}; 151 -> {152};
152 -> {153}; 152 -> {153};
@@ -422,5 +428,7 @@ digraph jumpFromRhsOfOperator_kt {
154 -> {155}; 154 -> {155};
155 -> {156}; 155 -> {156};
156 -> {157}; 156 -> {157};
157 -> {158};
158 -> {159};
} }
@@ -13,183 +13,195 @@ digraph boundSmartcasts_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function bar" style="filled" fillcolor=red]; 2 [label="Enter class A" style="filled" fillcolor=red];
3 [label="Exit function bar" style="filled" fillcolor=red]; 3 [label="Exit class A" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3} [color=green];
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
4 [label="Enter function test_1" style="filled" fillcolor=red]; 4 [label="Enter function bar" style="filled" fillcolor=red];
5 [label="Access variable R|<local>/x|"]; 5 [label="Exit function bar" style="filled" fillcolor=red];
6 [label="Variable declaration: lval y: R|kotlin/Any|"];
subgraph cluster_3 {
color=blue
7 [label="Enter when"];
subgraph cluster_4 {
color=blue
8 [label="Enter when branch condition "];
9 [label="Access variable R|<local>/x|"];
10 [label="Type operator: (R|<local>/x| is R|A|)"];
11 [label="Exit when branch condition"];
}
12 [label="Synthetic else branch"];
13 [label="Enter when branch result"];
subgraph cluster_5 {
color=blue
14 [label="Enter block"];
15 [label="Access variable R|<local>/x|"];
16 [label="Function call: R|<local>/x|.R|/A.foo|()"];
17 [label="Access variable R|<local>/y|"];
18 [label="Function call: R|<local>/y|.R|/A.foo|()"];
19 [label="Exit block"];
}
20 [label="Exit when branch result"];
21 [label="Exit when"];
}
22 [label="Exit function test_1" style="filled" fillcolor=red];
} }
4 -> {5}; 4 -> {5};
5 -> {6};
6 -> {7}; subgraph cluster_3 {
7 -> {8}; color=red
6 [label="Enter class B" style="filled" fillcolor=red];
7 [label="Exit class B" style="filled" fillcolor=red];
}
6 -> {7} [color=green];
subgraph cluster_4 {
color=red
8 [label="Enter function test_1" style="filled" fillcolor=red];
9 [label="Access variable R|<local>/x|"];
10 [label="Variable declaration: lval y: R|kotlin/Any|"];
subgraph cluster_5 {
color=blue
11 [label="Enter when"];
subgraph cluster_6 {
color=blue
12 [label="Enter when branch condition "];
13 [label="Access variable R|<local>/x|"];
14 [label="Type operator: (R|<local>/x| is R|A|)"];
15 [label="Exit when branch condition"];
}
16 [label="Synthetic else branch"];
17 [label="Enter when branch result"];
subgraph cluster_7 {
color=blue
18 [label="Enter block"];
19 [label="Access variable R|<local>/x|"];
20 [label="Function call: R|<local>/x|.R|/A.foo|()"];
21 [label="Access variable R|<local>/y|"];
22 [label="Function call: R|<local>/y|.R|/A.foo|()"];
23 [label="Exit block"];
}
24 [label="Exit when branch result"];
25 [label="Exit when"];
}
26 [label="Exit function test_1" style="filled" fillcolor=red];
}
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {13 12}; 11 -> {12};
12 -> {21}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {17 16};
16 -> {17}; 16 -> {25};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23};
subgraph cluster_6 {
color=red
23 [label="Enter function test_2" style="filled" fillcolor=red];
24 [label="Access variable R|<local>/x|"];
25 [label="Variable declaration: lval y: R|kotlin/Any|"];
subgraph cluster_7 {
color=blue
26 [label="Enter when"];
subgraph cluster_8 {
color=blue
27 [label="Enter when branch condition "];
28 [label="Access variable R|<local>/y|"];
29 [label="Type operator: (R|<local>/y| is R|A|)"];
30 [label="Exit when branch condition"];
}
31 [label="Synthetic else branch"];
32 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
33 [label="Enter block"];
34 [label="Access variable R|<local>/x|"];
35 [label="Function call: R|<local>/x|.R|/A.foo|()"];
36 [label="Access variable R|<local>/y|"];
37 [label="Function call: R|<local>/y|.R|/A.foo|()"];
38 [label="Exit block"];
}
39 [label="Exit when branch result"];
40 [label="Exit when"];
}
41 [label="Exit function test_2" style="filled" fillcolor=red];
}
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27};
subgraph cluster_8 {
color=red
27 [label="Enter function test_2" style="filled" fillcolor=red];
28 [label="Access variable R|<local>/x|"];
29 [label="Variable declaration: lval y: R|kotlin/Any|"];
subgraph cluster_9 {
color=blue
30 [label="Enter when"];
subgraph cluster_10 {
color=blue
31 [label="Enter when branch condition "];
32 [label="Access variable R|<local>/y|"];
33 [label="Type operator: (R|<local>/y| is R|A|)"];
34 [label="Exit when branch condition"];
}
35 [label="Synthetic else branch"];
36 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
37 [label="Enter block"];
38 [label="Access variable R|<local>/x|"];
39 [label="Function call: R|<local>/x|.R|/A.foo|()"];
40 [label="Access variable R|<local>/y|"];
41 [label="Function call: R|<local>/y|.R|/A.foo|()"];
42 [label="Exit block"];
}
43 [label="Exit when branch result"];
44 [label="Exit when"];
}
45 [label="Exit function test_2" style="filled" fillcolor=red];
}
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {32 31}; 30 -> {31};
31 -> {40}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {36 35};
35 -> {36}; 35 -> {44};
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42};
subgraph cluster_10 {
color=red
42 [label="Enter function test_3" style="filled" fillcolor=red];
43 [label="Access variable R|<local>/x|"];
44 [label="Variable declaration: lvar z: R|kotlin/Any|"];
subgraph cluster_11 {
color=blue
45 [label="Enter when"];
subgraph cluster_12 {
color=blue
46 [label="Enter when branch condition "];
47 [label="Access variable R|<local>/x|"];
48 [label="Type operator: (R|<local>/x| is R|A|)"];
49 [label="Exit when branch condition"];
}
50 [label="Synthetic else branch"];
51 [label="Enter when branch result"];
subgraph cluster_13 {
color=blue
52 [label="Enter block"];
53 [label="Access variable R|<local>/z|"];
54 [label="Function call: R|<local>/z|.R|/A.foo|()"];
55 [label="Exit block"];
}
56 [label="Exit when branch result"];
57 [label="Exit when"];
}
58 [label="Access variable R|<local>/y|"];
59 [label="Assignmenet: R|<local>/z|"];
subgraph cluster_14 {
color=blue
60 [label="Enter when"];
subgraph cluster_15 {
color=blue
61 [label="Enter when branch condition "];
62 [label="Access variable R|<local>/y|"];
63 [label="Type operator: (R|<local>/y| is R|B|)"];
64 [label="Exit when branch condition"];
}
65 [label="Synthetic else branch"];
66 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
67 [label="Enter block"];
68 [label="Access variable R|<local>/z|"];
69 [label="Function call: R|<local>/z|.<Unresolved name: foo>#()"];
70 [label="Access variable R|<local>/z|"];
71 [label="Function call: R|<local>/z|.R|/B.bar|()"];
72 [label="Exit block"];
}
73 [label="Exit when branch result"];
74 [label="Exit when"];
}
75 [label="Exit function test_3" style="filled" fillcolor=red];
}
42 -> {43}; 42 -> {43};
43 -> {44}; 43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {46};
subgraph cluster_12 {
color=red
46 [label="Enter function test_3" style="filled" fillcolor=red];
47 [label="Access variable R|<local>/x|"];
48 [label="Variable declaration: lvar z: R|kotlin/Any|"];
subgraph cluster_13 {
color=blue
49 [label="Enter when"];
subgraph cluster_14 {
color=blue
50 [label="Enter when branch condition "];
51 [label="Access variable R|<local>/x|"];
52 [label="Type operator: (R|<local>/x| is R|A|)"];
53 [label="Exit when branch condition"];
}
54 [label="Synthetic else branch"];
55 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
56 [label="Enter block"];
57 [label="Access variable R|<local>/z|"];
58 [label="Function call: R|<local>/z|.R|/A.foo|()"];
59 [label="Exit block"];
}
60 [label="Exit when branch result"];
61 [label="Exit when"];
}
62 [label="Access variable R|<local>/y|"];
63 [label="Assignmenet: R|<local>/z|"];
subgraph cluster_16 {
color=blue
64 [label="Enter when"];
subgraph cluster_17 {
color=blue
65 [label="Enter when branch condition "];
66 [label="Access variable R|<local>/y|"];
67 [label="Type operator: (R|<local>/y| is R|B|)"];
68 [label="Exit when branch condition"];
}
69 [label="Synthetic else branch"];
70 [label="Enter when branch result"];
subgraph cluster_18 {
color=blue
71 [label="Enter block"];
72 [label="Access variable R|<local>/z|"];
73 [label="Function call: R|<local>/z|.<Unresolved name: foo>#()"];
74 [label="Access variable R|<local>/z|"];
75 [label="Function call: R|<local>/z|.R|/B.bar|()"];
76 [label="Exit block"];
}
77 [label="Exit when branch result"];
78 [label="Exit when"];
}
79 [label="Exit function test_3" style="filled" fillcolor=red];
}
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {49};
49 -> {51 50}; 49 -> {50};
50 -> {57}; 50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {55 54};
54 -> {55}; 54 -> {61};
55 -> {56}; 55 -> {56};
56 -> {57}; 56 -> {57};
57 -> {58}; 57 -> {58};
@@ -199,62 +211,62 @@ digraph boundSmartcasts_kt {
61 -> {62}; 61 -> {62};
62 -> {63}; 62 -> {63};
63 -> {64}; 63 -> {64};
64 -> {66 65}; 64 -> {65};
65 -> {74}; 65 -> {66};
66 -> {67}; 66 -> {67};
67 -> {68}; 67 -> {68};
68 -> {69}; 68 -> {70 69};
69 -> {70}; 69 -> {78};
70 -> {71}; 70 -> {71};
71 -> {72}; 71 -> {72};
72 -> {73}; 72 -> {73};
73 -> {74}; 73 -> {74};
74 -> {75}; 74 -> {75};
75 -> {76};
subgraph cluster_17 {
color=red
76 [label="Enter function test_4" style="filled" fillcolor=red];
77 [label="Const: Int(1)"];
78 [label="Variable declaration: lvar x: R|kotlin/Any|"];
79 [label="Access variable R|<local>/x|"];
80 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
81 [label="Access variable R|<local>/x|"];
82 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
83 [label="Access variable R|<local>/y|"];
84 [label="Assignmenet: R|<local>/x|"];
85 [label="Access variable R|<local>/x|"];
86 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
subgraph cluster_18 {
color=blue
87 [label="Enter when"];
subgraph cluster_19 {
color=blue
88 [label="Enter when branch condition "];
89 [label="Access variable R|<local>/y|"];
90 [label="Type operator: (R|<local>/y| is R|A|)"];
91 [label="Exit when branch condition"];
}
92 [label="Synthetic else branch"];
93 [label="Enter when branch result"];
subgraph cluster_20 {
color=blue
94 [label="Enter block"];
95 [label="Access variable R|<local>/x|"];
96 [label="Function call: R|<local>/x|.R|/A.foo|()"];
97 [label="Access variable R|<local>/y|"];
98 [label="Function call: R|<local>/y|.R|/A.foo|()"];
99 [label="Exit block"];
}
100 [label="Exit when branch result"];
101 [label="Exit when"];
}
102 [label="Exit function test_4" style="filled" fillcolor=red];
}
76 -> {77}; 76 -> {77};
77 -> {78}; 77 -> {78};
78 -> {79}; 78 -> {79};
79 -> {80};
subgraph cluster_19 {
color=red
80 [label="Enter function test_4" style="filled" fillcolor=red];
81 [label="Const: Int(1)"];
82 [label="Variable declaration: lvar x: R|kotlin/Any|"];
83 [label="Access variable R|<local>/x|"];
84 [label="Type operator: (R|<local>/x| as R|kotlin/Int|)"];
85 [label="Access variable R|<local>/x|"];
86 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
87 [label="Access variable R|<local>/y|"];
88 [label="Assignmenet: R|<local>/x|"];
89 [label="Access variable R|<local>/x|"];
90 [label="Function call: R|<local>/x|.<Unresolved name: inc>#()"];
subgraph cluster_20 {
color=blue
91 [label="Enter when"];
subgraph cluster_21 {
color=blue
92 [label="Enter when branch condition "];
93 [label="Access variable R|<local>/y|"];
94 [label="Type operator: (R|<local>/y| is R|A|)"];
95 [label="Exit when branch condition"];
}
96 [label="Synthetic else branch"];
97 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
98 [label="Enter block"];
99 [label="Access variable R|<local>/x|"];
100 [label="Function call: R|<local>/x|.R|/A.foo|()"];
101 [label="Access variable R|<local>/y|"];
102 [label="Function call: R|<local>/y|.R|/A.foo|()"];
103 [label="Exit block"];
}
104 [label="Exit when branch result"];
105 [label="Exit when"];
}
106 [label="Exit function test_4" style="filled" fillcolor=red];
}
80 -> {81}; 80 -> {81};
81 -> {82}; 81 -> {82};
82 -> {83}; 82 -> {83};
@@ -266,167 +278,172 @@ digraph boundSmartcasts_kt {
88 -> {89}; 88 -> {89};
89 -> {90}; 89 -> {90};
90 -> {91}; 90 -> {91};
91 -> {93 92}; 91 -> {92};
92 -> {101}; 92 -> {93};
93 -> {94}; 93 -> {94};
94 -> {95}; 94 -> {95};
95 -> {96}; 95 -> {97 96};
96 -> {97}; 96 -> {105};
97 -> {98}; 97 -> {98};
98 -> {99}; 98 -> {99};
99 -> {100}; 99 -> {100};
100 -> {101}; 100 -> {101};
101 -> {102}; 101 -> {102};
102 -> {103};
subgraph cluster_21 {
color=red
103 [label="Enter function <init>" style="filled" fillcolor=red];
104 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
105 [label="Exit function <init>" style="filled" fillcolor=red];
}
103 -> {104}; 103 -> {104};
104 -> {105}; 104 -> {105};
105 -> {106};
subgraph cluster_22 {
color=red
106 [label="Enter function getter" style="filled" fillcolor=red];
107 [label="Exit function getter" style="filled" fillcolor=red];
}
106 -> {107};
subgraph cluster_23 { subgraph cluster_23 {
color=red color=red
108 [label="Enter property" style="filled" fillcolor=red]; 107 [label="Enter function <init>" style="filled" fillcolor=red];
109 [label="Access variable R|<local>/any|"]; 108 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
110 [label="Exit property" style="filled" fillcolor=red]; 109 [label="Exit function <init>" style="filled" fillcolor=red];
} }
107 -> {108};
108 -> {109}; 108 -> {109};
109 -> {110};
subgraph cluster_24 { subgraph cluster_24 {
color=red color=red
111 [label="Enter function baz" style="filled" fillcolor=red]; 110 [label="Enter function getter" style="filled" fillcolor=red];
112 [label="Exit function baz" style="filled" fillcolor=red]; 111 [label="Exit function getter" style="filled" fillcolor=red];
} }
111 -> {112}; 110 -> {111};
subgraph cluster_25 { subgraph cluster_25 {
color=red color=red
113 [label="Enter function test_5" style="filled" fillcolor=red]; 112 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_26 { 113 [label="Access variable R|<local>/any|"];
color=blue 114 [label="Exit property" style="filled" fillcolor=red];
114 [label="Enter when"];
115 [label="Access variable R|<local>/d|"];
116 [label="Access variable R|/D.any|"];
117 [label="Variable declaration: lval <elvis>: R|kotlin/Any?|"];
subgraph cluster_27 {
color=blue
118 [label="Enter when branch condition "];
119 [label="Const: Null(null)"];
120 [label="Operator =="];
121 [label="Exit when branch condition"];
}
subgraph cluster_28 {
color=blue
122 [label="Enter when branch condition else"];
123 [label="Exit when branch condition"];
}
124 [label="Enter when branch result"];
subgraph cluster_29 {
color=blue
125 [label="Enter block"];
126 [label="Access variable R|<local>/<elvis>|"];
127 [label="Exit block"];
}
128 [label="Exit when branch result"];
129 [label="Enter when branch result"];
subgraph cluster_30 {
color=blue
130 [label="Enter block"];
131 [label="Jump: ^test_5 Unit"];
132 [label="Stub" style="filled" fillcolor=gray];
133 [label="Exit block" style="filled" fillcolor=gray];
}
134 [label="Exit when branch result" style="filled" fillcolor=gray];
135 [label="Exit when"];
}
136 [label="Variable declaration: lval a: R|kotlin/Any|"];
137 [label="Access variable R|<local>/a|"];
138 [label="Function call: R|<local>/a|.R|/baz|()"];
139 [label="Access variable R|<local>/d|"];
140 [label="Access variable R|/D.any|"];
141 [label="Function call: R|<local>/d|.R|/D.any|.R|/baz|()"];
142 [label="Access variable R|<local>/a|"];
143 [label="Type operator: (R|<local>/a| as R|A|)"];
144 [label="Access variable R|<local>/a|"];
145 [label="Function call: R|<local>/a|.R|/A.foo|()"];
146 [label="Exit function test_5" style="filled" fillcolor=red];
} }
112 -> {113};
113 -> {114}; 113 -> {114};
114 -> {115};
115 -> {116}; subgraph cluster_26 {
116 -> {117}; color=red
115 [label="Enter class D" style="filled" fillcolor=red];
116 [label="Exit class D" style="filled" fillcolor=red];
}
subgraph cluster_27 {
color=red
117 [label="Enter function baz" style="filled" fillcolor=red];
118 [label="Exit function baz" style="filled" fillcolor=red];
}
117 -> {118}; 117 -> {118};
118 -> {119};
subgraph cluster_28 {
color=red
119 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_29 {
color=blue
120 [label="Enter when"];
121 [label="Access variable R|<local>/d|"];
122 [label="Access variable R|/D.any|"];
123 [label="Variable declaration: lval <elvis>: R|kotlin/Any?|"];
subgraph cluster_30 {
color=blue
124 [label="Enter when branch condition "];
125 [label="Const: Null(null)"];
126 [label="Operator =="];
127 [label="Exit when branch condition"];
}
subgraph cluster_31 {
color=blue
128 [label="Enter when branch condition else"];
129 [label="Exit when branch condition"];
}
130 [label="Enter when branch result"];
subgraph cluster_32 {
color=blue
131 [label="Enter block"];
132 [label="Access variable R|<local>/<elvis>|"];
133 [label="Exit block"];
}
134 [label="Exit when branch result"];
135 [label="Enter when branch result"];
subgraph cluster_33 {
color=blue
136 [label="Enter block"];
137 [label="Jump: ^test_5 Unit"];
138 [label="Stub" style="filled" fillcolor=gray];
139 [label="Exit block" style="filled" fillcolor=gray];
}
140 [label="Exit when branch result" style="filled" fillcolor=gray];
141 [label="Exit when"];
}
142 [label="Variable declaration: lval a: R|kotlin/Any|"];
143 [label="Access variable R|<local>/a|"];
144 [label="Function call: R|<local>/a|.R|/baz|()"];
145 [label="Access variable R|<local>/d|"];
146 [label="Access variable R|/D.any|"];
147 [label="Function call: R|<local>/d|.R|/D.any|.R|/baz|()"];
148 [label="Access variable R|<local>/a|"];
149 [label="Type operator: (R|<local>/a| as R|A|)"];
150 [label="Access variable R|<local>/a|"];
151 [label="Function call: R|<local>/a|.R|/A.foo|()"];
152 [label="Exit function test_5" style="filled" fillcolor=red];
}
119 -> {120}; 119 -> {120};
120 -> {121}; 120 -> {121};
121 -> {129 122}; 121 -> {122};
122 -> {123}; 122 -> {123};
123 -> {124}; 123 -> {124};
124 -> {125}; 124 -> {125};
125 -> {126}; 125 -> {126};
126 -> {127}; 126 -> {127};
127 -> {128}; 127 -> {135 128};
128 -> {135}; 128 -> {129};
129 -> {130}; 129 -> {130};
130 -> {131}; 130 -> {131};
131 -> {146}; 131 -> {132};
131 -> {132} [style=dotted]; 132 -> {133};
132 -> {133} [style=dotted]; 133 -> {134};
133 -> {134} [style=dotted]; 134 -> {141};
134 -> {135} [style=dotted];
135 -> {136}; 135 -> {136};
136 -> {137}; 136 -> {137};
137 -> {138}; 137 -> {152};
138 -> {139}; 137 -> {138} [style=dotted];
139 -> {140}; 138 -> {139} [style=dotted];
140 -> {141}; 139 -> {140} [style=dotted];
140 -> {141} [style=dotted];
141 -> {142}; 141 -> {142};
142 -> {143}; 142 -> {143};
143 -> {144}; 143 -> {144};
144 -> {145}; 144 -> {145};
145 -> {146}; 145 -> {146};
146 -> {147};
subgraph cluster_31 {
color=red
147 [label="Enter function test_6" style="filled" fillcolor=red];
148 [label="Access variable R|<local>/d1|"];
149 [label="Access variable R|/D.any|"];
150 [label="Variable declaration: lval a: R|kotlin/Any?|"];
151 [label="Access variable R|<local>/a|"];
152 [label="Type operator: (R|<local>/a| as R|A|)"];
153 [label="Access variable R|<local>/a|"];
154 [label="Function call: R|<local>/a|.R|/A.foo|()"];
155 [label="Access variable R|<local>/d1|"];
156 [label="Access variable R|/D.any|"];
157 [label="Function call: R|<local>/d1|.R|/D.any|.R|/A.foo|()"];
158 [label="Access variable R|<local>/d1|"];
159 [label="Access variable R|/D.any|"];
160 [label="Function call: R|<local>/d1|.R|/D.any|.R|/baz|()"];
161 [label="Exit function test_6" style="filled" fillcolor=red];
}
147 -> {148}; 147 -> {148};
148 -> {149}; 148 -> {149};
149 -> {150}; 149 -> {150};
150 -> {151}; 150 -> {151};
151 -> {152}; 151 -> {152};
152 -> {153};
subgraph cluster_34 {
color=red
153 [label="Enter function test_6" style="filled" fillcolor=red];
154 [label="Access variable R|<local>/d1|"];
155 [label="Access variable R|/D.any|"];
156 [label="Variable declaration: lval a: R|kotlin/Any?|"];
157 [label="Access variable R|<local>/a|"];
158 [label="Type operator: (R|<local>/a| as R|A|)"];
159 [label="Access variable R|<local>/a|"];
160 [label="Function call: R|<local>/a|.R|/A.foo|()"];
161 [label="Access variable R|<local>/d1|"];
162 [label="Access variable R|/D.any|"];
163 [label="Function call: R|<local>/d1|.R|/D.any|.R|/A.foo|()"];
164 [label="Access variable R|<local>/d1|"];
165 [label="Access variable R|/D.any|"];
166 [label="Function call: R|<local>/d1|.R|/D.any|.R|/baz|()"];
167 [label="Exit function test_6" style="filled" fillcolor=red];
}
153 -> {154}; 153 -> {154};
154 -> {155}; 154 -> {155};
155 -> {156}; 155 -> {156};
@@ -435,49 +452,55 @@ digraph boundSmartcasts_kt {
158 -> {159}; 158 -> {159};
159 -> {160}; 159 -> {160};
160 -> {161}; 160 -> {161};
161 -> {162};
subgraph cluster_32 {
color=red
162 [label="Enter function test_7" style="filled" fillcolor=red];
163 [label="Access variable R|<local>/d1|"];
164 [label="Enter safe call"];
165 [label="Access variable R|/D.any|"];
166 [label="Exit safe call"];
167 [label="Variable declaration: lval a: R|kotlin/Any?|"];
168 [label="Access variable R|<local>/d2|"];
169 [label="Enter safe call"];
170 [label="Access variable R|/D.any|"];
171 [label="Exit safe call"];
172 [label="Variable declaration: lval b: R|kotlin/Any?|"];
173 [label="Access variable R|<local>/a|"];
174 [label="Type operator: (R|<local>/a| as R|A|)"];
175 [label="Access variable R|<local>/a|"];
176 [label="Function call: R|<local>/a|.R|/A.foo|()"];
177 [label="Access variable R|<local>/b|"];
178 [label="Type operator: (R|<local>/b| as R|B|)"];
179 [label="Access variable R|<local>/b|"];
180 [label="Function call: R|<local>/b|.R|/B.bar|()"];
181 [label="Exit function test_7" style="filled" fillcolor=red];
}
162 -> {163}; 162 -> {163};
163 -> {164 166}; 163 -> {164};
164 -> {165}; 164 -> {165};
165 -> {166}; 165 -> {166};
166 -> {167}; 166 -> {167};
167 -> {168};
168 -> {169 171}; subgraph cluster_35 {
169 -> {170}; color=red
168 [label="Enter function test_7" style="filled" fillcolor=red];
169 [label="Access variable R|<local>/d1|"];
170 [label="Enter safe call"];
171 [label="Access variable R|/D.any|"];
172 [label="Exit safe call"];
173 [label="Variable declaration: lval a: R|kotlin/Any?|"];
174 [label="Access variable R|<local>/d2|"];
175 [label="Enter safe call"];
176 [label="Access variable R|/D.any|"];
177 [label="Exit safe call"];
178 [label="Variable declaration: lval b: R|kotlin/Any?|"];
179 [label="Access variable R|<local>/a|"];
180 [label="Type operator: (R|<local>/a| as R|A|)"];
181 [label="Access variable R|<local>/a|"];
182 [label="Function call: R|<local>/a|.R|/A.foo|()"];
183 [label="Access variable R|<local>/b|"];
184 [label="Type operator: (R|<local>/b| as R|B|)"];
185 [label="Access variable R|<local>/b|"];
186 [label="Function call: R|<local>/b|.R|/B.bar|()"];
187 [label="Exit function test_7" style="filled" fillcolor=red];
}
168 -> {169};
169 -> {170 172};
170 -> {171}; 170 -> {171};
171 -> {172}; 171 -> {172};
172 -> {173}; 172 -> {173};
173 -> {174}; 173 -> {174};
174 -> {175}; 174 -> {175 177};
175 -> {176}; 175 -> {176};
176 -> {177}; 176 -> {177};
177 -> {178}; 177 -> {178};
178 -> {179}; 178 -> {179};
179 -> {180}; 179 -> {180};
180 -> {181}; 180 -> {181};
181 -> {182};
182 -> {183};
183 -> {184};
184 -> {185};
185 -> {186};
186 -> {187};
} }
@@ -15,90 +15,105 @@ digraph functionCallBound_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
3 [label="Enter function <init>" style="filled" fillcolor=red]; 3 [label="Enter class Base" style="filled" fillcolor=red];
4 [label="Delegated constructor call: super<R|Base|>()"]; 4 [label="Exit class Base" style="filled" fillcolor=red];
5 [label="Exit function <init>" style="filled" fillcolor=red];
} }
3 -> {4}; 3 -> {4} [color=green];
4 -> {5};
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
6 [label="Enter function getter" style="filled" fillcolor=red]; 5 [label="Enter function <init>" style="filled" fillcolor=red];
7 [label="Exit function getter" style="filled" fillcolor=red]; 6 [label="Delegated constructor call: super<R|Base|>()"];
7 [label="Exit function <init>" style="filled" fillcolor=red];
} }
5 -> {6};
6 -> {7}; 6 -> {7};
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
8 [label="Enter property" style="filled" fillcolor=red]; 8 [label="Enter function getter" style="filled" fillcolor=red];
9 [label="Access variable R|<local>/data|"]; 9 [label="Exit function getter" style="filled" fillcolor=red];
10 [label="Exit property" style="filled" fillcolor=red];
} }
8 -> {9}; 8 -> {9};
9 -> {10};
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
11 [label="Enter function isOk" style="filled" fillcolor=red]; 10 [label="Enter property" style="filled" fillcolor=red];
12 [label="Const: Boolean(true)"]; 11 [label="Access variable R|<local>/data|"];
13 [label="Jump: ^isOk Boolean(true)"]; 12 [label="Exit property" style="filled" fillcolor=red];
14 [label="Stub" style="filled" fillcolor=gray];
15 [label="Exit function isOk" style="filled" fillcolor=red];
} }
10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13};
13 -> {15};
13 -> {14} [style=dotted];
14 -> {15} [style=dotted];
subgraph cluster_5 { subgraph cluster_5 {
color=red color=red
16 [label="Enter function check" style="filled" fillcolor=red]; 13 [label="Enter class Sub" style="filled" fillcolor=red];
subgraph cluster_6 { 14 [label="Exit class Sub" style="filled" fillcolor=red];
}
subgraph cluster_6 {
color=red
15 [label="Enter function isOk" style="filled" fillcolor=red];
16 [label="Const: Boolean(true)"];
17 [label="Jump: ^isOk Boolean(true)"];
18 [label="Stub" style="filled" fillcolor=gray];
19 [label="Exit function isOk" style="filled" fillcolor=red];
}
15 -> {16};
16 -> {17};
17 -> {19};
17 -> {18} [style=dotted];
18 -> {19} [style=dotted];
subgraph cluster_7 {
color=red
20 [label="Enter function check" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue color=blue
17 [label="Enter when"]; 21 [label="Enter when"];
subgraph cluster_7 {
color=blue
18 [label="Enter when branch condition "];
19 [label="Access variable R|<local>/base|"];
20 [label="Type operator: (R|<local>/base| as? R|Sub|)"];
21 [label="Enter safe call"];
22 [label="Function call: (R|<local>/base| as? R|Sub|)?.R|/isOk|()"];
23 [label="Exit safe call"];
24 [label="Const: Boolean(true)"];
25 [label="Operator =="];
26 [label="Exit when branch condition"];
}
subgraph cluster_8 {
color=blue
27 [label="Enter when branch condition else"];
28 [label="Exit when branch condition"];
}
29 [label="Enter when branch result"];
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
30 [label="Enter block"]; 22 [label="Enter when branch condition "];
31 [label="Access variable R|<local>/base|"]; 23 [label="Access variable R|<local>/base|"];
32 [label="Exit block"]; 24 [label="Type operator: (R|<local>/base| as? R|Sub|)"];
25 [label="Enter safe call"];
26 [label="Function call: (R|<local>/base| as? R|Sub|)?.R|/isOk|()"];
27 [label="Exit safe call"];
28 [label="Const: Boolean(true)"];
29 [label="Operator =="];
30 [label="Exit when branch condition"];
} }
33 [label="Exit when branch result"];
34 [label="Enter when branch result"];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
35 [label="Enter block"]; 31 [label="Enter when branch condition else"];
36 [label="Access variable R|<local>/base|"]; 32 [label="Exit when branch condition"];
37 [label="Access variable R|/Sub.data|"];
38 [label="Exit block"];
} }
39 [label="Exit when branch result"]; 33 [label="Enter when branch result"];
40 [label="Exit when"]; subgraph cluster_11 {
color=blue
34 [label="Enter block"];
35 [label="Access variable R|<local>/base|"];
36 [label="Exit block"];
}
37 [label="Exit when branch result"];
38 [label="Enter when branch result"];
subgraph cluster_12 {
color=blue
39 [label="Enter block"];
40 [label="Access variable R|<local>/base|"];
41 [label="Access variable R|/Sub.data|"];
42 [label="Exit block"];
}
43 [label="Exit when branch result"];
44 [label="Exit when"];
} }
41 [label="Jump: ^check when () { 45 [label="Jump: ^check when () {
==((R|<local>/base| as? R|Sub|)?.R|/isOk|(), Boolean(true)) -> { ==((R|<local>/base| as? R|Sub|)?.R|/isOk|(), Boolean(true)) -> {
R|<local>/base|.R|/Sub.data| R|<local>/base|.R|/Sub.data|
} }
@@ -107,37 +122,37 @@ digraph functionCallBound_kt {
} }
} }
"]; "];
42 [label="Stub" style="filled" fillcolor=gray]; 46 [label="Stub" style="filled" fillcolor=gray];
43 [label="Exit function check" style="filled" fillcolor=red]; 47 [label="Exit function check" style="filled" fillcolor=red];
} }
16 -> {17}; 20 -> {21};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21 23};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25 27};
25 -> {26}; 25 -> {26};
26 -> {34 27}; 26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {38 31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {40}; 33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {36}; 35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {44};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {43}; 41 -> {42};
41 -> {42} [style=dotted]; 42 -> {43};
42 -> {43} [style=dotted]; 43 -> {44};
44 -> {45};
45 -> {47};
45 -> {46} [style=dotted];
46 -> {47} [style=dotted];
} }
@@ -29,192 +29,199 @@ digraph elvis_kt {
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
6 [label="Enter function test_1" style="filled" fillcolor=red]; 6 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_4 { 7 [label="Exit class A" style="filled" fillcolor=red];
color=blue }
7 [label="Enter when"];
subgraph cluster_5 {
color=blue subgraph cluster_4 {
8 [label="Enter when branch condition "]; color=red
subgraph cluster_6 { 8 [label="Enter function test_1" style="filled" fillcolor=red];
color=blue subgraph cluster_5 {
9 [label="Enter when"]; color=blue
10 [label="Access variable R|<local>/x|"]; 9 [label="Enter when"];
11 [label="Enter safe call"]; subgraph cluster_6 {
12 [label="Access variable R|/A.b|"]; color=blue
13 [label="Exit safe call"]; 10 [label="Enter when branch condition "];
14 [label="Variable declaration: lval <elvis>: R|kotlin/Boolean?|"]; subgraph cluster_7 {
subgraph cluster_7 { color=blue
color=blue 11 [label="Enter when"];
15 [label="Enter when branch condition "]; 12 [label="Access variable R|<local>/x|"];
16 [label="Const: Null(null)"]; 13 [label="Enter safe call"];
17 [label="Operator =="]; 14 [label="Access variable R|/A.b|"];
18 [label="Exit when branch condition"]; 15 [label="Exit safe call"];
} 16 [label="Variable declaration: lval <elvis>: R|kotlin/Boolean?|"];
subgraph cluster_8 { subgraph cluster_8 {
color=blue color=blue
19 [label="Enter when branch condition else"]; 17 [label="Enter when branch condition "];
20 [label="Exit when branch condition"]; 18 [label="Const: Null(null)"];
} 19 [label="Operator =="];
21 [label="Enter when branch result"]; 20 [label="Exit when branch condition"];
subgraph cluster_9 { }
color=blue subgraph cluster_9 {
22 [label="Enter block"]; color=blue
23 [label="Access variable R|<local>/<elvis>|"]; 21 [label="Enter when branch condition else"];
24 [label="Exit block"]; 22 [label="Exit when branch condition"];
} }
25 [label="Exit when branch result"]; 23 [label="Enter when branch result"];
26 [label="Enter when branch result"]; subgraph cluster_10 {
subgraph cluster_10 { color=blue
color=blue 24 [label="Enter block"];
27 [label="Enter block"]; 25 [label="Access variable R|<local>/<elvis>|"];
28 [label="Jump: ^test_1 Unit"]; 26 [label="Exit block"];
29 [label="Stub" style="filled" fillcolor=gray]; }
30 [label="Exit block" style="filled" fillcolor=gray]; 27 [label="Exit when branch result"];
} 28 [label="Enter when branch result"];
31 [label="Exit when branch result" style="filled" fillcolor=gray]; subgraph cluster_11 {
32 [label="Exit when"]; color=blue
} 29 [label="Enter block"];
33 [label="Exit when branch condition"]; 30 [label="Jump: ^test_1 Unit"];
} 31 [label="Stub" style="filled" fillcolor=gray];
34 [label="Synthetic else branch"]; 32 [label="Exit block" style="filled" fillcolor=gray];
35 [label="Enter when branch result"]; }
subgraph cluster_11 { 33 [label="Exit when branch result" style="filled" fillcolor=gray];
color=blue 34 [label="Exit when"];
36 [label="Enter block"]; }
37 [label="Access variable R|<local>/x|"]; 35 [label="Exit when branch condition"];
38 [label="Function call: R|<local>/x|.R|/A.foo|()"]; }
39 [label="Exit block"]; 36 [label="Synthetic else branch"];
} 37 [label="Enter when branch result"];
40 [label="Exit when branch result"]; subgraph cluster_12 {
41 [label="Exit when"]; color=blue
} 38 [label="Enter block"];
42 [label="Exit function test_1" style="filled" fillcolor=red]; 39 [label="Access variable R|<local>/x|"];
40 [label="Function call: R|<local>/x|.R|/A.foo|()"];
41 [label="Exit block"];
}
42 [label="Exit when branch result"];
43 [label="Exit when"];
}
44 [label="Exit function test_1" style="filled" fillcolor=red];
} }
6 -> {7};
7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11 13}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13 15};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18};
18 -> {26 19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {28 21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {32}; 25 -> {26};
26 -> {27}; 26 -> {27};
27 -> {28}; 27 -> {34};
28 -> {42}; 28 -> {29};
28 -> {29} [style=dotted]; 29 -> {30};
29 -> {30} [style=dotted]; 30 -> {44};
30 -> {31} [style=dotted]; 30 -> {31} [style=dotted];
31 -> {32} [style=dotted]; 31 -> {32} [style=dotted];
32 -> {33}; 32 -> {33} [style=dotted];
33 -> {35 34}; 33 -> {34} [style=dotted];
34 -> {41}; 34 -> {35};
35 -> {36}; 35 -> {37 36};
36 -> {37}; 36 -> {43};
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {42};
42 -> {43};
43 -> {44};
subgraph cluster_12 { subgraph cluster_13 {
color=red color=red
43 [label="Enter function test2" style="filled" fillcolor=red]; 45 [label="Enter function test2" style="filled" fillcolor=red];
subgraph cluster_13 { subgraph cluster_14 {
color=blue color=blue
44 [label="Enter when"]; 46 [label="Enter when"];
subgraph cluster_14 {
color=blue
45 [label="Enter when branch condition "];
46 [label="Access variable R|<local>/b|"];
47 [label="Type operator: (R|<local>/b| !is R|kotlin/String|)"];
48 [label="Exit when branch condition"];
}
49 [label="Synthetic else branch"];
50 [label="Enter when branch result"];
subgraph cluster_15 { subgraph cluster_15 {
color=blue color=blue
51 [label="Enter block"]; 47 [label="Enter when branch condition "];
52 [label="Const: String()"]; 48 [label="Access variable R|<local>/b|"];
53 [label="Jump: ^test2 String()"]; 49 [label="Type operator: (R|<local>/b| !is R|kotlin/String|)"];
54 [label="Stub" style="filled" fillcolor=gray]; 50 [label="Exit when branch condition"];
55 [label="Exit block" style="filled" fillcolor=gray];
} }
56 [label="Exit when branch result" style="filled" fillcolor=gray]; 51 [label="Synthetic else branch"];
57 [label="Exit when"]; 52 [label="Enter when branch result"];
} subgraph cluster_16 {
subgraph cluster_16 {
color=blue
58 [label="Enter when"];
subgraph cluster_17 {
color=blue color=blue
59 [label="Enter when branch condition "]; 53 [label="Enter block"];
60 [label="Access variable R|<local>/a|"]; 54 [label="Const: String()"];
61 [label="Type operator: (R|<local>/a| !is R|kotlin/String?|)"]; 55 [label="Jump: ^test2 String()"];
62 [label="Exit when branch condition"]; 56 [label="Stub" style="filled" fillcolor=gray];
57 [label="Exit block" style="filled" fillcolor=gray];
} }
63 [label="Synthetic else branch"]; 58 [label="Exit when branch result" style="filled" fillcolor=gray];
64 [label="Enter when branch result"]; 59 [label="Exit when"];
}
subgraph cluster_17 {
color=blue
60 [label="Enter when"];
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
65 [label="Enter block"]; 61 [label="Enter when branch condition "];
66 [label="Const: String()"]; 62 [label="Access variable R|<local>/a|"];
67 [label="Jump: ^test2 String()"]; 63 [label="Type operator: (R|<local>/a| !is R|kotlin/String?|)"];
68 [label="Stub" style="filled" fillcolor=gray]; 64 [label="Exit when branch condition"];
69 [label="Exit block" style="filled" fillcolor=gray];
} }
70 [label="Exit when branch result" style="filled" fillcolor=gray]; 65 [label="Synthetic else branch"];
71 [label="Exit when"]; 66 [label="Enter when branch result"];
} subgraph cluster_19 {
subgraph cluster_19 {
color=blue
72 [label="Enter when"];
73 [label="Access variable R|<local>/a|"];
74 [label="Variable declaration: lval <elvis>: R|kotlin/String?|"];
subgraph cluster_20 {
color=blue color=blue
75 [label="Enter when branch condition "]; 67 [label="Enter block"];
76 [label="Const: Null(null)"]; 68 [label="Const: String()"];
77 [label="Operator =="]; 69 [label="Jump: ^test2 String()"];
78 [label="Exit when branch condition"]; 70 [label="Stub" style="filled" fillcolor=gray];
71 [label="Exit block" style="filled" fillcolor=gray];
} }
72 [label="Exit when branch result" style="filled" fillcolor=gray];
73 [label="Exit when"];
}
subgraph cluster_20 {
color=blue
74 [label="Enter when"];
75 [label="Access variable R|<local>/a|"];
76 [label="Variable declaration: lval <elvis>: R|kotlin/String?|"];
subgraph cluster_21 { subgraph cluster_21 {
color=blue color=blue
79 [label="Enter when branch condition else"]; 77 [label="Enter when branch condition "];
78 [label="Const: Null(null)"];
79 [label="Operator =="];
80 [label="Exit when branch condition"]; 80 [label="Exit when branch condition"];
} }
81 [label="Enter when branch result"];
subgraph cluster_22 { subgraph cluster_22 {
color=blue color=blue
82 [label="Enter block"]; 81 [label="Enter when branch condition else"];
83 [label="Access variable R|<local>/<elvis>|"]; 82 [label="Exit when branch condition"];
84 [label="Exit block"];
} }
85 [label="Exit when branch result"]; 83 [label="Enter when branch result"];
86 [label="Enter when branch result"];
subgraph cluster_23 { subgraph cluster_23 {
color=blue color=blue
87 [label="Enter block"]; 84 [label="Enter block"];
88 [label="Access variable R|<local>/b|"]; 85 [label="Access variable R|<local>/<elvis>|"];
89 [label="Exit block"]; 86 [label="Exit block"];
} }
90 [label="Exit when branch result"]; 87 [label="Exit when branch result"];
91 [label="Exit when"]; 88 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue
89 [label="Enter block"];
90 [label="Access variable R|<local>/b|"];
91 [label="Exit block"];
}
92 [label="Exit when branch result"];
93 [label="Exit when"];
} }
92 [label="Jump: ^test2 when (lval <elvis>: R|kotlin/String?| = R|<local>/a|) { 94 [label="Jump: ^test2 when (lval <elvis>: R|kotlin/String?| = R|<local>/a|) {
==($subj$, Null(null)) -> { ==($subj$, Null(null)) -> {
R|<local>/b| R|<local>/b|
} }
@@ -223,63 +230,63 @@ digraph elvis_kt {
} }
} }
"]; "];
93 [label="Stub" style="filled" fillcolor=gray]; 95 [label="Stub" style="filled" fillcolor=gray];
94 [label="Exit function test2" style="filled" fillcolor=red]; 96 [label="Exit function test2" style="filled" fillcolor=red];
} }
43 -> {44};
44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {50 49}; 48 -> {49};
49 -> {57}; 49 -> {50};
50 -> {51}; 50 -> {52 51};
51 -> {52}; 51 -> {59};
52 -> {53}; 52 -> {53};
53 -> {94}; 53 -> {54};
53 -> {54} [style=dotted]; 54 -> {55};
54 -> {55} [style=dotted]; 55 -> {96};
55 -> {56} [style=dotted]; 55 -> {56} [style=dotted];
56 -> {57} [style=dotted]; 56 -> {57} [style=dotted];
57 -> {58}; 57 -> {58} [style=dotted];
58 -> {59}; 58 -> {59} [style=dotted];
59 -> {60}; 59 -> {60};
60 -> {61}; 60 -> {61};
61 -> {62}; 61 -> {62};
62 -> {64 63}; 62 -> {63};
63 -> {71}; 63 -> {64};
64 -> {65}; 64 -> {66 65};
65 -> {66}; 65 -> {73};
66 -> {67}; 66 -> {67};
67 -> {94}; 67 -> {68};
67 -> {68} [style=dotted]; 68 -> {69};
68 -> {69} [style=dotted]; 69 -> {96};
69 -> {70} [style=dotted]; 69 -> {70} [style=dotted];
70 -> {71} [style=dotted]; 70 -> {71} [style=dotted];
71 -> {72}; 71 -> {72} [style=dotted];
72 -> {73}; 72 -> {73} [style=dotted];
73 -> {74}; 73 -> {74};
74 -> {75}; 74 -> {75};
75 -> {76}; 75 -> {76};
76 -> {77}; 76 -> {77};
77 -> {78}; 77 -> {78};
78 -> {86 79}; 78 -> {79};
79 -> {80}; 79 -> {80};
80 -> {81}; 80 -> {88 81};
81 -> {82}; 81 -> {82};
82 -> {83}; 82 -> {83};
83 -> {84}; 83 -> {84};
84 -> {85}; 84 -> {85};
85 -> {91}; 85 -> {86};
86 -> {87}; 86 -> {87};
87 -> {88}; 87 -> {93};
88 -> {89}; 88 -> {89};
89 -> {90}; 89 -> {90};
90 -> {91}; 90 -> {91};
91 -> {92}; 91 -> {92};
92 -> {94}; 92 -> {93};
92 -> {93} [style=dotted]; 93 -> {94};
93 -> {94} [style=dotted]; 94 -> {96};
94 -> {95} [style=dotted];
95 -> {96} [style=dotted];
} }
@@ -144,114 +144,132 @@ digraph returns_kt {
subgraph cluster_13 { subgraph cluster_13 {
color=red color=red
48 [label="Enter function bar" style="filled" fillcolor=red]; 48 [label="Enter class A" style="filled" fillcolor=red];
49 [label="Exit function bar" style="filled" fillcolor=red]; 49 [label="Exit class A" style="filled" fillcolor=red];
} }
48 -> {49}; 48 -> {49} [color=green];
subgraph cluster_14 { subgraph cluster_14 {
color=red color=red
50 [label="Enter function baz" style="filled" fillcolor=red]; 50 [label="Enter function bar" style="filled" fillcolor=red];
51 [label="Exit function baz" style="filled" fillcolor=red]; 51 [label="Exit function bar" style="filled" fillcolor=red];
} }
50 -> {51}; 50 -> {51};
subgraph cluster_15 { subgraph cluster_15 {
color=red color=red
52 [label="Enter function test_2" style="filled" fillcolor=red]; 52 [label="Enter class B" style="filled" fillcolor=red];
subgraph cluster_16 { 53 [label="Exit class B" style="filled" fillcolor=red];
}
52 -> {53} [color=green];
subgraph cluster_16 {
color=red
54 [label="Enter function baz" style="filled" fillcolor=red];
55 [label="Exit function baz" style="filled" fillcolor=red];
}
54 -> {55};
subgraph cluster_17 {
color=red
56 [label="Enter class C" style="filled" fillcolor=red];
57 [label="Exit class C" style="filled" fillcolor=red];
}
56 -> {57} [color=green];
subgraph cluster_18 {
color=red
58 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue color=blue
53 [label="Enter when"]; 59 [label="Enter when"];
subgraph cluster_17 {
color=blue
54 [label="Enter when branch condition "];
55 [label="Access variable R|<local>/x|"];
56 [label="Type operator: (R|<local>/x| is R|B|)"];
57 [label="Exit when branch condition"];
}
subgraph cluster_18 {
color=blue
58 [label="Enter when branch condition "];
59 [label="Access variable R|<local>/x|"];
60 [label="Type operator: (R|<local>/x| is R|C|)"];
61 [label="Exit when branch condition"];
}
subgraph cluster_19 {
color=blue
62 [label="Enter when branch condition else"];
63 [label="Exit when branch condition"];
}
64 [label="Enter when branch result"];
subgraph cluster_20 { subgraph cluster_20 {
color=blue color=blue
65 [label="Enter block"]; 60 [label="Enter when branch condition "];
66 [label="Jump: ^test_2 Unit"]; 61 [label="Access variable R|<local>/x|"];
67 [label="Stub" style="filled" fillcolor=gray]; 62 [label="Type operator: (R|<local>/x| is R|B|)"];
68 [label="Exit block" style="filled" fillcolor=gray]; 63 [label="Exit when branch condition"];
} }
69 [label="Exit when branch result" style="filled" fillcolor=gray];
70 [label="Enter when branch result"];
subgraph cluster_21 { subgraph cluster_21 {
color=blue color=blue
71 [label="Enter block"]; 64 [label="Enter when branch condition "];
72 [label="Access variable R|<local>/x|"]; 65 [label="Access variable R|<local>/x|"];
73 [label="Function call: R|<local>/x|.R|/C.baz|()"]; 66 [label="Type operator: (R|<local>/x| is R|C|)"];
74 [label="Exit block"]; 67 [label="Exit when branch condition"];
} }
75 [label="Exit when branch result"];
76 [label="Enter when branch result"];
subgraph cluster_22 { subgraph cluster_22 {
color=blue
68 [label="Enter when branch condition else"];
69 [label="Exit when branch condition"];
}
70 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
71 [label="Enter block"];
72 [label="Jump: ^test_2 Unit"];
73 [label="Stub" style="filled" fillcolor=gray];
74 [label="Exit block" style="filled" fillcolor=gray];
}
75 [label="Exit when branch result" style="filled" fillcolor=gray];
76 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue color=blue
77 [label="Enter block"]; 77 [label="Enter block"];
78 [label="Access variable R|<local>/x|"]; 78 [label="Access variable R|<local>/x|"];
79 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 79 [label="Function call: R|<local>/x|.R|/C.baz|()"];
80 [label="Exit block"]; 80 [label="Exit block"];
} }
81 [label="Exit when branch result"]; 81 [label="Exit when branch result"];
82 [label="Exit when"]; 82 [label="Enter when branch result"];
subgraph cluster_25 {
color=blue
83 [label="Enter block"];
84 [label="Access variable R|<local>/x|"];
85 [label="Function call: R|<local>/x|.R|/B.bar|()"];
86 [label="Exit block"];
}
87 [label="Exit when branch result"];
88 [label="Exit when"];
} }
83 [label="Access variable R|<local>/x|"]; 89 [label="Access variable R|<local>/x|"];
84 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 90 [label="Function call: R|<local>/x|.R|/A.foo|()"];
85 [label="Access variable R|<local>/x|"]; 91 [label="Access variable R|<local>/x|"];
86 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"]; 92 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"];
87 [label="Access variable R|<local>/x|"]; 93 [label="Access variable R|<local>/x|"];
88 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"]; 94 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"];
89 [label="Exit function test_2" style="filled" fillcolor=red]; 95 [label="Exit function test_2" style="filled" fillcolor=red];
} }
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {76 58};
58 -> {59}; 58 -> {59};
59 -> {60}; 59 -> {60};
60 -> {61}; 60 -> {61};
61 -> {70 62}; 61 -> {62};
62 -> {63}; 62 -> {63};
63 -> {64}; 63 -> {82 64};
64 -> {65}; 64 -> {65};
65 -> {66}; 65 -> {66};
66 -> {89}; 66 -> {67};
66 -> {67} [style=dotted]; 67 -> {76 68};
67 -> {68} [style=dotted]; 68 -> {69};
68 -> {69} [style=dotted]; 69 -> {70};
69 -> {82} [style=dotted];
70 -> {71}; 70 -> {71};
71 -> {72}; 71 -> {72};
72 -> {73}; 72 -> {95};
73 -> {74}; 72 -> {73} [style=dotted];
74 -> {75}; 73 -> {74} [style=dotted];
75 -> {82}; 74 -> {75} [style=dotted];
75 -> {88} [style=dotted];
76 -> {77}; 76 -> {77};
77 -> {78}; 77 -> {78};
78 -> {79}; 78 -> {79};
79 -> {80}; 79 -> {80};
80 -> {81}; 80 -> {81};
81 -> {82}; 81 -> {88};
82 -> {83}; 82 -> {83};
83 -> {84}; 83 -> {84};
84 -> {85}; 84 -> {85};
@@ -259,80 +277,80 @@ digraph returns_kt {
86 -> {87}; 86 -> {87};
87 -> {88}; 87 -> {88};
88 -> {89}; 88 -> {89};
89 -> {90};
subgraph cluster_23 {
color=red
90 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_24 {
color=blue
91 [label="Enter when"];
subgraph cluster_25 {
color=blue
92 [label="Enter when branch condition "];
93 [label="Access variable R|<local>/x|"];
94 [label="Type operator: (R|<local>/x| is R|B|)"];
95 [label="Exit when branch condition"];
}
subgraph cluster_26 {
color=blue
96 [label="Enter when branch condition "];
97 [label="Access variable R|<local>/x|"];
98 [label="Type operator: (R|<local>/x| is R|C|)"];
99 [label="Exit when branch condition"];
}
100 [label="Synthetic else branch"];
101 [label="Enter when branch result"];
subgraph cluster_27 {
color=blue
102 [label="Enter block"];
103 [label="Access variable R|<local>/x|"];
104 [label="Function call: R|<local>/x|.R|/C.baz|()"];
105 [label="Exit block"];
}
106 [label="Exit when branch result"];
107 [label="Enter when branch result"];
subgraph cluster_28 {
color=blue
108 [label="Enter block"];
109 [label="Access variable R|<local>/x|"];
110 [label="Function call: R|<local>/x|.R|/B.bar|()"];
111 [label="Exit block"];
}
112 [label="Exit when branch result"];
113 [label="Exit when"];
}
114 [label="Access variable R|<local>/x|"];
115 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"];
116 [label="Access variable R|<local>/x|"];
117 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"];
118 [label="Access variable R|<local>/x|"];
119 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"];
120 [label="Exit function test_3" style="filled" fillcolor=red];
}
90 -> {91}; 90 -> {91};
91 -> {92}; 91 -> {92};
92 -> {93}; 92 -> {93};
93 -> {94}; 93 -> {94};
94 -> {95}; 94 -> {95};
95 -> {107 96};
subgraph cluster_26 {
color=red
96 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_27 {
color=blue
97 [label="Enter when"];
subgraph cluster_28 {
color=blue
98 [label="Enter when branch condition "];
99 [label="Access variable R|<local>/x|"];
100 [label="Type operator: (R|<local>/x| is R|B|)"];
101 [label="Exit when branch condition"];
}
subgraph cluster_29 {
color=blue
102 [label="Enter when branch condition "];
103 [label="Access variable R|<local>/x|"];
104 [label="Type operator: (R|<local>/x| is R|C|)"];
105 [label="Exit when branch condition"];
}
106 [label="Synthetic else branch"];
107 [label="Enter when branch result"];
subgraph cluster_30 {
color=blue
108 [label="Enter block"];
109 [label="Access variable R|<local>/x|"];
110 [label="Function call: R|<local>/x|.R|/C.baz|()"];
111 [label="Exit block"];
}
112 [label="Exit when branch result"];
113 [label="Enter when branch result"];
subgraph cluster_31 {
color=blue
114 [label="Enter block"];
115 [label="Access variable R|<local>/x|"];
116 [label="Function call: R|<local>/x|.R|/B.bar|()"];
117 [label="Exit block"];
}
118 [label="Exit when branch result"];
119 [label="Exit when"];
}
120 [label="Access variable R|<local>/x|"];
121 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"];
122 [label="Access variable R|<local>/x|"];
123 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"];
124 [label="Access variable R|<local>/x|"];
125 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"];
126 [label="Exit function test_3" style="filled" fillcolor=red];
}
96 -> {97}; 96 -> {97};
97 -> {98}; 97 -> {98};
98 -> {99}; 98 -> {99};
99 -> {101 100}; 99 -> {100};
100 -> {113}; 100 -> {101};
101 -> {102}; 101 -> {113 102};
102 -> {103}; 102 -> {103};
103 -> {104}; 103 -> {104};
104 -> {105}; 104 -> {105};
105 -> {106}; 105 -> {107 106};
106 -> {113}; 106 -> {119};
107 -> {108}; 107 -> {108};
108 -> {109}; 108 -> {109};
109 -> {110}; 109 -> {110};
110 -> {111}; 110 -> {111};
111 -> {112}; 111 -> {112};
112 -> {113}; 112 -> {119};
113 -> {114}; 113 -> {114};
114 -> {115}; 114 -> {115};
115 -> {116}; 115 -> {116};
@@ -340,141 +358,147 @@ digraph returns_kt {
117 -> {118}; 117 -> {118};
118 -> {119}; 118 -> {119};
119 -> {120}; 119 -> {120};
120 -> {121};
subgraph cluster_29 {
color=red
121 [label="Enter function runHigherOrder" style="filled" fillcolor=red];
122 [label="Function call: R|<local>/f|.R|FakeOverride<kotlin/Function0.invoke: R|T|>|()"];
123 [label="Jump: ^runHigherOrder R|<local>/f|.R|FakeOverride<kotlin/Function0.invoke: R|T|>|()"];
124 [label="Stub" style="filled" fillcolor=gray];
125 [label="Exit function runHigherOrder" style="filled" fillcolor=red];
}
121 -> {122}; 121 -> {122};
122 -> {123}; 122 -> {123};
123 -> {125}; 123 -> {124};
123 -> {124} [style=dotted]; 124 -> {125};
124 -> {125} [style=dotted]; 125 -> {126};
subgraph cluster_30 {
color=red
126 [label="Enter function getter" style="filled" fillcolor=red];
127 [label="Access variable R|kotlin/String.length|"];
128 [label="Jump: ^ this@R|/ext|.R|kotlin/String.length|"];
129 [label="Stub" style="filled" fillcolor=gray];
130 [label="Exit function getter" style="filled" fillcolor=red];
}
126 -> {127};
127 -> {128};
128 -> {130};
128 -> {129} [style=dotted];
129 -> {130} [style=dotted];
subgraph cluster_31 {
color=red
131 [label="Enter property" style="filled" fillcolor=red];
132 [label="Exit property" style="filled" fillcolor=red];
}
131 -> {132};
subgraph cluster_32 { subgraph cluster_32 {
color=red color=red
133 [label="Enter function test_4" style="filled" fillcolor=red]; 127 [label="Enter function runHigherOrder" style="filled" fillcolor=red];
134 [label="Access variable R|<local>/a|"]; 128 [label="Function call: R|<local>/f|.R|FakeOverride<kotlin/Function0.invoke: R|T|>|()"];
135 [label="Type operator: (R|<local>/a| as? R|kotlin/String|)"]; 129 [label="Jump: ^runHigherOrder R|<local>/f|.R|FakeOverride<kotlin/Function0.invoke: R|T|>|()"];
136 [label="Variable declaration: lval s: R|kotlin/String?|"]; 130 [label="Stub" style="filled" fillcolor=gray];
subgraph cluster_33 { 131 [label="Exit function runHigherOrder" style="filled" fillcolor=red];
color=blue
137 [label="Enter when"];
138 [label="Access variable R|<local>/s|"];
139 [label="Enter safe call"];
140 [label="Access variable R|/ext|"];
141 [label="Exit safe call"];
142 [label="Variable declaration: lval <elvis>: R|kotlin/Int?|"];
subgraph cluster_34 {
color=blue
143 [label="Enter when branch condition "];
144 [label="Const: Null(null)"];
145 [label="Operator =="];
146 [label="Exit when branch condition"];
}
subgraph cluster_35 {
color=blue
147 [label="Enter when branch condition else"];
148 [label="Exit when branch condition"];
}
149 [label="Enter when branch result"];
subgraph cluster_36 {
color=blue
150 [label="Enter block"];
151 [label="Access variable R|<local>/<elvis>|"];
152 [label="Exit block"];
}
153 [label="Exit when branch result"];
154 [label="Enter when branch result"];
subgraph cluster_37 {
color=blue
155 [label="Enter block"];
156 [label="Jump: ^test_4 Unit"];
157 [label="Stub" style="filled" fillcolor=gray];
158 [label="Exit block" style="filled" fillcolor=gray];
}
159 [label="Exit when branch result" style="filled" fillcolor=gray];
160 [label="Exit when"];
}
161 [label="Variable declaration: lval length: R|kotlin/Int|"];
162 [label="Postponed enter to lambda"];
163 [label="Postponed exit from lambda"];
164 [label="Function call: R|/runHigherOrder|<R|kotlin/Int|>(...)"];
165 [label="Exit function test_4" style="filled" fillcolor=red];
} }
127 -> {128};
128 -> {129};
129 -> {131};
129 -> {130} [style=dotted];
130 -> {131} [style=dotted];
subgraph cluster_33 {
color=red
132 [label="Enter function getter" style="filled" fillcolor=red];
133 [label="Access variable R|kotlin/String.length|"];
134 [label="Jump: ^ this@R|/ext|.R|kotlin/String.length|"];
135 [label="Stub" style="filled" fillcolor=gray];
136 [label="Exit function getter" style="filled" fillcolor=red];
}
132 -> {133};
133 -> {134}; 133 -> {134};
134 -> {135}; 134 -> {136};
135 -> {136}; 134 -> {135} [style=dotted];
136 -> {137}; 135 -> {136} [style=dotted];
subgraph cluster_34 {
color=red
137 [label="Enter property" style="filled" fillcolor=red];
138 [label="Exit property" style="filled" fillcolor=red];
}
137 -> {138}; 137 -> {138};
138 -> {139 141};
subgraph cluster_35 {
color=red
139 [label="Enter function test_4" style="filled" fillcolor=red];
140 [label="Access variable R|<local>/a|"];
141 [label="Type operator: (R|<local>/a| as? R|kotlin/String|)"];
142 [label="Variable declaration: lval s: R|kotlin/String?|"];
subgraph cluster_36 {
color=blue
143 [label="Enter when"];
144 [label="Access variable R|<local>/s|"];
145 [label="Enter safe call"];
146 [label="Access variable R|/ext|"];
147 [label="Exit safe call"];
148 [label="Variable declaration: lval <elvis>: R|kotlin/Int?|"];
subgraph cluster_37 {
color=blue
149 [label="Enter when branch condition "];
150 [label="Const: Null(null)"];
151 [label="Operator =="];
152 [label="Exit when branch condition"];
}
subgraph cluster_38 {
color=blue
153 [label="Enter when branch condition else"];
154 [label="Exit when branch condition"];
}
155 [label="Enter when branch result"];
subgraph cluster_39 {
color=blue
156 [label="Enter block"];
157 [label="Access variable R|<local>/<elvis>|"];
158 [label="Exit block"];
}
159 [label="Exit when branch result"];
160 [label="Enter when branch result"];
subgraph cluster_40 {
color=blue
161 [label="Enter block"];
162 [label="Jump: ^test_4 Unit"];
163 [label="Stub" style="filled" fillcolor=gray];
164 [label="Exit block" style="filled" fillcolor=gray];
}
165 [label="Exit when branch result" style="filled" fillcolor=gray];
166 [label="Exit when"];
}
167 [label="Variable declaration: lval length: R|kotlin/Int|"];
168 [label="Postponed enter to lambda"];
169 [label="Postponed exit from lambda"];
170 [label="Function call: R|/runHigherOrder|<R|kotlin/Int|>(...)"];
171 [label="Exit function test_4" style="filled" fillcolor=red];
}
139 -> {140}; 139 -> {140};
140 -> {141}; 140 -> {141};
141 -> {142}; 141 -> {142};
142 -> {143}; 142 -> {143};
143 -> {144}; 143 -> {144};
144 -> {145}; 144 -> {145 147};
145 -> {146}; 145 -> {146};
146 -> {154 147}; 146 -> {147};
147 -> {148}; 147 -> {148};
148 -> {149}; 148 -> {149};
149 -> {150}; 149 -> {150};
150 -> {151}; 150 -> {151};
151 -> {152}; 151 -> {152};
152 -> {153}; 152 -> {160 153};
153 -> {160}; 153 -> {154};
154 -> {155}; 154 -> {155};
155 -> {156}; 155 -> {156};
156 -> {165}; 156 -> {157};
156 -> {157} [style=dotted]; 157 -> {158};
157 -> {158} [style=dotted]; 158 -> {159};
158 -> {159} [style=dotted]; 159 -> {166};
159 -> {160} [style=dotted];
160 -> {161}; 160 -> {161};
161 -> {162}; 161 -> {162};
162 -> {163 163} [color=green]; 162 -> {171};
163 -> {164}; 162 -> {163} [style=dotted];
164 -> {165}; 163 -> {164} [style=dotted];
164 -> {165} [style=dotted];
subgraph cluster_38 { 165 -> {166} [style=dotted];
color=red
166 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
167 [label="Access variable R|<local>/s|"];
168 [label="Access variable R|kotlin/String.length|"];
169 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
166 -> {167}; 166 -> {167};
167 -> {168}; 167 -> {168};
168 -> {169}; 168 -> {169 169} [color=green];
169 -> {170};
170 -> {171};
subgraph cluster_41 {
color=red
172 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
173 [label="Access variable R|<local>/s|"];
174 [label="Access variable R|kotlin/String.length|"];
175 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
172 -> {173};
173 -> {174};
174 -> {175};
} }
@@ -13,85 +13,91 @@ digraph smartcastFromArgument_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function takeA" style="filled" fillcolor=red]; 2 [label="Enter class A" style="filled" fillcolor=red];
3 [label="Const: Boolean(true)"]; 3 [label="Exit class A" style="filled" fillcolor=red];
4 [label="Jump: ^takeA Boolean(true)"];
5 [label="Stub" style="filled" fillcolor=gray];
6 [label="Exit function takeA" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3} [color=green];
3 -> {4};
4 -> {6};
4 -> {5} [style=dotted];
5 -> {6} [style=dotted];
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
7 [label="Enter function test" style="filled" fillcolor=red]; 4 [label="Enter function takeA" style="filled" fillcolor=red];
subgraph cluster_3 { 5 [label="Const: Boolean(true)"];
color=blue 6 [label="Jump: ^takeA Boolean(true)"];
8 [label="Enter when"]; 7 [label="Stub" style="filled" fillcolor=gray];
subgraph cluster_4 { 8 [label="Exit function takeA" style="filled" fillcolor=red];
color=blue }
9 [label="Enter when branch condition "];
subgraph cluster_5 { 4 -> {5};
color=blue 5 -> {6};
10 [label="Enter when"]; 6 -> {8};
11 [label="Access variable R|<local>/a|"]; 6 -> {7} [style=dotted];
12 [label="Type operator: (R|<local>/a| as? R|A|)"]; 7 -> {8} [style=dotted];
13 [label="Variable declaration: lval <elvis>: R|A?|"];
subgraph cluster_6 { subgraph cluster_3 {
color=blue color=red
14 [label="Enter when branch condition "]; 9 [label="Enter function test" style="filled" fillcolor=red];
15 [label="Const: Null(null)"]; subgraph cluster_4 {
16 [label="Operator =="]; color=blue
17 [label="Exit when branch condition"]; 10 [label="Enter when"];
} subgraph cluster_5 {
subgraph cluster_7 { color=blue
color=blue 11 [label="Enter when branch condition "];
18 [label="Enter when branch condition else"]; subgraph cluster_6 {
19 [label="Exit when branch condition"]; color=blue
} 12 [label="Enter when"];
20 [label="Enter when branch result"]; 13 [label="Access variable R|<local>/a|"];
subgraph cluster_8 { 14 [label="Type operator: (R|<local>/a| as? R|A|)"];
color=blue 15 [label="Variable declaration: lval <elvis>: R|A?|"];
21 [label="Enter block"]; subgraph cluster_7 {
22 [label="Access variable R|<local>/<elvis>|"]; color=blue
23 [label="Exit block"]; 16 [label="Enter when branch condition "];
} 17 [label="Const: Null(null)"];
24 [label="Exit when branch result"]; 18 [label="Operator =="];
25 [label="Enter when branch result"]; 19 [label="Exit when branch condition"];
subgraph cluster_9 { }
color=blue subgraph cluster_8 {
26 [label="Enter block"]; color=blue
27 [label="Jump: ^test Unit"]; 20 [label="Enter when branch condition else"];
28 [label="Stub" style="filled" fillcolor=gray]; 21 [label="Exit when branch condition"];
29 [label="Exit block" style="filled" fillcolor=gray]; }
} 22 [label="Enter when branch result"];
30 [label="Exit when branch result" style="filled" fillcolor=gray]; subgraph cluster_9 {
31 [label="Exit when"]; color=blue
} 23 [label="Enter block"];
32 [label="Function call: R|/takeA|(...)"]; 24 [label="Access variable R|<local>/<elvis>|"];
33 [label="Exit when branch condition"]; 25 [label="Exit block"];
} }
34 [label="Synthetic else branch"]; 26 [label="Exit when branch result"];
35 [label="Enter when branch result"]; 27 [label="Enter when branch result"];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
36 [label="Enter block"]; 28 [label="Enter block"];
37 [label="Access variable R|<local>/a|"]; 29 [label="Jump: ^test Unit"];
38 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 30 [label="Stub" style="filled" fillcolor=gray];
39 [label="Exit block"]; 31 [label="Exit block" style="filled" fillcolor=gray];
} }
40 [label="Exit when branch result"]; 32 [label="Exit when branch result" style="filled" fillcolor=gray];
41 [label="Exit when"]; 33 [label="Exit when"];
} }
42 [label="Exit function test" style="filled" fillcolor=red]; 34 [label="Function call: R|/takeA|(...)"];
35 [label="Exit when branch condition"];
}
36 [label="Synthetic else branch"];
37 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
38 [label="Enter block"];
39 [label="Access variable R|<local>/a|"];
40 [label="Function call: R|<local>/a|.R|/A.foo|()"];
41 [label="Exit block"];
}
42 [label="Exit when branch result"];
43 [label="Exit when"];
}
44 [label="Exit function test" style="filled" fillcolor=red];
} }
7 -> {8};
8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12};
@@ -100,31 +106,33 @@ digraph smartcastFromArgument_kt {
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {25 18}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {27 20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {31}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {33};
27 -> {42}; 27 -> {28};
27 -> {28} [style=dotted]; 28 -> {29};
28 -> {29} [style=dotted]; 29 -> {44};
29 -> {30} [style=dotted]; 29 -> {30} [style=dotted];
30 -> {31} [style=dotted]; 30 -> {31} [style=dotted];
31 -> {32}; 31 -> {32} [style=dotted];
32 -> {33}; 32 -> {33} [style=dotted];
33 -> {35 34}; 33 -> {34};
34 -> {41}; 34 -> {35};
35 -> {36}; 35 -> {37 36};
36 -> {37}; 36 -> {43};
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {42};
42 -> {43};
43 -> {44};
} }
File diff suppressed because it is too large Load Diff
@@ -13,70 +13,76 @@ digraph equalsAndIdentity_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function test_1" style="filled" fillcolor=red]; 2 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_2 { 3 [label="Exit class A" style="filled" fillcolor=red];
color=blue }
3 [label="Enter when"];
subgraph cluster_3 { 2 -> {3} [color=green];
color=blue
4 [label="Enter when branch condition "]; subgraph cluster_2 {
5 [label="Access variable R|<local>/x|"]; color=red
6 [label="Access variable R|<local>/y|"]; 4 [label="Enter function test_1" style="filled" fillcolor=red];
7 [label="Operator =="]; subgraph cluster_3 {
8 [label="Exit when branch condition"]; color=blue
} 5 [label="Enter when"];
9 [label="Synthetic else branch"]; subgraph cluster_4 {
10 [label="Enter when branch result"]; color=blue
subgraph cluster_4 { 6 [label="Enter when branch condition "];
color=blue 7 [label="Access variable R|<local>/x|"];
11 [label="Enter block"]; 8 [label="Access variable R|<local>/y|"];
12 [label="Access variable R|<local>/x|"]; 9 [label="Operator =="];
13 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 10 [label="Exit when branch condition"];
14 [label="Access variable R|<local>/y|"]; }
15 [label="Function call: R|<local>/y|.R|/A.foo|()"]; 11 [label="Synthetic else branch"];
16 [label="Exit block"]; 12 [label="Enter when branch result"];
} subgraph cluster_5 {
17 [label="Exit when branch result"]; color=blue
18 [label="Exit when"]; 13 [label="Enter block"];
} 14 [label="Access variable R|<local>/x|"];
subgraph cluster_5 { 15 [label="Function call: R|<local>/x|.R|/A.foo|()"];
color=blue 16 [label="Access variable R|<local>/y|"];
19 [label="Enter when"]; 17 [label="Function call: R|<local>/y|.R|/A.foo|()"];
subgraph cluster_6 { 18 [label="Exit block"];
color=blue }
20 [label="Enter when branch condition "]; 19 [label="Exit when branch result"];
21 [label="Access variable R|<local>/x|"]; 20 [label="Exit when"];
22 [label="Access variable R|<local>/y|"]; }
23 [label="Operator ==="]; subgraph cluster_6 {
24 [label="Exit when branch condition"]; color=blue
} 21 [label="Enter when"];
25 [label="Synthetic else branch"]; subgraph cluster_7 {
26 [label="Enter when branch result"]; color=blue
subgraph cluster_7 { 22 [label="Enter when branch condition "];
color=blue 23 [label="Access variable R|<local>/x|"];
27 [label="Enter block"]; 24 [label="Access variable R|<local>/y|"];
28 [label="Access variable R|<local>/x|"]; 25 [label="Operator ==="];
29 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 26 [label="Exit when branch condition"];
30 [label="Access variable R|<local>/y|"]; }
31 [label="Function call: R|<local>/y|.R|/A.foo|()"]; 27 [label="Synthetic else branch"];
32 [label="Exit block"]; 28 [label="Enter when branch result"];
} subgraph cluster_8 {
33 [label="Exit when branch result"]; color=blue
34 [label="Exit when"]; 29 [label="Enter block"];
} 30 [label="Access variable R|<local>/x|"];
35 [label="Exit function test_1" style="filled" fillcolor=red]; 31 [label="Function call: R|<local>/x|.R|/A.foo|()"];
32 [label="Access variable R|<local>/y|"];
33 [label="Function call: R|<local>/y|.R|/A.foo|()"];
34 [label="Exit block"];
}
35 [label="Exit when branch result"];
36 [label="Exit when"];
}
37 [label="Exit function test_1" style="filled" fillcolor=red];
} }
2 -> {3};
3 -> {4};
4 -> {5}; 4 -> {5};
5 -> {6}; 5 -> {6};
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {10 9}; 8 -> {9};
9 -> {18}; 9 -> {10};
10 -> {11}; 10 -> {12 11};
11 -> {12}; 11 -> {20};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
@@ -89,10 +95,10 @@ digraph equalsAndIdentity_kt {
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {26 25}; 24 -> {25};
25 -> {34}; 25 -> {26};
26 -> {27}; 26 -> {28 27};
27 -> {28}; 27 -> {36};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
@@ -100,73 +106,73 @@ digraph equalsAndIdentity_kt {
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {36};
36 -> {37};
subgraph cluster_8 { subgraph cluster_9 {
color=red color=red
36 [label="Enter function test_2" style="filled" fillcolor=red]; 38 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_9 { subgraph cluster_10 {
color=blue color=blue
37 [label="Enter when"]; 39 [label="Enter when"];
subgraph cluster_10 {
color=blue
38 [label="Enter when branch condition "];
39 [label="Access variable R|<local>/x|"];
40 [label="Access variable R|<local>/y|"];
41 [label="Operator =="];
42 [label="Exit when branch condition"];
}
43 [label="Synthetic else branch"];
44 [label="Enter when branch result"];
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
45 [label="Enter block"]; 40 [label="Enter when branch condition "];
46 [label="Access variable R|<local>/x|"]; 41 [label="Access variable R|<local>/x|"];
47 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"]; 42 [label="Access variable R|<local>/y|"];
48 [label="Access variable R|<local>/y|"]; 43 [label="Operator =="];
49 [label="Function call: R|<local>/y|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"]; 44 [label="Exit when branch condition"];
50 [label="Exit block"];
} }
51 [label="Exit when branch result"]; 45 [label="Synthetic else branch"];
52 [label="Exit when"]; 46 [label="Enter when branch result"];
} subgraph cluster_12 {
subgraph cluster_12 {
color=blue
53 [label="Enter when"];
subgraph cluster_13 {
color=blue color=blue
54 [label="Enter when branch condition "]; 47 [label="Enter block"];
55 [label="Access variable R|<local>/x|"]; 48 [label="Access variable R|<local>/x|"];
56 [label="Access variable R|<local>/y|"]; 49 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
57 [label="Operator ==="]; 50 [label="Access variable R|<local>/y|"];
58 [label="Exit when branch condition"]; 51 [label="Function call: R|<local>/y|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
52 [label="Exit block"];
} }
59 [label="Synthetic else branch"]; 53 [label="Exit when branch result"];
60 [label="Enter when branch result"]; 54 [label="Exit when"];
}
subgraph cluster_13 {
color=blue
55 [label="Enter when"];
subgraph cluster_14 { subgraph cluster_14 {
color=blue color=blue
61 [label="Enter block"]; 56 [label="Enter when branch condition "];
62 [label="Access variable R|<local>/x|"]; 57 [label="Access variable R|<local>/x|"];
63 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"]; 58 [label="Access variable R|<local>/y|"];
64 [label="Access variable R|<local>/y|"]; 59 [label="Operator ==="];
65 [label="Function call: R|<local>/y|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"]; 60 [label="Exit when branch condition"];
66 [label="Exit block"];
} }
67 [label="Exit when branch result"]; 61 [label="Synthetic else branch"];
68 [label="Exit when"]; 62 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
63 [label="Enter block"];
64 [label="Access variable R|<local>/x|"];
65 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
66 [label="Access variable R|<local>/y|"];
67 [label="Function call: R|<local>/y|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
68 [label="Exit block"];
}
69 [label="Exit when branch result"];
70 [label="Exit when"];
} }
69 [label="Exit function test_2" style="filled" fillcolor=red]; 71 [label="Exit function test_2" style="filled" fillcolor=red];
} }
36 -> {37};
37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {42};
42 -> {44 43}; 42 -> {43};
43 -> {52}; 43 -> {44};
44 -> {45}; 44 -> {46 45};
45 -> {46}; 45 -> {54};
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {49};
@@ -179,10 +185,10 @@ digraph equalsAndIdentity_kt {
55 -> {56}; 55 -> {56};
56 -> {57}; 56 -> {57};
57 -> {58}; 57 -> {58};
58 -> {60 59}; 58 -> {59};
59 -> {68}; 59 -> {60};
60 -> {61}; 60 -> {62 61};
61 -> {62}; 61 -> {70};
62 -> {63}; 62 -> {63};
63 -> {64}; 63 -> {64};
64 -> {65}; 64 -> {65};
@@ -190,111 +196,111 @@ digraph equalsAndIdentity_kt {
66 -> {67}; 66 -> {67};
67 -> {68}; 67 -> {68};
68 -> {69}; 68 -> {69};
69 -> {70};
70 -> {71};
subgraph cluster_15 { subgraph cluster_16 {
color=red color=red
70 [label="Enter function test_3" style="filled" fillcolor=red]; 72 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_16 { subgraph cluster_17 {
color=blue color=blue
71 [label="Enter when"]; 73 [label="Enter when"];
subgraph cluster_17 {
color=blue
72 [label="Enter when branch condition "];
73 [label="Access variable R|<local>/y|"];
74 [label="Const: Null(null)"];
75 [label="Operator =="];
76 [label="Exit when branch condition"];
}
77 [label="Synthetic else branch"];
78 [label="Enter when branch result"];
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
79 [label="Enter block"]; 74 [label="Enter when branch condition "];
80 [label="Jump: ^test_3 Unit"]; 75 [label="Access variable R|<local>/y|"];
81 [label="Stub" style="filled" fillcolor=gray]; 76 [label="Const: Null(null)"];
82 [label="Exit block" style="filled" fillcolor=gray]; 77 [label="Operator =="];
78 [label="Exit when branch condition"];
} }
83 [label="Exit when branch result" style="filled" fillcolor=gray]; 79 [label="Synthetic else branch"];
84 [label="Exit when"]; 80 [label="Enter when branch result"];
} subgraph cluster_19 {
subgraph cluster_19 {
color=blue
85 [label="Enter when"];
subgraph cluster_20 {
color=blue color=blue
86 [label="Enter when branch condition "]; 81 [label="Enter block"];
87 [label="Access variable R|<local>/x|"]; 82 [label="Jump: ^test_3 Unit"];
88 [label="Access variable R|<local>/y|"]; 83 [label="Stub" style="filled" fillcolor=gray];
89 [label="Operator =="]; 84 [label="Exit block" style="filled" fillcolor=gray];
90 [label="Exit when branch condition"];
} }
91 [label="Synthetic else branch"]; 85 [label="Exit when branch result" style="filled" fillcolor=gray];
92 [label="Enter when branch result"]; 86 [label="Exit when"];
}
subgraph cluster_20 {
color=blue
87 [label="Enter when"];
subgraph cluster_21 { subgraph cluster_21 {
color=blue color=blue
93 [label="Enter block"]; 88 [label="Enter when branch condition "];
94 [label="Access variable R|<local>/x|"]; 89 [label="Access variable R|<local>/x|"];
95 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 90 [label="Access variable R|<local>/y|"];
96 [label="Access variable R|<local>/y|"]; 91 [label="Operator =="];
97 [label="Function call: R|<local>/y|.R|/A.foo|()"]; 92 [label="Exit when branch condition"];
98 [label="Exit block"];
} }
99 [label="Exit when branch result"]; 93 [label="Synthetic else branch"];
100 [label="Exit when"]; 94 [label="Enter when branch result"];
} subgraph cluster_22 {
subgraph cluster_22 {
color=blue
101 [label="Enter when"];
subgraph cluster_23 {
color=blue color=blue
102 [label="Enter when branch condition "]; 95 [label="Enter block"];
103 [label="Access variable R|<local>/x|"]; 96 [label="Access variable R|<local>/x|"];
104 [label="Access variable R|<local>/y|"]; 97 [label="Function call: R|<local>/x|.R|/A.foo|()"];
105 [label="Operator ==="]; 98 [label="Access variable R|<local>/y|"];
106 [label="Exit when branch condition"]; 99 [label="Function call: R|<local>/y|.R|/A.foo|()"];
100 [label="Exit block"];
} }
107 [label="Synthetic else branch"]; 101 [label="Exit when branch result"];
108 [label="Enter when branch result"]; 102 [label="Exit when"];
}
subgraph cluster_23 {
color=blue
103 [label="Enter when"];
subgraph cluster_24 { subgraph cluster_24 {
color=blue color=blue
109 [label="Enter block"]; 104 [label="Enter when branch condition "];
110 [label="Access variable R|<local>/x|"]; 105 [label="Access variable R|<local>/x|"];
111 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 106 [label="Access variable R|<local>/y|"];
112 [label="Access variable R|<local>/y|"]; 107 [label="Operator ==="];
113 [label="Function call: R|<local>/y|.R|/A.foo|()"]; 108 [label="Exit when branch condition"];
114 [label="Exit block"];
} }
115 [label="Exit when branch result"]; 109 [label="Synthetic else branch"];
116 [label="Exit when"]; 110 [label="Enter when branch result"];
subgraph cluster_25 {
color=blue
111 [label="Enter block"];
112 [label="Access variable R|<local>/x|"];
113 [label="Function call: R|<local>/x|.R|/A.foo|()"];
114 [label="Access variable R|<local>/y|"];
115 [label="Function call: R|<local>/y|.R|/A.foo|()"];
116 [label="Exit block"];
}
117 [label="Exit when branch result"];
118 [label="Exit when"];
} }
117 [label="Exit function test_3" style="filled" fillcolor=red]; 119 [label="Exit function test_3" style="filled" fillcolor=red];
} }
70 -> {71};
71 -> {72};
72 -> {73}; 72 -> {73};
73 -> {74}; 73 -> {74};
74 -> {75}; 74 -> {75};
75 -> {76}; 75 -> {76};
76 -> {78 77}; 76 -> {77};
77 -> {84}; 77 -> {78};
78 -> {79}; 78 -> {80 79};
79 -> {80}; 79 -> {86};
80 -> {117}; 80 -> {81};
80 -> {81} [style=dotted]; 81 -> {82};
81 -> {82} [style=dotted]; 82 -> {119};
82 -> {83} [style=dotted]; 82 -> {83} [style=dotted];
83 -> {84} [style=dotted]; 83 -> {84} [style=dotted];
84 -> {85}; 84 -> {85} [style=dotted];
85 -> {86}; 85 -> {86} [style=dotted];
86 -> {87}; 86 -> {87};
87 -> {88}; 87 -> {88};
88 -> {89}; 88 -> {89};
89 -> {90}; 89 -> {90};
90 -> {92 91}; 90 -> {91};
91 -> {100}; 91 -> {92};
92 -> {93}; 92 -> {94 93};
93 -> {94}; 93 -> {102};
94 -> {95}; 94 -> {95};
95 -> {96}; 95 -> {96};
96 -> {97}; 96 -> {97};
@@ -307,10 +313,10 @@ digraph equalsAndIdentity_kt {
103 -> {104}; 103 -> {104};
104 -> {105}; 104 -> {105};
105 -> {106}; 105 -> {106};
106 -> {108 107}; 106 -> {107};
107 -> {116}; 107 -> {108};
108 -> {109}; 108 -> {110 109};
109 -> {110}; 109 -> {118};
110 -> {111}; 110 -> {111};
111 -> {112}; 111 -> {112};
112 -> {113}; 112 -> {113};
@@ -318,5 +324,7 @@ digraph equalsAndIdentity_kt {
114 -> {115}; 114 -> {115};
115 -> {116}; 115 -> {116};
116 -> {117}; 116 -> {117};
117 -> {118};
118 -> {119};
} }
@@ -13,171 +13,187 @@ digraph inPlaceLambdas_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function bar" style="filled" fillcolor=red]; 2 [label="Enter class A" style="filled" fillcolor=red];
3 [label="Exit function bar" style="filled" fillcolor=red]; 3 [label="Exit class A" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3} [color=green];
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
4 [label="Enter function test_1" style="filled" fillcolor=red]; 4 [label="Enter function bar" style="filled" fillcolor=red];
subgraph cluster_3 { 5 [label="Exit function bar" style="filled" fillcolor=red];
color=blue
5 [label="Enter when"];
subgraph cluster_4 {
color=blue
6 [label="Enter when branch condition "];
7 [label="Access variable R|<local>/x|"];
8 [label="Type operator: (R|<local>/x| is R|A|)"];
9 [label="Exit when branch condition"];
}
10 [label="Synthetic else branch"];
11 [label="Enter when branch result"];
subgraph cluster_5 {
color=blue
12 [label="Enter block"];
13 [label="Postponed enter to lambda"];
subgraph cluster_6 {
color=blue
14 [label="Enter function anonymousFunction"];
15 [label="Access variable R|<local>/x|"];
16 [label="Function call: R|<local>/x|.R|/A.foo|()"];
17 [label="Exit function anonymousFunction"];
}
18 [label="Call arguments union" style="filled" fillcolor=yellow];
19 [label="Postponed exit from lambda"];
20 [label="Function call: R|kotlin/run|<R|kotlin/Unit|>(...)"];
21 [label="Exit block"];
}
22 [label="Exit when branch result"];
23 [label="Exit when"];
}
24 [label="Exit function test_1" style="filled" fillcolor=red];
} }
4 -> {5}; 4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {11 10};
10 -> {23};
11 -> {12};
12 -> {13};
13 -> {14};
13 -> {19} [color=red];
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {19} [color=green];
17 -> {18} [color=red];
18 -> {20} [color=red];
19 -> {20} [color=green];
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
subgraph cluster_7 { subgraph cluster_3 {
color=red color=red
25 [label="Enter function test_2" style="filled" fillcolor=red]; 6 [label="Enter class B" style="filled" fillcolor=red];
26 [label="Postponed enter to lambda"]; 7 [label="Exit class B" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
27 [label="Enter function anonymousFunction"];
28 [label="Access variable R|<local>/x|"];
29 [label="Type operator: (R|<local>/x| as R|B|)"];
30 [label="Exit function anonymousFunction"];
}
31 [label="Call arguments union" style="filled" fillcolor=yellow];
32 [label="Postponed exit from lambda"];
33 [label="Function call: R|kotlin/run|<R|B|>(...)"];
34 [label="Access variable R|<local>/x|"];
35 [label="Function call: R|<local>/x|.R|/B.bar|()"];
36 [label="Exit function test_2" style="filled" fillcolor=red];
} }
6 -> {7} [color=green];
subgraph cluster_4 {
color=red
8 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
9 [label="Enter when"];
subgraph cluster_6 {
color=blue
10 [label="Enter when branch condition "];
11 [label="Access variable R|<local>/x|"];
12 [label="Type operator: (R|<local>/x| is R|A|)"];
13 [label="Exit when branch condition"];
}
14 [label="Synthetic else branch"];
15 [label="Enter when branch result"];
subgraph cluster_7 {
color=blue
16 [label="Enter block"];
17 [label="Postponed enter to lambda"];
subgraph cluster_8 {
color=blue
18 [label="Enter function anonymousFunction"];
19 [label="Access variable R|<local>/x|"];
20 [label="Function call: R|<local>/x|.R|/A.foo|()"];
21 [label="Exit function anonymousFunction"];
}
22 [label="Call arguments union" style="filled" fillcolor=yellow];
23 [label="Postponed exit from lambda"];
24 [label="Function call: R|kotlin/run|<R|kotlin/Unit|>(...)"];
25 [label="Exit block"];
}
26 [label="Exit when branch result"];
27 [label="Exit when"];
}
28 [label="Exit function test_1" style="filled" fillcolor=red];
}
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {15 14};
14 -> {27};
15 -> {16};
16 -> {17};
17 -> {18};
17 -> {23} [color=red];
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {23} [color=green];
21 -> {22} [color=red];
22 -> {24} [color=red];
23 -> {24} [color=green];
24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {27};
26 -> {32} [color=red];
27 -> {28}; 27 -> {28};
28 -> {29};
29 -> {30};
30 -> {32} [color=green];
30 -> {31} [color=red];
31 -> {33} [color=red];
32 -> {33} [color=green];
33 -> {34};
34 -> {35};
35 -> {36};
subgraph cluster_9 { subgraph cluster_9 {
color=red color=red
37 [label="Enter function test_3" style="filled" fillcolor=red]; 29 [label="Enter function test_2" style="filled" fillcolor=red];
30 [label="Postponed enter to lambda"];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
38 [label="Enter when"]; 31 [label="Enter function anonymousFunction"];
subgraph cluster_11 { 32 [label="Access variable R|<local>/x|"];
color=blue 33 [label="Type operator: (R|<local>/x| as R|B|)"];
39 [label="Enter when branch condition "]; 34 [label="Exit function anonymousFunction"];
40 [label="Access variable R|<local>/x|"];
41 [label="Type operator: (R|<local>/x| is R|A|)"];
42 [label="Exit when branch condition"];
}
43 [label="Synthetic else branch"];
44 [label="Enter when branch result"];
subgraph cluster_12 {
color=blue
45 [label="Enter block"];
46 [label="Postponed enter to lambda"];
subgraph cluster_13 {
color=blue
47 [label="Enter function anonymousFunction"];
48 [label="Access variable R|<local>/x|"];
49 [label="Function call: R|<local>/x|.R|/A.foo|()"];
50 [label="Access variable R|<local>/x|"];
51 [label="Type operator: (R|<local>/x| as R|B|)"];
52 [label="Exit function anonymousFunction"];
}
53 [label="Call arguments union" style="filled" fillcolor=yellow];
54 [label="Postponed exit from lambda"];
55 [label="Function call: R|kotlin/run|<R|B|>(...)"];
56 [label="Access variable R|<local>/x|"];
57 [label="Function call: R|<local>/x|.R|/B.bar|()"];
58 [label="Exit block"];
}
59 [label="Exit when branch result"];
60 [label="Exit when"];
} }
61 [label="Exit function test_3" style="filled" fillcolor=red]; 35 [label="Call arguments union" style="filled" fillcolor=yellow];
36 [label="Postponed exit from lambda"];
37 [label="Function call: R|kotlin/run|<R|B|>(...)"];
38 [label="Access variable R|<local>/x|"];
39 [label="Function call: R|<local>/x|.R|/B.bar|()"];
40 [label="Exit function test_2" style="filled" fillcolor=red];
} }
29 -> {30};
30 -> {31};
30 -> {36} [color=red];
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {36} [color=green];
34 -> {35} [color=red];
35 -> {37} [color=red];
36 -> {37} [color=green];
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41};
subgraph cluster_11 {
color=red
41 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
42 [label="Enter when"];
subgraph cluster_13 {
color=blue
43 [label="Enter when branch condition "];
44 [label="Access variable R|<local>/x|"];
45 [label="Type operator: (R|<local>/x| is R|A|)"];
46 [label="Exit when branch condition"];
}
47 [label="Synthetic else branch"];
48 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
49 [label="Enter block"];
50 [label="Postponed enter to lambda"];
subgraph cluster_15 {
color=blue
51 [label="Enter function anonymousFunction"];
52 [label="Access variable R|<local>/x|"];
53 [label="Function call: R|<local>/x|.R|/A.foo|()"];
54 [label="Access variable R|<local>/x|"];
55 [label="Type operator: (R|<local>/x| as R|B|)"];
56 [label="Exit function anonymousFunction"];
}
57 [label="Call arguments union" style="filled" fillcolor=yellow];
58 [label="Postponed exit from lambda"];
59 [label="Function call: R|kotlin/run|<R|B|>(...)"];
60 [label="Access variable R|<local>/x|"];
61 [label="Function call: R|<local>/x|.R|/B.bar|()"];
62 [label="Exit block"];
}
63 [label="Exit when branch result"];
64 [label="Exit when"];
}
65 [label="Exit function test_3" style="filled" fillcolor=red];
}
41 -> {42}; 41 -> {42};
42 -> {44 43}; 42 -> {43};
43 -> {60}; 43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {48 47};
46 -> {54} [color=red]; 47 -> {64};
47 -> {48};
48 -> {49}; 48 -> {49};
49 -> {50}; 49 -> {50};
50 -> {51}; 50 -> {51};
50 -> {58} [color=red];
51 -> {52}; 51 -> {52};
52 -> {54} [color=green]; 52 -> {53};
52 -> {53} [color=red]; 53 -> {54};
53 -> {55} [color=red]; 54 -> {55};
54 -> {55} [color=green];
55 -> {56}; 55 -> {56};
56 -> {57}; 56 -> {58} [color=green];
57 -> {58}; 56 -> {57} [color=red];
58 -> {59}; 57 -> {59} [color=red];
58 -> {59} [color=green];
59 -> {60}; 59 -> {60};
60 -> {61}; 60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
} }
@@ -13,65 +13,89 @@ digraph dataFlowInfoFromWhileCondition_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function test" style="filled" fillcolor=red]; 2 [label="Enter class A" style="filled" fillcolor=red];
3 [label="Const: Null(null)"]; 3 [label="Exit class A" style="filled" fillcolor=red];
4 [label="Variable declaration: lvar a: R|A?|"]; }
subgraph cluster_2 {
color=blue 2 -> {3} [color=green];
5 [label="Enter while loop"];
subgraph cluster_3 { subgraph cluster_2 {
color=blue color=red
6 [label="Enter loop condition"]; 4 [label="Enter class B" style="filled" fillcolor=red];
subgraph cluster_4 { 5 [label="Exit class B" style="filled" fillcolor=red];
color=blue }
7 [label="Enter ||"];
8 [label="Access variable R|<local>/a|"]; 4 -> {5} [color=green];
9 [label="Type operator: (R|<local>/a| is R|B|)"];
10 [label="Exit left part of ||"]; subgraph cluster_3 {
11 [label="Enter right part of ||"]; color=red
12 [label="Access variable R|<local>/a|"]; 6 [label="Enter class C" style="filled" fillcolor=red];
13 [label="Type operator: (R|<local>/a| is R|C|)"]; 7 [label="Exit class C" style="filled" fillcolor=red];
14 [label="Exit ||"]; }
}
15 [label="Exit loop condition"]; 6 -> {7} [color=green];
}
subgraph cluster_5 { subgraph cluster_4 {
color=blue color=red
16 [label="Enter loop block"]; 8 [label="Enter function test" style="filled" fillcolor=red];
subgraph cluster_6 { 9 [label="Const: Null(null)"];
color=blue 10 [label="Variable declaration: lvar a: R|A?|"];
17 [label="Enter block"]; subgraph cluster_5 {
18 [label="Access variable R|<local>/a|"]; color=blue
19 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 11 [label="Enter while loop"];
20 [label="Exit block"]; subgraph cluster_6 {
} color=blue
21 [label="Exit loop block"]; 12 [label="Enter loop condition"];
} subgraph cluster_7 {
22 [label="Exit whileloop"]; color=blue
} 13 [label="Enter ||"];
23 [label="Exit function test" style="filled" fillcolor=red]; 14 [label="Access variable R|<local>/a|"];
15 [label="Type operator: (R|<local>/a| is R|B|)"];
16 [label="Exit left part of ||"];
17 [label="Enter right part of ||"];
18 [label="Access variable R|<local>/a|"];
19 [label="Type operator: (R|<local>/a| is R|C|)"];
20 [label="Exit ||"];
}
21 [label="Exit loop condition"];
}
subgraph cluster_8 {
color=blue
22 [label="Enter loop block"];
subgraph cluster_9 {
color=blue
23 [label="Enter block"];
24 [label="Access variable R|<local>/a|"];
25 [label="Function call: R|<local>/a|.R|/A.foo|()"];
26 [label="Exit block"];
}
27 [label="Exit loop block"];
}
28 [label="Exit whileloop"];
}
29 [label="Exit function test" style="filled" fillcolor=red];
} }
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {14 11}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {22 16}; 15 -> {16};
16 -> {17}; 16 -> {20 17};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {6}; 21 -> {28 22};
22 -> {23}; 22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {12};
28 -> {29};
} }
@@ -13,502 +13,508 @@ digraph endlessLoops_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function test_1" style="filled" fillcolor=red]; 2 [label="Enter class A" style="filled" fillcolor=red];
subgraph cluster_2 { 3 [label="Exit class A" style="filled" fillcolor=red];
color=blue }
3 [label="Enter while loop"];
subgraph cluster_3 { 2 -> {3} [color=green];
color=blue
4 [label="Enter loop condition"]; subgraph cluster_2 {
5 [label="Const: Boolean(true)"]; color=red
6 [label="Exit loop condition"]; 4 [label="Enter function test_1" style="filled" fillcolor=red];
} subgraph cluster_3 {
subgraph cluster_4 { color=blue
color=blue 5 [label="Enter while loop"];
7 [label="Enter loop block"]; subgraph cluster_4 {
subgraph cluster_5 { color=blue
color=blue 6 [label="Enter loop condition"];
8 [label="Enter block"]; 7 [label="Const: Boolean(true)"];
9 [label="Access variable R|<local>/x|"]; 8 [label="Exit loop condition"];
10 [label="Type operator: (R|<local>/x| as R|A|)"]; }
subgraph cluster_6 { subgraph cluster_5 {
color=blue color=blue
11 [label="Enter when"]; 9 [label="Enter loop block"];
subgraph cluster_7 { subgraph cluster_6 {
color=blue color=blue
12 [label="Enter when branch condition "]; 10 [label="Enter block"];
13 [label="Access variable R|<local>/b|"]; 11 [label="Access variable R|<local>/x|"];
14 [label="Exit when branch condition"]; 12 [label="Type operator: (R|<local>/x| as R|A|)"];
} subgraph cluster_7 {
15 [label="Synthetic else branch"]; color=blue
16 [label="Enter when branch result"]; 13 [label="Enter when"];
subgraph cluster_8 { subgraph cluster_8 {
color=blue color=blue
17 [label="Enter block"]; 14 [label="Enter when branch condition "];
18 [label="Jump: break@@@[Boolean(true)] "]; 15 [label="Access variable R|<local>/b|"];
19 [label="Stub" style="filled" fillcolor=gray]; 16 [label="Exit when branch condition"];
20 [label="Exit block" style="filled" fillcolor=gray]; }
} 17 [label="Synthetic else branch"];
21 [label="Exit when branch result" style="filled" fillcolor=gray]; 18 [label="Enter when branch result"];
22 [label="Exit when"]; subgraph cluster_9 {
} color=blue
23 [label="Exit block"]; 19 [label="Enter block"];
} 20 [label="Jump: break@@@[Boolean(true)] "];
24 [label="Exit loop block"]; 21 [label="Stub" style="filled" fillcolor=gray];
} 22 [label="Exit block" style="filled" fillcolor=gray];
25 [label="Exit whileloop"]; }
} 23 [label="Exit when branch result" style="filled" fillcolor=gray];
26 [label="Access variable R|<local>/x|"]; 24 [label="Exit when"];
27 [label="Function call: R|<local>/x|.R|/A.foo|()"]; }
28 [label="Exit function test_1" style="filled" fillcolor=red]; 25 [label="Exit block"];
}
26 [label="Exit loop block"];
}
27 [label="Exit whileloop"];
}
28 [label="Access variable R|<local>/x|"];
29 [label="Function call: R|<local>/x|.R|/A.foo|()"];
30 [label="Exit function test_1" style="filled" fillcolor=red];
} }
2 -> {3};
3 -> {4};
4 -> {5}; 4 -> {5};
5 -> {6}; 5 -> {6};
6 -> {7}; 6 -> {7};
6 -> {25} [style=dotted];
7 -> {8}; 7 -> {8};
8 -> {9}; 8 -> {9};
8 -> {27} [style=dotted];
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {16 15}; 14 -> {15};
15 -> {22}; 15 -> {16};
16 -> {17}; 16 -> {18 17};
17 -> {18}; 17 -> {24};
18 -> {25}; 18 -> {19};
18 -> {19} [style=dotted]; 19 -> {20};
19 -> {20} [style=dotted]; 20 -> {27};
20 -> {21} [style=dotted]; 20 -> {21} [style=dotted];
21 -> {22} [style=dotted]; 21 -> {22} [style=dotted];
22 -> {23}; 22 -> {23} [style=dotted];
23 -> {24}; 23 -> {24} [style=dotted];
24 -> {4}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {6};
27 -> {28}; 27 -> {28};
28 -> {29};
29 -> {30};
subgraph cluster_9 { subgraph cluster_10 {
color=red color=red
29 [label="Enter function test_2" style="filled" fillcolor=red]; 31 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_10 { subgraph cluster_11 {
color=blue color=blue
30 [label="Enter while loop"]; 32 [label="Enter while loop"];
subgraph cluster_11 {
color=blue
31 [label="Enter loop condition"];
32 [label="Const: Boolean(true)"];
33 [label="Exit loop condition"];
}
subgraph cluster_12 { subgraph cluster_12 {
color=blue color=blue
34 [label="Enter loop block"]; 33 [label="Enter loop condition"];
subgraph cluster_13 { 34 [label="Const: Boolean(true)"];
35 [label="Exit loop condition"];
}
subgraph cluster_13 {
color=blue
36 [label="Enter loop block"];
subgraph cluster_14 {
color=blue color=blue
35 [label="Enter block"]; 37 [label="Enter block"];
subgraph cluster_14 { subgraph cluster_15 {
color=blue color=blue
36 [label="Enter when"]; 38 [label="Enter when"];
subgraph cluster_15 {
color=blue
37 [label="Enter when branch condition "];
38 [label="Access variable R|<local>/b|"];
39 [label="Exit when branch condition"];
}
40 [label="Synthetic else branch"];
41 [label="Enter when branch result"];
subgraph cluster_16 { subgraph cluster_16 {
color=blue color=blue
42 [label="Enter block"]; 39 [label="Enter when branch condition "];
43 [label="Access variable R|<local>/x|"]; 40 [label="Access variable R|<local>/b|"];
44 [label="Type operator: (R|<local>/x| as R|A|)"]; 41 [label="Exit when branch condition"];
45 [label="Jump: break@@@[Boolean(true)] "];
46 [label="Stub" style="filled" fillcolor=gray];
47 [label="Exit block" style="filled" fillcolor=gray];
} }
48 [label="Exit when branch result" style="filled" fillcolor=gray]; 42 [label="Synthetic else branch"];
49 [label="Exit when"]; 43 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
44 [label="Enter block"];
45 [label="Access variable R|<local>/x|"];
46 [label="Type operator: (R|<local>/x| as R|A|)"];
47 [label="Jump: break@@@[Boolean(true)] "];
48 [label="Stub" style="filled" fillcolor=gray];
49 [label="Exit block" style="filled" fillcolor=gray];
}
50 [label="Exit when branch result" style="filled" fillcolor=gray];
51 [label="Exit when"];
} }
50 [label="Exit block"]; 52 [label="Exit block"];
} }
51 [label="Exit loop block"]; 53 [label="Exit loop block"];
} }
52 [label="Exit whileloop"]; 54 [label="Exit whileloop"];
} }
53 [label="Access variable R|<local>/x|"]; 55 [label="Access variable R|<local>/x|"];
54 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 56 [label="Function call: R|<local>/x|.R|/A.foo|()"];
55 [label="Exit function test_2" style="filled" fillcolor=red]; 57 [label="Exit function test_2" style="filled" fillcolor=red];
} }
29 -> {30};
30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
33 -> {52} [style=dotted];
34 -> {35}; 34 -> {35};
35 -> {36}; 35 -> {36};
35 -> {54} [style=dotted];
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {41 40}; 39 -> {40};
40 -> {49}; 40 -> {41};
41 -> {42}; 41 -> {43 42};
42 -> {43}; 42 -> {51};
43 -> {44}; 43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {52}; 45 -> {46};
45 -> {46} [style=dotted]; 46 -> {47};
46 -> {47} [style=dotted]; 47 -> {54};
47 -> {48} [style=dotted]; 47 -> {48} [style=dotted];
48 -> {49} [style=dotted]; 48 -> {49} [style=dotted];
49 -> {50}; 49 -> {50} [style=dotted];
50 -> {51}; 50 -> {51} [style=dotted];
51 -> {31}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {33};
54 -> {55}; 54 -> {55};
55 -> {56};
56 -> {57};
subgraph cluster_17 { subgraph cluster_18 {
color=red color=red
56 [label="Enter function test_3" style="filled" fillcolor=red]; 58 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_18 { subgraph cluster_19 {
color=blue color=blue
57 [label="Enter while loop"]; 59 [label="Enter while loop"];
subgraph cluster_19 {
color=blue
58 [label="Enter loop condition"];
59 [label="Const: Boolean(true)"];
60 [label="Exit loop condition"];
}
subgraph cluster_20 { subgraph cluster_20 {
color=blue color=blue
61 [label="Enter loop block"]; 60 [label="Enter loop condition"];
subgraph cluster_21 { 61 [label="Const: Boolean(true)"];
62 [label="Exit loop condition"];
}
subgraph cluster_21 {
color=blue
63 [label="Enter loop block"];
subgraph cluster_22 {
color=blue color=blue
62 [label="Enter block"]; 64 [label="Enter block"];
63 [label="Access variable R|<local>/x|"]; 65 [label="Access variable R|<local>/x|"];
64 [label="Type operator: (R|<local>/x| as R|A|)"]; 66 [label="Type operator: (R|<local>/x| as R|A|)"];
subgraph cluster_22 { subgraph cluster_23 {
color=blue color=blue
65 [label="Enter when"]; 67 [label="Enter when"];
subgraph cluster_23 {
color=blue
66 [label="Enter when branch condition "];
67 [label="Access variable R|<local>/b|"];
68 [label="Exit when branch condition"];
}
69 [label="Synthetic else branch"];
70 [label="Enter when branch result"];
subgraph cluster_24 { subgraph cluster_24 {
color=blue color=blue
71 [label="Enter block"]; 68 [label="Enter when branch condition "];
72 [label="Jump: break@@@[Boolean(true)] "]; 69 [label="Access variable R|<local>/b|"];
73 [label="Stub" style="filled" fillcolor=gray]; 70 [label="Exit when branch condition"];
74 [label="Exit block" style="filled" fillcolor=gray];
} }
75 [label="Exit when branch result" style="filled" fillcolor=gray]; 71 [label="Synthetic else branch"];
76 [label="Exit when"]; 72 [label="Enter when branch result"];
} subgraph cluster_25 {
subgraph cluster_25 {
color=blue
77 [label="Enter when"];
subgraph cluster_26 {
color=blue color=blue
78 [label="Enter when branch condition "]; 73 [label="Enter block"];
79 [label="Access variable R|<local>/b|"]; 74 [label="Jump: break@@@[Boolean(true)] "];
80 [label="Exit when branch condition"]; 75 [label="Stub" style="filled" fillcolor=gray];
76 [label="Exit block" style="filled" fillcolor=gray];
} }
81 [label="Synthetic else branch"]; 77 [label="Exit when branch result" style="filled" fillcolor=gray];
82 [label="Enter when branch result"]; 78 [label="Exit when"];
}
subgraph cluster_26 {
color=blue
79 [label="Enter when"];
subgraph cluster_27 { subgraph cluster_27 {
color=blue color=blue
83 [label="Enter block"]; 80 [label="Enter when branch condition "];
84 [label="Jump: break@@@[Boolean(true)] "]; 81 [label="Access variable R|<local>/b|"];
85 [label="Stub" style="filled" fillcolor=gray]; 82 [label="Exit when branch condition"];
86 [label="Exit block" style="filled" fillcolor=gray];
} }
87 [label="Exit when branch result" style="filled" fillcolor=gray]; 83 [label="Synthetic else branch"];
88 [label="Exit when"]; 84 [label="Enter when branch result"];
subgraph cluster_28 {
color=blue
85 [label="Enter block"];
86 [label="Jump: break@@@[Boolean(true)] "];
87 [label="Stub" style="filled" fillcolor=gray];
88 [label="Exit block" style="filled" fillcolor=gray];
}
89 [label="Exit when branch result" style="filled" fillcolor=gray];
90 [label="Exit when"];
} }
89 [label="Exit block"]; 91 [label="Exit block"];
} }
90 [label="Exit loop block"]; 92 [label="Exit loop block"];
} }
91 [label="Exit whileloop"]; 93 [label="Exit whileloop"];
} }
92 [label="Access variable R|<local>/x|"]; 94 [label="Access variable R|<local>/x|"];
93 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 95 [label="Function call: R|<local>/x|.R|/A.foo|()"];
94 [label="Exit function test_3" style="filled" fillcolor=red]; 96 [label="Exit function test_3" style="filled" fillcolor=red];
} }
56 -> {57};
57 -> {58};
58 -> {59}; 58 -> {59};
59 -> {60}; 59 -> {60};
60 -> {61}; 60 -> {61};
60 -> {91} [style=dotted];
61 -> {62}; 61 -> {62};
62 -> {63}; 62 -> {63};
62 -> {93} [style=dotted];
63 -> {64}; 63 -> {64};
64 -> {65}; 64 -> {65};
65 -> {66}; 65 -> {66};
66 -> {67}; 66 -> {67};
67 -> {68}; 67 -> {68};
68 -> {70 69}; 68 -> {69};
69 -> {76}; 69 -> {70};
70 -> {71}; 70 -> {72 71};
71 -> {72}; 71 -> {78};
72 -> {91}; 72 -> {73};
72 -> {73} [style=dotted]; 73 -> {74};
73 -> {74} [style=dotted]; 74 -> {93};
74 -> {75} [style=dotted]; 74 -> {75} [style=dotted];
75 -> {76} [style=dotted]; 75 -> {76} [style=dotted];
76 -> {77}; 76 -> {77} [style=dotted];
77 -> {78}; 77 -> {78} [style=dotted];
78 -> {79}; 78 -> {79};
79 -> {80}; 79 -> {80};
80 -> {82 81}; 80 -> {81};
81 -> {88}; 81 -> {82};
82 -> {83}; 82 -> {84 83};
83 -> {84}; 83 -> {90};
84 -> {91}; 84 -> {85};
84 -> {85} [style=dotted]; 85 -> {86};
85 -> {86} [style=dotted]; 86 -> {93};
86 -> {87} [style=dotted]; 86 -> {87} [style=dotted];
87 -> {88} [style=dotted]; 87 -> {88} [style=dotted];
88 -> {89}; 88 -> {89} [style=dotted];
89 -> {90}; 89 -> {90} [style=dotted];
90 -> {58}; 90 -> {91};
91 -> {92}; 91 -> {92};
92 -> {93}; 92 -> {60};
93 -> {94}; 93 -> {94};
94 -> {95};
95 -> {96};
subgraph cluster_28 { subgraph cluster_29 {
color=red color=red
95 [label="Enter function test_4" style="filled" fillcolor=red]; 97 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_29 { subgraph cluster_30 {
color=blue color=blue
96 [label="Enter while loop"]; 98 [label="Enter while loop"];
subgraph cluster_30 {
color=blue
97 [label="Enter loop condition"];
98 [label="Const: Boolean(true)"];
99 [label="Exit loop condition"];
}
subgraph cluster_31 { subgraph cluster_31 {
color=blue color=blue
100 [label="Enter loop block"]; 99 [label="Enter loop condition"];
subgraph cluster_32 { 100 [label="Const: Boolean(true)"];
101 [label="Exit loop condition"];
}
subgraph cluster_32 {
color=blue
102 [label="Enter loop block"];
subgraph cluster_33 {
color=blue color=blue
101 [label="Enter block"]; 103 [label="Enter block"];
subgraph cluster_33 { subgraph cluster_34 {
color=blue color=blue
102 [label="Enter when"]; 104 [label="Enter when"];
subgraph cluster_34 {
color=blue
103 [label="Enter when branch condition "];
104 [label="Access variable R|<local>/b|"];
105 [label="Exit when branch condition"];
}
106 [label="Synthetic else branch"];
107 [label="Enter when branch result"];
subgraph cluster_35 { subgraph cluster_35 {
color=blue color=blue
108 [label="Enter block"]; 105 [label="Enter when branch condition "];
109 [label="Access variable R|<local>/x|"]; 106 [label="Access variable R|<local>/b|"];
110 [label="Type operator: (R|<local>/x| as R|A|)"]; 107 [label="Exit when branch condition"];
111 [label="Jump: break@@@[Boolean(true)] "];
112 [label="Stub" style="filled" fillcolor=gray];
113 [label="Exit block" style="filled" fillcolor=gray];
} }
114 [label="Exit when branch result" style="filled" fillcolor=gray]; 108 [label="Synthetic else branch"];
115 [label="Exit when"]; 109 [label="Enter when branch result"];
subgraph cluster_36 {
color=blue
110 [label="Enter block"];
111 [label="Access variable R|<local>/x|"];
112 [label="Type operator: (R|<local>/x| as R|A|)"];
113 [label="Jump: break@@@[Boolean(true)] "];
114 [label="Stub" style="filled" fillcolor=gray];
115 [label="Exit block" style="filled" fillcolor=gray];
}
116 [label="Exit when branch result" style="filled" fillcolor=gray];
117 [label="Exit when"];
} }
116 [label="Jump: break@@@[Boolean(true)] "]; 118 [label="Jump: break@@@[Boolean(true)] "];
117 [label="Stub" style="filled" fillcolor=gray]; 119 [label="Stub" style="filled" fillcolor=gray];
118 [label="Exit block" style="filled" fillcolor=gray]; 120 [label="Exit block" style="filled" fillcolor=gray];
} }
119 [label="Exit loop block" style="filled" fillcolor=gray]; 121 [label="Exit loop block" style="filled" fillcolor=gray];
} }
120 [label="Exit whileloop"]; 122 [label="Exit whileloop"];
} }
121 [label="Access variable R|<local>/x|"]; 123 [label="Access variable R|<local>/x|"];
122 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"]; 124 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"];
123 [label="Exit function test_4" style="filled" fillcolor=red]; 125 [label="Exit function test_4" style="filled" fillcolor=red];
} }
95 -> {96};
96 -> {97};
97 -> {98}; 97 -> {98};
98 -> {99}; 98 -> {99};
99 -> {100}; 99 -> {100};
99 -> {120} [style=dotted];
100 -> {101}; 100 -> {101};
101 -> {102}; 101 -> {102};
101 -> {122} [style=dotted];
102 -> {103}; 102 -> {103};
103 -> {104}; 103 -> {104};
104 -> {105}; 104 -> {105};
105 -> {107 106}; 105 -> {106};
106 -> {115}; 106 -> {107};
107 -> {108}; 107 -> {109 108};
108 -> {109}; 108 -> {117};
109 -> {110}; 109 -> {110};
110 -> {111}; 110 -> {111};
111 -> {120}; 111 -> {112};
111 -> {112} [style=dotted]; 112 -> {113};
112 -> {113} [style=dotted]; 113 -> {122};
113 -> {114} [style=dotted]; 113 -> {114} [style=dotted];
114 -> {115} [style=dotted]; 114 -> {115} [style=dotted];
115 -> {116}; 115 -> {116} [style=dotted];
116 -> {120};
116 -> {117} [style=dotted]; 116 -> {117} [style=dotted];
117 -> {118} [style=dotted]; 117 -> {118};
118 -> {122};
118 -> {119} [style=dotted]; 118 -> {119} [style=dotted];
119 -> {97} [style=dotted]; 119 -> {120} [style=dotted];
120 -> {121}; 120 -> {121} [style=dotted];
121 -> {122}; 121 -> {99} [style=dotted];
122 -> {123}; 122 -> {123};
123 -> {124};
124 -> {125};
subgraph cluster_36 { subgraph cluster_37 {
color=red color=red
124 [label="Enter function test_5" style="filled" fillcolor=red]; 126 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_37 { subgraph cluster_38 {
color=blue color=blue
125 [label="Enter do-while loop"]; 127 [label="Enter do-while loop"];
subgraph cluster_38 { subgraph cluster_39 {
color=blue color=blue
126 [label="Enter loop block"]; 128 [label="Enter loop block"];
subgraph cluster_39 { subgraph cluster_40 {
color=blue color=blue
127 [label="Enter block"]; 129 [label="Enter block"];
subgraph cluster_40 { subgraph cluster_41 {
color=blue color=blue
128 [label="Enter when"]; 130 [label="Enter when"];
subgraph cluster_41 {
color=blue
129 [label="Enter when branch condition "];
130 [label="Access variable R|<local>/b|"];
131 [label="Exit when branch condition"];
}
132 [label="Synthetic else branch"];
133 [label="Enter when branch result"];
subgraph cluster_42 { subgraph cluster_42 {
color=blue color=blue
134 [label="Enter block"]; 131 [label="Enter when branch condition "];
135 [label="Access variable R|<local>/x|"]; 132 [label="Access variable R|<local>/b|"];
136 [label="Type operator: (R|<local>/x| as R|A|)"]; 133 [label="Exit when branch condition"];
137 [label="Jump: break@@@[Boolean(true)] "];
138 [label="Stub" style="filled" fillcolor=gray];
139 [label="Exit block" style="filled" fillcolor=gray];
} }
140 [label="Exit when branch result" style="filled" fillcolor=gray]; 134 [label="Synthetic else branch"];
141 [label="Exit when"]; 135 [label="Enter when branch result"];
subgraph cluster_43 {
color=blue
136 [label="Enter block"];
137 [label="Access variable R|<local>/x|"];
138 [label="Type operator: (R|<local>/x| as R|A|)"];
139 [label="Jump: break@@@[Boolean(true)] "];
140 [label="Stub" style="filled" fillcolor=gray];
141 [label="Exit block" style="filled" fillcolor=gray];
}
142 [label="Exit when branch result" style="filled" fillcolor=gray];
143 [label="Exit when"];
} }
142 [label="Exit block"]; 144 [label="Exit block"];
} }
143 [label="Exit loop block"]; 145 [label="Exit loop block"];
} }
subgraph cluster_43 { subgraph cluster_44 {
color=blue color=blue
144 [label="Enter loop condition"]; 146 [label="Enter loop condition"];
145 [label="Const: Boolean(true)"]; 147 [label="Const: Boolean(true)"];
146 [label="Exit loop condition"]; 148 [label="Exit loop condition"];
} }
147 [label="Exit do-whileloop"]; 149 [label="Exit do-whileloop"];
} }
148 [label="Access variable R|<local>/x|"]; 150 [label="Access variable R|<local>/x|"];
149 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 151 [label="Function call: R|<local>/x|.R|/A.foo|()"];
150 [label="Exit function test_5" style="filled" fillcolor=red]; 152 [label="Exit function test_5" style="filled" fillcolor=red];
} }
124 -> {125};
125 -> {126};
126 -> {127}; 126 -> {127};
127 -> {128}; 127 -> {128};
128 -> {129}; 128 -> {129};
129 -> {130}; 129 -> {130};
130 -> {131}; 130 -> {131};
131 -> {133 132}; 131 -> {132};
132 -> {141}; 132 -> {133};
133 -> {134}; 133 -> {135 134};
134 -> {135}; 134 -> {143};
135 -> {136}; 135 -> {136};
136 -> {137}; 136 -> {137};
137 -> {147}; 137 -> {138};
137 -> {138} [style=dotted]; 138 -> {139};
138 -> {139} [style=dotted]; 139 -> {149};
139 -> {140} [style=dotted]; 139 -> {140} [style=dotted];
140 -> {141} [style=dotted]; 140 -> {141} [style=dotted];
141 -> {142}; 141 -> {142} [style=dotted];
142 -> {143}; 142 -> {143} [style=dotted];
143 -> {144}; 143 -> {144};
144 -> {145}; 144 -> {145};
145 -> {146}; 145 -> {146};
146 -> {126}; 146 -> {147};
146 -> {147} [style=dotted];
147 -> {148}; 147 -> {148};
148 -> {149}; 148 -> {128};
148 -> {149} [style=dotted];
149 -> {150}; 149 -> {150};
150 -> {151};
151 -> {152};
subgraph cluster_44 { subgraph cluster_45 {
color=red color=red
151 [label="Enter function test_6" style="filled" fillcolor=red]; 153 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_45 { subgraph cluster_46 {
color=blue color=blue
152 [label="Enter do-while loop"]; 154 [label="Enter do-while loop"];
subgraph cluster_46 { subgraph cluster_47 {
color=blue color=blue
153 [label="Enter loop block"]; 155 [label="Enter loop block"];
subgraph cluster_47 { subgraph cluster_48 {
color=blue color=blue
154 [label="Enter block"]; 156 [label="Enter block"];
155 [label="Access variable R|<local>/x|"]; 157 [label="Access variable R|<local>/x|"];
156 [label="Type operator: (R|<local>/x| as R|A|)"]; 158 [label="Type operator: (R|<local>/x| as R|A|)"];
subgraph cluster_48 { subgraph cluster_49 {
color=blue color=blue
157 [label="Enter when"]; 159 [label="Enter when"];
subgraph cluster_49 {
color=blue
158 [label="Enter when branch condition "];
159 [label="Access variable R|<local>/b|"];
160 [label="Exit when branch condition"];
}
161 [label="Synthetic else branch"];
162 [label="Enter when branch result"];
subgraph cluster_50 { subgraph cluster_50 {
color=blue color=blue
163 [label="Enter block"]; 160 [label="Enter when branch condition "];
164 [label="Jump: break@@@[Boolean(true)] "]; 161 [label="Access variable R|<local>/b|"];
165 [label="Stub" style="filled" fillcolor=gray]; 162 [label="Exit when branch condition"];
166 [label="Exit block" style="filled" fillcolor=gray];
} }
167 [label="Exit when branch result" style="filled" fillcolor=gray]; 163 [label="Synthetic else branch"];
168 [label="Exit when"]; 164 [label="Enter when branch result"];
subgraph cluster_51 {
color=blue
165 [label="Enter block"];
166 [label="Jump: break@@@[Boolean(true)] "];
167 [label="Stub" style="filled" fillcolor=gray];
168 [label="Exit block" style="filled" fillcolor=gray];
}
169 [label="Exit when branch result" style="filled" fillcolor=gray];
170 [label="Exit when"];
} }
169 [label="Exit block"]; 171 [label="Exit block"];
} }
170 [label="Exit loop block"]; 172 [label="Exit loop block"];
} }
subgraph cluster_51 { subgraph cluster_52 {
color=blue color=blue
171 [label="Enter loop condition"]; 173 [label="Enter loop condition"];
172 [label="Const: Boolean(true)"]; 174 [label="Const: Boolean(true)"];
173 [label="Exit loop condition"]; 175 [label="Exit loop condition"];
} }
174 [label="Exit do-whileloop"]; 176 [label="Exit do-whileloop"];
} }
175 [label="Access variable R|<local>/x|"]; 177 [label="Access variable R|<local>/x|"];
176 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 178 [label="Function call: R|<local>/x|.R|/A.foo|()"];
177 [label="Exit function test_6" style="filled" fillcolor=red]; 179 [label="Exit function test_6" style="filled" fillcolor=red];
} }
151 -> {152};
152 -> {153};
153 -> {154}; 153 -> {154};
154 -> {155}; 154 -> {155};
155 -> {156}; 155 -> {156};
@@ -516,59 +522,59 @@ digraph endlessLoops_kt {
157 -> {158}; 157 -> {158};
158 -> {159}; 158 -> {159};
159 -> {160}; 159 -> {160};
160 -> {162 161}; 160 -> {161};
161 -> {168}; 161 -> {162};
162 -> {163}; 162 -> {164 163};
163 -> {164}; 163 -> {170};
164 -> {174}; 164 -> {165};
164 -> {165} [style=dotted]; 165 -> {166};
165 -> {166} [style=dotted]; 166 -> {176};
166 -> {167} [style=dotted]; 166 -> {167} [style=dotted];
167 -> {168} [style=dotted]; 167 -> {168} [style=dotted];
168 -> {169}; 168 -> {169} [style=dotted];
169 -> {170}; 169 -> {170} [style=dotted];
170 -> {171}; 170 -> {171};
171 -> {172}; 171 -> {172};
172 -> {173}; 172 -> {173};
173 -> {153}; 173 -> {174};
173 -> {174} [style=dotted];
174 -> {175}; 174 -> {175};
175 -> {176}; 175 -> {155};
175 -> {176} [style=dotted];
176 -> {177}; 176 -> {177};
177 -> {178};
178 -> {179};
subgraph cluster_52 { subgraph cluster_53 {
color=red color=red
178 [label="Enter function test_7" style="filled" fillcolor=red]; 180 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_53 { subgraph cluster_54 {
color=blue color=blue
179 [label="Enter do-while loop"]; 181 [label="Enter do-while loop"];
subgraph cluster_54 { subgraph cluster_55 {
color=blue color=blue
180 [label="Enter loop block"]; 182 [label="Enter loop block"];
subgraph cluster_55 { subgraph cluster_56 {
color=blue color=blue
181 [label="Enter block"]; 183 [label="Enter block"];
182 [label="Access variable R|<local>/x|"]; 184 [label="Access variable R|<local>/x|"];
183 [label="Type operator: (R|<local>/x| as R|A|)"]; 185 [label="Type operator: (R|<local>/x| as R|A|)"];
184 [label="Exit block"]; 186 [label="Exit block"];
} }
185 [label="Exit loop block"]; 187 [label="Exit loop block"];
} }
subgraph cluster_56 { subgraph cluster_57 {
color=blue color=blue
186 [label="Enter loop condition"]; 188 [label="Enter loop condition"];
187 [label="Const: Boolean(true)"]; 189 [label="Const: Boolean(true)"];
188 [label="Exit loop condition"]; 190 [label="Exit loop condition"];
} }
189 [label="Exit do-whileloop" style="filled" fillcolor=gray]; 191 [label="Exit do-whileloop" style="filled" fillcolor=gray];
} }
190 [label="Access variable R|<local>/x|" style="filled" fillcolor=gray]; 192 [label="Access variable R|<local>/x|" style="filled" fillcolor=gray];
191 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=gray]; 193 [label="Function call: R|<local>/x|.R|/A.foo|()" style="filled" fillcolor=gray];
192 [label="Exit function test_7" style="filled" fillcolor=red style="filled" fillcolor=gray]; 194 [label="Exit function test_7" style="filled" fillcolor=red style="filled" fillcolor=gray];
} }
178 -> {179};
179 -> {180};
180 -> {181}; 180 -> {181};
181 -> {182}; 181 -> {182};
182 -> {183}; 182 -> {183};
@@ -577,10 +583,12 @@ digraph endlessLoops_kt {
185 -> {186}; 185 -> {186};
186 -> {187}; 186 -> {187};
187 -> {188}; 187 -> {188};
188 -> {180}; 188 -> {189};
188 -> {189} [style=dotted]; 189 -> {190};
189 -> {190} [style=dotted]; 190 -> {182};
190 -> {191} [style=dotted]; 190 -> {191} [style=dotted];
191 -> {192} [style=dotted]; 191 -> {192} [style=dotted];
192 -> {193} [style=dotted];
193 -> {194} [style=dotted];
} }
@@ -13,49 +13,61 @@ digraph multipleCasts_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function foo" style="filled" fillcolor=red]; 2 [label="Enter class A" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red]; 3 [label="Exit class A" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3} [color=green];
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
4 [label="Enter function getAny" style="filled" fillcolor=red]; 4 [label="Enter function foo" style="filled" fillcolor=red];
5 [label="Const: Null(null)"]; 5 [label="Exit function foo" style="filled" fillcolor=red];
6 [label="Jump: ^getAny Null(null)"];
7 [label="Stub" style="filled" fillcolor=gray];
8 [label="Exit function getAny" style="filled" fillcolor=red];
} }
4 -> {5}; 4 -> {5};
5 -> {6};
6 -> {8};
6 -> {7} [style=dotted];
7 -> {8} [style=dotted];
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
9 [label="Enter function test_0" style="filled" fillcolor=red]; 6 [label="Enter class B" style="filled" fillcolor=red];
10 [label="Function call: R|/getAny|()"]; 7 [label="Exit class B" style="filled" fillcolor=red];
11 [label="Variable declaration: lval a: R|kotlin/Any?|"];
12 [label="Function call: R|/getAny|()"];
13 [label="Variable declaration: lval b: R|kotlin/Any?|"];
14 [label="Access variable R|<local>/a|"];
15 [label="Type operator: (R|<local>/a| as R|A|)"];
16 [label="Access variable R|<local>/a|"];
17 [label="Function call: R|<local>/a|.R|/A.foo|()"];
18 [label="Access variable R|<local>/b|"];
19 [label="Type operator: (R|<local>/b| as R|B|)"];
20 [label="Access variable R|<local>/b|"];
21 [label="Function call: R|<local>/b|.R|/B.foo|()"];
22 [label="Exit function test_0" style="filled" fillcolor=red];
} }
6 -> {7} [color=green];
subgraph cluster_4 {
color=red
8 [label="Enter function getAny" style="filled" fillcolor=red];
9 [label="Const: Null(null)"];
10 [label="Jump: ^getAny Null(null)"];
11 [label="Stub" style="filled" fillcolor=gray];
12 [label="Exit function getAny" style="filled" fillcolor=red];
}
8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {12};
11 -> {12}; 10 -> {11} [style=dotted];
12 -> {13}; 11 -> {12} [style=dotted];
subgraph cluster_5 {
color=red
13 [label="Enter function test_0" style="filled" fillcolor=red];
14 [label="Function call: R|/getAny|()"];
15 [label="Variable declaration: lval a: R|kotlin/Any?|"];
16 [label="Function call: R|/getAny|()"];
17 [label="Variable declaration: lval b: R|kotlin/Any?|"];
18 [label="Access variable R|<local>/a|"];
19 [label="Type operator: (R|<local>/a| as R|A|)"];
20 [label="Access variable R|<local>/a|"];
21 [label="Function call: R|<local>/a|.R|/A.foo|()"];
22 [label="Access variable R|<local>/b|"];
23 [label="Type operator: (R|<local>/b| as R|B|)"];
24 [label="Access variable R|<local>/b|"];
25 [label="Function call: R|<local>/b|.R|/B.foo|()"];
26 [label="Exit function test_0" style="filled" fillcolor=red];
}
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
@@ -65,75 +77,79 @@ digraph multipleCasts_kt {
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23};
subgraph cluster_4 {
color=red
23 [label="Enter function test_1" style="filled" fillcolor=red];
24 [label="Function call: R|/getAny|()"];
25 [label="Variable declaration: lval a: R|kotlin/Any?|"];
26 [label="Function call: R|/getAny|()"];
27 [label="Variable declaration: lval b: R|kotlin/Any?|"];
subgraph cluster_5 {
color=blue
28 [label="Enter when"];
subgraph cluster_6 {
color=blue
29 [label="Enter when branch condition "];
subgraph cluster_7 {
color=blue
30 [label="Enter &&"];
31 [label="Access variable R|<local>/a|"];
32 [label="Type operator: (R|<local>/a| is R|A|)"];
33 [label="Exit left part of &&"];
34 [label="Enter right part of &&"];
35 [label="Access variable R|<local>/b|"];
36 [label="Type operator: (R|<local>/b| is R|B|)"];
37 [label="Exit &&"];
}
38 [label="Exit when branch condition"];
}
39 [label="Synthetic else branch"];
40 [label="Enter when branch result"];
subgraph cluster_8 {
color=blue
41 [label="Enter block"];
42 [label="Access variable R|<local>/a|"];
43 [label="Function call: R|<local>/a|.R|/A.foo|()"];
44 [label="Access variable R|<local>/b|"];
45 [label="Function call: R|<local>/b|.R|/B.foo|()"];
46 [label="Exit block"];
}
47 [label="Exit when branch result"];
48 [label="Exit when"];
}
49 [label="Exit function test_1" style="filled" fillcolor=red];
}
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27};
subgraph cluster_6 {
color=red
27 [label="Enter function test_1" style="filled" fillcolor=red];
28 [label="Function call: R|/getAny|()"];
29 [label="Variable declaration: lval a: R|kotlin/Any?|"];
30 [label="Function call: R|/getAny|()"];
31 [label="Variable declaration: lval b: R|kotlin/Any?|"];
subgraph cluster_7 {
color=blue
32 [label="Enter when"];
subgraph cluster_8 {
color=blue
33 [label="Enter when branch condition "];
subgraph cluster_9 {
color=blue
34 [label="Enter &&"];
35 [label="Access variable R|<local>/a|"];
36 [label="Type operator: (R|<local>/a| is R|A|)"];
37 [label="Exit left part of &&"];
38 [label="Enter right part of &&"];
39 [label="Access variable R|<local>/b|"];
40 [label="Type operator: (R|<local>/b| is R|B|)"];
41 [label="Exit &&"];
}
42 [label="Exit when branch condition"];
}
43 [label="Synthetic else branch"];
44 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
45 [label="Enter block"];
46 [label="Access variable R|<local>/a|"];
47 [label="Function call: R|<local>/a|.R|/A.foo|()"];
48 [label="Access variable R|<local>/b|"];
49 [label="Function call: R|<local>/b|.R|/B.foo|()"];
50 [label="Exit block"];
}
51 [label="Exit when branch result"];
52 [label="Exit when"];
}
53 [label="Exit function test_1" style="filled" fillcolor=red];
}
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {37 34}; 33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {36}; 35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {41 38};
38 -> {40 39}; 38 -> {39};
39 -> {48}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {42};
42 -> {43}; 42 -> {44 43};
43 -> {44}; 43 -> {52};
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
} }
File diff suppressed because it is too large Load Diff
@@ -23,95 +23,107 @@ digraph implicitReceivers_kt {
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
5 [label="Enter function <init>" style="filled" fillcolor=red]; 5 [label="Enter class A" style="filled" fillcolor=red];
6 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 6 [label="Exit class A" style="filled" fillcolor=red];
7 [label="Exit function <init>" style="filled" fillcolor=red];
} }
5 -> {6}; 5 -> {6} [color=green];
6 -> {7};
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
8 [label="Enter function bar" style="filled" fillcolor=red]; 7 [label="Enter function <init>" style="filled" fillcolor=red];
9 [label="Exit function bar" style="filled" fillcolor=red]; 8 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
9 [label="Exit function <init>" style="filled" fillcolor=red];
} }
7 -> {8};
8 -> {9}; 8 -> {9};
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
10 [label="Enter function with" style="filled" fillcolor=red]; 10 [label="Enter function bar" style="filled" fillcolor=red];
11 [label="Exit function with" style="filled" fillcolor=red]; 11 [label="Exit function bar" style="filled" fillcolor=red];
} }
10 -> {11}; 10 -> {11};
subgraph cluster_5 { subgraph cluster_5 {
color=red color=red
12 [label="Enter function test_1" style="filled" fillcolor=red]; 12 [label="Enter class B" style="filled" fillcolor=red];
subgraph cluster_6 { 13 [label="Exit class B" style="filled" fillcolor=red];
color=blue }
13 [label="Enter when"];
subgraph cluster_7 { 12 -> {13} [color=green];
color=blue
14 [label="Enter when branch condition "]; subgraph cluster_6 {
15 [label="Access variable this@R|/test_1|"]; color=red
16 [label="Type operator: (this@R|/test_1| is R|A|)"]; 14 [label="Enter function with" style="filled" fillcolor=red];
17 [label="Exit when branch condition"]; 15 [label="Exit function with" style="filled" fillcolor=red];
}
subgraph cluster_8 {
color=blue
18 [label="Enter when branch condition else"];
19 [label="Exit when branch condition"];
}
20 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
21 [label="Enter block"];
22 [label="Access variable this@R|/test_1|"];
23 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"];
24 [label="Function call: <Unresolved name: foo>#()"];
25 [label="Exit block"];
}
26 [label="Exit when branch result"];
27 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
28 [label="Enter block"];
29 [label="Access variable this@R|/test_1|"];
30 [label="Function call: this@R|/test_1|.R|/A.foo|()"];
31 [label="Function call: this@R|/test_1|.R|/A.foo|()"];
32 [label="Exit block"];
}
33 [label="Exit when branch result"];
34 [label="Exit when"];
}
35 [label="Access variable this@R|/test_1|"];
36 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"];
37 [label="Function call: <Unresolved name: foo>#()"];
38 [label="Exit function test_1" style="filled" fillcolor=red];
} }
12 -> {13};
13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16};
subgraph cluster_7 {
color=red
16 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
17 [label="Enter when"];
subgraph cluster_9 {
color=blue
18 [label="Enter when branch condition "];
19 [label="Access variable this@R|/test_1|"];
20 [label="Type operator: (this@R|/test_1| is R|A|)"];
21 [label="Exit when branch condition"];
}
subgraph cluster_10 {
color=blue
22 [label="Enter when branch condition else"];
23 [label="Exit when branch condition"];
}
24 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
25 [label="Enter block"];
26 [label="Access variable this@R|/test_1|"];
27 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"];
28 [label="Function call: <Unresolved name: foo>#()"];
29 [label="Exit block"];
}
30 [label="Exit when branch result"];
31 [label="Enter when branch result"];
subgraph cluster_12 {
color=blue
32 [label="Enter block"];
33 [label="Access variable this@R|/test_1|"];
34 [label="Function call: this@R|/test_1|.R|/A.foo|()"];
35 [label="Function call: this@R|/test_1|.R|/A.foo|()"];
36 [label="Exit block"];
}
37 [label="Exit when branch result"];
38 [label="Exit when"];
}
39 [label="Access variable this@R|/test_1|"];
40 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"];
41 [label="Function call: <Unresolved name: foo>#()"];
42 [label="Exit function test_1" style="filled" fillcolor=red];
}
16 -> {17}; 16 -> {17};
17 -> {27 18}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {31 22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {34}; 26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {38};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
@@ -119,72 +131,72 @@ digraph implicitReceivers_kt {
35 -> {36}; 35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {38};
38 -> {39};
subgraph cluster_11 {
color=red
39 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
40 [label="Enter when"];
subgraph cluster_13 {
color=blue
41 [label="Enter when branch condition "];
42 [label="Access variable this@R|/test_2|"];
43 [label="Type operator: (this@R|/test_2| !is R|A|)"];
44 [label="Exit when branch condition"];
}
subgraph cluster_14 {
color=blue
45 [label="Enter when branch condition else"];
46 [label="Exit when branch condition"];
}
47 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
48 [label="Enter block"];
49 [label="Access variable this@R|/test_2|"];
50 [label="Function call: this@R|/test_2|.R|/A.foo|()"];
51 [label="Function call: this@R|/test_2|.R|/A.foo|()"];
52 [label="Exit block"];
}
53 [label="Exit when branch result"];
54 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
55 [label="Enter block"];
56 [label="Access variable this@R|/test_2|"];
57 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"];
58 [label="Function call: <Unresolved name: foo>#()"];
59 [label="Exit block"];
}
60 [label="Exit when branch result"];
61 [label="Exit when"];
}
62 [label="Access variable this@R|/test_2|"];
63 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"];
64 [label="Function call: <Unresolved name: foo>#()"];
65 [label="Exit function test_2" style="filled" fillcolor=red];
}
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {42};
42 -> {43};
subgraph cluster_13 {
color=red
43 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
44 [label="Enter when"];
subgraph cluster_15 {
color=blue
45 [label="Enter when branch condition "];
46 [label="Access variable this@R|/test_2|"];
47 [label="Type operator: (this@R|/test_2| !is R|A|)"];
48 [label="Exit when branch condition"];
}
subgraph cluster_16 {
color=blue
49 [label="Enter when branch condition else"];
50 [label="Exit when branch condition"];
}
51 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
52 [label="Enter block"];
53 [label="Access variable this@R|/test_2|"];
54 [label="Function call: this@R|/test_2|.R|/A.foo|()"];
55 [label="Function call: this@R|/test_2|.R|/A.foo|()"];
56 [label="Exit block"];
}
57 [label="Exit when branch result"];
58 [label="Enter when branch result"];
subgraph cluster_18 {
color=blue
59 [label="Enter block"];
60 [label="Access variable this@R|/test_2|"];
61 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"];
62 [label="Function call: <Unresolved name: foo>#()"];
63 [label="Exit block"];
}
64 [label="Exit when branch result"];
65 [label="Exit when"];
}
66 [label="Access variable this@R|/test_2|"];
67 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"];
68 [label="Function call: <Unresolved name: foo>#()"];
69 [label="Exit function test_2" style="filled" fillcolor=red];
}
43 -> {44}; 43 -> {44};
44 -> {54 45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {58 49};
49 -> {50}; 49 -> {50};
50 -> {51}; 50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {61}; 53 -> {54};
54 -> {55}; 54 -> {55};
55 -> {56}; 55 -> {56};
56 -> {57}; 56 -> {57};
57 -> {58}; 57 -> {65};
58 -> {59}; 58 -> {59};
59 -> {60}; 59 -> {60};
60 -> {61}; 60 -> {61};
@@ -192,197 +204,197 @@ digraph implicitReceivers_kt {
62 -> {63}; 62 -> {63};
63 -> {64}; 63 -> {64};
64 -> {65}; 64 -> {65};
65 -> {66};
subgraph cluster_17 {
color=red
66 [label="Enter function test_3" style="filled" fillcolor=red];
67 [label="Access variable R|<local>/a|"];
68 [label="Postponed enter to lambda"];
subgraph cluster_18 {
color=blue
69 [label="Enter function anonymousFunction"];
70 [label="Access variable R|<local>/b|"];
71 [label="Postponed enter to lambda"];
subgraph cluster_19 {
color=blue
72 [label="Enter function anonymousFunction"];
73 [label="Access variable R|<local>/c|"];
74 [label="Postponed enter to lambda"];
subgraph cluster_20 {
color=blue
75 [label="Enter function anonymousFunction"];
76 [label="Access variable this@R|special/anonymous|"];
77 [label="Type operator: (this@R|special/anonymous| as R|A|)"];
78 [label="Access variable this@R|special/anonymous|"];
79 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
80 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
81 [label="Exit function anonymousFunction"];
}
82 [label="Call arguments union" style="filled" fillcolor=yellow];
83 [label="Postponed exit from lambda"];
84 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
85 [label="Access variable this@R|special/anonymous|"];
86 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
87 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
88 [label="Exit function anonymousFunction"];
}
89 [label="Postponed exit from lambda"];
90 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
91 [label="Exit function anonymousFunction"];
}
92 [label="Call arguments union" style="filled" fillcolor=yellow];
93 [label="Postponed exit from lambda"];
94 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
95 [label="Exit function test_3" style="filled" fillcolor=red];
}
66 -> {67}; 66 -> {67};
67 -> {68}; 67 -> {68};
68 -> {69}; 68 -> {69};
68 -> {93} [color=red];
69 -> {70}; subgraph cluster_19 {
color=red
70 [label="Enter function test_3" style="filled" fillcolor=red];
71 [label="Access variable R|<local>/a|"];
72 [label="Postponed enter to lambda"];
subgraph cluster_20 {
color=blue
73 [label="Enter function anonymousFunction"];
74 [label="Access variable R|<local>/b|"];
75 [label="Postponed enter to lambda"];
subgraph cluster_21 {
color=blue
76 [label="Enter function anonymousFunction"];
77 [label="Access variable R|<local>/c|"];
78 [label="Postponed enter to lambda"];
subgraph cluster_22 {
color=blue
79 [label="Enter function anonymousFunction"];
80 [label="Access variable this@R|special/anonymous|"];
81 [label="Type operator: (this@R|special/anonymous| as R|A|)"];
82 [label="Access variable this@R|special/anonymous|"];
83 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
84 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
85 [label="Exit function anonymousFunction"];
}
86 [label="Call arguments union" style="filled" fillcolor=yellow];
87 [label="Postponed exit from lambda"];
88 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
89 [label="Access variable this@R|special/anonymous|"];
90 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
91 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
92 [label="Exit function anonymousFunction"];
}
93 [label="Postponed exit from lambda"];
94 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
95 [label="Exit function anonymousFunction"];
}
96 [label="Call arguments union" style="filled" fillcolor=yellow];
97 [label="Postponed exit from lambda"];
98 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
99 [label="Exit function test_3" style="filled" fillcolor=red];
}
70 -> {71}; 70 -> {71};
71 -> {72}; 71 -> {72};
71 -> {89} [color=red];
72 -> {73}; 72 -> {73};
72 -> {97} [color=red];
73 -> {74}; 73 -> {74};
74 -> {75}; 74 -> {75};
74 -> {83} [color=red];
75 -> {76}; 75 -> {76};
75 -> {93} [color=red];
76 -> {77}; 76 -> {77};
77 -> {78}; 77 -> {78};
78 -> {79}; 78 -> {79};
78 -> {87} [color=red];
79 -> {80}; 79 -> {80};
80 -> {81}; 80 -> {81};
81 -> {83} [color=green]; 81 -> {82};
81 -> {82} [color=red]; 82 -> {83};
82 -> {84} [color=red]; 83 -> {84};
83 -> {84} [color=green];
84 -> {85}; 84 -> {85};
85 -> {86}; 85 -> {87} [color=green];
86 -> {87}; 85 -> {86} [color=red];
87 -> {88}; 86 -> {88} [color=red];
88 -> {89} [color=green]; 87 -> {88} [color=green];
88 -> {92} [color=red]; 88 -> {89};
89 -> {90}; 89 -> {90};
90 -> {91}; 90 -> {91};
91 -> {93} [color=green]; 91 -> {92};
91 -> {92} [color=red]; 92 -> {93} [color=green];
92 -> {94} [color=red]; 92 -> {96} [color=red];
93 -> {94} [color=green]; 93 -> {94};
94 -> {95}; 94 -> {95};
95 -> {97} [color=green];
95 -> {96} [color=red];
96 -> {98} [color=red];
97 -> {98} [color=green];
98 -> {99};
subgraph cluster_21 { subgraph cluster_23 {
color=red color=red
96 [label="Enter function test_4" style="filled" fillcolor=red]; 100 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_22 { subgraph cluster_24 {
color=blue color=blue
97 [label="Enter when"]; 101 [label="Enter when"];
subgraph cluster_23 {
color=blue
98 [label="Enter when branch condition "];
99 [label="Access variable this@R|/test_4|"];
100 [label="Type operator: (this@R|/test_4| !is R|A|)"];
101 [label="Exit when branch condition"];
}
subgraph cluster_24 {
color=blue
102 [label="Enter when branch condition else"];
103 [label="Exit when branch condition"];
}
104 [label="Enter when branch result"];
subgraph cluster_25 { subgraph cluster_25 {
color=blue color=blue
105 [label="Enter block"]; 102 [label="Enter when branch condition "];
subgraph cluster_26 { 103 [label="Access variable this@R|/test_4|"];
104 [label="Type operator: (this@R|/test_4| !is R|A|)"];
105 [label="Exit when branch condition"];
}
subgraph cluster_26 {
color=blue
106 [label="Enter when branch condition else"];
107 [label="Exit when branch condition"];
}
108 [label="Enter when branch result"];
subgraph cluster_27 {
color=blue
109 [label="Enter block"];
subgraph cluster_28 {
color=blue color=blue
106 [label="Enter when"]; 110 [label="Enter when"];
subgraph cluster_27 {
color=blue
107 [label="Enter when branch condition "];
108 [label="Access variable this@R|/test_4|"];
109 [label="Type operator: (this@R|/test_4| !is R|B|)"];
110 [label="Exit when branch condition"];
}
subgraph cluster_28 {
color=blue
111 [label="Enter when branch condition else"];
112 [label="Exit when branch condition"];
}
113 [label="Enter when branch result"];
subgraph cluster_29 { subgraph cluster_29 {
color=blue color=blue
114 [label="Enter block"]; 111 [label="Enter when branch condition "];
115 [label="Access variable this@R|/test_4|"]; 112 [label="Access variable this@R|/test_4|"];
116 [label="Function call: this@R|/test_4|.R|/A.foo|()"]; 113 [label="Type operator: (this@R|/test_4| !is R|B|)"];
117 [label="Function call: this@R|/test_4|.R|/A.foo|()"]; 114 [label="Exit when branch condition"];
118 [label="Access variable this@R|/test_4|"];
119 [label="Function call: this@R|/test_4|.R|/B.bar|()"];
120 [label="Function call: this@R|/test_4|.R|/B.bar|()"];
121 [label="Exit block"];
} }
122 [label="Exit when branch result"];
123 [label="Enter when branch result"];
subgraph cluster_30 { subgraph cluster_30 {
color=blue color=blue
124 [label="Enter block"]; 115 [label="Enter when branch condition else"];
125 [label="Access variable this@R|/test_4|"]; 116 [label="Exit when branch condition"];
126 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"];
127 [label="Function call: <Unresolved name: bar>#()"];
128 [label="Access variable this@R|/test_4|"];
129 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
130 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
131 [label="Exit block"];
} }
132 [label="Exit when branch result"]; 117 [label="Enter when branch result"];
133 [label="Exit when"]; subgraph cluster_31 {
color=blue
118 [label="Enter block"];
119 [label="Access variable this@R|/test_4|"];
120 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
121 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
122 [label="Access variable this@R|/test_4|"];
123 [label="Function call: this@R|/test_4|.R|/B.bar|()"];
124 [label="Function call: this@R|/test_4|.R|/B.bar|()"];
125 [label="Exit block"];
}
126 [label="Exit when branch result"];
127 [label="Enter when branch result"];
subgraph cluster_32 {
color=blue
128 [label="Enter block"];
129 [label="Access variable this@R|/test_4|"];
130 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"];
131 [label="Function call: <Unresolved name: bar>#()"];
132 [label="Access variable this@R|/test_4|"];
133 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
134 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
135 [label="Exit block"];
}
136 [label="Exit when branch result"];
137 [label="Exit when"];
} }
134 [label="Exit block"]; 138 [label="Exit block"];
} }
135 [label="Exit when branch result"]; 139 [label="Exit when branch result"];
136 [label="Enter when branch result"]; 140 [label="Enter when branch result"];
subgraph cluster_31 { subgraph cluster_33 {
color=blue color=blue
137 [label="Enter block"]; 141 [label="Enter block"];
138 [label="Access variable this@R|/test_4|"]; 142 [label="Access variable this@R|/test_4|"];
139 [label="Function call: this@R|/test_4|.<Unresolved name: foo>#()"]; 143 [label="Function call: this@R|/test_4|.<Unresolved name: foo>#()"];
140 [label="Function call: <Unresolved name: foo>#()"]; 144 [label="Function call: <Unresolved name: foo>#()"];
141 [label="Access variable this@R|/test_4|"]; 145 [label="Access variable this@R|/test_4|"];
142 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"]; 146 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"];
143 [label="Function call: <Unresolved name: bar>#()"]; 147 [label="Function call: <Unresolved name: bar>#()"];
144 [label="Exit block"]; 148 [label="Exit block"];
} }
145 [label="Exit when branch result"]; 149 [label="Exit when branch result"];
146 [label="Exit when"]; 150 [label="Exit when"];
} }
147 [label="Access variable this@R|/test_4|"]; 151 [label="Access variable this@R|/test_4|"];
148 [label="Function call: this@R|/test_4|.<Unresolved name: foo>#()"]; 152 [label="Function call: this@R|/test_4|.<Unresolved name: foo>#()"];
149 [label="Function call: <Unresolved name: foo>#()"]; 153 [label="Function call: <Unresolved name: foo>#()"];
150 [label="Access variable this@R|/test_4|"]; 154 [label="Access variable this@R|/test_4|"];
151 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"]; 155 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"];
152 [label="Function call: <Unresolved name: bar>#()"]; 156 [label="Function call: <Unresolved name: bar>#()"];
153 [label="Exit function test_4" style="filled" fillcolor=red]; 157 [label="Exit function test_4" style="filled" fillcolor=red];
} }
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101}; 100 -> {101};
101 -> {136 102}; 101 -> {102};
102 -> {103}; 102 -> {103};
103 -> {104}; 103 -> {104};
104 -> {105}; 104 -> {105};
105 -> {106}; 105 -> {140 106};
106 -> {107}; 106 -> {107};
107 -> {108}; 107 -> {108};
108 -> {109}; 108 -> {109};
109 -> {110}; 109 -> {110};
110 -> {123 111}; 110 -> {111};
111 -> {112}; 111 -> {112};
112 -> {113}; 112 -> {113};
113 -> {114}; 113 -> {114};
114 -> {115}; 114 -> {127 115};
115 -> {116}; 115 -> {116};
116 -> {117}; 116 -> {117};
117 -> {118}; 117 -> {118};
@@ -390,11 +402,11 @@ digraph implicitReceivers_kt {
119 -> {120}; 119 -> {120};
120 -> {121}; 120 -> {121};
121 -> {122}; 121 -> {122};
122 -> {133}; 122 -> {123};
123 -> {124}; 123 -> {124};
124 -> {125}; 124 -> {125};
125 -> {126}; 125 -> {126};
126 -> {127}; 126 -> {137};
127 -> {128}; 127 -> {128};
128 -> {129}; 128 -> {129};
129 -> {130}; 129 -> {130};
@@ -403,11 +415,11 @@ digraph implicitReceivers_kt {
132 -> {133}; 132 -> {133};
133 -> {134}; 133 -> {134};
134 -> {135}; 134 -> {135};
135 -> {146}; 135 -> {136};
136 -> {137}; 136 -> {137};
137 -> {138}; 137 -> {138};
138 -> {139}; 138 -> {139};
139 -> {140}; 139 -> {150};
140 -> {141}; 140 -> {141};
141 -> {142}; 141 -> {142};
142 -> {143}; 142 -> {143};
@@ -421,59 +433,63 @@ digraph implicitReceivers_kt {
150 -> {151}; 150 -> {151};
151 -> {152}; 151 -> {152};
152 -> {153}; 152 -> {153};
153 -> {154};
154 -> {155};
155 -> {156};
156 -> {157};
subgraph cluster_32 { subgraph cluster_34 {
color=red color=red
154 [label="Enter function test_5" style="filled" fillcolor=red]; 158 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_33 { subgraph cluster_35 {
color=blue color=blue
155 [label="Enter when"]; 159 [label="Enter when"];
subgraph cluster_34 { subgraph cluster_36 {
color=blue
156 [label="Enter when branch condition "];
157 [label="Access variable this@R|/test_5|"];
158 [label="Type operator: (this@R|/test_5| is R|kotlin/collections/List<*>|)"];
159 [label="Exit when branch condition"];
}
subgraph cluster_35 {
color=blue color=blue
160 [label="Enter when branch condition "]; 160 [label="Enter when branch condition "];
161 [label="Access variable this@R|/test_5|"]; 161 [label="Access variable this@R|/test_5|"];
162 [label="Type operator: (this@R|/test_5| is R|kotlin/String|)"]; 162 [label="Type operator: (this@R|/test_5| is R|kotlin/collections/List<*>|)"];
163 [label="Exit when branch condition"]; 163 [label="Exit when branch condition"];
} }
subgraph cluster_36 {
color=blue
164 [label="Enter when branch condition else"];
165 [label="Exit when branch condition"];
}
166 [label="Enter when branch result"];
subgraph cluster_37 { subgraph cluster_37 {
color=blue color=blue
167 [label="Enter block"]; 164 [label="Enter when branch condition "];
168 [label="Const: Int(0)"]; 165 [label="Access variable this@R|/test_5|"];
169 [label="Exit block"]; 166 [label="Type operator: (this@R|/test_5| is R|kotlin/String|)"];
167 [label="Exit when branch condition"];
} }
170 [label="Exit when branch result"];
171 [label="Enter when branch result"];
subgraph cluster_38 { subgraph cluster_38 {
color=blue color=blue
172 [label="Enter block"]; 168 [label="Enter when branch condition else"];
173 [label="Access variable R|kotlin/String.length|"]; 169 [label="Exit when branch condition"];
174 [label="Exit block"];
} }
175 [label="Exit when branch result"]; 170 [label="Enter when branch result"];
176 [label="Enter when branch result"];
subgraph cluster_39 { subgraph cluster_39 {
color=blue color=blue
177 [label="Enter block"]; 171 [label="Enter block"];
178 [label="Access variable R|kotlin/collections/List.size|"]; 172 [label="Const: Int(0)"];
179 [label="Exit block"]; 173 [label="Exit block"];
} }
180 [label="Exit when branch result"]; 174 [label="Exit when branch result"];
181 [label="Exit when"]; 175 [label="Enter when branch result"];
subgraph cluster_40 {
color=blue
176 [label="Enter block"];
177 [label="Access variable R|kotlin/String.length|"];
178 [label="Exit block"];
}
179 [label="Exit when branch result"];
180 [label="Enter when branch result"];
subgraph cluster_41 {
color=blue
181 [label="Enter block"];
182 [label="Access variable R|kotlin/collections/List.size|"];
183 [label="Exit block"];
}
184 [label="Exit when branch result"];
185 [label="Exit when"];
} }
182 [label="Jump: ^test_5 when () { 186 [label="Jump: ^test_5 when () {
(this@R|/test_5| is R|kotlin/collections/List<*>|) -> { (this@R|/test_5| is R|kotlin/collections/List<*>|) -> {
this@R|/test_5|.R|kotlin/collections/List.size| this@R|/test_5|.R|kotlin/collections/List.size|
} }
@@ -485,60 +501,60 @@ digraph implicitReceivers_kt {
} }
} }
"]; "];
183 [label="Stub" style="filled" fillcolor=gray]; 187 [label="Stub" style="filled" fillcolor=gray];
184 [label="Exit function test_5" style="filled" fillcolor=red]; 188 [label="Exit function test_5" style="filled" fillcolor=red];
} }
154 -> {155};
155 -> {156};
156 -> {157};
157 -> {158};
158 -> {159}; 158 -> {159};
159 -> {176 160}; 159 -> {160};
160 -> {161}; 160 -> {161};
161 -> {162}; 161 -> {162};
162 -> {163}; 162 -> {163};
163 -> {171 164}; 163 -> {180 164};
164 -> {165}; 164 -> {165};
165 -> {166}; 165 -> {166};
166 -> {167}; 166 -> {167};
167 -> {168}; 167 -> {175 168};
168 -> {169}; 168 -> {169};
169 -> {170}; 169 -> {170};
170 -> {181}; 170 -> {171};
171 -> {172}; 171 -> {172};
172 -> {173}; 172 -> {173};
173 -> {174}; 173 -> {174};
174 -> {175}; 174 -> {185};
175 -> {181}; 175 -> {176};
176 -> {177}; 176 -> {177};
177 -> {178}; 177 -> {178};
178 -> {179}; 178 -> {179};
179 -> {180}; 179 -> {185};
180 -> {181}; 180 -> {181};
181 -> {182}; 181 -> {182};
182 -> {184}; 182 -> {183};
182 -> {183} [style=dotted]; 183 -> {184};
183 -> {184} [style=dotted]; 184 -> {185};
185 -> {186};
186 -> {188};
186 -> {187} [style=dotted];
187 -> {188} [style=dotted];
subgraph cluster_40 { subgraph cluster_42 {
color=red color=red
185 [label="Enter function test_6" style="filled" fillcolor=red]; 189 [label="Enter function test_6" style="filled" fillcolor=red];
186 [label="Access variable this@R|/test_6|"]; 190 [label="Access variable this@R|/test_6|"];
187 [label="Type operator: (this@R|/test_6| as R|kotlin/collections/List<*>|)"]; 191 [label="Type operator: (this@R|/test_6| as R|kotlin/collections/List<*>|)"];
188 [label="Access variable R|kotlin/collections/List.size|"]; 192 [label="Access variable R|kotlin/collections/List.size|"];
189 [label="Access variable this@R|/test_6|"]; 193 [label="Access variable this@R|/test_6|"];
190 [label="Type operator: (this@R|/test_6| as R|kotlin/String|)"]; 194 [label="Type operator: (this@R|/test_6| as R|kotlin/String|)"];
191 [label="Access variable R|kotlin/String.length|"]; 195 [label="Access variable R|kotlin/String.length|"];
192 [label="Exit function test_6" style="filled" fillcolor=red]; 196 [label="Exit function test_6" style="filled" fillcolor=red];
} }
185 -> {186};
186 -> {187};
187 -> {188};
188 -> {189};
189 -> {190}; 189 -> {190};
190 -> {191}; 190 -> {191};
191 -> {192}; 191 -> {192};
192 -> {193};
193 -> {194};
194 -> {195};
195 -> {196};
} }
@@ -5,96 +5,111 @@ digraph thisOfExtensionProperty_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function getter" style="filled" fillcolor=red]; 0 [label="Enter class A" style="filled" fillcolor=red];
1 [label="Exit function getter" style="filled" fillcolor=red]; 1 [label="Exit class A" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1} [color=green];
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter property" style="filled" fillcolor=red]; 2 [label="Enter function getter" style="filled" fillcolor=red];
3 [label="Exit property" style="filled" fillcolor=red]; 3 [label="Exit function getter" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3};
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
4 [label="Enter function getter" style="filled" fillcolor=red]; 4 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_3 { 5 [label="Exit property" style="filled" fillcolor=red];
color=blue
5 [label="Enter &&"];
6 [label="Access variable this@R|/check_1|"];
7 [label="Type operator: (this@R|/check_1| is R|B|)"];
8 [label="Exit left part of &&"];
9 [label="Enter right part of &&"];
10 [label="Access variable R|/B.b|"];
11 [label="Exit &&"];
}
12 [label="Jump: ^ (this@R|/check_1| is R|B|) && this@R|/check_1|.R|/B.b|"];
13 [label="Stub" style="filled" fillcolor=gray];
14 [label="Exit function getter" style="filled" fillcolor=red];
} }
4 -> {5}; 4 -> {5};
5 -> {6};
6 -> {7}; subgraph cluster_3 {
7 -> {8}; color=red
8 -> {11 9}; 6 [label="Enter class B" style="filled" fillcolor=red];
9 -> {10}; 7 [label="Exit class B" style="filled" fillcolor=red];
10 -> {11}; }
11 -> {12};
12 -> {14};
12 -> {13} [style=dotted];
13 -> {14} [style=dotted];
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
15 [label="Enter property" style="filled" fillcolor=red]; 8 [label="Enter function getter" style="filled" fillcolor=red];
16 [label="Exit property" style="filled" fillcolor=red]; subgraph cluster_5 {
}
15 -> {16};
subgraph cluster_5 {
color=red
17 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue color=blue
18 [label="Enter &&"]; 9 [label="Enter &&"];
19 [label="Access variable this@R|/check_2|"]; 10 [label="Access variable this@R|/check_1|"];
20 [label="Type operator: (this@R|/check_2| is R|B|)"]; 11 [label="Type operator: (this@R|/check_1| is R|B|)"];
21 [label="Exit left part of &&"]; 12 [label="Exit left part of &&"];
22 [label="Enter right part of &&"]; 13 [label="Enter right part of &&"];
23 [label="Access variable this@R|/check_2|"]; 14 [label="Access variable R|/B.b|"];
24 [label="Access variable R|/B.b|"]; 15 [label="Exit &&"];
25 [label="Exit &&"];
} }
26 [label="Jump: ^ (this@R|/check_2| is R|B|) && this@R|/check_2|.R|/B.b|"]; 16 [label="Jump: ^ (this@R|/check_1| is R|B|) && this@R|/check_1|.R|/B.b|"];
27 [label="Stub" style="filled" fillcolor=gray]; 17 [label="Stub" style="filled" fillcolor=gray];
28 [label="Exit function getter" style="filled" fillcolor=red]; 18 [label="Exit function getter" style="filled" fillcolor=red];
}
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {15 13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {18};
16 -> {17} [style=dotted];
17 -> {18} [style=dotted];
subgraph cluster_6 {
color=red
19 [label="Enter property" style="filled" fillcolor=red];
20 [label="Exit property" style="filled" fillcolor=red];
} }
17 -> {18};
18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21};
21 -> {25 22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {28};
26 -> {27} [style=dotted];
27 -> {28} [style=dotted];
subgraph cluster_7 { subgraph cluster_7 {
color=red color=red
29 [label="Enter property" style="filled" fillcolor=red]; 21 [label="Enter function getter" style="filled" fillcolor=red];
30 [label="Exit property" style="filled" fillcolor=red]; subgraph cluster_8 {
color=blue
22 [label="Enter &&"];
23 [label="Access variable this@R|/check_2|"];
24 [label="Type operator: (this@R|/check_2| is R|B|)"];
25 [label="Exit left part of &&"];
26 [label="Enter right part of &&"];
27 [label="Access variable this@R|/check_2|"];
28 [label="Access variable R|/B.b|"];
29 [label="Exit &&"];
}
30 [label="Jump: ^ (this@R|/check_2| is R|B|) && this@R|/check_2|.R|/B.b|"];
31 [label="Stub" style="filled" fillcolor=gray];
32 [label="Exit function getter" style="filled" fillcolor=red];
} }
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {29 26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {32};
30 -> {31} [style=dotted];
31 -> {32} [style=dotted];
subgraph cluster_9 {
color=red
33 [label="Enter property" style="filled" fillcolor=red];
34 [label="Exit property" style="filled" fillcolor=red];
}
33 -> {34};
} }
@@ -56,42 +56,47 @@ digraph assignSafeCall_kt {
subgraph cluster_5 { subgraph cluster_5 {
color=red color=red
15 [label="Enter function test_1" style="filled" fillcolor=red]; 15 [label="Enter class A" style="filled" fillcolor=red];
16 [label="Access variable R|<local>/a|"]; 16 [label="Exit class A" style="filled" fillcolor=red];
17 [label="Enter safe call"]; }
18 [label="Access variable R|/A.x|"];
19 [label="Exit safe call"];
20 [label="Variable declaration: lval x: R|kotlin/Int?|"]; subgraph cluster_6 {
subgraph cluster_6 { color=red
color=blue 17 [label="Enter function test_1" style="filled" fillcolor=red];
21 [label="Enter when"]; 18 [label="Access variable R|<local>/a|"];
subgraph cluster_7 { 19 [label="Enter safe call"];
color=blue 20 [label="Access variable R|/A.x|"];
22 [label="Enter when branch condition "]; 21 [label="Exit safe call"];
23 [label="Access variable R|<local>/x|"]; 22 [label="Variable declaration: lval x: R|kotlin/Int?|"];
24 [label="Const: Null(null)"]; subgraph cluster_7 {
25 [label="Operator !="]; color=blue
26 [label="Exit when branch condition"]; 23 [label="Enter when"];
} subgraph cluster_8 {
27 [label="Synthetic else branch"]; color=blue
28 [label="Enter when branch result"]; 24 [label="Enter when branch condition "];
subgraph cluster_8 { 25 [label="Access variable R|<local>/x|"];
color=blue 26 [label="Const: Null(null)"];
29 [label="Enter block"]; 27 [label="Operator !="];
30 [label="Access variable R|<local>/a|"]; 28 [label="Exit when branch condition"];
31 [label="Function call: R|<local>/a|.R|/A.bar|()"]; }
32 [label="Exit block"]; 29 [label="Synthetic else branch"];
} 30 [label="Enter when branch result"];
33 [label="Exit when branch result"]; subgraph cluster_9 {
34 [label="Exit when"]; color=blue
} 31 [label="Enter block"];
35 [label="Exit function test_1" style="filled" fillcolor=red]; 32 [label="Access variable R|<local>/a|"];
33 [label="Function call: R|<local>/a|.R|/A.bar|()"];
34 [label="Exit block"];
}
35 [label="Exit when branch result"];
36 [label="Exit when"];
}
37 [label="Exit function test_1" style="filled" fillcolor=red];
} }
15 -> {16};
16 -> {17 19};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19 21};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
@@ -99,54 +104,54 @@ digraph assignSafeCall_kt {
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {28 27}; 26 -> {27};
27 -> {34}; 27 -> {28};
28 -> {29}; 28 -> {30 29};
29 -> {30}; 29 -> {36};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {36};
36 -> {37};
subgraph cluster_9 { subgraph cluster_10 {
color=red color=red
36 [label="Enter function test_2" style="filled" fillcolor=red]; 38 [label="Enter function test_2" style="filled" fillcolor=red];
37 [label="Access variable R|<local>/a|"]; 39 [label="Access variable R|<local>/a|"];
38 [label="Enter safe call"]; 40 [label="Enter safe call"];
39 [label="Function call: R|<local>/a|?.R|/A.foo|()"]; 41 [label="Function call: R|<local>/a|?.R|/A.foo|()"];
40 [label="Exit safe call"]; 42 [label="Exit safe call"];
41 [label="Variable declaration: lval x: R|kotlin/Int?|"]; 43 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_10 { subgraph cluster_11 {
color=blue color=blue
42 [label="Enter when"]; 44 [label="Enter when"];
subgraph cluster_11 {
color=blue
43 [label="Enter when branch condition "];
44 [label="Access variable R|<local>/x|"];
45 [label="Const: Null(null)"];
46 [label="Operator !="];
47 [label="Exit when branch condition"];
}
48 [label="Synthetic else branch"];
49 [label="Enter when branch result"];
subgraph cluster_12 { subgraph cluster_12 {
color=blue color=blue
50 [label="Enter block"]; 45 [label="Enter when branch condition "];
51 [label="Access variable R|<local>/a|"]; 46 [label="Access variable R|<local>/x|"];
52 [label="Function call: R|<local>/a|.R|/A.bar|()"]; 47 [label="Const: Null(null)"];
53 [label="Exit block"]; 48 [label="Operator !="];
49 [label="Exit when branch condition"];
} }
54 [label="Exit when branch result"]; 50 [label="Synthetic else branch"];
55 [label="Exit when"]; 51 [label="Enter when branch result"];
subgraph cluster_13 {
color=blue
52 [label="Enter block"];
53 [label="Access variable R|<local>/a|"];
54 [label="Function call: R|<local>/a|.R|/A.bar|()"];
55 [label="Exit block"];
}
56 [label="Exit when branch result"];
57 [label="Exit when"];
} }
56 [label="Exit function test_2" style="filled" fillcolor=red]; 58 [label="Exit function test_2" style="filled" fillcolor=red];
} }
36 -> {37};
37 -> {38 40};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40 42};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {42};
42 -> {43}; 42 -> {43};
@@ -154,312 +159,321 @@ digraph assignSafeCall_kt {
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {49 48}; 47 -> {48};
48 -> {55}; 48 -> {49};
49 -> {50}; 49 -> {51 50};
50 -> {51}; 50 -> {57};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {54};
54 -> {55}; 54 -> {55};
55 -> {56}; 55 -> {56};
56 -> {57};
57 -> {58};
subgraph cluster_13 { subgraph cluster_14 {
color=red color=red
57 [label="Enter function test_3" style="filled" fillcolor=red]; 59 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_14 { subgraph cluster_15 {
color=blue color=blue
58 [label="Enter when"]; 60 [label="Enter when"];
59 [label="Access variable R|<local>/x|"]; 61 [label="Access variable R|<local>/x|"];
60 [label="Type operator: (R|<local>/x| as? R|A|)"]; 62 [label="Type operator: (R|<local>/x| as? R|A|)"];
61 [label="Variable declaration: lval <elvis>: R|A?|"]; 63 [label="Variable declaration: lval <elvis>: R|A?|"];
subgraph cluster_15 {
color=blue
62 [label="Enter when branch condition "];
63 [label="Const: Null(null)"];
64 [label="Operator =="];
65 [label="Exit when branch condition"];
}
subgraph cluster_16 { subgraph cluster_16 {
color=blue color=blue
66 [label="Enter when branch condition else"]; 64 [label="Enter when branch condition "];
65 [label="Const: Null(null)"];
66 [label="Operator =="];
67 [label="Exit when branch condition"]; 67 [label="Exit when branch condition"];
} }
68 [label="Enter when branch result"];
subgraph cluster_17 { subgraph cluster_17 {
color=blue color=blue
69 [label="Enter block"]; 68 [label="Enter when branch condition else"];
70 [label="Access variable R|<local>/<elvis>|"]; 69 [label="Exit when branch condition"];
71 [label="Exit block"];
} }
72 [label="Exit when branch result"]; 70 [label="Enter when branch result"];
73 [label="Enter when branch result"];
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
74 [label="Enter block"]; 71 [label="Enter block"];
75 [label="Jump: ^test_3 Unit"]; 72 [label="Access variable R|<local>/<elvis>|"];
76 [label="Stub" style="filled" fillcolor=gray]; 73 [label="Exit block"];
77 [label="Exit block" style="filled" fillcolor=gray];
} }
78 [label="Exit when branch result" style="filled" fillcolor=gray]; 74 [label="Exit when branch result"];
79 [label="Exit when"]; 75 [label="Enter when branch result"];
subgraph cluster_19 {
color=blue
76 [label="Enter block"];
77 [label="Jump: ^test_3 Unit"];
78 [label="Stub" style="filled" fillcolor=gray];
79 [label="Exit block" style="filled" fillcolor=gray];
}
80 [label="Exit when branch result" style="filled" fillcolor=gray];
81 [label="Exit when"];
} }
80 [label="Variable declaration: lval a: R|A|"]; 82 [label="Variable declaration: lval a: R|A|"];
81 [label="Access variable R|<local>/a|"]; 83 [label="Access variable R|<local>/a|"];
82 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 84 [label="Function call: R|<local>/a|.R|/A.foo|()"];
83 [label="Access variable R|<local>/x|"]; 85 [label="Access variable R|<local>/x|"];
84 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 86 [label="Function call: R|<local>/x|.R|/A.foo|()"];
85 [label="Exit function test_3" style="filled" fillcolor=red]; 87 [label="Exit function test_3" style="filled" fillcolor=red];
} }
57 -> {58};
58 -> {59};
59 -> {60}; 59 -> {60};
60 -> {61}; 60 -> {61};
61 -> {62}; 61 -> {62};
62 -> {63}; 62 -> {63};
63 -> {64}; 63 -> {64};
64 -> {65}; 64 -> {65};
65 -> {73 66}; 65 -> {66};
66 -> {67}; 66 -> {67};
67 -> {68}; 67 -> {75 68};
68 -> {69}; 68 -> {69};
69 -> {70}; 69 -> {70};
70 -> {71}; 70 -> {71};
71 -> {72}; 71 -> {72};
72 -> {79}; 72 -> {73};
73 -> {74}; 73 -> {74};
74 -> {75}; 74 -> {81};
75 -> {85}; 75 -> {76};
75 -> {76} [style=dotted]; 76 -> {77};
76 -> {77} [style=dotted]; 77 -> {87};
77 -> {78} [style=dotted]; 77 -> {78} [style=dotted];
78 -> {79} [style=dotted]; 78 -> {79} [style=dotted];
79 -> {80}; 79 -> {80} [style=dotted];
80 -> {81}; 80 -> {81} [style=dotted];
81 -> {82}; 81 -> {82};
82 -> {83}; 82 -> {83};
83 -> {84}; 83 -> {84};
84 -> {85}; 84 -> {85};
85 -> {86};
subgraph cluster_19 {
color=red
86 [label="Enter function foo" style="filled" fillcolor=red];
87 [label="Exit function foo" style="filled" fillcolor=red];
}
86 -> {87}; 86 -> {87};
subgraph cluster_20 { subgraph cluster_20 {
color=red color=red
88 [label="Enter function getter" style="filled" fillcolor=red]; 88 [label="Enter function foo" style="filled" fillcolor=red];
89 [label="Exit function getter" style="filled" fillcolor=red]; 89 [label="Exit function foo" style="filled" fillcolor=red];
} }
88 -> {89}; 88 -> {89};
subgraph cluster_21 { subgraph cluster_21 {
color=red color=red
90 [label="Enter property" style="filled" fillcolor=red]; 90 [label="Enter function getter" style="filled" fillcolor=red];
91 [label="Exit property" style="filled" fillcolor=red]; 91 [label="Exit function getter" style="filled" fillcolor=red];
} }
90 -> {91}; 90 -> {91};
subgraph cluster_22 { subgraph cluster_22 {
color=red color=red
92 [label="Enter function bar" style="filled" fillcolor=red]; 92 [label="Enter property" style="filled" fillcolor=red];
93 [label="Exit function bar" style="filled" fillcolor=red]; 93 [label="Exit property" style="filled" fillcolor=red];
} }
92 -> {93}; 92 -> {93};
subgraph cluster_23 { subgraph cluster_23 {
color=red color=red
94 [label="Enter function test_1" style="filled" fillcolor=red]; 94 [label="Enter function bar" style="filled" fillcolor=red];
95 [label="Access variable R|<local>/a|"]; 95 [label="Exit function bar" style="filled" fillcolor=red];
96 [label="Enter safe call"];
97 [label="Access variable R|/B.x|"];
98 [label="Exit safe call"];
99 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_24 {
color=blue
100 [label="Enter when"];
subgraph cluster_25 {
color=blue
101 [label="Enter when branch condition "];
102 [label="Access variable R|<local>/x|"];
103 [label="Const: Null(null)"];
104 [label="Operator !="];
105 [label="Exit when branch condition"];
}
106 [label="Synthetic else branch"];
107 [label="Enter when branch result"];
subgraph cluster_26 {
color=blue
108 [label="Enter block"];
109 [label="Access variable R|<local>/a|"];
110 [label="Function call: R|<local>/a|.R|/B.bar|()"];
111 [label="Exit block"];
}
112 [label="Exit when branch result"];
113 [label="Exit when"];
}
114 [label="Exit function test_1" style="filled" fillcolor=red];
} }
94 -> {95}; 94 -> {95};
95 -> {96 98};
96 -> {97}; subgraph cluster_24 {
97 -> {98}; color=red
96 [label="Enter class B" style="filled" fillcolor=red];
97 [label="Exit class B" style="filled" fillcolor=red];
}
subgraph cluster_25 {
color=red
98 [label="Enter function test_1" style="filled" fillcolor=red];
99 [label="Access variable R|<local>/a|"];
100 [label="Enter safe call"];
101 [label="Access variable R|/B.x|"];
102 [label="Exit safe call"];
103 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_26 {
color=blue
104 [label="Enter when"];
subgraph cluster_27 {
color=blue
105 [label="Enter when branch condition "];
106 [label="Access variable R|<local>/x|"];
107 [label="Const: Null(null)"];
108 [label="Operator !="];
109 [label="Exit when branch condition"];
}
110 [label="Synthetic else branch"];
111 [label="Enter when branch result"];
subgraph cluster_28 {
color=blue
112 [label="Enter block"];
113 [label="Access variable R|<local>/a|"];
114 [label="Function call: R|<local>/a|.R|/B.bar|()"];
115 [label="Exit block"];
}
116 [label="Exit when branch result"];
117 [label="Exit when"];
}
118 [label="Exit function test_1" style="filled" fillcolor=red];
}
98 -> {99}; 98 -> {99};
99 -> {100}; 99 -> {100 102};
100 -> {101}; 100 -> {101};
101 -> {102}; 101 -> {102};
102 -> {103}; 102 -> {103};
103 -> {104}; 103 -> {104};
104 -> {105}; 104 -> {105};
105 -> {107 106}; 105 -> {106};
106 -> {113}; 106 -> {107};
107 -> {108}; 107 -> {108};
108 -> {109}; 108 -> {109};
109 -> {110}; 109 -> {111 110};
110 -> {111}; 110 -> {117};
111 -> {112}; 111 -> {112};
112 -> {113}; 112 -> {113};
113 -> {114}; 113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
subgraph cluster_27 { subgraph cluster_29 {
color=red color=red
115 [label="Enter function test_2" style="filled" fillcolor=red]; 119 [label="Enter function test_2" style="filled" fillcolor=red];
116 [label="Access variable R|<local>/a|"]; 120 [label="Access variable R|<local>/a|"];
117 [label="Enter safe call"]; 121 [label="Enter safe call"];
118 [label="Function call: R|<local>/a|?.R|/B.foo|()"]; 122 [label="Function call: R|<local>/a|?.R|/B.foo|()"];
119 [label="Exit safe call"]; 123 [label="Exit safe call"];
120 [label="Variable declaration: lval x: R|kotlin/Int?|"]; 124 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_28 { subgraph cluster_30 {
color=blue color=blue
121 [label="Enter when"]; 125 [label="Enter when"];
subgraph cluster_29 { subgraph cluster_31 {
color=blue color=blue
122 [label="Enter when branch condition "]; 126 [label="Enter when branch condition "];
123 [label="Access variable R|<local>/x|"]; 127 [label="Access variable R|<local>/x|"];
124 [label="Const: Null(null)"]; 128 [label="Const: Null(null)"];
125 [label="Operator !="]; 129 [label="Operator !="];
126 [label="Exit when branch condition"]; 130 [label="Exit when branch condition"];
} }
127 [label="Synthetic else branch"]; 131 [label="Synthetic else branch"];
128 [label="Enter when branch result"]; 132 [label="Enter when branch result"];
subgraph cluster_30 { subgraph cluster_32 {
color=blue color=blue
129 [label="Enter block"]; 133 [label="Enter block"];
130 [label="Access variable R|<local>/a|"]; 134 [label="Access variable R|<local>/a|"];
131 [label="Function call: R|<local>/a|.R|/B.bar|()"]; 135 [label="Function call: R|<local>/a|.R|/B.bar|()"];
132 [label="Exit block"]; 136 [label="Exit block"];
} }
133 [label="Exit when branch result"]; 137 [label="Exit when branch result"];
134 [label="Exit when"]; 138 [label="Exit when"];
} }
135 [label="Exit function test_2" style="filled" fillcolor=red]; 139 [label="Exit function test_2" style="filled" fillcolor=red];
} }
115 -> {116};
116 -> {117 119};
117 -> {118};
118 -> {119};
119 -> {120}; 119 -> {120};
120 -> {121}; 120 -> {121 123};
121 -> {122}; 121 -> {122};
122 -> {123}; 122 -> {123};
123 -> {124}; 123 -> {124};
124 -> {125}; 124 -> {125};
125 -> {126}; 125 -> {126};
126 -> {128 127}; 126 -> {127};
127 -> {134}; 127 -> {128};
128 -> {129}; 128 -> {129};
129 -> {130}; 129 -> {130};
130 -> {131}; 130 -> {132 131};
131 -> {132}; 131 -> {138};
132 -> {133}; 132 -> {133};
133 -> {134}; 133 -> {134};
134 -> {135}; 134 -> {135};
135 -> {136};
subgraph cluster_31 {
color=red
136 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_32 {
color=blue
137 [label="Enter when"];
138 [label="Access variable R|<local>/x|"];
139 [label="Type operator: (R|<local>/x| as? R|B|)"];
140 [label="Variable declaration: lval <elvis>: R|B?|"];
subgraph cluster_33 {
color=blue
141 [label="Enter when branch condition "];
142 [label="Const: Null(null)"];
143 [label="Operator =="];
144 [label="Exit when branch condition"];
}
subgraph cluster_34 {
color=blue
145 [label="Enter when branch condition else"];
146 [label="Exit when branch condition"];
}
147 [label="Enter when branch result"];
subgraph cluster_35 {
color=blue
148 [label="Enter block"];
149 [label="Access variable R|<local>/<elvis>|"];
150 [label="Exit block"];
}
151 [label="Exit when branch result"];
152 [label="Enter when branch result"];
subgraph cluster_36 {
color=blue
153 [label="Enter block"];
154 [label="Jump: ^test_3 Unit"];
155 [label="Stub" style="filled" fillcolor=gray];
156 [label="Exit block" style="filled" fillcolor=gray];
}
157 [label="Exit when branch result" style="filled" fillcolor=gray];
158 [label="Exit when"];
}
159 [label="Variable declaration: lval a: R|B|"];
160 [label="Access variable R|<local>/a|"];
161 [label="Function call: R|<local>/a|.R|/B.foo|()"];
162 [label="Access variable R|<local>/x|"];
163 [label="Function call: R|<local>/x|.R|/B.foo|()"];
164 [label="Exit function test_3" style="filled" fillcolor=red];
}
136 -> {137}; 136 -> {137};
137 -> {138}; 137 -> {138};
138 -> {139}; 138 -> {139};
139 -> {140};
subgraph cluster_33 {
color=red
140 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_34 {
color=blue
141 [label="Enter when"];
142 [label="Access variable R|<local>/x|"];
143 [label="Type operator: (R|<local>/x| as? R|B|)"];
144 [label="Variable declaration: lval <elvis>: R|B?|"];
subgraph cluster_35 {
color=blue
145 [label="Enter when branch condition "];
146 [label="Const: Null(null)"];
147 [label="Operator =="];
148 [label="Exit when branch condition"];
}
subgraph cluster_36 {
color=blue
149 [label="Enter when branch condition else"];
150 [label="Exit when branch condition"];
}
151 [label="Enter when branch result"];
subgraph cluster_37 {
color=blue
152 [label="Enter block"];
153 [label="Access variable R|<local>/<elvis>|"];
154 [label="Exit block"];
}
155 [label="Exit when branch result"];
156 [label="Enter when branch result"];
subgraph cluster_38 {
color=blue
157 [label="Enter block"];
158 [label="Jump: ^test_3 Unit"];
159 [label="Stub" style="filled" fillcolor=gray];
160 [label="Exit block" style="filled" fillcolor=gray];
}
161 [label="Exit when branch result" style="filled" fillcolor=gray];
162 [label="Exit when"];
}
163 [label="Variable declaration: lval a: R|B|"];
164 [label="Access variable R|<local>/a|"];
165 [label="Function call: R|<local>/a|.R|/B.foo|()"];
166 [label="Access variable R|<local>/x|"];
167 [label="Function call: R|<local>/x|.R|/B.foo|()"];
168 [label="Exit function test_3" style="filled" fillcolor=red];
}
140 -> {141}; 140 -> {141};
141 -> {142}; 141 -> {142};
142 -> {143}; 142 -> {143};
143 -> {144}; 143 -> {144};
144 -> {152 145}; 144 -> {145};
145 -> {146}; 145 -> {146};
146 -> {147}; 146 -> {147};
147 -> {148}; 147 -> {148};
148 -> {149}; 148 -> {156 149};
149 -> {150}; 149 -> {150};
150 -> {151}; 150 -> {151};
151 -> {158}; 151 -> {152};
152 -> {153}; 152 -> {153};
153 -> {154}; 153 -> {154};
154 -> {164}; 154 -> {155};
154 -> {155} [style=dotted]; 155 -> {162};
155 -> {156} [style=dotted]; 156 -> {157};
156 -> {157} [style=dotted]; 157 -> {158};
157 -> {158} [style=dotted]; 158 -> {168};
158 -> {159}; 158 -> {159} [style=dotted];
159 -> {160}; 159 -> {160} [style=dotted];
160 -> {161}; 160 -> {161} [style=dotted];
161 -> {162}; 161 -> {162} [style=dotted];
162 -> {163}; 162 -> {163};
163 -> {164}; 163 -> {164};
164 -> {165};
165 -> {166};
166 -> {167};
167 -> {168};
} }
@@ -80,162 +80,170 @@ digraph safeCalls_kt {
subgraph cluster_6 { subgraph cluster_6 {
color=red color=red
25 [label="Enter function test_2" style="filled" fillcolor=red]; 25 [label="Enter class A" style="filled" fillcolor=red];
26 [label="Access variable R|<local>/x|"]; 26 [label="Exit class A" style="filled" fillcolor=red];
27 [label="Type operator: (R|<local>/x| as? R|A|)"];
28 [label="Enter safe call"];
29 [label="Access variable R|<local>/x|"];
30 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(...)"];
31 [label="Exit safe call"];
32 [label="Exit function test_2" style="filled" fillcolor=red];
} }
25 -> {26}; 25 -> {26} [color=green];
26 -> {27};
27 -> {28 31};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
subgraph cluster_7 { subgraph cluster_7 {
color=red color=red
33 [label="Enter function test_3" style="filled" fillcolor=red]; 27 [label="Enter function test_2" style="filled" fillcolor=red];
34 [label="Access variable R|<local>/x|"]; 28 [label="Access variable R|<local>/x|"];
35 [label="Type operator: (R|<local>/x| as? R|A|)"]; 29 [label="Type operator: (R|<local>/x| as? R|A|)"];
36 [label="Enter safe call"]; 30 [label="Enter safe call"];
37 [label="Access variable R|<local>/x|"]; 31 [label="Access variable R|<local>/x|"];
38 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(...)"]; 32 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(...)"];
39 [label="Exit safe call"]; 33 [label="Exit safe call"];
40 [label="Enter safe call"]; 34 [label="Exit function test_2" style="filled" fillcolor=red];
41 [label="Access variable R|<local>/x|"];
42 [label="Function call: R|<local>/x|.R|/A.bool|()"];
43 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(...)?.R|/foo|(...)"];
44 [label="Exit safe call"];
45 [label="Enter safe call"];
46 [label="Postponed enter to lambda"];
47 [label="Postponed exit from lambda"];
48 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(...)?.R|/foo|(...)?.R|/let|(...)"];
49 [label="Exit safe call"];
50 [label="Access variable R|<local>/x|"];
51 [label="Function call: R|<local>/x|.<Unresolved name: bool>#()"];
52 [label="Exit function test_3" style="filled" fillcolor=red];
} }
27 -> {28};
28 -> {29};
29 -> {30 33};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {35};
35 -> {36 39};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40 44};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45 49};
45 -> {46};
46 -> {47 47} [color=green];
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
subgraph cluster_8 { subgraph cluster_8 {
color=red color=red
53 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 35 [label="Enter function test_3" style="filled" fillcolor=red];
54 [label="Access variable R|<local>/x|"]; 36 [label="Access variable R|<local>/x|"];
55 [label="Function call: R|<local>/x|.R|/A.bool|()"]; 37 [label="Type operator: (R|<local>/x| as? R|A|)"];
56 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 38 [label="Enter safe call"];
39 [label="Access variable R|<local>/x|"];
40 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(...)"];
41 [label="Exit safe call"];
42 [label="Enter safe call"];
43 [label="Access variable R|<local>/x|"];
44 [label="Function call: R|<local>/x|.R|/A.bool|()"];
45 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(...)?.R|/foo|(...)"];
46 [label="Exit safe call"];
47 [label="Enter safe call"];
48 [label="Postponed enter to lambda"];
49 [label="Postponed exit from lambda"];
50 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(...)?.R|/foo|(...)?.R|/let|(...)"];
51 [label="Exit safe call"];
52 [label="Access variable R|<local>/x|"];
53 [label="Function call: R|<local>/x|.<Unresolved name: bool>#()"];
54 [label="Exit function test_3" style="filled" fillcolor=red];
} }
35 -> {36};
36 -> {37};
37 -> {38 41};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42 46};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47 51};
47 -> {48};
48 -> {49 49} [color=green];
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54}; 53 -> {54};
54 -> {55};
55 -> {56};
subgraph cluster_9 { subgraph cluster_9 {
color=red color=red
57 [label="Enter function test_4" style="filled" fillcolor=red]; 55 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
58 [label="Access variable R|<local>/x|"]; 56 [label="Access variable R|<local>/x|"];
59 [label="Enter safe call"]; 57 [label="Function call: R|<local>/x|.R|/A.bool|()"];
60 [label="Function call: R|<local>/x|?.R|/A.id|()"]; 58 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
61 [label="Exit safe call"];
62 [label="Enter safe call"];
63 [label="Function call: R|<local>/x|?.R|/A.id|()?.R|/A.bool|()"];
64 [label="Exit safe call"];
65 [label="Access variable R|<local>/x|"];
66 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.id]>#()"];
67 [label="Exit function test_4" style="filled" fillcolor=red];
} }
55 -> {56};
56 -> {57};
57 -> {58}; 57 -> {58};
58 -> {59 61};
59 -> {60};
60 -> {61};
61 -> {62 64};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
subgraph cluster_10 { subgraph cluster_10 {
color=red color=red
68 [label="Enter function boo" style="filled" fillcolor=red]; 59 [label="Enter function test_4" style="filled" fillcolor=red];
69 [label="Exit function boo" style="filled" fillcolor=red]; 60 [label="Access variable R|<local>/x|"];
61 [label="Enter safe call"];
62 [label="Function call: R|<local>/x|?.R|/A.id|()"];
63 [label="Exit safe call"];
64 [label="Enter safe call"];
65 [label="Function call: R|<local>/x|?.R|/A.id|()?.R|/A.bool|()"];
66 [label="Exit safe call"];
67 [label="Access variable R|<local>/x|"];
68 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.id]>#()"];
69 [label="Exit function test_4" style="filled" fillcolor=red];
} }
59 -> {60};
60 -> {61 63};
61 -> {62};
62 -> {63};
63 -> {64 66};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69}; 68 -> {69};
subgraph cluster_11 { subgraph cluster_11 {
color=red color=red
70 [label="Enter function test_5" style="filled" fillcolor=red]; 70 [label="Enter function boo" style="filled" fillcolor=red];
71 [label="Access variable R|<local>/x|"]; 71 [label="Exit function boo" style="filled" fillcolor=red];
72 [label="Enter safe call"];
73 [label="Postponed enter to lambda"];
subgraph cluster_12 {
color=blue
74 [label="Enter function anonymousFunction"];
75 [label="Jump: ^test_5 Unit"];
76 [label="Stub" style="filled" fillcolor=gray];
77 [label="Exit function anonymousFunction" style="filled" fillcolor=gray];
}
78 [label="Call arguments union" style="filled" fillcolor=gray];
79 [label="Postponed exit from lambda"];
80 [label="Function call: R|<local>/x|?.R|kotlin/let|<R|A|, R|kotlin/Nothing|>(...)" style="filled" fillcolor=gray];
81 [label="Exit safe call"];
82 [label="Enter safe call"];
83 [label="Access variable R|<local>/x|"];
84 [label="Function call: R|<local>/x|.R|/A.bool|()"];
85 [label="Function call: R|<local>/x|?.R|kotlin/let|<R|A|, R|kotlin/Nothing|>(...)?.R|/boo|(...)"];
86 [label="Exit safe call"];
87 [label="Access variable R|<local>/x|"];
88 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.id]>#()"];
89 [label="Exit function test_5" style="filled" fillcolor=red];
} }
70 -> {71}; 70 -> {71};
71 -> {72 81};
subgraph cluster_12 {
color=red
72 [label="Enter function test_5" style="filled" fillcolor=red];
73 [label="Access variable R|<local>/x|"];
74 [label="Enter safe call"];
75 [label="Postponed enter to lambda"];
subgraph cluster_13 {
color=blue
76 [label="Enter function anonymousFunction"];
77 [label="Jump: ^test_5 Unit"];
78 [label="Stub" style="filled" fillcolor=gray];
79 [label="Exit function anonymousFunction" style="filled" fillcolor=gray];
}
80 [label="Call arguments union" style="filled" fillcolor=gray];
81 [label="Postponed exit from lambda"];
82 [label="Function call: R|<local>/x|?.R|kotlin/let|<R|A|, R|kotlin/Nothing|>(...)" style="filled" fillcolor=gray];
83 [label="Exit safe call"];
84 [label="Enter safe call"];
85 [label="Access variable R|<local>/x|"];
86 [label="Function call: R|<local>/x|.R|/A.bool|()"];
87 [label="Function call: R|<local>/x|?.R|kotlin/let|<R|A|, R|kotlin/Nothing|>(...)?.R|/boo|(...)"];
88 [label="Exit safe call"];
89 [label="Access variable R|<local>/x|"];
90 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.id]>#()"];
91 [label="Exit function test_5" style="filled" fillcolor=red];
}
72 -> {73}; 72 -> {73};
73 -> {74}; 73 -> {74 83};
73 -> {79} [color=red];
74 -> {75}; 74 -> {75};
75 -> {89}; 75 -> {76};
75 -> {76} [style=dotted]; 75 -> {81} [color=red];
76 -> {77} [style=dotted]; 76 -> {77};
77 -> {91};
77 -> {78} [style=dotted]; 77 -> {78} [style=dotted];
77 -> {79} [color=green]; 78 -> {79} [style=dotted];
78 -> {80} [style=dotted]; 79 -> {80} [style=dotted];
79 -> {80} [color=green]; 79 -> {81} [color=green];
80 -> {81} [style=dotted]; 80 -> {82} [style=dotted];
81 -> {82 86}; 81 -> {82} [color=green];
82 -> {83}; 82 -> {83} [style=dotted];
83 -> {84}; 83 -> {84 88};
84 -> {85}; 84 -> {85};
85 -> {86}; 85 -> {86};
86 -> {87}; 86 -> {87};
87 -> {88}; 87 -> {88};
88 -> {89}; 88 -> {89};
89 -> {90};
90 -> {91};
} }
@@ -5,76 +5,99 @@ digraph smartCastInInit_kt {
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function foo" style="filled" fillcolor=red]; 0 [label="Enter class I" style="filled" fillcolor=red];
1 [label="Exit function foo" style="filled" fillcolor=red]; 1 [label="Exit class I" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1} [color=green];
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function s" style="filled" fillcolor=red]; 2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Function call: R|kotlin/TODO|()"]; 3 [label="Exit function foo" style="filled" fillcolor=red];
4 [label="Stub" style="filled" fillcolor=gray];
5 [label="Jump: ^s R|kotlin/TODO|()" style="filled" fillcolor=gray];
6 [label="Stub" style="filled" fillcolor=gray];
7 [label="Exit function s" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3};
3 -> {7};
3 -> {4} [style=dotted];
4 -> {5} [style=dotted];
5 -> {7 6} [style=dotted];
6 -> {7} [style=dotted];
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
8 [label="Enter function <init>" style="filled" fillcolor=red]; 4 [label="Enter class S" style="filled" fillcolor=red];
9 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 5 [label="Exit class S" style="filled" fillcolor=red];
10 [label="Exit function <init>" style="filled" fillcolor=red];
} }
8 -> {9}; 4 -> {5} [color=green];
9 -> {10};
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
11 [label="Enter function getter" style="filled" fillcolor=red]; 6 [label="Enter function s" style="filled" fillcolor=red];
12 [label="Exit function getter" style="filled" fillcolor=red]; 7 [label="Function call: R|kotlin/TODO|()"];
8 [label="Stub" style="filled" fillcolor=gray];
9 [label="Jump: ^s R|kotlin/TODO|()" style="filled" fillcolor=gray];
10 [label="Stub" style="filled" fillcolor=gray];
11 [label="Exit function s" style="filled" fillcolor=red];
} }
11 -> {12}; 6 -> {7};
7 -> {11};
7 -> {8} [style=dotted];
8 -> {9} [style=dotted];
9 -> {11 10} [style=dotted];
10 -> {11} [style=dotted];
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
13 [label="Enter property" style="filled" fillcolor=red]; 12 [label="Enter function <init>" style="filled" fillcolor=red];
14 [label="Exit property" style="filled" fillcolor=red]; 13 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
14 [label="Exit function <init>" style="filled" fillcolor=red];
} }
12 -> {13};
13 -> {14}; 13 -> {14};
subgraph cluster_5 { subgraph cluster_5 {
color=red color=red
15 [label="Enter init block" style="filled" fillcolor=red]; 15 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_6 { 16 [label="Exit function getter" style="filled" fillcolor=red];
color=blue
16 [label="Enter block"];
17 [label="Function call: R|/s|()"];
18 [label="Assignmenet: R|/Main.x|"];
19 [label="Access variable R|/Main.x|"];
20 [label="Function call: this@R|/Main|.R|/Main.x|.R|/S.foo|()"];
21 [label="Exit block"];
}
22 [label="Exit init block" style="filled" fillcolor=red];
} }
15 -> {16}; 15 -> {16};
16 -> {17};
subgraph cluster_6 {
color=red
17 [label="Enter property" style="filled" fillcolor=red];
18 [label="Exit property" style="filled" fillcolor=red];
}
17 -> {18}; 17 -> {18};
18 -> {19};
subgraph cluster_7 {
color=red
19 [label="Enter init block" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
20 [label="Enter block"];
21 [label="Function call: R|/s|()"];
22 [label="Assignmenet: R|/Main.x|"];
23 [label="Access variable R|/Main.x|"];
24 [label="Function call: this@R|/Main|.R|/Main.x|.R|/S.foo|()"];
25 [label="Exit block"];
}
26 [label="Exit init block" style="filled" fillcolor=red];
}
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
subgraph cluster_9 {
color=red
27 [label="Enter class Main" style="filled" fillcolor=red];
28 [label="Exit class Main" style="filled" fillcolor=red];
}
} }
@@ -148,83 +148,88 @@ digraph smartcastToNothing_kt {
subgraph cluster_12 { subgraph cluster_12 {
color=red color=red
45 [label="Enter function test_0" style="filled" fillcolor=red]; 45 [label="Enter class A" style="filled" fillcolor=red];
46 [label="Const: Null(null)"]; 46 [label="Exit class A" style="filled" fillcolor=red];
47 [label="Variable declaration: lvar s: R|A?|"]; }
48 [label="Access variable R|<local>/results|"];
49 [label="Function call: R|<local>/results|.R|FakeOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<kotlin/Nothing>|>|()"];
50 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Nothing>|"]; subgraph cluster_13 {
subgraph cluster_13 { color=red
color=blue 47 [label="Enter function test_0" style="filled" fillcolor=red];
51 [label="Enter while loop"]; 48 [label="Const: Null(null)"];
subgraph cluster_14 { 49 [label="Variable declaration: lvar s: R|A?|"];
color=blue 50 [label="Access variable R|<local>/results|"];
52 [label="Enter loop condition"]; 51 [label="Function call: R|<local>/results|.R|FakeOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<kotlin/Nothing>|>|()"];
53 [label="Access variable R|<local>/<iterator>|"]; 52 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Nothing>|"];
54 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()"]; subgraph cluster_14 {
55 [label="Exit loop condition"]; color=blue
} 53 [label="Enter while loop"];
subgraph cluster_15 { subgraph cluster_15 {
color=blue color=blue
56 [label="Enter loop block"]; 54 [label="Enter loop condition"];
subgraph cluster_16 { 55 [label="Access variable R|<local>/<iterator>|"];
color=blue 56 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()"];
57 [label="Enter block"]; 57 [label="Exit loop condition"];
58 [label="Access variable R|<local>/<iterator>|"]; }
59 [label="Function call: R|<local>/<iterator>|.R|FakeOverride<kotlin/collections/Iterator.next: R|kotlin/Nothing|>|()"]; subgraph cluster_16 {
60 [label="Stub" style="filled" fillcolor=gray]; color=blue
61 [label="Variable declaration: lval result: R|kotlin/Nothing|" style="filled" fillcolor=gray]; 58 [label="Enter loop block"];
62 [label="Access variable R|<local>/result|" style="filled" fillcolor=gray]; subgraph cluster_17 {
63 [label="Stub" style="filled" fillcolor=gray]; color=blue
64 [label="Assignmenet: R|<local>/s|" style="filled" fillcolor=gray]; 59 [label="Enter block"];
subgraph cluster_17 { 60 [label="Access variable R|<local>/<iterator>|"];
color=blue 61 [label="Function call: R|<local>/<iterator>|.R|FakeOverride<kotlin/collections/Iterator.next: R|kotlin/Nothing|>|()"];
65 [label="Enter when" style="filled" fillcolor=gray]; 62 [label="Stub" style="filled" fillcolor=gray];
subgraph cluster_18 { 63 [label="Variable declaration: lval result: R|kotlin/Nothing|" style="filled" fillcolor=gray];
color=blue 64 [label="Access variable R|<local>/result|" style="filled" fillcolor=gray];
66 [label="Enter when branch condition " style="filled" fillcolor=gray]; 65 [label="Stub" style="filled" fillcolor=gray];
67 [label="Access variable R|<local>/result|" style="filled" fillcolor=gray]; 66 [label="Assignmenet: R|<local>/s|" style="filled" fillcolor=gray];
68 [label="Stub" style="filled" fillcolor=gray]; subgraph cluster_18 {
69 [label="Access variable <Unresolved name: b>#" style="filled" fillcolor=gray]; color=blue
70 [label="Exit when branch condition" style="filled" fillcolor=gray]; 67 [label="Enter when" style="filled" fillcolor=gray];
} subgraph cluster_19 {
71 [label="Synthetic else branch" style="filled" fillcolor=gray]; color=blue
72 [label="Enter when branch result" style="filled" fillcolor=gray]; 68 [label="Enter when branch condition " style="filled" fillcolor=gray];
subgraph cluster_19 { 69 [label="Access variable R|<local>/result|" style="filled" fillcolor=gray];
color=blue 70 [label="Stub" style="filled" fillcolor=gray];
73 [label="Enter block" style="filled" fillcolor=gray]; 71 [label="Access variable <Unresolved name: b>#" style="filled" fillcolor=gray];
74 [label="Jump: break@@@[R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()] " style="filled" fillcolor=gray]; 72 [label="Exit when branch condition" style="filled" fillcolor=gray];
75 [label="Stub" style="filled" fillcolor=gray]; }
76 [label="Exit block" style="filled" fillcolor=gray]; 73 [label="Synthetic else branch" style="filled" fillcolor=gray];
} 74 [label="Enter when branch result" style="filled" fillcolor=gray];
77 [label="Exit when branch result" style="filled" fillcolor=gray]; subgraph cluster_20 {
78 [label="Exit when" style="filled" fillcolor=gray]; color=blue
} 75 [label="Enter block" style="filled" fillcolor=gray];
79 [label="Exit block" style="filled" fillcolor=gray]; 76 [label="Jump: break@@@[R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()] " style="filled" fillcolor=gray];
} 77 [label="Stub" style="filled" fillcolor=gray];
80 [label="Exit loop block" style="filled" fillcolor=gray]; 78 [label="Exit block" style="filled" fillcolor=gray];
} }
81 [label="Exit whileloop"]; 79 [label="Exit when branch result" style="filled" fillcolor=gray];
} 80 [label="Exit when" style="filled" fillcolor=gray];
82 [label="Access variable R|<local>/s|"]; }
83 [label="Enter safe call"]; 81 [label="Exit block" style="filled" fillcolor=gray];
84 [label="Postponed enter to lambda"]; }
subgraph cluster_20 { 82 [label="Exit loop block" style="filled" fillcolor=gray];
color=blue }
85 [label="Enter function anonymousFunction"]; 83 [label="Exit whileloop"];
86 [label="Access variable R|<local>/it|"]; }
87 [label="Access variable R|/A.a|"]; 84 [label="Access variable R|<local>/s|"];
88 [label="Exit function anonymousFunction"]; 85 [label="Enter safe call"];
} 86 [label="Postponed enter to lambda"];
89 [label="Call arguments union" style="filled" fillcolor=yellow]; subgraph cluster_21 {
90 [label="Postponed exit from lambda"]; color=blue
91 [label="Function call: R|<local>/s|?.R|kotlin/let|<R|A|, R|kotlin/Int|>(...)"]; 87 [label="Enter function anonymousFunction"];
92 [label="Exit safe call"]; 88 [label="Access variable R|<local>/it|"];
93 [label="Exit function test_0" style="filled" fillcolor=red]; 89 [label="Access variable R|/A.a|"];
90 [label="Exit function anonymousFunction"];
}
91 [label="Call arguments union" style="filled" fillcolor=yellow];
92 [label="Postponed exit from lambda"];
93 [label="Function call: R|<local>/s|?.R|kotlin/let|<R|A|, R|kotlin/Int|>(...)"];
94 [label="Exit safe call"];
95 [label="Exit function test_0" style="filled" fillcolor=red];
} }
45 -> {46};
46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {49};
49 -> {50}; 49 -> {50};
@@ -233,46 +238,48 @@ digraph smartcastToNothing_kt {
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {54};
54 -> {55}; 54 -> {55};
55 -> {81 56}; 55 -> {56};
56 -> {57}; 56 -> {57};
57 -> {58}; 57 -> {83 58};
58 -> {59}; 58 -> {59};
59 -> {93}; 59 -> {60};
59 -> {60} [style=dotted]; 60 -> {61};
60 -> {61} [style=dotted]; 61 -> {95};
61 -> {62} [style=dotted]; 61 -> {62} [style=dotted];
62 -> {93 63} [style=dotted]; 62 -> {63} [style=dotted];
63 -> {64} [style=dotted]; 63 -> {64} [style=dotted];
64 -> {65} [style=dotted]; 64 -> {95 65} [style=dotted];
65 -> {66} [style=dotted]; 65 -> {66} [style=dotted];
66 -> {67} [style=dotted]; 66 -> {67} [style=dotted];
67 -> {93 68} [style=dotted]; 67 -> {68} [style=dotted];
68 -> {69} [style=dotted]; 68 -> {69} [style=dotted];
69 -> {70} [style=dotted]; 69 -> {95 70} [style=dotted];
70 -> {72 71} [style=dotted]; 70 -> {71} [style=dotted];
71 -> {78} [style=dotted]; 71 -> {72} [style=dotted];
72 -> {73} [style=dotted]; 72 -> {74 73} [style=dotted];
73 -> {74} [style=dotted]; 73 -> {80} [style=dotted];
74 -> {81 75} [style=dotted]; 74 -> {75} [style=dotted];
75 -> {76} [style=dotted]; 75 -> {76} [style=dotted];
76 -> {77} [style=dotted]; 76 -> {83 77} [style=dotted];
77 -> {78} [style=dotted]; 77 -> {78} [style=dotted];
78 -> {79} [style=dotted]; 78 -> {79} [style=dotted];
79 -> {80} [style=dotted]; 79 -> {80} [style=dotted];
80 -> {52} [style=dotted]; 80 -> {81} [style=dotted];
81 -> {82}; 81 -> {82} [style=dotted];
82 -> {83 92}; 82 -> {54} [style=dotted];
83 -> {84}; 83 -> {84};
84 -> {85}; 84 -> {85 94};
84 -> {90} [color=red];
85 -> {86}; 85 -> {86};
86 -> {87}; 86 -> {87};
86 -> {92} [color=red];
87 -> {88}; 87 -> {88};
88 -> {90} [color=green]; 88 -> {89};
88 -> {89} [color=red]; 89 -> {90};
89 -> {91} [color=red]; 90 -> {92} [color=green];
90 -> {91} [color=green]; 90 -> {91} [color=red];
91 -> {92}; 91 -> {93} [color=red];
92 -> {93} [style=dotted]; 92 -> {93} [color=green];
93 -> {94};
94 -> {95} [style=dotted];
} }
@@ -33,104 +33,119 @@ digraph overridenOpenVal_kt {
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
8 [label="Enter function <init>" style="filled" fillcolor=red]; 8 [label="Enter class A" style="filled" fillcolor=red];
9 [label="Access variable R|<local>/x|"]; 9 [label="Exit class A" style="filled" fillcolor=red];
10 [label="Delegated constructor call: super<R|A|>(...)"];
11 [label="Exit function <init>" style="filled" fillcolor=red];
} }
8 -> {9};
9 -> {10};
10 -> {11};
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
12 [label="Enter function test_1" style="filled" fillcolor=red]; 10 [label="Enter function <init>" style="filled" fillcolor=red];
subgraph cluster_5 { 11 [label="Access variable R|<local>/x|"];
color=blue 12 [label="Delegated constructor call: super<R|A|>(...)"];
13 [label="Enter when"]; 13 [label="Exit function <init>" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
14 [label="Enter when branch condition "];
15 [label="Access variable R|/A.x|"];
16 [label="Type operator: (this@R|/B|.R|/A.x| is R|kotlin/String|)"];
17 [label="Exit when branch condition"];
}
18 [label="Synthetic else branch"];
19 [label="Enter when branch result"];
subgraph cluster_7 {
color=blue
20 [label="Enter block"];
21 [label="Access variable R|/A.x|"];
22 [label="Access variable R|kotlin/String.length|"];
23 [label="Exit block"];
}
24 [label="Exit when branch result"];
25 [label="Exit when"];
}
26 [label="Exit function test_1" style="filled" fillcolor=red];
} }
10 -> {11};
11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14};
subgraph cluster_5 {
color=red
14 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
15 [label="Enter when"];
subgraph cluster_7 {
color=blue
16 [label="Enter when branch condition "];
17 [label="Access variable R|/A.x|"];
18 [label="Type operator: (this@R|/B|.R|/A.x| is R|kotlin/String|)"];
19 [label="Exit when branch condition"];
}
20 [label="Synthetic else branch"];
21 [label="Enter when branch result"];
subgraph cluster_8 {
color=blue
22 [label="Enter block"];
23 [label="Access variable R|/A.x|"];
24 [label="Access variable R|kotlin/String.length|"];
25 [label="Exit block"];
}
26 [label="Exit when branch result"];
27 [label="Exit when"];
}
28 [label="Exit function test_1" style="filled" fillcolor=red];
}
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {19 18}; 17 -> {18};
18 -> {25}; 18 -> {19};
19 -> {20}; 19 -> {21 20};
20 -> {21}; 20 -> {27};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27};
27 -> {28};
subgraph cluster_8 { subgraph cluster_9 {
color=red color=red
27 [label="Enter function test_2" style="filled" fillcolor=red]; 29 [label="Enter class B" style="filled" fillcolor=red];
subgraph cluster_9 { 30 [label="Exit class B" style="filled" fillcolor=red];
color=blue }
28 [label="Enter when"];
subgraph cluster_10 { 29 -> {30} [color=green];
color=blue
29 [label="Enter when branch condition "]; subgraph cluster_10 {
30 [label="Access variable R|<local>/b|"]; color=red
31 [label="Access variable R|/A.x|"]; 31 [label="Enter function test_2" style="filled" fillcolor=red];
32 [label="Type operator: (R|<local>/b|.R|/A.x| is R|kotlin/String|)"]; subgraph cluster_11 {
33 [label="Exit when branch condition"]; color=blue
} 32 [label="Enter when"];
34 [label="Synthetic else branch"]; subgraph cluster_12 {
35 [label="Enter when branch result"]; color=blue
subgraph cluster_11 { 33 [label="Enter when branch condition "];
color=blue 34 [label="Access variable R|<local>/b|"];
36 [label="Enter block"]; 35 [label="Access variable R|/A.x|"];
37 [label="Access variable R|<local>/b|"]; 36 [label="Type operator: (R|<local>/b|.R|/A.x| is R|kotlin/String|)"];
38 [label="Access variable R|/A.x|"]; 37 [label="Exit when branch condition"];
39 [label="Access variable R|kotlin/String.length|"]; }
40 [label="Exit block"]; 38 [label="Synthetic else branch"];
} 39 [label="Enter when branch result"];
41 [label="Exit when branch result"]; subgraph cluster_13 {
42 [label="Exit when"]; color=blue
} 40 [label="Enter block"];
43 [label="Exit function test_2" style="filled" fillcolor=red]; 41 [label="Access variable R|<local>/b|"];
42 [label="Access variable R|/A.x|"];
43 [label="Access variable R|kotlin/String.length|"];
44 [label="Exit block"];
}
45 [label="Exit when branch result"];
46 [label="Exit when"];
}
47 [label="Exit function test_2" style="filled" fillcolor=red];
} }
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {35 34}; 33 -> {34};
34 -> {42}; 34 -> {35};
35 -> {36}; 35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {39 38};
38 -> {39}; 38 -> {46};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {42};
42 -> {43}; 42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
} }
@@ -23,65 +23,71 @@ digraph delayedAssignment_kt {
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
5 [label="Enter function test" style="filled" fillcolor=red]; 5 [label="Enter class A" style="filled" fillcolor=red];
6 [label="Variable declaration: lval a: R|A?|"]; 6 [label="Exit class A" style="filled" fillcolor=red];
subgraph cluster_3 { }
color=blue
7 [label="Enter when"]; 5 -> {6} [color=green];
subgraph cluster_4 {
color=blue subgraph cluster_3 {
8 [label="Enter when branch condition "]; color=red
9 [label="Access variable R|<local>/b|"]; 7 [label="Enter function test" style="filled" fillcolor=red];
10 [label="Exit when branch condition"]; 8 [label="Variable declaration: lval a: R|A?|"];
} subgraph cluster_4 {
subgraph cluster_5 { color=blue
color=blue 9 [label="Enter when"];
11 [label="Enter when branch condition else"]; subgraph cluster_5 {
12 [label="Exit when branch condition"]; color=blue
} 10 [label="Enter when branch condition "];
13 [label="Enter when branch result"]; 11 [label="Access variable R|<local>/b|"];
subgraph cluster_6 { 12 [label="Exit when branch condition"];
color=blue }
14 [label="Enter block"]; subgraph cluster_6 {
15 [label="Const: Null(null)"]; color=blue
16 [label="Assignmenet: R|<local>/a|"]; 13 [label="Enter when branch condition else"];
17 [label="Exit block"]; 14 [label="Exit when branch condition"];
} }
18 [label="Exit when branch result"]; 15 [label="Enter when branch result"];
19 [label="Enter when branch result"]; subgraph cluster_7 {
subgraph cluster_7 { color=blue
color=blue 16 [label="Enter block"];
20 [label="Enter block"]; 17 [label="Const: Null(null)"];
21 [label="Function call: R|/A.A|()"]; 18 [label="Assignmenet: R|<local>/a|"];
22 [label="Assignmenet: R|<local>/a|"]; 19 [label="Exit block"];
23 [label="Access variable R|<local>/a|"]; }
24 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 20 [label="Exit when branch result"];
25 [label="Exit block"]; 21 [label="Enter when branch result"];
} subgraph cluster_8 {
26 [label="Exit when branch result"]; color=blue
27 [label="Exit when"]; 22 [label="Enter block"];
} 23 [label="Function call: R|/A.A|()"];
28 [label="Access variable R|<local>/a|"]; 24 [label="Assignmenet: R|<local>/a|"];
29 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"]; 25 [label="Access variable R|<local>/a|"];
30 [label="Exit function test" style="filled" fillcolor=red]; 26 [label="Function call: R|<local>/a|.R|/A.foo|()"];
27 [label="Exit block"];
}
28 [label="Exit when branch result"];
29 [label="Exit when"];
}
30 [label="Access variable R|<local>/a|"];
31 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
32 [label="Exit function test" style="filled" fillcolor=red];
} }
5 -> {6};
6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {19 11}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {21 13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18};
18 -> {27}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {29};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
@@ -91,5 +97,7 @@ digraph delayedAssignment_kt {
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31};
31 -> {32};
} }
@@ -15,164 +15,195 @@ digraph delegateWithAnonymousObject_kt {
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
3 [label="Enter function delegate" style="filled" fillcolor=red]; 3 [label="Enter class DelegateProvider" style="filled" fillcolor=red];
4 [label="Const: Null(null)"]; 4 [label="Exit class DelegateProvider" style="filled" fillcolor=red];
5 [label="Check not null: Null(null)!!"];
6 [label="Jump: ^delegate Null(null)!!"];
7 [label="Stub" style="filled" fillcolor=gray];
8 [label="Exit function delegate" style="filled" fillcolor=red];
} }
3 -> {4}; 3 -> {4} [color=green];
4 -> {5};
5 -> {6};
6 -> {8};
6 -> {7} [style=dotted];
7 -> {8} [style=dotted];
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
9 [label="Enter function <init>" style="filled" fillcolor=red]; 5 [label="Enter function delegate" style="filled" fillcolor=red];
10 [label="Delegated constructor call: super<R|DelegateProvider<IssueListView>|>()"]; 6 [label="Const: Null(null)"];
11 [label="Exit function <init>" style="filled" fillcolor=red]; 7 [label="Check not null: Null(null)!!"];
8 [label="Jump: ^delegate Null(null)!!"];
9 [label="Stub" style="filled" fillcolor=gray];
10 [label="Exit function delegate" style="filled" fillcolor=red];
} }
9 -> {10}; 5 -> {6};
10 -> {11}; 6 -> {7};
7 -> {8};
8 -> {10};
8 -> {9} [style=dotted];
9 -> {10} [style=dotted];
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
12 [label="Enter function updateFrom" style="filled" fillcolor=red]; 11 [label="Enter function <init>" style="filled" fillcolor=red];
13 [label="Exit function updateFrom" style="filled" fillcolor=red]; 12 [label="Delegated constructor call: super<R|DelegateProvider<IssueListView>|>()"];
13 [label="Exit function <init>" style="filled" fillcolor=red];
} }
11 -> {12};
12 -> {13}; 12 -> {13};
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
14 [label="Enter function <init>" style="filled" fillcolor=red]; 14 [label="Enter function updateFrom" style="filled" fillcolor=red];
15 [label="Delegated constructor call: super<R|DelegateProvider<IssuesListUserProfile>|>()"]; 15 [label="Exit function updateFrom" style="filled" fillcolor=red];
16 [label="Exit function <init>" style="filled" fillcolor=red];
} }
14 -> {15}; 14 -> {15};
15 -> {16};
subgraph cluster_5 { subgraph cluster_5 {
color=red color=red
17 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 16 [label="Enter class IssueListView" style="filled" fillcolor=red];
18 [label="Exit anonymous object"]; 17 [label="Exit class IssueListView" style="filled" fillcolor=red];
19 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
17 -> {18}; 16 -> {17} [color=green];
18 -> {19};
subgraph cluster_6 { subgraph cluster_6 {
color=red color=red
20 [label="Enter function <init>" style="filled" fillcolor=red]; 18 [label="Enter function <init>" style="filled" fillcolor=red];
21 [label="Delegated constructor call: super<R|kotlin/Any|>()"]; 19 [label="Delegated constructor call: super<R|DelegateProvider<IssuesListUserProfile>|>()"];
22 [label="Exit function <init>" style="filled" fillcolor=red]; 20 [label="Exit function <init>" style="filled" fillcolor=red];
} }
20 -> {21}; 18 -> {19};
21 -> {22}; 19 -> {20};
subgraph cluster_7 { subgraph cluster_7 {
color=red color=red
23 [label="Enter function getValue" style="filled" fillcolor=red]; 21 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
24 [label="Function call: R|/IssueListView.IssueListView|()"]; 22 [label="Exit anonymous object"];
25 [label="Jump: ^getValue R|/IssueListView.IssueListView|()"]; 23 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
26 [label="Stub" style="filled" fillcolor=gray];
27 [label="Exit function getValue" style="filled" fillcolor=red];
} }
23 -> {24}; 21 -> {22};
24 -> {25}; 22 -> {23};
25 -> {27};
25 -> {26} [style=dotted];
26 -> {27} [style=dotted];
subgraph cluster_8 { subgraph cluster_8 {
color=red color=red
28 [label="Enter function setValue" style="filled" fillcolor=red]; 24 [label="Enter function <init>" style="filled" fillcolor=red];
29 [label="Function call: R|/IssueListView.IssueListView|()"]; 25 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
30 [label="Access variable R|<local>/value|"]; 26 [label="Exit function <init>" style="filled" fillcolor=red];
31 [label="Function call: R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(...)"];
32 [label="Jump: ^setValue R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(R|<local>/value|)"];
33 [label="Stub" style="filled" fillcolor=gray];
34 [label="Exit function setValue" style="filled" fillcolor=red];
} }
28 -> {29}; 24 -> {25};
29 -> {30}; 25 -> {26};
30 -> {31};
31 -> {32};
32 -> {34};
32 -> {33} [style=dotted];
33 -> {34} [style=dotted];
subgraph cluster_9 { subgraph cluster_9 {
color=red color=red
35 [label="Enter function getter" style="filled" fillcolor=red]; 27 [label="Enter function getValue" style="filled" fillcolor=red];
36 [label="Access variable D|/IssuesListUserProfile.issueListView|"]; 28 [label="Function call: R|/IssueListView.IssueListView|()"];
37 [label="Access variable this@R|/IssuesListUserProfile|"]; 29 [label="Jump: ^getValue R|/IssueListView.IssueListView|()"];
38 [label="Function call: D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.getValue: R|IssueListView|>|(...)"]; 30 [label="Stub" style="filled" fillcolor=gray];
39 [label="Jump: ^ D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.getValue: R|IssueListView|>|(this@R|/IssuesListUserProfile|, ::R|/IssuesListUserProfile.issueListView|)"]; 31 [label="Exit function getValue" style="filled" fillcolor=red];
40 [label="Stub" style="filled" fillcolor=gray];
41 [label="Exit function getter" style="filled" fillcolor=red];
} }
35 -> {36}; 27 -> {28};
36 -> {37}; 28 -> {29};
37 -> {38}; 29 -> {31};
38 -> {39}; 29 -> {30} [style=dotted];
39 -> {41}; 30 -> {31} [style=dotted];
39 -> {40} [style=dotted];
40 -> {41} [style=dotted];
subgraph cluster_10 { subgraph cluster_10 {
color=red color=red
42 [label="Enter function setter" style="filled" fillcolor=red]; 32 [label="Enter function setValue" style="filled" fillcolor=red];
43 [label="Access variable D|/IssuesListUserProfile.issueListView|"]; 33 [label="Function call: R|/IssueListView.IssueListView|()"];
44 [label="Access variable this@R|/IssuesListUserProfile|"]; 34 [label="Access variable R|<local>/value|"];
45 [label="Access variable R|<local>/issueListView|"]; 35 [label="Function call: R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(...)"];
46 [label="Function call: D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.setValue: R|kotlin/Unit|>|(...)"]; 36 [label="Jump: ^setValue R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(R|<local>/value|)"];
47 [label="Exit function setter" style="filled" fillcolor=red]; 37 [label="Stub" style="filled" fillcolor=gray];
38 [label="Exit function setValue" style="filled" fillcolor=red];
} }
42 -> {43}; 32 -> {33};
43 -> {44}; 33 -> {34};
44 -> {45}; 34 -> {35};
45 -> {46}; 35 -> {36};
46 -> {47}; 36 -> {38};
36 -> {37} [style=dotted];
37 -> {38} [style=dotted];
subgraph cluster_11 { subgraph cluster_11 {
color=red color=red
48 [label="Enter property" style="filled" fillcolor=red]; 39 [label="Enter class <anonymous>" style="filled" fillcolor=red];
49 [label="Postponed enter to lambda"]; 40 [label="Exit class <anonymous>" style="filled" fillcolor=red];
50 [label="Postponed exit from lambda"]; }
51 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)"];
52 [label="Access variable this@R|/IssuesListUserProfile|"]; 39 -> {40} [color=green];
53 [label="Access variable this@R|/IssuesListUserProfile|"];
54 [label="Access variable this@R|/IssuesListUserProfile|"]; subgraph cluster_12 {
55 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...).<Unresolved name: provideDelegate>#(...)"]; color=red
56 [label="Postponed enter to lambda"]; 41 [label="Enter function getter" style="filled" fillcolor=red];
57 [label="Postponed exit from lambda"]; 42 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
58 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)"]; 43 [label="Access variable this@R|/IssuesListUserProfile|"];
59 [label="Exit property" style="filled" fillcolor=red]; 44 [label="Function call: D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.getValue: R|IssueListView|>|(...)"];
45 [label="Jump: ^ D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.getValue: R|IssueListView|>|(this@R|/IssuesListUserProfile|, ::R|/IssuesListUserProfile.issueListView|)"];
46 [label="Stub" style="filled" fillcolor=gray];
47 [label="Exit function getter" style="filled" fillcolor=red];
}
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {47};
45 -> {46} [style=dotted];
46 -> {47} [style=dotted];
subgraph cluster_13 {
color=red
48 [label="Enter function setter" style="filled" fillcolor=red];
49 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
50 [label="Access variable this@R|/IssuesListUserProfile|"];
51 [label="Access variable R|<local>/issueListView|"];
52 [label="Function call: D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.setValue: R|kotlin/Unit|>|(...)"];
53 [label="Exit function setter" style="filled" fillcolor=red];
} }
48 -> {49}; 48 -> {49};
49 -> {50 50} [color=green]; 49 -> {50};
50 -> {51}; 50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {54};
subgraph cluster_14 {
color=red
54 [label="Enter property" style="filled" fillcolor=red];
55 [label="Postponed enter to lambda"];
56 [label="Postponed exit from lambda"];
57 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)"];
58 [label="Access variable this@R|/IssuesListUserProfile|"];
59 [label="Access variable this@R|/IssuesListUserProfile|"];
60 [label="Access variable this@R|/IssuesListUserProfile|"];
61 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...).<Unresolved name: provideDelegate>#(...)"];
62 [label="Postponed enter to lambda"];
63 [label="Postponed exit from lambda"];
64 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)"];
65 [label="Exit property" style="filled" fillcolor=red];
}
54 -> {55}; 54 -> {55};
55 -> {56}; 55 -> {56 56} [color=green];
56 -> {57 57} [color=green]; 56 -> {57};
57 -> {58}; 57 -> {58};
58 -> {59}; 58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63 63} [color=green];
63 -> {64};
64 -> {65};
subgraph cluster_15 {
color=red
66 [label="Enter class IssuesListUserProfile" style="filled" fillcolor=red];
67 [label="Exit class IssuesListUserProfile" style="filled" fillcolor=red];
}
} }
@@ -160,10 +160,31 @@ abstract class FirDataFlowAnalyzer<FLOW : Flow>(
enterNode.flow = enterNode.flow.fork() enterNode.flow = enterNode.flow.fork()
} }
// ----------------------------------- Anonymous object ----------------------------------- // ----------------------------------- Classes -----------------------------------
fun exitAnonymousObject(anonymousObject: FirAnonymousObject) { fun enterClass() {
graphBuilder.exitAnonymousObject(anonymousObject).mergeIncomingFlow() graphBuilder.enterClass()
}
fun exitClass() {
graphBuilder.exitClass()
}
fun exitRegularClass(klass: FirRegularClass): ControlFlowGraph {
if (klass.isLocal) return exitLocalClass(klass)
return graphBuilder.exitClass(klass)
}
private fun exitLocalClass(klass: FirRegularClass): ControlFlowGraph {
val (node, controlFlowGraph) = graphBuilder.exitLocalClass(klass)
node.mergeIncomingFlow()
return controlFlowGraph
}
fun exitAnonymousObject(anonymousObject: FirAnonymousObject): ControlFlowGraph {
val (node, controlFlowGraph) = graphBuilder.exitAnonymousObject(anonymousObject)
node.mergeIncomingFlow()
return controlFlowGraph
} }
// ----------------------------------- Property ----------------------------------- // ----------------------------------- Property -----------------------------------
@@ -135,13 +135,13 @@ class UnionFunctionCallArgumentsNode(owner: ControlFlowGraph, override val fir:
// ----------------------------------- Classes ----------------------------------- // ----------------------------------- Classes -----------------------------------
class ClassEnterNode(owner: ControlFlowGraph, override val fir: FirClass<*>, level: Int, id: Int) : CFGNode<FirClass<*>>(owner, level, id) { class ClassEnterNode(owner: ControlFlowGraph, override val fir: FirClass<*>, level: Int, id: Int) : CFGNode<FirClass<*>>(owner, level, id), EnterNodeMarker {
override fun <R, D> accept(visitor: ControlFlowGraphVisitor<R, D>, data: D): R { override fun <R, D> accept(visitor: ControlFlowGraphVisitor<R, D>, data: D): R {
return visitor.visitClassEnterNode(this, data) return visitor.visitClassEnterNode(this, data)
} }
} }
class ClassExitNode(owner: ControlFlowGraph, override val fir: FirClass<*>, level: Int, id: Int) : CFGNode<FirClass<*>>(owner, level, id) { class ClassExitNode(owner: ControlFlowGraph, override val fir: FirClass<*>, level: Int, id: Int) : CFGNode<FirClass<*>>(owner, level, id), ExitNodeMarker {
override fun <R, D> accept(visitor: ControlFlowGraphVisitor<R, D>, data: D): R { override fun <R, D> accept(visitor: ControlFlowGraphVisitor<R, D>, data: D): R {
return visitor.visitClassExitNode(this, data) return visitor.visitClassExitNode(this, data)
} }
@@ -68,33 +68,6 @@ class ControlFlowGraphBuilder {
// ----------------------------------- Named function ----------------------------------- // ----------------------------------- Named function -----------------------------------
fun prepareForLocalClassMembers(members: Collection<FirCallableMemberDeclaration<*>>) {
members.forEachFunction {
enterToLocalClassesMembers[it.symbol] = lastNodes.topOrNull()
}
}
fun cleanAfterForLocalClassMembers(members: Collection<FirCallableMemberDeclaration<*>>) {
members.forEachFunction {
enterToLocalClassesMembers.remove(it.symbol)
}
}
private inline fun Collection<FirCallableMemberDeclaration<*>>.forEachFunction(block: (FirFunction<*>) -> Unit) {
for (member in this) {
for (function in member.unwrap()) {
block(function)
}
}
}
private fun FirCallableMemberDeclaration<*>.unwrap(): List<FirFunction<*>> =
when (this) {
is FirFunction<*> -> listOf(this)
is FirProperty -> listOfNotNull(this.getter, this.setter)
else -> emptyList()
}
/* /*
* Second argument of pair is not null only if function is local and it is a * Second argument of pair is not null only if function is local and it is a
* previous node before function declaration * previous node before function declaration
@@ -233,13 +206,83 @@ class ControlFlowGraphBuilder {
return enterNode to exitNode return enterNode to exitNode
} }
// ----------------------------------- Anonymous object ----------------------------------- // ----------------------------------- Classes -----------------------------------
fun exitAnonymousObject(anonymousObject: FirAnonymousObject): AnonymousObjectExitNode { fun enterClass() {
return createAnonymousObjectExitNode(anonymousObject).also { levelCounter++
}
fun exitClass() {
levelCounter--
}
fun exitClass(klass: FirClass<*>): ControlFlowGraph {
exitClass()
val name = when (klass) {
is FirAnonymousObject -> "<anonymous>"
is FirRegularClass -> {
klass.name.asString()
}
else -> throw IllegalArgumentException("Unknown class kind: ${klass::class}")
}
graphs.push(ControlFlowGraph(klass, name, ControlFlowGraph.Kind.ClassInitializer))
var node: CFGNode<*> = createClassEnterNode(klass)
for (declaration in klass.declarations) {
val graph = when (declaration) {
is FirProperty -> declaration.controlFlowGraphReference.controlFlowGraph
is FirAnonymousInitializer -> declaration.controlFlowGraphReference.controlFlowGraph
else -> null
} ?: continue
addEdge(node, graph.enterNode, preferredKind = EdgeKind.Cfg)
node = graph.exitNode
}
val exitNode = createClassExitNode(klass)
addEdge(node, exitNode, preferredKind = EdgeKind.Cfg)
return graphs.pop()
}
fun prepareForLocalClassMembers(members: Collection<FirCallableMemberDeclaration<*>>) {
members.forEachFunction {
enterToLocalClassesMembers[it.symbol] = lastNodes.topOrNull()
}
}
fun cleanAfterForLocalClassMembers(members: Collection<FirCallableMemberDeclaration<*>>) {
members.forEachFunction {
enterToLocalClassesMembers.remove(it.symbol)
}
}
private inline fun Collection<FirCallableMemberDeclaration<*>>.forEachFunction(block: (FirFunction<*>) -> Unit) {
for (member in this) {
for (function in member.unwrap()) {
block(function)
}
}
}
private fun FirCallableMemberDeclaration<*>.unwrap(): List<FirFunction<*>> =
when (this) {
is FirFunction<*> -> listOf(this)
is FirProperty -> listOfNotNull(this.getter, this.setter)
else -> emptyList()
}
fun exitLocalClass(klass: FirRegularClass): Pair<LocalClassExitNode, ControlFlowGraph> {
val graph = exitClass(klass)
val node = createLocalClassExitNode(klass).also {
addNewSimpleNode(it)
}
return node to graph
}
fun exitAnonymousObject(anonymousObject: FirAnonymousObject): Pair<AnonymousObjectExitNode, ControlFlowGraph> {
val graph = exitClass(anonymousObject)
val node = createAnonymousObjectExitNode(anonymousObject).also {
// Hack for initializers of enum entries // Hack for initializers of enum entries
addNewSimpleNodeIfPossible(it) addNewSimpleNodeIfPossible(it)
} }
return node to graph
} }
// ----------------------------------- Block ----------------------------------- // ----------------------------------- Block -----------------------------------
@@ -761,7 +804,7 @@ class ControlFlowGraphBuilder {
fun enterInitBlock(initBlock: FirAnonymousInitializer): Pair<InitBlockEnterNode, CFGNode<*>?> { fun enterInitBlock(initBlock: FirAnonymousInitializer): Pair<InitBlockEnterNode, CFGNode<*>?> {
val lastNode = lastNodes.topOrNull() val lastNode = lastNodes.topOrNull()
graphs.push(ControlFlowGraph(initBlock, "init block", ControlFlowGraph.Kind.ClassInitializer)) graphs.push(ControlFlowGraph(initBlock, "init block", ControlFlowGraph.Kind.Function))
val enterNode = createInitBlockEnterNode(initBlock).also { val enterNode = createInitBlockEnterNode(initBlock).also {
lexicalScopes.push(stackOf(it)) lexicalScopes.push(stackOf(it))
} }
@@ -42,6 +42,7 @@ class FirControlFlowGraphRenderVisitor(
private var indexOffset = 0 private var indexOffset = 0
private var clusterCounter = 0 private var clusterCounter = 0
private val indices = mutableMapOf<CFGNode<*>, Int>()
override fun visitFile(file: FirFile) { override fun visitFile(file: FirFile) {
printer printer
@@ -82,7 +83,7 @@ class FirControlFlowGraphRenderVisitor(
with(printer) { with(printer) {
val graph = this@dotRenderToStringBuilder val graph = this@dotRenderToStringBuilder
val sortedNodes = graph.sortNodes() val sortedNodes = graph.sortNodes()
val indices = sortedNodes.indicesMap().mapValues { (_, index) -> index + indexOffset } sortedNodes.indicesMap().mapValuesTo(indices) { (_, index) -> index + indexOffset }
var color = RED var color = RED
sortedNodes.forEach { sortedNodes.forEach {
@@ -117,7 +118,7 @@ class FirControlFlowGraphRenderVisitor(
if (node.followingNodes.isEmpty()) return@forEachIndexed if (node.followingNodes.isEmpty()) return@forEachIndexed
fun renderEdges(kind: EdgeKind) { fun renderEdges(kind: EdgeKind) {
val edges = node.followingNodes.filter { node.outgoingEdges.getValue(it) == kind } val edges = node.followingNodes.filter { node.outgoingEdges.getValue(it) == kind && it.owner == graph }
if (edges.isEmpty()) return if (edges.isEmpty()) return
print( print(
i + indexOffset, i + indexOffset,
@@ -224,11 +225,14 @@ private fun CFGNode<*>.render(): String =
is PostponedLambdaEnterNode -> "Postponed enter to lambda" is PostponedLambdaEnterNode -> "Postponed enter to lambda"
is PostponedLambdaExitNode -> "Postponed exit from lambda" is PostponedLambdaExitNode -> "Postponed exit from lambda"
is AnonymousObjectExitNode -> "Exit anonymous object"
is UnionFunctionCallArgumentsNode -> "Call arguments union" is UnionFunctionCallArgumentsNode -> "Call arguments union"
else -> TODO(this@render.toString()) is ClassEnterNode -> "Enter class ${owner.name}"
is ClassExitNode -> "Exit class ${owner.name}"
is LocalClassExitNode -> "Exit local class ${owner.name}"
is AnonymousObjectExitNode -> "Exit anonymous object"
is AbstractBinaryExitNode -> throw IllegalStateException()
}, },
) )
} }
@@ -249,14 +253,16 @@ private fun FirLoop.type(): String = when (this) {
} }
private fun ControlFlowGraph.sortNodes(): List<CFGNode<*>> { private fun ControlFlowGraph.sortNodes(): List<CFGNode<*>> {
return DFS.topologicalOrder(nodes) { val nodesToSort = nodes.filter { it != enterNode }
val topologicalOrder = DFS.topologicalOrder(nodesToSort) {
val result = if (it !is WhenBranchConditionExitNode || it.followingNodes.size < 2) { val result = if (it !is WhenBranchConditionExitNode || it.followingNodes.size < 2) {
it.followingNodes it.followingNodes
} else { } else {
it.followingNodes.sortedBy { node -> if (node is BlockEnterNode) 1 else 0 } it.followingNodes.sortedBy { node -> if (node is BlockEnterNode) 1 else 0 }
} }.filter { it.owner == this }
result result
} }
return listOf(enterNode) + topologicalOrder
} }
private fun List<CFGNode<*>>.indicesMap(): Map<CFGNode<*>, Int> = mapIndexed { i, node -> node to i }.toMap() private fun List<CFGNode<*>>.indicesMap(): Map<CFGNode<*>, Int> = mapIndexed { i, node -> node to i }.toMap()
@@ -273,11 +273,12 @@ class FirDeclarationsResolveTransformer(transformer: FirBodyResolveTransformer)
override fun transformRegularClass(regularClass: FirRegularClass, data: ResolutionMode): CompositeTransformResult<FirStatement> { override fun transformRegularClass(regularClass: FirRegularClass, data: ResolutionMode): CompositeTransformResult<FirStatement> {
context.storeClass(regularClass) context.storeClass(regularClass)
if (regularClass.symbol.classId.isLocal && regularClass !in context.targetedLocalClasses) { if (regularClass.isLocal && regularClass !in context.targetedLocalClasses) {
return regularClass.runAllPhasesForLocalClass(components, data).compose() return regularClass.runAllPhasesForLocalClass(components, data).compose()
} }
return withTypeParametersOf(regularClass) { return withTypeParametersOf(regularClass) {
dataFlowAnalyzer.enterClass()
val oldConstructorScope = primaryConstructorParametersScope val oldConstructorScope = primaryConstructorParametersScope
val oldContainingClass = containingClass val oldContainingClass = containingClass
primaryConstructorParametersScope = null primaryConstructorParametersScope = null
@@ -292,12 +293,18 @@ class FirDeclarationsResolveTransformer(transformer: FirBodyResolveTransformer)
scope scope
} }
} }
transformDeclarationContent(regularClass, data) transformDeclarationContent(regularClass, data).single as FirRegularClass
}
if (!implicitTypeOnly) {
val controlFlowGraph = dataFlowAnalyzer.exitRegularClass(result)
result.transformControlFlowGraphReference(ControlFlowGraphReferenceTransformer, controlFlowGraph)
} else {
dataFlowAnalyzer.exitClass()
} }
containingClass = oldContainingClass containingClass = oldContainingClass
primaryConstructorParametersScope = oldConstructorScope primaryConstructorParametersScope = oldConstructorScope
@Suppress("UNCHECKED_CAST") @Suppress("UNCHECKED_CAST")
result as CompositeTransformResult<FirStatement> result.compose()
} }
} }
@@ -308,18 +315,22 @@ class FirDeclarationsResolveTransformer(transformer: FirBodyResolveTransformer)
if (anonymousObject !in context.targetedLocalClasses) { if (anonymousObject !in context.targetedLocalClasses) {
return anonymousObject.runAllPhasesForLocalClass(components, data).compose() return anonymousObject.runAllPhasesForLocalClass(components, data).compose()
} }
dataFlowAnalyzer.enterClass()
val type = anonymousObject.defaultType() val type = anonymousObject.defaultType()
anonymousObject.resultType = buildResolvedTypeRef { anonymousObject.resultType = buildResolvedTypeRef {
source = anonymousObject.source source = anonymousObject.source
this.type = type this.type = type
} }
val result = withLabelAndReceiverType(null, anonymousObject, type) { var result = withLabelAndReceiverType(null, anonymousObject, type) {
transformDeclarationContent(anonymousObject, data) transformDeclarationContent(anonymousObject, data).single as FirAnonymousObject
} }
dataFlowAnalyzer.exitAnonymousObject(result.single as FirAnonymousObject) if (!implicitTypeOnly) {
@Suppress("UNCHECKED_CAST") val graph = dataFlowAnalyzer.exitAnonymousObject(result)
return result as CompositeTransformResult<FirStatement> result = result.transformControlFlowGraphReference(ControlFlowGraphReferenceTransformer, graph)
} else {
dataFlowAnalyzer.exitClass()
}
return result.compose()
} }
private fun transformAnonymousFunctionWithLambdaResolution( private fun transformAnonymousFunctionWithLambdaResolution(
@@ -61,6 +61,8 @@ inline val FirPropertyAccessor.visibility get() = status.visibility
inline val FirPropertyAccessor.allowsToHaveFakeOverride: Boolean inline val FirPropertyAccessor.allowsToHaveFakeOverride: Boolean
get() = !Visibilities.isPrivate(visibility) && this != Visibilities.INVISIBLE_FAKE get() = !Visibilities.isPrivate(visibility) && this != Visibilities.INVISIBLE_FAKE
inline val FirRegularClass.isLocal get() = symbol.classId.isLocal
fun AbstractFirRegularClassBuilder.addDeclaration(declaration: FirDeclaration) { fun AbstractFirRegularClassBuilder.addDeclaration(declaration: FirDeclaration) {
declarations += declaration declarations += declaration
if (companionObject == null && declaration is FirRegularClass && declaration.isCompanion) { if (companionObject == null && declaration is FirRegularClass && declaration.isCompanion) {