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

11 lines
348 B
Plaintext

import csharp
import semmle.code.csharp.dataflow.internal.rangeanalysis.RangeUtils
import semmle.code.csharp.dataflow.ModulusAnalysis
import semmle.code.csharp.dataflow.Bound
from ControlFlowNodes::ExprNode e, Bound b, int delta, int mod
where
not e.getExpr().fromLibrary() and
exprModulus(e, b, delta, mod)
select e, b.toString(), delta, mod