@@ -1271,19 +1271,24 @@ inline const code_expressiont &to_code_expression(const codet &code)
1271
1271
class side_effect_exprt :public exprt
1272
1272
{
1273
1273
public:
1274
- DEPRECATED (" Use side_effect_exprt(statement, type) instead" )
1275
- explicit side_effect_exprt (const irep_idt &statement):
1276
- exprt(ID_side_effect)
1274
+ DEPRECATED (" Use side_effect_exprt(statement, type, loc) instead" )
1275
+ explicit side_effect_exprt (const irep_idt &statement) : exprt(ID_side_effect)
1277
1276
{
1278
1277
set_statement (statement);
1279
1278
}
1280
1279
1280
+ DEPRECATED (" Use side_effect_exprt(statement, type, loc) instead" )
1281
1281
side_effect_exprt (const irep_idt &statement, const typet &_type):
1282
1282
exprt (ID_side_effect, _type)
1283
1283
{
1284
1284
set_statement (statement);
1285
1285
}
1286
1286
1287
+ side_effect_exprt (
1288
+ const irep_idt &statement,
1289
+ const typet &_type,
1290
+ const source_locationt &loc);
1291
+
1287
1292
const irep_idt &get_statement () const
1288
1293
{
1289
1294
return get (ID_statement);
@@ -1335,18 +1340,21 @@ inline const side_effect_exprt &to_side_effect_expr(const exprt &expr)
1335
1340
class side_effect_expr_nondett :public side_effect_exprt
1336
1341
{
1337
1342
public:
1338
- DEPRECATED (" Use side_effect_expr_nondett(statement, type) instead" )
1343
+ DEPRECATED (" Use side_effect_expr_nondett(statement, type, loc ) instead" )
1339
1344
side_effect_expr_nondett ():side_effect_exprt(ID_nondet)
1340
1345
{
1341
1346
set_nullable (true );
1342
1347
}
1343
1348
1349
+ DEPRECATED (" Use side_effect_expr_nondett(statement, type, loc) instead" )
1344
1350
explicit side_effect_expr_nondett (const typet &_type):
1345
1351
side_effect_exprt(ID_nondet, _type)
1346
1352
{
1347
1353
set_nullable (true );
1348
1354
}
1349
1355
1356
+ side_effect_expr_nondett (const typet &_type, const source_locationt &loc);
1357
+
1350
1358
void set_nullable (bool nullable)
1351
1359
{
1352
1360
set (ID_is_nondet_nullable, nullable);
@@ -1387,13 +1395,19 @@ inline const side_effect_expr_nondett &to_side_effect_expr_nondet(
1387
1395
class side_effect_expr_function_callt :public side_effect_exprt
1388
1396
{
1389
1397
public:
1390
- DEPRECATED (" Use side_effect_expr_function_callt(...) instead" )
1391
- side_effect_expr_function_callt ():side_effect_exprt(ID_function_call)
1398
+ DEPRECATED (
1399
+ " Use side_effect_expr_function_callt("
1400
+ " function, arguments, type, loc) instead" )
1401
+ side_effect_expr_function_callt ()
1402
+ : side_effect_exprt(ID_function_call, typet(), source_locationt())
1392
1403
{
1393
1404
operands ().resize (2 );
1394
1405
op1 ().id (ID_arguments);
1395
1406
}
1396
1407
1408
+ DEPRECATED (
1409
+ " Use side_effect_expr_function_callt("
1410
+ " function, arguments, type, loc) instead" )
1397
1411
side_effect_expr_function_callt (
1398
1412
const exprt &_function,
1399
1413
const exprt::operandst &_arguments)
@@ -1405,6 +1419,9 @@ class side_effect_expr_function_callt:public side_effect_exprt
1405
1419
arguments () = _arguments;
1406
1420
}
1407
1421
1422
+ DEPRECATED (
1423
+ " Use side_effect_expr_function_callt("
1424
+ " function, arguments, type, loc) instead" )
1408
1425
side_effect_expr_function_callt (
1409
1426
const exprt &_function,
1410
1427
const exprt::operandst &_arguments,
@@ -1417,6 +1434,12 @@ class side_effect_expr_function_callt:public side_effect_exprt
1417
1434
arguments () = _arguments;
1418
1435
}
1419
1436
1437
+ side_effect_expr_function_callt (
1438
+ const exprt &_function,
1439
+ const exprt::operandst &_arguments,
1440
+ const typet &_type,
1441
+ const source_locationt &loc);
1442
+
1420
1443
exprt &function ()
1421
1444
{
1422
1445
return op0 ();
@@ -1473,8 +1496,11 @@ class side_effect_expr_throwt:public side_effect_exprt
1473
1496
{
1474
1497
}
1475
1498
1476
- explicit side_effect_expr_throwt (const irept &exception_list):
1477
- side_effect_exprt(ID_throw)
1499
+ explicit side_effect_expr_throwt (
1500
+ const irept &exception_list,
1501
+ const typet &type,
1502
+ const source_locationt &loc)
1503
+ : side_effect_exprt(ID_throw, type, loc)
1478
1504
{
1479
1505
set (ID_exception_list, exception_list);
1480
1506
}
0 commit comments