@@ -1162,7 +1162,7 @@ impl MediumLevelILInstruction {
1162
1162
let value = unsafe {
1163
1163
BNGetMediumLevelILPossibleExprValues (
1164
1164
self . function . handle ,
1165
- self . expr_index . 0 ,
1165
+ self . instr_index . 0 ,
1166
1166
options. as_ptr ( ) as * mut _ ,
1167
1167
options. len ( ) ,
1168
1168
)
@@ -1185,7 +1185,7 @@ impl MediumLevelILInstruction {
1185
1185
self . function . handle ,
1186
1186
& raw_var,
1187
1187
ssa_var. version ,
1188
- self . expr_index . 0 ,
1188
+ self . instr_index . 0 ,
1189
1189
options. as_ptr ( ) as * mut _ ,
1190
1190
options. len ( ) ,
1191
1191
)
@@ -1200,7 +1200,7 @@ impl MediumLevelILInstruction {
1200
1200
BNGetMediumLevelILSSAVarVersionAtILInstruction (
1201
1201
self . function . handle ,
1202
1202
& raw_var,
1203
- self . expr_index . 0 ,
1203
+ self . instr_index . 0 ,
1204
1204
)
1205
1205
} ;
1206
1206
SSAVariable :: new ( var, version)
@@ -1213,7 +1213,7 @@ impl MediumLevelILInstruction {
1213
1213
BNGetMediumLevelILSSAVarVersionAfterILInstruction (
1214
1214
self . function . handle ,
1215
1215
& raw_var,
1216
- self . expr_index . 0 ,
1216
+ self . instr_index . 0 ,
1217
1217
)
1218
1218
} ;
1219
1219
SSAVariable :: new ( var, version)
@@ -1225,24 +1225,27 @@ impl MediumLevelILInstruction {
1225
1225
let deps = unsafe {
1226
1226
BNGetAllMediumLevelILBranchDependence (
1227
1227
self . function . handle ,
1228
- self . expr_index . 0 ,
1228
+ self . instr_index . 0 ,
1229
1229
& mut count,
1230
1230
)
1231
1231
} ;
1232
1232
assert ! ( !deps. is_null( ) ) ;
1233
1233
unsafe { Array :: new ( deps, count, self . function . clone ( ) ) }
1234
1234
}
1235
1235
1236
- pub fn branch_dependence_at ( & self , instruction : MediumLevelILInstruction ) -> BranchDependence {
1236
+ pub fn branch_dependence_at (
1237
+ & self ,
1238
+ branch_instruction : MediumLevelILInstruction ,
1239
+ ) -> BranchDependence {
1237
1240
let deps = unsafe {
1238
1241
BNGetMediumLevelILBranchDependence (
1239
1242
self . function . handle ,
1240
- self . expr_index . 0 ,
1241
- instruction . expr_index . 0 ,
1243
+ self . instr_index . 0 ,
1244
+ branch_instruction . instr_index . 0 ,
1242
1245
)
1243
1246
} ;
1244
1247
BranchDependence {
1245
- instruction,
1248
+ instruction : branch_instruction ,
1246
1249
dependence : deps,
1247
1250
}
1248
1251
}
@@ -1252,7 +1255,7 @@ impl MediumLevelILInstruction {
1252
1255
unsafe {
1253
1256
BNGetMediumLevelILSSAMemoryVersionAtILInstruction (
1254
1257
self . function . handle ,
1255
- self . expr_index . 0 ,
1258
+ self . instr_index . 0 ,
1256
1259
)
1257
1260
}
1258
1261
}
@@ -1262,7 +1265,7 @@ impl MediumLevelILInstruction {
1262
1265
unsafe {
1263
1266
BNGetMediumLevelILSSAMemoryVersionAfterILInstruction (
1264
1267
self . function . handle ,
1265
- self . expr_index . 0 ,
1268
+ self . instr_index . 0 ,
1266
1269
)
1267
1270
}
1268
1271
}
@@ -1289,7 +1292,7 @@ impl MediumLevelILInstruction {
1289
1292
BNGetMediumLevelILVariableForRegisterAtInstruction (
1290
1293
self . function . handle ,
1291
1294
reg_id. 0 ,
1292
- self . expr_index . 0 ,
1295
+ self . instr_index . 0 ,
1293
1296
)
1294
1297
} ;
1295
1298
Variable :: from ( result)
@@ -1300,7 +1303,7 @@ impl MediumLevelILInstruction {
1300
1303
BNGetMediumLevelILVariableForRegisterAfterInstruction (
1301
1304
self . function . handle ,
1302
1305
reg_id. 0 ,
1303
- self . expr_index . 0 ,
1306
+ self . instr_index . 0 ,
1304
1307
)
1305
1308
} ;
1306
1309
Variable :: from ( result)
@@ -1311,7 +1314,7 @@ impl MediumLevelILInstruction {
1311
1314
BNGetMediumLevelILVariableForFlagAtInstruction (
1312
1315
self . function . handle ,
1313
1316
flag_id. 0 ,
1314
- self . expr_index . 0 ,
1317
+ self . instr_index . 0 ,
1315
1318
)
1316
1319
} ;
1317
1320
Variable :: from ( result)
@@ -1322,7 +1325,7 @@ impl MediumLevelILInstruction {
1322
1325
BNGetMediumLevelILVariableForFlagAfterInstruction (
1323
1326
self . function . handle ,
1324
1327
flag_id. 0 ,
1325
- self . expr_index . 0 ,
1328
+ self . instr_index . 0 ,
1326
1329
)
1327
1330
} ;
1328
1331
Variable :: from ( result)
@@ -1333,7 +1336,7 @@ impl MediumLevelILInstruction {
1333
1336
BNGetMediumLevelILVariableForStackLocationAtInstruction (
1334
1337
self . function . handle ,
1335
1338
offset,
1336
- self . expr_index . 0 ,
1339
+ self . instr_index . 0 ,
1337
1340
)
1338
1341
} ;
1339
1342
Variable :: from ( result)
@@ -1344,7 +1347,7 @@ impl MediumLevelILInstruction {
1344
1347
BNGetMediumLevelILVariableForStackLocationAfterInstruction (
1345
1348
self . function . handle ,
1346
1349
offset,
1347
- self . expr_index . 0 ,
1350
+ self . instr_index . 0 ,
1348
1351
)
1349
1352
} ;
1350
1353
Variable :: from ( result)
@@ -1355,7 +1358,7 @@ impl MediumLevelILInstruction {
1355
1358
BNGetMediumLevelILRegisterValueAtInstruction (
1356
1359
self . function . handle ,
1357
1360
reg_id. 0 ,
1358
- self . expr_index . 0 ,
1361
+ self . instr_index . 0 ,
1359
1362
)
1360
1363
}
1361
1364
. into ( )
@@ -1366,7 +1369,7 @@ impl MediumLevelILInstruction {
1366
1369
BNGetMediumLevelILRegisterValueAfterInstruction (
1367
1370
self . function . handle ,
1368
1371
reg_id. 0 ,
1369
- self . expr_index . 0 ,
1372
+ self . instr_index . 0 ,
1370
1373
)
1371
1374
}
1372
1375
. into ( )
@@ -1385,7 +1388,7 @@ impl MediumLevelILInstruction {
1385
1388
BNGetMediumLevelILPossibleRegisterValuesAtInstruction (
1386
1389
self . function . handle ,
1387
1390
reg_id. 0 ,
1388
- self . expr_index . 0 ,
1391
+ self . instr_index . 0 ,
1389
1392
options. as_ptr ( ) as * mut _ ,
1390
1393
options. len ( ) ,
1391
1394
)
@@ -1406,7 +1409,7 @@ impl MediumLevelILInstruction {
1406
1409
BNGetMediumLevelILPossibleRegisterValuesAfterInstruction (
1407
1410
self . function . handle ,
1408
1411
reg_id. 0 ,
1409
- self . expr_index . 0 ,
1412
+ self . instr_index . 0 ,
1410
1413
options. as_ptr ( ) as * mut _ ,
1411
1414
options. len ( ) ,
1412
1415
)
@@ -1419,7 +1422,7 @@ impl MediumLevelILInstruction {
1419
1422
BNGetMediumLevelILFlagValueAtInstruction (
1420
1423
self . function . handle ,
1421
1424
flag_id. 0 ,
1422
- self . expr_index . 0 ,
1425
+ self . instr_index . 0 ,
1423
1426
)
1424
1427
}
1425
1428
. into ( )
@@ -1430,7 +1433,7 @@ impl MediumLevelILInstruction {
1430
1433
BNGetMediumLevelILFlagValueAfterInstruction (
1431
1434
self . function . handle ,
1432
1435
flag_id. 0 ,
1433
- self . expr_index . 0 ,
1436
+ self . instr_index . 0 ,
1434
1437
)
1435
1438
}
1436
1439
. into ( )
@@ -1449,7 +1452,7 @@ impl MediumLevelILInstruction {
1449
1452
BNGetMediumLevelILPossibleFlagValuesAtInstruction (
1450
1453
self . function . handle ,
1451
1454
flag_id. 0 ,
1452
- self . expr_index . 0 ,
1455
+ self . instr_index . 0 ,
1453
1456
options. as_ptr ( ) as * mut _ ,
1454
1457
options. len ( ) ,
1455
1458
)
@@ -1466,7 +1469,7 @@ impl MediumLevelILInstruction {
1466
1469
BNGetMediumLevelILPossibleFlagValuesAfterInstruction (
1467
1470
self . function . handle ,
1468
1471
flag_id. 0 ,
1469
- self . expr_index . 0 ,
1472
+ self . instr_index . 0 ,
1470
1473
options. as_ptr ( ) as * mut _ ,
1471
1474
options. len ( ) ,
1472
1475
)
@@ -1480,7 +1483,7 @@ impl MediumLevelILInstruction {
1480
1483
self . function . handle ,
1481
1484
offset,
1482
1485
size,
1483
- self . expr_index . 0 ,
1486
+ self . instr_index . 0 ,
1484
1487
)
1485
1488
}
1486
1489
. into ( )
@@ -1492,7 +1495,7 @@ impl MediumLevelILInstruction {
1492
1495
self . function . handle ,
1493
1496
offset,
1494
1497
size,
1495
- self . expr_index . 0 ,
1498
+ self . instr_index . 0 ,
1496
1499
)
1497
1500
}
1498
1501
. into ( )
@@ -1509,7 +1512,7 @@ impl MediumLevelILInstruction {
1509
1512
self . function . handle ,
1510
1513
offset,
1511
1514
size,
1512
- self . expr_index . 0 ,
1515
+ self . instr_index . 0 ,
1513
1516
options. as_ptr ( ) as * mut _ ,
1514
1517
options. len ( ) ,
1515
1518
)
@@ -1528,7 +1531,7 @@ impl MediumLevelILInstruction {
1528
1531
self . function . handle ,
1529
1532
offset,
1530
1533
size,
1531
- self . expr_index . 0 ,
1534
+ self . instr_index . 0 ,
1532
1535
options. as_ptr ( ) as * mut _ ,
1533
1536
options. len ( ) ,
1534
1537
)
@@ -1547,7 +1550,7 @@ impl MediumLevelILInstruction {
1547
1550
BNGetDefaultIndexForMediumLevelILVariableDefinition (
1548
1551
self . function . handle ,
1549
1552
& raw_var,
1550
- self . expr_index . 0 ,
1553
+ self . instr_index . 0 ,
1551
1554
)
1552
1555
} ;
1553
1556
Variable :: new ( var. ty , index, var. storage )
0 commit comments