Debian Codegraph @

tests/decisions/reference/decisions-neg-delta/gcc-13/coverage.main.cpp.118fcbaaba162ba17933c7893247df3a.html

raw
1 <!DOCTYPE html>
2 <html class="theme-green">
3
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6 <title>main.cpp - GCC Code Coverage Report</title>
7 <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
8 <link rel="stylesheet" href="coverage.css"/>
9 <script src="coverage.js"></script>
10 </head>
11
12 <body>
13 <div class="Layout-main">
14 <div class="Layout-main-centered-lg" style="max-width: 1280px;">
15 <div class="d-flex flex-justify-center">
16 <h1>GCC Code Coverage Report</h1>
17 </div>
18 <hr class="block-separator"/>
19 <header>
20 <div id="summary-coverage.main.cpp.118fcbaaba162ba17933c7893247df3a.html" class="summary">
21 <div>
22 <table class="legend">
23 <tr>
24 <th scope="row">Directory:</th>
25 <td>.</td>
26 </tr>
27 <tr>
28 <th scope="row">Coverage:</th>
29 <td class="legend">
30 <span class="coverage-low">low: &ge; 0%</span>
31 <span class="coverage-medium">medium: &ge; 75.0%</span>
32 <span class="coverage-high">high: &ge; 90.0%</span>
33 </td>
34 </tr>
35 </table>
36 </div>
37 <div>
38 <table class="coverage">
39 <tr>
40 <th></th>
41 <th scope="col">Coverage</th>
42 <th scope="col">Exec / Excl / Total</th>
43 </tr>
44 <tr>
45 <th scope="row">Lines:</th>
46 <td class="coverage-high">100.0%</td>
47 <td class="coverage-high">9 / 0 / 9</td>
48 </tr>
49 <tr>
50 <th scope="row">Functions:</th>
51 <td class="coverage-high">100.0%</td>
52 <td class="coverage-high">2 / 0 / 2</td>
53 </tr>
54 <tr>
55 <th scope="row">Branches:</th>
56 <td class="coverage-low">62.5%</td>
57 <td class="coverage-low">5 / 0 / 8</td>
58 </tr>
59 <tr>
60 <th scope="row">Decisions:</th>
61 <td class="coverage-medium">75.0%</td>
62 <td class="coverage-medium">3 / - / 4</td>
63 </tr>
64 </table>
65 </div>
66 </div>
67 </header>
68 <hr/>
69 <nav>
70 <div class="m-3">
71 <details>
72 <summary>List of functions</summary>
73 <div class="Box m-3 functionslist">
74 <div class="Box-header py-2 d-flex sticky">
75 <div role="rowheader" class="color-fg-muted flex-auto min-width-0 col-md-2 sortable sorted-ascending">Function (File:Line)</div>
76 <div role="rowheader" class="color-fg-muted flex-auto min-width-0 d-flex flex-justify-end flex-wrap flex-items-baseline sortable">Calls</div>
77 <div role="rowheader" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2 sortable">Lines</div>
78 <div role="rowheader" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2 sortable">Branches</div>
79 <div role="rowheader" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2 sortable">Blocks</div>
80 </div>
81 <div class="Box-row Box-row--focus-gray py-2 d-flex">
82 <div role="gridcell" class="color-fg-muted flex-auto min-width-0 col-md-2"><a href="#l5">Foo::work(int) (main.cpp:5)</a> </div>
83 <div role="gridcell" class="color-fg-muted flex-auto min-width-0 d-flex flex-justify-end flex-wrap flex-items-baseline" data-sort="1">called 1 time</div>
84 <div role="gridcell" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2">100.0%</div>
85 <div role="gridcell" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2">66.7%</div>
86 <div role="gridcell" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2">79.0%</div>
87 </div>
88 <div class="Box-row Box-row--focus-gray py-2 d-flex">
89 <div role="gridcell" class="color-fg-muted flex-auto min-width-0 col-md-2"><a href="#l14">main (main.cpp:14)</a> </div>
90 <div role="gridcell" class="color-fg-muted flex-auto min-width-0 d-flex flex-justify-end flex-wrap flex-items-baseline" data-sort="1">called 1 time</div>
91 <div role="gridcell" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2">100.0%</div>
92 <div role="gridcell" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2">50.0%</div>
93 <div role="gridcell" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2">100.0%</div>
94 </div>
95 </div> </details>
96 </div>
97
98 </nav>
99 <main>
100 <div class="Box m-3 file-source">
101 <div class="Box-header d-flex flex-space-between sticky">
102 main.cpp
103 <div class="toggle-buttons">
104 <button type="button" class="button_toggle_coveredLine show_coveredLine" value="coveredLine" title="Toggle covered lines">6 covered</button>
105 <button type="button" class="button_toggle_uncoveredLine show_uncoveredLine" value="uncoveredLine" title="Toggle uncovered lines">0 uncovered</button>
106 <button type="button" class="button_toggle_partialCoveredLine show_partialCoveredLine" value="partialCoveredLine" title="Toggle partial covered lines">3 partial covered</button>
107 <button type="button" class="button_toggle_excludedLine show_excludedLine" value="excludedLine" title="Toggle excluded lines">0 excluded</button>
108 </div>
109 <div class="nav">
110 <a class="nav prev" href="coverage.html"></a>
111 <a class="nav index" href="coverage.html"></a>
112 <a class="nav next" href="coverage.html"></a>
113 </div>
114 </div>
115 <div class="source-table-container">
116 <table class="text-mono text-small">
117 <tr>
118 <th align="right">Line</th>
119 <th align="right">Branch</th>
120 <th align="right">Decision</th>
121 <th align="right">Exec</th>
122 <th align="left" style="width: 100%;">Source</th>
123 </tr>
124 <tr class="source-line">
125 <td class="lineno"><a id="l1" href="#l1">1</a></td>
126 <td class="linebranch">
127 </td>
128 <td class="linedecision">
129 </td>
130 <td class="linecount"></td>
131 <td class="src "><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;vector&gt;</span></td>
132 </tr>
133 <tr class="source-line">
134 <td class="lineno"><a id="l2" href="#l2">2</a></td>
135 <td class="linebranch">
136 </td>
137 <td class="linedecision">
138 </td>
139 <td class="linecount"></td>
140 <td class="src "></td>
141 </tr>
142 <tr class="source-line">
143 <td class="lineno"><a id="l3" href="#l3">3</a></td>
144 <td class="linebranch">
145 </td>
146 <td class="linedecision">
147 </td>
148 <td class="linecount"></td>
149 <td class="src "><span class="k">class</span><span class="w"> </span><span class="nc">Foo</span><span class="w"> </span><span class="p">{</span></td>
150 </tr>
151 <tr class="source-line">
152 <td class="lineno"><a id="l4" href="#l4">4</a></td>
153 <td class="linebranch">
154 </td>
155 <td class="linedecision">
156 </td>
157 <td class="linecount"></td>
158 <td class="src "><span class="k">public</span><span class="o">:</span></td>
159 </tr>
160 <tr class="source-line">
161 <td class="lineno"><a id="l5" href="#l5">5</a></td>
162 <td class="linebranch">
163 </td>
164 <td class="linedecision">
165 </td>
166 <td class="linecount coveredLine show_coveredLine">1</td>
167 <td class="src coveredLine show_coveredLine"><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="n">work</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">arg</span><span class="p">)</span><span class="w"> </span><span class="p">{</span></td>
168 </tr>
169 <tr class="source-line">
170 <td class="lineno"><a id="l6" href="#l6">6</a></td>
171 <td class="linebranch">
172 <details class="linebranchDetails">
173 <summary class="linebranchSummary">1/2</summary>
174 <div class="linebranchContents">
175 <div class="takenBranch">&check; Branch 0 taken 1 time.</div>
176 <div class="notTakenBranch">&cross; Branch 1 not taken.</div>
177 </div>
178 </details>
179 </td>
180 <td class="linedecision">
181 <details class="linedecisionDetails">
182 <summary class="linedecisionSummary">1/2</summary>
183 <div class="linedecisionContents">
184 <div class="takenDecision">&check; Decision 'true' taken 1 time.</div>
185 <div class="notTakenDecision">&cross; Decision 'false' not taken.</div>
186 </div>
187 </details>
188 </td>
189 <td class="linecount partialCoveredLine show_partialCoveredLine">1</td>
190 <td class="src partialCoveredLine show_partialCoveredLine"><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">arg</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span></td>
191 </tr>
192 <tr class="source-line">
193 <td class="lineno"><a id="l7" href="#l7">7</a></td>
194 <td class="linebranch">
195 <details class="linebranchDetails">
196 <summary class="linebranchSummary">1/2</summary>
197 <div class="linebranchContents">
198 <div class="takenBranch">&check; Branch 1 taken 1 time.</div>
199 <div class="notTakenBranch">&cross; Branch 2 not taken.</div>
200 </div>
201 </details>
202 </td>
203 <td class="linedecision">
204 </td>
205 <td class="linecount partialCoveredLine show_partialCoveredLine">2</td>
206 <td class="src partialCoveredLine show_partialCoveredLine"><span class="w"> </span><span class="n">std</span><span class="o">::</span><span class="n">vector</span><span class="o">&lt;</span><span class="kt">int</span><span class="o">&gt;</span><span class="w"> </span><span class="n">tmp</span><span class="p">{</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">};</span></td>
207 </tr>
208 <tr class="source-line">
209 <td class="lineno"><a id="l8" href="#l8">8</a></td>
210 <td class="linebranch">
211 <details class="linebranchDetails">
212 <summary class="linebranchSummary">2/2</summary>
213 <div class="linebranchContents">
214 <div class="takenBranch">&check; Branch 5 taken 2 times.</div>
215 <div class="takenBranch">&check; Branch 6 taken 1 time.</div>
216 </div>
217 </details>
218 </td>
219 <td class="linedecision">
220 <details class="linedecisionDetails">
221 <summary class="linedecisionSummary">2/2</summary>
222 <div class="linedecisionContents">
223 <div class="takenDecision">&check; Decision 'true' taken 2 times.</div>
224 <div class="takenDecision">&check; Decision 'false' taken 1 time.</div>
225 </div>
226 </details>
227 </td>
228 <td class="linecount coveredLine show_coveredLine">3</td>
229 <td class="src coveredLine show_coveredLine"><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">tmp</span><span class="p">)</span><span class="w"> </span><span class="p">{</span></td>
230 </tr>
231 <tr class="source-line">
232 <td class="lineno"><a id="l9" href="#l9">9</a></td>
233 <td class="linebranch">
234 </td>
235 <td class="linedecision">
236 </td>
237 <td class="linecount"></td>
238 <td class="src "><span class="w"> </span><span class="p">}</span></td>
239 </tr>
240 <tr class="source-line">
241 <td class="lineno"><a id="l10" href="#l10">10</a></td>
242 <td class="linebranch">
243 </td>
244 <td class="linedecision">
245 </td>
246 <td class="linecount coveredLine show_coveredLine">1</td>
247 <td class="src coveredLine show_coveredLine"><span class="w"> </span><span class="p">}</span></td>
248 </tr>
249 <tr class="source-line">
250 <td class="lineno"><a id="l11" href="#l11">11</a></td>
251 <td class="linebranch">
252 </td>
253 <td class="linedecision">
254 </td>
255 <td class="linecount coveredLine show_coveredLine">1</td>
256 <td class="src coveredLine show_coveredLine"><span class="w"> </span><span class="p">}</span></td>
257 </tr>
258 <tr class="source-line">
259 <td class="lineno"><a id="l12" href="#l12">12</a></td>
260 <td class="linebranch">
261 </td>
262 <td class="linedecision">
263 </td>
264 <td class="linecount"></td>
265 <td class="src "><span class="p">};</span></td>
266 </tr>
267 <tr class="source-line">
268 <td class="lineno"><a id="l13" href="#l13">13</a></td>
269 <td class="linebranch">
270 </td>
271 <td class="linedecision">
272 </td>
273 <td class="linecount"></td>
274 <td class="src "></td>
275 </tr>
276 <tr class="source-line">
277 <td class="lineno"><a id="l14" href="#l14">14</a></td>
278 <td class="linebranch">
279 </td>
280 <td class="linedecision">
281 </td>
282 <td class="linecount coveredLine show_coveredLine">1</td>
283 <td class="src coveredLine show_coveredLine"><span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span><span class="w"> </span><span class="p">{</span></td>
284 </tr>
285 <tr class="source-line">
286 <td class="lineno"><a id="l15" href="#l15">15</a></td>
287 <td class="linebranch">
288 </td>
289 <td class="linedecision">
290 </td>
291 <td class="linecount"></td>
292 <td class="src "><span class="w"> </span><span class="n">Foo</span><span class="w"> </span><span class="n">foo</span><span class="p">;</span></td>
293 </tr>
294 <tr class="source-line">
295 <td class="lineno"><a id="l16" href="#l16">16</a></td>
296 <td class="linebranch">
297 <details class="linebranchDetails">
298 <summary class="linebranchSummary">1/2</summary>
299 <div class="linebranchContents">
300 <div class="takenBranch">&check; Branch 1 taken 1 time.</div>
301 <div class="notTakenBranch">&cross; Branch 2 not taken.</div>
302 </div>
303 </details>
304 </td>
305 <td class="linedecision">
306 </td>
307 <td class="linecount partialCoveredLine show_partialCoveredLine">1</td>
308 <td class="src partialCoveredLine show_partialCoveredLine"><span class="w"> </span><span class="n">foo</span><span class="p">.</span><span class="n">work</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span></td>
309 </tr>
310 <tr class="source-line">
311 <td class="lineno"><a id="l17" href="#l17">17</a></td>
312 <td class="linebranch">
313 </td>
314 <td class="linedecision">
315 </td>
316 <td class="linecount coveredLine show_coveredLine">1</td>
317 <td class="src coveredLine show_coveredLine"><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span></td>
318 </tr>
319 <tr class="source-line">
320 <td class="lineno"><a id="l18" href="#l18">18</a></td>
321 <td class="linebranch">
322 </td>
323 <td class="linedecision">
324 </td>
325 <td class="linecount"></td>
326 <td class="src "><span class="p">}</span></td>
327 </tr>
328 <tr class="source-line">
329 <td class="lineno"><a id="l19" href="#l19">19</a></td>
330 <td class="linebranch">
331 </td>
332 <td class="linedecision">
333 </td>
334 <td class="linecount"></td>
335 <td class="src "></td>
336 </tr>
337 </table>
338 </div>
339 </div>
340 </main>
341 <hr class="block-separator"/>
342 <footer class="text-center">
343 Created using <a href="http://gcovr.com/en/8.6">GCOVR (Version 8.6)</a>
344 at 2026-01-13 19:05:47+00:00
345 </footer>
346 </div>
347 </div>
348 </body>
349
350 </html>