// File: /workspace/github_cpp_makefile_star2_O1/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 0x4a32
movl $0x240, %edi            # imm = 0x240
callq 0x21d0
movq %rax, %r14
leaq 0x6dbe(%rip), %rsi      # 0xd280
movq %rax, %rdi
movl $0x800, %edx            # imm = 0x800
callq 0x27bc
movq %r14, 0x6eda(%rip)      # 0xd3b0
callq 0x4bd0
callq 0x51a3
movq %rax, %rbx
cmpb $0x1, 0x6ef7(%rip)      # 0xd3e1
jne 0x64f8
movq 0x6ebd(%rip), %rdi      # 0xd3b0
callq 0x3182
movq %rbx, %rdi
callq 0x63a9
movq 0x6eb9(%rip), %rax      # 0xd3c0
cmpq 0x6eaa(%rip), %rax      # 0xd3b8
je 0x65ef
xorl %r14d, %r14d
movq 0x6ab2(%rip), %rbx      # 0xcfd0
leaq 0x2b94(%rip), %r12      # 0x90b9
movabsq $-0x5555555555555555, %r15 # imm = 0xAAAAAAAAAAAAAAAB
xorl %r13d, %r13d
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x2ca3(%rip), %rsi      # 0x91e4
callq 0x2220
incq %r13
movq %rbx, %rdi
movl %r13d, %esi
callq 0x2330
movl $0x3, %edx
movq %rax, %rdi
leaq 0x2b39(%rip), %rsi      # 0x909c
callq 0x2220
movq 0x6e49(%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 0x6e22(%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 0x6ded(%rip), %rax      # 0xd3c0
subq 0x6dde(%rip), %rax      # 0xd3b8
sarq $0x3, %rax
imulq %r15, %rax
addq $0x18, %r14
cmpq %r13, %rax
ja 0x6532
leaq 0x10(%rsp), %rdi
callq 0x696e
movsd %xmm0, 0x8(%rsp)
leaq 0x6c42(%rip), %rax      # 0xd248
movsd %xmm0, (%rax)
movq 0x69bf(%rip), %rbx      # 0xcfd0
leaq 0x6da0(%rip), %rsi      # 0xd3b8
movq %rbx, %rdi
callq 0x433e
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 0x2b95(%rip), %rsi      # 0x91e6
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 0x2b51(%rip), %rsi      # 0x91ee
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
movl $0x1, %edx
callq 0x2200
leaq 0x2b44(%rip), %rsi      # 0x91fa
movl $0x7, %edx
movq %rbx, %rdi
callq 0x2220
movzbl 0x6d19(%rip), %edx      # 0xd3e3
leaq 0x2b31(%rip), %rax      # 0x9202
leaq 0x2b33(%rip), %rsi      # 0x920b
testq %rdx, %rdx
cmovneq %rax, %rsi
xorq $0x9, %rdx
leaq 0x38(%rsp), %rdi
callq 0x2220
movzbl 0x6cf0(%rip), %eax      # 0xd3e4
leaq 0x2b1c(%rip), %rcx      # 0x9217
leaq 0x2b13(%rip), %rsi      # 0x9215
testl %eax, %eax
cmovneq %rcx, %rsi
xorl $0x1, %eax
leaq 0x8(,%rax,2), %rdx
leaq 0x38(%rsp), %rdi
callq 0x2220
movl 0x6cc5(%rip), %eax      # 0xd3e8
cmpl $0x1, %eax
je 0x6736
cmpl $0x2, %eax
jne 0x674c
leaq 0x2af2(%rip), %rsi      # 0x9226
jmp 0x673d
leaq 0x2ae3(%rip), %rsi      # 0x9220
leaq 0x38(%rsp), %rdi
movl $0x5, %edx
callq 0x2220
cmpl $0x1, 0x6c9d(%rip)      # 0xd3f0
jne 0x676b
leaq 0x2ad0(%rip), %rsi      # 0x922c
leaq 0x38(%rsp), %rdi
movl $0x6, %edx
callq 0x2220
cmpb $0x0, 0x6a7a(%rip)      # 0xd1ec
jne 0x678a
leaq 0x2ab8(%rip), %rsi      # 0x9233
leaq 0x38(%rsp), %rdi
movl $0x9, %edx
callq 0x2220
cmpb $0x1, 0x6c51(%rip)      # 0xd3e2
jne 0x67a9
leaq 0x2aa3(%rip), %rsi      # 0x923d
leaq 0x38(%rsp), %rdi
movl $0x9, %edx
callq 0x2220
leaq 0x6ad0(%rip), %rbx      # 0xd280
movq %rbx, %rdi
callq 0x20d0
leaq 0x38(%rsp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x2220
leaq 0x28ea(%rip), %rsi      # 0x90b9
leaq 0x38(%rsp), %rdi
movl $0x1, %edx
callq 0x2220
movsd 0x6bea(%rip), %xmm0     # 0xd3d0
leaq 0x38(%rsp), %rdi
callq 0x22c0
movq %rax, %rbx
leaq 0x28bf(%rip), %rsi      # 0x90b9
movl $0x1, %edx
movq %rax, %rdi
callq 0x2220
movl 0x6bcf(%rip), %esi      # 0xd3dc
movq %rbx, %rdi
callq 0x2330
movq %rax, %rbx
leaq 0x289a(%rip), %rsi      # 0x90b9
movl $0x1, %edx
movq %rax, %rdi
callq 0x2220
movl 0x69b6(%rip), %esi      # 0xd1e8
movq %rbx, %rdi
callq 0x2330
leaq 0x2878(%rip), %rsi      # 0x90b9
movl $0x1, %edx
movq %rax, %rdi
callq 0x2220
leaq 0x6b63(%rip), %rsi      # 0xd3b8
leaq 0x38(%rsp), %rdi
callq 0x433e
movq %rax, %rdi
callq 0x20e0
leaq 0x38(%rsp), %rdi
callq 0x2280
movq 0x6758(%rip), %rdi      # 0xcfd0
leaq 0x29c8(%rip), %rsi      # 0x9247
movl $0xa, %edx
callq 0x2220
movq 0x6948(%rip), %rsi      # 0xd1d8
movq 0x6739(%rip), %rdi      # 0xcfd0
callq 0x21a0
movq %rax, %rdi
callq 0x20e0
xorl %edi, %edi
callq 0x2230
movq %rax, %rbx
movq 0x6713(%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 0x68f2
movq %rax, %rbx
movl $0x240, %esi            # imm = 0x240
movq %r14, %rdi
callq 0x21e0
movq %rbx, %rdi
callq 0x2350