@@ -178,6 +178,7 @@ class goto_programt
178
178
class instructiont final
179
179
{
180
180
public:
181
+ // / Do not read or modify directly -- use get_X() instead
181
182
codet code;
182
183
183
184
// / Get the assignment for ASSIGN
@@ -352,34 +353,64 @@ class goto_programt
352
353
clear (SKIP);
353
354
}
354
355
356
+ DEPRECATED (" use goto_programt::make_return() instead" )
355
357
void make_return () { clear (RETURN); }
358
+
359
+ DEPRECATED (" use goto_programt::make_skip() instead" )
356
360
void make_skip () { clear (SKIP); }
361
+
362
+ DEPRECATED (" use goto_programt::make_location() instead" )
357
363
void make_location (const source_locationt &l)
358
364
{ clear (LOCATION); source_location=l; }
365
+
366
+ DEPRECATED (" use goto_programt::make_throw() instead" )
359
367
void make_throw () { clear (THROW); }
368
+
369
+ DEPRECATED (" use goto_programt::make_catch() instead" )
360
370
void make_catch () { clear (CATCH); }
371
+
372
+ DEPRECATED (" use goto_programt::make_assertion() instead" )
361
373
void make_assertion (const exprt &g) { clear (ASSERT); guard=g; }
374
+
375
+ DEPRECATED (" use goto_programt::make_assumption() instead" )
362
376
void make_assumption (const exprt &g) { clear (ASSUME); guard=g; }
377
+
378
+ DEPRECATED (" use goto_programt::make_assignment() instead" )
363
379
void make_assignment () { clear (ASSIGN); }
380
+
381
+ DEPRECATED (" use goto_programt::make_other() instead" )
364
382
void make_other (const codet &_code) { clear (OTHER); code=_code; }
383
+
384
+ DEPRECATED (" use goto_programt::make_decl() instead" )
365
385
void make_decl () { clear (DECL); }
386
+
387
+ DEPRECATED (" use goto_programt::make_dead() instead" )
366
388
void make_dead () { clear (DEAD); }
389
+
390
+ DEPRECATED (" use goto_programt::make_atomic_begin() instead" )
367
391
void make_atomic_begin () { clear (ATOMIC_BEGIN); }
392
+
393
+ DEPRECATED (" use goto_programt::make_atomic_end() instead" )
368
394
void make_atomic_end () { clear (ATOMIC_END); }
395
+
396
+ DEPRECATED (" use goto_programt::make_atomic_end_function() instead" )
369
397
void make_end_function () { clear (END_FUNCTION); }
370
398
399
+ DEPRECATED (" use goto_programt::make_incomplete_goto() instead" )
371
400
void make_incomplete_goto (const code_gotot &_code)
372
401
{
373
402
clear (INCOMPLETE_GOTO);
374
403
code = _code;
375
404
}
376
405
406
+ DEPRECATED (" use goto_programt::make_goto() instead" )
377
407
void make_goto (targett _target)
378
408
{
379
409
clear (GOTO);
380
410
targets.push_back (_target);
381
411
}
382
412
413
+ DEPRECATED (" use goto_programt::make_goto() instead" )
383
414
void make_goto (targett _target, const exprt &g)
384
415
{
385
416
make_goto (_target);
@@ -394,18 +425,21 @@ class goto_programt
394
425
type = GOTO;
395
426
}
396
427
428
+ DEPRECATED (" use goto_programt::make_assignment() instead" )
397
429
void make_assignment (const code_assignt &_code)
398
430
{
399
431
clear (ASSIGN);
400
432
code=_code;
401
433
}
402
434
435
+ DEPRECATED (" use goto_programt::make_decl() instead" )
403
436
void make_decl (const code_declt &_code)
404
437
{
405
438
clear (DECL);
406
439
code=_code;
407
440
}
408
441
442
+ DEPRECATED (" use goto_programt::make_function_call() instead" )
409
443
void make_function_call (const code_function_callt &_code)
410
444
{
411
445
clear (FUNCTION_CALL);
0 commit comments