// File: /workspace/github_cpp_makefile_star2_O2/ynilu[P]elastic/auxiliary.cpp
// Function: Aux_graph::Aux_graph(Auxiliary_info&)
Aux_graph::Aux_graph(Auxiliary_info& a_info)
{
    // reserve space for all possible auxiliary nodes
    adding_node_list.reserve(a_info.num_nodes);
    dropping_node_list.reserve(a_info.num_nodes);
    OFDM_WOB_virtual_transmitting_node_list.reserve(a_info.num_nodes);
    OFDM_WOB_virtual_receiving_node_list.reserve(a_info.num_nodes);
    OFDM_WB_virtual_transmitting_node_list.reserve(a_info.num_nodes);
    OFDM_WB_virtual_receiving_node_list.reserve(a_info.num_nodes);
    OFDM_virtual_transmitting_node_list.reserve(a_info.num_nodes);
    OFDM_virtual_receiving_node_list.reserve(a_info.num_nodes);
    OTDM_virtual_transmitting_node_list.reserve(a_info.num_nodes);
    OTDM_virtual_receiving_node_list.reserve(a_info.num_nodes);

    Aux_node* a_node;   // adding node
    Aux_node* d_node;   // dropping node
    Aux_node* OFDM_WOB_v_t_node; // OFDM_WOB virtual transmitting node
    Aux_node* OFDM_WOB_v_r_node; // OFDM_WOB virtual receiving node
    Aux_node* OFDM_WB_v_t_node; // OFDM_WB virtual transmitting node
    Aux_node* OFDM_WB_v_r_node; // OFDM_WB virtual receiving node
    Aux_node* OFDM_v_t_node; // OFDM virtual transmitting node
    Aux_node* OFDM_v_r_node; // OFDM virtual receiving node
    Aux_node* OTDM_v_t_node; // OTDM virtual transmitting node
    Aux_node* OTDM_v_r_node; // OTDM virtual receiving node

    for(int phy_node_i = 0; phy_node_i < a_info.num_nodes; phy_node_i++)
    {
        a_node = create_aux_node(phy_node_i, Aux_node::adding_node);
        adding_node_list.push_back(a_node);
        d_node = create_aux_node(phy_node_i, Aux_node::dropping_node);
        dropping_node_list.push_back(d_node);

        OFDM_WOB_v_t_node = create_aux_node(phy_node_i, Aux_node::virtual_transmitting_node);
        OFDM_WOB_virtual_transmitting_node_list.push_back(OFDM_WOB_v_t_node);
        OFDM_WOB_v_r_node = create_aux_node(phy_node_i, Aux_node::virtual_receiving_node);
        OFDM_WOB_virtual_receiving_node_list.push_back(OFDM_WOB_v_r_node);

        OFDM_WB_v_t_node = create_aux_node(phy_node_i, Aux_node::virtual_transmitting_node);
        OFDM_WB_virtual_transmitting_node_list.push_back(OFDM_WB_v_t_node);
        OFDM_WB_v_r_node = create_aux_node(phy_node_i, Aux_node::virtual_receiving_node);
        OFDM_WB_virtual_receiving_node_list.push_back(OFDM_WB_v_r_node);

        OFDM_v_t_node = create_aux_node(phy_node_i, Aux_node::virtual_transmitting_node);
        OFDM_virtual_transmitting_node_list.push_back(OFDM_v_t_node);
        OFDM_v_r_node = create_aux_node(phy_node_i, Aux_node::virtual_receiving_node);
        OFDM_virtual_receiving_node_list.push_back(OFDM_v_r_node);

        OTDM_v_t_node = create_aux_node(phy_node_i, Aux_node::virtual_transmitting_node);
        OTDM_virtual_transmitting_node_list.push_back(OTDM_v_t_node);
        OTDM_v_r_node = create_aux_node(phy_node_i, Aux_node::virtual_receiving_node);
        OTDM_virtual_receiving_node_list.push_back(OTDM_v_r_node);


        create_aux_link(d_node, a_node, a_info.OEO_weight, Aux_link::grooming_link);

        create_aux_link(a_node, OFDM_WOB_v_t_node, a_info.used_OFDM_transceiver_weight, Aux_link::adding_link);
        create_aux_link(OFDM_WOB_v_r_node, d_node, a_info.used_OFDM_transceiver_weight, Aux_link::dropping_link);

        create_aux_link(a_node, OFDM_WB_v_t_node, a_info.used_OFDM_transceiver_weight, Aux_link::adding_link);
        create_aux_link(OFDM_WB_v_r_node, d_node, a_info.OFDM_transceiver_weight, Aux_link::virtual_dropping_link);

        create_aux_link(a_node, OFDM_v_t_node, a_info.OFDM_transceiver_weight, Aux_link::virtual_adding_link);
        create_aux_link(OFDM_v_r_node, d_node, a_info.OFDM_transceiver_weight, Aux_link::virtual_dropping_link);

        create_aux_link(a_node, OTDM_v_t_node, a_info.transceiver_weight, Aux_link::virtual_adding_link);
        create_aux_link(OTDM_v_r_node, d_node, a_info.transceiver_weight, Aux_link::virtual_dropping_link);
    }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r13
movq %rdi, %r15
leaq 0xa458(%rip), %rax      # 0x17d10
movq %rax, (%rdi)
leaq 0x8(%rdi), %rbx
leaq 0x20(%rdi), %rax
movq %rax, 0x48(%rsp)
leaq 0x38(%rdi), %rax
movq %rax, 0x40(%rsp)
leaq 0x50(%rdi), %rax
movq %rax, 0x38(%rsp)
leaq 0x68(%rdi), %rax
movq %rax, 0x30(%rsp)
leaq 0x80(%rdi), %rax
movq %rax, 0x28(%rsp)
leaq 0x98(%rdi), %rax
movq %rax, 0x20(%rsp)
leaq 0xb0(%rdi), %rax
movq %rax, 0x18(%rsp)
leaq 0xc8(%rdi), %rax
movq %rax, 0x10(%rsp)
addq $0xe0, %r15
movl $0xf0, %edx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2100
movslq 0x4(%r13), %rsi
movq %rbx, 0x50(%rsp)
movq %rbx, %rdi
callq 0x675c
movslq 0x4(%r13), %rsi
movq 0x48(%rsp), %rdi
callq 0x675c
movslq 0x4(%r13), %rsi
movq 0x40(%rsp), %rdi
callq 0x675c
movslq 0x4(%r13), %rsi
movq 0x38(%rsp), %rdi
callq 0x675c
movslq 0x4(%r13), %rsi
movq 0x30(%rsp), %rdi
callq 0x675c
movslq 0x4(%r13), %rsi
movq 0x28(%rsp), %rdi
callq 0x675c
movslq 0x4(%r13), %rsi
movq 0x20(%rsp), %rdi
callq 0x675c
movslq 0x4(%r13), %rsi
movq 0x18(%rsp), %rdi
callq 0x675c
movslq 0x4(%r13), %rsi
movq 0x10(%rsp), %rdi
callq 0x675c
movslq 0x4(%r13), %rsi
movq %r15, %rdi
callq 0x675c
xorl %ebp, %ebp
pushq $0x4
popq %r14
pushq $0x5
popq %r12
pushq $0x7
popq %rbx
cmpl 0x4(%r13), %ebp
jge 0xdbe5
movl %ebp, %esi
xorl %edx, %edx
callq 0xdc66
movq %rax, 0x8(%rsp)
movq 0x50(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x67f2
movl %ebp, %esi
pushq $0x1
popq %rdx
callq 0xdc66
movq %rax, (%rsp)
movq 0x48(%rsp), %rdi
movq %rsp, %rsi
callq 0x67f2
movl %ebp, %esi
movl %r14d, %edx
callq 0xdc66
movq %rax, 0x90(%rsp)
movq 0x40(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x67f2
movl %ebp, %esi
movl %r12d, %edx
callq 0xdc66
movq %rax, 0x88(%rsp)
movq 0x38(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x67f2
movl %ebp, %esi
movl %r14d, %edx
callq 0xdc66
movq %rax, 0x80(%rsp)
movq 0x30(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x67f2
movl %ebp, %esi
movl %r12d, %edx
callq 0xdc66
movq %rax, 0x78(%rsp)
movq 0x28(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x67f2
movl %ebp, %esi
movl %r14d, %edx
callq 0xdc66
movq %rax, 0x70(%rsp)
movq 0x20(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x67f2
movl %ebp, %esi
movl %r12d, %edx
callq 0xdc66
movq %rax, 0x68(%rsp)
movq 0x18(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x67f2
movl %ebp, %esi
movl %r14d, %edx
callq 0xdc66
movq %rax, 0x60(%rsp)
movq 0x10(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x67f2
movl %ebp, %esi
movl %r12d, %edx
callq 0xdc66
movq %rax, 0x58(%rsp)
movq %r15, %rdi
leaq 0x58(%rsp), %rsi
callq 0x67f2
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movsd 0x28(%r13), %xmm0
pushq $0x2
popq %rcx
callq 0xdc98
movq 0x8(%rsp), %rsi
movq 0x90(%rsp), %rdx
movsd 0x20(%r13), %xmm0
pushq $0x3
popq %rcx
callq 0xdc98
movq 0x88(%rsp), %rsi
movq (%rsp), %rdx
movsd 0x20(%r13), %xmm0
movl %r14d, %ecx
callq 0xdc98
movq 0x8(%rsp), %rsi
movq 0x80(%rsp), %rdx
movsd 0x20(%r13), %xmm0
pushq $0x3
popq %rcx
callq 0xdc98
movq 0x78(%rsp), %rsi
movq (%rsp), %rdx
movsd 0x18(%r13), %xmm0
movl %ebx, %ecx
callq 0xdc98
movq 0x8(%rsp), %rsi
movq 0x70(%rsp), %rdx
movsd 0x18(%r13), %xmm0
pushq $0x6
popq %rcx
callq 0xdc98
movq 0x68(%rsp), %rsi
movq (%rsp), %rdx
movsd 0x18(%r13), %xmm0
movl %ebx, %ecx
callq 0xdc98
movq 0x8(%rsp), %rsi
movq 0x60(%rsp), %rdx
movsd 0x8(%r13), %xmm0
pushq $0x6
popq %rcx
callq 0xdc98
movq 0x58(%rsp), %rsi
movq (%rsp), %rdx
movsd 0x8(%r13), %xmm0
movl %ebx, %ecx
callq 0xdc98
incl %ebp
jmp 0xd9c3
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xdbf9
movq %rax, %rbx
movq %r15, %rdi
callq 0xe000
movq 0x10(%rsp), %rdi
callq 0xe000
movq 0x18(%rsp), %rdi
callq 0xe000
movq 0x20(%rsp), %rdi
callq 0xe000
movq 0x28(%rsp), %rdi
callq 0xe000
movq 0x30(%rsp), %rdi
callq 0xe000
movq 0x38(%rsp), %rdi
callq 0xe000
movq 0x40(%rsp), %rdi
callq 0xe000
movq 0x48(%rsp), %rdi
callq 0xe000
movq 0x50(%rsp), %rdi
callq 0xe000
movq %rbx, %rdi
callq 0x2320