Skip to content

goto-symex constant propagation peculiarities #3095

Open
@tautschnig

Description

@tautschnig

CBMC version: 5.10 a1e86d3
Operating system: any
Exact command line resulting in the issue: n/a
What behaviour did you expect: To understand why constant propagation is restricted as it is
What happened instead: Constant propagation in goto-symex is limited to expressions with ids
ID_typecast, ID_array_of, ID_plus, ID_array, ID_struct, ID_union, ID_byte_update_big_endian, ID_byte_update_little_endian, and ID_address_of -- if all operands are constants. Furthermore ID_mult is always deemed constant irrespective of its operands, and ID_with is never constant. It is not clear why this specific set of operations was chosen, and ID_with is explained as "this is bad."

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