Skip to content
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

Remove empty box creation from contracts impl #3233

Merged
merged 3 commits into from
Jun 6, 2024

Commits on Jun 6, 2024

  1. Remove empty box creation from contracts impl

    There seems to be an issue in CBMC contracts implementation that it
    assumes that `free` must have a body. However, slicing can remove
    `free` body if the harness does not allocate anything.
    
    We used to create an empty Box before to force `free` to be in scope.
    Instead, just invoke `free(NULL)` which is a no-op.
    celinval committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    a6e064c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ebdffc3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d502528 View commit details
    Browse the repository at this point in the history