Skip to content

CONTRACTS: add function-contract mapping to the CLI #7445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

remi-delmas-3000
Copy link
Collaborator

Enables checking or replacing a contract against a function of a different name as long as signatures are compatible, using :

--enforce-contract <function>/<contract>
--enforce-contract-rec <function>/<contract>
--replace-call-with-contract <function>/<contract>
  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • 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).
  • My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@remi-delmas-3000 remi-delmas-3000 self-assigned this Dec 19, 2022
@remi-delmas-3000 remi-delmas-3000 added aws Bugs or features of importance to AWS CBMC users aws-high Code Contracts Function and loop contracts labels Dec 19, 2022
Copy link
Collaborator

@feliperodri feliperodri left a comment

Choose a reason for hiding this comment

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

Modulo Michael's comments.

@codecov
Copy link

codecov bot commented Dec 19, 2022

Codecov Report

Base: 78.42% // Head: 78.46% // Increases project coverage by +0.04% 🎉

Coverage data is based on head (7d0ebd5) compared to base (52bb522).
Patch coverage: 95.38% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7445      +/-   ##
===========================================
+ Coverage    78.42%   78.46%   +0.04%     
===========================================
  Files         1660     1662       +2     
  Lines       190371   190941     +570     
===========================================
+ Hits        149304   149831     +527     
- Misses       41067    41110      +43     
Impacted Files Coverage Δ
src/ansi-c/ansi_c_declaration.h 95.00% <ø> (ø)
src/ansi-c/c_typecast.h 75.00% <ø> (ø)
src/goto-instrument/contracts/contracts.h 100.00% <ø> (ø)
...t/contracts/dynamic-frames/dfcc_contract_handler.h 0.00% <ø> (ø)
src/jsil/jsil_convert.cpp 0.00% <0.00%> (ø)
src/jsil/jsil_parse_tree.cpp 0.00% <0.00%> (ø)
src/jsil/jsil_parse_tree.h 4.54% <ø> (ø)
src/libcprover-cpp/api.h 100.00% <ø> (ø)
src/util/symbol.h 100.00% <ø> (ø)
src/ansi-c/c_typecast.cpp 81.77% <94.11%> (-0.10%) ⬇️
... and 36 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Enables checking or replacing a contract
against a function of a different name as
long as signatures are compatible.
@remi-delmas-3000 remi-delmas-3000 merged commit f1b09e2 into diffblue:develop Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws Bugs or features of importance to AWS CBMC users aws-high Code Contracts Function and loop contracts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants