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 22
22
['xml-interface1' , 'test.desc' ],
23
23
['xml-interface1' , 'test_wrong_flag.desc' ],
24
24
# these want --show-goto-functions instead of producing a trace
25
+ ['integer-assignments1' , 'integer-typecheck.desc' ],
25
26
['destructors' , 'compound_literal.desc' ],
26
27
['destructors' , 'enter_lexical_block.desc' ],
27
28
['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(
382
382
383
383
return get_c_type (new_type);
384
384
}
385
+ else if (type.id () == ID_integer)
386
+ return INTEGER;
385
387
386
388
return OTHER;
387
389
}
You can’t perform that action at this time.
0 commit comments