// File: /workspace/github_cpp_makefile_star2_O2/Blaze2305[P]Compiler-Design-2021-Assignment/src/SymTab/SymTab.cpp
// Function: SymbolTable::addSymbolToTable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void SymbolTable::addSymbolToTable(std::string symbolName,int lineNumber ,std::string type){
	try{
		SymTabRow tableRow = SymbolTableMap.at(symbolName); 
		std::ostringstream out;
		out << "Symbol " << symbolName << " already declared before.\n";
		out << "Previous declaration at " << tableRow.lineNumber + "\n";
		throw std::runtime_error(out.str());
	}catch(std::out_of_range err){
		this->SymbolTableMap[symbolName] = SymTabRow{symbolName,type,"",lineNumber};
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rcx, %r12
movl %edx, -0x30(%rbp)
movq %rsi, %rbx
movq %rdi, %r14
callq 0x8848
leaq -0xc0(%rbp), %rdi
movq %rax, %rsi
callq 0x8898
leaq -0x238(%rbp), %rdi
callq 0x2280
leaq 0x2154(%rip), %rsi      # 0xa3d7
leaq -0x238(%rbp), %rdi
callq 0x21d0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x21c0
leaq 0x213e(%rip), %rsi      # 0xa3df
movq %rax, %rdi
callq 0x21d0
leaq 0x214a(%rip), %rsi      # 0xa3fa
leaq -0x238(%rbp), %rdi
callq 0x21d0
movslq -0x60(%rbp), %rcx
leaq 0x216b(%rip), %rsi      # 0xa432
addq %rcx, %rsi
movq %rax, %rdi
callq 0x21d0
pushq $0x10
popq %rdi
callq 0x2120
movq %rax, %r15
leaq -0x230(%rbp), %rsi
leaq -0x58(%rbp), %rdi
movq %rax, -0x38(%rbp)
callq 0x2300
movb $0x1, %r13b
leaq -0x58(%rbp), %rsi
movq %r15, %rdi
callq 0x2310
xorl %r13d, %r13d
movq 0x6ce6(%rip), %rsi      # 0xeff0
movq 0x6cb7(%rip), %rdx      # 0xefc8
movq -0x38(%rbp), %rdi
callq 0x2350
movl %r13d, -0x2c(%rbp)
movq %rdx, %r15
movq %rax, %r13
leaq -0x58(%rbp), %rdi
callq 0x23b8
cmpb $0x0, -0x2c(%rbp)
jne 0x833b
jmp 0x834c
movq %rdx, %r15
movq %rax, %r13
movq -0x38(%rbp), %rdi
callq 0x2170
jmp 0x834c
movq %rdx, %r15
movq %rax, %r13
leaq -0x238(%rbp), %rdi
callq 0x20a0
jmp 0x8360
movq %rdx, %r15
movq %rax, %r13
leaq -0xc0(%rbp), %rdi
callq 0x7850
jmp 0x8374
movq %rdx, %r15
movq %rax, %r13
cmpl $0x1, %r15d
jne 0x8469
movq %r13, %rdi
callq 0x2250
leaq -0xc0(%rbp), %rdi
movq %rax, %rsi
callq 0x8130
movq %r13, %rdi
callq 0x20d0
leaq -0x238(%rbp), %rdi
movq %rbx, %rsi
callq 0x22a0
leaq -0x218(%rbp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x22a0
leaq -0x1f8(%rbp), %rdi
leaq 0x2067(%rip), %rsi      # 0xa433
leaq -0x58(%rbp), %rdx
callq 0x530a
movl -0x30(%rbp), %eax
movl %eax, -0x1d8(%rbp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x88fc
leaq -0x238(%rbp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x8966
movq %rbx, %rdi
callq 0x7850
leaq -0xc0(%rbp), %rdi
callq 0x22b0
callq 0x2320
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r13
leaq -0x238(%rbp), %rdi
callq 0x7850
jmp 0x8458
movq %rax, %r13
movq %r15, %rdi
callq 0x23b8
jmp 0x8447
movq %rax, %r13
leaq -0x238(%rbp), %rdi
callq 0x23b8
jmp 0x8458
movq %rax, %r13
leaq -0xc0(%rbp), %rdi
callq 0x22b0
callq 0x2320
movq %r13, %rdi
callq 0x2370
movq %rax, %rdi
callq 0x5532
nop