C++: Handle conversions in 'isInConditionalEvaluation'.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-04-04 14:44:16 +01:00
parent 56a132fa8e
commit 796fcfec6c

View File

@@ -259,9 +259,9 @@ private predicate usedAsCondition(Expr expr) {
private predicate isInConditionalEvaluation(Expr e) {
exists(ConditionalExpr cond |
e = cond.getThen() and not cond.isTwoOperand()
e = cond.getThen().getFullyConverted() and not cond.isTwoOperand()
or
e = cond.getElse()
e = cond.getElse().getFullyConverted()
)
or
isInConditionalEvaluation(getRealParent(e))