// File: /workspace/github_cpp_makefile_star2_O3/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, %r15
movq %rdi, %r14
leaq 0x10(%rdi), %rax
movq %rax, (%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0x60(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x3eca(%rip), %rsi      # 0x105b4
leaq 0x3ec7(%rip), %rdx      # 0x105b8
leaq 0x50(%rsp), %rdi
callq 0x4d2a
leaq 0xe0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xc0(%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 0x50(%rsp), %rsi
movq %r14, 0x28(%rsp)
movq %r14, %rdi
callq 0x2120
movq 0x28(%r15), %rax
cmpq 0x20(%r15), %rax
je 0xcb71
movl $0x1, %r12d
xorl %r13d, %r13d
leaq 0x110(%rsp), %rbx
leaq 0x70(%rsp), %rbp
movq %rbx, %rdi
callq 0x2150
movq 0x120(%rsp), %rax
movq -0x18(%rax), %rax
movq $0x5, 0x128(%rsp,%rax)
movq 0x20(%r15), %rax
movsd (%rax,%r13,8), %xmm0
leaq 0x120(%rsp), %rdi
callq 0x22d0
leaq 0x90(%rsp), %r14
movq %r14, %rdi
leaq 0x128(%rsp), %rsi
callq 0x22c0
movq %rbp, %rdi
movq %rbp, %rbx
leaq 0x3c55(%rip), %rbp      # 0x1041a
movq %rbp, %rsi
movq %r14, %rdx
callq 0xd9d5
movq %rbx, %r14
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x2330
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc806
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xc80e
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %r14, %rbp
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%r15), %rax
movq -0x8(%rax,%r12,8), %rsi
movq (%rax,%r12,8), %rdx
leaq 0x8(%rsp), %rdi
callq 0x20a0
leaq 0x40(%rsp), %r14
movq %r14, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc868
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0xc871
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xd0(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x2250
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0xc8aa
callq 0x21c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xc8be
callq 0x21c0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xc8d5
callq 0x21c0
movq %rbp, %rdi
leaq 0x3b3d(%rip), %rsi      # 0x1041c
leaq 0x90(%rsp), %rdx
callq 0xd9d5
movq %rbp, %rdi
leaq 0x3b24(%rip), %rsi      # 0x1041a
callq 0x2330
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc923
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xc92b
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%r15), %rax
movq -0x8(%rax,%r12,8), %rsi
movq (%rax,%r12,8), %rdx
leaq 0x8(%rsp), %rdi
callq 0x20a0
leaq 0x40(%rsp), %r14
movq %r14, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc982
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0xc98b
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xb0(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x2250
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0xc9c4
callq 0x21c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xc9d8
callq 0x21c0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xc9ef
callq 0x21c0
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x4c78
movq %rbx, %rdi
leaq 0x39f7(%rip), %rsi      # 0x1041a
callq 0x2330
movq 0x8(%r15), %rax
movq -0x8(%rax,%r12,8), %rsi
movq (%rax,%r12,8), %rdx
movq %rbx, %rdi
callq 0x20a0
leaq 0x40(%rsp), %r14
movq %r14, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0xf0(%rsp), %rbx
je 0xca6d
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0xca76
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
leaq 0x30(%rsp), %rsi
callq 0x2250
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0xcaaa
callq 0x21c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xcabe
callq 0x21c0
testq %r13, %r13
leaq 0xb0(%rsp), %rax
cmoveq %rbx, %rax
leaq 0xb8(%rsp), %rcx
leaq 0xf8(%rsp), %rdx
cmoveq %rdx, %rcx
movq 0x20(%r15), %rdx
xorpd %xmm0, %xmm0
ucomisd (%rdx,%r13,8), %xmm0
leaq 0xd0(%rsp), %rdx
cmovaq %rdx, %rax
movq (%rax), %rsi
leaq 0xd8(%rsp), %rax
cmovaq %rax, %rcx
movq (%rcx), %rdx
movq 0x28(%rsp), %rdi
callq 0x20a0
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xcb31
callq 0x21c0
leaq 0x110(%rsp), %rbx
movq %rbx, %rdi
movq 0x8475(%rip), %rsi      # 0x14fb8
callq 0x2170
leaq 0x190(%rsp), %rdi
callq 0x20b0
movq 0x28(%r15), %rax
subq 0x20(%r15), %rax
incq %r13
sarq $0x3, %rax
addq $0x4, %r12
cmpq %r13, %rax
ja 0xc769
leaq 0x3958(%rip), %rsi      # 0x104d0
movq 0x28(%rsp), %rdi
callq 0x2330
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0xcb9c
callq 0x21c0
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
leaq 0x60(%rsp), %rbx
je 0xcbbb
callq 0x21c0
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0xcbd5
callq 0x21c0
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0xcbe4
callq 0x21c0
movq 0x28(%rsp), %rax
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %r15
jmp 0xcd23
jmp 0xcc09
movq %rax, %rbx
leaq 0x60(%rsp), %r14
movq (%rsp), %r15
jmp 0xccc1
jmp 0xcc1c
movq %rax, %rbx
leaq 0x60(%rsp), %r14
movq (%rsp), %r15
jmp 0xcca0
jmp 0xcc7a
jmp 0xcc32
jmp 0xcc37
jmp 0xcc7a
movq %rax, %rbx
jmp 0xcc4e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xcc4e
callq 0x21c0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
jmp 0xcc6e
jmp 0xcc7a
jmp 0xcc61
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xcc7d
callq 0x21c0
jmp 0xcc7d
movq %rax, %rbx
leaq 0x60(%rsp), %r14
movq (%rsp), %r15
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xcca0
callq 0x21c0
movq 0x8311(%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 0xccdb
callq 0x21c0
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0xccf5
callq 0x21c0
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0xcd0f
callq 0x21c0
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0xcd1e
callq 0x21c0
movq 0x28(%rsp), %r14
movq (%r14), %rdi
cmpq %r15, %rdi
je 0xcd30
callq 0x21c0
movq %rbx, %rdi
callq 0x2310