// File: /workspace/github_cpp_makefile_star2_O3/marxn[P]pupp/src/parser/operation.cpp
// Function: Operation::GTOperation(ConstValue*, ConstValue*)
ConstValue * Operation::GTOperation(ConstValue * left, ConstValue * right)
{
        ConstValue * result = NULL;

        if(left->GetType()==Integer && right->GetType()==Integer)
        {
                result = new BooleanValue(static_cast<IntegerValue*>(left)->GetValue() > static_cast<IntegerValue*>(right)->GetValue());
        }
        else if(left->GetType()==Integer && right->GetType()==Decimal)
        {
                DecimalValue leftvalue(static_cast<IntegerValue*>(left));
                result = new BooleanValue(leftvalue > *static_cast<DecimalValue*>(right));
        }
        else if(left->GetType()==Decimal && right->GetType()==Integer)
        {
                DecimalValue rightvalue(static_cast<IntegerValue*>(right));
                result = new BooleanValue(*static_cast<DecimalValue*>(left) > rightvalue);
        }
        else if(left->GetType()==Decimal && right->GetType()==Decimal)
        {
                DecimalValue * value1 = static_cast<DecimalValue*>(left);
                DecimalValue * value2 = static_cast<DecimalValue*>(right);

                result = new BooleanValue(*value1 > *value2);        
        }
        else if(left->GetType()==Integer && right->GetType()==String)
        {
                StringValue * rightvalue = static_cast<StringValue*>(right);

                if(rightvalue->LooksLikeInteger())
                {
                        IntegerValue * value1 = static_cast<IntegerValue*>(left);
                        IntegerValue value2(rightvalue->toString());
                        result = new BooleanValue(value1->GetValue() > value2.GetValue());
                }
                else if(rightvalue->LooksLikeDecimal())
                {
                        DecimalValue value1(static_cast<IntegerValue*>(left));
                        DecimalValue value2(rightvalue->toString());

                        result = new BooleanValue(value1 > value2);
                }
                else
                {
                        result = new NullValue;
                }
        }
        else if(left->GetType()==String && right->GetType()==Integer)
        {
                StringValue * leftvalue = static_cast<StringValue*>(left);
                if(leftvalue->LooksLikeInteger())
                {
                        IntegerValue value1(leftvalue->toString());
                        IntegerValue * value2 = static_cast<IntegerValue*>(right);
                        result = new BooleanValue(value1.GetValue() > value2->GetValue());
                }
                else if(leftvalue->LooksLikeDecimal())
                {
                        DecimalValue value1(leftvalue->toString());
                        DecimalValue value2(static_cast<IntegerValue*>(right));

                        result = new BooleanValue(value1 > value2);
                }
                else
                {
                        result = new NullValue;
                }
        }
        else if(left->GetType()==Decimal && right->GetType()==String)
        {
                StringValue * rightvalue = static_cast<StringValue*>(right);

                if(rightvalue->LooksLikeInteger())
                {
                        DecimalValue * value1 = static_cast<DecimalValue*>(left);
                        DecimalValue value2(right->toString());

                        result = new BooleanValue(*value1 > value2);
                }
                else if(rightvalue->LooksLikeDecimal())
                {
                        DecimalValue * value1 = static_cast<DecimalValue*>(left);
                        DecimalValue value2(right->toString());

                        result = new BooleanValue(*value1 > value2);
                }
                else
                {
                        result = new NullValue;
                }
        }
        else if(left->GetType()==String && right->GetType()==Decimal)
        {
                StringValue * leftvalue = static_cast<StringValue*>(left);

                if(leftvalue->LooksLikeInteger())
                {
                        DecimalValue value1(left->toString());

                        DecimalValue * value2 = static_cast<DecimalValue*>(right);
                        result = new BooleanValue(value1 > *value2);
                }
                else if(leftvalue->LooksLikeDecimal())
                {
                        DecimalValue value1(leftvalue->toString());
                        DecimalValue * value2 = static_cast<DecimalValue*>(right);

                        result = new BooleanValue(value1 > *value2);
                }
                else
                {
                        result = new NullValue;
                }
        }
        else if(left->GetType()==String && right->GetType()==String)
        {
                StringValue * leftvalue = static_cast<StringValue*>(left);
                StringValue * rightvalue = static_cast<StringValue*>(right);

                result = new BooleanValue(leftvalue->toString().compare(rightvalue->toString()) > 0);
        }
        else
        {
                result = new NullValue;
        }

        return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x150, %rsp            # imm = 0x150
movq %rsi, %r14
movq %rdi, %r15
callq 0x7da6
cmpl $0x1, %eax
jne 0xfb4d
movq %r14, %rdi
callq 0x7da6
cmpl $0x1, %eax
jne 0xfb4d
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %r15, %rdi
callq 0x8160
movq %rax, %r15
movq %r14, %rdi
callq 0x8160
xorl %esi, %esi
cmpq %rax, %r15
setg %sil
movq %rbx, %rdi
callq 0x8764
jmp 0x10208
movq %r15, %rdi
callq 0x7da6
cmpl $0x1, %eax
jne 0xfb97
movq %r14, %rdi
callq 0x7da6
cmpl $0x2, %eax
jne 0xfb97
movq %rsp, %rdi
movq %r15, %rsi
callq 0x8326
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rdi
movq %r14, %rsi
callq 0x8620
movzbl %al, %esi
movq %rbx, %rdi
callq 0x8764
jmp 0xfbdf
movq %r15, %rdi
callq 0x7da6
cmpl $0x2, %eax
jne 0xfbec
movq %r14, %rdi
callq 0x7da6
cmpl $0x1, %eax
jne 0xfbec
movq %rsp, %rdi
movq %r14, %rsi
callq 0x8326
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rsi
movq %r15, %rdi
callq 0x8620
movzbl %al, %esi
movq %rbx, %rdi
callq 0x8764
movq %rsp, %rdi
callq 0x83ce
jmp 0x10208
movq %r15, %rdi
callq 0x7da6
cmpl $0x2, %eax
jne 0xfc2e
movq %r14, %rdi
callq 0x7da6
cmpl $0x2, %eax
jne 0xfc2e
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %r15, %rdi
movq %r14, %rsi
callq 0x8620
movzbl %al, %esi
movq %rbx, %rdi
callq 0x8764
jmp 0x10208
movq %r15, %rdi
callq 0x7da6
cmpl $0x1, %eax
jne 0xfcd6
movq %r14, %rdi
callq 0x7da6
cmpl $0x4, %eax
jne 0xfcd6
movq %r14, %rdi
callq 0x803c
testb %al, %al
je 0xffb0
movq (%r14), %rax
leaq 0x130(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq *0x18(%rax)
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x8122
leaq 0x140(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfca0
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x6270
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %r15, %rdi
callq 0x8160
movq %rax, %r14
movq %rsp, %rdi
callq 0x8160
xorl %esi, %esi
cmpq %rax, %r14
setg %sil
movq %rbx, %rdi
callq 0x8764
jmp 0xfd79
movq %r15, %rdi
callq 0x7da6
cmpl $0x4, %eax
jne 0xfd86
movq %r14, %rdi
callq 0x7da6
cmpl $0x1, %eax
jne 0xfd86
movq %r15, %rdi
callq 0x803c
testb %al, %al
je 0x1002d
movq (%r15), %rax
leaq 0x110(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq *0x18(%rax)
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x8122
leaq 0x120(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfd48
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x6270
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rdi
callq 0x8160
movq %rax, %r15
movq %r14, %rdi
callq 0x8160
xorl %esi, %esi
cmpq %rax, %r15
setg %sil
movq %rbx, %rdi
callq 0x8764
movq %rsp, %rdi
callq 0x97c6
jmp 0x10208
movq %r15, %rdi
callq 0x7da6
cmpl $0x2, %eax
jne 0xfe1c
movq %r14, %rdi
callq 0x7da6
cmpl $0x4, %eax
jne 0xfe1c
movq %r14, %rdi
callq 0x803c
testb %al, %al
je 0x100be
movq (%r14), %rax
leaq 0xd0(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq *0x18(%rax)
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x8222
leaq 0xe0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfdf4
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x6270
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rsi
movq %r15, %rdi
callq 0x8620
movzbl %al, %esi
movq %rbx, %rdi
callq 0x8764
jmp 0xfbdf
movq %r15, %rdi
callq 0x7da6
cmpl $0x4, %eax
jne 0xfeb2
movq %r14, %rdi
callq 0x7da6
cmpl $0x2, %eax
jne 0xfeb2
movq %r15, %rdi
callq 0x803c
testb %al, %al
je 0x10150
movq (%r15), %rax
leaq 0x90(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq *0x18(%rax)
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x8222
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfe8a
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x6270
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rdi
movq %r14, %rsi
callq 0x8620
movzbl %al, %esi
movq %rbx, %rdi
callq 0x8764
jmp 0xfbdf
movq %r15, %rdi
callq 0x7da6
cmpl $0x4, %eax
jne 0xff96
movq %r14, %rdi
callq 0x7da6
cmpl $0x4, %eax
jne 0xff96
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq (%r15), %rax
movq %rsp, %rdi
movq %r15, %rsi
callq *0x18(%rax)
movq (%r14), %rax
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq *0x18(%rax)
movq 0x8(%rsp), %r14
movq 0x30(%rsp), %r15
cmpq %r14, %r15
movq %r14, %rdx
cmovbq %r15, %rdx
testq %rdx, %rdx
je 0xff26
movq 0x28(%rsp), %rsi
movq (%rsp), %rdi
callq 0x6130
testl %eax, %eax
jne 0xff47
subq %r15, %r14
cmpq $-0x7fffffff, %r14      # imm = 0x80000001
movq $-0x80000000, %rax      # imm = 0x80000000
cmovgeq %r14, %rax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpq %rcx, %rax
cmovgeq %rcx, %rax
xorl %esi, %esi
testl %eax, %eax
setg %sil
movq %rbx, %rdi
callq 0x8764
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xff72
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6270
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10208
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6270
jmp 0x10208
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rax, %rdi
callq 0x7ed2
jmp 0x10208
movq %r14, %rdi
callq 0x80aa
testb %al, %al
je 0x10136
movq %rsp, %rdi
movq %r15, %rsi
callq 0x8326
movq (%r14), %rax
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
callq *0x18(%rax)
leaq 0x28(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x8222
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10003
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x6270
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rdi
leaq 0x28(%rsp), %rsi
callq 0x8620
movzbl %al, %esi
movq %rbx, %rdi
callq 0x8764
jmp 0x100af
movq %r15, %rdi
callq 0x80aa
testb %al, %al
je 0x101c5
movq (%r15), %rax
leaq 0xf0(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq *0x18(%rax)
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x8222
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1007d
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x6270
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x8326
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rdi
leaq 0x28(%rsp), %rsi
callq 0x8620
movzbl %al, %esi
movq %rbx, %rdi
callq 0x8764
leaq 0x28(%rsp), %rdi
callq 0x83ce
jmp 0xfbdf
movq %r14, %rdi
callq 0x80aa
testb %al, %al
je 0x101dc
movq (%r14), %rax
leaq 0xb0(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq *0x18(%rax)
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x8222
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1010e
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x6270
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rsi
movq %r15, %rdi
callq 0x8620
movzbl %al, %esi
movq %rbx, %rdi
callq 0x8764
jmp 0xfbdf
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rax, %rdi
callq 0x7ed2
jmp 0x10208
movq %r15, %rdi
callq 0x80aa
testb %al, %al
je 0x101f3
movq (%r15), %rax
leaq 0x70(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq *0x18(%rax)
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x8222
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1019d
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x6270
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rdi
movq %r14, %rsi
callq 0x8620
movzbl %al, %esi
movq %rbx, %rdi
callq 0x8764
jmp 0xfbdf
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rax, %rdi
callq 0x7ed2
jmp 0x10208
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rax, %rdi
callq 0x7ed2
jmp 0x10208
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rax, %rdi
callq 0x7ed2
movq %rbx, %rax
addq $0x150, %rsp            # imm = 0x150
popq %rbx
popq %r14
popq %r15
retq
jmp 0x10411
jmp 0x10434
movq %rax, %r14
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10444
movq 0x80(%rsp), %rsi
jmp 0x103ea
jmp 0x10411
jmp 0x10434
movq %rax, %r14
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10444
movq 0xc0(%rsp), %rsi
jmp 0x103ea
jmp 0x102d6
jmp 0x10411
jmp 0x10434
movq %rax, %r14
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10444
movq 0x100(%rsp), %rsi
jmp 0x103ea
jmp 0x1041a
jmp 0x10411
movq %rax, %r14
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10444
movq 0xa0(%rsp), %rsi
jmp 0x103ea
movq %rax, %r14
jmp 0x103bd
movq %rax, %r14
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1042a
movq 0x60(%rsp), %rsi
incq %rsi
jmp 0x10425
jmp 0x10434
jmp 0x10411
jmp 0x1041a
jmp 0x10411
movq %rax, %r14
leaq 0xe0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10444
movq 0xe0(%rsp), %rsi
jmp 0x103ea
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1035c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6270
jmp 0x1035c
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10437
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6270
jmp 0x10437
jmp 0x10434
jmp 0x103ad
jmp 0x103c9
movq %rax, %r14
leaq 0x120(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10444
movq 0x120(%rsp), %rsi
jmp 0x103ea
jmp 0x1041a
movq %rax, %r14
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6270
leaq 0x28(%rsp), %rdi
callq 0x83ce
jmp 0x1042a
movq %rax, %r14
jmp 0x10405
movq %rax, %r14
leaq 0x140(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10444
movq 0x140(%rsp), %rsi
incq %rsi
jmp 0x1043f
jmp 0x1041a
jmp 0x10434
jmp 0x103f5
movq %rax, %r14
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6270
movq %rsp, %rdi
callq 0x97c6
jmp 0x10444
jmp 0x10411
movq %rax, %r14
jmp 0x1042a
jmp 0x10434
jmp 0x1041a
movq %rax, %r14
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6270
movq %rsp, %rdi
callq 0x83ce
jmp 0x10444
movq %rax, %r14
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6270
movq %r14, %rdi
callq 0x6460