@returns true if there are recursive functions, false otherwise.
| 53 | { |
| 54 | /// @returns true if there are recursive functions, false otherwise. |
| 55 | bool recursiveFunctionExists(Dialect const& /*_dialect*/, yul::Object& _object) |
| 56 | { |
| 57 | auto recursiveFunctions = CallGraphGenerator::callGraph(_object.code()->root()).recursiveFunctions(); |
| 58 | for(auto&& [function, variables]: CompilabilityChecker{ |
| 59 | _object, |
| 60 | true |
| 61 | }.unreachableVariables |
| 62 | ) |
| 63 | if(recursiveFunctions.count(function)) |
| 64 | return true; |
| 65 | return false; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | DEFINE_PROTO_FUZZER(Program const& _input) |
no test coverage detected