@@ -34,13 +34,13 @@ predicate eqFlowCond = U::eqFlowCond/5;
3434 * have non-`SsaPhiNode` results.
3535 */
3636private predicate nonNullSsaFwdStep ( SsaVariable v , SsaVariable phi ) {
37- exists ( SsaExplicitUpdate vnull , SsaPhiNode phi0 | phi0 = phi |
37+ exists ( SsaExplicitWrite vnull , SsaPhiNode phi0 | phi0 = phi |
3838 2 = strictcount ( phi0 .getAPhiInput ( ) ) and
3939 vnull = phi0 .getAPhiInput ( ) and
4040 v = phi0 .getAPhiInput ( ) and
4141 not backEdge ( phi0 , v , _) and
4242 vnull != v and
43- vnull .getDefiningExpr ( ) . ( VariableAssign ) . getSource ( ) instanceof NullLiteral
43+ vnull .getValue ( ) instanceof NullLiteral
4444 )
4545}
4646
@@ -58,7 +58,7 @@ private predicate nonNullDefStep(Expr e1, Expr e2) {
5858 */
5959ArrayCreationExpr getArrayDef ( SsaVariable v ) {
6060 exists ( Expr src |
61- v .( SsaExplicitUpdate ) . getDefiningExpr ( ) . ( VariableAssign ) . getSource ( ) = src and
61+ v .( SsaExplicitWrite ) . getValue ( ) = src and
6262 nonNullDefStep * ( result , src )
6363 )
6464 or
@@ -86,9 +86,9 @@ pragma[nomagic]
8686private predicate constantIntegerExpr ( Expr e , int val ) {
8787 e .( CompileTimeConstantExpr ) .getIntValue ( ) = val
8888 or
89- exists ( SsaExplicitUpdate v , Expr src |
90- e = v .getAUse ( ) and
91- src = v .getDefiningExpr ( ) . ( VariableAssign ) . getSource ( ) and
89+ exists ( SsaExplicitWrite v , Expr src |
90+ e = v .getARead ( ) and
91+ src = v .getValue ( ) and
9292 constantIntegerExpr ( src , val )
9393 )
9494 or
@@ -112,9 +112,9 @@ pragma[nomagic]
112112private predicate constantBooleanExpr ( Expr e , boolean val ) {
113113 e .( CompileTimeConstantExpr ) .getBooleanValue ( ) = val
114114 or
115- exists ( SsaExplicitUpdate v , Expr src |
116- e = v .getAUse ( ) and
117- src = v .getDefiningExpr ( ) . ( VariableAssign ) . getSource ( ) and
115+ exists ( SsaExplicitWrite v , Expr src |
116+ e = v .getARead ( ) and
117+ src = v .getValue ( ) and
118118 constantBooleanExpr ( src , val )
119119 )
120120 or
@@ -125,9 +125,9 @@ pragma[nomagic]
125125private predicate constantStringExpr ( Expr e , string val ) {
126126 e .( CompileTimeConstantExpr ) .getStringValue ( ) = val
127127 or
128- exists ( SsaExplicitUpdate v , Expr src |
129- e = v .getAUse ( ) and
130- src = v .getDefiningExpr ( ) . ( VariableAssign ) . getSource ( ) and
128+ exists ( SsaExplicitWrite v , Expr src |
129+ e = v .getARead ( ) and
130+ src = v .getValue ( ) and
131131 constantStringExpr ( src , val )
132132 )
133133}
0 commit comments