compiler-design-eth/javali_tests/HW4_nop90/OkBoolBinaryOp.javali

24 lines
330 B
Text
Raw Normal View History

2020-01-15 22:32:25 +01:00
/* testing conditions*/
class Main {
void main() {
boolean a;
int b,c, d, e;
b = 10;
c = 3;
d = 40;
e = 1;
2020-01-15 22:34:57 +01:00
while ( b >= c ) {
2020-01-15 22:32:25 +01:00
write(b);
b = b-1;
}
2020-01-15 22:34:57 +01:00
a = c <= (b+4-5/2);
2020-01-15 22:32:25 +01:00
if (a){
write(13);}
if (100/2>d*e){
while(e<d){
d = d/2;}}
}
}