@@ -51,8 +51,8 @@ exprt::operandst build_function_environment(
51
51
52
52
for (const auto & p : parameters)
53
53
{
54
- irep_idt base_name=p.get_base_name ();
55
- if (base_name. empty ()) base_name= " argument#" +i2string (i);
54
+ irep_idt base_name=p.get_base_name (). empty ()?
55
+ ( " argument#" +i2string (i)):p. get_base_name ( );
56
56
irep_idt identifier=id2string (goto_functionst::entry_point ())+
57
57
" ::" +id2string (base_name);
58
58
@@ -135,10 +135,12 @@ void record_function_outputs(
135
135
136
136
for(const auto & p : parameters)
137
137
{
138
+ if(p.get_identifier().empty())
139
+ continue;
140
+
138
141
irep_idt identifier=p.get_identifier();
139
- if(identifier.empty()) continue;
140
142
141
- const symbolt &symbol = symbol_table.lookup(identifier);
143
+ const symbolt &symbol= symbol_table.lookup(identifier);
142
144
143
145
if(symbol.type.id()==ID_pointer)
144
146
{
@@ -194,7 +196,8 @@ bool ansi_c_entry_point(
194
196
symbol_tablet::symbolst::const_iterator s_it=
195
197
symbol_table.symbols .find (it->second );
196
198
197
- if (s_it==symbol_table.symbols .end ()) continue ;
199
+ if (s_it==symbol_table.symbols .end ())
200
+ continue ;
198
201
199
202
if (s_it->second .type .id ()==ID_code)
200
203
matches.push_back (it->second );
0 commit comments