LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/Register/RegisterBlock.cpp
// Function: RegisterBlock::createRegisters()
void RegisterBlock::createRegisters()
{
    _addressRegister.name = "A";
    for(size_t i = 1; i < 8; i++){
        Register r;
        char c =  'A' + i;
        r.name = c;
        _registers.push_back(r);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
addq $0x20, %rdi
leaq 0x1e330(%rip), %rsi     # 0x23094
callq 0x44e0
leaq 0x20(%rsp), %r12
leaq 0x40(%rsp), %r13
addq $0x68, %rbx
pushq $-0x7
popq %rbp
xorl %r14d, %r14d
movq %rsp, %r15
testq %rbp, %rbp
je 0x4de2
movq %r12, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movb %r14b, 0x20(%rsp)
movq %r13, 0x30(%rsp)
andq $0x0, 0x38(%rsp)
movb %r14b, 0x40(%rsp)
movb %r14b, 0x50(%rsp)
callq 0x40b0
cltq
movq %rax, 0x8(%rsp)
andl $0x0, (%rsp)
leal 0x49(%rbp), %eax
movsbl %al, %esi
leaq 0x10(%rsp), %rdi
callq 0x4460
movq %rbx, %rdi
movq %r15, %rsi
callq 0x809e
movq %r15, %rdi
callq 0x80ca
incq %rbp
jmp 0x4d80
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x80ca
movq %rbx, %rdi
callq 0x4490
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/Register/RegisterBlock.cpp
// Function: RegisterBlock::saveToMemory(Block&, Register&, Register&)
void RegisterBlock::saveToMemory(Block& b, Register& r, Register& freeRegister)
{
    if ((r.state == RegisterState::VARIABLE || r.state == RegisterState::CONSTVARIABLE) && !r.variableName.empty())
    {
        if (r.variableName == "IF_CONTROL_VARIABLE")
        {
            return;
        }
        if (r.needToSafe)
        {
            saveVariableToMemory(b, r, freeRegister);
        }
    }
    else if (r.state == RegisterState::TABLE)
    {
        std::string rest = r.variableName.substr(r.variableName.find("(") + 1, std::string::npos);
        rest.pop_back();
        if (isDigits(rest))
        {
            saveConstTableToMemory(b, r, freeRegister, std::stoull(rest));
        }
        else 
        {
            saveVarTableToMemory(b, r, freeRegister, rest);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl (%rdx), %eax
cmpl $0x4, %eax
je 0x51f7
cmpl $0x3, %eax
je 0x5245
cmpl $0x1, %eax
jne 0x52e3
cmpq $0x0, 0x38(%rbx)
je 0x523c
leaq 0x30(%rbx), %rdi
leaq 0x1de9d(%rip), %rsi     # 0x230a6
callq 0x8453
testb %al, %al
jne 0x52e3
cmpb $0x1, 0x50(%rbx)
jne 0x52e3
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6c04
cmpl $0x3, %eax
jne 0x52e3
leaq 0x30(%rbx), %r13
leaq 0x1f36d(%rip), %rsi     # 0x245bd
movq %r13, %rdi
xorl %edx, %edx
callq 0x4520
leaq 0x1(%rax), %rdx
leaq 0x8(%rsp), %rbp
pushq $-0x1
popq %rcx
movq %rbp, %rdi
movq %r13, %rsi
callq 0x42a0
movq %rbp, %rdi
callq 0x4330
movq %r15, %rdi
movq %rbp, %rsi
callq 0x8460
testb %al, %al
je 0x52aa
leaq 0x8(%rsp), %rdi
pushq $0xa
popq %rdx
xorl %esi, %esi
callq 0x8476
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %rax, %r8
callq 0x6e9e
jmp 0x52d9
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x4390
leaq 0x28(%rsp), %r8
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x71d6
leaq 0x28(%rsp), %rdi
callq 0x4548
leaq 0x8(%rsp), %rdi
callq 0x4548
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4548
jmp 0x5304
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4548
movq %rbx, %rdi
callq 0x4490
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/Register/Register.hpp
// Function: operator<<(std::ostream&, Register const&)
std::ostream& operator<<(std::ostream& os, const Register& r)
    {
        os <<"\t"<< r.name << " ";
        switch(r.state)
        {
            case RegisterState::UNKNOWN:
            {
                os << "unknown state";
                break;
            }
            case RegisterState::VARIABLE:
            {
                os << "variable="<<r.variableName;
                break;
            }
            case RegisterState::CONST:
            {
                os << "const="<<r.constValue<<" "<<r.variableName;
                break;
            }
            case RegisterState::TABLE:
            {
                os << "table="<<r.variableName;
                break;
            }
            case RegisterState::CONSTVARIABLE:
            {
                os <<"constvalue"<<r.variableName<<" with value "<<r.constValue;
            }
        }
        return os;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1ae7a(%rip), %rsi     # 0x230e2
callq 0x4270
leaq 0x10(%r14), %rsi
movq %rax, %rdi
callq 0x4250
leaq 0x1c1eb(%rip), %rsi     # 0x2446b
movq %rax, %rdi
callq 0x4270
movl (%r14), %eax
cmpq $0x4, %rax
ja 0x833f
leaq 0x1ade4(%rip), %rcx     # 0x23080
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x1ae38(%rip), %rsi     # 0x230e4
movq %rbx, %rdi
callq 0x4270
jmp 0x833f
leaq 0x1ae4a(%rip), %rsi     # 0x2310a
movq %rbx, %rdi
callq 0x4270
leaq 0x30(%r14), %rsi
movq %rax, %rdi
callq 0x4250
leaq 0x1ae3a(%rip), %rsi     # 0x23115
movq %rax, %rdi
callq 0x4270
movq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x41c0
jmp 0x833f
leaq 0x1ae04(%rip), %rsi     # 0x230fc
movq %rbx, %rdi
callq 0x4270
movq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x41c0
leaq 0x1c158(%rip), %rsi     # 0x2446b
movq %rax, %rdi
jmp 0x832b
leaq 0x1ade4(%rip), %rsi     # 0x23103
jmp 0x8328
leaq 0x1adca(%rip), %rsi     # 0x230f2
movq %rbx, %rdi
callq 0x4270
addq $0x30, %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x4250
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/Calculators/NumberGenerator.cpp
// Function: NumberGenerator::getCostWithIncAndAdd(unsigned long long)
int NumberGenerator::getCostWithIncAndAdd(unsigned long long target)
{
    int cost = 0;
    while (target > 10)
    {
        if (target % 2 == 0)
        {
            target = target / 2;
            cost += 5;
        }
        else
        {
            target--;
            cost++;
        }
    }
    return cost + target;
}

// Assembly:
xorl %eax, %eax
cmpq $0xb, %rdi
jb 0xf80e
movq %rdi, %rcx
shrq %rcx
movq %rdi, %rdx
decq %rdx
xorl %esi, %esi
testb $0x1, %dil
sete %sil
cmoveq %rcx, %rdx
leal (%rax,%rsi,4), %eax
incl %eax
movq %rdx, %rdi
jmp 0xf7e4
addl %edi, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/SymbolTable.cpp
// Function: SymbolTable::print()
void SymbolTable::print()
{
    std::cerr<<"Variables:" <<std::endl;
    for(auto v : _variables)
    {
        std::cerr<<v.first<<" at="<<v.second.memoryCell<<" ";
        if (v.second.isInitialized)
        {
            std::cerr<<"is initialized ";
        }
        else
        {
            std::cerr<<"is not initialized ";
        }
        std::cerr<<std::endl;
    }
    std::cerr<<"Tables:" <<std::endl;
    for(auto t : _tables)
    {
        std::cerr<<t.first<<std::endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x22150(%rip), %r14     # 0x31fe8
leaq 0x134ba(%rip), %rsi     # 0x23359
movq %r14, %rdi
callq 0x4270
movq %rax, %rdi
callq 0x4160
movq 0x58(%rbx), %r12
leaq 0x48(%rbx), %r13
leaq 0x8(%rsp), %r15
leaq 0x134b6(%rip), %rbp     # 0x23379
cmpq %r13, %r12
je 0xff43
leaq 0x20(%r12), %rsi
movq %r15, %rdi
callq 0x109c4
movq %r14, %rdi
movq %r15, %rsi
callq 0x4250
movq %rax, %rdi
leaq 0x1347a(%rip), %rsi     # 0x23364
callq 0x4270
movq 0x30(%rsp), %rsi
movq %rax, %rdi
callq 0x41c0
movq %rax, %rdi
leaq 0x14565(%rip), %rsi     # 0x2446b
callq 0x4270
cmpb $0x0, 0x28(%rsp)
movq %rbp, %rsi
leaq 0x1344f(%rip), %rax     # 0x23369
cmovneq %rax, %rsi
movq %r14, %rdi
callq 0x4270
movq %r14, %rdi
callq 0x4160
movq %r15, %rdi
callq 0x4548
movq %r12, %rdi
callq 0x41d0
movq %rax, %r12
jmp 0xfec3
movq 0x2209e(%rip), %r14     # 0x31fe8
leaq 0x1343c(%rip), %rsi     # 0x2338d
movq %r14, %rdi
callq 0x4270
movq %rax, %rdi
callq 0x4160
movq 0x88(%rbx), %r12
addq $0x78, %rbx
leaq 0x8(%rsp), %r15
cmpq %rbx, %r12
je 0xffab
leaq 0x20(%r12), %rsi
movq %r15, %rdi
callq 0x109e4
movq %r14, %rdi
movq %r15, %rsi
callq 0x4250
movq %rax, %rdi
callq 0x4160
movq %r15, %rdi
callq 0x4548
movq %r12, %rdi
callq 0x41d0
movq %rax, %r12
jmp 0xff71
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xffbc
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4548
movq %rbx, %rdi
callq 0x4490
nop
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/SymbolTable.cpp
// Function: SymbolTable::addVariable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string SymbolTable::addVariable(std::string name)
{
    if (isNameTaken(name))
    {
        return "second " + name + " declaration!";
    }
    Variable v;
    _variables[name] = v;
    return "";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %rdx, %rsi
callq 0x4390
movq %r15, %rdi
movq %r12, %rsi
callq 0x1009a
movl %eax, %ebp
leaq 0x20(%rsp), %rdi
callq 0x4548
testb %bpl, %bpl
je 0x10044
leaq 0x1337b(%rip), %rsi     # 0x23395
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0x4acd
leaq 0x1336e(%rip), %rdx     # 0x2339d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4a8f
movq %rsp, %rdi
callq 0x4548
jmp 0x1006d
addq $0x40, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x10a0e
movb $0x0, (%rax)
andq $0x0, 0x8(%rax)
leaq 0x13081(%rip), %rsi     # 0x230e3
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x4a54
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
jmp 0x1008d
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x4548
movq %rbx, %rdi
callq 0x4490
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/SymbolTable.cpp
// Function: SymbolTable::isNameTaken(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool SymbolTable::isNameTaken(std::string name)
{
    if(_variables.find(name) != _variables.end())
    {
        return true;
    }
    if(_tables.find(name) != _tables.end())
    {
        return true;
    }
    if(_currentIterators.find(name) != _currentIterators.end())
    {
        return true;
    }

    return false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
addq $0x40, %rdi
callq 0x10fb4
leaq 0x48(%rbx), %rcx
movb $0x1, %bpl
cmpq %rcx, %rax
jne 0x100eb
leaq 0x70(%rbx), %rdi
movq %r14, %rsi
callq 0x113f0
leaq 0x78(%rbx), %rcx
cmpq %rcx, %rax
jne 0x100eb
leaq 0xd0(%rbx), %rdi
movq %r14, %rsi
callq 0x10ff2
addq $0xd8, %rbx
cmpq %rbx, %rax
setne %bpl
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/SymbolTable.cpp
// Function: SymbolTable::getMemoryCell(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
unsigned long long SymbolTable::getMemoryCell(std::string name)
{
    if (_variables.find(name) != _variables.end())
    {
        return _variables[name].memoryCell;
    }

    if(_allIterators.find(name) != _allIterators.end())
    {
        return _allIterators[name].memoryCell;
    }

    if (_tables.find(name) != _tables.end())
    {
        return _tables[name].memoryCellStart;
    }
    std::cerr<<"ADDRESS OF "<<name<<" WAS NOT FOUND"<<std::endl;
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x40(%rdi), %r15
movq %r15, %rdi
callq 0x10fb4
leaq 0x48(%r14), %rcx
cmpq %rcx, %rax
je 0x10123
movq %r15, %rdi
movq %rbx, %rsi
callq 0x10a0e
movq 0x8(%rax), %rax
jmp 0x10174
leaq 0x100(%r14), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x10ff2
leaq 0x108(%r14), %rcx
cmpq %rcx, %rax
je 0x1014e
movq %r15, %rdi
movq %rbx, %rsi
callq 0x10a74
jmp 0x10171
leaq 0x70(%r14), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x113f0
addq $0x78, %r14
cmpq %r14, %rax
je 0x1017a
movq %r15, %rdi
movq %rbx, %rsi
callq 0x10ada
movq (%rax), %rax
popq %rbx
popq %r14
popq %r15
retq
movq 0x21e67(%rip), %rdi     # 0x31fe8
leaq 0x13223(%rip), %rsi     # 0x233ab
callq 0x4270
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4250
leaq 0x13218(%rip), %rsi     # 0x233b7
movq %rax, %rdi
callq 0x4270
movq %rax, %rdi
callq 0x4160
xorl %eax, %eax
jmp 0x10174
nop
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/SymbolTable.cpp
// Function: SymbolTable::assignMemory()
void SymbolTable::assignMemory()
{
    for(auto& v : _variables)
    {
        if (!v.second.isInitialized)
        {
            _variables.erase(v.first);
        }
    }
    ull index = 0;
    //variables
    for (auto& v : _variables)
    {
        v.second.memoryCell = index;
        index++;
    } 

    //iterators
    for(auto& i : _allIterators)
    {
        i.second.memoryCell = index;
        index++;
    }

    //tables
    for(auto& t : _tables)
    {
        t.second.memoryCellStart = index;
        index += t.second.endIndex - t.second.beginIndex + 1;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x40(%rdi), %r14
movq 0x58(%rdi), %r15
leaq 0x48(%rdi), %r12
cmpq %r12, %r15
je 0x101f0
cmpb $0x0, 0x40(%r15)
jne 0x101e3
leaq 0x20(%r15), %rsi
movq %r14, %rdi
callq 0x117f4
movq %r15, %rdi
callq 0x41d0
movq %rax, %r15
jmp 0x101cb
movq 0x58(%rbx), %rax
xorl %r14d, %r14d
cmpq %r12, %rax
je 0x1020d
movq %r14, 0x48(%rax)
incq %r14
movq %rax, %rdi
callq 0x41d0
jmp 0x101f7
movq 0x118(%rbx), %rax
leaq 0x108(%rbx), %r15
cmpq %r15, %rax
je 0x10231
movq %r14, 0x40(%rax)
incq %r14
movq %rax, %rdi
callq 0x41d0
jmp 0x1021b
movq 0x88(%rbx), %rax
addq $0x78, %rbx
cmpq %rbx, %rax
je 0x1025a
movq %r14, 0x40(%rax)
addq 0x50(%rax), %r14
subq 0x48(%rax), %r14
incq %r14
movq %rax, %rdi
callq 0x41d0
jmp 0x1023c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/SymbolTable.cpp
// Function: SymbolTable::addTable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long long, unsigned long long)
std::string SymbolTable::addTable(std::string name, ull beginIndex, ull endIndex)
{
    if (isNameTaken(name))
    {
        return "second " + name + " declaration!";
    }
    if (beginIndex > endIndex)
    {
        return "wrong " + name + " table size!";
    }
    Table t;
    t.beginIndex = beginIndex;
    t.endIndex = endIndex;
    _tables[name] = t;
    return "";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x28(%rsp), %rbp
movq %rbp, %rdi
movq %rdx, %rsi
callq 0x4390
movq %r13, %rdi
movq %rbp, %rsi
callq 0x1009a
movl %eax, %ebp
leaq 0x28(%rsp), %rdi
callq 0x4548
testb %bpl, %bpl
je 0x10340
leaq 0x13079(%rip), %rsi     # 0x23395
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0x4acd
leaq 0x1306a(%rip), %rdx     # 0x2339d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4a8f
jmp 0x1036e
cmpq %r15, %r12
jbe 0x1037a
leaq 0x13084(%rip), %rsi     # 0x233d0
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0x4acd
leaq 0x13074(%rip), %rdx     # 0x233d7
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4a8f
leaq 0x8(%rsp), %rdi
callq 0x4548
jmp 0x103ae
addq $0x70, %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x10ada
andq $0x0, (%rax)
movq %r12, 0x8(%rax)
movq %r15, 0x10(%rax)
andw $0x0, 0x18(%rax)
leaq 0x12d42(%rip), %rsi     # 0x230e3
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x4a54
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x103c2
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
jmp 0x103d4
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4548
movq %rbx, %rdi
callq 0x4490
nop
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/SymbolTable.cpp
// Function: SymbolTable::checkVariableExists(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string SymbolTable::checkVariableExists(std::string name)
{
    if (name.find("(") != std::string::npos)
    {
        name = name.substr(0, name.find("("));
    }

    if (! isNameTaken(name))
    {
        return "undeclared variable " + name;
    }
    if (_variables.find(name) != _variables.end())
    {
        _variables[name].isInitialized = true;
    }
    return "";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x141bf(%rip), %rsi     # 0x245bd
movq %rdx, %rdi
xorl %edx, %edx
callq 0x4520
cmpq $-0x1, %rax
je 0x10447
leaq 0x141a8(%rip), %rsi     # 0x245bd
movq %r14, %rdi
xorl %edx, %edx
callq 0x4520
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x42a0
movq %r14, %rdi
movq %r12, %rsi
callq 0x4340
movq %r12, %rdi
callq 0x4548
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x4390
movq %r15, %rdi
movq %r12, %rsi
callq 0x1009a
movl %eax, %ebp
movq %rsp, %rdi
callq 0x4548
testb %bpl, %bpl
je 0x104ab
leaq 0x40(%r15), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x10fb4
addq $0x48, %r15
cmpq %r15, %rax
je 0x10495
movq %r12, %rdi
movq %r14, %rsi
callq 0x10a0e
movb $0x1, (%rax)
leaq 0x12c47(%rip), %rsi     # 0x230e3
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x4a54
jmp 0x104bd
leaq 0x12f32(%rip), %rsi     # 0x233e4
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4acd
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4548
movq %rbx, %rdi
callq 0x4490
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/SymbolTable.cpp
// Function: SymbolTable::checkVariableExistsAndIsInitialized(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string SymbolTable::checkVariableExistsAndIsInitialized(std::string name)
{
    if (name.find("(") != std::string::npos)
    {
        name = name.substr(0, name.find("("));
    }

    if (! isNameTaken(name))
    {
        return "undeclared variable " + name;
    }
    if (_variables.find(name) != _variables.end())
    {
        if (! _variables[name].isInitialized)
        {
            return "using uninitialized variable " + name;
        }
    }

    return "";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x13fdd(%rip), %rsi     # 0x245bd
movq %rdx, %rdi
xorl %edx, %edx
callq 0x4520
cmpq $-0x1, %rax
je 0x10629
leaq 0x13fc6(%rip), %rsi     # 0x245bd
movq %r14, %rdi
xorl %edx, %edx
callq 0x4520
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x42a0
movq %r14, %rdi
movq %r12, %rsi
callq 0x4340
movq %r12, %rdi
callq 0x4548
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x4390
movq %r15, %rdi
movq %r12, %rsi
callq 0x1009a
movl %eax, %ebp
movq %rsp, %rdi
callq 0x4548
testb %bpl, %bpl
je 0x1068f
leaq 0x40(%r15), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x10fb4
addq $0x48, %r15
cmpq %r15, %rax
je 0x10679
movq %r12, %rdi
movq %r14, %rsi
callq 0x10a0e
cmpb $0x0, (%rax)
je 0x10698
leaq 0x12a63(%rip), %rsi     # 0x230e3
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x4a54
jmp 0x106aa
leaq 0x12d4e(%rip), %rsi     # 0x233e4
jmp 0x1069f
leaq 0x12d91(%rip), %rsi     # 0x23430
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4acd
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4548
movq %rbx, %rdi
callq 0x4490
nop
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/SymbolTable.cpp
// Function: SymbolTable::checkConstTableAccess(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long long)
std::string SymbolTable::checkConstTableAccess(std::string tableName, unsigned long long value)
{
    auto table = _tables[tableName];
    if (value < table.beginIndex)
    {
        return std::to_string(value) + " out of lower bound of " + tableName;
    }
    if (value > table.endIndex)
    {
        return std::to_string(value) + " out of upper bound of " + tableName;
    }

    return "";
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x70(%rsi), %rdi
movq %rdx, %rsi
callq 0x10ada
cmpq %r15, 0x8(%rax)
jbe 0x1072a
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0xfc06
leaq 0x12d43(%rip), %rdx     # 0x2344e
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x4a8f
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4aae
jmp 0x10764
cmpq %r15, 0x10(%rax)
jae 0x1077a
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0xfc06
leaq 0x12d1f(%rip), %rdx     # 0x23466
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x4a8f
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4aae
leaq 0x8(%rsp), %rdi
callq 0x4548
leaq 0x28(%rsp), %rdi
callq 0x4548
jmp 0x1078e
leaq 0x12962(%rip), %rsi     # 0x230e3
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x4a54
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x107a1
jmp 0x107b0
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4548
jmp 0x107b3
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4548
movq %rbx, %rdi
callq 0x4490
nop
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/SymbolTable.cpp
// Function: SymbolTable::addToIterators(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void SymbolTable::addToIterators(std::string name)
{
    Iterator i;
    _currentIterators[name] = i;
    _allIterators[name] = i;
    Iterator iForControl;
    std::string newName = name + forControlName;
    _allIterators[newName] = iForControl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
addq $0xd0, %rdi
callq 0x10a74
andq $0x0, (%rax)
leaq 0x100(%r14), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x10a74
andq $0x0, (%rax)
addq $0x20, %r14
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x10ba6
movq %r15, %rdi
movq %r12, %rsi
callq 0x10a74
andq $0x0, (%rax)
leaq 0x8(%rsp), %rdi
callq 0x4548
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4548
movq %rbx, %rdi
callq 0x4490
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/SymbolTable.cpp
// Function: SymbolTable::isItVariable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool SymbolTable::isItVariable(std::string var)
{
    if (var == extraVariable)
    {
        return true;
    }
    if (_variables.find(var) != _variables.end())
    {
        return true;
    }
    if (_allIterators.find(var) != _allIterators.end())
    {
        return true;
    }

    return false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movq %rbx, %rsi
callq 0x8141
movb $0x1, %bpl
testb %al, %al
jne 0x1099e
leaq 0x40(%rbx), %rdi
movq %r14, %rsi
callq 0x10fb4
leaq 0x48(%rbx), %rcx
cmpq %rcx, %rax
jne 0x1099e
leaq 0x100(%rbx), %rdi
movq %r14, %rsi
callq 0x10ff2
addq $0x108, %rbx            # imm = 0x108
cmpq %rbx, %rax
setne %bpl
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/IRs/FirstIR.cpp
// Function: FirstIR::addNewCode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void FirstIR::addNewCode(cStrRef operation, cStrRef one, cStrRef two)
{
    Line line;
    line.operation = operation;
    line.one = one;
    line.two = two;
    _currentBlock.top().lines.push_back(line);
    if (operation == "HALT")
    {
        _blocks.push_back(_currentBlock.top());
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, %r15
movq %rdx, %r12
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rsi, %r14
xorl %ecx, %ecx
movb %cl, (%rax)
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rdi, %rbx
movb %cl, (%rax)
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
movq %rsp, %rdi
callq 0x4180
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x4180
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
callq 0x4180
movq 0x58(%rbx), %rdi
cmpq 0x60(%rbx), %rdi
jne 0x12096
movq 0x70(%rbx), %rax
movl $0x1e0, %edi            # imm = 0x1E0
addq -0x8(%rax), %rdi
addq $-0x80, %rdi
movq %rsp, %rsi
callq 0x13a3e
leaq 0x113d6(%rip), %rsi     # 0x2347f
movq %r14, %rdi
callq 0x8453
testb %al, %al
je 0x120dc
leaq 0x10(%rbx), %rdi
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
jne 0x120d0
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
callq 0x13a6a
movq %rsp, %rdi
callq 0x81fe
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x81fe
movq %rbx, %rdi
callq 0x4490
nop
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/IRs/FirstIR.cpp
// Function: FirstIR::handleNonCommutativeOperation(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void FirstIR::handleNonCommutativeOperation(cStrRef resultName, cStrRef operation)
{
    std::string reg = getVariable("NAN");
    addNewCode("COPY", reg, resultName);
    addNewCode("COPY", resultName, _firstExtraParameter);
    addNewCode(operation, resultName, reg);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x11053(%rip), %rsi     # 0x23484
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x4a54
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rdx
movq %r15, %rsi
callq 0x1af90
leaq 0x50(%rsp), %rdi
callq 0x4548
leaq 0x10c62(%rip), %rsi     # 0x230c5
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x4a54
leaq 0x10(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x12014
leaq 0x10(%rsp), %rdi
callq 0x4548
leaq 0x10c2d(%rip), %rsi     # 0x230c5
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x4a54
leaq 0xd8(%r15), %rcx
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x12014
leaq 0x10(%rsp), %rdi
callq 0x4548
leaq 0x30(%rsp), %rcx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x12014
leaq 0x30(%rsp), %rdi
callq 0x4548
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x12504
jmp 0x124f5
jmp 0x12504
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4548
jmp 0x12507
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x4548
movq %rbx, %rdi
callq 0x4490
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
jmp 0x1250c
movq %rax, %rbx
jmp 0x12511
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/IRs/FirstIR.cpp
// Function: FirstIR::endElse()
void FirstIR::endElse()
{
    Block s3 = _currentBlock.top();
    _currentBlock.pop();
    Block s2 = _currentBlock.top();
    _currentBlock.pop();
    Block b1 = generateBlock();
    _currentBlock.push(b1);
    Block s1 = _currentBlock.top();
    s3.blockJump = s1.blockName;
    _blocks.push_back(s3);
    _currentBlock.push(s2);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %rdi, %r14
leaq 0x28(%rdi), %rbx
movq 0x58(%rdi), %rsi
cmpq 0x60(%rdi), %rsi
jne 0x127d8
movq 0x70(%r14), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
leaq 0x8(%rsp), %rdi
callq 0x13b04
movq %rbx, %rdi
callq 0x14360
movq 0x58(%r14), %rsi
cmpq 0x60(%r14), %rsi
jne 0x12808
movq 0x70(%r14), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
leaq 0x1e8(%rsp), %rdi
callq 0x13b04
movq %rbx, %rdi
callq 0x14360
leaq 0x148(%rsp), %rdi
movq %r14, %rsi
callq 0x1af06
leaq 0x148(%rsp), %rsi
movq %rbx, %rdi
callq 0x14092
movq 0x58(%r14), %rsi
cmpq 0x60(%r14), %rsi
jne 0x1285b
movq 0x70(%r14), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
leaq 0xa8(%rsp), %rdi
callq 0x13b04
leaq 0x80(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x4180
addq $0x10, %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x13a6a
leaq 0x1e8(%rsp), %rsi
movq %rbx, %rdi
callq 0x14092
leaq 0xa8(%rsp), %rdi
callq 0x13ad2
leaq 0x148(%rsp), %rdi
callq 0x13ad2
leaq 0x1e8(%rsp), %rdi
callq 0x13ad2
leaq 0x8(%rsp), %rdi
callq 0x13ad2
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r14
retq
jmp 0x128e3
movq %rax, %rbx
jmp 0x12902
movq %rax, %rbx
jmp 0x1290f
movq %rax, %rbx
jmp 0x1291c
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x13ad2
leaq 0x148(%rsp), %rdi
callq 0x13ad2
leaq 0x1e8(%rsp), %rdi
callq 0x13ad2
leaq 0x8(%rsp), %rdi
callq 0x13ad2
movq %rbx, %rdi
callq 0x4490
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/IRs/FirstIR.cpp
// Function: FirstIR::endIf()
void FirstIR::endIf()
{
    Block endOfTrueBlock = _currentBlock.top();
    _currentBlock.pop();
    endOfTrueBlock.blockJump = _currentBlock.top().blockName;
    _blocks.push_back(endOfTrueBlock);
    _conditionBlocks.pop();
    _conditionBlocks.pop();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %rbx
leaq 0x28(%rdi), %r14
movq 0x58(%rdi), %rsi
cmpq 0x60(%rdi), %rsi
jne 0x12956
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
leaq 0x8(%rsp), %rdi
callq 0x13b04
movq %r14, %rdi
callq 0x14360
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
jne 0x12986
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
leaq 0x80(%rsp), %rdi
callq 0x4180
leaq 0x10(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0x13a6a
addq $0x118, %rbx            # imm = 0x118
movq %rbx, %rdi
callq 0x14360
movq %rbx, %rdi
callq 0x14360
leaq 0x8(%rsp), %rdi
callq 0x13ad2
addq $0xa8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x13ad2
movq %rbx, %rdi
callq 0x4490
nop
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/IRs/FirstIR.cpp
// Function: FirstIR::closeConditionBlock()
void FirstIR::closeConditionBlock()
{
    //closes current block
    _blocks.push_back(_currentBlock.top());
    _currentBlock.pop();
    Block b1 = generateBlock();
    _currentBlock.push(b1);
    _conditionBlocks.push(b1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xa0, %rsp
movq %rdi, %rbx
addq $0x10, %rdi
leaq 0x28(%rbx), %r14
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
jne 0x12a18
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
callq 0x13a6a
movq %r14, %rdi
callq 0x14360
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1af06
movq %r14, %rdi
movq %r15, %rsi
callq 0x14092
addq $0x118, %rbx            # imm = 0x118
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x14092
movq %rsp, %rdi
callq 0x13ad2
addq $0xa0, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x13ad2
movq %rbx, %rdi
callq 0x4490
nop
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/IRs/FirstIR.cpp
// Function: FirstIR::endWhileDo()
void FirstIR::endWhileDo()
{
    Block endOfTrueBlock = _currentBlock.top();
    _currentBlock.pop();
    endOfTrueBlock.blockJump = _conditionBlocks.top().blockName;
    _conditionBlocks.pop();
    _blocks.push_back(endOfTrueBlock);  
    _conditionBlocks.pop();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %rbx
leaq 0x28(%rdi), %r14
movq 0x58(%rdi), %rsi
cmpq 0x60(%rdi), %rsi
jne 0x12aa8
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
leaq 0x8(%rsp), %rdi
callq 0x13b04
movq %r14, %rdi
callq 0x14360
movq 0x148(%rbx), %rsi
cmpq 0x150(%rbx), %rsi
jne 0x12ae1
movq 0x160(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
leaq 0x80(%rsp), %rdi
callq 0x4180
leaq 0x118(%rbx), %r14
movq %r14, %rdi
callq 0x14360
addq $0x10, %rbx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x13a6a
movq %r14, %rdi
callq 0x14360
leaq 0x8(%rsp), %rdi
callq 0x13ad2
addq $0xa8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x13ad2
movq %rbx, %rdi
callq 0x4490
nop
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/IRs/FirstIR.cpp
// Function: FirstIR::endDoWhile()
void FirstIR::endDoWhile()
{
    Block endOfTrueBlock = _currentBlock.top();
    _currentBlock.pop();
    _conditionBlocks.pop();
    _conditionBlocks.pop();
    endOfTrueBlock.blockJump = _conditionBlocks.top().blockName;
    _conditionBlocks.pop();
    _blocks.push_back(endOfTrueBlock);       
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %rbx
leaq 0x28(%rdi), %r14
movq 0x58(%rdi), %rsi
cmpq 0x60(%rdi), %rsi
jne 0x12b70
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
leaq 0x8(%rsp), %rdi
callq 0x13b04
movq %r14, %rdi
callq 0x14360
leaq 0x118(%rbx), %r14
movq %r14, %rdi
callq 0x14360
movq %r14, %rdi
callq 0x14360
movq 0x148(%rbx), %rsi
cmpq 0x150(%rbx), %rsi
jne 0x12bc0
movq 0x160(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
leaq 0x80(%rsp), %rdi
callq 0x4180
movq %r14, %rdi
callq 0x14360
addq $0x10, %rbx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x13a6a
leaq 0x8(%rsp), %rdi
callq 0x13ad2
addq $0xa8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x13ad2
movq %rbx, %rdi
callq 0x4490
nop
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/IRs/FirstIR.cpp
// Function: FirstIR::closeForBlock()
void FirstIR::closeForBlock()
{
    //closes current block
    _blocks.push_back(_currentBlock.top());
    _currentBlock.pop();
    Block b1 = generateBlock();
    b1.blockName = b1.blockName + "_For_" +std::to_string(getForCounter()) + "_Content";
    _currentBlock.push(b1);
    _forBlocks.push(b1);       
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdi, %rbx
addq $0x10, %rdi
leaq 0x28(%rbx), %r14
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
jne 0x12c48
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
callq 0x13a6a
movq %r14, %rdi
callq 0x14360
leaq 0x88(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1af06
leaq 0x1082f(%rip), %rdx     # 0x234a5
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x13a99
callq 0x1b18a
leaq 0x8(%rsp), %rdi
movl %eax, %esi
callq 0xf065
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x13ba6
leaq 0x107fc(%rip), %rdx     # 0x234ab
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x4a8f
leaq 0x88(%rsp), %r15
leaq 0x68(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x4340
movq %r12, %rdi
callq 0x4548
leaq 0x48(%rsp), %rdi
callq 0x4548
leaq 0x8(%rsp), %rdi
callq 0x4548
leaq 0x28(%rsp), %rdi
callq 0x4548
movq %r14, %rdi
movq %r15, %rsi
callq 0x14092
addq $0x168, %rbx            # imm = 0x168
leaq 0x88(%rsp), %rsi
movq %rbx, %rdi
callq 0x14092
leaq 0x88(%rsp), %rdi
callq 0x13ad2
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x4548
jmp 0x12d4c
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4548
jmp 0x12d62
jmp 0x12d5a
movq %rax, %rbx
jmp 0x12d6c
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4548
leaq 0x88(%rsp), %rdi
callq 0x13ad2
movq %rbx, %rdi
callq 0x4490
nop
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/IRs/FirstIR.cpp
// Function: FirstIR::getLine(Data)
Line FirstIR::getLine(Data d)
{
    Line l;
    if (!d.name.empty())
    {
        l.operation = "COPY";
        l.two = d.name;
    }
    else
    {
        l.operation = "CONST";
        l.two = std::to_string(d.value);
    }

    return l;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movq %rdi, %rbx
callq 0x13a0c
cmpq $0x0, 0x10(%r14)
je 0x139b6
leaq 0xf729(%rip), %rsi      # 0x230c5
movq %rbx, %rdi
callq 0x44e0
addq $0x8, %r14
leaq 0x40(%rbx), %rdi
movq %r14, %rsi
callq 0x4180
jmp 0x139eb
leaq 0xfb64(%rip), %rsi      # 0x23521
movq %rbx, %rdi
callq 0x44e0
movq (%r14), %rsi
leaq 0x8(%rsp), %rdi
callq 0xfc06
leaq 0x40(%rbx), %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x4340
movq %r14, %rdi
callq 0x4548
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
jmp 0x139f8
movq %rax, %r14
movq %rbx, %rdi
callq 0x81fe
movq %r14, %rdi
callq 0x4490
nop
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/IRs/SecondIR.cpp
// Function: SecondIR::addSimpleJumps(std::vector<Block, std::allocator<Block>>)
void SecondIR::addSimpleJumps(std::vector<Block> b)
{
    for(size_t i = 0; i < b.size() - 1; i++)
    {
        if (b[i].blockIfFalse.empty() && b[i].blockIfTrue.empty() && b[i].blockJump.empty())
        {
            b[i].blockJump = b[i + 1].blockName;
        }
        _blocks.push_back(b[i]);
    }
    _blocks.push_back(b.back());
    
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
addq $0x10, %rbx
xorl %r15d, %r15d
movl $0xa0, %r12d
xorl %r13d, %r13d
movq (%r14), %rsi
movq 0x8(%r14), %rcx
movq %rcx, %rax
subq %rsi, %rax
cqto
idivq %r12
decq %rax
cmpq %rax, %r13
jae 0x1460d
cmpq $0x0, 0x60(%rsi,%r15)
jne 0x145f6
cmpq $0x0, 0x40(%rsi,%r15)
jne 0x145f6
cmpq $0x0, 0x80(%rsi,%r15)
jne 0x145f6
leaq (%rsi,%r15), %rdi
addq $0x78, %rdi
addq %r15, %rsi
addq $0xa0, %rsi
callq 0x4180
movq (%r14), %rsi
addq %r15, %rsi
movq %rbx, %rdi
callq 0x13a6a
incq %r13
addq $0xa0, %r15
jmp 0x145a7
addq $-0xa0, %rcx
movq %rbx, %rdi
movq %rcx, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x13a6a
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/IRs/SecondIR.cpp
// Function: SecondIR::removeEmptyBlocks()
void SecondIR::removeEmptyBlocks()
{
    for(auto& b : _blocks)
    {
        if (b.lines.size() == 0)
        {
            std::string jumpBlockName = b.blockJump;
            for(auto& bb : _blocks)
            {
                if (bb.blockJump == b.blockName)
                {
                    bb.blockJump = jumpBlockName;
                    continue;
                }
                if (bb.blockIfTrue == b.blockName)
                {
                    bb.blockIfTrue = jumpBlockName;
                    continue;
                }
                if (bb.blockIfFalse == b.blockName)
                {
                    bb.blockIfFalse = jumpBlockName;
                    continue;
                }
            }
        }
    }
    for(auto it = _blocks.begin(); it != _blocks.end(); it++)
    {
        if (it->lines.size() == 0)
        {
            it = _blocks.erase(it);
            it--;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rdi), %r15
movq 0x18(%rdi), %rcx
leaq 0x18(%rsp), %r12
movq %rcx, 0x10(%rsp)
cmpq %rcx, %r15
je 0x146e6
movq 0x28(%r15), %rax
cmpq 0x20(%r15), %rax
jne 0x146da
leaq 0x78(%r15), %rsi
movq %r12, %rdi
callq 0x4390
movq 0x10(%rbx), %r14
movq 0x18(%rbx), %rbp
cmpq %rbp, %r14
je 0x146cd
leaq 0x78(%r14), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x8141
testb %al, %al
jne 0x146b9
leaq 0x38(%r14), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x8141
testb %al, %al
jne 0x146b9
leaq 0x58(%r14), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x8141
testb %al, %al
je 0x146c4
movq %r13, %rdi
movq %r12, %rsi
callq 0x4180
addq $0xa0, %r14
jmp 0x1467b
movq %r12, %rdi
callq 0x4548
movq 0x10(%rsp), %rcx
addq $0xa0, %r15
jmp 0x14654
movq 0x8(%rsp), %r14
movq (%r14), %rax
cmpq 0x18(%rbx), %rax
je 0x14717
movq 0x28(%rax), %rcx
cmpq 0x20(%rax), %rcx
jne 0x1470f
movq %r14, %rdi
movq %rax, %rsi
callq 0x1669e
addq $-0xa0, %rax
addq $0xa0, %rax
jmp 0x146ee
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x4548
movq %rbx, %rdi
callq 0x4490
nop
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/IRs/SecondIR.cpp
// Function: SecondIR::optimize()
void SecondIR::optimize()
{
    removeDivAndMod();
    removeUnusedIterators();
    removeAddSubSmallConst();
    searchForMulAndDiv();
    removeUnusedCalculations();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x14766
movq %rbx, %rdi
callq 0x14a54
movq %rbx, %rdi
callq 0x14d4a
movq %rbx, %rdi
callq 0x14db2
movq %rbx, %rdi
popq %rbx
jmp 0x14ea2
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/IRs/SecondIR.cpp
// Function: SecondIR::searchForMulAndDiv()
void SecondIR::searchForMulAndDiv()
{
    for(auto& b : _blocks)
    {
        for(size_t i = 0; i < b.lines.size(); i++)
        {
            if (b.lines[i].operation == "MUL")
            {
                checkPowerOfTwoMul(b.lines[i], b, i);
            }
            if (b.lines[i].operation == "DIV")
            {
                checkPowerOfTwoDiv(b.lines[i], b, i);
            }       
            if (b.lines[i].operation == "MOD")
            {
                checkTwoMod(b.lines[i], b, i);
            }     
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %rax
movq %rax, (%rsp)
pushq $0x68
popq %r15
leaq 0xe6b9(%rip), %r13      # 0x23490
cmpq (%rsp), %r14
je 0x14e93
xorl %r12d, %r12d
xorl %ebp, %ebp
movq 0x20(%r14), %rdi
movq 0x28(%r14), %rax
subq %rdi, %rax
cqto
idivq %r15
cmpq %rax, %rbp
jae 0x14e87
addq %r12, %rdi
leaq 0xe67f(%rip), %rsi      # 0x23488
callq 0x8453
testb %al, %al
je 0x14e27
movq 0x20(%r14), %rsi
addq %r12, %rsi
movq %rbx, %rdi
movq %r14, %rdx
movq %rbp, %rcx
callq 0x157ca
movq 0x20(%r14), %rdi
addq %r12, %rdi
leaq 0xe657(%rip), %rsi      # 0x2348c
callq 0x8453
testb %al, %al
je 0x14e53
movq 0x20(%r14), %rsi
addq %r12, %rsi
movq %rbx, %rdi
movq %r14, %rdx
movq %rbp, %rcx
callq 0x15a4c
movq 0x20(%r14), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x8453
testb %al, %al
je 0x14e7b
movq 0x20(%r14), %rsi
addq %r12, %rsi
movq %rbx, %rdi
movq %r14, %rdx
movq %rbp, %rcx
callq 0x15ccc
incq %rbp
addq $0x68, %r12
jmp 0x14de6
addq $0xa0, %r14
jmp 0x14dd7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/IRs/SecondIR.cpp
// Function: SecondIR::removeUnusedCalculations()
void SecondIR::removeUnusedCalculations()
{
    for(auto& b : _blocks)
    {
        for(auto line = b.lines.begin(); line != b.lines.end(); line++)
        {
            if (_symbolTable->isItVariable(line->one))
            {
                checkOperations(line, b);
            }
        }
    }


}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %rax
movq %rax, 0x10(%rsp)
leaq 0x18(%rsp), %r15
leaq 0x8(%rsp), %r12
cmpq 0x10(%rsp), %r14
je 0x14f2b
movq 0x20(%r14), %rsi
movq %rsi, 0x8(%rsp)
cmpq 0x28(%r14), %rsi
je 0x14f22
movq (%rbx), %r13
addq $0x20, %rsi
movq %r15, %rdi
callq 0x4390
movq %r13, %rdi
movq %r15, %rsi
callq 0x10950
movl %eax, %ebp
movq %r15, %rdi
callq 0x4548
testb %bpl, %bpl
je 0x14f17
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x15ed6
movq 0x8(%rsp), %rsi
addq $0x68, %rsi
jmp 0x14ed5
addq $0xa0, %r14
jmp 0x14eca
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x4548
movq %rbx, %rdi
callq 0x4490
nop
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/IRs/SecondIR.cpp
// Function: SecondIR::stripVariable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Block&)
void SecondIR::stripVariable(std::string variable, Block& b)
{
    for(auto i = b.lines.begin(); i != b.lines.end(); i++)
    {
        if (i->one == variable || i->two == variable)
        {
            i = b.lines.erase(i);
            i--;
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x20(%rdx), %r15
movq 0x20(%rdx), %r12
cmpq 0x28(%rbx), %r12
je 0x1529c
leaq 0x20(%r12), %rdi
movq %r14, %rsi
callq 0x8141
testb %al, %al
jne 0x15284
leaq 0x40(%r12), %rdi
movq %r14, %rsi
callq 0x8141
testb %al, %al
je 0x15296
movq %r15, %rdi
movq %r12, %rsi
callq 0x166a4
movq %rax, %r12
addq $-0x68, %r12
addq $0x68, %r12
jmp 0x1525c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/Merulo[P]CompilerJFTT/src/IRs/SecondIR.cpp
// Function: SecondIR::checkTwoMod(Line&, Block&, unsigned long)
void SecondIR::checkTwoMod(Line& l, Block& b, size_t i)
{
    if (!_symbolTable->isConst(l.two))
    {
        return;
    }
    std::string value = _symbolTable->getConstValue(l.two);
    if (value == "0")
    {
        l.operation = "CONST";
        std::string arg = l.two;
        l.two = "0";
        stripVariable(arg, b);
        return;
    }
    if (value != "2")
    {
        return;
    }
    Line copy = l;
    stripVariable(l.two, b);
    b.lines.insert(b.lines.begin() + i - 1, copy);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rcx, 0x8(%rsp)
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %rbx
movq (%rdi), %rbp
leaq 0x40(%rsi), %r12
leaq 0x70(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x4390
movq %rbp, %rdi
movq %r15, %rsi
callq 0x10282
movl %eax, %ebp
leaq 0x70(%rsp), %rdi
callq 0x4548
testb %bpl, %bpl
je 0x15e5c
movq (%rbx), %r15
leaq 0xf8(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4390
leaq 0x50(%rsp), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x107fa
leaq 0xf8(%rsp), %rdi
callq 0x4548
leaq 0xd7d9(%rip), %rsi      # 0x23535
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x8453
testb %al, %al
je 0x15dd3
leaq 0xd7ad(%rip), %rsi      # 0x23521
movq %r13, %rdi
callq 0x44e0
leaq 0x90(%rsp), %rdi
movq %r12, %rsi
callq 0x4390
leaq 0xd7a2(%rip), %rsi      # 0x23535
movq %r12, %rdi
callq 0x44e0
leaq 0x30(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x4390
leaq 0x30(%rsp), %rsi
movq %r14, %rdx
callq 0x15246
leaq 0x30(%rsp), %rdi
callq 0x4548
leaq 0x90(%rsp), %rdi
callq 0x4548
jmp 0x15e52
leaq 0xe967(%rip), %rsi      # 0x24741
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x16742
testb %al, %al
jne 0x15e52
leaq 0x90(%rsp), %rdi
movq %r13, %rsi
callq 0x8a26
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x4390
leaq 0x10(%rsp), %rsi
movq %r14, %rdx
callq 0x15246
leaq 0x10(%rsp), %rdi
callq 0x4548
movq 0x20(%r14), %rax
addq $0x20, %r14
imulq $0x68, 0x8(%rsp), %rcx
leaq (%rax,%rcx), %rsi
addq $-0x68, %rsi
leaq 0x90(%rsp), %rdx
movq %r14, %rdi
callq 0x166aa
leaq 0x90(%rsp), %rdi
callq 0x81fe
leaq 0x50(%rsp), %rdi
callq 0x4548
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x15e7f
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x4548
jmp 0x15e82
movq %rax, %r14
leaq 0x90(%rsp), %rdi
callq 0x81fe
jmp 0x15ebb
jmp 0x15eb8
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x4548
jmp 0x15ea9
jmp 0x15eb8
jmp 0x15eb8
movq %rax, %r14
leaq 0x90(%rsp), %rdi
callq 0x4548
jmp 0x15ebb
movq %rax, %r14
movq %rbx, %rdi
jmp 0x15ec8
movq %rax, %r14
leaq 0x70(%rsp), %rdi
callq 0x4548
movq %r14, %rdi
callq 0x4490
nop