@@ -85,7 +85,7 @@ class SsaVariable extends TSsaDefinition {
8585 IR:: Instruction getAUse ( ) { result = this .getAUseIn ( _) }
8686
8787 /** Gets a textual representation of this element. */
88- string toString ( ) { result = this .getDefinition ( ) .prettyPrintRef ( ) }
88+ string toString ( ) { result = this .getDefinition ( ) .toString ( ) }
8989
9090 /** Gets the location of this SSA variable. */
9191 Location getLocation ( ) { result = this .getDefinition ( ) .getLocation ( ) }
@@ -203,7 +203,7 @@ class SsaExplicitDefinition extends SsaDefinition, TExplicitDef {
203203 )
204204 }
205205
206- override string prettyPrintDef ( ) { result = "definition of " + this .getSourceVariable ( ) }
206+ override string prettyPrintDef ( ) { result = "SSA def( " + this .getSourceVariable ( ) + ")" }
207207
208208 override Location getLocation ( ) { result = this .getInstruction ( ) .getLocation ( ) }
209209}
@@ -254,7 +254,7 @@ class SsaVariableCapture extends SsaImplicitDefinition, TCapture {
254254
255255 override string getKind ( ) { result = "capture" }
256256
257- override string prettyPrintDef ( ) { result = "capture variable " + this .getSourceVariable ( ) }
257+ override string prettyPrintDef ( ) { result = "SSA def( " + this .getSourceVariable ( ) + ")" }
258258
259259 override Location getLocation ( ) {
260260 exists ( ReachableBasicBlock bb , int i | this .definesAt ( bb , i , _) |
@@ -300,9 +300,7 @@ class SsaPhiNode extends SsaPseudoDefinition, TPhi {
300300
301301 override string getKind ( ) { result = "phi" }
302302
303- override string prettyPrintDef ( ) {
304- result = this .getSourceVariable ( ) + " = phi(" + this .ppInputs ( ) + ")"
305- }
303+ override string prettyPrintDef ( ) { result = "SSA phi(" + this .getSourceVariable ( ) + ")" }
306304
307305 override Location getLocation ( ) { result = this .getBasicBlock ( ) .getLocation ( ) }
308306}
0 commit comments