@@ -58,7 +58,7 @@ module SsaInput implements SsaImplCommon::InputSig<Location> {
58
58
this .isMutable ( )
59
59
implies
60
60
not exists ( VariableAccess va | va = this .getAnAccess ( ) |
61
- exists ( RefExpr re | va = re .getExpr ( ) and re . isMut ( ) )
61
+ va = any ( RefExpr re | re .isMut ( ) ) . getExpr ( )
62
62
or
63
63
// receivers can be borrowed implicitly, cf.
64
64
// https://doc.rust-lang.org/reference/expressions/method-call-expr.html
@@ -238,7 +238,7 @@ private predicate lastRefSkipUncertainReadsExt(DefinitionExt def, BasicBlock bb,
238
238
)
239
239
}
240
240
241
- private VariableAccess getCapturedVariableAccess ( BasicBlock bb , Variable v ) {
241
+ private VariableAccess getACapturedVariableAccess ( BasicBlock bb , Variable v ) {
242
242
result = bb .getANode ( ) .getAstNode ( ) and
243
243
result .isCapture ( ) and
244
244
result .getVariable ( ) = v
@@ -247,13 +247,13 @@ private VariableAccess getCapturedVariableAccess(BasicBlock bb, Variable v) {
247
247
/** Holds if `bb` contains a captured write to variable `v`. */
248
248
pragma [ noinline]
249
249
private predicate writesCapturedVariable ( BasicBlock bb , Variable v ) {
250
- getCapturedVariableAccess ( bb , v ) instanceof VariableWriteAccess
250
+ getACapturedVariableAccess ( bb , v ) instanceof VariableWriteAccess
251
251
}
252
252
253
253
/** Holds if `bb` contains a captured read to variable `v`. */
254
254
pragma [ nomagic]
255
255
private predicate readsCapturedVariable ( BasicBlock bb , Variable v ) {
256
- getCapturedVariableAccess ( bb , v ) instanceof VariableReadAccess
256
+ getACapturedVariableAccess ( bb , v ) instanceof VariableReadAccess
257
257
}
258
258
259
259
/**
0 commit comments