// File: Manuel123cool[P]smiley/instruction.cpp
// Function: Instruction::run()
void Instruction::run()
{
    processFunctions();
    Stack stack;
    stack.addStackFrame();
    for (int i{ 0 }; i < m_instructions.size(); ++i)  
    {
        std::string code{ m_instructions.at(i) };
        int jumpNum{ checkJumps(i) };
        if (jumpNum != -1)
            i = jumpNum; 

        if (checkIf(i, stack) != -1)
            i = checkIf(i, stack); 
        if (checkLoop(i, stack) != -1)
            i = checkLoop(i, stack); 

        stack.checkBlock(code);
        if (stack().testIfVariable(code))        
            continue;
        stack().testIfBoolVar(code);

        MyRegex::testComandPrint(code, stack); 
        MyRegex::testUserInput(code, stack);
        MyRegex::testCalculater(code, stack);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x10400
leaq -0x20(%rbp), %rdi
movq %rdi, -0x128(%rbp)
callq 0x12e50
movq -0x128(%rbp), %rdi
callq 0xde20
jmp 0x1004d
movl $0x0, -0x30(%rbp)
movq -0x130(%rbp), %rdi
movslq -0x30(%rbp), %rax
movq %rax, -0x138(%rbp)
addq $0x18, %rdi
callq 0x12e70
movq %rax, %rcx
movq -0x138(%rbp), %rax
cmpq %rcx, %rax
jae 0x103d0
movq -0x130(%rbp), %rdi
addq $0x18, %rdi
movslq -0x30(%rbp), %rsi
callq 0x12e90
movq %rax, -0x140(%rbp)
jmp 0x1009f
movq -0x140(%rbp), %rsi
leaq -0x50(%rbp), %rdi
callq 0x30e0
jmp 0x100b1
movq -0x130(%rbp), %rdi
movl -0x30(%rbp), %esi
callq 0x10d30
movl %eax, -0x144(%rbp)
jmp 0x100c8
movl -0x144(%rbp), %eax
movl %eax, -0x54(%rbp)
cmpl $-0x1, -0x54(%rbp)
je 0x10101
movl -0x54(%rbp), %eax
movl %eax, -0x30(%rbp)
jmp 0x10101
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x103e2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x103c5
movq -0x130(%rbp), %rdi
movl -0x30(%rbp), %esi
leaq -0x20(%rbp), %rdx
callq 0x10e70
movl %eax, -0x148(%rbp)
jmp 0x1011c
movl -0x148(%rbp), %eax
cmpl $-0x1, %eax
je 0x1014b
movq -0x130(%rbp), %rdi
movl -0x30(%rbp), %esi
leaq -0x20(%rbp), %rdx
callq 0x10e70
movl %eax, -0x14c(%rbp)
jmp 0x10142
movl -0x14c(%rbp), %eax
movl %eax, -0x30(%rbp)
movq -0x130(%rbp), %rdi
movl -0x30(%rbp), %esi
leaq -0x20(%rbp), %rdx
callq 0x11580
movl %eax, -0x150(%rbp)
jmp 0x10166
movl -0x150(%rbp), %eax
cmpl $-0x1, %eax
je 0x10195
movq -0x130(%rbp), %rdi
movl -0x30(%rbp), %esi
leaq -0x20(%rbp), %rdx
callq 0x11580
movl %eax, -0x154(%rbp)
jmp 0x1018c
movl -0x154(%rbp), %eax
movl %eax, -0x30(%rbp)
leaq -0x78(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x30e0
jmp 0x101a4
leaq -0x20(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0xdf60
jmp 0x101b3
leaq -0x78(%rbp), %rdi
callq 0x3160
leaq -0x20(%rbp), %rdi
callq 0xdf30
movq %rax, -0x160(%rbp)
jmp 0x101ce
leaq -0x98(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x30e0
jmp 0x101e0
movq -0x160(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x4210
movb %al, -0x161(%rbp)
jmp 0x101fb
leaq -0x98(%rbp), %rdi
callq 0x3160
movb -0x161(%rbp), %al
testb $0x1, %al
jne 0x10213
jmp 0x10259
movl $0x4, -0x9c(%rbp)
jmp 0x10338
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x3160
jmp 0x103c5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x3160
jmp 0x103c5
leaq -0x20(%rbp), %rdi
callq 0xdf30
movq %rax, -0x170(%rbp)
jmp 0x1026b
leaq -0xc0(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x30e0
jmp 0x1027d
movq -0x170(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x54d0
jmp 0x10292
leaq -0xc0(%rbp), %rdi
callq 0x3160
leaq -0xe0(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x30e0
jmp 0x102b0
leaq -0xe0(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0xa4f0
jmp 0x102c2
leaq -0xe0(%rbp), %rdi
callq 0x3160
leaq -0x100(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x30e0
jmp 0x102e0
leaq -0x100(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0xb0f0
jmp 0x102f2
leaq -0x100(%rbp), %rdi
callq 0x3160
leaq -0x120(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x30e0
jmp 0x10310
leaq -0x120(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0xb3e0
jmp 0x10322
leaq -0x120(%rbp), %rdi
callq 0x3160
movl $0x0, -0x9c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x3160
movl -0x9c(%rbp), %eax
testl %eax, %eax
je 0x1034f
jmp 0x1034d
jmp 0x10351
jmp 0x10351
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x10054
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x3160
jmp 0x103c5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x3160
jmp 0x103c5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x3160
jmp 0x103c5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x120(%rbp), %rdi
callq 0x3160
leaq -0x50(%rbp), %rdi
callq 0x3160
jmp 0x103e2
leaq -0x20(%rbp), %rdi
callq 0x12ed0
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
leaq -0x20(%rbp), %rdi
callq 0x12ed0
movq -0x28(%rbp), %rdi
callq 0x3380
nopw %cs:(%rax,%rax)