FIR DFA: route data flow through anonymous objects

^KT-44515 Fixed
This commit is contained in:
pyos
2022-12-11 16:40:12 +01:00
committed by Dmitriy Novozhilov
parent 17ee8f3a7b
commit 0dd949bb36
16 changed files with 365 additions and 405 deletions
@@ -44,62 +44,63 @@ digraph inAnonymousObject_kt {
}
18 [label="Exit class <anonymous object>" style="filled" fillcolor=red];
}
19 [label="Exit anonymous object"];
20 [label="Exit anonymous object expression"];
21 [label="Variable declaration: lval obj: R|<anonymous>|"];
22 [label="Access variable R|<local>/obj|"];
23 [label="Function call: R|<local>/obj|.R|/<anonymous>.run|()" style="filled" fillcolor=yellow];
24 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
25 [label="Exit block"];
19 [label="Exit anonymous object expression"];
20 [label="Variable declaration: lval obj: R|<anonymous>|"];
21 [label="Access variable R|<local>/obj|"];
22 [label="Function call: R|<local>/obj|.R|/<anonymous>.run|()" style="filled" fillcolor=yellow];
23 [label="Function call: R|<local>/d|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
24 [label="Exit block"];
}
26 [label="Exit function foo" style="filled" fillcolor=red];
25 [label="Exit function foo" style="filled" fillcolor=red];
}
subgraph cluster_8 {
color=blue
27 [label="Enter function run" style="filled" fillcolor=red];
26 [label="Enter function run" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
28 [label="Enter block"];
29 [label="Function call: R|<local>/c|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
30 [label="Exit block"];
27 [label="Enter block"];
28 [label="Function call: R|<local>/c|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()" style="filled" fillcolor=yellow];
29 [label="Exit block"];
}
31 [label="Exit function run" style="filled" fillcolor=red];
30 [label="Exit function run" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
4 -> {19} [color=red];
4 -> {19} [style=dotted];
4 -> {5} [style=dashed];
5 -> {6};
5 -> {9 12 27} [color=red];
5 -> {9 12 26} [color=red];
5 -> {18} [style=dotted];
5 -> {6 9 12} [style=dashed];
6 -> {7};
7 -> {8};
8 -> {9} [color=green];
8 -> {18} [color=red];
9 -> {10};
10 -> {11};
11 -> {12} [color=green];
11 -> {18} [color=red];
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18} [color=green];
18 -> {19 27} [color=green];
18 -> {27} [style=dashed];
17 -> {18};
18 -> {19};
18 -> {26} [color=green];
18 -> {26} [style=dashed];
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
}