// File: /workspace/github_cpp_makefile_star2_O1/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 0x3b2e4
movq 0x1c0(%rbx), %rdi
movq (%rdi), %rax
leaq -0xf8(%rbp), %rsi
callq *0x18(%rax)
movb -0xf0(%rbp), %bl
cmpb $0x1, %bl
jne 0x392bd
cmpq $0x0, 0x10(%r14)
je 0x392bd
movq -0xe8(%rbp), %rdx
movl $0x1, %r12d
movq %rdx, %rcx
subq %r15, %rcx
jbe 0x3912a
movl $0x1, %esi
movq %r15, %rax
movq %r15, %rdi
xorl %r8d, %r8d
cmpb $0xa, (%rdi)
leaq 0x1(%rdi), %r9
cmoveq %r9, %rax
sete %r8b
addl %r8d, %esi
movq %r9, %rdi
cmpq %rdx, %r9
jne 0x39105
addq %rcx, %r15
movl %esi, %r13d
jmp 0x39133
movl $0x1, %r13d
movq %r15, %rax
subq %rax, %r15
je 0x391bd
movl $0x1, %r12d
xorl %ecx, %ecx
movzbl (%rax,%rcx), %edx
movl $0x1, %edi
testb %dl, %dl
jns 0x391ae
movq %r15, %rsi
subq %rcx, %rsi
cmpq $0x1, %rsi
je 0x39172
movl %edx, %r8d
andl $-0x20, %r8d
movl $0x2, %edi
cmpl $0xc0, %r8d
je 0x391ae
cmpq $0x3, %rsi
jb 0x3918d
movl %edx, %r8d
andl $-0x10, %r8d
movl $0x3, %edi
cmpl $0xe0, %r8d
je 0x391ae
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 %r15, %rcx
jb 0x39144
leaq -0xe0(%rbp), %rdx
leaq 0xbce7(%rip), %rsi      # 0x44eb2
leaq -0x98(%rbp), %rdi
callq 0xcdf6
leaq 0xbc7f(%rip), %rsi      # 0x44e5d
leaq -0x98(%rbp), %rdi
callq 0x9480
leaq -0x38(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3920e
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x39214
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 0xb7a0(%rip), %rdx      # 0x449da
leaq -0x78(%rbp), %rdi
movq %rdx, %rsi
callq 0x12846
movq %r13, -0x58(%rbp)
movq %r12, -0x50(%rbp)
cmpq $0x0, 0x10(%r14)
je 0x39313
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 0x39285
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x92b0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x3929e
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x92b0
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x392bd
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x92b0
leaq 0x2549c(%rip), %rax     # 0x5e760
leaq -0xd0(%rbp), %rcx
movq %rax, -0x28(%rcx)
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0x392e7
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x92b0
leaq -0x130(%rbp), %rdi
callq 0x3b3c4
leaq -0xb0(%rbp), %rdi
callq 0x3b35a
movl %ebx, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x90f0
movq %rax, %rbx
jmp 0x3933c
movq %rax, %rbx
jmp 0x39355
jmp 0x39376
movq %rax, %rbx
movq -0x78(%rbp), %rdi
cmpq %r15, %rdi
je 0x3933c
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x92b0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x39355
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x92b0
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x39379
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x92b0
jmp 0x39379
movq %rax, %rbx
leaq 0x253e0(%rip), %rax     # 0x5e760
leaq -0xd0(%rbp), %rcx
movq %rax, -0x28(%rcx)
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0x393a8
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x92b0
jmp 0x393a8
movq %rax, %rbx
leaq -0x130(%rbp), %rdi
callq 0x3b3c4
leaq -0xb0(%rbp), %rdi
callq 0x3b35a
movq %rbx, %rdi
callq 0x9420