module SimpleCov::StaticCoverageExtractor::ConditionFolding

def static_condition?(node)

for real risk.
versions, so matching it would trade a rare, version-specific gain
folds, and `||` / `&&` constant-propagation diverges across Ruby
forms (`!true`, `true || x`) are deliberately not folded: `!` never
`if 1`), so see through a single parenthesized expression. Compound
Parentheses are transparent to the fold (`if (1)` folds like
def static_condition?(node)
  node = unwrap_parentheses(node)
  STATIC_CONDITION_TYPES.any? { |type| node.is_a?(type) }
end