Skip to content

goto trace contains ssa information it shouldn't #902

Open
@owen-mc-diffblue

Description

@owen-mc-diffblue

Steps to reproduce:

  1. Run cbmc on regression/cbmc/pointer-function-parameters-2/main.c with the flags "--function fun --cover branch".

Actual results:
In the output, the following lines appear.

Test suite:
a=((signed int **)NULL), tmp$1=((signed int *)NULL) + 1, tmp$2=0
a=&tmp$1!0, tmp$1=((signed int *)NULL), tmp$2=0
a=&tmp$1!0, tmp$1=&tmp$2!0, tmp$2=0
a=&tmp$1!0, tmp$1=&tmp$2!0, tmp$2=4

Expected results:
The variable names in the address-of expressions shouldn't have the "!0" suffixes.

Discussion:
The "!0" are used in the ssa phase to indicate the thread, but they should have been removed when the ssa-trace was transformed into goto-trace. I think that this isn't working for address-of expression on the right hand side.

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