// File: /workspace/github_cpp_makefile_star2_O3/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 0x66b5
ucomisd 0x2a66(%rip), %xmm2     # 0x9010
jae 0x66b5
movq %rdi, %r14
leaq 0x48(%rdi), %r15
movsd 0x48(%rdi), %xmm0
movapd 0x2afc(%rip), %xmm1     # 0x90c0
movapd %xmm2, (%rsp)
xorpd %xmm2, %xmm1
ucomisd %xmm0, %xmm1
jae 0x66d6
callq 0x2130
movapd %xmm0, %xmm2
xorpd %xmm0, %xmm0
movapd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x65f1
jnp 0x6663
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 0x6638
leaq 0x50(%r14), %rsi
leaq 0x58(%r14), %rdx
movq %rbx, %rdi
callq 0x61ee
movsd %xmm0, 0x70(%r14)
movsd 0x60(%r14), %xmm0
ucomisd %xmm0, %xmm0
jp 0x6691
movsd 0x48(%r14), %xmm0
addsd 0x40(%r14), %xmm0
leaq 0x60(%r14), %rsi
leaq 0x18(%rsp), %rdi
movsd %xmm0, (%rdi)
leaq 0x68(%r14), %rdx
jmp 0x6680
movsd %xmm2, 0x70(%r14)
movsd 0x60(%r14), %xmm0
ucomisd %xmm0, %xmm0
jp 0x6691
leaq 0x60(%r14), %rsi
leaq 0x68(%r14), %rdx
movq %r15, %rdi
callq 0x6372
addsd 0x70(%r14), %xmm0
movsd %xmm0, 0x70(%r14)
cmpl $0x0, (%r14)
je 0x66ab
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x5d34
movsd %xmm0, 0x70(%r14)
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x6934(%rip), %rdi      # 0xcff0
leaq 0x30cb(%rip), %rsi      # 0x978e
callq 0x21a0
movsd (%rbx), %xmm0
movq %rax, %rdi
callq 0x22a0
jmp 0x6720
movq 0x6913(%rip), %rdi      # 0xcff0
leaq 0x30b9(%rip), %rsi      # 0x979d
callq 0x21a0
movsd (%r15), %xmm0
movq %rax, %rdi
callq 0x22a0
leaq 0x30af(%rip), %rsi      # 0x97ac
movq %rax, %rdi
callq 0x21a0
movsd (%rbx), %xmm0
movq %rax, %rdi
callq 0x22a0
leaq 0x2d39(%rip), %rsi      # 0x9451
movq %rax, %rdi
callq 0x21a0
movq %rax, %rdi
callq 0x2090
callq 0x20d0
nop