@@ -73,7 +73,7 @@ abstract class Def extends DefOrUse {
73
73
Instruction getInstruction ( ) { result = store }
74
74
75
75
/** Gets the variable that is defined by this definition. */
76
- abstract SourceVariable getVariable ( ) ;
76
+ abstract SourceVariable getSourceVariable ( ) ;
77
77
78
78
/** Holds if this definition is guaranteed to happen. */
79
79
abstract predicate isCertain ( ) ;
@@ -94,10 +94,10 @@ abstract class Def extends DefOrUse {
94
94
private class ExplicitDef extends Def , TExplicitDef {
95
95
ExplicitDef ( ) { this = TExplicitDef ( store ) }
96
96
97
- override SourceVariable getVariable ( ) {
97
+ override SourceVariable getSourceVariable ( ) {
98
98
exists ( VariableInstruction var |
99
99
explicitWrite ( _, this .getInstruction ( ) , var ) and
100
- result .getVariable ( ) = var .getIRVariable ( ) and
100
+ result .getIRVariable ( ) = var .getIRVariable ( ) and
101
101
not result .isIndirection ( )
102
102
)
103
103
}
@@ -108,11 +108,11 @@ private class ExplicitDef extends Def, TExplicitDef {
108
108
private class ParameterDef extends Def , TInitializeParam {
109
109
ParameterDef ( ) { this = TInitializeParam ( store ) }
110
110
111
- override SourceVariable getVariable ( ) {
112
- result .getVariable ( ) = store .( InitializeParameterInstruction ) .getIRVariable ( ) and
111
+ override SourceVariable getSourceVariable ( ) {
112
+ result .getIRVariable ( ) = store .( InitializeParameterInstruction ) .getIRVariable ( ) and
113
113
not result .isIndirection ( )
114
114
or
115
- result .getVariable ( ) = store .( InitializeIndirectionInstruction ) .getIRVariable ( ) and
115
+ result .getIRVariable ( ) = store .( InitializeIndirectionInstruction ) .getIRVariable ( ) and
116
116
result .isIndirection ( )
117
117
}
118
118
@@ -130,7 +130,7 @@ abstract class Use extends DefOrUse {
130
130
override string toString ( ) { result = "Use" }
131
131
132
132
/** Gets the variable that is used by this use. */
133
- abstract SourceVariable getVariable ( ) ;
133
+ abstract SourceVariable getSourceVariable ( ) ;
134
134
135
135
override IRBlock getBlock ( ) { result = use .getUse ( ) .getBlock ( ) }
136
136
@@ -144,10 +144,10 @@ abstract class Use extends DefOrUse {
144
144
private class ExplicitUse extends Use , TExplicitUse {
145
145
ExplicitUse ( ) { this = TExplicitUse ( use ) }
146
146
147
- override SourceVariable getVariable ( ) {
147
+ override SourceVariable getSourceVariable ( ) {
148
148
exists ( VariableInstruction var |
149
149
use .getDef ( ) = var and
150
- result .getVariable ( ) = var .getIRVariable ( ) and
150
+ result .getIRVariable ( ) = var .getIRVariable ( ) and
151
151
(
152
152
if use .getUse ( ) instanceof ReadSideEffectInstruction
153
153
then result .isIndirection ( )
@@ -160,10 +160,10 @@ private class ExplicitUse extends Use, TExplicitUse {
160
160
private class ReturnParameterIndirection extends Use , TReturnParamIndirection {
161
161
ReturnParameterIndirection ( ) { this = TReturnParamIndirection ( use ) }
162
162
163
- override SourceVariable getVariable ( ) {
163
+ override SourceVariable getSourceVariable ( ) {
164
164
exists ( ReturnIndirectionInstruction ret |
165
165
returnParameterIndirection ( use , ret ) and
166
- result .getVariable ( ) = ret .getIRVariable ( ) and
166
+ result .getIRVariable ( ) = ret .getIRVariable ( ) and
167
167
result .isIndirection ( )
168
168
)
169
169
}
0 commit comments