File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
cbmc/integer-assignments1
validate-trace-xml-schema Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ CORE
2+ main.c
3+ --show-goto-functions
4+ ^[[:space:]]*ASSIGN main::1::b := main::1::b \* cast\(100, ℤ\)$
5+ ^EXIT=0$
6+ ^SIGNAL=0$
7+ --
8+ ^[[:space:]]*ASSIGN main::1::b := main::1::b \* 100$
9+ --
10+ implicit_typecast_arithmetic previously failed to insert a typecast for the
11+ (mathematical) integer-typed expression. This resulted in a multiplication over
12+ mixed types, which sometimes (!) resulted in an invariant failure during
13+ simplification. This was first observed when compiling with GCC 10, cf.
14+ discussion in #6028.
Original file line number Diff line number Diff line change 2222 ['xml-interface1' , 'test.desc' ],
2323 ['xml-interface1' , 'test_wrong_flag.desc' ],
2424 # these want --show-goto-functions instead of producing a trace
25+ ['integer-assignments1' , 'integer-typecheck.desc' ],
2526 ['destructors' , 'compound_literal.desc' ],
2627 ['destructors' , 'enter_lexical_block.desc' ],
2728 ['reachability-slice-interproc2' , 'test.desc' ],
Original file line number Diff line number Diff line change @@ -382,6 +382,8 @@ c_typecastt::c_typet c_typecastt::get_c_type(
382382
383383 return get_c_type (new_type);
384384 }
385+ else if (type.id () == ID_integer)
386+ return INTEGER;
385387
386388 return OTHER;
387389}
You can’t perform that action at this time.
0 commit comments