// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/operator.c
// Function: modify_operator
BOOLEAN modify_operator(bayesiangraphptr mygraph)
{
/*!Last Changed 02.03.2001*/
 int arc_no, from, to, from_order;
 double before, after;
 arc_no = myrand() % mygraph->arccount;
 before = likelihood_of_data(mygraph, cv);
 modify_one_arc(mygraph, arc_no, &from, &to, &from_order);
 free_2d((void **) mygraph->nodes[to].table, mygraph->nodes[to].table_count);
 free_2d((void **) mygraph->nodes[from].table, mygraph->nodes[from].table_count);
 delete_parent_counts(&mygraph->nodes[to], from_order);
 add_parent_counts(mygraph, &mygraph->nodes[from], to);
 make_one_conditional_table(mygraph, to);
 make_one_conditional_table(mygraph, from);
 if (!cycle_now(mygraph, from, to))
  {
   after = likelihood_of_data(mygraph, cv);
   if (after > before)
     return BOOLEAN_TRUE;
  }
 modify_one_arc(mygraph, arc_no, &from, &to, &from_order);
 free_2d((void **) mygraph->nodes[to].table, mygraph->nodes[to].table_count);
 free_2d((void **) mygraph->nodes[from].table, mygraph->nodes[from].table_count);
 delete_parent_counts(&mygraph->nodes[to], from_order);
 add_parent_counts(mygraph, &mygraph->nodes[from], to);
 make_one_conditional_table(mygraph, to);
 make_one_conditional_table(mygraph, from);
 return BOOLEAN_FALSE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movb $0x0, %al
callq 0x54550
movq -0x10(%rbp), %rcx
cltd
idivl 0x20(%rcx)
movl %edx, -0x14(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x8d01f(%rip), %rax     # 0x105498
movq (%rax), %rsi
leaq 0x8d015(%rip), %rax     # 0x105498
movq 0x8(%rax), %rdx
callq 0x37640
movsd %xmm0, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
leaq -0x18(%rbp), %rdx
leaq -0x1c(%rbp), %rcx
leaq -0x20(%rbp), %r8
callq 0x70720
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq 0x38(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rax
movl %eax, %esi
callq 0x52e20
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x18(%rbp), %rcx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq 0x38(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x18(%rbp), %rcx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rax
movl %eax, %esi
callq 0x52e20
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x1c(%rbp), %rax
imulq $0x48, %rax, %rax
addq %rax, %rdi
movl -0x20(%rbp), %esi
callq 0x70bc0
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movslq -0x18(%rbp), %rax
imulq $0x48, %rax, %rax
addq %rax, %rsi
movl -0x1c(%rbp), %edx
callq 0x70c80
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x71ee0
movq -0x10(%rbp), %rdi
movl -0x18(%rbp), %esi
callq 0x71ee0
movq -0x10(%rbp), %rdi
movl -0x18(%rbp), %esi
movl -0x1c(%rbp), %edx
callq 0x71410
cmpl $0x0, %eax
jne 0x785b6
movq -0x10(%rbp), %rdi
leaq 0x8cf14(%rip), %rax     # 0x105498
movq (%rax), %rsi
leaq 0x8cf0a(%rip), %rax     # 0x105498
movq 0x8(%rax), %rdx
callq 0x37640
movsd %xmm0, -0x30(%rbp)
movsd -0x30(%rbp), %xmm0
ucomisd -0x28(%rbp), %xmm0
jbe 0x785b4
movl $0x1, -0x4(%rbp)
jmp 0x78691
jmp 0x785b6
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
leaq -0x18(%rbp), %rdx
leaq -0x1c(%rbp), %rcx
leaq -0x20(%rbp), %r8
callq 0x70720
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq 0x38(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rax
movl %eax, %esi
callq 0x52e20
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x18(%rbp), %rcx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq 0x38(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x18(%rbp), %rcx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rax
movl %eax, %esi
callq 0x52e20
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x1c(%rbp), %rax
imulq $0x48, %rax, %rax
addq %rax, %rdi
movl -0x20(%rbp), %esi
callq 0x70bc0
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movslq -0x18(%rbp), %rax
imulq $0x48, %rax, %rax
addq %rax, %rsi
movl -0x1c(%rbp), %edx
callq 0x70c80
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x71ee0
movq -0x10(%rbp), %rdi
movl -0x18(%rbp), %esi
callq 0x71ee0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)