// File: /workspace/github_cpp_makefile_star2_O1/redpony[P]cpyp/./cpyp/crp.h
// Function: cpyp::crp<int, std::hash<int>>::check_hyperparameters()
void check_hyperparameters() {
    if (discount_ < 0.0 || discount_ >= 1.0) {
      std::cerr << "Bad discount: " << discount_ << std::endl;
      abort();
    }
    if (strength_ <= -discount_) {
      std::cerr << "Bad strength: " << strength_ << " (discount="
                << discount_ << ")" << std::endl;
      abort();
    }

    if (discount_) {
      llh_ = lgamma(strength_) - lgamma(strength_ / discount_);
      if (has_discount_prior()) {
        llh_ = Md::log_beta_density(discount_,
                                    discount_prior_strength_,
                                    discount_prior_beta_);
      }
      if (has_strength_prior()) {
        llh_ += Md::log_gamma_density(
            strength_ + discount_,
            strength_prior_shape_,
            strength_prior_rate_);
      }
      if (num_tables_ > 0) {
        llh_ = log_likelihood(discount_, strength_);
      }
    } else {
      llh_ = lgamma(strength_);
      if (has_strength_prior()) {
        llh_ += Md::log_gamma_density(
            strength_, strength_prior_shape_, strength_prior_rate_);
      }
      if (num_tables_ > 0) {
        llh_ = log_likelihood(discount_, strength_);
      }
    }
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
leaq 0x40(%rdi), %rbx
movsd 0x40(%rdi), %xmm2
xorpd %xmm0, %xmm0
ucomisd %xmm2, %xmm0
ja 0x6745
ucomisd 0x39d6(%rip), %xmm2     # 0xa010
jae 0x6745
movq %rdi, %r14
leaq 0x48(%rdi), %r15
movsd 0x48(%rdi), %xmm0
movapd 0x3a6c(%rip), %xmm1     # 0xa0c0
movapd %xmm2, (%rsp)
xorpd %xmm2, %xmm1
ucomisd %xmm0, %xmm1
jae 0x6766
callq 0x2130
movapd %xmm0, %xmm2
xorpd %xmm0, %xmm0
movapd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x6681
jnp 0x66f3
movsd 0x48(%r14), %xmm0
divsd 0x40(%r14), %xmm0
movsd %xmm2, (%rsp)
callq 0x2130
movsd (%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x70(%r14)
movsd 0x50(%r14), %xmm0
ucomisd %xmm0, %xmm0
jp 0x66c8
leaq 0x50(%r14), %rsi
leaq 0x58(%r14), %rdx
movq %rbx, %rdi
callq 0x6288
movsd %xmm0, 0x70(%r14)
movsd 0x60(%r14), %xmm0
ucomisd %xmm0, %xmm0
jp 0x6721
movsd 0x48(%r14), %xmm0
addsd 0x40(%r14), %xmm0
leaq 0x60(%r14), %rsi
leaq 0x18(%rsp), %rdi
movsd %xmm0, (%rdi)
leaq 0x68(%r14), %rdx
jmp 0x6710
movsd %xmm2, 0x70(%r14)
movsd 0x60(%r14), %xmm0
ucomisd %xmm0, %xmm0
jp 0x6721
leaq 0x60(%r14), %rsi
leaq 0x68(%r14), %rdx
movq %r15, %rdi
callq 0x640c
addsd 0x70(%r14), %xmm0
movsd %xmm0, 0x70(%r14)
cmpl $0x0, (%r14)
je 0x673b
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x5dda
movsd %xmm0, 0x70(%r14)
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x78a4(%rip), %rdi      # 0xdff0
leaq 0x403b(%rip), %rsi      # 0xa78e
callq 0x21a0
movsd (%rbx), %xmm0
movq %rax, %rdi
callq 0x22a0
jmp 0x67b0
movq 0x7883(%rip), %rdi      # 0xdff0
leaq 0x4029(%rip), %rsi      # 0xa79d
callq 0x21a0
movsd (%r15), %xmm0
movq %rax, %rdi
callq 0x22a0
leaq 0x401f(%rip), %rsi      # 0xa7ac
movq %rax, %rdi
callq 0x21a0
movsd (%rbx), %xmm0
movq %rax, %rdi
callq 0x22a0
leaq 0x3ca9(%rip), %rsi      # 0xa451
movq %rax, %rdi
callq 0x21a0
movq %rax, %rdi
callq 0x2090
callq 0x20d0
nop