C++: Drive-by: Add forgotten disjuncts involving '__builtin_expect'.

This commit is contained in:
Mathias Vorreiter Pedersen
2025-08-13 08:01:56 +02:00
parent e6cd27a992
commit bf4a84ba8f

View File

@@ -1292,6 +1292,8 @@ private module Cached {
compares_lt(test.(LogicalNotValueNumber).getUnary(), left, right, k, isLt, dual)
)
or
compares_lt(test.(BuiltinExpectCallValueNumber).getCondition(), left, right, k, isLt, value)
or
// See argument for why this is correct in compares_eq
exists(Operand l, BooleanValue bv |
unary_compares_eq(test, l, 0, bv.getValue().booleanNot(), value) and
@@ -1318,6 +1320,8 @@ private module Cached {
k = k1 + k2
)
or
compares_lt(test.(BuiltinExpectCallValueNumber).getCondition(), op, k, isLt, value)
or
// See argument for why this is correct in compares_eq
exists(Operand l, BooleanValue bv |
unary_compares_eq(test, l, 0, bv.getValue().booleanNot(), value) and