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

Predicate strictlyPositiveExpr

Holds if e is strictly positive.

Import path

import semmle.code.csharp.dataflow.SignAnalysis
predicate strictlyPositiveExpr(Expr e)