@@ -278,14 +278,14 @@ std::list<exprt> expressions_read(
278
278
break ;
279
279
280
280
case RETURN:
281
- if (to_code_return ( instruction.code ).return_value ().is_not_nil ())
282
- dest.push_back (to_code_return ( instruction.code ).return_value ());
281
+ if (instruction.get_return ( ).return_value ().is_not_nil ())
282
+ dest.push_back (instruction.get_return ( ).return_value ());
283
283
break ;
284
284
285
285
case FUNCTION_CALL:
286
286
{
287
- const code_function_callt &function_call=
288
- to_code_function_call ( instruction.code );
287
+ const code_function_callt &function_call =
288
+ instruction.get_function_call ( );
289
289
forall_expr (it, function_call.arguments ())
290
290
dest.push_back (*it);
291
291
if (function_call.lhs ().is_not_nil ())
@@ -295,7 +295,7 @@ std::list<exprt> expressions_read(
295
295
296
296
case ASSIGN:
297
297
{
298
- const code_assignt &assignment= to_code_assign ( instruction.code );
298
+ const code_assignt &assignment = instruction.get_assign ( );
299
299
dest.push_back (assignment.rhs ());
300
300
parse_lhs_read (assignment.lhs (), dest);
301
301
}
@@ -318,15 +318,15 @@ std::list<exprt> expressions_written(
318
318
{
319
319
case FUNCTION_CALL:
320
320
{
321
- const code_function_callt &function_call=
322
- to_code_function_call ( instruction.code );
321
+ const code_function_callt &function_call =
322
+ instruction.get_function_call ( );
323
323
if (function_call.lhs ().is_not_nil ())
324
324
dest.push_back (function_call.lhs ());
325
325
}
326
326
break ;
327
327
328
328
case ASSIGN:
329
- dest.push_back (to_code_assign ( instruction.code ).lhs ());
329
+ dest.push_back (instruction.get_assign ( ).lhs ());
330
330
break ;
331
331
332
332
default :
@@ -792,9 +792,9 @@ void goto_programt::instructiont::validate(
792
792
source_location);
793
793
DATA_CHECK_WITH_DIAGNOSTICS (
794
794
vm,
795
- !ns.lookup (to_code_decl (code ).get_identifier (), table_symbol),
795
+ !ns.lookup (get_decl ( ).get_identifier (), table_symbol),
796
796
" declared symbols should be known" ,
797
- id2string (to_code_decl (code ).get_identifier ()),
797
+ id2string (get_decl ( ).get_identifier ()),
798
798
source_location);
799
799
break ;
800
800
case DEAD:
@@ -805,9 +805,9 @@ void goto_programt::instructiont::validate(
805
805
source_location);
806
806
DATA_CHECK_WITH_DIAGNOSTICS (
807
807
vm,
808
- !ns.lookup (to_code_dead (code ).get_identifier (), table_symbol),
808
+ !ns.lookup (get_dead ( ).get_identifier (), table_symbol),
809
809
" removed symbols should be known" ,
810
- id2string (to_code_dead (code ).get_identifier ()),
810
+ id2string (get_dead ( ).get_identifier ()),
811
811
source_location);
812
812
break ;
813
813
case FUNCTION_CALL:
0 commit comments