// File: /workspace/github_cpp_makefile_star2_O1/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 0x40714
movq 0xb8(%rbx), %rcx
cmpq 0x8(%rcx), %rax
je 0xe2ef
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xb0(%rbx), %rdi
movq %r15, %rsi
callq 0x40842
testq %rax, %rax
je 0xe3c0
leaq 0x78(%rbx), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x40124
testq %rax, %rax
jne 0xe32d
leaq -0x48(%rbp), %rdx
movq %r12, (%rdx)
movq %r12, %rdi
movq %r15, %rsi
callq 0x3afa6
movq 0xb0(%rbx), %rdi
movq %r15, %rsi
callq 0x40842
testq %rax, %rax
je 0xe5b4
movb 0x48(%r14), %cl
cmpb $0x1, 0x111(%rax)
jne 0xe41c
testb %cl, %cl
je 0xe381
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 0xe55a
movq 0x40(%r14), %r12
leaq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x40886
movq %r12, (%rax)
leaq 0x40(%rbx), %rdi
movq %r15, %rsi
callq 0x40ca0
movq 0x8(%rax), %rdx
leaq 0x35ead(%rip), %rcx     # 0x44258
movl $0x1e, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x93b0
jmp 0xe55a
movq 0x40(%r14), %r14
leaq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x40886
movq %r14, (%rax)
leaq 0x36393(%rip), %rsi     # 0x4476d
leaq -0x68(%rbp), %r14
movq %r14, %rdi
movq %r15, %rdx
callq 0xcdf6
leaq 0x35e56(%rip), %rsi     # 0x44246
movq %r14, %rdi
callq 0x9480
leaq -0x38(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xe481
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0xe488
testb %cl, %cl
je 0xe55a
movq 0x40(%r14), %r12
leaq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x40886
movq %r12, (%rax)
leaq 0x3632f(%rip), %rsi     # 0x4476d
leaq -0x68(%rbp), %r12
movq %r12, %rdi
movq %r15, %rdx
callq 0xcdf6
leaq 0x35e23(%rip), %rsi     # 0x44277
movq %r12, %rdi
callq 0x9480
leaq -0x38(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xe4f3
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0xe4fb
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 0x40ca0
leaq -0x48(%rbp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x9330
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0xe4d1
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x92b0
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe2e0
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x92b0
jmp 0xe2e0
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 0x40ca0
leaq -0x48(%rbp), %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x9330
movq (%r15), %rdi
cmpq %r12, %rdi
je 0xe541
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x92b0
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe55a
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x92b0
movq 0x50(%r14), %r15
movq 0x58(%r14), %r12
cmpq %r12, %r15
je 0xe2e0
movq 0x519fe(%rip), %r13     # 0x5ff70
movq (%r15), %rdi
movq 0x8(%r15), %r14
testq %r14, %r14
je 0xe590
cmpb $0x0, (%r13)
je 0xe58b
incl 0x8(%r14)
jmp 0xe590
lock
incl 0x8(%r14)
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x18(%rax)
testq %r14, %r14
je 0xe5a6
movq %r14, %rdi
callq 0x13612
addq $0x10, %r15
cmpq %r12, %r15
jne 0xe572
jmp 0xe2e0
leaq 0x36ac7(%rip), %rdi     # 0x45082
callq 0x9370
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
jne 0xe5dc
jmp 0xe5ed
jmp 0xe5ea
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0xe5ed
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x92b0
jmp 0xe5ed
movq %rax, %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe618
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x92b0
jmp 0xe618
movq %rax, %rbx
testq %r14, %r14
je 0xe618
movq %r14, %rdi
callq 0x13612
movq %rbx, %rdi
callq 0x9420