// File: /workspace/github_c_makefile_star2_O3/Ihsoh[P]ilang/compiler/backend/semantics.c
// Function: expr_lt
static void _expr_lt(
	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_LT:
		case BE_NODE_EXPR_LE:
		case BE_NODE_EXPR_GT:
		case BE_NODE_EXPR_GE: {
			_CHECK
			ParserASTNode *node_oprd1 = node->childs[0];
			ParserASTNode *node_oprd2 = node->childs[1];
			_expr_shift(ctx, node_oprd1);
			_expr_shift(ctx, node_oprd2);

			BE_EXPR_AST_NODE_COPY_CONSTANT2(node, node_oprd1, node_oprd2);

			if (_is_primitive_type_node(ctx, node_oprd1) && _is_primitive_type_node(ctx, node_oprd2)) {
				if (ctx->arch == BE_ARCH_32) {
					BE_EXPR_AST_NODE_SET_TYPE(node, BE_TYPE_INT32);
					BE_EXPR_AST_NODE_SET_TYPE_NODE(node, _NODE_TYPE_INT32);

					if (BE_EXPR_AST_NODE_GET_CONSTANT(node)) {
						_calc_binary_constexpr(ctx, node_type, node, node_oprd1, node_oprd2);
					}
				} else if (ctx->arch == BE_ARCH_64) {
					BE_EXPR_AST_NODE_SET_TYPE(node, BE_TYPE_INT64);
					BE_EXPR_AST_NODE_SET_TYPE_NODE(node, _NODE_TYPE_INT64);

					if (BE_EXPR_AST_NODE_GET_CONSTANT(node)) {
						_calc_binary_constexpr(ctx, node_type, node, node_oprd1, node_oprd2);
					}
				} else {
					assert(0);
				}
			} else {
				_SYNERR_NODE(ctx, node, "binary operator '<' and '<=' and '>' and '>=' do not support this operand combination.");
			}

			break;
		}
		default: {
			_expr_shift(ctx, node);
			break;
		}
	}

	#undef	_CHECK
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
testq %rsi, %rsi
je 0x3021e
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %r15d
movl %r15d, %eax
andl $-0x4, %eax
cmpl $0xe80, %eax            # imm = 0xE80
jne 0x30152
cmpl $0x2, 0x44(%rbx)
jne 0x3023d
movq 0x48(%rbx), %rax
movq (%rax), %r13
movq 0x8(%rax), %r12
movq %r14, %rdi
movq %r13, %rsi
callq 0x3027b
movq %r14, %rdi
movq %r12, %rsi
callq 0x3027b
cmpb $0x1, 0x70(%r13)
jne 0x3016e
movb 0x70(%r12), %al
jmp 0x30170
movq %r14, %rdi
movq %rbx, %rsi
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3027b
xorl %eax, %eax
movb %al, 0x70(%rbx)
movq %r13, %rdi
callq 0x2e560
testb %al, %al
je 0x301aa
movq %r12, %rdi
callq 0x2e560
testb %al, %al
je 0x301aa
movl 0x30(%r14), %eax
cmpl $0x2, %eax
je 0x301e4
cmpl $0x1, %eax
jne 0x3025c
movb $0x4, 0x60(%rbx)
leaq 0x2a270(%rip), %rax     # 0x5a418
jmp 0x301ef
leaq 0x1c93a(%rip), %rsi     # 0x4caeb
leaq -0x430(%rbp), %r15
movl $0x57, %edx
movq %r15, %rdi
callq 0x3110
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq *0x58(%r14)
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x5, 0x60(%rbx)
leaq 0x2a289(%rip), %rax     # 0x5a478
movq %rax, 0x68(%rbx)
cmpb $0x1, 0x70(%rbx)
jne 0x301d2
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
movq %r13, %rcx
movq %r12, %r8
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2e969
leaq 0x10ce6(%rip), %rdi     # 0x40f0b
leaq 0x1bf14(%rip), %rsi     # 0x4c140
leaq 0x1c888(%rip), %rcx     # 0x4cabb
movl $0xc3f, %edx            # imm = 0xC3F
callq 0x30a0
leaq 0x1c391(%rip), %rdi     # 0x4c5d5
leaq 0x1bef5(%rip), %rsi     # 0x4c140
leaq 0x1c869(%rip), %rcx     # 0x4cabb
movl $0xc4d, %edx            # imm = 0xC4D
callq 0x30a0
leaq 0xe106(%rip), %rdi      # 0x3e369
leaq 0x1bed6(%rip), %rsi     # 0x4c140
leaq 0x1c84a(%rip), %rcx     # 0x4cabb
movl $0xc65, %edx            # imm = 0xC65
callq 0x30a0