Skip to content

Conversation

@tautschnig
Copy link
Collaborator

Contracts instrumentation using inlining and has facilities to inspect warnings to ensure no unexpected warnings arise. The expected ones, however, should not be forwarded to the user as they cannot do anything about them.

Closes: #8639

  • 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.

Contracts instrumentation using inlining and has facilities to inspect
warnings to ensure no unexpected warnings arise. The expected ones,
however, should not be forwarded to the user as they cannot do anything
about them.

Closes: diffblue#8639
@tautschnig tautschnig force-pushed the contracts-inlining-warnings branch from f0b12e9 to 6356953 Compare July 25, 2025 13:22
@codecov
Copy link

codecov bot commented Jul 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.39%. Comparing base (4a1a325) to head (6356953).
⚠️ Report is 13 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8697      +/-   ##
===========================================
- Coverage    80.40%   80.39%   -0.01%     
===========================================
  Files         1688     1688              
  Lines       207403   207404       +1     
  Branches        73       73              
===========================================
- Hits        166763   166750      -13     
- Misses       40640    40654      +14     

☔ View full report in Codecov by Sentry.
📢 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.

@kroening
Copy link
Collaborator

Didn't we make those hard errors?

@tautschnig
Copy link
Collaborator Author

Didn't we make those hard errors?

They are fatal assertions during property checking, yes. But goto-program inlining doesn't treat them as such (which is correct, because a later stage may still provide implementations).

@kroening
Copy link
Collaborator

They are fatal assertions during property checking, yes. But goto-program inlining doesn't treat them as such (which is correct, because a later stage may still provide implementations).

How does that work? We usually link first, and then inline?

@kroening
Copy link
Collaborator

This smells like the contracts instrumentation workflow needs to be cleaned up.

@remi-delmas-3000
Copy link
Collaborator

For some contract built ins
the bodies are generated during instrumentation by goto-instrument. They are still declared in cprover.h hence the warnings from goto-cc, goto—instrument

@tautschnig tautschnig self-assigned this Jul 28, 2025
@tautschnig
Copy link
Collaborator Author

We will indeed need to cleanup some of the instrumentation workflows, but this is a larger task that we'll have to defer until a later date.

@tautschnig tautschnig merged commit b09ec1d into diffblue:develop Aug 21, 2025
40 of 41 checks passed
@tautschnig tautschnig deleted the contracts-inlining-warnings branch August 21, 2025 07:42
tautschnig added a commit to tautschnig/cbmc that referenced this pull request Nov 3, 2025
This release extends the JSON interface to reading full GOTO functions
(and not just symbol tables) (via diffblue#8713). Also included are various
usability improvements around contracts instrumentation (see diffblue#8697,
 diffblue#8694).
@tautschnig tautschnig mentioned this pull request Nov 3, 2025
4 tasks
tautschnig added a commit to tautschnig/cbmc that referenced this pull request Nov 4, 2025
This release extends the JSON interface to reading full GOTO functions
(and not just symbol tables) (via diffblue#8713). Also included are various
usability improvements around contracts instrumentation (see diffblue#8697,
 diffblue#8694).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

goto-instrument -dfcc spurious "no body" warnings

4 participants