@@ -26,9 +26,9 @@ Expr enumConstEquality(Expr e, boolean polarity, EnumConstant c) {
2626}
2727
2828/** Gets an instanceof expression of `v` with type `type` */
29- InstanceOfExpr instanceofExpr ( SsaVariable v , RefType type ) {
29+ InstanceOfExpr instanceofExpr ( SsaDefinition v , RefType type ) {
3030 result .getCheckedType ( ) = type and
31- result .getExpr ( ) = v .getAUse ( )
31+ result .getExpr ( ) = v .getARead ( )
3232}
3333
3434/**
@@ -37,8 +37,8 @@ InstanceOfExpr instanceofExpr(SsaVariable v, RefType type) {
3737 *
3838 * Note this includes Kotlin's `==` and `!=` operators, which are value-equality tests.
3939 */
40- EqualityTest varEqualityTestExpr ( SsaVariable v1 , SsaVariable v2 , boolean isEqualExpr ) {
41- result .hasOperands ( v1 .getAUse ( ) , v2 .getAUse ( ) ) and
40+ EqualityTest varEqualityTestExpr ( SsaDefinition v1 , SsaDefinition v2 , boolean isEqualExpr ) {
41+ result .hasOperands ( v1 .getARead ( ) , v2 .getARead ( ) ) and
4242 isEqualExpr = result .polarity ( )
4343}
4444
@@ -91,18 +91,18 @@ Expr clearlyNotNullExpr(Expr reason) {
9191 ( reason = r1 or reason = r2 )
9292 )
9393 or
94- exists ( SsaVariable v , boolean branch , VarRead rval , Guard guard |
94+ exists ( SsaDefinition v , boolean branch , VarRead rval , Guard guard |
9595 guard = directNullGuard ( v , branch , false ) and
9696 guard .controls ( rval .getBasicBlock ( ) , branch ) and
9797 reason = guard and
98- rval = v .getAUse ( ) and
98+ rval = v .getARead ( ) and
9999 result = rval and
100100 not result = baseNotNullExpr ( )
101101 )
102102 or
103- exists ( SsaVariable v |
103+ exists ( SsaDefinition v |
104104 clearlyNotNull ( v , reason ) and
105- result = v .getAUse ( ) and
105+ result = v .getARead ( ) and
106106 not result = baseNotNullExpr ( )
107107 )
108108}
0 commit comments