// File: /workspace/github_cpp_makefile_star2_O1/mororo18[P]simplex-method/src/model.cpp
// Function: Model::obj_func::output_generate[abi:cxx11]()
std::string Model::obj_func::output_generate(){
    std::string output;

    std::string func = "Z = ";
    std::string opt1;
    std::string opt2;
    std::string opt3;
    
    //std::cout << func;
    //output.append(func);
    output = func;

    for(int i = 0; i < coef.size(); i++){
        std::stringstream coef_stream;
        coef_stream << std::setprecision(OUT_PRECISION) << coef[i];

        std::string coef_str = coef_stream.str();

        opt1 = " " + coef_str + " " + var_name[i];
        opt2 = " + " + coef_str + " " + var_name[i];
        opt3 = coef_str + " " + var_name[i];

        if(coef[i] < 0){
            //std::cout << opt1;
            output.append(opt1);
        }else if(i != 0){
            //std::cout << " + " << coef[i] << " " << var_name[i];
            //std::cout << opt2;
            output.append(opt2);
        }else{
            //std::cout << coef[i] << " " << var_name[i];
            //std::cout << opt3;
            output.append(opt3);
        }
    }
    //std::cout << std::endl;
    output.append("\n");

    //std::cout << output;

    return output;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x298, %rsp            # imm = 0x298
movq %rsi, %r14
movq %rdi, %r15
leaq 0x10(%rdi), %rax
movq %rax, 0x48(%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0x80(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x401e(%rip), %rsi      # 0x105b4
leaq 0x401b(%rip), %rdx      # 0x105b8
leaq 0x70(%rsp), %rdi
callq 0x4d5a
leaq 0x60(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xe0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x100(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x70(%rsp), %rsi
movq %r15, 0x20(%rsp)
movq %r15, %rdi
callq 0x2120
movq 0x28(%r14), %rax
cmpq 0x20(%r14), %rax
je 0xc9f0
movl $0x1, %r12d
xorl %r13d, %r13d
leaq 0x110(%rsp), %rbx
leaq 0x90(%rsp), %rbp
movq %rbx, %rdi
callq 0x2150
movq 0x120(%rsp), %rax
movq -0x18(%rax), %rax
movq $0x5, 0x128(%rsp,%rax)
movq 0x20(%r14), %rax
movsd (%rax,%r13,8), %xmm0
leaq 0x120(%rsp), %rdi
callq 0x22d0
leaq 0xb0(%rsp), %r15
movq %r15, %rdi
leaq 0x128(%rsp), %rsi
callq 0x22c0
movq %rbp, %rdi
movq %rbp, %rbx
leaq 0x3da9(%rip), %rbp      # 0x1041a
movq %rbp, %rsi
movq %r15, %rdx
callq 0xd81b
movq %rbx, %r15
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x2330
leaq 0x10(%rsp), %rsi
movq %rsi, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc6b0
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0xc6b8
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %r15, %rbp
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%r14), %rax
movq -0x8(%rax,%r12,8), %rsi
movq (%rax,%r12,8), %rdx
movq %rsp, %rdi
callq 0x20a0
leaq 0x38(%rsp), %r15
movq %r15, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc710
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0xc719
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x50(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2250
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0xc74f
callq 0x21c0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xc762
callq 0x21c0
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xc77c
callq 0x21c0
movq %rbp, %rdi
leaq 0x3c96(%rip), %rsi      # 0x1041c
leaq 0xb0(%rsp), %rdx
callq 0xd81b
movq %rbp, %rdi
leaq 0x3c7d(%rip), %rsi      # 0x1041a
callq 0x2330
leaq 0x10(%rsp), %rsi
movq %rsi, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc7c8
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0xc7d0
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%r14), %rax
movq -0x8(%rax,%r12,8), %rsi
movq (%rax,%r12,8), %rdx
movq %rsp, %rdi
callq 0x20a0
leaq 0x38(%rsp), %r15
movq %r15, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc825
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0xc82e
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xd0(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2250
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0xc867
callq 0x21c0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xc87a
callq 0x21c0
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xc894
callq 0x21c0
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
addq %rsi, %rdx
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x4cae
movq %rbx, %rdi
leaq 0x3b55(%rip), %rsi      # 0x1041a
callq 0x2330
movq 0x8(%r14), %rax
movq -0x8(%rax,%r12,8), %rsi
movq (%rax,%r12,8), %rdx
movq %rbx, %rdi
callq 0x20a0
leaq 0x38(%rsp), %r15
movq %r15, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0xf0(%rsp), %rbx
je 0xc90f
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0xc918
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
leaq 0x28(%rsp), %rsi
callq 0x2250
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0xc94c
callq 0x21c0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xc95f
callq 0x21c0
testq %r13, %r13
leaq 0xd0(%rsp), %rax
cmoveq %rbx, %rax
movq 0x20(%r14), %rcx
xorpd %xmm0, %xmm0
ucomisd (%rcx,%r13,8), %xmm0
leaq 0x50(%rsp), %rcx
cmovaq %rcx, %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x20(%rsp), %rdi
callq 0x20a0
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0xc9b0
callq 0x21c0
leaq 0x110(%rsp), %rbx
movq %rbx, %rdi
movq 0x85f6(%rip), %rsi      # 0x14fb8
callq 0x2170
leaq 0x190(%rsp), %rdi
callq 0x20b0
movq 0x28(%r14), %rax
subq 0x20(%r14), %rax
incq %r13
sarq $0x3, %rax
addq $0x4, %r12
cmpq %r13, %rax
ja 0xc615
leaq 0x3ad9(%rip), %rsi      # 0x104d0
movq 0x20(%rsp), %rdi
callq 0x2330
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0xca1b
callq 0x21c0
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
leaq 0x80(%rsp), %rbx
leaq 0x60(%rsp), %r14
je 0xca42
callq 0x21c0
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0xca51
callq 0x21c0
movq 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0xca60
callq 0x21c0
movq 0x20(%rsp), %rax
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0xcb9d
jmp 0xca81
movq %rax, %rbx
leaq 0x80(%rsp), %r14
leaq 0x60(%rsp), %r15
jmp 0xcb46
jmp 0xca98
movq %rax, %rbx
leaq 0x80(%rsp), %r14
leaq 0x60(%rsp), %r15
jmp 0xcb25
jmp 0xcafb
jmp 0xcab2
jmp 0xcab7
jmp 0xcafb
movq %rax, %rbx
jmp 0xcacd
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xcacd
callq 0x21c0
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
jmp 0xcaef
jmp 0xcafb
jmp 0xcae3
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xcafe
callq 0x21c0
jmp 0xcafe
movq %rax, %rbx
leaq 0x80(%rsp), %r14
leaq 0x60(%rsp), %r15
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0xcb25
callq 0x21c0
movq 0x848c(%rip), %rsi      # 0x14fb8
leaq 0x110(%rsp), %rdi
callq 0x2170
leaq 0x190(%rsp), %rdi
callq 0x20b0
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0xcb60
callq 0x21c0
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0xcb7a
callq 0x21c0
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0xcb89
callq 0x21c0
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0xcb98
callq 0x21c0
movq 0x20(%rsp), %r15
movq 0x48(%rsp), %rax
movq (%r15), %rdi
cmpq %rax, %rdi
je 0xcbaf
callq 0x21c0
movq %rbx, %rdi
callq 0x2310
nop