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/ast-parsing/break-all.sol

21 lines
420 B

contract C {
function f() public {
uint c;
for (uint i = 0; i < 10; i++) {
if (i % 2 == 0) {
break;
}
c++;
}
for (uint j = 0; j < 10; j++) {
for (uint k = 0; k < 10; k++) {
if (j % 2 == 0 && k % 3 == 0) {
break;
}
c++;
}
}
}
}