@@ -107,8 +107,8 @@ void goto_program2codet::scan_for_varargs()
107
107
{
108
108
if (instruction.is_assign ())
109
109
{
110
- const exprt &l = instruction.get_assign (). lhs ();
111
- const exprt &r = instruction.get_assign (). rhs ();
110
+ const exprt &l = instruction.assign_lhs ();
111
+ const exprt &r = instruction.assign_rhs ();
112
112
113
113
// find va_start
114
114
if (
@@ -286,7 +286,7 @@ goto_programt::const_targett goto_program2codet::convert_assign(
286
286
goto_programt::const_targett upper_bound,
287
287
code_blockt &dest)
288
288
{
289
- const code_assignt &a = target->get_assign () ;
289
+ const code_assignt a{target-> assign_lhs (), target->assign_rhs ()} ;
290
290
291
291
if (va_list_expr.find (a.lhs ())!=va_list_expr.end ())
292
292
return convert_assign_varargs (target, upper_bound, dest);
@@ -301,10 +301,8 @@ goto_programt::const_targett goto_program2codet::convert_assign_varargs(
301
301
goto_programt::const_targett upper_bound,
302
302
code_blockt &dest)
303
303
{
304
- const code_assignt &assign = target->get_assign ();
305
-
306
- const exprt this_va_list_expr=assign.lhs ();
307
- const exprt &r=skip_typecast (assign.rhs ());
304
+ const exprt this_va_list_expr = target->assign_lhs ();
305
+ const exprt &r = skip_typecast (target->assign_rhs ());
308
306
309
307
if (r.id ()==ID_constant &&
310
308
(r.is_zero () || to_constant_expr (r).get_value ()==ID_NULL))
@@ -347,12 +345,12 @@ goto_programt::const_targett goto_program2codet::convert_assign_varargs(
347
345
if (next!=upper_bound &&
348
346
next->is_assign ())
349
347
{
350
- const exprt &n_r = next->get_assign (). rhs ();
348
+ const exprt &n_r = next->assign_rhs ();
351
349
if (
352
350
n_r.id () == ID_dereference &&
353
351
skip_typecast (to_dereference_expr (n_r).pointer ()) == this_va_list_expr)
354
352
{
355
- f.lhs () = next->get_assign (). lhs ();
353
+ f.lhs () = next->assign_lhs ();
356
354
357
355
type_of.arguments ().push_back (f.lhs ());
358
356
f.arguments ().push_back (type_of);
@@ -467,14 +465,14 @@ goto_programt::const_targett goto_program2codet::convert_decl(
467
465
!next->is_target () &&
468
466
(next->is_assign () || next->is_function_call ()))
469
467
{
470
- exprt lhs = next-> is_assign () ? next-> get_assign (). lhs ()
471
- : next->get_function_call ().lhs ();
468
+ exprt lhs =
469
+ next-> is_assign () ? next-> assign_lhs () : next->get_function_call ().lhs ();
472
470
if (lhs==symbol &&
473
471
va_list_expr.find (lhs)==va_list_expr.end ())
474
472
{
475
473
if (next->is_assign ())
476
474
{
477
- d.set_initial_value ({next->get_assign (). rhs ()});
475
+ d.set_initial_value ({next->assign_rhs ()});
478
476
}
479
477
else
480
478
{
0 commit comments