Files
codeql/csharp/ql/test/library-tests/csharp11/signAnalysis.ql
2026-04-10 15:47:12 +02:00

10 lines
346 B
Plaintext

import csharp
import semmle.code.csharp.dataflow.internal.rangeanalysis.SignAnalysisCommon as Common
from ControlFlowNodes::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, " ")