// File: /workspace/github_cpp_makefile_star2_O2/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 0x5b3f
ucomisd 0x35dc(%rip), %xmm2     # 0x9010
jae 0x5b3f
movq %rdi, %r14
leaq 0x48(%rdi), %r15
movsd 0x48(%rdi), %xmm0
movapd 0x3672(%rip), %xmm1     # 0x90c0
movapd %xmm2, (%rsp)
xorpd %xmm2, %xmm1
ucomisd %xmm0, %xmm1
jae 0x5b60
callq 0x2110
movapd %xmm0, %xmm2
xorpd %xmm0, %xmm0
movapd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x5a7b
jnp 0x5aed
movsd 0x48(%r14), %xmm0
divsd 0x40(%r14), %xmm0
movsd %xmm2, (%rsp)
callq 0x2110
movsd (%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x70(%r14)
movsd 0x50(%r14), %xmm0
ucomisd %xmm0, %xmm0
jp 0x5ac2
leaq 0x50(%r14), %rsi
leaq 0x58(%r14), %rdx
movq %rbx, %rdi
callq 0x55ae
movsd %xmm0, 0x70(%r14)
movsd 0x60(%r14), %xmm0
ucomisd %xmm0, %xmm0
jp 0x5b1b
movsd 0x48(%r14), %xmm0
addsd 0x40(%r14), %xmm0
leaq 0x60(%r14), %rsi
leaq 0x18(%rsp), %rdi
movsd %xmm0, (%rdi)
leaq 0x68(%r14), %rdx
jmp 0x5b0a
movsd %xmm2, 0x70(%r14)
movsd 0x60(%r14), %xmm0
ucomisd %xmm0, %xmm0
jp 0x5b1b
leaq 0x60(%r14), %rsi
leaq 0x68(%r14), %rdx
movq %r15, %rdi
callq 0x56f0
addsd 0x70(%r14), %xmm0
movsd %xmm0, 0x70(%r14)
cmpl $0x0, (%r14)
je 0x5b35
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x50f4
movsd %xmm0, 0x70(%r14)
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x84aa(%rip), %rdi      # 0xdff0
leaq 0x3c12(%rip), %rsi      # 0x975f
callq 0x2170
movsd (%rbx), %xmm0
movq %rax, %rdi
callq 0x2270
jmp 0x5baa
movq 0x8489(%rip), %rdi      # 0xdff0
leaq 0x3c00(%rip), %rsi      # 0x976e
callq 0x2170
movsd (%r15), %xmm0
movq %rax, %rdi
callq 0x2270
leaq 0x3bf6(%rip), %rsi      # 0x977d
movq %rax, %rdi
callq 0x2170
movsd (%rbx), %xmm0
movq %rax, %rdi
callq 0x2270
leaq 0x3880(%rip), %rsi      # 0x9422
movq %rax, %rdi
callq 0x2170
movq %rax, %rdi
callq 0x2080
callq 0x20c0
nop