// File: /workspace/github_cpp_makefile_star2_O2/j-faria[P]kima/src/RVConditionalPrior.cpp
// Function: RVConditionalPrior::RVConditionalPrior()
RVConditionalPrior::RVConditionalPrior()
{
    if (hyperpriors){
        if (!log_muP_prior)
            /** 
             * By default, Cauchy prior centered on log(365 days), scale=1
             * for log(muP), with muP in days
             * truncated to (~-15.1, ~26.9)
            */
            log_muP_prior = make_shared<TruncatedCauchy>(log(365), 1., log(365)-21, log(365)+21);
        // TruncatedCauchy *log_muP_prior = new TruncatedCauchy(log(365), 1., log(365)-21, log(365)+21);

        /**
         * By default, uniform prior for wP
        */
        if (!wP_prior)
            wP_prior = make_shared<Uniform>(0.1, 3);
        // Uniform *wP_prior = new Uniform(0.1, 3.);
    

        /**
         * By default, Cauchy prior centered on log(1), scale=1
         * for log(muK), with muK in m/s
         * truncated to (-21, 21)
         * NOTE: we actually sample on muK itself, just the prior is for log(muK)
        */
        if (!log_muK_prior)
            log_muK_prior = make_shared<TruncatedCauchy>(0., 1., 0.-21, 0.+21);
        // TruncatedCauchy *log_muK_prior = new TruncatedCauchy(0., 1., 0.-21, 0.+21);

        Pprior = make_shared<Laplace>();
        Kprior = make_shared<Exponential>();
    }
    else {
        if (!Pprior)
            Pprior = make_shared<LogUniform>(1., 1e5);
        if (!Kprior)
            Kprior = make_shared<ModifiedLogUniform>(1., 1e3);
    }


    if (!eprior)
        eprior = make_shared<Uniform>(0, 1);
    if (!phiprior)
        phiprior = make_shared<Uniform>(0, 2*M_PI);
    if (!wprior)
        wprior = make_shared<Uniform>(0, 2*M_PI);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
callq 0x3aeb4
leaq 0x5b6ec(%rip), %rax     # 0x634e0
movq %rax, (%rbx)
leaq 0x20(%rbx), %r15
leaq 0x30(%rbx), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x40(%rbx)
movups %xmm0, 0x50(%rbx)
movups %xmm0, 0x60(%rbx)
movups %xmm0, 0x70(%rbx)
movups %xmm0, 0x80(%rbx)
movups %xmm0, 0x90(%rbx)
leaq 0x3f1df(%rip), %rax     # 0x4700e
cmpb $0x1, (%rax)
jne 0x7f78
movabsq $0x4017997eb11d9333, %rax # imm = 0x4017997EB11D9333
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
movabsq $0x3ff0000000000000, %r13 # imm = 0x3FF0000000000000
leaq 0x10(%rsp), %rdx
movq %r13, (%rdx)
movabsq $-0x3fd1ccbf588ec99a, %rax # imm = 0xC02E3340A7713666
leaq 0x28(%rsp), %rcx
movq %rax, (%rcx)
movabsq $0x403ae65fac4764cd, %rax # imm = 0x403AE65FAC4764CD
leaq 0x20(%rsp), %r8
movq %rax, (%r8)
movq %rsp, %rdi
callq 0x858f
leaq 0x70(%rbx), %rdi
leaq 0x80(%rbx), %r12
movq %rsp, %rsi
callq 0x8966
leaq 0x8(%rsp), %rdi
callq 0x8710
cmpq $0x0, (%r12)
jne 0x7ee6
movabsq $0x3fb999999999999a, %rax # imm = 0x3FB999999999999A
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdx
movl $0x3, (%rdx)
movq %rsp, %rdi
callq 0x85b6
movq %rsp, %rsi
movq %r12, %rdi
callq 0x8b20
leaq 0x8(%rsp), %rdi
callq 0x8710
leaq 0x90(%rbx), %r12
cmpq $0x0, (%r12)
jne 0x7f46
leaq 0x18(%rsp), %rsi
andq $0x0, (%rsi)
leaq 0x10(%rsp), %rdx
movq %r13, (%rdx)
movabsq $-0x3fcb000000000000, %rax # imm = 0xC035000000000000
leaq 0x28(%rsp), %rcx
movq %rax, (%rcx)
movabsq $0x4035000000000000, %rax # imm = 0x4035000000000000
leaq 0x20(%rsp), %r8
movq %rax, (%r8)
movq %rsp, %rdi
callq 0x858f
movq %rsp, %rsi
movq %r12, %rdi
callq 0x8966
leaq 0x8(%rsp), %rdi
callq 0x8710
movq %rsp, %rdi
callq 0x85d7
movq %rsp, %rsi
movq %r15, %rdi
callq 0x8cc4
leaq 0x8(%rsp), %rdi
callq 0x8710
movq %rsp, %rdi
callq 0x85f2
movq %rsp, %rsi
movq %r14, %rdi
callq 0x8e4a
jmp 0x7fec
movabsq $0x3ff0000000000000, %r12 # imm = 0x3FF0000000000000
leaq 0x18(%rsp), %rsi
movq %r12, (%rsi)
movabsq $0x40f86a0000000000, %rax # imm = 0x40F86A0000000000
leaq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rsp, %rdi
callq 0x860d
movq %rsp, %rsi
movq %r15, %rdi
callq 0x9004
leaq 0x8(%rsp), %rdi
callq 0x8710
cmpq $0x0, (%r14)
jne 0x7ff6
leaq 0x18(%rsp), %rsi
movq %r12, (%rsi)
movabsq $0x408f400000000000, %rax # imm = 0x408F400000000000
leaq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rsp, %rdi
callq 0x862e
movq %rsp, %rsi
movq %r14, %rdi
callq 0x91be
leaq 0x8(%rsp), %rdi
callq 0x8710
leaq 0x40(%rbx), %r14
cmpq $0x0, (%r14)
jne 0x8030
leaq 0x18(%rsp), %rsi
andl $0x0, (%rsi)
leaq 0x10(%rsp), %rdx
movl $0x1, (%rdx)
movq %rsp, %rdi
callq 0x864f
movq %rsp, %rsi
movq %r14, %rdi
callq 0x8b20
leaq 0x8(%rsp), %rdi
callq 0x8710
leaq 0x50(%rbx), %r14
cmpq $0x0, (%r14)
movabsq $0x401921fb54442d18, %r15 # imm = 0x401921FB54442D18
jne 0x8071
leaq 0x10(%rsp), %rsi
andl $0x0, (%rsi)
leaq 0x18(%rsp), %rdx
movq %r15, (%rdx)
movq %rsp, %rdi
callq 0x8670
movq %rsp, %rsi
movq %r14, %rdi
callq 0x8b20
leaq 0x8(%rsp), %rdi
callq 0x8710
leaq 0x60(%rbx), %r14
cmpq $0x0, (%r14)
jne 0x80a8
leaq 0x10(%rsp), %rsi
andl $0x0, (%rsi)
leaq 0x18(%rsp), %rdx
movq %r15, (%rdx)
movq %rsp, %rdi
callq 0x8670
movq %rsp, %rsi
movq %r14, %rdi
callq 0x8b20
leaq 0x8(%rsp), %rdi
callq 0x8710
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x80c8
jmp 0x80c8
jmp 0x80c8
jmp 0x80c8
jmp 0x80c8
jmp 0x80c8
jmp 0x80c8
jmp 0x80c8
jmp 0x80c8
movq %rax, %r14
leaq 0x98(%rbx), %rdi
callq 0x8710
leaq 0x88(%rbx), %rdi
callq 0x8710
leaq 0x78(%rbx), %rdi
callq 0x8710
leaq 0x68(%rbx), %rdi
callq 0x8710
leaq 0x58(%rbx), %rdi
callq 0x8710
leaq 0x48(%rbx), %rdi
callq 0x8710
leaq 0x38(%rbx), %rdi
callq 0x8710
leaq 0x28(%rbx), %rdi
callq 0x8710
movq %rbx, %rdi
callq 0x3aec0
movq %r14, %rdi
callq 0x66e0
nop