// File: /workspace/github_cpp_makefile_star2_O1/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 0x63f9(%rip), %r14      # 0x8fd8
leaq 0x3519(%rip), %rsi      # 0x60ff
movl $0x6, %edx
movq %r14, %rdi
callq 0x2190
testq %rbx, %rbx
je 0x2c14
movq %rbx, %rdi
callq 0x20a0
movq 0x63d1(%rip), %rdi      # 0x8fd8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x2190
jmp 0x2c2c
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 0x430c
movb (%rbx), %al
testb %al, %al
je 0x2c92
leaq 0x1(%rbx), %r12
movsbl %al, %esi
movq %r15, %rdi
callq 0x43a2
movb (%r12), %al
incq %r12
testb %al, %al
jne 0x2c7c
leaq 0x3516(%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 0x4476
leaq 0x34db(%rip), %rsi      # 0x61b7
movl $0x7, %edx
movq %r14, %rdi
callq 0x2190
movq %r15, %rdi
callq 0x4484
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 0x357b(%rip), %rdx      # 0x62a2
leaq -0x40(%rbp), %rdi
movq %rdx, %rsi
callq 0x40be
leaq -0x40(%rbp), %rsi
movq %r15, %rdi
callq 0x4492
leaq -0x40(%rbp), %rdi
movq %rbx, %rsi
callq 0x2070
testl %eax, %eax
jne 0x2e2b
movq 0x627e(%rip), %rbx      # 0x8fd8
leaq 0x345e(%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 0x624c(%rip), %rdi      # 0x8fd8
callq 0x2040
movq %rax, %rdi
callq 0x20d0
movq 0x6238(%rip), %rbx      # 0x8fd8
leaq 0x330e(%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 0x6206(%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 0x2e1e
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2170
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x61a6(%rip), %rdi      # 0x8fd8
leaq 0x33a8(%rip), %rsi      # 0x61e1
movl $0x1c, %edx
callq 0x2190
movq 0x618e(%rip), %rdi      # 0x8fd8
callq 0x20b0
movl $0x1, %edi
callq 0x21a0
movq %rax, %rbx
jmp 0x2e83
movq %rax, %rbx
movl $0x28, %esi
movq %r15, %rdi
jmp 0x2e7e
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x2e83
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2210