// File: /workspace/github_cpp_makefile_star2_O2/zakimjz[P]SLEUTH/treeminer.cpp
// Function: main
int main(int argc, char **argv)
{
   TimeTracker tt;
   tt.Start(); 
   parse_args(argc, argv); 
  
   DCB = new Dbase_Ctrl_Blk(infile); 
   get_F1();
   list<Eqclass *> *F2list = get_F2();

   if (output_idlist) DCB->print_vertical();
   get_Fk(*F2list);

   for (int i=0; i < stats.size(); i++){
      cout << "F" << i+1 << " - ";
      cout << stats[i].numlarge << " " << stats[i].numcand << endl;
   }
   
   double tottime = tt.Stop();
   stats.tottime = tottime;

   cout << stats << endl;
   
   cout << "TIME = " << tottime << endl;
   //write results to summary file
   ofstream summary("summary.out", ios::app); 
   summary << "SLEUTH ";
   if (mine_induced) summary << "INDUCED ";
   else summary << "EMBEDDED ";
   
   if (mine_ordered) summary << "ORDERED ";
   else summary << "UNORDERED ";
      
   switch(sort_type){
   case incr: summary << "INCR "; break;
   case decr: summary << "DECR "; break;
   default: break;
   }
   switch(prune_type){
   case prune: summary << "PRUNE "; break;
   deafult: break;
   }
   if (!count_unique) summary << "MULTIPLE ";
   if (use_fullpath) summary << "FULLPATH ";

   summary << infile << " " << MINSUP_PER << " "
           << DBASE_NUM_TRANS << " " << MINSUPPORT << " ";
   summary << stats << endl;
   summary.close();
   cout << "BrachIt = " << BranchIt << endl;
   
   exit(0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x10(%rsp), %rdi
movb $0x0, 0x20(%rdi)
callq 0x605c
movl %ebp, %edi
movq %rbx, %rsi
callq 0x45e2
movl $0x240, %edi            # imm = 0x240
callq 0x2170
movq %rax, %r14
leaq 0x759d(%rip), %rsi      # 0xd250
movq %rax, %rdi
movl $0x800, %edx            # imm = 0x800
callq 0x255c
movq %r14, 0x76b9(%rip)      # 0xd380
callq 0x477f
callq 0x4bc0
movq %rax, %rbx
cmpb $0x1, 0x76d6(%rip)      # 0xd3b1
jne 0x5ce9
movq 0x769c(%rip), %rdi      # 0xd380
callq 0x2dc4
movq %rbx, %rdi
callq 0x5bc7
xorl %ebp, %ebp
movq 0x72d6(%rip), %rbx      # 0xcfd0
leaq 0x24e3(%rip), %r14      # 0x81e4
leaq 0x2394(%rip), %r15      # 0x809c
leaq 0x23aa(%rip), %r12      # 0x80b9
xorl %r13d, %r13d
movq 0x7677(%rip), %rax      # 0xd390
subq 0x7668(%rip), %rax      # 0xd388
cqto
pushq $0x18
popq %rcx
idivq %rcx
cmpq %r13, %rax
jbe 0x5d8f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2160
incq %r13
movq %rax, %rdi
movl %r13d, %esi
callq 0x22c0
movq %rax, %rdi
movq %r15, %rsi
callq 0x2160
movq 0x7630(%rip), %rax      # 0xd388
movl 0x4(%rax,%rbp), %esi
movq %rbx, %rdi
callq 0x22c0
movq %rax, %rdi
movq %r12, %rsi
callq 0x2160
movq 0x7612(%rip), %rcx      # 0xd388
movl (%rcx,%rbp), %esi
movq %rax, %rdi
callq 0x22c0
movq %rax, %rdi
callq 0x20c0
addq $0x18, %rbp
jmp 0x5d12
leaq 0x10(%rsp), %rdi
callq 0x60a2
movsd %xmm0, 0x8(%rsp)
leaq 0x7472(%rip), %rax      # 0xd218
movsd %xmm0, (%rax)
movq 0x721f(%rip), %rbx      # 0xcfd0
leaq 0x75d0(%rip), %rsi      # 0xd388
movq %rbx, %rdi
callq 0x3f8f
movq %rax, %rdi
callq 0x20c0
leaq 0x2417(%rip), %rsi      # 0x81e6
movq %rbx, %rdi
callq 0x2160
movq %rax, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x2250
movq %rax, %rdi
callq 0x20c0
leaq 0x23fa(%rip), %rsi      # 0x81ee
leaq 0x38(%rsp), %rbx
pushq $0x1
popq %rdx
movq %rbx, %rdi
callq 0x2190
leaq 0x23ef(%rip), %rsi      # 0x81fa
movq %rbx, %rdi
callq 0x2160
leaq 0x23e8(%rip), %rax      # 0x8202
leaq 0x23ea(%rip), %rsi      # 0x820b
cmpb $0x0, 0x758b(%rip)      # 0xd3b3
cmovneq %rax, %rsi
leaq 0x38(%rsp), %rdi
callq 0x2160
leaq 0x23da(%rip), %rax      # 0x8217
leaq 0x23d1(%rip), %rsi      # 0x8215
cmpb $0x0, 0x7569(%rip)      # 0xd3b4
cmovneq %rax, %rsi
leaq 0x38(%rsp), %rdi
callq 0x2160
movl 0x7559(%rip), %eax      # 0xd3b8
cmpl $0x1, %eax
je 0x5e72
cmpl $0x2, %eax
jne 0x5e83
leaq 0x23b6(%rip), %rsi      # 0x8226
jmp 0x5e79
leaq 0x23a7(%rip), %rsi      # 0x8220
leaq 0x38(%rsp), %rdi
callq 0x2160
cmpl $0x1, 0x7536(%rip)      # 0xd3c0
jne 0x5e9d
leaq 0x2399(%rip), %rsi      # 0x822c
leaq 0x38(%rsp), %rdi
callq 0x2160
cmpb $0x0, 0x7310(%rip)      # 0xd1b4
jne 0x5eb7
leaq 0x2386(%rip), %rsi      # 0x8233
leaq 0x38(%rsp), %rdi
callq 0x2160
cmpb $0x1, 0x74f4(%rip)      # 0xd3b2
jne 0x5ed1
leaq 0x2376(%rip), %rsi      # 0x823d
leaq 0x38(%rsp), %rdi
callq 0x2160
leaq 0x7378(%rip), %rsi      # 0xd250
leaq 0x38(%rsp), %rdi
callq 0x2160
leaq 0x21d0(%rip), %rsi      # 0x80b9
movq %rax, %rdi
callq 0x2160
movsd 0x74a7(%rip), %xmm0     # 0xd3a0
movq %rax, %rdi
callq 0x2250
leaq 0x21b1(%rip), %rsi      # 0x80b9
movq %rax, %rdi
callq 0x2160
movl 0x7496(%rip), %esi      # 0xd3ac
movq %rax, %rdi
callq 0x22c0
leaq 0x2194(%rip), %rsi      # 0x80b9
movq %rax, %rdi
callq 0x2160
movl 0x727d(%rip), %esi      # 0xd1b0
movq %rax, %rdi
callq 0x22c0
leaq 0x2177(%rip), %rsi      # 0x80b9
movq %rax, %rdi
callq 0x2160
leaq 0x7437(%rip), %rsi      # 0xd388
leaq 0x38(%rsp), %rdi
callq 0x3f8f
movq %rax, %rdi
callq 0x20c0
leaq 0x38(%rsp), %rdi
callq 0x2200
movq 0x705c(%rip), %rdi      # 0xcfd0
leaq 0x22cc(%rip), %rsi      # 0x8247
callq 0x2160
movq 0x7219(%rip), %rsi      # 0xd1a0
movq %rax, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20c0
xorl %edi, %edi
callq 0x21b0
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x2220
jmp 0x5fbd
movq %rax, %rbx
movl $0x240, %esi            # imm = 0x240
movq %r14, %rdi
callq 0x2180
movq %rbx, %rdi
callq 0x22e0
nop