@@ -50,7 +50,7 @@ class ConstantRShiftExprRange extends SimpleRangeAnalysisExpr {
5050 * We don't handle the case where `a` and `b` are both non-constant values.
5151 */
5252 ConstantRShiftExprRange ( ) {
53- getUnspecifiedType ( ) instanceof IntegralType and
53+ this . getUnspecifiedType ( ) instanceof IntegralType and
5454 exists ( Expr l , Expr r |
5555 l = this .( RShiftExpr ) .getLeftOperand ( ) and
5656 r = this .( RShiftExpr ) .getRightOperand ( )
@@ -84,19 +84,19 @@ class ConstantRShiftExprRange extends SimpleRangeAnalysisExpr {
8484
8585 override float getLowerBounds ( ) {
8686 exists ( int lLower , int lUpper , int rLower , int rUpper |
87- lLower = getFullyConvertedLowerBounds ( getLeftOperand ( ) ) and
88- lUpper = getFullyConvertedUpperBounds ( getLeftOperand ( ) ) and
89- rLower = getFullyConvertedLowerBounds ( getRightOperand ( ) ) and
90- rUpper = getFullyConvertedUpperBounds ( getRightOperand ( ) ) and
87+ lLower = getFullyConvertedLowerBounds ( this . getLeftOperand ( ) ) and
88+ lUpper = getFullyConvertedUpperBounds ( this . getLeftOperand ( ) ) and
89+ rLower = getFullyConvertedLowerBounds ( this . getRightOperand ( ) ) and
90+ rUpper = getFullyConvertedUpperBounds ( this . getRightOperand ( ) ) and
9191 lLower <= lUpper and
9292 rLower <= rUpper
9393 |
9494 if
9595 lLower < 0
9696 or
9797 not (
98- isValidShiftExprShift ( rLower , getLeftOperand ( ) ) and
99- isValidShiftExprShift ( rUpper , getLeftOperand ( ) )
98+ isValidShiftExprShift ( rLower , this . getLeftOperand ( ) ) and
99+ isValidShiftExprShift ( rUpper , this . getLeftOperand ( ) )
100100 )
101101 then
102102 // We don't want to deal with shifting negative numbers at the moment,
@@ -111,19 +111,19 @@ class ConstantRShiftExprRange extends SimpleRangeAnalysisExpr {
111111
112112 override float getUpperBounds ( ) {
113113 exists ( int lLower , int lUpper , int rLower , int rUpper |
114- lLower = getFullyConvertedLowerBounds ( getLeftOperand ( ) ) and
115- lUpper = getFullyConvertedUpperBounds ( getLeftOperand ( ) ) and
116- rLower = getFullyConvertedLowerBounds ( getRightOperand ( ) ) and
117- rUpper = getFullyConvertedUpperBounds ( getRightOperand ( ) ) and
114+ lLower = getFullyConvertedLowerBounds ( this . getLeftOperand ( ) ) and
115+ lUpper = getFullyConvertedUpperBounds ( this . getLeftOperand ( ) ) and
116+ rLower = getFullyConvertedLowerBounds ( this . getRightOperand ( ) ) and
117+ rUpper = getFullyConvertedUpperBounds ( this . getRightOperand ( ) ) and
118118 lLower <= lUpper and
119119 rLower <= rUpper
120120 |
121121 if
122122 lLower < 0
123123 or
124124 not (
125- isValidShiftExprShift ( rLower , getLeftOperand ( ) ) and
126- isValidShiftExprShift ( rUpper , getLeftOperand ( ) )
125+ isValidShiftExprShift ( rLower , this . getLeftOperand ( ) ) and
126+ isValidShiftExprShift ( rUpper , this . getLeftOperand ( ) )
127127 )
128128 then
129129 // We don't want to deal with shifting negative numbers at the moment,
@@ -137,7 +137,7 @@ class ConstantRShiftExprRange extends SimpleRangeAnalysisExpr {
137137 }
138138
139139 override predicate dependsOnChild ( Expr child ) {
140- child = getLeftOperand ( ) or child = getRightOperand ( )
140+ child = this . getLeftOperand ( ) or child = this . getRightOperand ( )
141141 }
142142}
143143
@@ -163,7 +163,7 @@ class ConstantLShiftExprRange extends SimpleRangeAnalysisExpr {
163163 * We don't handle the case where `a` and `b` are both non-constant values.
164164 */
165165 ConstantLShiftExprRange ( ) {
166- getUnspecifiedType ( ) instanceof IntegralType and
166+ this . getUnspecifiedType ( ) instanceof IntegralType and
167167 exists ( Expr l , Expr r |
168168 l = this .( LShiftExpr ) .getLeftOperand ( ) and
169169 r = this .( LShiftExpr ) .getRightOperand ( )
@@ -197,19 +197,19 @@ class ConstantLShiftExprRange extends SimpleRangeAnalysisExpr {
197197
198198 override float getLowerBounds ( ) {
199199 exists ( int lLower , int lUpper , int rLower , int rUpper |
200- lLower = getFullyConvertedLowerBounds ( getLeftOperand ( ) ) and
201- lUpper = getFullyConvertedUpperBounds ( getLeftOperand ( ) ) and
202- rLower = getFullyConvertedLowerBounds ( getRightOperand ( ) ) and
203- rUpper = getFullyConvertedUpperBounds ( getRightOperand ( ) ) and
200+ lLower = getFullyConvertedLowerBounds ( this . getLeftOperand ( ) ) and
201+ lUpper = getFullyConvertedUpperBounds ( this . getLeftOperand ( ) ) and
202+ rLower = getFullyConvertedLowerBounds ( this . getRightOperand ( ) ) and
203+ rUpper = getFullyConvertedUpperBounds ( this . getRightOperand ( ) ) and
204204 lLower <= lUpper and
205205 rLower <= rUpper
206206 |
207207 if
208208 lLower < 0
209209 or
210210 not (
211- isValidShiftExprShift ( rLower , getLeftOperand ( ) ) and
212- isValidShiftExprShift ( rUpper , getLeftOperand ( ) )
211+ isValidShiftExprShift ( rLower , this . getLeftOperand ( ) ) and
212+ isValidShiftExprShift ( rUpper , this . getLeftOperand ( ) )
213213 )
214214 then
215215 // We don't want to deal with shifting negative numbers at the moment,
@@ -228,19 +228,19 @@ class ConstantLShiftExprRange extends SimpleRangeAnalysisExpr {
228228
229229 override float getUpperBounds ( ) {
230230 exists ( int lLower , int lUpper , int rLower , int rUpper |
231- lLower = getFullyConvertedLowerBounds ( getLeftOperand ( ) ) and
232- lUpper = getFullyConvertedUpperBounds ( getLeftOperand ( ) ) and
233- rLower = getFullyConvertedLowerBounds ( getRightOperand ( ) ) and
234- rUpper = getFullyConvertedUpperBounds ( getRightOperand ( ) ) and
231+ lLower = getFullyConvertedLowerBounds ( this . getLeftOperand ( ) ) and
232+ lUpper = getFullyConvertedUpperBounds ( this . getLeftOperand ( ) ) and
233+ rLower = getFullyConvertedLowerBounds ( this . getRightOperand ( ) ) and
234+ rUpper = getFullyConvertedUpperBounds ( this . getRightOperand ( ) ) and
235235 lLower <= lUpper and
236236 rLower <= rUpper
237237 |
238238 if
239239 lLower < 0
240240 or
241241 not (
242- isValidShiftExprShift ( rLower , getLeftOperand ( ) ) and
243- isValidShiftExprShift ( rUpper , getLeftOperand ( ) )
242+ isValidShiftExprShift ( rLower , this . getLeftOperand ( ) ) and
243+ isValidShiftExprShift ( rUpper , this . getLeftOperand ( ) )
244244 )
245245 then
246246 // We don't want to deal with shifting negative numbers at the moment,
@@ -258,6 +258,6 @@ class ConstantLShiftExprRange extends SimpleRangeAnalysisExpr {
258258 }
259259
260260 override predicate dependsOnChild ( Expr child ) {
261- child = getLeftOperand ( ) or child = getRightOperand ( )
261+ child = this . getLeftOperand ( ) or child = this . getRightOperand ( )
262262 }
263263}
0 commit comments