CodeQL library for C/C++
codeql/cpp-all 6.1.4-dev (changelog, source)
Search

Predicate GuardsInput::equalityTest

Holds if eqtest tests the equality (or inequality) of left and right.

If polarity is true then eqtest is an equality test, and otherwise eqtest is an inequality test.

Import path

import semmle.code.cpp.controlflow.IRGuards
predicate equalityTest(Expr eqtest, Expr left, Expr right, boolean polarity)