// File: /workspace/github_cpp_makefile_star2_O3/yhirose[P]fizzbuzzlang/./peglib.h
// Function: peg::ReferenceChecker::visit(peg::Reference&)
inline void ReferenceChecker::visit(Reference &ope) {
  auto it = std::find(params_.begin(), params_.end(), ope.name_);
  if (it != params_.end()) { return; }

  if (!grammar_.count(ope.name_)) {
    error_s[ope.name_] = ope.s_;
    error_message[ope.name_] = "'" + ope.name_ + "' is not defined.";
  } else {
    if (!referenced.count(ope.name_)) { referenced.insert(ope.name_); }
    const auto &rule = grammar_.at(ope.name_);
    if (rule.is_macro) {
      if (!ope.is_macro_ || ope.args_.size() != rule.params.size()) {
        error_s[ope.name_] = ope.s_;
        error_message[ope.name_] = "incorrect number of arguments.";
      }
    } else if (ope.is_macro_) {
      error_s[ope.name_] = ope.s_;
      error_message[ope.name_] = "'" + ope.name_ + "' is not macro.";
    }
    for (auto arg : ope.args_) {
      arg->accept(*this);
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0xb8(%rdi), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
leaq 0x20(%r14), %r15
movq %r15, %rdx
callq 0x3e5e4
movq 0xb8(%rbx), %rcx
cmpq 0x8(%rcx), %rax
je 0xd2f7
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xb0(%rbx), %rdi
movq %r15, %rsi
callq 0x3e722
testq %rax, %rax
je 0xd3c8
leaq 0x78(%rbx), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x3dfe8
testq %rax, %rax
jne 0xd335
leaq -0x48(%rbp), %rdx
movq %r12, (%rdx)
movq %r12, %rdi
movq %r15, %rsi
callq 0x38f26
movq 0xb0(%rbx), %rdi
movq %r15, %rsi
callq 0x3e722
testq %rax, %rax
je 0xd5bc
movb 0x48(%r14), %cl
cmpb $0x1, 0x111(%rax)
jne 0xd424
testb %cl, %cl
je 0xd389
movq 0x58(%r14), %rcx
subq 0x50(%r14), %rcx
sarq $0x4, %rcx
movq 0x120(%rax), %rdx
subq 0x118(%rax), %rdx
sarq $0x5, %rdx
cmpq %rdx, %rcx
je 0xd562
movq 0x40(%r14), %r12
leaq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x3e766
movq %r12, (%rax)
leaq 0x40(%rbx), %rdi
movq %r15, %rsi
callq 0x3eb78
movq 0x8(%rax), %rdx
leaq 0x34ea5(%rip), %rcx     # 0x42258
movl $0x1e, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x83b0
jmp 0xd562
movq 0x40(%r14), %r14
leaq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x3e766
movq %r14, (%rax)
leaq 0x3538b(%rip), %rsi     # 0x4276d
leaq -0x68(%rbp), %r14
movq %r14, %rdi
movq %r15, %rdx
callq 0xbe0e
leaq 0x34e4e(%rip), %rsi     # 0x42246
movq %r14, %rdi
callq 0x8480
leaq -0x38(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xd489
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0xd490
testb %cl, %cl
je 0xd562
movq 0x40(%r14), %r12
leaq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x3e766
movq %r12, (%rax)
leaq 0x35327(%rip), %rsi     # 0x4276d
leaq -0x68(%rbp), %r12
movq %r12, %rdi
movq %r15, %rdx
callq 0xbe0e
leaq 0x34e1b(%rip), %rsi     # 0x42277
movq %r12, %rdi
callq 0x8480
leaq -0x38(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xd4fb
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0xd503
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
addq $0x40, %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3eb78
leaq -0x48(%rbp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x8330
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0xd4d9
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x82b0
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd2e8
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x82b0
jmp 0xd2e8
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x40(%rbx), %rdi
movq %r15, %rsi
callq 0x3eb78
leaq -0x48(%rbp), %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x8330
movq (%r15), %rdi
cmpq %r12, %rdi
je 0xd549
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x82b0
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd562
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x82b0
movq 0x50(%r14), %r15
movq 0x58(%r14), %r12
cmpq %r12, %r15
je 0xd2e8
movq 0x509f6(%rip), %r13     # 0x5df70
movq (%r15), %rdi
movq 0x8(%r15), %r14
testq %r14, %r14
je 0xd598
cmpb $0x0, (%r13)
je 0xd593
incl 0x8(%r14)
jmp 0xd598
lock
incl 0x8(%r14)
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x18(%rax)
testq %r14, %r14
je 0xd5ae
movq %r14, %rdi
callq 0x123fc
addq $0x10, %r15
cmpq %r12, %r15
jne 0xd57a
jmp 0xd2e8
leaq 0x35abf(%rip), %rdi     # 0x43082
callq 0x8370
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
jne 0xd5e4
jmp 0xd5f5
jmp 0xd5f2
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0xd5f5
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x82b0
jmp 0xd5f5
movq %rax, %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd620
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x82b0
jmp 0xd620
movq %rax, %rbx
testq %r14, %r14
je 0xd620
movq %r14, %rdi
callq 0x123fc
movq %rbx, %rdi
callq 0x8420