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/detectors/test_data/cyclomatic-complexity/0.8.16/HighCyclomaticComplexity.sol

32 lines
782 B

pragma solidity 0.8.16;
contract HighCyclomaticComplexity
{
bool bool1;
bool bool2;
bool bool3;
bool bool4;
bool bool5;
bool bool6;
bool bool7;
bool bool8;
bool bool9;
bool bool10;
bool bool11;
function highCC() internal view
{
if (bool1)
if (bool2)
if (bool3)
if (bool4)
if (bool5)
if (bool6)
if (bool7)
if (bool8)
if (bool9)
if (bool10)
if (bool11)
revert();
}
}