LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/show-parse.c
// Function: show_symbol_expr
static int show_symbol_expr(struct symbol *sym)
{
	int new = new_pseudo();

	if (sym->initializer && sym->initializer->type == EXPR_STRING)
		return show_string_expr(sym->initializer);

	if (sym->ctype.modifiers & (MOD_TOPLEVEL | MOD_EXTERN | MOD_STATIC)) {
		printf("\tmovi.%d\t\tv%d,$%s\n", bits_in_pointer, new, show_ident(sym->ident));
		return new;
	}
	if (sym->ctype.modifiers & MOD_ADDRESSABLE) {
		printf("\taddi.%d\t\tv%d,vFP,$%lld\n", bits_in_pointer, new, 0LL);
		return new;
	}
	printf("\taddi.%d\t\tv%d,vFP,$offsetof(%s:%p)\n", bits_in_pointer, new, show_ident(sym->ident), sym);
	return new;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movl 0x43269(%rip), %ebx     # 0x649e0
incl %ebx
movl %ebx, 0x43261(%rip)     # 0x649e0
movq 0xb0(%rdi), %rdi
testq %rdi, %rdi
je 0x21799
cmpb $0x2, (%rdi)
jne 0x21799
popq %rbx
popq %r14
popq %rbp
jmp 0x2182e
movq 0x68(%r14), %rax
testb $0x1c, %al
je 0x217c3
leaq 0x3cf84(%rip), %rax     # 0x5e72c
movl (%rax), %ebp
movq 0x18(%r14), %rdi
callq 0x2936d
leaq 0x1e387(%rip), %rdi     # 0x3fb41
movl %ebp, %esi
movl %ebx, %edx
movq %rax, %rcx
jmp 0x21802
btl $0x8, %eax
leaq 0x3cf5e(%rip), %rax     # 0x5e72c
movl (%rax), %ebp
jb 0x217f5
movq 0x18(%r14), %rdi
callq 0x2936d
leaq 0x1e38b(%rip), %rdi     # 0x3fb6d
movl %ebp, %esi
movl %ebx, %edx
movq %rax, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0xe0f0
jmp 0x21809
leaq 0x1e358(%rip), %rdi     # 0x3fb54
movl %ebp, %esi
movl %ebx, %edx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0xe0f0
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/show-parse.c
// Function: show_symbol_expr_init
int show_symbol_expr_init(struct symbol *sym)
{
	struct expression *expr = sym->initializer;

	if (expr)
		show_expression(expr);
	return show_symbol_expr(sym);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0xb0(%rdi), %rdi
testq %rdi, %rdi
je 0x21825
callq 0x21182
movq %rbx, %rdi
popq %rbx
jmp 0x2176a
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/show-parse.c
// Function: show_initializer_expr
static int show_initializer_expr(struct expression *expr, struct symbol *ctype)
{
	struct expression *entry;

	FOR_EACH_PTR(expr->expr_list, entry) {

again:
		// Nested initializers have their positions already
		// recursively calculated - just output them too
		if (entry->type == EXPR_INITIALIZER) {
			show_initializer_expr(entry, ctype);
			continue;
		}

		// Initializer indexes and identifiers should
		// have been evaluated to EXPR_POS
		if (entry->type == EXPR_IDENTIFIER) {
			printf(" AT '%s':\n", show_ident(entry->expr_ident));
			entry = entry->ident_expression;
			goto again;
		}
			
		if (entry->type == EXPR_INDEX) {
			printf(" AT '%d..%d:\n", entry->idx_from, entry->idx_to);
			entry = entry->idx_expression;
			goto again;
		}
		if (entry->type == EXPR_POS) {
			show_position_expr(entry, ctype);
			continue;
		}
		show_initialization(ctype, entry);
	} END_FOR_EACH_PTR(entry);
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, 0x8(%rsp)
movq 0x20(%rdi), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x219e9
leaq 0x1dd85(%rip), %rbx     # 0x3f620
pushq $0x38
popq %r14
leaq 0x1e3fa(%rip), %r12     # 0x3fca0
pushq $0x28
popq %r13
movq 0x18(%rsp), %rdx
xorl %r15d, %r15d
movq %rdx, 0x20(%rsp)
movl (%rdx), %eax
movsbq %al, %rcx
cmpq %rcx, %r15
jge 0x219da
movq 0x18(%rdx,%r15,8), %rbp
cmpw $0x100, %ax             # imm = 0x100
jb 0x21913
testq %rbp, %rbp
je 0x219cd
jmp 0x21913
movq 0x28(%rbp), %rdi
callq 0x2936d
leaq 0x1e3a9(%rip), %rdi     # 0x3fc95
movq %rax, %rsi
xorl %eax, %eax
callq 0xe0f0
movq %r14, %rax
jmp 0x2190e
movl 0x20(%rbp), %esi
movl 0x24(%rbp), %edx
movq %r12, %rdi
xorl %eax, %eax
callq 0xe0f0
movq %r13, %rax
movq (%rbp,%rax), %rbp
movzbl (%rbp), %eax
addl $-0x18, %eax
cmpl $0x3, %eax
ja 0x2193a
movslq (%rbx,%rax,4), %rax
addq %rbx, %rax
jmpq *%rax
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
callq 0x2186f
jmp 0x219cd
movq 0x10(%rbp), %rax
testq %rax, %rax
je 0x219cd
movl 0x50(%rax), %eax
movl %eax, 0x4(%rsp)
movq %rbp, %rdi
callq 0x21182
movl %eax, %ebp
movq 0x8(%rsp), %rdi
callq 0x2176a
leaq 0x1e16d(%rip), %rdi     # 0x3fad6
movl 0x4(%rsp), %esi
movl %ebp, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0xe0f0
jmp 0x219cd
movq 0x28(%rbp), %rdi
callq 0x21182
movl %eax, 0x4(%rsp)
movq 0x28(%rbp), %rax
movq 0x10(%rax), %rax
pushq $-0x1
popq %rcx
testq %rax, %rax
je 0x2199b
movzbl 0x54(%rax), %ecx
movl 0x20(%rbp), %eax
movl %eax, 0x14(%rsp)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rdi
movl %ecx, %ebp
callq 0x2936d
leaq 0x1e2f5(%rip), %rdi     # 0x3fcae
movl 0x4(%rsp), %esi
movl 0x14(%rsp), %edx
movl %ebp, %ecx
movq %rax, %r8
xorl %eax, %eax
callq 0xe0f0
incq %r15
movq 0x20(%rsp), %rdx
jmp 0x218b7
movq 0x10(%rdx), %rdx
cmpq 0x18(%rsp), %rdx
jne 0x218af
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/./symbol.h
// Function: combine_address_space
static inline void combine_address_space(struct position pos,
	struct ident **tas, struct ident *sas)
{
	struct ident *as;
	if (!sas)
		return;
	as = *tas;
	if (!as)
		*tas = sas;
	else if (as != sas) {
		*tas = &bad_address_space;
		sparse_error(pos, "multiple address spaces given");
	}
}

// Assembly:
testq %rdx, %rdx
je 0x21b7e
movq (%rsi), %rax
testq %rax, %rax
je 0x21b7f
cmpq %rdx, %rax
je 0x21b7e
leaq 0x3d873(%rip), %rax     # 0x5f3e0
movq %rax, (%rsi)
leaq 0x1df25(%rip), %rsi     # 0x3fa9c
xorl %eax, %eax
jmp 0x1120e
retq
movq %rdx, (%rsi)
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/show-parse.c
// Function: show_inc_dec
static int show_inc_dec(struct expression *expr, int postop)
{
	int addr = show_address_gen(expr->unop);
	int retval, new;
	const char *opname = expr->op == SPECIAL_INCREMENT ? "add" : "sub";
	int bits = expr->ctype->bit_size;

	retval = show_load_gen(bits, expr->unop, addr);
	new = retval;
	if (postop)
		new = new_pseudo();
	printf("\t%s.%d\t\tv%d,v%d,$1\n", opname, bits, new, retval);
	show_store_gen(bits, new, expr->unop, addr);
	return retval;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r12d
movq %rdi, %r14
movq 0x20(%rdi), %rdi
callq 0x21b83
movl %eax, %ebx
movl 0x4(%r14), %r13d
movq 0x10(%r14), %rax
movl 0x50(%rax), %ebp
movl %ebp, %edi
movl %ebx, %esi
callq 0x21c2e
movl %eax, %r14d
movl %eax, %r15d
testl %r12d, %r12d
je 0x21bd8
movl 0x42e12(%rip), %r15d    # 0x649e0
incl %r15d
movl %r15d, 0x42e08(%rip)    # 0x649e0
cmpl $0x101, %r13d           # imm = 0x101
leaq 0x20bad(%rip), %rax     # 0x42793
leaq 0x20bfa(%rip), %rsi     # 0x427e7
cmoveq %rax, %rsi
leaq 0x1e008(%rip), %rdi     # 0x3fc00
movl %ebp, %edx
movl %r15d, %ecx
movl %r14d, %r8d
xorl %eax, %eax
callq 0xe0f0
leaq 0x1dec8(%rip), %rdi     # 0x3fad6
movl %ebp, %esi
movl %r15d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0xe0f0
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: kill_use
void kill_use(pseudo_t *usep)
{
	if (usep) {
		pseudo_t p = *usep;
		*usep = VOID;
		rem_usage(p, usep, 1);
	}
}

// Assembly:
testq %rdi, %rdi
je 0x21c72
movq %rdi, %rsi
movq (%rdi), %rdi
leaq 0x3dd66(%rip), %rax     # 0x5f9d0
movq %rax, (%rsi)
pushq $0x1
popq %rdx
jmp 0x21c73
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: rem_usage
static inline void rem_usage(pseudo_t p, pseudo_t *usep, int kill)
{
	if (has_use_list(p)) {
		delete_pseudo_user_list_entry(&p->users, usep, 1);
		if (kill && !p->users && has_definition(p))
			kill_instruction(p->def);
	}
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x21c90
movl %edx, %ebp
movq %rdi, %rbx
movl 0x4(%rdi), %eax
cmpl $0x6, %eax
ja 0x21c97
pushq $0x43
popq %rcx
btl %eax, %ecx
jae 0x21c97
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x8(%rbx), %rcx
testq %rcx, %rcx
je 0x21ce7
movq %rcx, %rax
movzwl (%rax), %edx
movsbl %dl, %edi
testw %di, %di
movl $0x0, %r8d
cmovgl %edi, %r8d
movzwl %r8w, %edi
xorl %r8d, %r8d
cmpq %r8, %rdi
je 0x21cde
movq 0x18(%rax,%r8,8), %r9
cmpw $0x100, %dx             # imm = 0x100
jb 0x21cd3
testq %r9, %r9
je 0x21cd9
cmpq %rsi, 0x8(%r9)
je 0x21d06
incq %r8
jmp 0x21cbd
movq 0x10(%rax), %rax
cmpq %rcx, %rax
jne 0x21ca3
leaq 0x1d7a9(%rip), %rdi     # 0x3f497
leaq 0x1e907(%rip), %rsi     # 0x405fc
leaq 0x1e90b(%rip), %rcx     # 0x40607
movl $0x107, %edx            # imm = 0x107
callq 0xe120
andq $0x0, 0x18(%rax,%r8,8)
addl $0x100, %edx            # imm = 0x100
movw %dx, (%rax)
movq 0x8(%rbx), %rdi
callq 0x1f8c0
testb %al, %al
je 0x21d27
andq $0x0, 0x8(%rbx)
testl %ebp, %ebp
je 0x21c90
cmpq $0x0, 0x8(%rbx)
jne 0x21c90
movl 0x4(%rbx), %eax
andl $-0x2, %eax
cmpl $0x2, %eax
jne 0x21c90
movq 0x18(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x21fdf
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: kill_insn
int kill_insn(struct instruction *insn, int force)
{
	if (!insn || !insn->bb)
		return 0;

	switch (insn->opcode) {
	case OP_SEL:
	case OP_RANGE:
		kill_use(&insn->src3);
		/* fall through */

	case OP_BINARY ... OP_BINCMP_END:
		kill_use(&insn->src2);
		/* fall through */

	case OP_UNOP ... OP_UNOP_END:
	case OP_SLICE:
	case OP_PHISOURCE:
	case OP_SYMADDR:
	case OP_CBR:
	case OP_SWITCH:
	case OP_COMPUTEDGOTO:
		kill_use(&insn->src1);
		break;

	case OP_PHI:
		kill_use_list(insn->phi_list);
		break;

	case OP_CALL:
		if (!force) {
			/* a "pure" function can be killed too */
			struct symbol *fntype = first_symbol(insn->fntypes);

			if (!(fntype->ctype.modifiers & MOD_PURE))
				return 0;
		}
		kill_use_list(insn->arguments);
		if (insn->func->type == PSEUDO_REG)
			kill_use(&insn->func);
		break;

	case OP_LOAD:
		if (!force && insn->is_volatile)
			return 0;
		kill_use(&insn->src);
		break;

	case OP_STORE:
		if (!force)
			return 0;
		kill_use(&insn->src);
		kill_use(&insn->target);
		break;

	case OP_ASM:
		if (!force)
			return 0;
		kill_asm(insn);
		break;

	case OP_ENTRY:
		/* ignore */
		return 0;

	case OP_BR:
	case OP_LABEL:
	case OP_SETVAL:
	case OP_SETFVAL:
	default:
		break;
	}

	insn->bb = NULL;
	return repeat_phase |= REPEAT_CSE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
xorl %ebp, %ebp
testq %rdi, %rdi
je 0x21dc9
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdi)
je 0x21dc9
movl (%rbx), %eax
andl $0x7f, %eax
decl %eax
cmpl $0x4f, %eax
ja 0x21db6
leaq 0x1dfb5(%rip), %rcx     # 0x3fd50
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x38(%rbx), %rdi
callq 0x21c58
leaq 0x30(%rbx), %rdi
callq 0x21c58
andq $0x0, 0x8(%rbx)
leaq 0x3efb2(%rip), %rax     # 0x60d74
movl (%rax), %ebp
orl $0x1, %ebp
movl %ebp, (%rax)
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x40(%rbx), %rdi
callq 0x21c58
jmp 0x21da4
testl %esi, %esi
jne 0x21dad
testb $0x1, 0x40(%rbx)
je 0x21dad
jmp 0x21dc9
testl %esi, %esi
je 0x21dc9
leaq 0x30(%rbx), %rdi
callq 0x21c58
leaq 0x20(%rbx), %rdi
jmp 0x21db1
testl %esi, %esi
jne 0x21e11
movq 0x40(%rbx), %rdi
callq 0x1f919
testb $0x1, 0x6b(%rax)
je 0x21dc9
movq 0x38(%rbx), %rdi
callq 0x21e7e
movq 0x30(%rbx), %rax
cmpl $0x3, 0x4(%rax)
je 0x21dad
jmp 0x21db6
testl %esi, %esi
je 0x21dc9
movq 0x38(%rbx), %rax
movq (%rax), %r14
testq %r14, %r14
je 0x21db6
movq %r14, %r15
xorl %r12d, %r12d
movl (%r15), %eax
movsbq %al, %rcx
cmpq %rcx, %r12
jge 0x21e62
movq 0x18(%r15,%r12,8), %rdi
cmpw $0x100, %ax             # imm = 0x100
jb 0x21e58
testq %rdi, %rdi
je 0x21e5d
callq 0x21c58
incq %r12
jmp 0x21e3c
movq 0x10(%r15), %r15
cmpq %r14, %r15
jne 0x21e39
jmp 0x21db6
movq 0x38(%rbx), %rdi
callq 0x21e7e
jmp 0x21db6
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: kill_use_list
static void kill_use_list(struct pseudo_list *list)
{
	pseudo_t p;
	FOR_EACH_PTR(list, p) {
		if (p == VOID)
			continue;
		kill_use(THIS_ADDRESS(p));
	} END_FOR_EACH_PTR(p);
}

// Assembly:
testq %rdi, %rdi
je 0x21eee
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x3db3a(%rip), %r15     # 0x5f9d0
movq %rdi, %r12
leaq 0x18(%r12), %r14
xorl %r13d, %r13d
movl (%r12), %eax
movsbq %al, %rcx
cmpq %rcx, %r13
jge 0x21edb
movq (%r14), %rcx
cmpw $0x100, %ax             # imm = 0x100
setae %al
testq %rcx, %rcx
sete %dl
andb %al, %dl
cmpq %r15, %rcx
sete %al
orb %dl, %al
jne 0x21ed2
movq %r14, %rdi
callq 0x21c58
incq %r13
addq $0x8, %r14
jmp 0x21ea1
movq 0x10(%r12), %r12
cmpq %rbx, %r12
jne 0x21e99
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: remove_dead_insns
void remove_dead_insns(struct entrypoint *ep)
{
	struct basic_block *bb;

	FOR_EACH_PTR_REVERSE(ep->bbs, bb) {
		struct instruction *insn;
		FOR_EACH_PTR_REVERSE(bb->insns, insn) {
			if (!insn->bb)
				continue;
			if (!has_target(insn))
				continue;
			if (!has_users(insn->target))
				kill_instruction(insn);
		} END_FOR_EACH_PTR_REVERSE(insn);
	} END_FOR_EACH_PTR_REVERSE(bb);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x18(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x21fbf
leaq 0x18d6a(%rip), %r15     # 0x3ac80
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rcx
movsbq (%rcx), %rax
movl %eax, %r13d
movq %rcx, 0x10(%rsp)
testl %r13d, %r13d
jle 0x21fb4
movq 0x10(%rcx,%r13,8), %rax
decq %r13
cmpw $0x100, (%rcx)          # imm = 0x100
jb 0x21f48
testq %rax, %rax
je 0x21f2b
movq 0x28(%rax), %r14
testq %r14, %r14
je 0x21f2b
movq %r14, %rbp
movq 0x8(%rbp), %rbp
movsbq (%rbp), %rax
movl %eax, %r12d
testl %r12d, %r12d
jle 0x21fa5
movq 0x10(%rbp,%r12,8), %rbx
cmpw $0x100, (%rbp)          # imm = 0x100
jb 0x21f77
testq %rbx, %rbx
je 0x21fa0
cmpq $0x0, 0x8(%rbx)
je 0x21fa0
movl (%rbx), %eax
andl $0x7f, %eax
testb $0x1, 0x5(%r15,%rax,8)
je 0x21fa0
movq 0x20(%rbx), %rdi
callq 0x21fce
testl %eax, %eax
jne 0x21fa0
movq %rbx, %rdi
callq 0x21fdf
decq %r12
jmp 0x21f60
cmpq %r14, %rbp
jne 0x21f54
movq 0x10(%rsp), %rcx
jmp 0x21f2b
cmpq 0x8(%rsp), %rcx
jne 0x21f1b
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: canonical_order
static int canonical_order(pseudo_t p1, pseudo_t p2)
{
	int t1 = p1->type;
	int t2 = p2->type;

	/* symbol/constants on the right */
	if (t1 < t2)
		return 1;
	if (t1 > t2)
		return 0;
	switch (t1) {
	case PSEUDO_SYM:
		return p1->sym <= p2->sym;
	case PSEUDO_REG:
	case PSEUDO_ARG:
		return p1->nr <= p2->nr;
	default:
		return 1;
	}
}

// Assembly:
movl 0x4(%rdi), %ecx
movl 0x4(%rsi), %edx
movb $0x1, %al
cmpl %edx, %ecx
jl 0x2469a
jle 0x24679
xorl %eax, %eax
jmp 0x2469a
leal -0x3(%rcx), %edx
cmpl $0x2, %edx
jae 0x2468a
movl (%rdi), %eax
cmpl (%rsi), %eax
setle %al
jmp 0x2469a
cmpl $0x5, %ecx
jne 0x2469a
movq 0x18(%rdi), %rax
cmpq 0x18(%rsi), %rax
setbe %al
movzbl %al, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: switch_pseudo
static int switch_pseudo(struct instruction *insn1, pseudo_t *pp1, struct instruction *insn2, pseudo_t *pp2)
{
	pseudo_t p1 = *pp1, p2 = *pp2;

	use_pseudo(insn1, p2, pp1);
	use_pseudo(insn2, p1, pp2);
	remove_usage(p1, pp1);
	remove_usage(p2, pp2);
	return REPEAT_CSE;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq (%rsi), %r12
movq (%rcx), %r13
movq %r13, %rsi
movq %r15, %rdx
callq 0x246eb
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x246eb
movq %r12, %rdi
movq %r15, %rsi
callq 0x24739
movq %r13, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x24739
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/./bits.h
// Function: sign_extend_safe
static inline long long sign_extend_safe(long long val, unsigned size)
{
	unsigned long long mask = bits_mask(size);
	if (!(val & ~mask))
		val = sign_extend(val, size);
	return val;
}

// Assembly:
movq %rdi, %rax
movl %esi, %ecx
negb %cl
pushq $-0x1
popq %rdx
movq %rdx, %rdi
shrq %cl, %rdi
cmpq %rax, %rdi
jb 0x249e5
decl %esi
movl %esi, %ecx
shlq %cl, %rdx
xorl %ecx, %ecx
btq %rsi, %rax
cmovbq %rdx, %rcx
orq %rcx, %rax
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: simplify_mask_or
static int simplify_mask_or(struct instruction *insn, unsigned long long mask, struct instruction *or)
{
	pseudo_t src1 = or->src1;
	pseudo_t src2 = or->src2;
	int rc;

	if (src1->type == PSEUDO_REG) {
		if ((rc = simplify_mask_or_and(insn, mask, src1, src2)))
			return rc;
	}
	if (src2->type == PSEUDO_REG) {
		if ((rc = simplify_mask_or_and(insn, mask, src2, src1)))
			return rc;
	} else if (src2->type == PSEUDO_VAL) {
		unsigned long long oval = src2->value;
		unsigned long long nval = oval & mask;
		// Try to simplify:
		//	MASK(OR(x, C), M)
		if (nval == 0) {
			// if (C & M) == 0: OR(x, C) -> x
			return replace_pseudo(insn, &insn->src1, src1);
		}
		if (nval == mask) {
			// if (C & M) == M: OR(x, C) -> M
			return replace_pseudo(insn, &insn->src1, value_pseudo(mask));
		}
		if (nval != oval && one_use(or->target)) {
			// if (C & M) != C: OR(x, C) -> OR(x, (C & M))
			return replace_pseudo(or, &or->src2, value_pseudo(nval));
		}
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
movq 0x30(%rdx), %r13
movq 0x38(%rdx), %rbp
cmpl $0x3, 0x4(%r13)
pushq $0x1
popq %rbx
jne 0x24a25
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x24abb
testl %eax, %eax
jne 0x24aaa
movl 0x4(%rbp), %eax
cmpl $0x6, %eax
je 0x24a49
cmpl $0x3, %eax
jne 0x24aa8
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x24abb
testl %eax, %eax
jne 0x24aaa
jmp 0x24aa8
movq 0x18(%rbp), %rax
movq %rax, %rbp
andq %r12, %rbp
je 0x24a71
cmpq %r12, %rbp
jne 0x24a82
leaq 0x30(%r15), %r14
movq %r12, %rdi
callq 0x12c98
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
jmp 0x24a7b
leaq 0x30(%r15), %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x2492c
jmp 0x24aaa
cmpq %rax, %rbp
je 0x24aa8
movq 0x20(%r14), %rdi
callq 0x24977
testb %al, %al
je 0x24aa8
leaq 0x38(%r14), %r15
movq %rbp, %rdi
callq 0x12c98
movq %r14, %rdi
movq %r15, %rsi
jmp 0x24a6c
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: simplify_mask_or_and
static int simplify_mask_or_and(struct instruction *insn, unsigned long long mask,
	pseudo_t ora, pseudo_t orb)
{
	unsigned long long omask, nmask;
	struct instruction *and = ora->def;
	pseudo_t src2 = and->src2;

	if (and->opcode != OP_AND)
		return 0;
	if (!constant(src2))
		return 0;
	omask = src2->value;
	nmask = omask & mask;
	if (nmask == 0) {
		// if (M' & M) == 0: ((a & M') | b) -> b
		return replace_pseudo(insn, &insn->src1, orb);
	}
	if (!one_use(insn->src1))
		return 0;	// can't modify anything inside the OR
	if (nmask == mask) {
		struct instruction *or = insn->src1->def;
		pseudo_t *arg = (ora == or->src1) ? &or->src1 : &or->src2;
		// if (M' & M) == M: ((a & M') | b) -> (a | b)
		return replace_pseudo(or, arg, and->src1);
	}
	if (nmask != omask && one_use(ora)) {
		// if (M' & M) != M': AND(a, M') -> AND(a, (M' & M))
		and->src2 = value_pseudo(nmask);
		return REPEAT_CSE;
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x18(%rdx), %rbp
movl (%rbp), %eax
andl $0x7f, %eax
xorl %ebx, %ebx
cmpl $0x16, %eax
jne 0x24b38
movq 0x38(%rbp), %rax
cmpl $0x6, 0x4(%rax)
jne 0x24b38
movq %rsi, %r12
movq 0x18(%rax), %r13
leaq 0x30(%rdi), %rsi
movq %r13, %r15
andq %r12, %r15
je 0x24b2d
movq %rdx, %r14
movq %rsi, (%rsp)
movq (%rsi), %rdi
callq 0x24977
testb %al, %al
je 0x24b38
cmpq %r12, %r15
jne 0x24b49
movq (%rsp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rdi
leaq 0x30(%rdi), %rax
cmpq %r14, 0x30(%rdi)
leaq 0x38(%rdi), %rsi
cmoveq %rax, %rsi
movq 0x30(%rbp), %rdx
jmp 0x24b30
movq %rcx, %rdx
callq 0x2492c
pushq $0x1
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq %r13, %r15
je 0x24b38
movq %r14, %rdi
callq 0x24977
testb %al, %al
je 0x24b38
movq %r15, %rdi
callq 0x12c98
movq %rax, 0x38(%rbp)
jmp 0x24b35
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: simplify_mask_shift
static int simplify_mask_shift(struct instruction *sh, unsigned long long mask)
{
	struct instruction *inner;

	if (!constant(sh->src2) || sh->tainted)
		return 0;
	switch (DEF_OPCODE(inner, sh->src1)) {
	case OP_OR:
		if (one_use(sh->target))
			return simplify_mask_shift_or(sh, inner, mask);
		break;
	}
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x38(%rdi), %rax
cmpl $0x6, 0x4(%rax)
jne 0x24bc0
movq %rdi, %r14
testb $-0x80, (%rdi)
jne 0x24bc0
movq 0x30(%r14), %rax
cmpl $0x3, 0x4(%rax)
jne 0x24bc0
movq 0x18(%rax), %r15
testq %r15, %r15
je 0x24bc0
movl (%r15), %eax
andl $0x7f, %eax
cmpl $0x17, %eax
jne 0x24bc0
movq %rsi, %rbx
movq 0x20(%r14), %rdi
callq 0x24977
testb %al, %al
je 0x24bc0
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x24985
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: can_move_to
static inline bool can_move_to(pseudo_t src, struct instruction *dst)
{
	struct basic_block *bbs, *bbd;
	struct instruction *def;

	if (!one_use(dst->target))
		return false;
	if (src->type != PSEUDO_REG)
		return true;

	def = src->def;
	if (dst == def)
		return false;
	bbs = def->bb;
	bbd = dst->bb;
	if (bbs == bbd)
		return insn_before(bbs, def, dst);
	else
		return domtree_dominates(bbs, bbd);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rsi), %rdi
callq 0x24977
testb %al, %al
je 0x24c4d
movb $0x1, %al
cmpl $0x3, 0x4(%r14)
jne 0x24c4f
movq 0x18(%r14), %rcx
cmpq %rbx, %rcx
je 0x24c4d
movq 0x8(%rcx), %rdi
movq 0x8(%rbx), %rsi
cmpq %rsi, %rdi
je 0x24c57
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x364dc
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x28(%rdi), %rdx
xorl %eax, %eax
testq %rdx, %rdx
je 0x24c4f
movq %rdx, %rsi
movzwl (%rsi), %edi
movsbl %dil, %eax
testw %ax, %ax
movl $0x0, %r8d
cmovgl %eax, %r8d
movzwl %r8w, %r8d
xorl %r9d, %r9d
cmpq %r9, %r8
je 0x24ca8
movq 0x18(%rsi,%r9,8), %r10
cmpw $0x100, %di             # imm = 0x100
jb 0x24c96
testq %r10, %r10
je 0x24ca3
cmpq %rcx, %r10
sete %al
je 0x24c4f
cmpq %rbx, %r10
je 0x24c4f
incq %r9
jmp 0x24c80
movq 0x10(%rsi), %rsi
xorl %eax, %eax
cmpq %rdx, %rsi
jne 0x24c65
jmp 0x24c4f
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: simplify_constant_unop
static int simplify_constant_unop(struct instruction *insn)
{
	long long val = insn->src1->value;
	long long res, mask;

	switch (insn->opcode) {
	case OP_NOT:
		res = ~val;
		break;
	case OP_NEG:
		res = -val;
		break;
	case OP_SEXT:
		mask = 1ULL << (insn->orig_type->bit_size-1);
		if (val & mask)
			val |= ~(mask | (mask-1));
		/* fall through */
	case OP_ZEXT:
	case OP_TRUNC:
		res = val;
		break;
	default:
		return 0;
	}
	mask = 1ULL << (insn->size-1);
	res &= mask | (mask-1);
	
	return replace_with_value(insn, res);
}

// Assembly:
movl (%rdi), %eax
movl %eax, %ecx
andl $0x7f, %ecx
addl $-0x31, %ecx
cmpl $0x5, %ecx
ja 0x24ce1
movq 0x30(%rdi), %rdx
movq 0x18(%rdx), %rsi
leaq 0x1b76d(%rip), %rdx     # 0x40440
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
notq %rsi
jmp 0x24d06
xorl %eax, %eax
retq
negq %rsi
jmp 0x24d06
movq 0x40(%rdi), %rcx
movl 0x50(%rcx), %ecx
decl %ecx
btq %rcx, %rsi
jae 0x24d06
notb %cl
pushq $-0x1
popq %rdx
shrq %cl, %rdx
notq %rdx
orq %rdx, %rsi
shrl $0x8, %eax
negb %al
movl %eax, %ecx
shlq %cl, %rsi
shrq %cl, %rsi
jmp 0x2495f
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: simplify_add_one_side
static int simplify_add_one_side(struct instruction *insn, pseudo_t *p1, pseudo_t *p2)
{
	struct instruction *defr = NULL;
	struct instruction *def;
	pseudo_t src1 = *p1;
	pseudo_t src2 = *p2;

	switch (DEF_OPCODE(def, src1)) {
	case OP_MUL:
		if (DEF_OPCODE(defr, *p2) == OP_MUL) {
			if (defr->src2 == def->src2 && can_move_to(def->src2, defr)) {
				// ((x * z) + (y * z)) into ((x + y) * z)
				swap_insn(insn, defr, def->src1, defr->src1, def->src2);
				return REPEAT_CSE;
			}
			if (defr->src1 == def->src1 && can_move_to(def->src1, defr)) {
				// ((z * x) + (z * y)) into ((x + y) * z)
				swap_insn(insn, defr, def->src2, defr->src2, def->src1);
				return REPEAT_CSE;
			}
			if (defr->src1 == def->src2 && can_move_to(def->src1, defr)) {
				// ((x * z) + (z * y)) into ((x + y) * z)
				swap_insn(insn, defr, def->src1, defr->src2, def->src2);
				return REPEAT_CSE;
			}
		}
		break;

	case OP_NEG:				// (-x + y) --> (y - x)
		return replace_binop(insn, OP_SUB, &insn->src1, src2, &insn->src2, def->src);

	case OP_SUB:
		if (def->src2 == src2)		// (x - y) + y --> x
			return replace_with_pseudo(insn, def->src1);
		break;
	}
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq (%rsi), %rax
xorl %ebx, %ebx
cmpl $0x3, 0x4(%rax)
jne 0x24dcc
movq 0x18(%rax), %r12
testq %r12, %r12
je 0x24dcc
movq %rdi, %r14
movq (%rdx), %rcx
movl (%r12), %eax
andl $0x7f, %eax
cmpl $0x32, %eax
je 0x24db1
cmpl $0xa, %eax
je 0x24d92
cmpl $0x9, %eax
jne 0x24dcc
cmpl $0x3, 0x4(%rcx)
jne 0x24dcc
movq 0x18(%rcx), %r15
testq %r15, %r15
je 0x24dcc
movl (%r15), %eax
andl $0x7f, %eax
cmpl $0x9, %eax
jne 0x24dcc
movq 0x38(%r12), %rdi
cmpq %rdi, 0x38(%r15)
jne 0x24dda
movq %r15, %rsi
callq 0x24c0b
testb %al, %al
je 0x24dda
movq 0x30(%r15), %rcx
jmp 0x24e24
cmpq %rcx, 0x38(%r12)
jne 0x24dcc
movq 0x30(%r12), %rsi
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x21fe6
leaq 0x30(%r14), %rdx
leaq 0x38(%r14), %r8
movq 0x30(%r12), %r9
pushq $0xa
popq %rsi
movq %r14, %rdi
callq 0x24f35
pushq $0x1
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x30(%r15), %rax
movq 0x30(%r12), %rdi
cmpq %rdi, %rax
jne 0x24e08
movq %r15, %rsi
callq 0x24c0b
testb %al, %al
je 0x24e04
movq 0x30(%r12), %r8
movq 0x38(%r12), %rdx
movq 0x38(%r15), %rcx
jmp 0x24e2e
movq 0x30(%r15), %rax
cmpq 0x38(%r12), %rax
jne 0x24dcc
movq 0x30(%r12), %rdi
movq %r15, %rsi
callq 0x24c0b
testb %al, %al
je 0x24dcc
movq 0x38(%r15), %rcx
movq 0x30(%r12), %rdx
movq 0x38(%r12), %r8
movq %r14, %rdi
movq %r15, %rsi
callq 0x24e3b
jmp 0x24dc9
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: replace_binop
static inline int replace_binop(struct instruction *insn, int op, pseudo_t *pa, pseudo_t a, pseudo_t *pb, pseudo_t b)
{
	pseudo_t olda = *pa;
	pseudo_t oldb = *pb;
	insn->opcode = op;
	use_pseudo(insn, a, pa);
	use_pseudo(insn, b, pb);
	remove_usage(olda, pa);
	remove_usage(oldb, pb);
	return REPEAT_CSE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r14
movq %r8, %rbx
movq %rdx, %r15
movq %rdi, %r12
movq (%rdx), %r13
movq (%r8), %rbp
movl (%rdi), %eax
andl $0x7f, %esi
andl $-0x80, %eax
orl %esi, %eax
movl %eax, (%rdi)
movq %rcx, %rsi
callq 0x246eb
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x246eb
movq %r13, %rdi
movq %r15, %rsi
callq 0x24739
movq %rbp, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x24739
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: trivial_phi
static pseudo_t trivial_phi(pseudo_t pseudo, struct instruction *insn, struct pseudo_list **list)
{
	pseudo_t target = insn->target;
	pseudo_t phi;

	add_pseudo(list, target);

	FOR_EACH_PTR(insn->phi_list, phi) {
		struct instruction *def;
		pseudo_t src;

		if (phi == VOID)
			continue;
		def = phi->def;
		if (!def->bb)
			continue;
		src = def->phi_src; // bypass OP_PHISRC & get the real source
		if (src == VOID)
			continue;
		if (src == target)
			continue;
		if (!pseudo) {
			pseudo = src;
			continue;
		}
		if (src == pseudo)
			continue;
		if (DEF_OPCODE(def, src) == OP_PHI) {
			if (pseudo_in_list(*list, src))
				continue;
			if ((pseudo = trivial_phi(pseudo, def, list)))
				continue;
		}
		return NULL;
	} END_FOR_EACH_PTR(phi);

	return pseudo ? pseudo : VOID;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
movq 0x20(%rsi), %r15
movq %rdx, %rdi
movq %r15, %rsi
callq 0x1fae9
movq 0x38(%r12), %rax
testq %rax, %rax
je 0x256ad
movq %r14, 0x10(%rsp)
leaq 0x3a3f3(%rip), %rbp     # 0x5f9d0
movq %rax, %r13
movq %r15, (%rsp)
movq %rax, 0x8(%rsp)
xorl %r14d, %r14d
movl (%r13), %ecx
movsbq %cl, %rax
cmpq %rax, %r14
jge 0x2569b
movq 0x18(%r13,%r14,8), %rax
cmpw $0x100, %cx             # imm = 0x100
setae %cl
testq %rax, %rax
sete %dl
testb %dl, %cl
jne 0x25693
cmpq %rbp, %rax
je 0x25693
movq 0x18(%rax), %rax
cmpq $0x0, 0x8(%rax)
je 0x25693
movq 0x30(%rax), %rsi
cmpq %rbp, %rsi
sete %al
cmpq %r15, %rsi
sete %cl
orb %al, %cl
jne 0x25693
testq %rbx, %rbx
je 0x25674
cmpq %rbx, %rsi
je 0x25693
cmpl $0x3, 0x4(%rsi)
jne 0x256bb
movq 0x18(%rsi), %r12
testq %r12, %r12
je 0x256bb
movl (%r12), %eax
andl $0x7f, %eax
cmpl $0x46, %eax
jne 0x256bb
movq 0x10(%rsp), %r15
movq (%r15), %rdi
callq 0x1fbbc
testb %al, %al
je 0x25679
movq (%rsp), %r15
jmp 0x25693
movq %rsi, %rbx
jmp 0x25693
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x2559d
movq %rax, %rbx
testq %rax, %rax
movq (%rsp), %r15
je 0x256bb
incq %r14
jmp 0x255ec
movq 0x10(%r13), %r13
movq 0x8(%rsp), %rax
cmpq %rax, %r13
jne 0x255e9
testq %rbx, %rbx
jne 0x256bd
leaq 0x3a317(%rip), %rbx     # 0x5f9d0
jmp 0x256bd
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: phi_parent
static struct basic_block *phi_parent(struct basic_block *source, pseudo_t pseudo)
{
	/* Can't go upwards if the pseudo is defined in the bb it came from.. */
	if (pseudo->type == PSEUDO_REG) {
		struct instruction *def = pseudo->def;
		if (def->bb == source)
			return source;
	}
	if (bb_list_size(source->children) != 1 || bb_list_size(source->parents) != 1)
		return source;
	return first_basic_block(source->parents);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x3, 0x4(%rsi)
jne 0x256e3
movq 0x18(%rsi), %rax
cmpq %rbx, 0x8(%rax)
je 0x25709
movq 0x20(%rbx), %rdi
callq 0x1f89c
cmpl $0x1, %eax
jne 0x25709
movq 0x18(%rbx), %rdi
callq 0x1f89c
cmpl $0x1, %eax
jne 0x25709
movq 0x18(%rbx), %rdi
popq %rbx
jmp 0x1f919
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/simplify.c
// Function: simplify_cond_branch
static int simplify_cond_branch(struct instruction *br, struct instruction *def, pseudo_t newcond)
{
	replace_pseudo(br, &br->cond, newcond);
	if (def->opcode == OP_SET_EQ) {
		struct basic_block *tmp = br->bb_true;
		br->bb_true = br->bb_false;
		br->bb_false = tmp;
	}
	return REPEAT_CSE;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x30(%rdi), %rsi
callq 0x2492c
movl (%r14), %eax
andl $0x7f, %eax
cmpl $0x27, %eax
jne 0x257a8
movdqu 0x38(%rbx), %xmm0
pshufd $0x4e, %xmm0, %xmm0     # xmm0 = xmm0[2,3,0,1]
movdqu %xmm0, 0x38(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/ssa.c
// Function: lookup_var
static struct instruction *lookup_var(struct basic_block *bb, struct symbol *var)
{
	do {
		struct instruction *insn = phi_map_lookup(bb->phi_map, var);
		if (insn)
			return insn;
	} while ((bb = bb->idom));
	return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x58(%r14), %rdi
movq %rbx, %rsi
callq 0x380a9
testq %rax, %rax
jne 0x266bc
movq 0x30(%r14), %r14
testq %r14, %r14
jne 0x266a2
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/symbol.c
// Function: access_symbol
void access_symbol(struct symbol *sym)
{
	if (sym->ctype.modifiers & MOD_INLINE) {
		if (!sym->accessed) {
			add_symbol(&translation_unit_used_list, sym);
			sym->accessed = 1;
		}
	}
}

// Assembly:
testb $0x40, 0x68(%rdi)
je 0x266e8
pushq %rbx
movq %rdi, %rbx
testb $0x4, 0x56(%rdi)
jne 0x266e7
leaq 0x3e325(%rip), %rdi     # 0x64a00
movq %rbx, %rsi
callq 0x1fae9
orb $0x4, 0x56(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/symbol.c
// Function: lookup_symbol
struct symbol *lookup_symbol(struct ident *ident, enum namespace ns)
{
	struct symbol *sym;

	for (sym = ident->symbols; sym; sym = sym->next_id) {
		if (sym->namespace & ns) {
			sym->used = 1;
			return sym;
		}
	}
	return NULL;
}

// Assembly:
movq %rdi, %rax
addq $0x8, %rax
andl $0x1ff, %esi            # imm = 0x1FF
movq (%rax), %rax
testq %rax, %rax
je 0x26717
movl (%rax), %ecx
movl %ecx, %edx
shrl $0x8, %edx
testl %edx, %esi
jne 0x2670f
addq $0x20, %rax
jmp 0x266f6
orl $0x20000, %ecx          # imm = 0x20000
movl %ecx, (%rax)
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/symbol.c
// Function: alloc_symbol
struct symbol *alloc_symbol(struct position pos, int type)
{
	struct symbol *sym = __alloc_symbol(0);
	sym->type = type;
	sym->pos = pos;
	sym->endpos.type = 0;
	return sym;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
xorl %edi, %edi
callq 0x2aa1f
movb %bl, (%rax)
movq %r14, 0x4(%rax)
andb $-0x40, 0xc(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/symbol.c
// Function: merge_type
void merge_type(struct symbol *sym, struct symbol *base_type)
{
	combine_address_space(sym->pos, &sym->ctype.as, base_type->ctype.as);
	sym->ctype.modifiers |= (base_type->ctype.modifiers & ~MOD_STORAGE);
	concat_ptr_list((struct ptr_list *)base_type->ctype.contexts,
	                (struct ptr_list **)&sym->ctype.contexts);
	sym->ctype.base_type = base_type->ctype.base_type;
	if (sym->ctype.base_type->type == SYM_NODE)
		merge_type(sym, sym->ctype.base_type);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x80(%rdi), %r15
leaq 0x78(%rdi), %r12
movq 0x80(%rbx), %rdx
movq 0x4(%r14), %rdi
movq %r15, %rsi
callq 0x2679e
movq 0x68(%rbx), %rax
andq $-0x60, %rax
orq %rax, 0x68(%r14)
movq 0x78(%rbx), %rdi
movq %r12, %rsi
callq 0x1fe0b
movq 0x60(%rbx), %rbx
movq %rbx, 0x60(%r14)
cmpb $0x3, (%rbx)
je 0x2675a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/symbol.c
// Function: examine_base_type
static struct symbol *examine_base_type(struct symbol *sym)
{
	struct symbol *base_type;

	if (sym->ctype.base_type == &autotype_ctype) {
		struct symbol *type = evaluate_expression(sym->initializer);
		if (!type)
			type = &bad_ctype;
		if (is_bitfield_type(type)) {
			warning(sym->pos, "__auto_type on bitfield");
			if (type->type == SYM_NODE)
				type = type->ctype.base_type;
			type = type->ctype.base_type;
		}
		sym->ctype.base_type = type;
	}

	/* Check the base type */
	base_type = examine_symbol_type(sym->ctype.base_type);
	if (!base_type || base_type->type == SYM_PTR)
		return base_type;
	combine_address_space(sym->pos, &sym->ctype.as, base_type->ctype.as);
	sym->ctype.modifiers |= base_type->ctype.modifiers & MOD_PTRINHERIT;
	concat_ptr_list((struct ptr_list *)base_type->ctype.contexts,
			(struct ptr_list **)&sym->ctype.contexts);
	if (base_type->type == SYM_NODE) {
		base_type = base_type->ctype.base_type;
		sym->ctype.base_type = base_type;
		sym->rank = base_type->rank;
	}
	return base_type;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x60(%rdi), %r14
leaq 0x3fa6c(%rip), %rax     # 0x66a78
cmpq %rax, %r14
jne 0x2705c
movq 0xb0(%rbx), %rdi
callq 0x2d0ed
testq %rax, %rax
leaq 0x3f891(%rip), %r14     # 0x668b8
cmovneq %rax, %r14
movq %r14, %rdi
callq 0x2731e
cmpl $0xb, %eax
jne 0x27058
movq 0x4(%rbx), %rdi
leaq 0x19aa6(%rip), %rsi     # 0x40ae9
xorl %eax, %eax
callq 0x1108a
cmpb $0x3, (%r14)
jne 0x27054
movq 0x60(%r14), %r14
movq 0x60(%r14), %r14
movq %r14, 0x60(%rbx)
movq %r14, %rdi
callq 0x267cd
testq %rax, %rax
je 0x270c8
movq %rax, %r14
cmpb $0x4, (%rax)
je 0x270cb
leaq 0x80(%rbx), %rsi
movq 0x80(%r14), %rdx
movq 0x4(%rbx), %rdi
callq 0x2679e
movq 0x68(%r14), %rax
andl $0x1c001e00, %eax       # imm = 0x1C001E00
orq %rax, 0x68(%rbx)
movq 0x78(%r14), %rdi
leaq 0x78(%rbx), %rsi
callq 0x1fe0b
cmpb $0x3, (%r14)
jne 0x270cb
movq 0x60(%r14), %r14
movq %r14, 0x60(%rbx)
movl $0x3800000, %eax        # imm = 0x3800000
andl 0x54(%r14), %eax
movl $0xfc7fffff, %ecx       # imm = 0xFC7FFFFF
andl 0x54(%rbx), %ecx
orl %eax, %ecx
movl %ecx, 0x54(%rbx)
jmp 0x270cb
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/symbol.c
// Function: create_fouled
void create_fouled(struct symbol *type)
{
	if (type->bit_size < bits_in_int) {
		struct symbol *new = alloc_symbol(type->pos, type->type);
		*new = *type;
		new->bit_size = bits_in_int;
		new->rank = 0;
		new->type = SYM_FOULED;
		new->ctype.base_type = type;
		add_symbol(&restr, type);
		add_symbol(&fouled, new);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl 0x50(%rdi), %eax
leaq 0x37605(%rip), %r15     # 0x5e708
cmpl (%r15), %eax
jge 0x27164
movq %rdi, %rbx
movzbl (%rdi), %esi
movq 0x4(%rdi), %rdi
callq 0x2671f
movq %rax, %r14
movl $0xe0, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0xe1e0
movl (%r15), %eax
movl %eax, 0x50(%r14)
andl $0xfc7fffff, 0x54(%r14) # imm = 0xFC7FFFFF
movb $0xe, (%r14)
movq %rbx, 0x60(%r14)
leaq 0x3d8c0(%rip), %rdi     # 0x64a08
movq %rbx, %rsi
callq 0x1fae9
leaq 0x3d8b9(%rip), %rdi     # 0x64a10
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x1fae9
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/symbol.c
// Function: befoul
struct symbol *befoul(struct symbol *type)
{
	struct symbol *t1, *t2;
	while (type->type == SYM_NODE)
		type = type->ctype.base_type;
	PREPARE_PTR_LIST(restr, t1);
	PREPARE_PTR_LIST(fouled, t2);
	for (;;) {
		if (t1 == type)
			return t2;
		if (!t1)
			break;
		NEXT_PTR_LIST(t1);
		NEXT_PTR_LIST(t2);
	}
	FINISH_PTR_LIST(t2);
	FINISH_PTR_LIST(t1);
	return NULL;
}

// Assembly:
cmpb $0x3, (%rdi)
jne 0x27175
movq 0x60(%rdi), %rdi
jmp 0x2716a
movq 0x3d88c(%rip), %rax     # 0x64a08
xorl %esi, %esi
testq %rax, %rax
je 0x2719c
pushq $0x1
popq %rdx
movq %rax, %rcx
cmpb $0x0, (%rcx)
jg 0x271a5
movq 0x10(%rcx), %rcx
cmpq %rax, %rcx
jne 0x27189
xorl %r8d, %r8d
jmp 0x271a1
xorl %r8d, %r8d
xorl %ecx, %ecx
xorl %edx, %edx
jmp 0x271ad
movq 0x18(%rcx), %r8
andq $-0x4, %r8
movq 0x3d85c(%rip), %r9      # 0x64a10
testq %r9, %r9
je 0x271d2
movq %r9, %r10
cmpb $0x0, (%r10)
jg 0x271da
movq 0x10(%r10), %r10
cmpq %r9, %r10
jne 0x271bc
xorl %r11d, %r11d
xorl %esi, %esi
jmp 0x27245
xorl %r11d, %r11d
xorl %r10d, %r10d
jmp 0x27245
movq 0x18(%r10), %r11
andq $-0x4, %r11
pushq $0x1
popq %rsi
jmp 0x27245
testq %r8, %r8
je 0x2724a
movsbl (%rcx), %r8d
cmpl %r8d, %edx
jl 0x27205
movq 0x10(%rcx), %rcx
xorl %edx, %edx
cmpq %rax, %rcx
jne 0x271ec
xorl %r8d, %r8d
jmp 0x27213
movslq %edx, %r8
movq 0x18(%rcx,%r8,8), %r8
andq $-0x4, %r8
incl %edx
testq %r11, %r11
movl $0x0, %r11d
je 0x27245
movsbl (%r10), %r11d
cmpl %r11d, %esi
jl 0x27237
movq 0x10(%r10), %r10
xorl %esi, %esi
cmpq %r9, %r10
jne 0x2721e
xorl %r11d, %r11d
jmp 0x27245
movslq %esi, %r11
movq 0x18(%r10,%r11,8), %r11
andq $-0x4, %r11
incl %esi
cmpq %rdi, %r8
jne 0x271e7
xorl %eax, %eax
cmpq %rdi, %r8
cmoveq %r11, %rax
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/symbol.c
// Function: check_declaration
void check_declaration(struct symbol *sym)
{
	int warned = 0;
	struct symbol *next = sym;

	while ((next = next->next_id) != NULL) {
		if (next->namespace != sym->namespace)
			continue;
		if (sym->scope == next->scope) {
			sym->same_symbol = next;
			inherit_declaration(sym, next);
			return;
		}
		/* Extern in block level matches a TOPLEVEL non-static symbol */
		if (sym->ctype.modifiers & MOD_EXTERN) {
			if ((next->ctype.modifiers & (MOD_TOPLEVEL|MOD_STATIC)) == MOD_TOPLEVEL) {
				sym->same_symbol = next;
				return;
			}
		}

		if (!Wshadow || warned)
			continue;
		if (get_sym_type(next) == SYM_FN)
			continue;
		warned = 1;
		warning(sym->pos, "symbol '%s' shadows an earlier one", show_ident(sym->ident));
		info(next->pos, "originally declared here");
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %ecx, %ecx
leaq 0x39bc5(%rip), %r13     # 0x60e30
leaq 0x1963e(%rip), %r15     # 0x408b0
leaq 0x1965a(%rip), %r12     # 0x408d3
movq %rdi, %r14
movl (%r13), %ebp
testl %ebp, %ebp
sete %al
orb %cl, %al
movq 0x20(%r14), %r14
testq %r14, %r14
je 0x2730f
movl (%rbx), %ecx
xorl (%r14), %ecx
testl $0x1ff00, %ecx          # imm = 0x1FF00
jne 0x27287
movq 0x30(%rbx), %rcx
cmpq 0x30(%r14), %rcx
je 0x272f8
testb $0x8, 0x68(%rbx)
je 0x272b9
movl 0x68(%r14), %ecx
andl $0x14, %ecx
cmpl $0x10, %ecx
je 0x2730b
testb $0x1, %al
jne 0x27287
movq %r14, %rdi
callq 0x2731e
xorl %ecx, %ecx
cmpl $0x5, %eax
je 0x27280
movq 0x18(%rbx), %rdi
callq 0x2936d
movq 0x4(%rbx), %rdi
movq %r15, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1108a
movq 0x4(%r14), %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x10ddc
movb $0x1, %cl
jmp 0x2727c
movq %r14, 0x38(%rbx)
movq 0x68(%r14), %rax
andl $0x11000000, %eax       # imm = 0x11000000
orq %rax, 0x68(%rbx)
jmp 0x2730f
movq %r14, 0x38(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/symbol.c
// Function: bind_symbol_with_scope
void bind_symbol_with_scope(struct symbol *sym, struct ident *ident, enum namespace ns, struct scope *scope)
{
	if (sym->bound) {
		sparse_error(sym->pos, "internal error: symbol type already bound");
		return;
	}
	if (ident->reserved && (ns & (NS_TYPEDEF | NS_STRUCT | NS_LABEL | NS_SYMBOL))) {
		sparse_error(sym->pos, "Trying to use reserved word '%s' as identifier", show_ident(ident));
		return;
	}
	sym->namespace = ns;
	sym->next_id = ident->symbols;
	ident->symbols = sym;
	if (sym->ident && sym->ident != ident)
		warning(sym->pos, "Symbol '%s' already bound", show_ident(sym->ident));
	sym->ident = ident;
	sym->bound = 1;

	if (ns == NS_SYMBOL && toplevel(scope)) {
		unsigned mod = MOD_ADDRESSABLE | MOD_TOPLEVEL;

		inherit_static(sym);

		scope = global_scope;
		if (sym->ctype.modifiers & MOD_STATIC ||
		    is_extern_inline(sym)) {
			scope = file_scope;
			mod = MOD_TOPLEVEL;
		}
		sym->ctype.modifiers |= mod;
	}
	bind_scope(sym, scope);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rdi), %eax
btl $0x15, %eax
jb 0x2738a
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, %r15
testb $0x1e, %bpl
je 0x273a6
movb 0x11(%r15), %cl
andb $0x2, %cl
je 0x273a6
movq %r15, %rdi
callq 0x2936d
movq 0x4(%rbx), %rdi
leaq 0x195a0(%rip), %rsi     # 0x40916
movq %rax, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1120e
movq 0x4(%rbx), %rdi
leaq 0x19557(%rip), %rsi     # 0x408ec
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1120e
movl %ebp, %ecx
shll $0x8, %ecx
andl $0x1ff00, %ecx          # imm = 0x1FF00
andl $0xffde00ff, %eax       # imm = 0xFFDE00FF
orl %ecx, %eax
movl %eax, (%rbx)
movq 0x8(%r15), %rax
movq %rax, 0x20(%rbx)
movq %rbx, 0x8(%r15)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
sete %al
cmpq %r15, %rdi
sete %cl
orb %al, %cl
jne 0x273f4
callq 0x2936d
movq 0x4(%rbx), %rdi
leaq 0x1955b(%rip), %rsi     # 0x40945
movq %rax, %rdx
xorl %eax, %eax
callq 0x1108a
movq %r15, 0x18(%rbx)
orb $0x20, 0x2(%rbx)
cmpl $0x10, %ebp
jne 0x27462
leaq 0x36990(%rip), %rax     # 0x5dd98
movq (%rax), %rdx
cmpq %r14, %rdx
setne %cl
leaq 0x36988(%rip), %rax     # 0x5dda0
movq (%rax), %rax
cmpq %r14, %rax
setne %sil
testb %sil, %cl
jne 0x27462
movq 0x68(%rbx), %rcx
testb $0xc, %cl
je 0x27477
testb $0x4, %cl
jne 0x27452
movl %ecx, %edi
notl %edi
movl $0x110, %esi            # imm = 0x110
testb $0x48, %dil
jne 0x27458
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0x27458
cmpb $0x5, (%rdi)
jne 0x27458
pushq $0x10
popq %rsi
movq %rdx, %rax
orq %rcx, %rsi
movq %rsi, 0x68(%rbx)
movq %rax, %r14
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1ff74
movl $0x1ff00, %edi          # imm = 0x1FF00
movq %rbx, %rsi
movq 0x20(%rsi), %rsi
testq %rsi, %rsi
je 0x27430
movl (%rsi), %r8d
andl %edi, %r8d
cmpl $0x1000, %r8d           # imm = 0x1000
jne 0x2747f
cmpq %rdx, 0x30(%rsi)
jne 0x2747f
movq 0x68(%rsi), %rsi
andl $0x4, %esi
orq %rsi, %rcx
movq %rcx, 0x68(%rbx)
jmp 0x27430
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/symbol.c
// Function: create_symbol
struct symbol *create_symbol(int stream, const char *name, int type, int namespace)
{
	struct ident *ident = built_in_ident(name);
	struct symbol *sym = lookup_symbol(ident, namespace);

	if (sym && sym->type != type)
		die("symbol %s created with different types: %d old %d", name,
				type, sym->type);

	if (!sym) {
		struct token *token = built_in_token(stream, ident);

		sym = alloc_symbol(token->pos, type);
		bind_symbol(sym, token->ident, namespace);
	}
	return sym;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movl %edx, %ebx
movq %rsi, %r14
movl %edi, %r12d
movq %rsi, %rdi
callq 0x29ad9
movq %rax, %r13
movq %rax, %rdi
movl %ebp, %esi
callq 0x266e9
testq %rax, %rax
je 0x27522
movq %rax, %r15
movzbl (%rax), %ecx
cmpl %ebx, %ecx
je 0x2754b
leaq 0x19449(%rip), %rdi     # 0x4095f
movq %r14, %rsi
movl %ebx, %edx
xorl %eax, %eax
callq 0x113be
movl %r12d, %edi
movq %r13, %rsi
callq 0x29ba6
movq %rax, %r14
movq (%rax), %rdi
movl %ebx, %esi
callq 0x2671f
movq %rax, %r15
movq 0x10(%r14), %rsi
movq %rax, %rdi
movl %ebp, %edx
callq 0x274ad
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/symbol.c
// Function: lay_out_union
static void lay_out_union(struct symbol *sym, struct struct_union_info *info)
{
	if (sym->bit_size < 0 && is_array_type(sym))
		sparse_error(sym->pos, "flexible array member '%s' in a union", show_ident(sym->ident));

	if (sym->bit_size > info->bit_size)
		info->bit_size = sym->bit_size;

	sym->offset = 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl 0x50(%rdi), %ebp
testl %ebp, %ebp
jns 0x27c34
movq %rbx, %rdi
callq 0x27cf4
testl %eax, %eax
je 0x27c34
movq 0x18(%rbx), %rdi
callq 0x2936d
movq 0x4(%rbx), %rdi
leaq 0x18dff(%rip), %rsi     # 0x40a26
movq %rax, %rdx
xorl %eax, %eax
callq 0x1120e
movl 0x50(%rbx), %ebp
movslq %ebp, %rax
cmpq %rax, 0x8(%r14)
jae 0x27c41
movq %rax, 0x8(%r14)
andq $0x0, 0x48(%rbx)
popq %rbx
popq %r14
popq %rbp
retq