Skip to content

SSA conversion crash caused by extern array declaration #7608

Open
@andreast271

Description

@andreast271

CBMC version: 5.79.0
Operating system: Linux x86_64
Exact command line resulting in the issue: cbmc main.c
What behaviour did you expect: Verification failed
What happened instead: invariant violation report, abort, core dumped

An example C file that shows the problem is attached:
main.c.txt

The error message is:

Passing problem to propositional reduction
converting SSA
--- begin invariant violation report ---
Invariant check failed
File: arith_tools.cpp:173 function: from_integer
Condition: false
Reason: Precondition

The reason for the crash is that flattening tries to unpack an array where the array size is nil.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions