// File: Sooryakiran[P]dotV/src/verilog.cpp
// Function: NOT::NOT(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>>)
NOT::NOT(string name, wire input_wire, wire output_wire){
    this->name = name;
    this->inputs.push_back(input_wire);
    this->outputs.push_back(output_wire);
    this->transistors = NOT_TRANSISTORS;
    this->definition = "module NOT_GATE(in, out);\n"
                    "\t input in;\n"
                    "\t output out;\n"
                    "\t assign #" + to_string(NOT_DELAY) + "  out = ~in;\n"
                    "endmodule";

    this->generate =  "NOT_GATE " + this->name + " (" + this->inputs.at(0) + ", " + this->outputs.at(0) + ");";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rsi, -0x158(%rbp)
movq %rdx, -0x170(%rbp)
movq %rcx, -0x168(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x160(%rbp)
callq 0x1c4e0
movq -0x160(%rbp), %rdi
movq -0x158(%rbp), %rsi
callq 0x1b0b0
jmp 0x24405
movq -0x170(%rbp), %rsi
movq -0x160(%rbp), %rdi
subq $-0x80, %rdi
callq 0x1bc10
jmp 0x2441e
movq -0x168(%rbp), %rsi
movq -0x160(%rbp), %rdi
addq $0x98, %rdi
callq 0x1bc10
jmp 0x2443a
movq -0x160(%rbp), %rax
movl $0x2, 0x60(%rax)
leaq -0x90(%rbp), %rdi
movl $0x1, %esi
callq 0x1ced0
jmp 0x2445b
leaq 0x22f9e(%rip), %rsi     # 0x47400
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rdx
callq 0x1d820
jmp 0x24474
leaq 0x22fc4(%rip), %rdx     # 0x4743f
leaq -0x50(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x1b430
jmp 0x2448a
movq -0x160(%rbp), %rdi
addq $0x20, %rdi
leaq -0x50(%rbp), %rsi
movq %rsi, -0x178(%rbp)
callq 0x1cd30
movq -0x178(%rbp), %rdi
callq 0x1bea0
leaq -0x70(%rbp), %rdi
callq 0x1bea0
leaq -0x90(%rbp), %rdi
callq 0x1bea0
movq -0x160(%rbp), %rdx
leaq 0x22f82(%rip), %rsi     # 0x47456
leaq -0x150(%rbp), %rdi
callq 0x1c5a0
jmp 0x244e2
leaq 0x22b64(%rip), %rdx     # 0x4704d
leaq -0x130(%rbp), %rdi
leaq -0x150(%rbp), %rsi
callq 0x1b430
jmp 0x244fe
movq -0x160(%rbp), %rdi
subq $-0x80, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x1b640
movq %rax, -0x180(%rbp)
jmp 0x2451b
movq -0x180(%rbp), %rdx
leaq -0x110(%rbp), %rdi
leaq -0x130(%rbp), %rsi
callq 0x1d3b0
jmp 0x24537
leaq 0x22b12(%rip), %rdx     # 0x47050
leaq -0xf0(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x1b430
jmp 0x24553
movq -0x160(%rbp), %rdi
addq $0x98, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x1b640
movq %rax, -0x188(%rbp)
jmp 0x24573
movq -0x188(%rbp), %rdx
leaq -0xd0(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x1d3b0
jmp 0x2458f
leaq 0x2315b(%rip), %rdx     # 0x476f1
leaq -0xb0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x1b430
jmp 0x245ab
movq -0x160(%rbp), %rdi
addq $0x40, %rdi
leaq -0xb0(%rbp), %rsi
callq 0x1cd30
leaq -0xb0(%rbp), %rdi
callq 0x1bea0
leaq -0xd0(%rbp), %rdi
callq 0x1bea0
leaq -0xf0(%rbp), %rdi
callq 0x1bea0
leaq -0x110(%rbp), %rdi
callq 0x1bea0
leaq -0x130(%rbp), %rdi
callq 0x1bea0
leaq -0x150(%rbp), %rdi
callq 0x1bea0
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x246d8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x24647
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x1bea0
leaq -0x90(%rbp), %rdi
callq 0x1bea0
jmp 0x246d8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x246cc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x246c0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x246b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x246a8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x1bea0
leaq -0xf0(%rbp), %rdi
callq 0x1bea0
leaq -0x110(%rbp), %rdi
callq 0x1bea0
leaq -0x130(%rbp), %rdi
callq 0x1bea0
leaq -0x150(%rbp), %rdi
callq 0x1bea0
movq -0x160(%rbp), %rdi
callq 0x1b6d0
movq -0x28(%rbp), %rdi
callq 0x1da60
nopl (%rax)