// File: /workspace/github_c_makefile_star2_O3/Ihsoh[P]ilang/compiler/backend/semantics.c
// Function: expr_add
static void _expr_add(
	ParserContext *ctx,
	ParserASTNode *node
) {
	assert(ctx);
	assert(node);

	#define	_CHECK	\
	{	\
		assert(node->nchilds == 2);	\
	}

	uint32_t node_type = node->type;

	switch (node_type) {
		case BE_NODE_EXPR_ADD: {
			_CHECK
			ParserASTNode *node_oprd1 = node->childs[0];
			ParserASTNode *node_oprd2 = node->childs[1];
			_expr_unary(ctx, node_oprd1);
			_expr_unary(ctx, node_oprd2);

			_check_expr_add_operands(
				ctx, node, node_oprd1, node_oprd2, "+", true
			);

			BE_EXPR_AST_NODE_COPY_CONSTANT2(node, node_oprd1, node_oprd2);
			if (BE_EXPR_AST_NODE_GET_CONSTANT(node)) {
				_calc_binary_constexpr(ctx, node_type, node, node_oprd1, node_oprd2);
			}
			break;
		}
		case BE_NODE_EXPR_SUB: {
			_CHECK
			ParserASTNode *node_oprd1 = node->childs[0];
			ParserASTNode *node_oprd2 = node->childs[1];
			_expr_unary(ctx, node_oprd1);
			_expr_unary(ctx, node_oprd2);

			_check_expr_sub_operands(
				ctx, node, node_oprd1, node_oprd2, "-", true
			);

			BE_EXPR_AST_NODE_COPY_CONSTANT2(node, node_oprd1, node_oprd2);
			if (BE_EXPR_AST_NODE_GET_CONSTANT(node)) {
				_calc_binary_constexpr(ctx, node_type, node, node_oprd1, node_oprd2);
			}
			break;
		}
		default: {
			_expr_mul(ctx, node);
			break;
		}
	}

	#undef	_CHECK
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp            # imm = 0x418
testq %rsi, %rsi
je 0x30c25
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %r15d
cmpl $0xeaf, %r15d           # imm = 0xEAF
jle 0x30819
leal -0xeb0(%r15), %eax
cmpl $0x2, %eax
jae 0x308c8
cmpl $0x2, 0x44(%rbx)
jne 0x30c44
movq 0x48(%rbx), %rax
movq (%rax), %r12
movq 0x8(%rax), %r13
movq %r14, %rdi
movq %r12, %rsi
callq 0x30dd7
movq %r14, %rdi
movq %r13, %rsi
callq 0x30dd7
testq %r12, %r12
je 0x30c63
testq %r13, %r13
je 0x30c82
movq %r12, %rdi
callq 0x31cec
testb %al, %al
je 0x30749
movq %r13, %rdi
callq 0x31cec
testb %al, %al
jne 0x30788
movups 0x1c9f2(%rip), %xmm0    # 0x4d142
leaq -0x440(%rbp), %rdx
movaps %xmm0, 0x20(%rdx)
movups 0x1c9d0(%rip), %xmm0    # 0x4d132
movaps %xmm0, 0x10(%rdx)
movups 0x1c9b5(%rip), %xmm0    # 0x4d122
movaps %xmm0, (%rdx)
movabsq $0x2e646e61726570, %rax # imm = 0x2E646E61726570
movq %rax, 0x2e(%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq *0x58(%r14)
movq %r14, -0x30(%rbp)
leaq 0x60(%r12), %rax
movq %rax, -0x40(%rbp)
movzbl 0x60(%r12), %edi
callq 0x32d9b
movl %eax, %r14d
movq %rbx, -0x38(%rbp)
leaq 0x60(%r13), %rbx
movzbl 0x60(%r13), %edi
callq 0x32d9b
cmpl %eax, %r14d
cmovaq -0x40(%rbp), %rbx
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movq -0x38(%rbp), %rdx
movups %xmm2, 0x80(%rdx)
movups %xmm1, 0x70(%rdx)
movups %xmm0, 0x60(%rdx)
cmpb $0x1, 0x70(%r12)
jne 0x309cd
movb 0x70(%r13), %al
movb %al, 0x70(%rdx)
cmpb $0x1, %al
movq -0x30(%rbp), %rdi
jne 0x30c13
movl %r15d, %esi
movq %r12, %rcx
movq %r13, %r8
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2e969
cmpl $0xea0, %r15d           # imm = 0xEA0
je 0x309d6
cmpl $0xea1, %r15d           # imm = 0xEA1
jne 0x30a63
cmpl $0x2, 0x44(%rbx)
jne 0x30cfe
movq 0x48(%rbx), %rax
movq (%rax), %r15
movq 0x8(%rax), %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x30dd7
movq %r14, %rdi
movq %r12, %rsi
callq 0x30dd7
testq %r15, %r15
je 0x30d5b
testq %r12, %r12
je 0x30db8
movq %r14, -0x30(%rbp)
movzbl 0x1(%r15), %eax
shll $0x8, %eax
cmpl $0xe00, %eax            # imm = 0xE00
jne 0x30ca1
leaq 0x60(%r15), %r14
cmpb $0x10, 0x60(%r15)
jne 0x30ad6
movq %r12, %rdi
callq 0x2e4a1
testb %al, %al
je 0x30ad6
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movups %xmm2, 0x80(%rbx)
movups %xmm1, 0x70(%rbx)
movups %xmm0, 0x60(%rbx)
jmp 0x30be0
cmpl $0xeb2, %r15d           # imm = 0xEB2
jne 0x30a63
cmpl $0x2, 0x44(%rbx)
jne 0x30cc0
movq 0x48(%rbx), %rax
movq (%rax), %r15
movq 0x8(%rax), %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x30dd7
movq %r14, %rdi
movq %r12, %rsi
callq 0x30dd7
testq %r15, %r15
je 0x30d1d
testq %r12, %r12
je 0x30d7a
movq %r14, -0x30(%rbp)
movq %r15, %rdi
callq 0x2e4a1
testb %al, %al
je 0x3092e
movq %r12, %rdi
callq 0x2e4a1
testb %al, %al
jne 0x3095a
leaq 0x1c89a(%rip), %rsi     # 0x4d1cf
leaq 0x1c76d(%rip), %rdx     # 0x4d0a9
leaq -0x440(%rbp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x3160
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq *0x58(%rdi)
movq %rbx, -0x38(%rbp)
leaq 0x60(%r15), %rbx
movzbl 0x60(%r15), %edi
callq 0x32d9b
movl %eax, %r14d
leaq 0x60(%r12), %r13
movzbl 0x60(%r12), %edi
callq 0x32d9b
cmpl %eax, %r14d
cmovaq %rbx, %r13
movq -0x38(%rbp), %rdx
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups 0x20(%r13), %xmm2
movups %xmm2, 0x80(%rdx)
movups %xmm1, 0x70(%rdx)
movups %xmm0, 0x60(%rdx)
cmpb $0x1, 0x70(%r15)
jne 0x309cd
movb 0x70(%r12), %al
movb %al, 0x70(%rdx)
cmpb $0x1, %al
movq -0x30(%rbp), %rdi
jne 0x30c13
movl $0xeb2, %esi            # imm = 0xEB2
jmp 0x30c02
movb $0x0, 0x70(%rdx)
jmp 0x30c13
cmpl $0x2, 0x44(%rbx)
jne 0x30cdf
movq 0x48(%rbx), %rax
movq (%rax), %r15
movq 0x8(%rax), %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x30dd7
movq %r14, %rdi
movq %r12, %rsi
callq 0x30dd7
testq %r15, %r15
je 0x30d3c
testq %r12, %r12
je 0x30d99
movq %r14, -0x30(%rbp)
movzbl 0x1(%r15), %eax
shll $0x8, %eax
cmpl $0xe00, %eax            # imm = 0xE00
jne 0x30ca1
leaq 0x60(%r15), %r14
cmpb $0x10, 0x60(%r15)
jne 0x30a7f
movq %r12, %rdi
callq 0x2e4a1
testb %al, %al
je 0x30a7f
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movups %xmm2, 0x80(%rbx)
movups %xmm1, 0x70(%rbx)
movups %xmm0, 0x60(%rbx)
jmp 0x30ba4
movq %r14, %rdi
movq %rbx, %rsi
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x30dd7
movq %r15, %rdi
callq 0x31cec
testb %al, %al
je 0x30b25
movq %r12, %rdi
callq 0x31cec
testb %al, %al
je 0x30b25
movzbl (%r14), %edi
callq 0x32d9b
movl %eax, %r13d
movzbl 0x60(%r12), %edi
callq 0x32d9b
leaq 0x60(%rbx), %rcx
cmpl %eax, %r13d
jbe 0x30b89
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
jmp 0x30b99
movq %r15, %rdi
callq 0x31cec
testb %al, %al
je 0x30b57
movq %r12, %rdi
callq 0x31cec
testb %al, %al
je 0x30b57
movzbl (%r14), %edi
callq 0x32d9b
movl %eax, %r13d
movzbl 0x60(%r12), %edi
callq 0x32d9b
leaq 0x60(%rbx), %rcx
cmpl %eax, %r13d
jbe 0x30bc5
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
jmp 0x30bd5
leaq 0x1c497(%rip), %rsi     # 0x4cfc3
leaq 0xe979(%rip), %rdx      # 0x3f4ac
leaq -0x440(%rbp), %r13
movq %r13, %rdi
xorl %eax, %eax
callq 0x3160
movq -0x30(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq *0x58(%r14)
jmp 0x30ba8
leaq 0x1c465(%rip), %rsi     # 0x4cfc3
leaq 0x1c047(%rip), %rdx     # 0x4cbac
leaq -0x440(%rbp), %r13
movq %r13, %rdi
xorl %eax, %eax
callq 0x3160
movq -0x30(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq *0x58(%r14)
jmp 0x30be4
leaq 0x60(%r12), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm2, 0x20(%rcx)
movups %xmm1, 0x10(%rcx)
movups %xmm0, (%rcx)
movq -0x30(%rbp), %r14
cmpb $0x1, 0x70(%r15)
jne 0x30c0f
movb 0x70(%r12), %al
movb %al, 0x70(%rbx)
cmpb $0x1, %al
jne 0x30c13
movq %r14, %rdi
movl $0xea0, %esi            # imm = 0xEA0
jmp 0x30bff
leaq 0x60(%r12), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm2, 0x20(%rcx)
movups %xmm1, 0x10(%rcx)
movups %xmm0, (%rcx)
movq -0x30(%rbp), %r14
cmpb $0x1, 0x70(%r15)
jne 0x30c0f
movb 0x70(%r12), %al
movb %al, 0x70(%rbx)
cmpb $0x1, %al
jne 0x30c13
movq %r14, %rdi
movl $0xea1, %esi            # imm = 0xEA1
movq %rbx, %rdx
movq %r15, %rcx
movq %r12, %r8
callq 0x2e969
jmp 0x30c13
movb $0x0, 0x70(%rbx)
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x102df(%rip), %rdi     # 0x40f0b
leaq 0x1b50d(%rip), %rsi     # 0x4c140
leaq 0x1bf41(%rip), %rcx     # 0x4cb7b
movl $0xbb6, %edx            # imm = 0xBB6
callq 0x30a0
leaq 0x1b98a(%rip), %rdi     # 0x4c5d5
leaq 0x1b4ee(%rip), %rsi     # 0x4c140
leaq 0x1c41f(%rip), %rcx     # 0x4d078
movl $0xb32, %edx            # imm = 0xB32
callq 0x30a0
leaq 0x1c343(%rip), %rdi     # 0x4cfad
leaq 0x1b4cf(%rip), %rsi     # 0x4c140
leaq 0x1c433(%rip), %rcx     # 0x4d0ab
movl $0xae8, %edx            # imm = 0xAE8
callq 0x30a0
leaq 0x1c32f(%rip), %rdi     # 0x4cfb8
leaq 0x1b4b0(%rip), %rsi     # 0x4c140
leaq 0x1c414(%rip), %rcx     # 0x4d0ab
movl $0xae9, %edx            # imm = 0xAE9
callq 0x30a0
leaq 0x1c1be(%rip), %rdi     # 0x4ce66
leaq 0x1b491(%rip), %rsi     # 0x4c140
leaq 0x1cbb7(%rip), %rcx     # 0x4d86d
movl $0x209, %edx            # imm = 0x209
callq 0x30a0
leaq 0x1b90e(%rip), %rdi     # 0x4c5d5
leaq 0x1b472(%rip), %rsi     # 0x4c140
leaq 0x1c3a3(%rip), %rcx     # 0x4d078
movl $0xb4c, %edx            # imm = 0xB4C
callq 0x30a0
leaq 0x1b8ef(%rip), %rdi     # 0x4c5d5
leaq 0x1b453(%rip), %rsi     # 0x4c140
leaq 0x1be87(%rip), %rcx     # 0x4cb7b
movl $0xbc1, %edx            # imm = 0xBC1
callq 0x30a0
leaq 0x1b8d0(%rip), %rdi     # 0x4c5d5
leaq 0x1b434(%rip), %rsi     # 0x4c140
leaq 0x1be68(%rip), %rcx     # 0x4cb7b
movl $0xbd2, %edx            # imm = 0xBD2
callq 0x30a0
leaq 0x1c289(%rip), %rdi     # 0x4cfad
leaq 0x1b415(%rip), %rsi     # 0x4c140
leaq 0x1c426(%rip), %rcx     # 0x4d158
movl $0xb08, %edx            # imm = 0xB08
callq 0x30a0
leaq 0x1c26a(%rip), %rdi     # 0x4cfad
leaq 0x1b3f6(%rip), %rsi     # 0x4c140
leaq 0x1c1e5(%rip), %rcx     # 0x4cf36
movl $0xb6f, %edx            # imm = 0xB6F
callq 0x30a0
leaq 0x1c24b(%rip), %rdi     # 0x4cfad
leaq 0x1b3d7(%rip), %rsi     # 0x4c140
leaq 0x1c291(%rip), %rcx     # 0x4d001
movl $0xb95, %edx            # imm = 0xB95
callq 0x30a0
leaq 0x1c237(%rip), %rdi     # 0x4cfb8
leaq 0x1b3b8(%rip), %rsi     # 0x4c140
leaq 0x1c3c9(%rip), %rcx     # 0x4d158
movl $0xb09, %edx            # imm = 0xB09
callq 0x30a0
leaq 0x1c218(%rip), %rdi     # 0x4cfb8
leaq 0x1b399(%rip), %rsi     # 0x4c140
leaq 0x1c188(%rip), %rcx     # 0x4cf36
movl $0xb70, %edx            # imm = 0xB70
callq 0x30a0
leaq 0x1c1f9(%rip), %rdi     # 0x4cfb8
leaq 0x1b37a(%rip), %rsi     # 0x4c140
leaq 0x1c234(%rip), %rcx     # 0x4d001
movl $0xb96, %edx            # imm = 0xB96
callq 0x30a0