File tree 2 files changed +95
-0
lines changed
2 files changed +95
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ exports_files([
47
47
"sample.c" ,
48
48
"sample_section.bin" ,
49
49
"simple_conditionals_join.protobuf" ,
50
+ "simple_loop.protobuf" ,
50
51
"test_comdat.h" ,
51
52
"test_comdat_1.cc" ,
52
53
"test_comdat_2.cc" ,
Original file line number Diff line number Diff line change
1
+ ## CFG Proto for a function consisting of a conditional and a loop on one side
2
+ ## of the conditional.
3
+ ##
4
+ ## foo
5
+ ## |
6
+ ## |5
7
+ ## V
8
+ ## a.BB.foo <--+
9
+ ## / \ |
10
+ ## 0/ \95 |90
11
+ ## / \ |
12
+ ## v \ |
13
+ ## aa.BB.foo v |
14
+ ## \ aaa.BB.foo
15
+ ## \ /
16
+ ## \ /
17
+ ## 0\ /10
18
+ ## \ /
19
+ ## v v
20
+ ## raaa.BB.foo
21
+
22
+ cfg {
23
+ name: "foo"
24
+ name: "foo.alias"
25
+ function_index: 0
26
+ node {
27
+ bb_id: 0
28
+ size: 10
29
+ out_edges {
30
+ sink: {
31
+ function_index: 0
32
+ bb_index: 1
33
+ }
34
+ weight: 5
35
+ kind: BRANCH_OR_FALLTHROUGH
36
+ }
37
+ }
38
+ node {
39
+ bb_id: 1
40
+ size: 6
41
+ out_edges {
42
+ sink: {
43
+ function_index: 0
44
+ bb_index: 2
45
+ }
46
+ weight: 0
47
+ kind: BRANCH_OR_FALLTHROUGH
48
+ }
49
+ out_edges {
50
+ sink: {
51
+ function_index: 0
52
+ bb_index: 3
53
+ }
54
+ weight: 95
55
+ kind: BRANCH_OR_FALLTHROUGH
56
+ }
57
+ }
58
+ node {
59
+ bb_id: 2
60
+ size: 4
61
+ out_edges {
62
+ sink: {
63
+ function_index: 0
64
+ bb_index: 4
65
+ }
66
+ weight: 0
67
+ kind: BRANCH_OR_FALLTHROUGH
68
+ }
69
+ }
70
+ node {
71
+ bb_id: 3
72
+ size: 4
73
+ out_edges {
74
+ sink: {
75
+ function_index: 0
76
+ bb_index: 1
77
+ }
78
+ weight: 90
79
+ kind: BRANCH_OR_FALLTHROUGH
80
+ }
81
+ out_edges {
82
+ sink: {
83
+ function_index: 0
84
+ bb_index: 4
85
+ }
86
+ weight: 10
87
+ kind: BRANCH_OR_FALLTHROUGH
88
+ }
89
+ }
90
+ node {
91
+ bb_id: 4
92
+ size: 6
93
+ }
94
+ }
You can’t perform that action at this time.
0 commit comments