SSA: Remove empty predicates and dead code.

This commit is contained in:
Anders Schack-Mulligen
2025-03-27 16:03:00 +01:00
parent 308d15401f
commit 5a986f5327
7 changed files with 3 additions and 114 deletions

View File

@@ -473,18 +473,12 @@ class ParameterExt extends TParameterExt {
private module DataFlowIntegrationInput implements Impl::DataFlowIntegrationInputSig {
private import codeql.ruby.controlflow.internal.Guards as Guards
class Parameter = ParameterExt;
class Expr extends Cfg::CfgNodes::ExprCfgNode {
predicate hasCfgNode(SsaInput::BasicBlock bb, int i) { this = bb.getNode(i) }
}
Expr getARead(Definition def) { result = Cached::getARead(def) }
predicate ssaDefAssigns(WriteDefinition def, Expr value) { none() }
predicate ssaDefInitializesParam(WriteDefinition def, Parameter p) { none() }
class Guard extends Cfg::CfgNodes::AstCfgNode {
/**
* Holds if the control flow branching from `bb1` is dependent on this guard,