[FIR] add cfg dump to script test

^KT-62834
This commit is contained in:
Dmitrii Gridin
2023-10-23 18:23:40 +02:00
committed by Space Team
parent 2eb761adae
commit a1ee07603a
5 changed files with 340 additions and 0 deletions
@@ -0,0 +1,43 @@
digraph ComplexScript_kts {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter file ComplexScript.kts [1]" style="filled" fillcolor=red];
1 [label="Exit file ComplexScript.kts [1]" style="filled" fillcolor=red];
}
0 -> {1} [color=green];
subgraph cluster_1 {
color=red
2 [label="Enter function foo [3]" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue
3 [label="Enter block [3]"];
4 [label="Const: Int(1) [3]"];
5 [label="Jump: ^foo Int(1) [3]"];
6 [label="Stub [3]" style="filled" fillcolor=gray];
7 [label="Exit block [3]" style="filled" fillcolor=gray];
}
8 [label="Exit function foo [3]" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {8};
5 -> {6} [style=dotted];
6 -> {7} [style=dotted];
7 -> {8} [style=dotted];
subgraph cluster_3 {
color=red
9 [label="Enter property [3]" style="filled" fillcolor=red];
10 [label="Const: Int(2) [3]"];
11 [label="Exit property [3]" style="filled" fillcolor=red];
}
9 -> {10};
10 -> {11};
}