Java: Minor fix to modulus analysis to handle constant expressions and not only compile time constants

This commit is contained in:
Tamas Vajk
2020-09-25 17:15:47 +02:00
parent 5688210249
commit 40a7f5aa1f
3 changed files with 5 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ class ModulusAnalysis
int seven = 7;
if (mul % c2 == seven) {
System.out.println(mul); // congruent 3 mod 42
System.out.println(mul); // congruent 3 mod 42, 7 mod 43
}
int j = cond