Merge branch 'main' into rdmarsh2/cpp/product-flow

This commit is contained in:
Mathias Vorreiter Pedersen
2022-09-07 16:00:43 +01:00
35 changed files with 6759 additions and 119 deletions

View File

@@ -162,7 +162,7 @@ module SemanticExprConfig {
predicate phi(SsaVariable v) { v.asInstruction() instanceof IR::PhiInstruction }
SsaVariable getAPhiInput(SsaVariable v) {
exists(IR::PhiInstruction instr |
exists(IR::PhiInstruction instr | v.asInstruction() = instr |
result.asInstruction() = instr.getAnInput()
or
result.asOperand() = instr.getAnInputOperand()