Skip to content

Traces on windows report integers as longs #2514

Open
@polgreen

Description

@polgreen

I realise long and int are the same size on windows, but I still think CBMC should report the types as they are declared in the code unless a cast occurs. If nothing else, it adds an extra layer of obfuscation when reading the traces.

Test case:

int main()
{
	unsigned long a;
	unsigned int b;
	a = 0;
        b = 0;
	__CPROVER_assert(0,"");
}

The trace on linux will report:

a=0ul
b=0u

On windows it will report

a=0ul
b=0ul

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions