// File: /workspace/github_cpp_makefile_star2_O1/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 0x7dee
cmpl $0x1, %eax
jne 0xfbd7
movq %r14, %rdi
callq 0x7dee
cmpl $0x1, %eax
jne 0xfbd7
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %r15, %rdi
callq 0x81ae
movq %rax, %r15
movq %r14, %rdi
callq 0x81ae
xorl %esi, %esi
cmpq %rax, %r15
setg %sil
movq %rbx, %rdi
callq 0x87ac
jmp 0x10294
movq %r15, %rdi
callq 0x7dee
cmpl $0x1, %eax
jne 0xfc21
movq %r14, %rdi
callq 0x7dee
cmpl $0x2, %eax
jne 0xfc21
movq %rsp, %rdi
movq %r15, %rsi
callq 0x8374
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rdi
movq %r14, %rsi
callq 0x866e
movzbl %al, %esi
movq %rbx, %rdi
callq 0x87ac
jmp 0xfc69
movq %r15, %rdi
callq 0x7dee
cmpl $0x2, %eax
jne 0xfc76
movq %r14, %rdi
callq 0x7dee
cmpl $0x1, %eax
jne 0xfc76
movq %rsp, %rdi
movq %r14, %rsi
callq 0x8374
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rsi
movq %r15, %rdi
callq 0x866e
movzbl %al, %esi
movq %rbx, %rdi
callq 0x87ac
movq %rsp, %rdi
callq 0x841c
jmp 0x10294
movq %r15, %rdi
callq 0x7dee
cmpl $0x2, %eax
jne 0xfcb8
movq %r14, %rdi
callq 0x7dee
cmpl $0x2, %eax
jne 0xfcb8
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %r15, %rdi
movq %r14, %rsi
callq 0x866e
movzbl %al, %esi
movq %rbx, %rdi
callq 0x87ac
jmp 0x10294
movq %r15, %rdi
callq 0x7dee
cmpl $0x1, %eax
jne 0xfd60
movq %r14, %rdi
callq 0x7dee
cmpl $0x4, %eax
jne 0xfd60
movq %r14, %rdi
callq 0x808a
testb %al, %al
je 0xffc7
movq (%r14), %rax
leaq 0x130(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq *0x18(%rax)
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x8170
leaq 0x140(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfd2a
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x6270
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %r15, %rdi
callq 0x81ae
movq %rax, %r14
movq %rsp, %rdi
callq 0x81ae
xorl %esi, %esi
cmpq %rax, %r14
setg %sil
movq %rbx, %rdi
callq 0x87ac
jmp 0xfe03
movq %r15, %rdi
callq 0x7dee
cmpl $0x4, %eax
jne 0xfe10
movq %r14, %rdi
callq 0x7dee
cmpl $0x1, %eax
jne 0xfe10
movq %r15, %rdi
callq 0x808a
testb %al, %al
je 0x10044
movq (%r15), %rax
leaq 0x110(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq *0x18(%rax)
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x8170
leaq 0x120(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfdd2
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x6270
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rdi
callq 0x81ae
movq %rax, %r15
movq %r14, %rdi
callq 0x81ae
xorl %esi, %esi
cmpq %rax, %r15
setg %sil
movq %rbx, %rdi
callq 0x87ac
movq %rsp, %rdi
callq 0x9816
jmp 0x10294
movq %r15, %rdi
callq 0x7dee
cmpl $0x2, %eax
jne 0xfea6
movq %r14, %rdi
callq 0x7dee
cmpl $0x4, %eax
jne 0xfea6
movq %r14, %rdi
callq 0x808a
testb %al, %al
je 0x100d5
movq (%r14), %rax
leaq 0xd0(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq *0x18(%rax)
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x8270
leaq 0xe0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfe7e
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x6270
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rsi
movq %r15, %rdi
callq 0x866e
movzbl %al, %esi
movq %rbx, %rdi
callq 0x87ac
jmp 0xfc69
movq %r15, %rdi
callq 0x7dee
cmpl $0x4, %eax
jne 0xff3c
movq %r14, %rdi
callq 0x7dee
cmpl $0x2, %eax
jne 0xff3c
movq %r15, %rdi
callq 0x808a
testb %al, %al
je 0x10167
movq (%r15), %rax
leaq 0x90(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq *0x18(%rax)
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x8270
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xff14
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x6270
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rdi
movq %r14, %rsi
callq 0x866e
movzbl %al, %esi
movq %rbx, %rdi
callq 0x87ac
jmp 0xfc69
movq %r15, %rdi
callq 0x7dee
cmpl $0x4, %eax
jne 0xffad
movq %r14, %rdi
callq 0x7dee
cmpl $0x4, %eax
jne 0xffad
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 0x10210
movq 0x28(%rsp), %rsi
movq (%rsp), %rdi
callq 0x6130
jmp 0x10212
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rax, %rdi
callq 0x7f20
jmp 0x10294
movq %r14, %rdi
callq 0x80f8
testb %al, %al
je 0x1014d
movq %rsp, %rdi
movq %r15, %rsi
callq 0x8374
movq (%r14), %rax
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
callq *0x18(%rax)
leaq 0x28(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x8270
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1001a
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x6270
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rdi
leaq 0x28(%rsp), %rsi
callq 0x866e
movzbl %al, %esi
movq %rbx, %rdi
callq 0x87ac
jmp 0x100c6
movq %r15, %rdi
callq 0x80f8
testb %al, %al
je 0x101dc
movq (%r15), %rax
leaq 0xf0(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq *0x18(%rax)
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x8270
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10094
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x6270
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x8374
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rdi
leaq 0x28(%rsp), %rsi
callq 0x866e
movzbl %al, %esi
movq %rbx, %rdi
callq 0x87ac
leaq 0x28(%rsp), %rdi
callq 0x841c
jmp 0xfc69
movq %r14, %rdi
callq 0x80f8
testb %al, %al
je 0x101f6
movq (%r14), %rax
leaq 0xb0(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq *0x18(%rax)
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x8270
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10125
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x6270
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rsi
movq %r15, %rdi
callq 0x866e
movzbl %al, %esi
movq %rbx, %rdi
callq 0x87ac
jmp 0xfc69
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rax, %rdi
callq 0x7f20
jmp 0x10294
movq %r15, %rdi
callq 0x80f8
testb %al, %al
je 0x1027f
movq (%r15), %rax
leaq 0x70(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq *0x18(%rax)
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x8270
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x101b4
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x6270
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rsp, %rdi
movq %r14, %rsi
callq 0x866e
movzbl %al, %esi
movq %rbx, %rdi
callq 0x87ac
jmp 0xfc69
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rax, %rdi
callq 0x7f20
jmp 0x10294
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rax, %rdi
callq 0x7f20
jmp 0x10294
xorl %eax, %eax
testl %eax, %eax
jne 0x10237
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 0x87ac
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10262
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6270
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10294
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6270
jmp 0x10294
movl $0x10, %edi
callq 0x6260
movq %rax, %rbx
movq %rax, %rdi
callq 0x7f20
movq %rbx, %rax
addq $0x150, %rsp            # imm = 0x150
popq %rbx
popq %r14
popq %r15
retq
jmp 0x1049d
jmp 0x104c0
movq %rax, %r14
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x104d0
movq 0x80(%rsp), %rsi
jmp 0x10476
jmp 0x1049d
jmp 0x104c0
movq %rax, %r14
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x104d0
movq 0xc0(%rsp), %rsi
jmp 0x10476
jmp 0x10362
jmp 0x1049d
jmp 0x104c0
movq %rax, %r14
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x104d0
movq 0x100(%rsp), %rsi
jmp 0x10476
jmp 0x104a6
jmp 0x1049d
movq %rax, %r14
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x104d0
movq 0xa0(%rsp), %rsi
jmp 0x10476
movq %rax, %r14
jmp 0x10449
movq %rax, %r14
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x104b6
movq 0x60(%rsp), %rsi
incq %rsi
jmp 0x104b1
jmp 0x104c0
jmp 0x1049d
jmp 0x104a6
jmp 0x1049d
movq %rax, %r14
leaq 0xe0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x104d0
movq 0xe0(%rsp), %rsi
jmp 0x10476
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x103e8
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6270
jmp 0x103e8
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x104c3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6270
jmp 0x104c3
jmp 0x104c0
jmp 0x10439
jmp 0x10455
movq %rax, %r14
leaq 0x120(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x104d0
movq 0x120(%rsp), %rsi
jmp 0x10476
jmp 0x104a6
movq %rax, %r14
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6270
leaq 0x28(%rsp), %rdi
callq 0x841c
jmp 0x104b6
movq %rax, %r14
jmp 0x10491
movq %rax, %r14
leaq 0x140(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x104d0
movq 0x140(%rsp), %rsi
incq %rsi
jmp 0x104cb
jmp 0x104a6
jmp 0x104c0
jmp 0x10481
movq %rax, %r14
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6270
movq %rsp, %rdi
callq 0x9816
jmp 0x104d0
jmp 0x1049d
movq %rax, %r14
jmp 0x104b6
jmp 0x104c0
jmp 0x104a6
movq %rax, %r14
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6270
movq %rsp, %rdi
callq 0x841c
jmp 0x104d0
movq %rax, %r14
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6270
movq %r14, %rdi
callq 0x6470