MCPcopy Create free account
hub / github.com/argotorg/solidity / firstUnconditionalControlFlowChange

Method firstUnconditionalControlFlowChange

libyul/optimiser/Semantics.cpp:191–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191std::pair<TerminationFinder::ControlFlow, size_t> TerminationFinder::firstUnconditionalControlFlowChange(
192 std::vector<Statement> const& _statements
193)
194{
195 for (size_t i = 0; i < _statements.size(); ++i)
196 {
197 ControlFlow controlFlow = controlFlowKind(_statements[i]);
198 if (controlFlow != ControlFlow::FlowOut)
199 return {controlFlow, i};
200 }
201 return {ControlFlow::FlowOut, std::numeric_limits<size_t>::max()};
202}
203
204TerminationFinder::ControlFlow TerminationFinder::controlFlowKind(Statement const& _statement)
205{

Callers 1

operator()Method · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected