Skip to content

Conversation

monal
Copy link

@monal monal commented Aug 11, 2022

Description of changes:

Changing base_name and pretty_name to match the name field in a contract symbol. Hence, all three names will now be of the form contract::<foo>, where <foo> refers to the function name.

The change is due to a corresponding change in CBMC for a bugfix. See diffblue/cbmc#7063 for more details.

Resolved issues:

Call-outs:

Testing:

The code won't be merged into main until we have test cases.

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

Monal Narasimhamurthy added 2 commits August 11, 2022 05:51
@monal monal requested a review from a team as a code owner August 11, 2022 16:49
@monal monal marked this pull request as draft August 11, 2022 17:03
@monal monal changed the title Change base_name and pretty_name fields in contract symbols to match the contract name. [DRAFT, BLOCKED] Change base_name and pretty_name fields in contract symbols to match the contract name. Aug 11, 2022
@monal monal changed the title [DRAFT, BLOCKED] Change base_name and pretty_name fields in contract symbols to match the contract name. [DRAFT] Change base_name and pretty_name fields in contract symbols to match the contract name. Aug 11, 2022
@monal monal changed the title [DRAFT] Change base_name and pretty_name fields in contract symbols to match the contract name. Change base_name and pretty_name fields in contract symbols to match the contract name. Aug 11, 2022
@monal monal marked this pull request as ready for review August 11, 2022 17:20
@monal monal merged commit 0bca0ae into model-checking:features/function-contracts Aug 11, 2022
zhassan-aws pushed a commit to zhassan-aws/kani that referenced this pull request May 26, 2023
…the contract name. (model-checking#1491)

* Change contract symbol's base_name and pretty_name to match its name (Based on CBMC's implementation change)

* Remove unused generic param

Co-authored-by: Monal Narasimhamurthy <[email protected]>
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.

2 participants