// File: /workspace/github_cpp_makefile_star2_O3/marxn[P]pupp/src/parser/expression.cpp
// Function: SetExpression::Calculate(NodeContext*)
ConstValue * SetExpression::Calculate(NodeContext * context)
{
        long index = 0;
        MapValue * result = new MapValue;
        list<KVValue*> tobedone;

        list<Expression*>::iterator i;
        for(i = this->ExprList->begin(); i!=this->ExprList->end(); i++)
        {
                ConstValue * value = (*i)->Calculate(context);
                if(value->GetType()==KeyValue)
                {
                        tobedone.push_back(static_cast<KVValue*>(value));
                }
                else
                {
                        IntegerValue * key = new IntegerValue(index);
                        ValueBox * vb = new ValueBox(value);

                        KVValue * kv = new KVValue(key, vb);
                        result->AddKV(kv);

                        vb->Destroy();
                        delete kv;
                        delete key;
                        delete value;
                        index++;
                }
        }

        list<KVValue*>::iterator j;
        for(j = tobedone.begin(); j!=tobedone.end(); j++)
        {
                KVValue * value = *j;
                result->AddKV(value);
                delete value;
        }

        return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, 0x18(%rsp)
movq %rdi, %r14
movl $0x40, %edi
callq 0x6260
movq %rax, %rbp
movq %rax, %rdi
callq 0x8a52
leaq 0x20(%rsp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
movq $0x0, 0x10(%rax)
movq 0x18(%r14), %rax
movq (%rax), %rbx
cmpq %rax, %rbx
je 0xa331
movq %r14, 0x10(%rsp)
movq %rbp, (%rsp)
movq $0x0, 0x8(%rsp)
leaq 0x20(%rsp), %r12
movq %r12, %r13
movq 0x10(%rbx), %rdi
movq (%rdi), %rax
movq 0x18(%rsp), %rsi
callq *0x10(%rax)
movq %rax, %rbp
movq %rax, %rdi
callq 0x7da6
cmpl $0x5, %eax
jne 0xa23e
movl $0x18, %edi
callq 0x6260
movq %rbp, 0x10(%rax)
movq %rax, %rdi
movq %r13, %r12
movq %r13, %rsi
callq 0x6070
incq 0x30(%rsp)
jmp 0xa2c4
movl $0x18, %edi
callq 0x6260
movq %rax, %r14
movq %rax, %rdi
movq 0x8(%rsp), %rsi
callq 0x810c
movl $0x10, %edi
callq 0x6260
movq %rax, %r15
movq %rax, %rdi
movq %rbp, %rsi
callq 0x7dba
movl $0x20, %edi
callq 0x6260
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x8826
movq (%rsp), %rdi
movq %r12, %rsi
callq 0x8bde
movq %r15, %rdi
callq 0x7e1e
movq (%r12), %rax
movq %r12, %rdi
callq *0x8(%rax)
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
movq (%rbp), %rax
movq %rbp, %rdi
callq *0x8(%rax)
incq 0x8(%rsp)
movq %r13, %r12
movq (%rbx), %rbx
movq 0x10(%rsp), %rax
cmpq 0x18(%rax), %rbx
jne 0xa1f6
movq 0x20(%rsp), %r14
cmpq %r12, %r14
je 0xa310
movq (%rsp), %rbp
movq 0x10(%r14), %r15
movq %rbp, %rdi
movq %r15, %rsi
callq 0x8bde
testq %r15, %r15
je 0xa301
movq (%r15), %rax
movq %r15, %rdi
callq *0x8(%rax)
movq (%r14), %r14
cmpq %r12, %r14
jne 0xa2e4
movq 0x20(%rsp), %r14
jmp 0xa314
movq (%rsp), %rbp
cmpq %r12, %r14
je 0xa331
movq (%r14), %rbx
movl $0x18, %esi
movq %r14, %rdi
callq 0x6270
movq %rbx, %r14
cmpq %r12, %rbx
jne 0xa319
movq %rbp, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbp, %rdi
movq %rax, %rbp
movl $0x40, %esi
callq 0x6270
jmp 0xa3ad
movq %rax, %rbp
movl $0x18, %esi
movq %r14, %rdi
jmp 0xa37e
movq %rax, %rbp
movl $0x10, %esi
movq %r15, %rdi
jmp 0xa37e
jmp 0xa38b
jmp 0xa38b
movq %rax, %rbp
movl $0x20, %esi
movq %r12, %rdi
callq 0x6270
jmp 0xa38e
jmp 0xa38b
jmp 0xa38b
jmp 0xa38b
movq %rax, %rbp
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0xa3ad
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x6270
movq %rbx, %rdi
cmpq %r13, %rbx
jne 0xa398
movq %rbp, %rdi
callq 0x6460
nop