protected function buildMainFunction() {
        $functionPrefix = $this->options->getFunctionPrefix();
        $result = 'Void ' . $functionPrefix . '_Dummy() {}' . PHP_EOL
                . 'main() {' . PHP_EOL
                . $this->eventHandlerFactory->getHandler('Load')->getInlineCode()
                . '    yield;' . PHP_EOL
                . $this->eventHandlerFactory->getHandler('FirstLoop')->getInlineCode()
                . $this->buildEventLoop()
                . '}' . PHP_EOL;
        return $result;
    }