// File: /workspace/github_c_makefile_star2_O0/ComplexNetworks-DCC-FCUP[P]gtrieScanner/GTrie.cpp
// Function: GTrieNode::showAsText(_IO_FILE*)
void GTrieNode::showAsText(FILE *f) {
  int i;
  for (i=0; i<depth; i++) fprintf(f,"   ");
  fprintf(f,"[");
  for (i=0; i<depth; i++) 
    fprintf(f,"%s", out[i]?"1":"0");
  fprintf(f,"][");
  for (i=0; i<depth; i++) 
    fprintf(f,"%s", in[i]?"1":"0");
  fprintf(f,"] ");

  if (cond_ok) fprintf(f,"{}");
  else {    
    list< list<iPair> >:: iterator jj;
    list<iPair>:: iterator kk;
    for (jj=cond.begin(); jj!=cond.end(); jj++) {
      fputc('|', f);
      for (kk=(*jj).begin(); kk!=(*jj).end(); kk++) {
	if (kk!=(*jj).begin()) fputc(' ', f);
	fprintf(f,"%d<%d", kk->first, kk->second);
      }
      fputc('|', f);
    }
  }

  fputc('+', f);

  if (cond_this_ok) fprintf(f,"{}");
  else {
    list< list<int> >:: iterator jjj;
    list<int>:: iterator kkk;
    for (jjj=this_node_cond.begin(); jjj!=this_node_cond.end(); jjj++) {
      fputc('|', f);
      if ((*jjj).size()==0) fprintf(f,"{}");
      else {
	for (kkk=(*jjj).begin(); kkk!=(*jjj).end(); kkk++) {
	  if (kkk!=(*jjj).begin()) fputc(',', f);
	  fprintf(f,"%d", *kkk);	
	}
	fprintf(f,"<%d", depth-1);
      }
      fputc('|', f);
    }
  }
      
  fputc(' ', f);
        
  fprintf(f,"%s\n", is_graph?"isGraph":"");

  list<GTrieNode *>::iterator ii;
  for(ii=child.begin(); ii!=child.end(); ii++)
    (*ii)->showAsText(f);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movl $0x0, -0x14(%rbp)
movq -0xd0(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl 0x4c(%rcx), %eax
jge 0xff91
movq -0x10(%rbp), %rdi
leaq 0x10ebf(%rip), %rsi     # 0x20e3e
movb $0x0, %al
callq 0x33a0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xff65
movq -0x10(%rbp), %rdi
leaq 0x10c2f(%rip), %rsi     # 0x20bcb
movb $0x0, %al
callq 0x33a0
movl $0x0, -0x14(%rbp)
movq -0xd0(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl 0x4c(%rcx), %eax
jge 0x10020
movq -0xd0(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, -0xd8(%rbp)
movq 0x60(%rax), %rax
movslq -0x14(%rbp), %rcx
testb $0x1, (%rax,%rcx)
je 0xffe9
leaq 0x10a51(%rip), %rax     # 0x20a31
movq %rax, -0xe0(%rbp)
jmp 0xfff9
leaq 0x10bd8(%rip), %rax     # 0x20bc8
movq %rax, -0xe0(%rbp)
jmp 0xfff9
movq -0xd8(%rbp), %rdi
movq -0xe0(%rbp), %rdx
leaq 0x10ba0(%rip), %rsi     # 0x20bae
movb $0x0, %al
callq 0x33a0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xffaa
movq -0x10(%rbp), %rdi
leaq 0x10b9f(%rip), %rsi     # 0x20bca
movb $0x0, %al
callq 0x33a0
movl $0x0, -0x14(%rbp)
movq -0xd0(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl 0x4c(%rcx), %eax
jge 0x100af
movq -0xd0(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, -0xe8(%rbp)
movq 0x58(%rax), %rax
movslq -0x14(%rbp), %rcx
testb $0x1, (%rax,%rcx)
je 0x10078
leaq 0x109c2(%rip), %rax     # 0x20a31
movq %rax, -0xf0(%rbp)
jmp 0x10088
leaq 0x10b49(%rip), %rax     # 0x20bc8
movq %rax, -0xf0(%rbp)
jmp 0x10088
movq -0xe8(%rbp), %rdi
movq -0xf0(%rbp), %rdx
leaq 0x10b11(%rip), %rsi     # 0x20bae
movb $0x0, %al
callq 0x33a0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x10039
movq -0x10(%rbp), %rdi
leaq 0x10b13(%rip), %rsi     # 0x20bcd
movb $0x0, %al
callq 0x33a0
movq -0xd0(%rbp), %rax
testb $0x1, 0x48(%rax)
je 0x100e5
movq -0x10(%rbp), %rdi
leaq 0x10af7(%rip), %rsi     # 0x20bd0
movb $0x0, %al
callq 0x33a0
jmp 0x10244
leaq -0x20(%rbp), %rdi
callq 0x15490
leaq -0x28(%rbp), %rdi
callq 0xc9b0
movq -0xd0(%rbp), %rdi
addq $0x18, %rdi
callq 0x154b0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0xd0(%rbp), %rdi
addq $0x18, %rdi
callq 0x15510
movq %rax, -0x38(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x154e0
testb $0x1, %al
jne 0x1013d
jmp 0x10242
movq -0x10(%rbp), %rsi
movl $0x7c, %edi
callq 0x3350
leaq -0x20(%rbp), %rdi
callq 0x15540
movq %rax, %rdi
callq 0x15560
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x15540
movq %rax, %rdi
callq 0xd700
movq %rax, -0x48(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x15590
testb $0x1, %al
jne 0x10193
jmp 0x10220
leaq -0x20(%rbp), %rdi
callq 0x15540
movq %rax, %rdi
callq 0x15560
movq %rax, -0x50(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x15590
testb $0x1, %al
jne 0x101bb
jmp 0x101c9
movq -0x10(%rbp), %rsi
movl $0x20, %edi
callq 0x3350
movq -0x10(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x155c0
movl (%rax), %eax
movl %eax, -0xf4(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x155c0
movq -0x100(%rbp), %rdi
movl -0xf4(%rbp), %edx
movl 0x4(%rax), %ecx
leaq 0x109ce(%rip), %rsi     # 0x20bd3
movb $0x0, %al
callq 0x33a0
leaq -0x28(%rbp), %rdi
xorl %esi, %esi
callq 0x155e0
movq %rax, -0x58(%rbp)
jmp 0x10168
movq -0x10(%rbp), %rsi
movl $0x7c, %edi
callq 0x3350
leaq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0x15610
movq %rax, -0x60(%rbp)
jmp 0x10113
jmp 0x10244
movq -0x10(%rbp), %rsi
movl $0x2b, %edi
callq 0x3350
movq -0xd0(%rbp), %rax
testb $0x1, 0x49(%rax)
je 0x10276
movq -0x10(%rbp), %rdi
leaq 0x10966(%rip), %rsi     # 0x20bd0
movb $0x0, %al
callq 0x33a0
jmp 0x10417
leaq -0x68(%rbp), %rdi
callq 0x15640
leaq -0x70(%rbp), %rdi
callq 0x15660
movq -0xd0(%rbp), %rdi
callq 0x15680
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0xd0(%rbp), %rdi
callq 0x156e0
movq %rax, -0x80(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x156b0
testb $0x1, %al
jne 0x102c6
jmp 0x10415
movq -0x10(%rbp), %rsi
movl $0x7c, %edi
callq 0x3350
leaq -0x68(%rbp), %rdi
callq 0x15710
movq %rax, %rdi
callq 0x15730
cmpq $0x0, %rax
jne 0x10302
movq -0x10(%rbp), %rdi
leaq 0x108da(%rip), %rsi     # 0x20bd0
movb $0x0, %al
callq 0x33a0
jmp 0x103f0
leaq -0x68(%rbp), %rdi
callq 0x15710
movq %rax, %rdi
callq 0x15760
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x15710
movq %rax, %rdi
callq 0x157c0
movq %rax, -0x90(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x15790
testb $0x1, %al
jne 0x10353
jmp 0x103d1
leaq -0x68(%rbp), %rdi
callq 0x15710
movq %rax, %rdi
callq 0x15760
movq %rax, -0x98(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x15790
testb $0x1, %al
jne 0x10381
jmp 0x1038f
movq -0x10(%rbp), %rsi
movl $0x2c, %edi
callq 0x3350
movq -0x10(%rbp), %rax
movq %rax, -0x108(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x157f0
movq -0x108(%rbp), %rdi
movl (%rax), %edx
leaq 0x10795(%rip), %rsi     # 0x20b48
movb $0x0, %al
callq 0x33a0
leaq -0x70(%rbp), %rdi
xorl %esi, %esi
callq 0x15810
movq %rax, -0xa0(%rbp)
jmp 0x10325
movq -0xd0(%rbp), %rax
movq -0x10(%rbp), %rdi
movl 0x4c(%rax), %edx
subl $0x1, %edx
leaq 0x107ec(%rip), %rsi     # 0x20bd5
movb $0x0, %al
callq 0x33a0
movq -0x10(%rbp), %rsi
movl $0x7c, %edi
callq 0x3350
leaq -0x68(%rbp), %rdi
xorl %esi, %esi
callq 0x15840
movq %rax, -0xa8(%rbp)
jmp 0x102a0
jmp 0x10417
movq -0x10(%rbp), %rsi
movl $0x20, %edi
callq 0x3350
movq -0xd0(%rbp), %rax
movq -0x10(%rbp), %rdi
movb 0x50(%rax), %cl
leaq 0xfc5f(%rip), %rdx      # 0x20099
leaq 0x10798(%rip), %rax     # 0x20bd9
testb $0x1, %cl
cmovneq %rax, %rdx
leaq 0x10a61(%rip), %rsi     # 0x20eb0
movb $0x0, %al
callq 0x33a0
leaq -0xb0(%rbp), %rdi
callq 0x15390
movq -0xd0(%rbp), %rdi
addq $0x30, %rdi
callq 0x153b0
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xd0(%rbp), %rdi
addq $0x30, %rdi
callq 0x15410
movq %rax, -0xc0(%rbp)
leaq -0xb0(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x153e0
testb $0x1, %al
jne 0x104b7
jmp 0x104e6
leaq -0xb0(%rbp), %rdi
callq 0x15440
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0xff40
leaq -0xb0(%rbp), %rdi
xorl %esi, %esi
callq 0x15460
movq %rax, -0xc8(%rbp)
jmp 0x10487
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nop