// File: /workspace/github_cpp_makefile_star2_O3/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), %r14
movb $0x0, 0x20(%r14)
movq %r14, %rdi
xorl %esi, %esi
callq 0x22d0
movb $0x1, 0x20(%r14)
movl %ebp, %edi
movq %rbx, %rsi
callq 0x49e6
movl $0x240, %edi            # imm = 0x240
callq 0x21d0
movq %rax, %r14
leaq 0x6d99(%rip), %rsi      # 0xd280
movq %rax, %rdi
movl $0x800, %edx            # imm = 0x800
callq 0x27ac
movq %r14, 0x6eb5(%rip)      # 0xd3b0
callq 0x4b84
callq 0x51ba
movq %rax, %rbx
cmpb $0x1, 0x6ed2(%rip)      # 0xd3e1
jne 0x651d
movq 0x6e98(%rip), %rdi      # 0xd3b0
callq 0x3152
movq %rbx, %rdi
callq 0x63ce
movq 0x6e94(%rip), %rax      # 0xd3c0
cmpq 0x6e85(%rip), %rax      # 0xd3b8
je 0x6614
xorl %r14d, %r14d
movq 0x6a8d(%rip), %rbx      # 0xcfd0
leaq 0x2b6f(%rip), %r12      # 0x90b9
movabsq $-0x5555555555555555, %r15 # imm = 0xAAAAAAAAAAAAAAAB
xorl %r13d, %r13d
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x2cbe(%rip), %rsi      # 0x9224
callq 0x2220
incq %r13
movq %rbx, %rdi
movl %r13d, %esi
callq 0x2330
movl $0x3, %edx
movq %rax, %rdi
leaq 0x2b14(%rip), %rsi      # 0x909c
callq 0x2220
movq 0x6e24(%rip), %rax      # 0xd3b8
movl 0x4(%rax,%r14), %esi
movq %rbx, %rdi
callq 0x2330
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2220
movq 0x6dfd(%rip), %rax      # 0xd3b8
movl (%rax,%r14), %esi
movq %rbp, %rdi
callq 0x2330
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x6dc8(%rip), %rax      # 0xd3c0
subq 0x6db9(%rip), %rax      # 0xd3b8
sarq $0x3, %rax
imulq %r15, %rax
addq $0x18, %r14
cmpq %r13, %rax
ja 0x6557
leaq 0x10(%rsp), %rdi
callq 0x6994
movsd %xmm0, 0x8(%rsp)
leaq 0x6c1d(%rip), %rax      # 0xd248
movsd %xmm0, (%rax)
movq 0x699a(%rip), %rbx      # 0xcfd0
leaq 0x6d7b(%rip), %rsi      # 0xd3b8
movq %rbx, %rdi
callq 0x42f0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
leaq 0x2bb0(%rip), %rsi      # 0x9226
movl $0x7, %edx
movq %rbx, %rdi
callq 0x2220
movq %rbx, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x22c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
leaq 0x2b6c(%rip), %rsi      # 0x922e
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
movl $0x1, %edx
callq 0x2200
leaq 0x2b5f(%rip), %rsi      # 0x923a
movl $0x7, %edx
movq %rbx, %rdi
callq 0x2220
movzbl 0x6cf4(%rip), %edx      # 0xd3e3
leaq 0x2b4c(%rip), %rax      # 0x9242
leaq 0x2b4e(%rip), %rsi      # 0x924b
testq %rdx, %rdx
cmovneq %rax, %rsi
xorq $0x9, %rdx
leaq 0x38(%rsp), %rdi
callq 0x2220
movzbl 0x6ccb(%rip), %eax      # 0xd3e4
leaq 0x2b37(%rip), %rcx      # 0x9257
leaq 0x2b2e(%rip), %rsi      # 0x9255
testl %eax, %eax
cmovneq %rcx, %rsi
xorl $0x1, %eax
leaq 0x8(,%rax,2), %rdx
leaq 0x38(%rsp), %rdi
callq 0x2220
movl 0x6ca0(%rip), %eax      # 0xd3e8
cmpl $0x1, %eax
je 0x675b
cmpl $0x2, %eax
jne 0x6771
leaq 0x2b0d(%rip), %rsi      # 0x9266
jmp 0x6762
leaq 0x2afe(%rip), %rsi      # 0x9260
leaq 0x38(%rsp), %rdi
movl $0x5, %edx
callq 0x2220
cmpl $0x1, 0x6c78(%rip)      # 0xd3f0
jne 0x6790
leaq 0x2aeb(%rip), %rsi      # 0x926c
leaq 0x38(%rsp), %rdi
movl $0x6, %edx
callq 0x2220
cmpb $0x0, 0x6a55(%rip)      # 0xd1ec
jne 0x67af
leaq 0x2ad3(%rip), %rsi      # 0x9273
leaq 0x38(%rsp), %rdi
movl $0x9, %edx
callq 0x2220
cmpb $0x1, 0x6c2c(%rip)      # 0xd3e2
jne 0x67ce
leaq 0x2abe(%rip), %rsi      # 0x927d
leaq 0x38(%rsp), %rdi
movl $0x9, %edx
callq 0x2220
leaq 0x6aab(%rip), %rbx      # 0xd280
movq %rbx, %rdi
callq 0x20d0
leaq 0x38(%rsp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x2220
leaq 0x28c5(%rip), %rsi      # 0x90b9
leaq 0x38(%rsp), %rdi
movl $0x1, %edx
callq 0x2220
movsd 0x6bc5(%rip), %xmm0     # 0xd3d0
leaq 0x38(%rsp), %rdi
callq 0x22c0
movq %rax, %rbx
leaq 0x289a(%rip), %rsi      # 0x90b9
movl $0x1, %edx
movq %rax, %rdi
callq 0x2220
movl 0x6baa(%rip), %esi      # 0xd3dc
movq %rbx, %rdi
callq 0x2330
movq %rax, %rbx
leaq 0x2875(%rip), %rsi      # 0x90b9
movl $0x1, %edx
movq %rax, %rdi
callq 0x2220
movl 0x6991(%rip), %esi      # 0xd1e8
movq %rbx, %rdi
callq 0x2330
leaq 0x2853(%rip), %rsi      # 0x90b9
movl $0x1, %edx
movq %rax, %rdi
callq 0x2220
leaq 0x6b3e(%rip), %rsi      # 0xd3b8
leaq 0x38(%rsp), %rdi
callq 0x42f0
movq %rax, %rdi
callq 0x20e0
leaq 0x38(%rsp), %rdi
callq 0x2280
movq 0x6733(%rip), %rdi      # 0xcfd0
leaq 0x29e3(%rip), %rsi      # 0x9287
movl $0xa, %edx
callq 0x2220
movq 0x6923(%rip), %rsi      # 0xd1d8
movq 0x6714(%rip), %rdi      # 0xcfd0
callq 0x21a0
movq %rax, %rdi
callq 0x20e0
xorl %edi, %edi
callq 0x2230
movq %rax, %rbx
movq 0x66ee(%rip), %rax      # 0xcfc8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x40(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x38(%rsp,%rcx)
callq 0x2170
leaq 0x130(%rsp), %rdi
callq 0x20a0
jmp 0x6917
movq %rax, %rbx
movl $0x240, %esi            # imm = 0x240
movq %r14, %rdi
callq 0x21e0
movq %rbx, %rdi
callq 0x2350
nop