// File: /workspace/github_cpp_makefile_star2_O3/elarielcl[P]ArielsSequitur/TestSequitur.cpp
// Function: simpleTest(char*)
void simpleTest(char string[]) {
  cout << "INPUT=" << string << endl;
  SequiturGrammar* grammar = new SequiturGrammar();
  for (int i = 0; string[i]!=0; ++i)
    grammar->put(string[i]);
  cout << "GRAMMAR" << endl;
  grammar->print();

  cout << "OUTPUT=";
  grammar->printUncompress();
  cout << endl;
  std::string s="";
  grammar->getUncompress(&s);
  if (s == string) cout << "SUCCESSFUL TEST (OUTPUT == INPUT)" << endl;
  else {
    cout << "WRONG TEST (OUTPUT != INPUT)" << endl;
    exit(1);
  }

  cout << "================" << endl << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq 0x6423(%rip), %r14      # 0x8fd8
leaq 0x3543(%rip), %rsi      # 0x60ff
movl $0x6, %edx
movq %r14, %rdi
callq 0x2190
testq %rbx, %rbx
je 0x2bea
movq %rbx, %rdi
callq 0x20a0
movq 0x63fb(%rip), %rdi      # 0x8fd8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x2190
jmp 0x2c02
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x21f0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
movl $0x28, %edi
callq 0x2160
movq %rax, %r15
movq %rax, %rdi
movl $0x100, %esi            # imm = 0x100
movl $0x774dfe0, %edx        # imm = 0x774DFE0
callq 0x42dc
movb (%rbx), %al
testb %al, %al
je 0x2c68
leaq 0x1(%rbx), %r12
movsbl %al, %esi
movq %r15, %rdi
callq 0x4372
movb (%r12), %al
incq %r12
testb %al, %al
jne 0x2c52
leaq 0x3540(%rip), %rsi      # 0x61af
movl $0x7, %edx
movq %r14, %rdi
callq 0x2190
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
movq %r15, %rdi
callq 0x4446
leaq 0x3505(%rip), %rsi      # 0x61b7
movl $0x7, %edx
movq %r14, %rdi
callq 0x2190
movq %r15, %rdi
callq 0x4454
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x35a5(%rip), %rdx      # 0x62a2
leaq -0x40(%rbp), %rdi
movq %rdx, %rsi
callq 0x4096
leaq -0x40(%rbp), %rsi
movq %r15, %rdi
callq 0x4462
leaq -0x40(%rbp), %rdi
movq %rbx, %rsi
callq 0x2070
testl %eax, %eax
jne 0x2e01
movq 0x62a8(%rip), %rbx      # 0x8fd8
leaq 0x3488(%rip), %rsi      # 0x61bf
movl $0x21, %edx
movq %rbx, %rdi
callq 0x2190
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq 0x6276(%rip), %rdi      # 0x8fd8
callq 0x2040
movq %rax, %rdi
callq 0x20d0
movq 0x6262(%rip), %rbx      # 0x8fd8
leaq 0x3338(%rip), %rsi      # 0x60b5
movl $0x10, %edx
movq %rbx, %rdi
callq 0x2190
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq 0x6230(%rip), %rdi      # 0x8fd8
callq 0x2040
movq %rax, %rdi
callq 0x20d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x2df4
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2170
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x61d0(%rip), %rdi      # 0x8fd8
leaq 0x33d2(%rip), %rsi      # 0x61e1
movl $0x1c, %edx
callq 0x2190
movq 0x61b8(%rip), %rdi      # 0x8fd8
callq 0x20b0
movl $0x1, %edi
callq 0x21a0
movq %rax, %rbx
jmp 0x2e59
movq %rax, %rbx
movl $0x28, %esi
movq %r15, %rdi
jmp 0x2e54
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x2e59
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2210