// File: /workspace/github_cpp_makefile_star2_O1/myudelson[P]hmm-scalable/HMMProblemSt.cpp
// Function: HMMProblemSt::~HMMProblemSt()
HMMProblemSt::~HMMProblemSt() {
//    printf("HMMProblemSt::~HMMProblemSt\n");
    NDAT Nst = this->task->Nst;
//    printf("before null_obs_ratios\n");
    if(this->null_obs_ratios != NULL) free(this->null_obs_ratios);
//    printf("before param_skill\n");
    if(this->param_skill != NULL) free(this->param_skill);
//    printf("before gradient_skill\n");
    if(this->gradient_skill != NULL) free(this->gradient_skill);
//    printf("before lb_param_skill\n");
    if(this->lb_param_skill != NULL) free(this->lb_param_skill);
//    printf("before ub_param_skill\n");
    if(this->ub_param_skill != NULL) free(this->ub_param_skill);
//    printf("before alpha %d\n",this->alpha != NULL);
    if(this->alpha != NULL) free2D(this->alpha, Nst);
//    printf("before po_param_gk\n");
    if(this->po_param_gk != NULL) free2D(this->po_param_gk, this->task->nG);
//    printf("before loglik_k\n");
    if(this->loglik_k != NULL) free(this->loglik_k);
//    printf("before ndat_k\n");
    if(this->ndat_k != NULL) free(this->ndat_k);
//    printf("before beta\n");
    if(this->beta != NULL) free2D(this->beta, Nst);
//    printf("before scale\n");
    if(this->scale != NULL) free(this->scale);
//    printf("before gamma\n");
    if(this->gamma != NULL) free2D(this->gamma, Nst);
//    printf("before xi\n");
    if(this->xi != NULL) free3D(this->xi, Nst, this->task->nS);
//    printf("before backward_ix\n");
    if(this->backward_ix != NULL) free(this->backward_ix);
//    printf("before forward_ix\n");
    if(this->forward_ix != NULL) free(this->forward_ix);
    
    free3D(this->group_skill_map, this->task->nG, this->task->nK); //UNBOOST
    
//    printf("before active_set_block\n");
    free(this->active_set_block);
//    printf("before unblocked_simplex\n");
    free(this->unblocked_simplex);
    
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xb93b(%rip), %rax      # 0x16be8
movq %rax, (%rdi)
movq 0x10(%rdi), %rdi
movq 0x68(%rbx), %rax
movl 0x8fc(%rax), %ebp
testq %rdi, %rdi
je 0xb2c8
callq 0x2240
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0xb2d6
callq 0x2240
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0xb2e4
callq 0x2240
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0xb2f2
callq 0x2240
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0xb300
callq 0x2240
movq 0x70(%rbx), %rdi
testq %rdi, %rdi
je 0xb310
movl %ebp, %esi
callq 0x7747
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0xb328
movq 0x68(%rbx), %rax
movl 0x904(%rax), %esi
callq 0x7747
movq 0x80(%rbx), %rdi
testq %rdi, %rdi
je 0xb339
callq 0x2240
movq 0x88(%rbx), %rdi
testq %rdi, %rdi
je 0xb34a
callq 0x2240
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
je 0xb35d
movl %ebp, %esi
callq 0x7747
movq 0xa8(%rbx), %rdi
testq %rdi, %rdi
je 0xb36e
callq 0x2240
movq 0x98(%rbx), %rdi
testq %rdi, %rdi
je 0xb381
movl %ebp, %esi
callq 0x7747
movq 0xa0(%rbx), %rdi
testq %rdi, %rdi
je 0xb39f
movq 0x68(%rbx), %rax
movsbl 0x900(%rax), %edx
movl %ebp, %esi
callq 0x10581
movq 0xb0(%rbx), %rdi
testq %rdi, %rdi
je 0xb3b0
callq 0x2240
movq 0xb8(%rbx), %rdi
testq %rdi, %rdi
je 0xb3c1
callq 0x2240
movq 0x68(%rbx), %rax
movq 0xc8(%rbx), %rdi
movl 0x904(%rax), %esi
movl 0x908(%rax), %edx
callq 0x10581
movq 0x58(%rbx), %rdi
callq 0x2240
movq 0x60(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2240
nop