Files
codeql/csharp/ql/test/library-tests/csharp11/signAnalysis.ql
2023-01-12 19:06:28 +01:00

10 lines
348 B
Plaintext

import csharp
import semmle.code.csharp.dataflow.internal.rangeanalysis.SignAnalysisCommon as Common
from ControlFlow::Nodes::ExprNode e, Expr expr
where
e.getExpr() = expr and
expr.getFile().getStem() = "SignAnalysis" and
expr instanceof UnsignedRightShiftExpr
select e, strictconcat(string s | s = Common::exprSign(e).toString() | s, " ")