CodeQL library for C#
codeql/csharp-all 0.9.2-dev (changelog, source)
Search

Predicate strictlyNegative

Holds if e is strictly negative.

Import path

import semmle.code.csharp.dataflow.SignAnalysis
predicate strictlyNegative(ExprNode e)