@@ -74,10 +74,10 @@ CfgNodes::ExprCfgNode getAPostUpdateNodeForArg(Argument arg) {
74
74
75
75
/** Gets the SSA definition node corresponding to parameter `p`. */
76
76
pragma [ nomagic]
77
- SsaImpl :: DefinitionExt getParameterDef ( NamedParameter p ) {
77
+ Ssa :: Definition getParameterDef ( NamedParameter p ) {
78
78
exists ( BasicBlock bb , int i |
79
79
bb .getNode ( i ) .getAstNode ( ) = p .getDefiningAccess ( ) and
80
- result .definesAt ( _, bb , i , _ )
80
+ result .definesAt ( _, bb , i )
81
81
)
82
82
}
83
83
@@ -388,15 +388,15 @@ module VariableCapture {
388
388
Flow:: clearsContent ( asClosureNode ( node ) , c .getVariable ( ) )
389
389
}
390
390
391
- class CapturedSsaDefinitionExt extends SsaImpl:: DefinitionExt {
392
- CapturedSsaDefinitionExt ( ) { this .getSourceVariable ( ) instanceof CapturedVariable }
391
+ class CapturedSsaDefinition extends SsaImpl:: Definition {
392
+ CapturedSsaDefinition ( ) { this .getSourceVariable ( ) instanceof CapturedVariable }
393
393
}
394
394
395
395
// From an assignment or implicit initialization of a captured variable to its flow-insensitive node
396
396
private predicate flowInsensitiveWriteStep (
397
397
SsaDefinitionNodeImpl node1 , CapturedVariableNode node2 , CapturedVariable v
398
398
) {
399
- exists ( CapturedSsaDefinitionExt def |
399
+ exists ( CapturedSsaDefinition def |
400
400
def = node1 .getDefinition ( ) and
401
401
def .getSourceVariable ( ) = v and
402
402
(
@@ -412,7 +412,7 @@ module VariableCapture {
412
412
private predicate flowInsensitiveReadStep (
413
413
CapturedVariableNode node1 , SsaDefinitionNodeImpl node2 , CapturedVariable v
414
414
) {
415
- exists ( CapturedSsaDefinitionExt def |
415
+ exists ( CapturedSsaDefinition def |
416
416
node1 .getVariable ( ) = v and
417
417
def = node2 .getDefinition ( ) and
418
418
def .getSourceVariable ( ) = v and
@@ -772,7 +772,7 @@ class SsaNode extends NodeImpl, TSsaNode {
772
772
class SsaDefinitionNodeImpl extends SsaNode {
773
773
override SsaImpl:: DataFlowIntegration:: SsaDefinitionNode node ;
774
774
775
- SsaImpl :: Definition getDefinition ( ) { result = node .getDefinition ( ) }
775
+ Ssa :: Definition getDefinition ( ) { result = node .getDefinition ( ) }
776
776
777
777
override predicate isHidden ( ) {
778
778
exists ( SsaImpl:: Definition def | def = this .getDefinition ( ) |
@@ -2478,7 +2478,7 @@ module TypeInference {
2478
2478
n = def or
2479
2479
n .asExpr ( ) =
2480
2480
any ( CfgNodes:: ExprCfgNode read |
2481
- read = def .getDefinition ( ) .( SsaImpl :: DefinitionExt ) . getARead ( ) and
2481
+ read = def .getDefinition ( ) .getARead ( ) and
2482
2482
not isTypeCheckedRead ( read , _) // could in principle be checked against a new type
2483
2483
)
2484
2484
)
0 commit comments