Static Analyzer for Solidity
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
slither/tests/e2e/solc_parsing/test_data/for-with-ternary-condition-...

20 lines
392 B

contract C {
function f() public {
bool a = true;
bool b = true;
bool c = true;
int x = 4;
int y = 4;
for (int i = 0; a ? b : c; i++) {
x++;
y--;
}
for (int j = 0; a ? b : c; j++) a = false;
for (int k = 0; 5 == ((k < 3) ? x : y); k--) {
x--;
y++;
}
}
}