@@ -121,24 +121,7 @@ void goto_program2codet::scan_for_varargs()
121
121
}
122
122
123
123
if (!va_list_expr.empty ())
124
- {
125
124
system_headers.insert (" stdarg.h" );
126
-
127
- code_typet &code_type=
128
- to_code_type (symbol_table.get_writeable_ref (func_name).type );
129
- code_typet::parameterst ¶meters=code_type.parameters ();
130
-
131
- for (code_typet::parameterst::iterator
132
- it2=parameters.begin ();
133
- it2!=parameters.end ();
134
- ++it2)
135
- {
136
- const symbol_exprt arg=
137
- ns.lookup (it2->get_identifier ()).symbol_expr ();
138
- if (va_list_expr.find (arg)!=va_list_expr.end ())
139
- it2->type ().id (ID_gcc_builtin_va_list);
140
- }
141
- }
142
125
}
143
126
144
127
goto_programt::const_targett goto_program2codet::convert_instruction (
@@ -322,7 +305,6 @@ goto_programt::const_targett goto_program2codet::convert_assign_varargs(
322
305
code_function_callt f (
323
306
symbol_exprt (" va_end" , code_typet ({}, empty_typet ())),
324
307
{this_va_list_expr});
325
- f.arguments ().back ().type ().id (ID_gcc_builtin_va_list);
326
308
327
309
dest.add (std::move (f));
328
310
}
@@ -331,7 +313,6 @@ goto_programt::const_targett goto_program2codet::convert_assign_varargs(
331
313
code_function_callt f (
332
314
symbol_exprt (" va_start" , code_typet ({}, empty_typet ())),
333
315
{this_va_list_expr, to_address_of_expr (r).object ()});
334
- f.arguments ().front ().type ().id (ID_gcc_builtin_va_list);
335
316
336
317
dest.add (std::move (f));
337
318
}
@@ -341,7 +322,6 @@ goto_programt::const_targett goto_program2codet::convert_assign_varargs(
341
322
code_function_callt f (
342
323
symbol_exprt (" va_arg" , code_typet ({}, empty_typet ())),
343
324
{this_va_list_expr});
344
- f.arguments ().back ().type ().id (ID_gcc_builtin_va_list);
345
325
346
326
// we do not bother to set the correct types here, they are not relevant for
347
327
// generating the correct dumped output
@@ -394,7 +374,6 @@ goto_programt::const_targett goto_program2codet::convert_assign_varargs(
394
374
code_function_callt f (
395
375
symbol_exprt (" va_copy" , code_typet ({}, empty_typet ())),
396
376
{this_va_list_expr, r});
397
- f.arguments ().front ().type ().id (ID_gcc_builtin_va_list);
398
377
399
378
dest.add (std::move (f));
400
379
}
@@ -1452,9 +1431,6 @@ void goto_program2codet::cleanup_code(
1452
1431
{
1453
1432
if (code.get_statement ()==ID_decl)
1454
1433
{
1455
- if (va_list_expr.find (code.op0 ())!=va_list_expr.end ())
1456
- code.op0 ().type ().id (ID_gcc_builtin_va_list);
1457
-
1458
1434
if (code.operands ().size ()==2 &&
1459
1435
code.op1 ().id ()==ID_side_effect &&
1460
1436
to_side_effect_expr (code.op1 ()).get_statement ()==ID_function_call)
0 commit comments