Skip to content

Commit 1f4078a

Browse files
committed
llvm/test/tools/llvm-cov yaml
1 parent 7d62e4d commit 1f4078a

11 files changed

+2125
-80
lines changed

llvm/test/tools/llvm-cov/Inputs/branch-c-general.yaml

Lines changed: 679 additions & 14 deletions
Large diffs are not rendered by default.

llvm/test/tools/llvm-cov/Inputs/branch-logical-mixed.yaml

Lines changed: 199 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,214 @@ Sections:
1010
- Name: __llvm_covfun
1111
Type: SHT_PROGBITS
1212
AddressAlign: 0x8
13-
Content: F0A0ED2C305C0BB3C0030000F834CF5F518FC8834287299580773304010030012525291D2115190D110509014D4D5145493D4135392D31017D7D8101758501850189016D8D018D019101659501950199015D9D019D01A10155A501A501A90101D501D501D901CD01DD01DD01E101C501E501E501E901BD01ED01ED01F101B501F501F501F901AD01FD01FD018102018502018502018502018902018902018902018D02018D02018D020191020191020191027D010819430201080C000E01000C010E01000C020E01000C030E01000C040E202502000C000E25010C000E202906000C000E1D010C000E20210A000C000E15010C000E20190E000C000E0D010C000E201112000C000E05010C000E200916000C000E01020C000E01000C010E01000C020E01000C030E01000C040E201A4D000C000E4D010C000E201E51000C000E45010C000E202249000C000E3D010C000E202641000C000E35010C000E202A39000C000E2D010C000E202E31000C000E01020C011001000C031001000C051001000C071001000C091001000D000F207D32000D000F7D010D000F20810136000D000F75010C011075000D000F2085013A000D000F8501010D000F2089013E000D000F6D010C01106D000D000F208D0142000D000F8D01010D000F20910146000D000F65010C011065000D000F2095014A000D000F9501010D000F2099014E000D000F5D010C01105D000D000F209D0152000D000F9D01010D000F20A10156000D000F55010C011055000D000F20A5015A000D000FA501010D000F20A9015E000D000F01020C011001000C031001000C051001000C071001000C091001000D000F2062D501000D000FD501010D000F2066D901000D000FCD01010C0110CD01000D000F206ADD01000D000FDD01010D000F206EE101000D000FC501010C0110C501000D000F2072E501000D000FE501010D000F2076E901000D000FBD01010C0110BD01000D000F207AED01000D000FED01010D000F207EF101000D000FB501010C0110B501000D000F208201F501000D000FF501010D000F208601F901000D000FAD01010C0110AD01000D000F208A01FD01000D000FFD01010D000F208E018102000D000F01020700082085029A0100070008850200090185808080088502010500169A0100170285808080089A01020500160102070008208902A6010007000889020009018580808008890201050016A6010017028580808008A601020500160102070008208D02B201000700088D0200090185808080088D0201050016B2010017028580808008B201020500160102070008209102BE010007000891020009018580808008910201050016BE010017028580808008BE0102050016
13+
CovFun:
14+
- FuncName: _Z4funcii
15+
Signature: 0x83C88F515FCF34F8
16+
FilenamesRef: 0x433778095298742
17+
Filenames:
18+
- '/tmp/branch-logical-mixed.cpp'
19+
Expressions:
20+
- [ { Ref: 0 }, { Ref: 9 } ]
21+
- [ { Ref: 9 }, { Ref: 10 } ]
22+
- [ { Ref: 7 }, { Ref: 8 } ]
23+
- [ { Ref: 5 }, { Ref: 6 } ]
24+
- [ { Ref: 3 }, { Ref: 4 } ]
25+
- [ { Ref: 1 }, { Ref: 2 } ]
26+
- [ { Ref: 0 }, { Ref: 19 } ]
27+
- [ { Ref: 19 }, { Ref: 20 } ]
28+
- [ { Ref: 17 }, { Ref: 18 } ]
29+
- [ { Ref: 15 }, { Ref: 16 } ]
30+
- [ { Ref: 13 }, { Ref: 14 } ]
31+
- [ { Ref: 11 }, { Ref: 12 } ]
32+
- [ { Ref: 0 }, { Ref: 31 } ]
33+
- [ { Ref: 31 }, { Ref: 32 } ]
34+
- [ { Ref: 29 }, { Ref: 33 } ]
35+
- [ { Ref: 33 }, { Ref: 34 } ]
36+
- [ { Ref: 27 }, { Ref: 35 } ]
37+
- [ { Ref: 35 }, { Ref: 36 } ]
38+
- [ { Ref: 25 }, { Ref: 37 } ]
39+
- [ { Ref: 37 }, { Ref: 38 } ]
40+
- [ { Ref: 23 }, { Ref: 39 } ]
41+
- [ { Ref: 39 }, { Ref: 40 } ]
42+
- [ { Ref: 21 }, { Ref: 41 } ]
43+
- [ { Ref: 41 }, { Ref: 42 } ]
44+
- [ { Ref: 0 }, { Ref: 53 } ]
45+
- [ { Ref: 53 }, { Ref: 54 } ]
46+
- [ { Ref: 51 }, { Ref: 55 } ]
47+
- [ { Ref: 55 }, { Ref: 56 } ]
48+
- [ { Ref: 49 }, { Ref: 57 } ]
49+
- [ { Ref: 57 }, { Ref: 58 } ]
50+
- [ { Ref: 47 }, { Ref: 59 } ]
51+
- [ { Ref: 59 }, { Ref: 60 } ]
52+
- [ { Ref: 45 }, { Ref: 61 } ]
53+
- [ { Ref: 61 }, { Ref: 62 } ]
54+
- [ { Ref: 43 }, { Ref: 63 } ]
55+
- [ { Ref: 63 }, { Ref: 64 } ]
56+
- [ { Ref: 0 }, { Ref: 65 } ]
57+
- [ { Ref: 0 }, { Ref: 65 } ]
58+
- [ { Ref: 0 }, { Ref: 65 } ]
59+
- [ { Ref: 0 }, { Ref: 66 } ]
60+
- [ { Ref: 0 }, { Ref: 66 } ]
61+
- [ { Ref: 0 }, { Ref: 66 } ]
62+
- [ { Ref: 0 }, { Ref: 67 } ]
63+
- [ { Ref: 0 }, { Ref: 67 } ]
64+
- [ { Ref: 0 }, { Ref: 67 } ]
65+
- [ { Ref: 0 }, { Ref: 68 } ]
66+
- [ { Ref: 0 }, { Ref: 68 } ]
67+
- [ { Ref: 0 }, { Ref: 68 } ]
68+
Records:
69+
- { File: 0, dLoc: [ 8, 25, 67, 2 ], Ref: 0 }
70+
- { File: 0, dLoc: [ 8, 12, 0, 14 ], Ref: 0 }
71+
- { File: 0, dLoc: [ 0, 12, 1, 14 ], Ref: 0 }
72+
- { File: 0, dLoc: [ 0, 12, 2, 14 ], Ref: 0 }
73+
- { File: 0, dLoc: [ 0, 12, 3, 14 ], Ref: 0 }
74+
- { File: 0, dLoc: [ 0, 12, 4, 14 ], Ref: 0 }
75+
- { File: 0, dLoc: [ 0, 12, 0, 14 ], Branch: { True: { Ref: 9 }, False: { Sub: 0 } } }
76+
- { File: 0, dLoc: [ 1, 12, 0, 14 ], Ref: 9 }
77+
- { File: 0, dLoc: [ 0, 12, 0, 14 ], Branch: { True: { Ref: 10 }, False: { Sub: 1 } } }
78+
- { File: 0, dLoc: [ 1, 12, 0, 14 ], Ref: 7 }
79+
- { File: 0, dLoc: [ 0, 12, 0, 14 ], Branch: { True: { Ref: 8 }, False: { Sub: 2 } } }
80+
- { File: 0, dLoc: [ 1, 12, 0, 14 ], Ref: 5 }
81+
- { File: 0, dLoc: [ 0, 12, 0, 14 ], Branch: { True: { Ref: 6 }, False: { Sub: 3 } } }
82+
- { File: 0, dLoc: [ 1, 12, 0, 14 ], Ref: 3 }
83+
- { File: 0, dLoc: [ 0, 12, 0, 14 ], Branch: { True: { Ref: 4 }, False: { Sub: 4 } } }
84+
- { File: 0, dLoc: [ 1, 12, 0, 14 ], Ref: 1 }
85+
- { File: 0, dLoc: [ 0, 12, 0, 14 ], Branch: { True: { Ref: 2 }, False: { Sub: 5 } } }
86+
- { File: 0, dLoc: [ 2, 12, 0, 14 ], Ref: 0 }
87+
- { File: 0, dLoc: [ 0, 12, 1, 14 ], Ref: 0 }
88+
- { File: 0, dLoc: [ 0, 12, 2, 14 ], Ref: 0 }
89+
- { File: 0, dLoc: [ 0, 12, 3, 14 ], Ref: 0 }
90+
- { File: 0, dLoc: [ 0, 12, 4, 14 ], Ref: 0 }
91+
- { File: 0, dLoc: [ 0, 12, 0, 14 ], Branch: { True: { Sub: 6 }, False: { Ref: 19 } } }
92+
- { File: 0, dLoc: [ 1, 12, 0, 14 ], Ref: 19 }
93+
- { File: 0, dLoc: [ 0, 12, 0, 14 ], Branch: { True: { Sub: 7 }, False: { Ref: 20 } } }
94+
- { File: 0, dLoc: [ 1, 12, 0, 14 ], Ref: 17 }
95+
- { File: 0, dLoc: [ 0, 12, 0, 14 ], Branch: { True: { Sub: 8 }, False: { Ref: 18 } } }
96+
- { File: 0, dLoc: [ 1, 12, 0, 14 ], Ref: 15 }
97+
- { File: 0, dLoc: [ 0, 12, 0, 14 ], Branch: { True: { Sub: 9 }, False: { Ref: 16 } } }
98+
- { File: 0, dLoc: [ 1, 12, 0, 14 ], Ref: 13 }
99+
- { File: 0, dLoc: [ 0, 12, 0, 14 ], Branch: { True: { Sub: 10 }, False: { Ref: 14 } } }
100+
- { File: 0, dLoc: [ 1, 12, 0, 14 ], Ref: 11 }
101+
- { File: 0, dLoc: [ 0, 12, 0, 14 ], Branch: { True: { Sub: 11 }, False: { Ref: 12 } } }
102+
- { File: 0, dLoc: [ 2, 12, 1, 16 ], Ref: 0 }
103+
- { File: 0, dLoc: [ 0, 12, 3, 16 ], Ref: 0 }
104+
- { File: 0, dLoc: [ 0, 12, 5, 16 ], Ref: 0 }
105+
- { File: 0, dLoc: [ 0, 12, 7, 16 ], Ref: 0 }
106+
- { File: 0, dLoc: [ 0, 12, 9, 16 ], Ref: 0 }
107+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Ref: 0 }
108+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Ref: 31 }, False: { Sub: 12 } } }
109+
- { File: 0, dLoc: [ 1, 13, 0, 15 ], Ref: 31 }
110+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Ref: 32 }, False: { Sub: 13 } } }
111+
- { File: 0, dLoc: [ 1, 12, 1, 16 ], Ref: 29 }
112+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Ref: 29 }
113+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Ref: 33 }, False: { Sub: 14 } } }
114+
- { File: 0, dLoc: [ 1, 13, 0, 15 ], Ref: 33 }
115+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Ref: 34 }, False: { Sub: 15 } } }
116+
- { File: 0, dLoc: [ 1, 12, 1, 16 ], Ref: 27 }
117+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Ref: 27 }
118+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Ref: 35 }, False: { Sub: 16 } } }
119+
- { File: 0, dLoc: [ 1, 13, 0, 15 ], Ref: 35 }
120+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Ref: 36 }, False: { Sub: 17 } } }
121+
- { File: 0, dLoc: [ 1, 12, 1, 16 ], Ref: 25 }
122+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Ref: 25 }
123+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Ref: 37 }, False: { Sub: 18 } } }
124+
- { File: 0, dLoc: [ 1, 13, 0, 15 ], Ref: 37 }
125+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Ref: 38 }, False: { Sub: 19 } } }
126+
- { File: 0, dLoc: [ 1, 12, 1, 16 ], Ref: 23 }
127+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Ref: 23 }
128+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Ref: 39 }, False: { Sub: 20 } } }
129+
- { File: 0, dLoc: [ 1, 13, 0, 15 ], Ref: 39 }
130+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Ref: 40 }, False: { Sub: 21 } } }
131+
- { File: 0, dLoc: [ 1, 12, 1, 16 ], Ref: 21 }
132+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Ref: 21 }
133+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Ref: 41 }, False: { Sub: 22 } } }
134+
- { File: 0, dLoc: [ 1, 13, 0, 15 ], Ref: 41 }
135+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Ref: 42 }, False: { Sub: 23 } } }
136+
- { File: 0, dLoc: [ 2, 12, 1, 16 ], Ref: 0 }
137+
- { File: 0, dLoc: [ 0, 12, 3, 16 ], Ref: 0 }
138+
- { File: 0, dLoc: [ 0, 12, 5, 16 ], Ref: 0 }
139+
- { File: 0, dLoc: [ 0, 12, 7, 16 ], Ref: 0 }
140+
- { File: 0, dLoc: [ 0, 12, 9, 16 ], Ref: 0 }
141+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Ref: 0 }
142+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Sub: 24 }, False: { Ref: 53 } } }
143+
- { File: 0, dLoc: [ 1, 13, 0, 15 ], Ref: 53 }
144+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Sub: 25 }, False: { Ref: 54 } } }
145+
- { File: 0, dLoc: [ 1, 12, 1, 16 ], Ref: 51 }
146+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Ref: 51 }
147+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Sub: 26 }, False: { Ref: 55 } } }
148+
- { File: 0, dLoc: [ 1, 13, 0, 15 ], Ref: 55 }
149+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Sub: 27 }, False: { Ref: 56 } } }
150+
- { File: 0, dLoc: [ 1, 12, 1, 16 ], Ref: 49 }
151+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Ref: 49 }
152+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Sub: 28 }, False: { Ref: 57 } } }
153+
- { File: 0, dLoc: [ 1, 13, 0, 15 ], Ref: 57 }
154+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Sub: 29 }, False: { Ref: 58 } } }
155+
- { File: 0, dLoc: [ 1, 12, 1, 16 ], Ref: 47 }
156+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Ref: 47 }
157+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Sub: 30 }, False: { Ref: 59 } } }
158+
- { File: 0, dLoc: [ 1, 13, 0, 15 ], Ref: 59 }
159+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Sub: 31 }, False: { Ref: 60 } } }
160+
- { File: 0, dLoc: [ 1, 12, 1, 16 ], Ref: 45 }
161+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Ref: 45 }
162+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Sub: 32 }, False: { Ref: 61 } } }
163+
- { File: 0, dLoc: [ 1, 13, 0, 15 ], Ref: 61 }
164+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Sub: 33 }, False: { Ref: 62 } } }
165+
- { File: 0, dLoc: [ 1, 12, 1, 16 ], Ref: 43 }
166+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Ref: 43 }
167+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Sub: 34 }, False: { Ref: 63 } } }
168+
- { File: 0, dLoc: [ 1, 13, 0, 15 ], Ref: 63 }
169+
- { File: 0, dLoc: [ 0, 13, 0, 15 ], Branch: { True: { Sub: 35 }, False: { Ref: 64 } } }
170+
- { File: 0, dLoc: [ 2, 7, 0, 8 ], Ref: 0 }
171+
- { File: 0, dLoc: [ 0, 7, 0, 8 ], Branch: { True: { Ref: 65 }, False: { Sub: 38 } } }
172+
- { File: 0, dLoc: [ 0, 9, 1, 5 ], isGap: true, Ref: 65 }
173+
- { File: 0, dLoc: [ 1, 5, 0, 22 ], Ref: 65 }
174+
- { File: 0, dLoc: [ 0, 23, 2, 5 ], isGap: true, Sub: 38 }
175+
- { File: 0, dLoc: [ 2, 5, 0, 22 ], Sub: 38 }
176+
- { File: 0, dLoc: [ 2, 7, 0, 8 ], Ref: 0 }
177+
- { File: 0, dLoc: [ 0, 7, 0, 8 ], Branch: { True: { Ref: 66 }, False: { Sub: 41 } } }
178+
- { File: 0, dLoc: [ 0, 9, 1, 5 ], isGap: true, Ref: 66 }
179+
- { File: 0, dLoc: [ 1, 5, 0, 22 ], Ref: 66 }
180+
- { File: 0, dLoc: [ 0, 23, 2, 5 ], isGap: true, Sub: 41 }
181+
- { File: 0, dLoc: [ 2, 5, 0, 22 ], Sub: 41 }
182+
- { File: 0, dLoc: [ 2, 7, 0, 8 ], Ref: 0 }
183+
- { File: 0, dLoc: [ 0, 7, 0, 8 ], Branch: { True: { Ref: 67 }, False: { Sub: 44 } } }
184+
- { File: 0, dLoc: [ 0, 9, 1, 5 ], isGap: true, Ref: 67 }
185+
- { File: 0, dLoc: [ 1, 5, 0, 22 ], Ref: 67 }
186+
- { File: 0, dLoc: [ 0, 23, 2, 5 ], isGap: true, Sub: 44 }
187+
- { File: 0, dLoc: [ 2, 5, 0, 22 ], Sub: 44 }
188+
- { File: 0, dLoc: [ 2, 7, 0, 8 ], Ref: 0 }
189+
- { File: 0, dLoc: [ 0, 7, 0, 8 ], Branch: { True: { Ref: 68 }, False: { Sub: 47 } } }
190+
- { File: 0, dLoc: [ 0, 9, 1, 5 ], isGap: true, Ref: 68 }
191+
- { File: 0, dLoc: [ 1, 5, 0, 22 ], Ref: 68 }
192+
- { File: 0, dLoc: [ 0, 23, 2, 5 ], isGap: true, Sub: 47 }
193+
- { File: 0, dLoc: [ 2, 5, 0, 22 ], Sub: 47 }
14194
- Name: '__llvm_covfun (1)'
15195
Type: SHT_PROGBITS
16196
AddressAlign: 0x8
17-
Content: FAD58DE7366495DB090000001800000000000000428729958077330401000001014F010402
197+
CovFun:
198+
- FuncName: main
199+
Signature: 0x18
200+
FilenamesRef: 0x433778095298742
201+
Filenames:
202+
- '/tmp/branch-logical-mixed.cpp'
203+
Expressions: []
204+
Records:
205+
- { File: 0, dLoc: [ 79, 1, 4, 2 ], Ref: 0 }
18206
- Name: __llvm_covmap
19207
Type: SHT_PROGBITS
20208
AddressAlign: 0x8
21-
Content: 00000000210000000000000003000000011E001D2F746D702F6272616E63682D6C6F676963616C2D6D697865642E637070000000
209+
CovMap:
210+
- Version: 3
211+
FnBlobHash: 0x433778095298742
212+
Filenames:
213+
- '/tmp/branch-logical-mixed.cpp'
22214
- Name: __llvm_prf_names
23215
Type: SHT_PROGBITS
24216
AddressAlign: 0x1
25-
Content: 0E005F5A3466756E636969016D61696E
217+
PrfNames:
218+
- Names:
219+
- _Z4funcii
220+
- main
26221
- Type: SectionHeaderTable
27222
Sections:
28223
- Name: .strtab

0 commit comments

Comments
 (0)