// File: /workspace/github_cpp_makefile_star2_O2/pointwiseproduct[P]untyped_lambda/untyped_lambda.cpp
// Function: launch_interpreter()
void launch_interpreter(){
    while(true){
        internal_data::lines.clear();
        std::string line;
        std::getline(std::cin, line);
        if(line == "exit" || line == "quit"){
            break;
        }

        try{
            std::vector<char> line_raw(line.begin(), line.end());
            auto b = tokenize_phase2::tokenize(tokenize_phase1::tokenize(line_raw));
            if(!parsing_phase::lines(b.begin())){
                throw parsing_failed();
            }
            for(auto &i : internal_data::lines){
                bool mod;
                std::unique_ptr<internal_data::expr> q(i->replace(internal_data::expr::variable_map(), internal_data::assignment_table, mod));
                internal_data::global_variable_replace(q);

                while(true){
                    try{
                        int nest_level = 0;
                        if(internal_data::lo_most_reduction(q)){
                            std::cout << " = " << q->to_str() << "." << std::endl;
                            throw internal_data::step_out();
                        }
                    }catch(internal_data::step_out){
                        std::cout << " = " << q->to_str() << "." << std::endl;
                        if(waiting() == 'c'){
                            break;
                        }
                        continue;
                    }
                    break;
                }
            }
        }catch(app_exception e){
            std::cerr << e.what() << std::endl;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
leaq 0x58(%rsp), %r15
leaq 0x18(%rsp), %r14
leaq 0x38(%rsp), %r12
leaq 0x50(%rsp), %r13
leaq 0x10(%rsp), %rbx
leaq 0x9678(%rip), %rdi      # 0xe288
callq 0x5a46
leaq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
andq $0x0, 0x20(%rsp)
movb $0x0, 0x28(%rsp)
movq 0x93a7(%rip), %rdi      # 0xdfd8
movq %r14, %rsi
callq 0x3060
movq %r14, %rdi
leaq 0x44a8(%rip), %rsi      # 0x90eb
callq 0x5bb0
testb %al, %al
jne 0x4fca
movq %r14, %rdi
leaq 0x4496(%rip), %rsi      # 0x90f0
callq 0x5bb0
testb %al, %al
jne 0x4fca
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
movq %r13, %rcx
callq 0x5bbe
movq %r13, %rdi
movq %r12, %rsi
callq 0x3863
leaq 0x80(%rsp), %rdi
movq %r13, %rsi
callq 0x3b10
movq %r13, %rdi
callq 0x73da
movq 0x80(%rsp), %rdi
callq 0x4ba7
testb %al, %al
je 0x4e7f
movq 0x95ca(%rip), %r14      # 0xe288
movq 0x95cb(%rip), %r12      # 0xe290
cmpq %r12, %r14
je 0x4e4a
movq (%r14), %rdi
andq $0x0, 0x60(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq %r15, 0x68(%rsp)
movq %r15, 0x70(%rsp)
andq $0x0, 0x78(%rsp)
movq (%rdi), %rax
movq %r13, %rsi
leaq 0x955c(%rip), %rdx      # 0xe258
leaq 0xf(%rsp), %rcx
callq *0x10(%rax)
movq %rax, 0x10(%rsp)
movq %r13, %rdi
callq 0x5ea4
movq %rbx, %rdi
callq 0x3d52
movq %rbx, %rdi
callq 0x3dec
testb %al, %al
je 0x4e2d
movq 0x9298(%rip), %rdi      # 0xdfc8
leaq 0x43be(%rip), %rsi      # 0x90f5
callq 0x3210
movq %rax, %rbp
movq 0x10(%rsp), %rsi
movq (%rsi), %rax
movq %r13, %rdi
callq *0x20(%rax)
movq %rbp, %rdi
movq %r13, %rsi
callq 0x31f0
movq %rax, %rdi
leaq 0x452b(%rip), %rsi      # 0x928d
callq 0x3210
movq %rax, %rdi
callq 0x3140
movq %r13, %rdi
callq 0x3130
pushq $0x1
popq %rdi
callq 0x3150
movq %rax, %rdi
leaq 0x8daf(%rip), %rsi      # 0xdb38
xorl %edx, %edx
callq 0x3360
jmp 0x4fe6
movq %rdx, (%rsp)
movq %rax, %rbp
movq %r13, %rdi
callq 0x3130
movq (%rsp), %rdx
jmp 0x4daf
jmp 0x4dac
movq %rax, %rbp
cmpl $0x2, %edx
jne 0x4e76
movq %rbp, %rdi
callq 0x3100
movq 0x9201(%rip), %rdi      # 0xdfc8
leaq 0x4327(%rip), %rsi      # 0x90f5
callq 0x3210
movq %rax, (%rsp)
movq 0x10(%rsp), %rbp
movq (%rbp), %rax
movq %r13, %rdi
movq %rbp, %rsi
callq *0x20(%rax)
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x31f0
movq %rax, %rdi
leaq 0x448e(%rip), %rsi      # 0x928d
callq 0x3210
movq %rax, %rdi
callq 0x3140
movq %r13, %rdi
callq 0x3130
callq 0x32f0
movl %eax, (%rsp)
callq 0x3350
cmpl $0x63, (%rsp)
jne 0x4d19
jmp 0x4e37
movq 0x10(%rsp), %rbp
testq %rbp, %rbp
je 0x4e41
movq (%rbp), %rax
movq %rbp, %rdi
callq *0x38(%rax)
addq $0x8, %r14
jmp 0x4cc5
leaq 0x80(%rsp), %rdi
callq 0x7536
leaq 0x38(%rsp), %r12
movq %r12, %rdi
callq 0x737e
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x3130
jmp 0x4c09
movq %rdx, (%rsp)
jmp 0x4f45
pushq $0x10
popq %rdi
callq 0x3150
movq %rax, %rbp
movq %rax, %rdi
callq 0x5bf0
movq %rbp, %rdi
leaq 0x8c84(%rip), %rsi      # 0xdb20
movq 0x911d(%rip), %rdx      # 0xdfc0
callq 0x3360
jmp 0x4fe6
jmp 0x4f3e
movq %rdx, (%rsp)
movq %rax, %rbp
movq %r13, %rdi
callq 0x3130
jmp 0x4ecc
jmp 0x4ec5
movq %rdx, (%rsp)
movq %rax, %rbp
callq 0x3350
jmp 0x4f45
movq %rdx, (%rsp)
movq %rax, %rbp
jmp 0x4f32
movq %rdx, (%rsp)
movq %rbp, %rdi
movq %rax, %rbp
callq 0x31b0
jmp 0x4f32
movq %rdx, (%rsp)
movq %rax, %rbp
jmp 0x4f5f
movq %rdx, (%rsp)
movq %rax, %rbp
movq %r13, %rdi
callq 0x73da
jmp 0x4f0e
movq %rdx, (%rsp)
movq %rax, %rbp
leaq 0x18(%rsp), %r14
leaq 0x38(%rsp), %r12
jmp 0x4f6c
movq %rdx, (%rsp)
movq %rax, %rbp
jmp 0x4f74
movq %rdx, (%rsp)
movq %rax, %rbp
movq %r13, %rdi
callq 0x5ea4
leaq 0x18(%rsp), %r14
leaq 0x38(%rsp), %r12
jmp 0x4f5f
movq %rdx, (%rsp)
movq %rax, %rbp
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
leaq 0x18(%rsp), %r14
leaq 0x38(%rsp), %r12
je 0x4f5f
movq (%rdi), %rax
callq *0x38(%rax)
leaq 0x80(%rsp), %rdi
callq 0x7536
movq %r12, %rdi
callq 0x737e
cmpl $0x1, (%rsp)
jne 0x5009
movq %rbp, %rdi
callq 0x3270
movq %r13, %rdi
movq %rax, %rsi
callq 0x5c50
movq %rbp, %rdi
callq 0x3100
movq %r13, %rdi
callq 0x32c0
movq 0x9048(%rip), %rdi      # 0xdff0
movq %rax, %rsi
callq 0x3210
movq %rax, %rdi
callq 0x3140
movq %r13, %rdi
callq 0x33d8
callq 0x3350
jmp 0x4e69
leaq 0x18(%rsp), %rdi
callq 0x3130
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4ffe
jmp 0x5006
movq %rax, %rbp
leaq 0x50(%rsp), %rdi
callq 0x33d8
callq 0x3350
jmp 0x5009
movq %rax, %rdi
callq 0x57b3
movq %rax, %rbp
leaq 0x18(%rsp), %rdi
callq 0x3130
movq %rbp, %rdi
callq 0x3370