Skip to content

Add regression test for cbmc --show-loops - #9537

Merged
tautschnig merged 2 commits into
diffblue:developfrom
tautschnig:test-coverage/cbmc-show-loops
Nov 23, 2026
Merged

tautschnig merged 2 commits into
diffblue:developfrom
tautschnig:test-coverage/cbmc-show-loops

Conversation

@tautschnig

Copy link
Copy Markdown
Collaborator

No regression test used this option of cbmc. The test checks the loop identifiers and locations for nested loops and for loops in two functions.

  • Each commit message has a non-empty body, explaining why the change was made.
  • n/a Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • n/a The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • n/a My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.

Copilot AI balanced review requested due to automatic review settings November 19, 2026 21:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

CORE
main.c
--show-loops
activate-multi-line-match

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That doesn't do anything unless you add patterns with \n in them.

@kroening

Copy link
Copy Markdown
Collaborator

Please name the directory regression/cbmc/show-loops

@tautschnig
tautschnig force-pushed the test-coverage/cbmc-show-loops branch from d468a49 to 207d4b7 Compare November 20, 2026 15:21
@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.28%. Comparing base (1677c74) to head (d12baaa).
⚠️ Report is 3 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #9537   +/-   ##
========================================
  Coverage    81.27%   81.28%           
========================================
  Files         1725     1725           
  Lines       191618   191618           
  Branches        73       73           
========================================
+ Hits        155742   155761   +19     
+ Misses       35876    35857   -19     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

tautschnig and others added 2 commits November 23, 2026 12:24
No regression test used this option of cbmc. The test checks the loop
identifiers and locations for nested loops and for loops in two
functions.

Co-authored-by: Kiro <kiro-agent@users.noreply.github.com>
We have various tests that are expectedly incompatible with XML trace
output, and have comments explaining why those tests appear in this
list. Those comments effectively form sections, but some of those were
duplicated. To make it easier to find the right spot for further entries
to be added avoid such duplication.
@tautschnig
tautschnig force-pushed the test-coverage/cbmc-show-loops branch from 207d4b7 to d12baaa Compare November 23, 2026 13:28
@tautschnig
tautschnig enabled auto-merge November 23, 2026 13:28
@kroening

Copy link
Copy Markdown
Collaborator

Could consolidate all --show-loops tests in regression/cbmc/show-loops/

@tautschnig
tautschnig merged commit cf12e35 into diffblue:develop Nov 23, 2026
39 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants