@@ -9,12 +9,11 @@ module Ssa {
9
9
private import codeql.Locations
10
10
private import codeql.ruby.CFG
11
11
private import codeql.ruby.ast.Variable
12
- private import internal.SsaImplCommon as SsaImplCommon
13
12
private import internal.SsaImpl as SsaImpl
14
13
private import CfgNodes:: ExprNodes
15
14
16
15
/** A static single assignment (SSA) definition. */
17
- class Definition extends SsaImplCommon :: Definition {
16
+ class Definition extends SsaImpl :: Definition {
18
17
/**
19
18
* Gets the control flow node of this SSA definition, if any. Phi nodes are
20
19
* examples of SSA definitions without a control flow node, as they are
@@ -190,7 +189,7 @@ module Ssa {
190
189
* puts x
191
190
* ```
192
191
*/
193
- class WriteDefinition extends Definition , SsaImplCommon :: WriteDefinition {
192
+ class WriteDefinition extends Definition , SsaImpl :: WriteDefinition {
194
193
private VariableWriteAccess write ;
195
194
196
195
WriteDefinition ( ) {
@@ -223,7 +222,7 @@ module Ssa {
223
222
/**
224
223
* An SSA definition that corresponds to the value of `self` upon entry to a method, class or module.
225
224
*/
226
- class SelfDefinition extends Definition , SsaImplCommon :: WriteDefinition {
225
+ class SelfDefinition extends Definition , SsaImpl :: WriteDefinition {
227
226
private SelfVariable v ;
228
227
229
228
SelfDefinition ( ) {
@@ -254,7 +253,7 @@ module Ssa {
254
253
* since the assignment to `x` is conditional, an unitialized definition for
255
254
* `x` is inserted at the start of `m`.
256
255
*/
257
- class UninitializedDefinition extends Definition , SsaImplCommon :: WriteDefinition {
256
+ class UninitializedDefinition extends Definition , SsaImpl :: WriteDefinition {
258
257
UninitializedDefinition ( ) {
259
258
exists ( BasicBlock bb , int i , Variable v |
260
259
this .definesAt ( v , bb , i ) and
@@ -283,7 +282,7 @@ module Ssa {
283
282
*
284
283
* an entry definition for `y` is inserted at the start of the `do` block.
285
284
*/
286
- class CapturedEntryDefinition extends Definition , SsaImplCommon :: WriteDefinition {
285
+ class CapturedEntryDefinition extends Definition , SsaImpl :: WriteDefinition {
287
286
CapturedEntryDefinition ( ) {
288
287
exists ( BasicBlock bb , int i , Variable v |
289
288
this .definesAt ( v , bb , i ) and
@@ -312,7 +311,7 @@ module Ssa {
312
311
*
313
312
* a definition for `y` is inserted at the call to `times`.
314
313
*/
315
- class CapturedCallDefinition extends Definition , SsaImplCommon :: UncertainWriteDefinition {
314
+ class CapturedCallDefinition extends Definition , SsaImpl :: UncertainWriteDefinition {
316
315
CapturedCallDefinition ( ) {
317
316
exists ( Variable v , BasicBlock bb , int i |
318
317
this .definesAt ( v , bb , i ) and
@@ -343,7 +342,7 @@ module Ssa {
343
342
*
344
343
* a phi node for `x` is inserted just before the call `puts x`.
345
344
*/
346
- class PhiNode extends Definition , SsaImplCommon :: PhiNode {
345
+ class PhiNode extends Definition , SsaImpl :: PhiNode {
347
346
/**
348
347
* Gets an input of this phi node.
349
348
*
0 commit comments