@@ -95,7 +95,7 @@ private module Propagation {
9595 or
9696 isIntExpr ( e .( ConstantReadAccess ) .getValue ( ) , i )
9797 or
98- forex ( ExprCfgNode n | n = e . getAControlFlowNode ( ) | isInt ( n , i ) )
98+ isInt ( e . getControlFlowNode ( ) , i )
9999 }
100100
101101 predicate isFloat ( ExprCfgNode e , float f ) {
@@ -153,7 +153,7 @@ private module Propagation {
153153 or
154154 isFloatExpr ( e .( ConstantReadAccess ) .getValue ( ) , f )
155155 or
156- forex ( ExprCfgNode n | n = e . getAControlFlowNode ( ) | isFloat ( n , f ) )
156+ isFloat ( e . getControlFlowNode ( ) , f )
157157 }
158158
159159 predicate isRational ( ExprCfgNode e , int numerator , int denominator ) {
@@ -175,7 +175,7 @@ private module Propagation {
175175 or
176176 isRationalExpr ( e .( ConstantReadAccess ) .getValue ( ) , numerator , denominator )
177177 or
178- forex ( ExprCfgNode n | n = e . getAControlFlowNode ( ) | isRational ( n , numerator , denominator ) )
178+ isRational ( e . getControlFlowNode ( ) , numerator , denominator )
179179 }
180180
181181 predicate isComplex ( ExprCfgNode e , float real , float imaginary ) {
@@ -197,7 +197,7 @@ private module Propagation {
197197 or
198198 isComplexExpr ( e .( ConstantReadAccess ) .getValue ( ) , real , imaginary )
199199 or
200- forex ( ExprCfgNode n | n = e . getAControlFlowNode ( ) | isComplex ( n , real , imaginary ) )
200+ isComplex ( e . getControlFlowNode ( ) , real , imaginary )
201201 }
202202
203203 overlay [ local]
@@ -309,7 +309,7 @@ private module Propagation {
309309 or
310310 isStringExpr ( e .( ConstantReadAccess ) .getValue ( ) , s )
311311 or
312- forex ( ExprCfgNode n | n = e . getAControlFlowNode ( ) | isString ( n , s ) )
312+ isString ( e . getControlFlowNode ( ) , s )
313313 }
314314
315315 predicate isSymbol ( ExprCfgNode e , string s ) {
@@ -334,7 +334,7 @@ private module Propagation {
334334 or
335335 isSymbolExpr ( e .( ConstantReadAccess ) .getValue ( ) , s )
336336 or
337- forex ( ExprCfgNode n | n = e . getAControlFlowNode ( ) | isSymbol ( n , s ) )
337+ isSymbol ( e . getControlFlowNode ( ) , s )
338338 }
339339
340340 predicate isRegExp ( ExprCfgNode e , string s , string flags ) {
@@ -359,7 +359,7 @@ private module Propagation {
359359 or
360360 isRegExpExpr ( e .( ConstantReadAccess ) .getValue ( ) , s , flags )
361361 or
362- forex ( ExprCfgNode n | n = e . getAControlFlowNode ( ) | isRegExp ( n , s , flags ) )
362+ isRegExp ( e . getControlFlowNode ( ) , s , flags )
363363 }
364364
365365 predicate isBoolean ( ExprCfgNode e , boolean b ) {
@@ -381,7 +381,7 @@ private module Propagation {
381381 or
382382 isBooleanExpr ( e .( ConstantReadAccess ) .getValue ( ) , b )
383383 or
384- forex ( ExprCfgNode n | n = e . getAControlFlowNode ( ) | isBoolean ( n , b ) )
384+ isBoolean ( e . getControlFlowNode ( ) , b )
385385 }
386386
387387 predicate isNil ( ExprCfgNode e ) {
@@ -403,7 +403,7 @@ private module Propagation {
403403 or
404404 isNilExpr ( e .( ConstantReadAccess ) .getValue ( ) )
405405 or
406- forex ( ExprCfgNode n | n = e . getAControlFlowNode ( ) | isNil ( n ) )
406+ isNil ( e . getControlFlowNode ( ) )
407407 }
408408}
409409
@@ -566,7 +566,7 @@ private predicate isArrayExpr(Expr e, ArrayLiteralCfgNode arr) {
566566 // control flow paths.
567567 // Note(hmac): I don't think this is necessary, as `getSource` will not return
568568 // results if the source is a phi node.
569- forex ( ExprCfgNode n | n = e . getAControlFlowNode ( ) | isArrayConstant ( n , arr ) )
569+ isArrayConstant ( e . getControlFlowNode ( ) , arr )
570570 or
571571 // if `e` is an array, then `e.freeze` is also an array
572572 e .( MethodCall ) .getMethodName ( ) = "freeze" and
0 commit comments