// File: /workspace/github_cpp_makefile_star2_O1/smallsimple[P]CoreInterpreter-CSE5341/Comp.cpp
// Function: Comp::ParseComp()
void Comp::ParseComp(){
  Tokenizer *tokensComp;
  tokensComp = Tokenizer::getInstance();
  string tokenTemp = tokensComp->getToken();
  if (tokenTemp.compare("(") == 0){
    tokensComp->skipToken();
    op1 = new Op();
    op1->ParseOp();
    tokenTemp = tokensComp->getToken();
    if (tokenTemp.compare("!=") == 0)
      alterId = 1;
    else if (tokenTemp.compare("==") == 0)
      alterId = 2;
    else if (tokenTemp.compare("<") == 0)
      alterId = 3;
    else if (tokenTemp.compare(">") == 0)
      alterId = 4;
    else if (tokenTemp.compare("<=") == 0)
      alterId = 5;
    else if (tokenTemp.compare(">=") == 0)
      alterId = 6;
    else {
      cout << "Error: Comp Op not found!" << endl;
      cout << "program stopped." << endl;
      exit(0);
    }
    tokensComp->skipToken();
    op2 = new Op();
    op2->ParseOp();
    tokenTemp = tokensComp->getToken();
    if (tokenTemp.compare(")") == 0){
      tokensComp->skipToken();
      return;
    }
    else {
      cout << "Error: ParseComp: \"(\" not found!" << endl;
      cout << "program stopped." << endl;
      exit(0);
    }
  }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
callq 0x3d00
movq %rax, %rbx
leaq -0x40(%rbp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x3d54
leaq 0x1095(%rip), %rsi      # 0x89df
movq %r15, %rdi
callq 0x2090
testl %eax, %eax
jne 0x7b2e
movq %rbx, %rdi
callq 0x3e36
movl $0x20, %edi
callq 0x2190
movq %rax, %r15
movq %rax, %rdi
callq 0x5eec
movq %r15, (%r14)
movq %r15, %rdi
callq 0x6018
leaq -0x60(%rbp), %rdi
movq %rbx, %rsi
callq 0x3d54
leaq -0x40(%rbp), %rdi
leaq -0x60(%rbp), %r15
movq %r15, %rsi
callq 0x2200
movq (%r15), %rdi
leaq -0x50(%rbp), %r12
cmpq %r12, %rdi
je 0x79b6
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x21a0
leaq 0x1107(%rip), %rsi      # 0x8ac4
leaq -0x40(%rbp), %rdi
callq 0x2090
testl %eax, %eax
je 0x7a94
leaq 0x6c2(%rip), %rsi       # 0x8097
leaq -0x40(%rbp), %rdi
callq 0x2090
testl %eax, %eax
je 0x7a9b
leaq 0x10da(%rip), %rsi      # 0x8ac7
leaq -0x40(%rbp), %rdi
callq 0x2090
testl %eax, %eax
je 0x7aa2
leaq 0x10c4(%rip), %rsi      # 0x8ac9
leaq -0x40(%rbp), %rdi
callq 0x2090
testl %eax, %eax
je 0x7aa9
leaq 0x10ae(%rip), %rsi      # 0x8acb
leaq -0x40(%rbp), %rdi
callq 0x2090
testl %eax, %eax
je 0x7ab0
leaq 0x1099(%rip), %rsi      # 0x8ace
leaq -0x40(%rbp), %rdi
callq 0x2090
movl $0x6, %ecx
testl %eax, %eax
je 0x7ab5
movq 0x458a(%rip), %rdi      # 0xbfd8
leaq 0x107c(%rip), %rsi      # 0x8ad1
movl $0x19, %edx
callq 0x21d0
movq 0x4572(%rip), %rdi      # 0xbfd8
callq 0x20c0
movq 0x4566(%rip), %rdi      # 0xbfd8
leaq 0x6a1(%rip), %rsi       # 0x811a
movl $0x10, %edx
callq 0x21d0
movq 0x454e(%rip), %rdi      # 0xbfd8
callq 0x20c0
jmp 0x7b9c
movl $0x1, %ecx
jmp 0x7ab5
movl $0x2, %ecx
jmp 0x7ab5
movl $0x3, %ecx
jmp 0x7ab5
movl $0x4, %ecx
jmp 0x7ab5
movl $0x5, %ecx
movl %ecx, 0x10(%r14)
movq %rbx, %rdi
callq 0x3e36
movl $0x20, %edi
callq 0x2190
movq %rax, %r15
movq %rax, %rdi
callq 0x5eec
movq %r15, 0x8(%r14)
movq %r15, %rdi
callq 0x6018
leaq -0x60(%rbp), %rdi
movq %rbx, %rsi
callq 0x3d54
leaq -0x40(%rbp), %rdi
leaq -0x60(%rbp), %r14
movq %r14, %rsi
callq 0x2200
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x7b12
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x21a0
leaq 0xb8f(%rip), %rsi       # 0x86a8
leaq -0x40(%rbp), %rdi
callq 0x2090
testl %eax, %eax
jne 0x7b54
movq %rbx, %rdi
callq 0x3e36
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7b47
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x21a0
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x447d(%rip), %rdi      # 0xbfd8
leaq 0xf89(%rip), %rsi       # 0x8aeb
movl $0x20, %edx
callq 0x21d0
movq 0x4465(%rip), %rdi      # 0xbfd8
callq 0x20c0
movq 0x4459(%rip), %rdi      # 0xbfd8
leaq 0x594(%rip), %rsi       # 0x811a
movl $0x10, %edx
callq 0x21d0
movq 0x4441(%rip), %rdi      # 0xbfd8
callq 0x20c0
xorl %edi, %edi
callq 0x21f0
jmp 0x7bbb
jmp 0x7ba9
jmp 0x7bbb
movq %rax, %rbx
movl $0x20, %esi
movq %r15, %rdi
callq 0x21a0
jmp 0x7bbe
movq %rax, %rbx
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7bd7
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x22b0