Equality test on boolean
Author: LGTM
import cpp
from EqualityOperation eq, Expr trueExpr
where
trueExpr = eq.getAnOperand() and
trueExpr.getType() instanceof BoolType and
trueExpr.getValue().toInt() = 1
select eq
Description
Finds tests like `==true`, `!=true`