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

Predicate negative

Holds if e can be negative and cannot be positive.

Import path

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