@@ -484,7 +484,7 @@ library class ExprEvaluator extends int {
484484 this .interestingInternal ( e , req , true ) and
485485 (
486486 result = req .( CompileTimeConstantInt ) .getIntValue ( ) or
487- result = this .getCompoundValue ( e , req . ( CompileTimeVariableExpr ) )
487+ result = this .getCompoundValue ( e , req )
488488 ) and
489489 (
490490 req .getUnderlyingType ( ) .( IntegralType ) .isSigned ( ) or
@@ -611,7 +611,7 @@ library class ExprEvaluator extends int {
611611 or
612612 exists ( AssignExpr req | req = val | result = this .getValueInternal ( e , req .getRValue ( ) ) )
613613 or
614- result = this .getVariableValue ( e , val . ( VariableAccess ) )
614+ result = this .getVariableValue ( e , val )
615615 or
616616 exists ( FunctionCall call | call = val and not callWithMultipleTargets ( call ) |
617617 result = this .getFunctionValue ( call .getTarget ( ) )
@@ -663,7 +663,7 @@ library class ExprEvaluator extends int {
663663 this .interestingInternal ( _, req , false ) and
664664 (
665665 result = req .( CompileTimeConstantInt ) .getIntValue ( ) or
666- result = this .getCompoundValueNonSubExpr ( req . ( CompileTimeVariableExpr ) )
666+ result = this .getCompoundValueNonSubExpr ( req )
667667 ) and
668668 (
669669 req .getUnderlyingType ( ) .( IntegralType ) .isSigned ( ) or
@@ -787,7 +787,7 @@ library class ExprEvaluator extends int {
787787 or
788788 exists ( AssignExpr req | req = val | result = this .getValueInternalNonSubExpr ( req .getRValue ( ) ) )
789789 or
790- result = this .getVariableValueNonSubExpr ( val . ( VariableAccess ) )
790+ result = this .getVariableValueNonSubExpr ( val )
791791 or
792792 exists ( FunctionCall call | call = val and not callWithMultipleTargets ( call ) |
793793 result = this .getFunctionValue ( call .getTarget ( ) )
0 commit comments