Files
kotlin-fork/compiler/fir/resolve/testData/resolveWithStdlib/contracts/callsInPlace.dot
T

283 lines
9.2 KiB
Plaintext
Vendored

digraph callsInPlace_kt {
graph [splines=ortho nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function test" style="filled" fillcolor=red];
1 [label="Variable declaration: lval x: R|kotlin/Int|"];
2 [label="Postponed enter to lambda"];
subgraph cluster_1 {
color=blue
3 [label="Enter function anonymousFunction"];
4 [label="Const: Int(1)"];
5 [label="Assignmenet: R|<local>/x|"];
6 [label="Exit function anonymousFunction"];
}
7 [label="Postponed exit from lambda"];
8 [label="Function call: R|kotlin/run|<R|kotlin/Unit|>(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=EXACTLY_ONCE> )"];
9 [label="Access variable R|<local>/x|"];
10 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
11 [label="Exit function test" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
2 -> {7} [color=red];
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7} [color=green];
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11};
subgraph cluster_2 {
color=red
12 [label="Enter function test_2" style="filled" fillcolor=red];
13 [label="Const: Int(10)"];
14 [label="Postponed enter to lambda"];
subgraph cluster_3 {
color=blue
15 [label="Enter function anonymousFunction"];
16 [label="Const: String(test_2)"];
17 [label="Exit function anonymousFunction"];
}
18 [label="Postponed exit from lambda"];
19 [label="Function call: R|kotlin/repeat|(Int(10), <L> = repeat@fun <anonymous>(it: R|kotlin/Int|): R|kotlin/Unit| <kind=UNKNOWN> )"];
20 [label="Exit function test_2" style="filled" fillcolor=red];
}
12 -> {13};
13 -> {14};
14 -> {15};
14 -> {18} [color=red];
15 -> {17 16};
16 -> {17};
17 -> {15};
17 -> {18} [color=green];
18 -> {19};
19 -> {20};
subgraph cluster_4 {
color=red
21 [label="Enter function test_3" style="filled" fillcolor=red];
22 [label="Postponed enter to lambda"];
subgraph cluster_5 {
color=blue
23 [label="Enter function anonymousFunction"];
24 [label="Const: String(test_3)"];
25 [label="Exit function anonymousFunction"];
}
26 [label="Postponed exit from lambda"];
27 [label="Const: Int(10)"];
28 [label="Function call: R|kotlin/repeat|(action = repeat@fun <anonymous>(it: R|kotlin/Int|): R|kotlin/Unit| <kind=UNKNOWN> , times = Int(10))"];
29 [label="Exit function test_3" style="filled" fillcolor=red];
}
21 -> {22};
22 -> {23};
22 -> {26} [color=red];
23 -> {25 24};
24 -> {25};
25 -> {23};
25 -> {26} [color=green];
26 -> {27};
27 -> {28};
28 -> {29};
subgraph cluster_6 {
color=red
30 [label="Enter function test_4" style="filled" fillcolor=red];
31 [label="Const: Int(1)"];
32 [label="Postponed enter to lambda"];
subgraph cluster_7 {
color=blue
33 [label="Enter function anonymousFunction"];
34 [label="Const: String(test_4)"];
35 [label="Access variable R|<local>/it|"];
36 [label="Const: Int(0)"];
37 [label="Operator >"];
38 [label="Exit function anonymousFunction"];
}
39 [label="Postponed exit from lambda"];
40 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(<L> = takeUnless@fun <anonymous>(it: R|kotlin/Int|): R|kotlin/Boolean| <kind=EXACTLY_ONCE> )"];
41 [label="Exit function test_4" style="filled" fillcolor=red];
}
30 -> {31};
31 -> {32};
32 -> {33};
32 -> {39} [color=red];
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39} [color=green];
39 -> {40};
40 -> {41};
subgraph cluster_8 {
color=red
42 [label="Enter function test_5" style="filled" fillcolor=red];
43 [label="Const: Int(1)"];
44 [label="Postponed enter to lambda"];
subgraph cluster_9 {
color=blue
45 [label="Enter function anonymousFunction"];
46 [label="Const: String(test_5)"];
47 [label="Access variable R|<local>/it|"];
48 [label="Const: Int(0)"];
49 [label="Operator >"];
50 [label="Exit function anonymousFunction"];
}
51 [label="Postponed exit from lambda"];
52 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(predicate = takeUnless@fun <anonymous>(it: R|kotlin/Int|): R|kotlin/Boolean| <kind=EXACTLY_ONCE> )"];
53 [label="Exit function test_5" style="filled" fillcolor=red];
}
42 -> {43};
43 -> {44};
44 -> {45};
44 -> {51} [color=red];
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51} [color=green];
51 -> {52};
52 -> {53};
subgraph cluster_10 {
color=red
54 [label="Enter function myRun" style="filled" fillcolor=red];
55 [label="Function call: R|<local>/block1|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
56 [label="Function call: R|<local>/block2|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
57 [label="Exit function myRun" style="filled" fillcolor=red];
}
54 -> {55};
55 -> {56};
56 -> {57};
subgraph cluster_11 {
color=red
58 [label="Enter function test_6" style="filled" fillcolor=red];
59 [label="Postponed enter to lambda"];
subgraph cluster_12 {
color=blue
60 [label="Enter function anonymousFunction"];
61 [label="Const: String(test_6_1)"];
62 [label="Exit function anonymousFunction"];
}
63 [label="Postponed exit from lambda"];
64 [label="Postponed enter to lambda"];
subgraph cluster_13 {
color=blue
65 [label="Enter function anonymousFunction"];
66 [label="Const: String(test_6_2)"];
67 [label="Exit function anonymousFunction"];
}
68 [label="Postponed exit from lambda"];
69 [label="Function call: R|/myRun|(myRun@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> , <L> = myRun@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> )"];
70 [label="Exit function test_6" style="filled" fillcolor=red];
}
58 -> {59};
59 -> {60};
59 -> {63} [color=red];
60 -> {62 61};
61 -> {62};
62 -> {60};
62 -> {63} [color=green];
63 -> {64};
64 -> {65};
64 -> {68} [color=red];
65 -> {67 66};
66 -> {67};
67 -> {65};
67 -> {68} [color=green];
68 -> {69};
69 -> {70};
subgraph cluster_14 {
color=red
71 [label="Enter function test_7" style="filled" fillcolor=red];
72 [label="Postponed enter to lambda"];
subgraph cluster_15 {
color=blue
73 [label="Enter function anonymousFunction"];
74 [label="Const: String(test_7_2)"];
75 [label="Exit function anonymousFunction"];
}
76 [label="Postponed exit from lambda"];
77 [label="Postponed enter to lambda"];
subgraph cluster_16 {
color=blue
78 [label="Enter function anonymousFunction"];
79 [label="Const: String(test_7_1)"];
80 [label="Exit function anonymousFunction"];
}
81 [label="Postponed exit from lambda"];
82 [label="Function call: R|/myRun|(block2 = myRun@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> , block1 = myRun@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> )"];
83 [label="Exit function test_7" style="filled" fillcolor=red];
}
71 -> {72};
72 -> {73};
72 -> {76} [color=red];
73 -> {75 74};
74 -> {75};
75 -> {73};
75 -> {76} [color=green];
76 -> {77};
77 -> {78};
77 -> {81} [color=red];
78 -> {80 79};
79 -> {80};
80 -> {78};
80 -> {81} [color=green];
81 -> {82};
82 -> {83};
subgraph cluster_17 {
color=red
84 [label="Enter function myDummyRun" style="filled" fillcolor=red];
85 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
86 [label="Exit function myDummyRun" style="filled" fillcolor=red];
}
84 -> {85};
85 -> {86};
subgraph cluster_18 {
color=red
87 [label="Enter function test_8" style="filled" fillcolor=red];
88 [label="Postponed enter to lambda"];
89 [label="Postponed exit from lambda"];
90 [label="Function call: R|/myDummyRun|(<L> = myDummyRun@fun <anonymous>(): R|kotlin/Unit|)"];
91 [label="Exit function test_8" style="filled" fillcolor=red];
}
87 -> {88};
88 -> {89 89} [color=green];
89 -> {90};
90 -> {91};
subgraph cluster_19 {
color=red
92 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
93 [label="Const: String(test_8)"];
94 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
92 -> {93};
93 -> {94};
}