SSA/Ruby: Address review comments.

This commit is contained in:
Anders Schack-Mulligen
2025-03-28 13:27:56 +01:00
parent 5a986f5327
commit 0d1ac7789b
2 changed files with 5 additions and 1 deletions

View File

@@ -479,6 +479,10 @@ private module DataFlowIntegrationInput implements Impl::DataFlowIntegrationInpu
Expr getARead(Definition def) { result = Cached::getARead(def) }
predicate ssaDefHasSource(WriteDefinition def) {
any(ParameterExt p).isInitializedBy(def) or def.(Ssa::WriteDefinition).assigns(_)
}
class Guard extends Cfg::CfgNodes::AstCfgNode {
/**
* Holds if the control flow branching from `bb1` is dependent on this guard,

View File

@@ -1690,7 +1690,7 @@ module Make<LocationSig Location, InputSig<Location> Input> {
/** Gets the underlying definition. */
WriteDefinition getDefinition() { result = def }
override string toString() { result = def.toString() }
override string toString() { result = "[source] " + def.toString() }
override Location getLocation() { result = def.getLocation() }
}