// File: /workspace/github_cpp_makefile_star2_O1/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 $0xa8, %rsp
leaq 0x28(%rsp), %r14
leaq 0x20(%rsp), %rbp
leaq 0x18(%rsp), %r15
movq 0xa01d(%rip), %r13      # 0xf280
movq 0xa01e(%rip), %r12      # 0xf288
cmpq %r13, %r12
je 0x5297
movq %r13, %rbx
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x5280
movq (%rdi), %rax
callq *0x38(%rax)
movq $0x0, (%rbx)
addq $0x8, %rbx
cmpq %r12, %rbx
jne 0x5272
movq %r13, 0x9ff1(%rip)      # 0xf288
leaq 0x60(%rsp), %r13
movq %r13, 0x50(%rsp)
movq $0x0, 0x58(%rsp)
movb $0x0, 0x60(%rsp)
movq 0x9d22(%rip), %rbx      # 0xefd8
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3200
leaq 0x50(%rsp), %r12
movsbl %al, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3390
movq %r12, %rdi
leaq 0x4e04(%rip), %rsi      # 0xa0eb
callq 0x30c0
testl %eax, %eax
je 0x5558
movq %r12, %rdi
leaq 0x4df2(%rip), %rsi      # 0xa0f0
callq 0x30c0
testl %eax, %eax
je 0x5558
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rcx
callq 0x6780
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x392b
leaq 0x78(%rsp), %rdi
movq %rbp, %rsi
callq 0x3d18
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x5352
callq 0x31f0
movq 0x78(%rsp), %rdi
callq 0x51f3
testb %al, %al
je 0x559b
movq 0x9f15(%rip), %rbx      # 0xf280
movq 0x9f16(%rip), %r12      # 0xf288
cmpq %r12, %rbx
je 0x555c
movq (%rbx), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x20(%rsp)
movq %r14, 0x38(%rsp)
movq %r14, 0x40(%rsp)
movq $0x0, 0x48(%rsp)
movq (%rdi), %rax
movq %rbp, %rsi
leaq 0x9ea0(%rip), %rdx      # 0xf250
leaq 0x17(%rsp), %rcx
callq *0x10(%rax)
movq %rax, 0x18(%rsp)
movq %rbp, %rdi
callq 0x6a4a
movq %r15, %rdi
callq 0x402a
movq %r15, %rdi
callq 0x40c4
testb %al, %al
je 0x553f
movl $0x3, %edx
movq 0x9bdf(%rip), %rdi      # 0xefc8
leaq 0x4d05(%rip), %rsi      # 0xa0f5
callq 0x3260
movq 0x18(%rsp), %rsi
movq (%rsi), %rax
movq %rbp, %rdi
callq *0x20(%rax)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x9bb4(%rip), %rdi      # 0xefc8
callq 0x3260
movl $0x1, %edx
movq %rax, %rdi
leaq 0x4e8f(%rip), %rsi      # 0xa2b7
movq %rax, 0x8(%rsp)
callq 0x3260
movq 0x8(%rsp), %rdi
callq 0x3120
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5450
callq 0x31f0
movl $0x1, %edi
callq 0x3130
movq %rax, %rdi
leaq 0x96d4(%rip), %rsi      # 0xeb38
xorl %edx, %edx
callq 0x3350
jmp 0x5733
movq %rax, %rcx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x54a2
movq %rcx, 0x8(%rsp)
movq %rdx, 0x70(%rsp)
callq 0x31f0
movq 0x70(%rsp), %rdx
movq 0x8(%rsp), %rcx
jmp 0x54a2
jmp 0x549f
movq %rax, %rcx
cmpl $0x2, %edx
jne 0x5673
movq %rcx, %rdi
callq 0x3100
movl $0x3, %edx
movq 0x9b09(%rip), %rdi      # 0xefc8
leaq 0x4c2f(%rip), %rsi      # 0xa0f5
callq 0x3260
movq 0x18(%rsp), %rsi
movq (%rsi), %rax
movq %rbp, %rdi
callq *0x20(%rax)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x9ade(%rip), %rdi      # 0xefc8
callq 0x3260
movl $0x1, %edx
movq %rax, %rdi
leaq 0x4db9(%rip), %rsi      # 0xa2b7
movq %rax, 0x8(%rsp)
callq 0x3260
movq 0x8(%rsp), %rdi
callq 0x3120
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5526
callq 0x31f0
callq 0x32f0
movl %eax, 0x8(%rsp)
callq 0x3340
cmpl $0x63, 0x8(%rsp)
jne 0x53cd
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x554f
movq (%rdi), %rax
callq *0x38(%rax)
addq $0x8, %rbx
jmp 0x5372
xorl %ebx, %ebx
jmp 0x557f
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x556b
callq 0x31f0
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x557d
callq 0x31f0
movb $0x1, %bl
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x558e
callq 0x31f0
testb %bl, %bl
jne 0x525c
jmp 0x5721
movl $0x10, %edi
callq 0x3130
movq %rax, %r13
movq %rax, %rdi
callq 0x67ba
movq %r13, %rdi
leaq 0x9566(%rip), %rsi      # 0xeb20
movq 0x99ff(%rip), %rdx      # 0xefc0
callq 0x3350
jmp 0x5733
movq %rdx, %r12
movq %rax, %rbx
jmp 0x55fc
movq %rdx, %r12
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x55f7
callq 0x31f0
jmp 0x55f7
jmp 0x55f1
movq %rdx, %r12
movq %rax, %rbx
callq 0x3340
leaq 0x60(%rsp), %r13
movq %rbx, %rcx
movq %r12, %rdx
jmp 0x5673
movq %rax, %rcx
jmp 0x5622
movq %rdx, %r12
movq %rax, %rbx
movq %r13, %rdi
callq 0x31a0
movq %r12, %rdx
movq %rbx, %rcx
leaq 0x60(%rsp), %r13
jmp 0x5698
movq %rax, %rcx
jmp 0x5698
movq %rdx, %r12
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x564b
callq 0x31f0
jmp 0x564b
movq %rdx, %r12
movq %rax, %rbx
leaq 0x60(%rsp), %r13
jmp 0x56ad
movq %rdx, %r12
movq %rax, %rbx
jmp 0x56bf
movq %rdx, %r12
movq %rax, %rbx
movq %rbp, %rdi
callq 0x6a4a
movq %r12, %rdx
movq %rbx, %rcx
jmp 0x5698
movq %rax, %rcx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x568f
movq (%rdi), %rax
movq %rcx, %rbx
movq %rdx, %r12
callq *0x38(%rax)
movq %r12, %rdx
movq %rbx, %rcx
movq $0x0, 0x18(%rsp)
movq %rdx, %r12
movq %rcx, %rbx
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x56ad
callq 0x31f0
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x56bf
callq 0x31f0
cmpl $0x1, %r12d
jne 0x5756
movq %rbx, %rdi
callq 0x3290
movq %rbp, %rdi
movq %rax, %rsi
callq 0x32c0
leaq 0x949d(%rip), %rax      # 0xeb80
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
callq 0x3100
movq %rbp, %rdi
callq 0x32d0
movq 0x98f1(%rip), %rdi      # 0xeff0
movq %rax, %rsi
callq 0x3210
movq %rax, %rdi
callq 0x3120
movq %rbp, %rdi
callq 0x33c8
callq 0x3340
jmp 0x557d
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5753
jmp 0x574b
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x33c8
callq 0x3340
jmp 0x5756
movq %rax, %rdi
callq 0x6245
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x576a
callq 0x31f0
movq %rbx, %rdi
callq 0x3360