// File: /workspace/github_cpp_makefile_star2_O2/temelmertcan[P]multgen/src/adders.cpp
// Function: ppx_postprocess(int, int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*&, std::queue<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::deque<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&)
void ppx_postprocess (int size, int& index,
                      string*& g, string*& p, std::queue<string>& verilog){

  verilog.push ("assign OUT[0] = p_0[0];");

  for (int i = 1; i<size; i+=1){

    verilog.push ("assign OUT[" + to_string(i) + "] = p_0[" + to_string(i) + "] ^ " + g[i-1] + ";");
  }

  verilog.push ("assign OUT[" + to_string(size) + "] = " + g[size-1] + ";");

  verilog.push("outdent");
  verilog.push("endmodule");

  verilog.push("");

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %r8, %rbx
movq %rdx, -0x60(%rbp)
movl %edi, %r14d
leaq 0x1e4f5(%rip), %rsi     # 0x32c03
leaq -0x48(%rbp), %rdi
leaq -0x98(%rbp), %rdx
callq 0x20b0
leaq -0x48(%rbp), %rsi
movq %rbx, -0x58(%rbp)
movq %rbx, %rdi
callq 0x120e4
leaq -0x48(%rbp), %rdi
callq 0x20f0
movl %r14d, -0x4c(%rbp)
movslq %r14d, %rax
movq %rax, -0x68(%rbp)
pushq $0x1
popq %rsi
movq $0x0, -0x70(%rbp)
leaq -0xf8(%rbp), %rbx
leaq -0x98(%rbp), %r13
cmpq -0x68(%rbp), %rsi
jge 0x1488b
movq %rbx, %r14
leaq -0x138(%rbp), %r15
movq %r15, %rdi
movq %rsi, -0x78(%rbp)
callq 0x11c73
leaq -0x158(%rbp), %rbx
movq %rbx, %rdi
leaq 0x1e3b4(%rip), %rsi     # 0x32b40
movq %r15, %rdx
callq 0x11d49
leaq -0xb8(%rbp), %rdi
movq %rbx, %rsi
leaq 0x1e476(%rip), %rdx     # 0x32c1b
callq 0x11ba1
leaq -0x118(%rbp), %rbx
movq %rbx, %rdi
movq -0x78(%rbp), %rsi
callq 0x11c73
movq %r14, %r15
movq %r14, %rdi
leaq -0xb8(%rbp), %rsi
movq %rbx, %rdx
callq 0x11bca
leaq -0xd8(%rbp), %r12
movq %r12, %rdi
movq %r15, %rsi
leaq 0x1e43e(%rip), %rdx     # 0x32c24
callq 0x11ba1
movq %r15, %rbx
movq -0x60(%rbp), %rax
movq (%rax), %rdx
addq -0x70(%rbp), %rdx
movq %r13, %rdi
movq %r12, %rsi
callq 0x11d77
leaq -0x48(%rbp), %r15
movq %r15, %rdi
movq %r13, %rsi
leaq 0x1eecc(%rip), %rdx     # 0x336e1
callq 0x11ba1
movq -0x58(%rbp), %rdi
movq %r15, %rsi
callq 0x120e4
movq %r15, %rdi
callq 0x20f0
movq %r13, %rdi
callq 0x20f0
leaq -0xd8(%rbp), %rdi
callq 0x20f0
movq %rbx, %rdi
callq 0x20f0
leaq -0x118(%rbp), %rdi
callq 0x20f0
leaq -0xb8(%rbp), %rdi
callq 0x20f0
leaq -0x158(%rbp), %rdi
callq 0x20f0
leaq -0x138(%rbp), %rdi
callq 0x20f0
movq -0x78(%rbp), %rsi
incq %rsi
addq $0x20, -0x70(%rbp)
jmp 0x1475b
leaq -0xb8(%rbp), %rbx
movq %rbx, %rdi
movl -0x4c(%rbp), %esi
callq 0x11c73
leaq 0x1e29c(%rip), %rsi     # 0x32b40
leaq -0xf8(%rbp), %rdi
movq %rbx, %rdx
callq 0x11d49
leaq 0x1d998(%rip), %rdx     # 0x32252
leaq -0xd8(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0x11ba1
movq -0x58(%rbp), %rbx
movq -0x60(%rbp), %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
shlq $0x5, %rcx
leaq (%rax,%rcx), %rdx
addq $-0x20, %rdx
leaq -0x98(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x11d77
leaq 0x1eddf(%rip), %rdx     # 0x336e1
leaq -0x48(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x11ba1
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x120e4
leaq -0x48(%rbp), %rdi
callq 0x20f0
leaq -0x98(%rbp), %rdi
callq 0x20f0
leaq -0xd8(%rbp), %rdi
callq 0x20f0
leaq -0xf8(%rbp), %rdi
callq 0x20f0
leaq -0xb8(%rbp), %rdi
callq 0x20f0
leaq 0x1d3d0(%rip), %rsi     # 0x31d2e
leaq -0x48(%rbp), %rdi
leaq -0x98(%rbp), %rdx
callq 0x20b0
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x120e4
leaq -0x48(%rbp), %rdi
callq 0x20f0
leaq 0x1d44c(%rip), %rsi     # 0x31dd6
leaq -0x48(%rbp), %rdi
leaq -0x98(%rbp), %rdx
callq 0x20b0
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x120e4
leaq -0x48(%rbp), %rdi
callq 0x20f0
leaq 0x1ec1b(%rip), %rsi     # 0x335d1
leaq -0x48(%rbp), %rdi
leaq -0x98(%rbp), %rdx
callq 0x20b0
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x120e4
leaq -0x48(%rbp), %rdi
callq 0x20f0
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x14a49
jmp 0x14a55
jmp 0x14a49
jmp 0x14a55
jmp 0x14a49
jmp 0x14a55
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x20f0
jmp 0x14a0a
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x20f0
jmp 0x14a1b
movq %rax, %rbx
leaq -0xd8(%rbp), %rdi
callq 0x20f0
jmp 0x14a2c
movq %rax, %rbx
leaq -0xf8(%rbp), %rdi
callq 0x20f0
jmp 0x14a3d
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
jmp 0x14adb
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
jmp 0x14adb
movq %rax, %rbx
jmp 0x14ae0
movq %rax, %rbx
jmp 0x14ac8
movq %rax, %rbx
jmp 0x14abc
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x20f0
jmp 0x14a78
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x20f0
jmp 0x14a93
movq %rax, %rbx
jmp 0x14ad4
movq %rax, %rbx
jmp 0x14a9f
movq %rax, %rbx
leaq -0xd8(%rbp), %rdi
callq 0x20f0
leaq -0xf8(%rbp), %rdi
callq 0x20f0
jmp 0x14ab0
movq %rax, %rbx
leaq -0x118(%rbp), %rdi
callq 0x20f0
leaq -0xb8(%rbp), %rdi
callq 0x20f0
leaq -0x158(%rbp), %rdi
callq 0x20f0
leaq -0x138(%rbp), %rdi
callq 0x20f0
movq %rbx, %rdi
callq 0x2330