C++: Remove superfluous inference logic.

This commit is contained in:
Mathias Vorreiter Pedersen
2025-09-24 10:51:45 +01:00
parent b3cbdb5c1a
commit 2b47ac83e8

View File

@@ -436,25 +436,6 @@ private module LogicInput_v1 implements GuardsImpl::LogicInputSig {
) {
g1.(ConditionalBranchInstruction).getCondition() = g2 and
v1.asBooleanValue() = v2.asBooleanValue()
or
exists(SwitchInstruction switch, SwitchEdge edge |
g1 = switch.getSuccessor(edge) and
g2 = switch.getExpression()
|
v1.asBooleanValue() = true and
(
v2.asIntValue() = edge.getValue().toInt()
or
v2.asConstantValue().isRange(edge.getMinValue(), edge.getMaxValue())
)
or
v1.asBooleanValue() = false and
(
v2.getDualValue().asIntValue() = edge.getValue().toInt()
or
v2.getDualValue().asConstantValue().isRange(edge.getMinValue(), edge.getMaxValue())
)
)
}
}