Skip to content

CBMC keeps running forever when there is a loop without a bound #7406

Open
@feliperodri

Description

@feliperodri

CBMC version: N/A.
Operating system: N/A.

// test.c
int main()
{
  int a;
  for (int i = 0; i < a; i++)
    {
      a++;
    }

}

Exact command line resulting in the issue: cbmc test.c
What behaviour did you expect: CBMC would throw and error for loops without a bound instead of keeping running forever.
What happened instead: CBMC keeps running forever.

Metadata

Metadata

Assignees

No one assigned

    Labels

    awsBugs 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