// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %r8, %r15
movq %rcx, %r14
movq %rdx, %rbx
xorps %xmm0, %xmm0
leaq -0xb0(%rbp), %rcx
movaps %xmm0, (%rcx)
movq $0x0, 0x10(%rcx)
leaq -0x100(%rbp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
movq 0x30(%rsi), %rsi
leaq -0xf8(%rbp), %rdi
leaq -0x130(%rbp), %r8
callq 0x39260
movq 0x1c0(%rbx), %rdi
movq (%rdi), %rax
leaq -0xf8(%rbp), %rsi
callq *0x18(%rax)
movb -0xf0(%rbp), %bl
cmpb $0x1, %bl
jne 0x37275
cmpq $0x0, 0x10(%r14)
je 0x37275
movq -0xe8(%rbp), %rax
movl $0x1, %r12d
movl $0x1, %r13d
cmpq %r15, %rax
jbe 0x37172
movq %r15, %rcx
xorl %edx, %edx
cmpb $0xa, (%rcx)
leaq 0x1(%rcx), %rsi
cmoveq %rsi, %r15
sete %dl
addl %edx, %r13d
movq %rsi, %rcx
cmpq %rax, %rsi
jne 0x370cc
subq %r15, %rax
je 0x37172
movl $0x1, %r12d
xorl %ecx, %ecx
movzbl (%r15,%rcx), %edx
movl $0x1, %edi
testb %dl, %dl
jns 0x37163
movq %rax, %rsi
subq %rcx, %rsi
cmpq $0x1, %rsi
je 0x37127
movl %edx, %r8d
andl $-0x20, %r8d
movl $0x2, %edi
cmpl $0xc0, %r8d
je 0x37163
cmpq $0x3, %rsi
jb 0x37142
movl %edx, %r8d
andl $-0x10, %r8d
movl $0x3, %edi
cmpl $0xe0, %r8d
je 0x37163
andl $-0x8, %edx
xorl %r8d, %r8d
cmpl $0xf0, %edx
sete %r8b
shll $0x2, %r8d
cmpq $0x4, %rsi
movl $0x0, %edi
cmovaeq %r8, %rdi
cmpq $0x1, %rdi
adcq %rdi, %rcx
incq %r12
cmpq %rax, %rcx
jb 0x370f8
leaq -0xe0(%rbp), %rdx
leaq 0xbd32(%rip), %rsi      # 0x42eb2
leaq -0x98(%rbp), %rdi
callq 0xbe0e
leaq 0xbcca(%rip), %rsi      # 0x42e5d
leaq -0x98(%rbp), %rdi
callq 0x8480
leaq -0x38(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x371c3
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x371c9
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x68(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0xb7eb(%rip), %rdx      # 0x429da
leaq -0x78(%rbp), %rdi
movq %rdx, %rsi
callq 0x11634
movl %r13d, %eax
movq %rax, -0x58(%rbp)
movq %r12, -0x50(%rbp)
cmpq $0x0, 0x10(%r14)
je 0x372cb
leaq -0x58(%rbp), %rsi
leaq -0x50(%rbp), %rdx
leaq -0x48(%rbp), %rcx
leaq -0x78(%rbp), %r8
movq %r14, %rdi
callq *0x18(%r14)
movq -0x78(%rbp), %rdi
cmpq %r15, %rdi
je 0x3723d
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x82b0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x37256
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x82b0
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37275
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x82b0
leaq 0x2551c(%rip), %rax     # 0x5c798
leaq -0xd0(%rbp), %rcx
movq %rax, -0x28(%rcx)
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0x3729f
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x82b0
leaq -0x130(%rbp), %rdi
callq 0x39344
leaq -0xb0(%rbp), %rdi
callq 0x392d6
movl %ebx, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x80f0
movq %rax, %rbx
jmp 0x372f4
movq %rax, %rbx
jmp 0x3730d
jmp 0x3732e
movq %rax, %rbx
movq -0x78(%rbp), %rdi
cmpq %r15, %rdi
je 0x372f4
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x82b0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x3730d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x82b0
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37331
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x82b0
jmp 0x37331
movq %rax, %rbx
leaq 0x25460(%rip), %rax     # 0x5c798
leaq -0xd0(%rbp), %rcx
movq %rax, -0x28(%rcx)
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0x37360
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x82b0
jmp 0x37360
movq %rax, %rbx
leaq -0x130(%rbp), %rdi
callq 0x39344
leaq -0xb0(%rbp), %rdi
callq 0x392d6
movq %rbx, %rdi
callq 0x8420