// File: /workspace/github_cpp_makefile_star2_O3/cla7aye15I4nd[P]basic_interpreter/./lib/terminal.hpp
// Function: basic::terminal::run()
bool run() {
            string command;
            while (true) {
                //std::cerr << "(basic):";
                std::getline(std::cin, command);

                if (command == "QUIT") {
                    //std::cerr << "exit" << std::endl;
                    return 0;
                }

                if (command == "HELP") {
                    std::cout << "Minimal BASIC Interpreter";
                } else if (command == "CLEAR") {
                    code.clear();
                } else if (command == "RUN") {
                    code.run();
                } else if (command == "LIST") {
                    code.show();
                } else{
                    expression expr = format(command);
                    if (is_digit(expr[0])) {
                        if (!code.insert(expr))
                            std::cout << "SYNTAX ERROR" << std::endl;
                    } else {
                        if (!code.feedback(expr))
                            std::cout << "SYNTAX ERROR" << std::endl;
                    }
                }
            }
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x38(%rdi), %rax
movq %rax, 0x8(%rsp)
movq 0x640b(%rip), %r15      # 0x8fe0
leaq 0x28(%rsp), %r12
leaq 0x3473(%rip), %r13      # 0x6054
leaq 0x3471(%rip), %rbp      # 0x6059
movq 0x63e1(%rip), %r14      # 0x8fd0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x22c0
movq %r12, %rdi
movq %r13, %rsi
callq 0x2090
testl %eax, %eax
je 0x2d3b
movq %r12, %rdi
movq %rbp, %rsi
callq 0x2090
testl %eax, %eax
je 0x2c96
movq %r12, %rdi
leaq 0x343b(%rip), %rsi      # 0x6078
callq 0x2090
testl %eax, %eax
je 0x2caf
movq %r12, %rdi
leaq 0x342e(%rip), %rsi      # 0x607e
callq 0x2090
testl %eax, %eax
je 0x2cc6
movq %r12, %rdi
leaq 0x341f(%rip), %rsi      # 0x6082
callq 0x2090
testl %eax, %eax
je 0x2cd3
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x28f8
movq 0x10(%rsp), %rdi
callq 0x2809
testb %al, %al
je 0x2ce0
movq %rbx, %rdi
leaq 0x10(%rsp), %rsi
callq 0x315e
jmp 0x2ced
movl $0x19, %edx
movq %r14, %rdi
leaq 0x33b9(%rip), %rsi      # 0x605e
callq 0x21e0
jmp 0x2bef
movq %rbx, %rdi
callq 0x2ea0
movq 0x8(%rsp), %rdi
callq 0x3590
jmp 0x2bef
movq %rbx, %rdi
callq 0x2f18
jmp 0x2bef
movq %rbx, %rdi
callq 0x30f0
jmp 0x2bef
movq %rbx, %rdi
leaq 0x10(%rsp), %rsi
callq 0x3336
testb %al, %al
jne 0x2d2c
movl $0xc, %edx
movq %r14, %rdi
leaq 0x3387(%rip), %rsi      # 0x6087
callq 0x21e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
leaq 0x10(%rsp), %rdi
callq 0x2aa2
jmp 0x2bef
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2d57
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21b0
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2d79
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2aa2
jmp 0x2d7c
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2d98
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21b0
movq %rbx, %rdi
callq 0x22a0