// File: /workspace/github_cpp_makefile_star2_O3/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 $0x288, %rsp            # imm = 0x288
movq %rsi, %r12
movq %rdi, (%rsp)
leaq 0x198(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movq $0x0, 0x30(%rax)
leaq 0x100(%rsp), %r15
movaps %xmm0, -0x8(%rax)
movaps %xmm0, 0x8(%rax)
movb $0x0, 0x18(%rax)
movq %r15, -0x10(%r15)
leaq 0x13408(%rip), %rsi     # 0x199cc
leaq 0x13407(%rip), %rdx     # 0x199d2
leaq 0xf0(%rsp), %rdi
callq 0x8faa
leaq 0x10(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x13758(%rip), %rdx     # 0x19d4d
movq %rdx, %rsi
callq 0x8faa
leaq 0x110(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0xd0(%rsp), %rcx
movl $0x1, %edx
callq 0xfdfc
leaq 0x238(%rsp), %rdi
leaq 0xf0(%rsp), %rdx
leaq 0x110(%rsp), %rcx
xorl %esi, %esi
callq 0xfe46
leaq 0x238(%rsp), %rsi
leaq 0x198(%rsp), %rdi
callq 0x105f4
leaq 0x260(%rsp), %rbx
movq %rbx, %rdi
callq 0x9730
movq -0x20(%rbx), %rdi
leaq 0x250(%rsp), %rax
cmpq %rax, %rdi
je 0x6681
movq 0x250(%rsp), %rsi
incq %rsi
callq 0x3280
leaq 0x110(%rsp), %rdi
callq 0x9730
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x66aa
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0xf0(%rsp), %rdi
cmpq %r15, %rdi
je 0x66c7
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x3280
movq (%r12), %r14
cmpq %r14, 0x8(%r12)
je 0x68fa
movl $0x40, %r15d
xorl %ebx, %ebx
leaq 0x1d0(%rsp), %r13
movq -0x40(%r14,%r15), %rax
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq -0x38(%r14,%r15), %rsi
movq -0x30(%r14,%r15), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x179ce
leaq (%r14,%r15), %rsi
addq $-0x18, %rsi
leaq 0x30(%rsp), %rdi
callq 0x10074
leaq (%r14,%r15), %rsi
leaq 0x48(%rsp), %rdi
callq 0xb076
movups 0x18(%r14,%r15), %xmm0
leaq 0x10(%rsp), %rax
movups %xmm0, 0x50(%rax)
leaq 0xa0(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0x179ce
leaq 0x190(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0xfef4
movl %eax, %r14d
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x67a7
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x3280
testb %r14b, %r14b
jne 0x690d
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %rsi
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0x179ce
movq %r13, %rdi
leaq 0x30(%rsp), %rsi
callq 0x10074
leaq 0x1e8(%rsp), %rbp
movq %rbp, %rdi
movq %r14, %rsi
leaq 0x70(%rsp), %rdx
movq %r13, %rcx
callq 0xfe46
leaq 0x198(%rsp), %rdi
movq %rbp, %rsi
callq 0x105f4
leaq 0x210(%rsp), %rdi
callq 0x9730
movq 0x1f0(%rsp), %rdi
leaq 0x200(%rsp), %rax
cmpq %rax, %rdi
je 0x6843
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x3280
movq %r13, %rdi
callq 0x9730
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x686d
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x3280
movq (%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x190(%rsp), %rdx
callq 0x1010e
movl %eax, %r14d
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x689d
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x3280
leaq 0x30(%rsp), %rdi
callq 0x9730
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x68c3
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
testb %r14b, %r14b
je 0x6ac6
incq %rbx
movq (%r12), %r14
movq 0x8(%r12), %rax
subq %r14, %rax
sarq $0x3, %rax
movabsq $0x4ec4ec4ec4ec4ec5, %rcx # imm = 0x4EC4EC4EC4EC4EC5
imulq %rcx, %rax
addq $0x68, %r15
cmpq %rbx, %rax
ja 0x66e6
movb $0x1, %bl
movq (%rsp), %rdi
movq %r12, %rsi
callq 0x10598
jmp 0x6ac8
leaq 0x130bf(%rip), %rsi     # 0x199d3
leaq 0xd0(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0xa256
leaq 0x13270(%rip), %rsi     # 0x19b9d
leaq 0xd0(%rsp), %rdi
callq 0x33f0
leaq 0xc0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x696a
movq %rdx, 0xb0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc0(%rsp)
jmp 0x6971
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0xb8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rsi
leaq 0x130(%rsp), %rdi
movq %rax, -0x8(%rdi)
leaq 0x140(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
callq 0x179ce
leaq 0x150(%rsp), %rbx
movq %rbx, %rdi
leaq 0x30(%rsp), %rsi
callq 0x10074
leaq 0x168(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0xb076
leaq 0x10(%rsp), %rax
movups 0x50(%rax), %xmm0
leaq 0x128(%rsp), %rdx
movups %xmm0, 0x58(%rdx)
leaq 0xb0(%rsp), %rsi
movq (%rsp), %rdi
callq 0xffe6
movq 0x168(%rsp), %rdi
testq %rdi, %rdi
je 0x6a26
movq 0x178(%rsp), %rsi
subq %rdi, %rsi
callq 0x3280
movq %rbx, %rdi
callq 0x9730
movq 0x130(%rsp), %rdi
cmpq %r12, %rdi
je 0x6a4b
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x6a68
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x3280
leaq 0xe0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6a89
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x3280
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x6aa0
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x3280
leaq 0x30(%rsp), %rdi
callq 0x9730
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6ac6
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
xorl %ebx, %ebx
leaq 0x198(%rsp), %rdi
callq 0x1553e
movl %ebx, %eax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x128(%rsp), %rdi
callq 0x978e
jmp 0x6b2d
movq %rax, %r14
movq %rbx, %rdi
callq 0x9730
jmp 0x6b0b
movq %rax, %r14
movq 0x130(%rsp), %rdi
cmpq %r12, %rdi
je 0x6b2d
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x6b2d
movq %rax, %r14
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x6b4f
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x6b4f
movq %rax, %r14
leaq 0xe0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c88
movq 0xe0(%rsp), %rsi
jmp 0x6c4b
jmp 0x6c85
jmp 0x6c26
movq %rax, %r14
leaq 0x238(%rsp), %rdi
callq 0xfecc
jmp 0x6b90
movq %rax, %r14
leaq 0x110(%rsp), %rdi
callq 0x9730
jmp 0x6ba2
movq %rax, %r14
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6bc3
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x6bc3
movq %rax, %r14
movq 0xf0(%rsp), %rdi
cmpq %r15, %rdi
je 0x6c92
movq 0x100(%rsp), %rsi
jmp 0x6c7b
jmp 0x6c26
movq %rax, %r14
leaq 0x1e8(%rsp), %rdi
callq 0xfecc
jmp 0x6bf8
movq %rax, %r14
leaq 0x1d0(%rsp), %rdi
callq 0x9730
jmp 0x6c0a
movq %rax, %r14
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6c88
movq 0x80(%rsp), %rsi
jmp 0x6c4b
movq %rax, %r14
jmp 0x6c92
movq %rax, %r14
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x6c88
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x6c88
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x9730
jmp 0x6c67
movq %rax, %r14
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6c92
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3280
jmp 0x6c92
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x978e
leaq 0x198(%rsp), %rdi
callq 0x1553e
movq %r14, %rdi
callq 0x33b0
nop