// File: /workspace/github_cpp_makefile_star2_O1/CobaltXII[P]cxcc/./semantic/semantic_analyzer.hpp
// Function: semantic_analyzer_t::validate(std::vector<function_t, std::allocator<function_t>>&)
bool validate(program_t& program) {
		symbol_table_t global_symbols;
		// Add the predefined function sizeof.
		global_symbols.add_symbol(symbol_t(
			{0}, "sizeof", {{{0}, ""}}
		));
		for (int i = 0; i < program.size(); i++) {
			function_t function = program[i];
			// The function is invalid if a function already exists under the
			// same identifier.
			if (global_symbols.exists(function.identifier)) {
				die("redefinition of function '" + function.identifier + "'", function);
				return false;
			}
			// Add the function to the symbol table.
			global_symbols.add_symbol(symbol_t(
				function.type,
				function.identifier,
				function.parameters
			));
			if (!validate_function(function, global_symbols)) {
				return false;
			}
		}
		// The program is semantically correct if this line has been reached.
		// This means that calling expand_ast is completely safe and the
		// resulting output will also be semantically correct.
		expand_ast(program);
		return true;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x298, %rsp            # imm = 0x298
movq %rsi, 0x8(%rsp)
movq %rdi, (%rsp)
leaq 0x1b8(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movq $0x0, 0x30(%rax)
leaq 0x108(%rsp), %r14
movaps %xmm0, -0x8(%rax)
movaps %xmm0, 0x8(%rax)
movb $0x0, 0x18(%rax)
movq %r14, -0x10(%r14)
leaq 0x133fc(%rip), %rsi     # 0x1999c
leaq 0x133fb(%rip), %rdx     # 0x199a2
leaq 0xf8(%rsp), %rdi
callq 0x9052
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x28(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1374c(%rip), %rdx     # 0x19d1d
movq %rdx, %rsi
callq 0x9052
leaq 0x118(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0xd8(%rsp), %rcx
movl $0x1, %edx
callq 0x10326
leaq 0x248(%rsp), %rdi
leaq 0xf8(%rsp), %rdx
leaq 0x118(%rsp), %rcx
xorl %esi, %esi
callq 0x10370
leaq 0x248(%rsp), %rsi
leaq 0x1b8(%rsp), %rdi
callq 0x10b8e
leaq 0x270(%rsp), %rbx
movq %rbx, %rdi
callq 0x9812
movq -0x20(%rbx), %rdi
leaq 0x260(%rsp), %rax
cmpq %rax, %rdi
je 0x665d
movq 0x260(%rsp), %rsi
incq %rsi
callq 0x3280
leaq 0x118(%rsp), %rdi
callq 0x9812
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x6686
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0xf8(%rsp), %rdi
cmpq %r14, %rdi
je 0x66a3
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x8(%rsp), %rax
movq (%rax), %r13
cmpq %r13, 0x8(%rax)
sete %bpl
je 0x68e5
movl $0x40, %r14d
xorl %ebx, %ebx
movq -0x40(%r13,%r14), %rax
movq %rax, 0x10(%rsp)
leaq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movq -0x38(%r13,%r14), %rsi
movq -0x30(%r13,%r14), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %rdi
callq 0x17a38
leaq (%r14,%r13), %rsi
addq $-0x18, %rsi
leaq 0x38(%rsp), %rdi
callq 0x105d8
leaq (%r14,%r13), %rsi
leaq 0x50(%rsp), %rdi
callq 0xb122
movups 0x18(%r13,%r14), %xmm0
leaq 0x18(%rsp), %rax
movups %xmm0, 0x50(%rax)
leaq 0xa8(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x17a38
leaq 0x1b0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x1041e
movl %eax, %r13d
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x6782
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3280
testb %r13b, %r13b
jne 0x6918
movq 0x10(%rsp), %r13
movq 0x18(%rsp), %rsi
leaq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0x17a38
leaq 0x130(%rsp), %r12
movq %r12, %rdi
leaq 0x38(%rsp), %rsi
callq 0x105d8
leaq 0x1f8(%rsp), %r15
movq %r15, %rdi
movq %r13, %rsi
leaq 0x78(%rsp), %rdx
movq %r12, %rcx
callq 0x10370
leaq 0x1b8(%rsp), %rdi
movq %r15, %rsi
callq 0x10b8e
leaq 0x220(%rsp), %rdi
callq 0x9812
movq 0x200(%rsp), %rdi
leaq 0x210(%rsp), %rax
cmpq %rax, %rdi
je 0x6826
movq 0x210(%rsp), %rsi
incq %rsi
callq 0x3280
leaq 0x130(%rsp), %rdi
callq 0x9812
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x6855
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3280
movq (%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x1b0(%rsp), %rdx
callq 0x10672
movl %eax, %r13d
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x6885
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x3280
leaq 0x38(%rsp), %rdi
callq 0x9812
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x68ab
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3280
testb %r13b, %r13b
je 0x68f3
incq %rbx
movq 0x8(%rsp), %rax
movq (%rax), %r13
movq 0x8(%rax), %rax
subq %r13, %rax
sarq $0x3, %rax
movabsq $0x4ec4ec4ec4ec4ec5, %rcx # imm = 0x4EC4EC4EC4EC4EC5
imulq %rcx, %rax
addq $0x68, %r14
cmpq %rbx, %rax
setbe %bpl
ja 0x66c1
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x10b32
leaq 0x1b8(%rsp), %rdi
callq 0x15538
andb $0x1, %bpl
movl %ebp, %eax
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x13084(%rip), %rsi     # 0x199a3
leaq 0xd8(%rsp), %rdi
leaq 0x18(%rsp), %rdx
callq 0xa33e
leaq 0x13235(%rip), %rsi     # 0x19b6d
leaq 0xd8(%rsp), %rdi
callq 0x33f0
leaq 0xc8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6975
movq %rdx, 0xb8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc8(%rsp)
jmp 0x697c
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0xc0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rsi
leaq 0x150(%rsp), %rdi
movq %rax, -0x8(%rdi)
leaq 0x160(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
callq 0x17a38
leaq 0x170(%rsp), %r14
movq %r14, %rdi
leaq 0x38(%rsp), %rsi
callq 0x105d8
leaq 0x188(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xb122
leaq 0x18(%rsp), %rax
movups 0x50(%rax), %xmm0
leaq 0x148(%rsp), %rdx
movups %xmm0, 0x58(%rdx)
leaq 0xb8(%rsp), %rsi
movq (%rsp), %rdi
callq 0x1054a
movq 0x188(%rsp), %rdi
testq %rdi, %rdi
je 0x6a31
movq 0x198(%rsp), %rsi
subq %rdi, %rsi
callq 0x3280
movq %r14, %rdi
callq 0x9812
movq 0x150(%rsp), %rdi
cmpq %r12, %rdi
je 0x6a56
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6a73
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3280
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6a94
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x6aab
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x3280
leaq 0x38(%rsp), %rdi
callq 0x9812
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x68f3
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x68f3
movq %rax, %rbx
leaq 0x148(%rsp), %rdi
callq 0x986e
jmp 0x6b1e
movq %rax, %rbx
movq %r14, %rdi
callq 0x9812
jmp 0x6afc
movq %rax, %rbx
movq 0x150(%rsp), %rdi
cmpq %r12, %rdi
je 0x6b1e
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x6b1e
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6b40
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x6b40
movq %rax, %rbx
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c79
movq 0xe8(%rsp), %rsi
jmp 0x6c3c
jmp 0x6c76
jmp 0x6c17
movq %rax, %rbx
leaq 0x248(%rsp), %rdi
callq 0x103f6
jmp 0x6b81
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
callq 0x9812
jmp 0x6b93
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x6bb4
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x6bb4
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
cmpq %r14, %rdi
je 0x6c83
movq 0x108(%rsp), %rsi
jmp 0x6c6c
jmp 0x6c17
movq %rax, %rbx
leaq 0x1f8(%rsp), %rdi
callq 0x103f6
jmp 0x6be9
movq %rax, %rbx
leaq 0x130(%rsp), %rdi
callq 0x9812
jmp 0x6bfb
movq %rax, %rbx
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x6c79
movq 0x88(%rsp), %rsi
jmp 0x6c3c
movq %rax, %rbx
jmp 0x6c83
movq %rax, %rbx
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x6c79
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x6c79
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x9812
jmp 0x6c58
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x6c83
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x6c83
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x986e
leaq 0x1b8(%rsp), %rdi
callq 0x15538
movq %rbx, %rdi
callq 0x33b0