// File: /workspace/github_cpp_makefile_star2_O1/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 0x6407(%rip), %r15      # 0x8fe0
leaq 0x28(%rsp), %r12
leaq 0x346f(%rip), %r13      # 0x6054
leaq 0x346d(%rip), %rbp      # 0x6059
movq 0x63dd(%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 0x2d3f
movq %r12, %rdi
movq %rbp, %rsi
callq 0x2090
testl %eax, %eax
je 0x2c9a
movq %r12, %rdi
leaq 0x3437(%rip), %rsi      # 0x6078
callq 0x2090
testl %eax, %eax
je 0x2cb3
movq %r12, %rdi
leaq 0x342a(%rip), %rsi      # 0x607e
callq 0x2090
testl %eax, %eax
je 0x2cca
movq %r12, %rdi
leaq 0x341b(%rip), %rsi      # 0x6082
callq 0x2090
testl %eax, %eax
je 0x2cd7
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x2909
movq 0x10(%rsp), %rdi
callq 0x2809
testb %al, %al
je 0x2ce4
movq %rbx, %rdi
leaq 0x10(%rsp), %rsi
callq 0x3166
jmp 0x2cf1
movl $0x19, %edx
movq %r14, %rdi
leaq 0x33b5(%rip), %rsi      # 0x605e
callq 0x21e0
jmp 0x2bf3
movq %rbx, %rdi
callq 0x2ea4
movq 0x8(%rsp), %rdi
callq 0x35a0
jmp 0x2bf3
movq %rbx, %rdi
callq 0x2f1c
jmp 0x2bf3
movq %rbx, %rdi
callq 0x30f8
jmp 0x2bf3
movq %rbx, %rdi
leaq 0x10(%rsp), %rsi
callq 0x3346
testb %al, %al
jne 0x2d30
movl $0xc, %edx
movq %r14, %rdi
leaq 0x3383(%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 0x2aa8
jmp 0x2bf3
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2d5b
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 0x2d7d
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2aa8
jmp 0x2d80
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2d9c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21b0
movq %rbx, %rdi
callq 0x22a0