Skip to content

Improve instrument_call_statement in code contracts to handle all uses of __CPROVER_allocate #5529

Closed
@feliperodri

Description

@feliperodri

CBMC version: >5.15
Operating system: Ubuntu 18.04 or macOS Mojave 10.14.6
Exact command line resulting in the issue: N/A.
What behaviour did you expect: N/A.
What happened instead:

I'd like to see handling of all uses of __CPROVER_allocate here. malloc is just one such case invoking __CPROVER_allocate. I'd propose a simple analysis that

  1. Checks whether the body of the called function is available,
  2. and if it is, whether the body of that function includes a __CPROVER_allocate call.

Suggested in #5403.

Metadata

Metadata

Assignees

Labels

Code ContractsFunction and loop contractsawsBugs or features of importance to AWS CBMC users

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions