Open
Description
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."