Skip to content

Type mismatch for extern array declaration #233

Description

@danpoe
// err1.c
extern int tbl2[];
int* tbl1 = tbl2;
// err2.c
int tbl2[2];
void main( void )
{
}

cbmc --show-vcc err1.c err2.c

Yields the following error:

CBMC version 5.5 64-bit x86_64 windows
Parsing err1.c
Parsing err2.c
Converting
Type-checking err1
Type-checking err2
Generating GOTO Program
Adding CPROVER library (x86_64)
Removal of function pointers and virtual functions
Partial Inlining
Generic Property Instrumentation
Starting Bounded Model Checking
file err2.c line 1: value_sett::assign type mismatch: rhs.type():
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions