@@ -287,8 +287,8 @@ module Array {
287
287
(
288
288
mc .getNumberOfArguments ( ) = 2 and
289
289
(
290
- not exists ( mc .getArgument ( 0 ) .getConstantValue ( ) .getInt ( ) ) or
291
- not exists ( mc .getArgument ( 1 ) .getConstantValue ( ) .getInt ( ) )
290
+ not mc .getArgument ( 0 ) .getConstantValue ( ) .isInt ( _ ) or
291
+ not mc .getArgument ( 1 ) .getConstantValue ( ) .isInt ( _ )
292
292
)
293
293
or
294
294
mc .getNumberOfArguments ( ) = 1 and
@@ -919,7 +919,7 @@ module Array {
919
919
private class InsertUnknownSummary extends InsertSummary {
920
920
InsertUnknownSummary ( ) {
921
921
this = "insert(index)" and
922
- not exists ( mc .getArgument ( 0 ) .getConstantValue ( ) .getInt ( ) )
922
+ not mc .getArgument ( 0 ) .getConstantValue ( ) .isInt ( _ )
923
923
}
924
924
925
925
override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
@@ -1243,7 +1243,7 @@ module Array {
1243
1243
RotateUnknownSummary ( ) {
1244
1244
this = "rotate(index)" and
1245
1245
exists ( mc .getArgument ( 0 ) ) and
1246
- not exists ( mc .getArgument ( 0 ) .getConstantValue ( ) .getInt ( ) )
1246
+ not mc .getArgument ( 0 ) .getConstantValue ( ) .isInt ( _ )
1247
1247
}
1248
1248
1249
1249
override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
@@ -1298,7 +1298,7 @@ module Array {
1298
1298
RotateBangUnknownSummary ( ) {
1299
1299
this = "rotate!(index)" and
1300
1300
exists ( mc .getArgument ( 0 ) ) and
1301
- not exists ( mc .getArgument ( 0 ) .getConstantValue ( ) .getInt ( ) )
1301
+ not mc .getArgument ( 0 ) .getConstantValue ( ) .isInt ( _ )
1302
1302
}
1303
1303
1304
1304
override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
@@ -1387,7 +1387,7 @@ module Array {
1387
1387
ShiftArgUnknownSummary ( ) {
1388
1388
this = "shift(index)" and
1389
1389
exists ( mc .getArgument ( 0 ) ) and
1390
- not exists ( mc .getArgument ( 0 ) .getConstantValue ( ) .getInt ( ) )
1390
+ not mc .getArgument ( 0 ) .getConstantValue ( ) .isInt ( _ )
1391
1391
}
1392
1392
1393
1393
override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
@@ -1538,8 +1538,8 @@ module Array {
1538
1538
(
1539
1539
mc .getNumberOfArguments ( ) = 2 and
1540
1540
(
1541
- not exists ( mc .getArgument ( 0 ) .getConstantValue ( ) .getInt ( ) ) or
1542
- not exists ( mc .getArgument ( 1 ) .getConstantValue ( ) .getInt ( ) )
1541
+ not mc .getArgument ( 0 ) .getConstantValue ( ) .isInt ( _ ) or
1542
+ not mc .getArgument ( 1 ) .getConstantValue ( ) .isInt ( _ )
1543
1543
)
1544
1544
or
1545
1545
mc .getNumberOfArguments ( ) = 1 and
@@ -1847,7 +1847,7 @@ module Enumerable {
1847
1847
private class DropUnknownSummary extends DropSummary {
1848
1848
DropUnknownSummary ( ) {
1849
1849
this = "drop(index)" and
1850
- not exists ( mc .getArgument ( 0 ) .getConstantValue ( ) .getInt ( ) )
1850
+ not mc .getArgument ( 0 ) .getConstantValue ( ) .isInt ( _ )
1851
1851
}
1852
1852
1853
1853
override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
@@ -2017,7 +2017,7 @@ module Enumerable {
2017
2017
FirstArgUnknownSummary ( ) {
2018
2018
this = "first(?)" and
2019
2019
mc .getNumberOfArguments ( ) > 0 and
2020
- not exists ( mc .getArgument ( 0 ) .getConstantValue ( ) .getInt ( ) )
2020
+ not mc .getArgument ( 0 ) .getConstantValue ( ) .isInt ( _ )
2021
2021
}
2022
2022
2023
2023
override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
@@ -2411,7 +2411,7 @@ module Enumerable {
2411
2411
private class TakeUnknownSummary extends TakeSummary {
2412
2412
TakeUnknownSummary ( ) {
2413
2413
this = "take(index)" and
2414
- not exists ( mc .getArgument ( 0 ) .getConstantValue ( ) .getInt ( ) )
2414
+ not mc .getArgument ( 0 ) .getConstantValue ( ) .isInt ( _ )
2415
2415
}
2416
2416
2417
2417
override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
0 commit comments