Files
codeql/csharp/ql/test/library-tests/dataflow/modulusanalysis/ModulusAnalysis.ql
Tamas Vajk c069c3384e Fix tests
2021-04-08 12:07:36 +02:00

11 lines
350 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 ControlFlow::Nodes::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