| 1 |
import org.checkerframework.common.value.qual.*; |
| 2 |
|
| 3 |
class TransferMod { |
| 4 |
|
| 5 |
void test() { |
| 6 |
int aa = -100; |
| 7 |
int a = -1; |
| 8 |
int b = 0; |
| 9 |
int c = 1; |
| 10 |
int d = 2; |
| 11 |
|
| 12 |
@IntRange(from = 1) int e = 5 % 3; |
| 13 |
@IntRange(from = 0) int f = -100 % 1; |
| 14 |
|
| 15 |
@IntRange(from = 0) int g = aa % -1; |
| 16 |
@IntRange(from = 0) int h = aa % 1; |
| 17 |
@IntRange(from = 0) int i = d % -1; |
| 18 |
@IntRange(from = 0) int j = d % 1; |
| 19 |
|
| 20 |
@IntRange(from = 0) int k = d % c; |
| 21 |
@IntRange(from = 0) int l = b % c; |
| 22 |
@IntRange(from = 0) int m = c % d; |
| 23 |
|
| 24 |
@IntRange(from = 0) int n = c % a; |
| 25 |
@IntRange(from = 0) int o = b % a; |
| 26 |
|
| 27 |
@IntRange(from = -1) int p = a % a; |
| 28 |
@IntRange(from = -1) int q = a % d; |
| 29 |
@IntRange(from = -1) int r = a % c; |
| 30 |
} |
| 31 |
} |