// File: yhirose[P]fizzbuzzlang/./peglib.h
// Function: peg::ParserGenerator::detect_infiniteLoop(peg::ParserGenerator::Data const&, peg::Definition&, std::function<void (unsigned long, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)> const&, char const*) const
bool detect_infiniteLoop(const Data &data, Definition &rule, const Log &log,
                           const char *s) const {
    std::vector<std::pair<const char *, std::string>> refs;
    std::unordered_map<std::string, bool> has_error_cache;
    DetectInfiniteLoop vis(data.start_pos, rule.name, refs, has_error_cache);
    rule.accept(vis);
    if (vis.has_error) {
      if (log) {
        auto line = line_info(s, vis.error_s);
        log(line.first, line.second,
            "infinite loop is detected in '" + vis.error_name + "'.", "");
      }
      return true;
    }
    return false;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
leaq -0x48(%rbp), %rdi
movq %rdi, -0x160(%rbp)
callq 0x7db80
leaq -0x80(%rbp), %rdi
movq %rdi, -0x158(%rbp)
callq 0x7dba0
movq -0x160(%rbp), %rcx
movq -0x158(%rbp), %r8
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rsi
movq -0x20(%rbp), %rdx
leaq -0xc8(%rbp), %rdi
callq 0x7dbc0
jmp 0x781c7
movq -0x20(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x115e0
jmp 0x781d9
testb $0x1, -0xc0(%rbp)
je 0x783cb
movq -0x28(%rbp), %rdi
callq 0x104e0
testb $0x1, %al
jne 0x781f8
jmp 0x783bb
movq -0x30(%rbp), %rdi
movq -0xb8(%rbp), %rsi
callq 0x21040
movq %rdx, -0x170(%rbp)
movq %rax, -0x168(%rbp)
jmp 0x78218
movq -0x170(%rbp), %rax
movq -0x168(%rbp), %rcx
movq %rcx, -0xe8(%rbp)
movq %rax, -0xe0(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x178(%rbp)
leaq -0xb0(%rbp), %rdx
leaq 0x2a225(%rip), %rsi     # 0xa248e
leaq -0x128(%rbp), %rdi
callq 0x10030
jmp 0x78277
leaq 0x2a1bb(%rip), %rdx     # 0xa2439
leaq -0x108(%rbp), %rdi
leaq -0x128(%rbp), %rsi
callq 0xffe0
jmp 0x78293
leaq -0x149(%rbp), %rdi
movq %rdi, -0x190(%rbp)
callq 0xa660
movq -0x190(%rbp), %rdx
leaq 0x29d02(%rip), %rsi     # 0xa1fb6
leaq -0x148(%rbp), %rdi
callq 0x18be0
jmp 0x782c2
movq -0x178(%rbp), %rdx
movq -0x180(%rbp), %rsi
movq -0x188(%rbp), %rdi
leaq -0x108(%rbp), %rcx
leaq -0x148(%rbp), %r8
callq 0x21400
jmp 0x782ec
leaq -0x148(%rbp), %rdi
callq 0xa250
leaq -0x149(%rbp), %rdi
callq 0xa410
leaq -0x108(%rbp), %rdi
callq 0xa250
leaq -0x128(%rbp), %rdi
callq 0xa250
jmp 0x783bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd0(%rbp)
movl %eax, -0xd4(%rbp)
jmp 0x78411
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd0(%rbp)
movl %eax, -0xd4(%rbp)
jmp 0x78405
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd0(%rbp)
movl %eax, -0xd4(%rbp)
jmp 0x783ad
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd0(%rbp)
movl %eax, -0xd4(%rbp)
jmp 0x78395
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd0(%rbp)
movl %eax, -0xd4(%rbp)
leaq -0x148(%rbp), %rdi
callq 0xa250
leaq -0x149(%rbp), %rdi
callq 0xa410
leaq -0x108(%rbp), %rdi
callq 0xa250
leaq -0x128(%rbp), %rdi
callq 0xa250
jmp 0x78405
movb $0x1, -0x1(%rbp)
movl $0x1, -0x150(%rbp)
jmp 0x783d9
movb $0x0, -0x1(%rbp)
movl $0x1, -0x150(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x11b70
leaq -0x80(%rbp), %rdi
callq 0x7dc70
leaq -0x48(%rbp), %rdi
callq 0x7dc90
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
leaq -0xc8(%rbp), %rdi
callq 0x11b70
leaq -0x80(%rbp), %rdi
callq 0x7dc70
leaq -0x48(%rbp), %rdi
callq 0x7dc90
movq -0xd0(%rbp), %rdi
callq 0xa650
nop