// File: Sooryakiran[P]dotV/src/verilog.cpp
// Function: NOT_N_BIT::NOT_N_BIT(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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
NOT_N_BIT::NOT_N_BIT(string name, wire input_wire, wire output_wire, int n_bits){
    this->name = name;
    this->inputs.push_back(input_wire);
    this->outputs.push_back(output_wire);
    this->transistors = NOT_TRANSISTORS*n_bits;
    this->n_bits = n_bits;

    string array_def = "[" + to_string(n_bits -1) + ":0]";
    this->definition = "module NOT_GATE_" + to_string(n_bits) + "_BIT(in, out);\n"
                       "\t input " + array_def + " in;\n"
                       "\t output " + array_def + " out;\n"
                       "\t assign #" + to_string(NOT_DELAY) + "  out = ~in;\n"
                       "endmodule";    

    this->generate =  "NOT_GATE_" + to_string(this->n_bits) + "_BIT " + this->name + + " (" + this->inputs.at(0) + ", " + this->outputs.at(0) + ");";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x330, %rsp            # imm = 0x330
movq %rsi, -0x300(%rbp)
movq %rdx, -0x318(%rbp)
movq %rcx, -0x310(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x308(%rbp)
callq 0x1c4e0
movq -0x308(%rbp), %rdi
movq -0x300(%rbp), %rsi
callq 0x1b0b0
jmp 0x24749
movq -0x318(%rbp), %rsi
movq -0x308(%rbp), %rdi
subq $-0x80, %rdi
callq 0x1bc10
jmp 0x24762
movq -0x310(%rbp), %rsi
movq -0x308(%rbp), %rdi
addq $0x98, %rdi
callq 0x1bc10
jmp 0x2477e
movq -0x308(%rbp), %rax
movl -0x24(%rbp), %ecx
addl %ecx, %ecx
movl %ecx, 0x60(%rax)
movl -0x24(%rbp), %ecx
movl %ecx, 0x190(%rax)
movl -0x24(%rbp), %esi
decl %esi
leaq -0x98(%rbp), %rdi
callq 0x1ced0
jmp 0x247a9
leaq 0x229e3(%rip), %rsi     # 0x47193
leaq -0x78(%rbp), %rdi
leaq -0x98(%rbp), %rdx
callq 0x1d820
jmp 0x247c2
leaq 0x22a38(%rip), %rdx     # 0x47201
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x1b430
jmp 0x247d8
leaq -0x78(%rbp), %rdi
callq 0x1bea0
leaq -0x98(%rbp), %rdi
callq 0x1bea0
movl -0x24(%rbp), %esi
leaq -0x1b8(%rbp), %rdi
callq 0x1ced0
jmp 0x247fe
leaq 0x22c5b(%rip), %rsi     # 0x47460
leaq -0x198(%rbp), %rdi
leaq -0x1b8(%rbp), %rdx
callq 0x1d820
jmp 0x2481a
leaq 0x22c50(%rip), %rdx     # 0x47471
leaq -0x178(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0x1b430
jmp 0x24836
leaq -0x158(%rbp), %rdi
leaq -0x178(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x1d3b0
jmp 0x2484f
leaq 0x22c33(%rip), %rdx     # 0x47489
leaq -0x138(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x1b430
jmp 0x2486b
leaq -0x118(%rbp), %rdi
leaq -0x138(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x1d3b0
jmp 0x24884
leaq 0x22ba3(%rip), %rdx     # 0x4742e
leaq -0xf8(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x1b430
jmp 0x248a0
leaq -0x1d8(%rbp), %rdi
movl $0x1, %esi
callq 0x1ced0
jmp 0x248b3
leaq -0xd8(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
leaq -0x1d8(%rbp), %rdx
callq 0x1c460
jmp 0x248cf
leaq 0x22b69(%rip), %rdx     # 0x4743f
leaq -0xb8(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x1b430
jmp 0x248eb
movq -0x308(%rbp), %rdi
addq $0x20, %rdi
leaq -0xb8(%rbp), %rsi
movq %rsi, -0x320(%rbp)
callq 0x1cd30
movq -0x320(%rbp), %rdi
callq 0x1bea0
leaq -0xd8(%rbp), %rdi
callq 0x1bea0
leaq -0x1d8(%rbp), %rdi
callq 0x1bea0
leaq -0xf8(%rbp), %rdi
callq 0x1bea0
leaq -0x118(%rbp), %rdi
callq 0x1bea0
leaq -0x138(%rbp), %rdi
callq 0x1bea0
leaq -0x158(%rbp), %rdi
callq 0x1bea0
leaq -0x178(%rbp), %rdi
callq 0x1bea0
leaq -0x198(%rbp), %rdi
callq 0x1bea0
leaq -0x1b8(%rbp), %rdi
callq 0x1bea0
movq -0x308(%rbp), %rax
movl 0x190(%rax), %esi
leaq -0x2f8(%rbp), %rdi
callq 0x1ced0
jmp 0x2499c
leaq 0x22ac4(%rip), %rsi     # 0x47467
leaq -0x2d8(%rbp), %rdi
leaq -0x2f8(%rbp), %rdx
callq 0x1d820
jmp 0x249b8
leaq 0x227e7(%rip), %rdx     # 0x471a6
leaq -0x2b8(%rbp), %rdi
leaq -0x2d8(%rbp), %rsi
callq 0x1b430
jmp 0x249d4
movq -0x308(%rbp), %rdx
leaq -0x298(%rbp), %rdi
leaq -0x2b8(%rbp), %rsi
callq 0x1d3b0
jmp 0x249f0
leaq 0x22656(%rip), %rdx     # 0x4704d
leaq -0x278(%rbp), %rdi
leaq -0x298(%rbp), %rsi
callq 0x1b430
jmp 0x24a0c
movq -0x308(%rbp), %rdi
subq $-0x80, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x1b640
movq %rax, -0x328(%rbp)
jmp 0x24a29
movq -0x328(%rbp), %rdx
leaq -0x258(%rbp), %rdi
leaq -0x278(%rbp), %rsi
callq 0x1d3b0
jmp 0x24a45
leaq 0x22604(%rip), %rdx     # 0x47050
leaq -0x238(%rbp), %rdi
leaq -0x258(%rbp), %rsi
callq 0x1b430
jmp 0x24a61
movq -0x308(%rbp), %rdi
addq $0x98, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x1b640
movq %rax, -0x330(%rbp)
jmp 0x24a81
movq -0x330(%rbp), %rdx
leaq -0x218(%rbp), %rdi
leaq -0x238(%rbp), %rsi
callq 0x1d3b0
jmp 0x24a9d
leaq 0x22c4d(%rip), %rdx     # 0x476f1
leaq -0x1f8(%rbp), %rdi
leaq -0x218(%rbp), %rsi
callq 0x1b430
jmp 0x24ab9
movq -0x308(%rbp), %rdi
addq $0x40, %rdi
leaq -0x1f8(%rbp), %rsi
callq 0x1cd30
leaq -0x1f8(%rbp), %rdi
callq 0x1bea0
leaq -0x218(%rbp), %rdi
callq 0x1bea0
leaq -0x238(%rbp), %rdi
callq 0x1bea0
leaq -0x258(%rbp), %rdi
callq 0x1bea0
leaq -0x278(%rbp), %rdi
callq 0x1bea0
leaq -0x298(%rbp), %rdi
callq 0x1bea0
leaq -0x2b8(%rbp), %rdi
callq 0x1bea0
leaq -0x2d8(%rbp), %rdi
callq 0x1bea0
leaq -0x2f8(%rbp), %rdi
callq 0x1bea0
leaq -0x58(%rbp), %rdi
callq 0x1bea0
addq $0x330, %rsp            # imm = 0x330
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24d7d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24b82
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x1bea0
leaq -0x98(%rbp), %rdi
callq 0x1bea0
jmp 0x24d7d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24d74
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24c8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24c80
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24c74
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24c68
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24c5c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24c50
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24c44
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24c38
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x1bea0
leaq -0x1d8(%rbp), %rdi
callq 0x1bea0
leaq -0xf8(%rbp), %rdi
callq 0x1bea0
leaq -0x118(%rbp), %rdi
callq 0x1bea0
leaq -0x138(%rbp), %rdi
callq 0x1bea0
leaq -0x158(%rbp), %rdi
callq 0x1bea0
leaq -0x178(%rbp), %rdi
callq 0x1bea0
leaq -0x198(%rbp), %rdi
callq 0x1bea0
leaq -0x1b8(%rbp), %rdi
callq 0x1bea0
jmp 0x24d74
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24d68
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24d5c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24d50
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24d44
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24d38
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24d2c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x24d20
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x218(%rbp), %rdi
callq 0x1bea0
leaq -0x238(%rbp), %rdi
callq 0x1bea0
leaq -0x258(%rbp), %rdi
callq 0x1bea0
leaq -0x278(%rbp), %rdi
callq 0x1bea0
leaq -0x298(%rbp), %rdi
callq 0x1bea0
leaq -0x2b8(%rbp), %rdi
callq 0x1bea0
leaq -0x2d8(%rbp), %rdi
callq 0x1bea0
leaq -0x2f8(%rbp), %rdi
callq 0x1bea0
leaq -0x58(%rbp), %rdi
callq 0x1bea0
movq -0x308(%rbp), %rdi
callq 0x1b6d0
movq -0x30(%rbp), %rdi
callq 0x1da60
nopw %cs:(%rax,%rax)