@@ -108,7 +108,7 @@ Expr clearlyNotNullExpr(Expr reason) {
108108}
109109
110110/** Holds if `v` is an SSA variable that is provably not `null`. */
111- predicate clearlyNotNull ( SsaVariable v , Expr reason ) {
111+ predicate clearlyNotNull ( SsaDefinition v , Expr reason ) {
112112 exists ( Expr src |
113113 src = v .( SsaExplicitWrite ) .getValue ( ) and
114114 src = clearlyNotNullExpr ( reason )
@@ -136,7 +136,7 @@ predicate clearlyNotNull(SsaVariable v, Expr reason) {
136136Expr clearlyNotNullExpr ( ) { result = clearlyNotNullExpr ( _) }
137137
138138/** Holds if `v` is an SSA variable that is provably not `null`. */
139- predicate clearlyNotNull ( SsaVariable v ) { clearlyNotNull ( v , _) }
139+ predicate clearlyNotNull ( SsaDefinition v ) { clearlyNotNull ( v , _) }
140140
141141/**
142142 * Holds if the evaluation of a call to `m` resulting in the value `branch`
@@ -207,7 +207,7 @@ deprecated Expr basicOrCustomNullGuard(Expr e, boolean branch, boolean isnull) {
207207 * If `result` evaluates to `branch`, then `v` is guaranteed to be null if `isnull`
208208 * is true, and non-null if `isnull` is false.
209209 */
210- Expr directNullGuard ( SsaVariable v , boolean branch , boolean isnull ) {
210+ Expr directNullGuard ( SsaDefinition v , boolean branch , boolean isnull ) {
211211 result = basicNullGuard ( sameValue ( v , _) , branch , isnull )
212212}
213213
@@ -219,7 +219,7 @@ Expr directNullGuard(SsaVariable v, boolean branch, boolean isnull) {
219219 * If `result` evaluates to `branch`, then `v` is guaranteed to be null if `isnull`
220220 * is true, and non-null if `isnull` is false.
221221 */
222- deprecated Guard nullGuard ( SsaVariable v , boolean branch , boolean isnull ) {
222+ deprecated Guard nullGuard ( SsaDefinition v , boolean branch , boolean isnull ) {
223223 result = directNullGuard ( v , branch , isnull )
224224}
225225
@@ -228,7 +228,9 @@ deprecated Guard nullGuard(SsaVariable v, boolean branch, boolean isnull) {
228228 * from `bb1` to `bb2` implies that `v` is guaranteed to be null if `isnull` is
229229 * true, and non-null if `isnull` is false.
230230 */
231- predicate nullGuardControlsBranchEdge ( SsaVariable v , boolean isnull , BasicBlock bb1 , BasicBlock bb2 ) {
231+ predicate nullGuardControlsBranchEdge (
232+ SsaDefinition v , boolean isnull , BasicBlock bb1 , BasicBlock bb2
233+ ) {
232234 exists ( GuardValue gv |
233235 Guards_v3:: ssaControlsBranchEdge ( v , bb1 , bb2 , gv ) and
234236 gv .isNullness ( isnull )
@@ -240,7 +242,7 @@ predicate nullGuardControlsBranchEdge(SsaVariable v, boolean isnull, BasicBlock
240242 * `bb` `v` is guaranteed to be null if `isnull` is true, and non-null if
241243 * `isnull` is false.
242244 */
243- predicate nullGuardControls ( SsaVariable v , boolean isnull , BasicBlock bb ) {
245+ predicate nullGuardControls ( SsaDefinition v , boolean isnull , BasicBlock bb ) {
244246 exists ( GuardValue gv |
245247 Guards_v3:: ssaControls ( v , bb , gv ) and
246248 gv .isNullness ( isnull )
@@ -263,6 +265,6 @@ predicate guardSuggestsExprMaybeNull(Expr guard, Expr e) {
263265/**
264266 * Holds if `guard` is a guard expression that suggests that `v` might be null.
265267 */
266- predicate guardSuggestsVarMaybeNull ( Expr guard , SsaVariable v ) {
268+ predicate guardSuggestsVarMaybeNull ( Expr guard , SsaDefinition v ) {
267269 guardSuggestsExprMaybeNull ( guard , sameValue ( v , _) )
268270}
0 commit comments