CompilerSysY/testcases/functional_test/46_and_prior_or.sy
2023-05-08 21:15:52 +08:00

18 lines
262 B
Plaintext

// And is prior to or
int main () {
int a;
int b;
int c;
int d;
a = 3;
b = 8;
c = -4;
d = 15;
int t;
if (d % (b - a) != 0 && a > 0 || d % 3 == 0 && c > 0) {
t = d + c - -b;
putint(t);
}
return 0;
}