// File: /workspace/github_cpp_makefile_star2_O3/kazel1990[P]Inception-v4/generator.cpp
// Function: create_loss(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void create_loss(std::string prv)
{
    std::string cur = "average_pool";
    //pooling
    print("layer {");
    sprintf(buf,"name: \"%s\"",cur.c_str());
    print(buf);
    print("type: \"Pooling\"");
    in_out(prv, cur);

    print("pooling_param {");
    print("pool: AVE");
    print("global_pooling: true");
    print("}");

    print("}");

    //dropout
    prv = cur;
    cur = "dropout";
    print("layer {");
    sprintf(buf,"name: \"%s\"",cur.c_str());
    print(buf);
    print("type: \"Dropout\"");
    in_out(prv, cur);

    print("dropout_param {");
    sprintf(buf,"dropout_ratio: %s",dropout_ratio);
    print(buf);
    print("}");

    print("}");

    //classifier
    prv = cur;
    cur = "classifier";
    print("layer {");
    sprintf(buf,"name: \"%s\"",cur.c_str());
    print(buf);
    print("type: \"InnerProduct\"");
    in_out(prv, cur);

    print("param {");
    print("lr_mult: 1");
    print("decay_mult: 1");
    print("}");

    print("param {");
    print("lr_mult: 2");
    print("decay_mult: 0");
    print("}");

    print("inner_product_param {");
    print("num_output: 1000");

    print("weight_filler {");
    print("type: \"xavier\"");
    print("}");

    print("bias_filler {");
    print("type: \"constant\"");
    print("value: 0");
    print("}");

    print("}");

    print("}");

    //loss
    prv = cur;
    cur = "loss/loss";
    print("layer {");
    sprintf(buf,"name: \"%s\"",cur.c_str());
    print(buf);
    print("type: \"SoftmaxWithLoss\"");
    in_out({prv, "label"}, cur);
    print("loss_weight: 1");
    print("}");

    cur = "loss/top-1";
    print("layer {");
    sprintf(buf,"name: \"%s\"",cur.c_str());
    print(buf);
    print("type: \"Accuracy\"");
    in_out({prv, "label"}, cur);
    print("include {");
    print("phase: TEST");
    print("}");
    print("}");

    cur = "loss/top-5";
    print("layer {");
    sprintf(buf,"name: \"%s\"",cur.c_str());
    print(buf);
    print("type: \"Accuracy\"");
    in_out({prv, "label"}, cur);
    print("include {");
    print("phase: TEST");
    print("}");
    print("accuracy_param {");
    print("top_k: 5");
    print("}");
    print("}");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movq %rdi, %rbx
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x24bf(%rip), %rsi      # 0xe5df
leaq 0x24c4(%rip), %rdx      # 0xe5eb
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0xd23e
leaq 0x1ee3(%rip), %rdi      # 0xe01e
callq 0x13cc
movq (%r14), %rdx
leaq 0x5fb6(%rip), %r14      # 0x12100
leaq 0x1ed5(%rip), %rsi      # 0xe026
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq %r14, %rdi
callq 0x13cc
leaq 0x2079(%rip), %rdi      # 0xe1e3
callq 0x13cc
leaq 0xc0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %rdi
callq 0xd0c8
leaq 0x1c8(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1b8(%rsp), %rdi
callq 0xd0c8
leaq 0xb0(%rsp), %rdi
leaq 0x1b8(%rsp), %r14
movq %r14, %rsi
callq 0x14c0
movq (%r14), %rdi
cmpq %r13, %rdi
je 0xc1e8
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x10f0
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0xc205
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x10f0
leaq 0x1fe7(%rip), %rdi      # 0xe1f3
callq 0x13cc
leaq 0x23d4(%rip), %rdi      # 0xe5ec
callq 0x13cc
leaq 0x23d2(%rip), %rdi      # 0xe5f6
callq 0x13cc
leaq 0x1e2e(%rip), %r14      # 0xe05e
movq %r14, %rdi
callq 0x13cc
movq %r14, %rdi
callq 0x13cc
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x10a0
leaq 0x10(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x23ae(%rip), %rcx      # 0xe60b
movl $0x7, %r8d
xorl %esi, %esi
callq 0x1140
leaq 0x1dad(%rip), %rdi      # 0xe01e
callq 0x13cc
movq 0x10(%rsp), %rdx
leaq 0x5e7e(%rip), %r14      # 0x12100
leaq 0x1d9d(%rip), %rsi      # 0xe026
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq %r14, %rdi
callq 0x13cc
leaq 0x2371(%rip), %rdi      # 0xe613
callq 0x13cc
leaq 0xa0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0xd0c8
leaq 0x1a8(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x198(%rsp), %rdi
callq 0xd0c8
leaq 0x90(%rsp), %rdi
leaq 0x198(%rsp), %r14
movq %r14, %rsi
callq 0x14c0
movq (%r14), %rdi
cmpq %r13, %rdi
je 0xc320
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x10f0
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0xc33d
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x10f0
leaq 0x22df(%rip), %rdi      # 0xe623
callq 0x13cc
leaq 0x5db0(%rip), %r14      # 0x12100
leaq 0x22dc(%rip), %rsi      # 0xe633
leaq 0x2516(%rip), %rdx      # 0xe874
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq %r14, %rdi
callq 0x13cc
leaq 0x1ce7(%rip), %r14      # 0xe05e
movq %r14, %rdi
callq 0x13cc
movq %r14, %rdi
callq 0x13cc
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x10a0
leaq 0x10(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x22a1(%rip), %rcx      # 0xe645
movl $0xa, %r8d
xorl %esi, %esi
callq 0x1140
leaq 0x1c66(%rip), %rdi      # 0xe01e
callq 0x13cc
movq 0x10(%rsp), %rdx
leaq 0x5d37(%rip), %r14      # 0x12100
leaq 0x1c56(%rip), %rsi      # 0xe026
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq %r14, %rdi
callq 0x13cc
leaq 0x2267(%rip), %rdi      # 0xe650
callq 0x13cc
leaq 0x80(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0xd0c8
leaq 0x188(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x178(%rsp), %rdi
callq 0xd0c8
leaq 0x70(%rsp), %rdi
leaq 0x178(%rsp), %r14
movq %r14, %rsi
callq 0x14c0
movq (%r14), %rdi
cmpq %r13, %rdi
je 0xc461
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x10f0
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0xc47b
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x10f0
leaq 0x1e46(%rip), %r15      # 0xe2c8
movq %r15, %rdi
callq 0x13cc
leaq 0x1bb4(%rip), %rdi      # 0xe045
callq 0x13cc
leaq 0x1bb3(%rip), %rdi      # 0xe050
callq 0x13cc
leaq 0x1bb5(%rip), %r14      # 0xe05e
movq %r14, %rdi
callq 0x13cc
movq %r15, %rdi
callq 0x13cc
leaq 0x1ba0(%rip), %rdi      # 0xe060
callq 0x13cc
leaq 0x1b9f(%rip), %rdi      # 0xe06b
callq 0x13cc
movq %r14, %rdi
callq 0x13cc
leaq 0x2185(%rip), %rdi      # 0xe665
callq 0x13cc
leaq 0x218f(%rip), %rdi      # 0xe67b
callq 0x13cc
leaq 0x1bf5(%rip), %rdi      # 0xe0ed
callq 0x13cc
leaq 0x1bf9(%rip), %rdi      # 0xe0fd
callq 0x13cc
movq %r14, %rdi
callq 0x13cc
leaq 0x1bfc(%rip), %rdi      # 0xe114
callq 0x13cc
leaq 0x1bfe(%rip), %rdi      # 0xe122
callq 0x13cc
leaq 0x215c(%rip), %rdi      # 0xe68c
callq 0x13cc
movq %r14, %rdi
callq 0x13cc
movq %r14, %rdi
callq 0x13cc
movq %r14, %rdi
callq 0x13cc
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x10a0
leaq 0x10(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x212b(%rip), %rcx      # 0xe695
movl $0x9, %r8d
xorl %esi, %esi
callq 0x1140
leaq 0x1aa0(%rip), %rdi      # 0xe01e
callq 0x13cc
movq 0x10(%rsp), %rdx
leaq 0x5b71(%rip), %r14      # 0x12100
leaq 0x1a90(%rip), %rsi      # 0xe026
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq %r14, %rdi
callq 0x13cc
leaq 0x20f0(%rip), %rdi      # 0xe69f
callq 0x13cc
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rdi
callq 0xd0c8
leaq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x20d1(%rip), %rsi      # 0xe6b7
leaq 0x20cf(%rip), %rdx      # 0xe6bc
callq 0xd23e
leaq 0x100(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x2, %edx
callq 0xd074
leaq 0x168(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x158(%rsp), %rdi
callq 0xd0c8
leaq 0x100(%rsp), %rdi
leaq 0x158(%rsp), %r14
movq %r14, %rsi
callq 0x144c
movq (%r14), %rdi
cmpq %rbp, %rdi
je 0xc664
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x10f0
leaq 0x100(%rsp), %rdi
callq 0xd016
movq $-0x40, %r14
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0xc68d
movq (%r13), %rsi
incq %rsi
callq 0x10f0
addq $-0x20, %r13
addq $0x20, %r14
jne 0xc678
leaq 0x201f(%rip), %rdi      # 0xe6bd
callq 0x13cc
leaq 0x19b4(%rip), %rdi      # 0xe05e
callq 0x13cc
leaq 0x10(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x200d(%rip), %rcx      # 0xe6cc
movl $0xa, %r8d
xorl %esi, %esi
callq 0x1140
leaq 0x194b(%rip), %rdi      # 0xe01e
callq 0x13cc
movq 0x10(%rsp), %rdx
leaq 0x5a1c(%rip), %r14      # 0x12100
leaq 0x193b(%rip), %rsi      # 0xe026
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq %r14, %rdi
callq 0x13cc
leaq 0x1fd3(%rip), %rdi      # 0xe6d7
callq 0x13cc
leaq 0x30(%rsp), %rdi
movq %r15, (%rdi)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
callq 0xd0c8
leaq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1f82(%rip), %rsi      # 0xe6b7
leaq 0x1f80(%rip), %rdx      # 0xe6bc
callq 0xd23e
leaq 0xe8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x2, %edx
callq 0xd074
leaq 0x148(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x138(%rsp), %rdi
callq 0xd0c8
leaq 0xe8(%rsp), %rdi
leaq 0x138(%rsp), %r14
movq %r14, %rsi
callq 0x144c
movq (%r14), %rdi
cmpq %rbp, %rdi
je 0xc7b3
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x10f0
leaq 0xe8(%rsp), %rdi
callq 0xd016
movq $-0x40, %r14
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0xc7dc
movq (%r13), %rsi
incq %rsi
callq 0x10f0
addq $-0x20, %r13
addq $0x20, %r14
jne 0xc7c7
leaq 0x1a61(%rip), %rdi      # 0xe24e
callq 0x13cc
leaq 0x1eef(%rip), %rdi      # 0xe6e8
callq 0x13cc
leaq 0x1859(%rip), %r14      # 0xe05e
movq %r14, %rdi
callq 0x13cc
movq %r14, %rdi
callq 0x13cc
leaq 0x10(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x1ecf(%rip), %rcx      # 0xe6f4
movl $0xa, %r8d
xorl %esi, %esi
callq 0x1140
leaq 0x17e5(%rip), %rdi      # 0xe01e
callq 0x13cc
movq 0x10(%rsp), %rdx
leaq 0x58b6(%rip), %r14      # 0x12100
leaq 0x17d5(%rip), %rsi      # 0xe026
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq %r14, %rdi
callq 0x13cc
leaq 0x1e6d(%rip), %rdi      # 0xe6d7
callq 0x13cc
leaq 0x30(%rsp), %rdi
movq %r15, (%rdi)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
callq 0xd0c8
leaq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1e1c(%rip), %rsi      # 0xe6b7
leaq 0x1e1a(%rip), %rdx      # 0xe6bc
callq 0xd23e
leaq 0xd0(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x2, %edx
callq 0xd074
leaq 0x128(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x118(%rsp), %rdi
callq 0xd0c8
leaq 0xd0(%rsp), %rdi
leaq 0x118(%rsp), %rbx
movq %rbx, %rsi
callq 0x144c
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0xc919
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x10f0
leaq 0xd0(%rsp), %rdi
callq 0xd016
movq $-0x40, %rbx
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0xc941
movq (%r14), %rsi
incq %rsi
callq 0x10f0
addq $-0x20, %r14
addq $0x20, %rbx
jne 0xc92d
leaq 0x18fc(%rip), %rdi      # 0xe24e
callq 0x13cc
leaq 0x1d8a(%rip), %rdi      # 0xe6e8
callq 0x13cc
leaq 0x16f4(%rip), %rbx      # 0xe05e
movq %rbx, %rdi
callq 0x13cc
leaq 0x1d86(%rip), %rdi      # 0xe6ff
callq 0x13cc
leaq 0x1d8b(%rip), %rdi      # 0xe710
callq 0x13cc
movq %rbx, %rdi
callq 0x13cc
movq %rbx, %rdi
callq 0x13cc
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0xc9b1
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x10f0
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0xd016
jmp 0xc9d8
movq %rax, %rbx
xorl %r15d, %r15d
movq 0x50(%rsp,%r15), %rdi
leaq (%r14,%r15), %rax
cmpq %rdi, %rax
je 0xc9f4
movq (%rax), %rsi
incq %rsi
callq 0x10f0
addq $-0x20, %r15
cmpq $-0x40, %r15
jne 0xc9db
jmp 0xcafd
jmp 0xca91
jmp 0xcafa
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0xd016
jmp 0xca22
movq %rax, %rbx
xorl %r14d, %r14d
movq 0x50(%rsp,%r14), %rdi
leaq (%r14,%r13), %rax
cmpq %rdi, %rax
je 0xca3e
movq (%rax), %rsi
incq %rsi
callq 0x10f0
addq $-0x20, %r14
cmpq $-0x40, %r14
jne 0xca25
jmp 0xcafd
jmp 0xca91
jmp 0xcafa
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0xd016
jmp 0xca69
movq %rax, %rbx
xorl %r14d, %r14d
movq 0x50(%rsp,%r14), %rdi
leaq (%r14,%r13), %rax
cmpq %rdi, %rax
je 0xca85
movq (%rax), %rsi
incq %rsi
callq 0x10f0
addq $-0x20, %r14
cmpq $-0x40, %r14
jne 0xca6c
jmp 0xcafd
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0xcafd
movq 0x40(%rsp), %rsi
jmp 0xcaf0
jmp 0xcafa
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0xcafd
movq 0x80(%rsp), %rsi
jmp 0xcaf0
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0xcafd
movq 0xa0(%rsp), %rsi
jmp 0xcaf0
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0xcafd
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x10f0
jmp 0xcafd
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0xcb14
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x1160