Skip to content

Commit f2b5265

Browse files
committed
Rangeanalysis: Filter useless modulo results.
1 parent 7bf271f commit f2b5265

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shared/rangeanalysis/codeql/rangeanalysis/ModulusAnalysis.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ module ModulusAnalysis<
268268
exprModulus(mid, b, v, m1) and
269269
e = modExpr(mid, m2) and
270270
mod = m1.gcd(m2) and
271+
mod != 1 and
271272
val = remainder(v, mod)
272273
)
273274
or

0 commit comments

Comments
 (0)