Debian Codegraph @

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

raw symbols SCIP
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">Conditions:</th>
61 <td class="coverage-medium">75.0%</td>
62 <td class="coverage-medium">3 / 0 / 4</td>
63 </tr>
64 <tr>
65 <th scope="row">Decisions:</th>
66 <td class="coverage-medium">75.0%</td>
67 <td class="coverage-medium">3 / - / 4</td>
68 </tr>
69 </table>
70 </div>
71 </div>
72 </header>
73 <hr/>
74 <nav>
75 <div class="m-3">
76 <details>
77 <summary>List of functions</summary>
78 <div class="Box m-3 functionslist">
79 <div class="Box-header py-2 d-flex sticky">
80 <div role="rowheader" class="color-fg-muted flex-auto min-width-0 col-md-2 sortable sorted-ascending">Function (File:Line)</div>
81 <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>
82 <div role="rowheader" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2 sortable">Lines</div>
83 <div role="rowheader" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2 sortable">Branches</div>
84 <div role="rowheader" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2 sortable">Conditions</div>
85 <div role="rowheader" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2 sortable">Blocks</div>
86 </div>
87 <div class="Box-row Box-row--focus-gray py-2 d-flex">
88 <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>
89 <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>
90 <div role="gridcell" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2">100.0%</div>
91 <div role="gridcell" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2">66.7%</div>
92 <div role="gridcell" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2" >75.0%</div>
93 <div role="gridcell" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2">85.2%</div>
94 </div>
95 <div class="Box-row Box-row--focus-gray py-2 d-flex">
96 <div role="gridcell" class="color-fg-muted flex-auto min-width-0 col-md-2"><a href="#l14">main (main.cpp:14)</a> </div>
97 <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>
98 <div role="gridcell" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2">100.0%</div>
99 <div role="gridcell" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2">50.0%</div>
100 <div role="gridcell" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2" >-%</div>
101 <div role="gridcell" class="color-fg-muted d-flex flex-justify-end flex-wrap col-2">100.0%</div>
102 </div>
103 </div> </details>
104 </div>
105
106 </nav>
107 <main>
108 <div class="Box m-3 file-source">
109 <div class="Box-header d-flex flex-space-between sticky">
110 main.cpp
111 <div class="toggle-buttons">
112 <button type="button" class="button_toggle_coveredLine show_coveredLine" value="coveredLine" title="Toggle covered lines">6 covered</button>
113 <button type="button" class="button_toggle_uncoveredLine show_uncoveredLine" value="uncoveredLine" title="Toggle uncovered lines">0 uncovered</button>
114 <button type="button" class="button_toggle_partialCoveredLine show_partialCoveredLine" value="partialCoveredLine" title="Toggle partial covered lines">3 partial covered</button>
115 <button type="button" class="button_toggle_excludedLine show_excludedLine" value="excludedLine" title="Toggle excluded lines">0 excluded</button>
116 </div>
117 <div class="nav">
118 <a class="nav prev" href="coverage.html"></a>
119 <a class="nav index" href="coverage.html"></a>
120 <a class="nav next" href="coverage.html"></a>
121 </div>
122 </div>
123 <div class="source-table-container">
124 <table class="text-mono text-small">
125 <tr>
126 <th align="right">Line</th>
127 <th align="right">Branch</th>
128 <th align="right">Condition</th>
129 <th align="right">Decision</th>
130 <th align="right">Exec</th>
131 <th align="left" style="width: 100%;">Source</th>
132 </tr>
133 <tr class="source-line">
134 <td class="lineno"><a id="l1" href="#l1">1</a></td>
135 <td class="linebranch">
136 </td>
137 <td class="linecondition">
138 </td>
139 <td class="linedecision">
140 </td>
141 <td class="linecount"></td>
142 <td class="src "><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;vector&gt;</span></td>
143 </tr>
144 <tr class="source-line">
145 <td class="lineno"><a id="l2" href="#l2">2</a></td>
146 <td class="linebranch">
147 </td>
148 <td class="linecondition">
149 </td>
150 <td class="linedecision">
151 </td>
152 <td class="linecount"></td>
153 <td class="src "></td>
154 </tr>
155 <tr class="source-line">
156 <td class="lineno"><a id="l3" href="#l3">3</a></td>
157 <td class="linebranch">
158 </td>
159 <td class="linecondition">
160 </td>
161 <td class="linedecision">
162 </td>
163 <td class="linecount"></td>
164 <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>
165 </tr>
166 <tr class="source-line">
167 <td class="lineno"><a id="l4" href="#l4">4</a></td>
168 <td class="linebranch">
169 </td>
170 <td class="linecondition">
171 </td>
172 <td class="linedecision">
173 </td>
174 <td class="linecount"></td>
175 <td class="src "><span class="k">public</span><span class="o">:</span></td>
176 </tr>
177 <tr class="source-line">
178 <td class="lineno"><a id="l5" href="#l5">5</a></td>
179 <td class="linebranch">
180 </td>
181 <td class="linecondition">
182 </td>
183 <td class="linedecision">
184 </td>
185 <td class="linecount coveredLine show_coveredLine">1</td>
186 <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>
187 </tr>
188 <tr class="source-line">
189 <td class="lineno"><a id="l6" href="#l6">6</a></td>
190 <td class="linebranch">
191 <details class="linebranchDetails">
192 <summary class="linebranchSummary">1/2</summary>
193 <div class="linebranchContents">
194 <div class="takenBranch">&check; Branch 2 &rightarrow; 3 taken 1 time.</div>
195 <div class="notTakenBranch">&cross; Branch 2 &rightarrow; 23 not taken.</div>
196 </div>
197 </details>
198 </td>
199 <td class="linecondition">
200 <details class="lineconditionDetails">
201 <summary class="lineconditionSummary">1/2</summary>
202 <div class="lineconditionContents">
203 <div class="notTakenCondition">&cross; False not covered.</div>
204 </div>
205 </details>
206 </td>
207 <td class="linedecision">
208 <details class="linedecisionDetails">
209 <summary class="linedecisionSummary">1/2</summary>
210 <div class="linedecisionContents">
211 <div class="takenDecision">&check; Decision 'true' taken 1 time.</div>
212 <div class="notTakenDecision">&cross; Decision 'false' not taken.</div>
213 </div>
214 </details>
215 </td>
216 <td class="linecount partialCoveredLine show_partialCoveredLine">1</td>
217 <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>
218 </tr>
219 <tr class="source-line">
220 <td class="lineno"><a id="l7" href="#l7">7</a></td>
221 <td class="linebranch">
222 <details class="linebranchDetails">
223 <summary class="linebranchSummary">1/2</summary>
224 <div class="linebranchContents">
225 <div class="takenBranch">&check; Branch 5 &rightarrow; 6 taken 1 time.</div>
226 <div class="notTakenBranch">&cross; Branch 5 &rightarrow; 24 not taken.</div>
227 </div>
228 </details>
229 </td>
230 <td class="linecondition">
231 </td>
232 <td class="linedecision">
233 </td>
234 <td class="linecount partialCoveredLine show_partialCoveredLine">2</td>
235 <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>
236 </tr>
237 <tr class="source-line">
238 <td class="lineno"><a id="l8" href="#l8">8</a></td>
239 <td class="linebranch">
240 <details class="linebranchDetails">
241 <summary class="linebranchSummary">2/2</summary>
242 <div class="linebranchContents">
243 <div class="takenBranch">&check; Branch 20 &rightarrow; 9 taken 2 times.</div>
244 <div class="takenBranch">&check; Branch 20 &rightarrow; 21 taken 1 time.</div>
245 </div>
246 </details>
247 </td>
248 <td class="linecondition">
249 <details class="lineconditionDetails">
250 <summary class="lineconditionSummary">2/2</summary>
251 <div class="lineconditionContents">
252 <div class="takenCondition">&check; Fully covered.</div>
253 </div>
254 </details>
255 </td>
256 <td class="linedecision">
257 <details class="linedecisionDetails">
258 <summary class="linedecisionSummary">2/2</summary>
259 <div class="linedecisionContents">
260 <div class="takenDecision">&check; Decision 'true' taken 2 times.</div>
261 <div class="takenDecision">&check; Decision 'false' taken 1 time.</div>
262 </div>
263 </details>
264 </td>
265 <td class="linecount coveredLine show_coveredLine">6</td>
266 <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>
267 </tr>
268 <tr class="source-line">
269 <td class="lineno"><a id="l9" href="#l9">9</a></td>
270 <td class="linebranch">
271 </td>
272 <td class="linecondition">
273 </td>
274 <td class="linedecision">
275 </td>
276 <td class="linecount"></td>
277 <td class="src "><span class="w"> </span><span class="p">}</span></td>
278 </tr>
279 <tr class="source-line">
280 <td class="lineno"><a id="l10" href="#l10">10</a></td>
281 <td class="linebranch">
282 </td>
283 <td class="linecondition">
284 </td>
285 <td class="linedecision">
286 </td>
287 <td class="linecount coveredLine show_coveredLine">1</td>
288 <td class="src coveredLine show_coveredLine"><span class="w"> </span><span class="p">}</span></td>
289 </tr>
290 <tr class="source-line">
291 <td class="lineno"><a id="l11" href="#l11">11</a></td>
292 <td class="linebranch">
293 </td>
294 <td class="linecondition">
295 </td>
296 <td class="linedecision">
297 </td>
298 <td class="linecount coveredLine show_coveredLine">1</td>
299 <td class="src coveredLine show_coveredLine"><span class="w"> </span><span class="p">}</span></td>
300 </tr>
301 <tr class="source-line">
302 <td class="lineno"><a id="l12" href="#l12">12</a></td>
303 <td class="linebranch">
304 </td>
305 <td class="linecondition">
306 </td>
307 <td class="linedecision">
308 </td>
309 <td class="linecount"></td>
310 <td class="src "><span class="p">};</span></td>
311 </tr>
312 <tr class="source-line">
313 <td class="lineno"><a id="l13" href="#l13">13</a></td>
314 <td class="linebranch">
315 </td>
316 <td class="linecondition">
317 </td>
318 <td class="linedecision">
319 </td>
320 <td class="linecount"></td>
321 <td class="src "></td>
322 </tr>
323 <tr class="source-line">
324 <td class="lineno"><a id="l14" href="#l14">14</a></td>
325 <td class="linebranch">
326 </td>
327 <td class="linecondition">
328 </td>
329 <td class="linedecision">
330 </td>
331 <td class="linecount coveredLine show_coveredLine">1</td>
332 <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>
333 </tr>
334 <tr class="source-line">
335 <td class="lineno"><a id="l15" href="#l15">15</a></td>
336 <td class="linebranch">
337 </td>
338 <td class="linecondition">
339 </td>
340 <td class="linedecision">
341 </td>
342 <td class="linecount"></td>
343 <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>
344 </tr>
345 <tr class="source-line">
346 <td class="lineno"><a id="l16" href="#l16">16</a></td>
347 <td class="linebranch">
348 <details class="linebranchDetails">
349 <summary class="linebranchSummary">1/2</summary>
350 <div class="linebranchContents">
351 <div class="takenBranch">&check; Branch 2 &rightarrow; 3 taken 1 time.</div>
352 <div class="notTakenBranch">&cross; Branch 2 &rightarrow; 5 not taken.</div>
353 </div>
354 </details>
355 </td>
356 <td class="linecondition">
357 </td>
358 <td class="linedecision">
359 </td>
360 <td class="linecount partialCoveredLine show_partialCoveredLine">1</td>
361 <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>
362 </tr>
363 <tr class="source-line">
364 <td class="lineno"><a id="l17" href="#l17">17</a></td>
365 <td class="linebranch">
366 </td>
367 <td class="linecondition">
368 </td>
369 <td class="linedecision">
370 </td>
371 <td class="linecount coveredLine show_coveredLine">1</td>
372 <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>
373 </tr>
374 <tr class="source-line">
375 <td class="lineno"><a id="l18" href="#l18">18</a></td>
376 <td class="linebranch">
377 </td>
378 <td class="linecondition">
379 </td>
380 <td class="linedecision">
381 </td>
382 <td class="linecount"></td>
383 <td class="src "><span class="p">}</span></td>
384 </tr>
385 <tr class="source-line">
386 <td class="lineno"><a id="l19" href="#l19">19</a></td>
387 <td class="linebranch">
388 </td>
389 <td class="linecondition">
390 </td>
391 <td class="linedecision">
392 </td>
393 <td class="linecount"></td>
394 <td class="src "></td>
395 </tr>
396 </table>
397 </div>
398 </div>
399 </main>
400 <hr class="block-separator"/>
401 <footer class="text-center">
402 Created using <a href="http://gcovr.com/en/8.6">GCOVR (Version 8.6)</a>
403 at 2026-01-13 19:05:47+00:00
404 </footer>
405 </div>
406 </div>
407 </body>
408
409 </html>