Merge pull request #5924 from MathiasVP/cleanup-modelFlow

C++: Remove a disjunction from `modelFlow`
This commit is contained in:
Geoffrey White
2021-05-19 10:12:20 +01:00
committed by GitHub

View File

@@ -748,16 +748,10 @@ private predicate modelFlow(Operand opFrom, Instruction iTo) {
)
or
exists(int index, ReadSideEffectInstruction read |
modelIn.isParameterDeref(index) and
modelIn.isParameterDerefOrQualifierObject(index) and
read = getSideEffectFor(call, index) and
opFrom = read.getSideEffectOperand()
)
or
exists(ReadSideEffectInstruction read |
modelIn.isQualifierObject() and
read = getSideEffectFor(call, -1) and
opFrom = read.getSideEffectOperand()
)
)
)
}