File tree Expand file tree Collapse file tree 12 files changed +22
-16
lines changed Expand file tree Collapse file tree 12 files changed +22
-16
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ This tests the -mcpu=cortex=a15 flag that should activate ARM-32 mode.
11
11
The object file 'object.intel' was compiled from 'source.c' with goto-cc
12
12
on a 64-bit platform:
13
13
14
- goto-cc -c source.c
14
+ goto-cc -c source.c -o object.intel
15
15
16
16
preproc.i is already pre-processed so that it can be linked in without
17
17
needing to invoke a pre-processor from a cross-compile toolchain on your
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ This tests the -mthumb flag that should activate ARM-32 mode. The object
11
11
file 'object.intel' was compiled from 'source.c' with goto-cc on a
12
12
64-bit platform:
13
13
14
- goto-cc -c source.c
14
+ goto-cc -c source.c -o object.intel
15
15
16
16
preproc.i is already pre-processed so that it can be linked in without
17
17
needing to invoke a pre-processor from a cross-compile toolchain on your
Original file line number Diff line number Diff line change @@ -1576,13 +1576,13 @@ std::string expr2ct::convert_member(
1576
1576
1577
1577
if (!component_name.empty ())
1578
1578
{
1579
- const exprt &comp_expr = struct_union_type.get_component (component_name);
1579
+ const auto &comp_expr = struct_union_type.get_component (component_name);
1580
1580
1581
1581
if (comp_expr.is_nil ())
1582
1582
return convert_norep (src, precedence);
1583
1583
1584
- if (!comp_expr.get (ID_pretty_name ).empty ())
1585
- dest+= comp_expr.get_string (ID_pretty_name );
1584
+ if (!comp_expr.get_pretty_name ( ).empty ())
1585
+ dest += id2string ( comp_expr.get_pretty_name () );
1586
1586
else
1587
1587
dest+=id2string (component_name);
1588
1588
@@ -1594,9 +1594,12 @@ std::string expr2ct::convert_member(
1594
1594
if (n>=struct_union_type.components ().size ())
1595
1595
return convert_norep (src, precedence);
1596
1596
1597
- const exprt &comp_expr = struct_union_type.components ()[n];
1597
+ const auto &comp_expr = struct_union_type.components ()[n];
1598
1598
1599
- dest+=comp_expr.get_string (ID_pretty_name);
1599
+ if (!comp_expr.get_pretty_name ().empty ())
1600
+ dest += id2string (comp_expr.get_pretty_name ());
1601
+ else
1602
+ dest += id2string (comp_expr.get_name ());
1600
1603
1601
1604
return dest;
1602
1605
}
Original file line number Diff line number Diff line change @@ -94,7 +94,10 @@ std::string expr2cppt::convert_struct(
94
94
95
95
dest+=sep;
96
96
dest+=' .' ;
97
- dest += c.get_string (ID_pretty_name);
97
+ if (!c.get_pretty_name ().empty ())
98
+ dest += id2string (c.get_pretty_name ());
99
+ else
100
+ dest += id2string (c.get_name ());
98
101
dest+=' =' ;
99
102
dest+=tmp;
100
103
}
Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ void print_struct_alignment_problems(
81
81
<< symbol_pair.second .location << ' \n ' ;
82
82
}
83
83
84
- out << " members " << it_mem->get_pretty_name () << " and "
85
- << it_next->get_pretty_name () << " might interfere\n " ;
84
+ out << " members " << it_mem->get_name () << " and "
85
+ << it_next->get_name () << " might interfere\n " ;
86
86
}
87
87
}
88
88
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Author: CM Wintersteiger
12
12
#ifndef CPROVER_GOTO_PROGRAMS_WRITE_GOTO_BINARY_H
13
13
#define CPROVER_GOTO_PROGRAMS_WRITE_GOTO_BINARY_H
14
14
15
- #define GOTO_BINARY_VERSION 5
15
+ #define GOTO_BINARY_VERSION 6
16
16
17
17
#include < iosfwd>
18
18
#include < string>
You can’t perform that action at this time.
0 commit comments