Skip to content

Handle loop contracts on do/while loops #7196

Closed
@feliperodri

Description

@feliperodri

CBMC version: 5.67.0
Operating system: N/A

Currently do/while loops are not handled correctly in the contracts instrumentation pass.

The tricky bit here is the first unguarded iteration. It's syntactically "inside" the loop, but the "base case" assertion must be placed after it, which might be confusing to users.

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions