LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/evaluate.c
// Function: evaluate_asm_memop
static void evaluate_asm_memop(struct asm_operand *op)
{
	if (op->is_memory) {
		struct expression *expr = op->expr;
		struct expression *addr;

		// implicit addressof
		addr = alloc_expression(expr->pos, EXPR_PREOP);
		addr->op = '&';
		addr->unop = expr;

		evaluate_addressof(addr);
		op->expr = addr;
	} else {
		evaluate_expression(op->expr);
		degenerate(op->expr);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
testb $0x20, 0x18(%rdi)
movq 0x10(%rdi), %r14
jne 0x38c69
movq %r14, %rdi
callq 0x32223
movq 0x10(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x32bf6
movq 0x8(%r14), %r12
xorl %edi, %edi
callq 0x2f9f5
movq %rax, %r15
movq %r12, 0x8(%rax)
movw $0x9, (%rax)
movl $0x26, 0x4(%rax)
movq %r14, 0x20(%rax)
movq %rax, %rdi
callq 0x37765
movq %r15, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/expression.c
// Function: parens_expression
struct token *parens_expression(struct token *token, struct expression **expr, const char *where)
{
	struct token *p;

	token = expect(token, '(', where);
	p = token;
	if (match_op(token, '{')) {
		struct expression *e = alloc_expression(token->pos, EXPR_STATEMENT);
		struct statement *stmt = alloc_statement(token->pos, STMT_COMPOUND);
		*expr = e;
		e->statement = stmt;
		start_label_scope();
		token = compound_statement(token->next, stmt);
		end_label_scope();
		token = expect(token, '}', "at end of statement expression");
	} else
		token = parse_expression(token, expr);

	if (token == p)
		sparse_error(token->pos, "an expression is expected before ')'");
	return expect(token, ')', where);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movl $0x28, %esi
callq 0x1950f
movq %rax, %r14
movq (%rax), %r13
movl %r13d, %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x38d80
cmpl $0x7b, 0x10(%r14)
jne 0x38d80
xorl %edi, %edi
callq 0x2f9f5
movq %rax, %r12
movq %r13, 0x8(%rax)
movw $0x13, (%rax)
movq (%r14), %rdi
movl $0x3, %esi
callq 0x195bf
movq %rax, %r13
movq %r12, (%r15)
movq %rax, 0x20(%r12)
callq 0x22f09
movq 0x8(%r14), %rdi
movq %r13, %rsi
callq 0x1a211
movq %rax, %r15
callq 0x22e64
leaq 0x11ddb(%rip), %rdx     # 0x4ab4c
movq %r15, %rdi
movl $0x7d, %esi
callq 0x1950f
jmp 0x38d8b
movq %r14, %rdi
movq %r15, %rsi
callq 0x39d79
movq %rax, %r15
cmpq %r14, %rax
jne 0x38da4
movq (%r15), %rdi
leaq 0x11dce(%rip), %rsi     # 0x4ab6b
xorl %eax, %eax
callq 0x11a80
movq %r15, %rdi
movl $0x29, %esi
movq %rbx, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1950f
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/expression.c
// Function: string_expression
struct token *string_expression(struct token *token, struct expression **expr, const char *where)
{
	struct token *next = primary_expression(token, expr);

	if (!*expr || (*expr)->type != EXPR_STRING) {
		sparse_error(token->pos, "string literal expected for %s", where);
		*expr = NULL;
	}
	return next;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
callq 0x38e13
movq %rax, %r15
movq (%rbx), %rax
testq %rax, %rax
je 0x38de8
cmpb $0x2, (%rax)
je 0x38e04
movq (%r12), %rdi
leaq 0x11d9d(%rip), %rsi     # 0x4ab90
movq %r14, %rdx
xorl %eax, %eax
callq 0x11a80
movq $0x0, (%rbx)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/expression.c
// Function: builtin_types_compatible_p_expr
static struct token *builtin_types_compatible_p_expr(struct token *token,
						     struct expression **tree)
{
	struct expression *expr = alloc_expression(
		token->pos, EXPR_COMPARE);
	expr->op = SPECIAL_EQUAL;
	token = token->next;
	if (!match_op(token, '('))
		return expect(token, '(',
			      "after __builtin_types_compatible_p");
	token = token->next;
	token = parse_type(token, &expr->left);
	if (!match_op(token, ','))
		return expect(token, ',',
			      "in __builtin_types_compatible_p");
	token = token->next;
	token = parse_type(token, &expr->right);
	if (!match_op(token, ')'))
		return expect(token, ')',
			      "at end of __builtin_types_compatible_p");
	token = token->next;
	
	*tree = expr;
	return token;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdi), %r12
xorl %edi, %edi
callq 0x2f9f5
movq %rax, %r14
movq %r12, 0x8(%rax)
movw $0x16, (%rax)
movl $0x10a, 0x4(%rax)       # imm = 0x10A
movq 0x8(%r15), %rdi
movl (%rdi), %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x39732
cmpl $0x28, 0x10(%rdi)
jne 0x39732
movq 0x8(%rdi), %rdi
leaq 0x20(%r14), %rsi
callq 0x39e7f
movl (%rax), %ecx
andl $0x3f, %ecx
cmpl $0x12, %ecx
jne 0x3974e
cmpl $0x2c, 0x10(%rax)
jne 0x3974e
movq 0x8(%rax), %rdi
leaq 0x28(%r14), %rsi
callq 0x39e7f
movl (%rax), %ecx
andl $0x3f, %ecx
cmpl $0x12, %ecx
jne 0x3975f
cmpl $0x29, 0x10(%rax)
jne 0x3975f
movq 0x8(%rax), %rax
movq %r14, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x11618(%rip), %rdx     # 0x4ad51
movl $0x28, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1950f
leaq 0x1161f(%rip), %rdx     # 0x4ad74
movq %rax, %rdi
movl $0x2c, %esi
jmp 0x3973e
leaq 0x1162e(%rip), %rdx     # 0x4ad94
movq %rax, %rdi
movl $0x29, %esi
jmp 0x3973e
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/expression.c
// Function: generic_selection
static struct token *generic_selection(struct token *token, struct expression **tree)
{
	struct expression *expr = alloc_expression(token->pos, EXPR_GENERIC);
	struct type_expression **last = &expr->map;

	token = expect(token, '(', "after '_Generic'");
	token = assignment_expression(token, &expr->control);
	if (!match_op(token, ',')) {
		goto end;
	}
	while (match_op(token, ',')) {
		token = token->next;
		if (lookup_type(token)) {
			struct type_expression *map = __alloc_type_expression(0);
			token = typename(token, &map->type, NULL);
			token = expect(token, ':', "after typename");
			token = assignment_expression(token, &map->expr);
			*last = map;
			last = &map->next;
		} else if (match_ident(token, &default_ident)) {
			if (expr->def) {
				warning(token->pos, "multiple default in generic expression");
				info(expr->def->pos, "note: previous was here");
			}
			token = token->next;
			token = expect(token, ':', "after typename");
			token = assignment_expression(token, &expr->def);
		}
	}
end:
	*tree = expr;
	return expect(token, ')', "after expression");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdi), %r12
xorl %edi, %edi
callq 0x2f9f5
movq %rax, %r14
movq %r12, 0x8(%rax)
movw $0x1f, (%rax)
leaq 0x20(%rax), %r12
leaq 0x114b6(%rip), %rdx     # 0x4ae65
movq %r15, %rdi
movl $0x28, %esi
callq 0x1950f
movq %rax, %rdi
movq %r12, %rsi
callq 0x39cd0
movq %rax, %r13
movl (%rax), %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x39afb
cmpl $0x2c, 0x10(%r13)
jne 0x39afb
leaq 0x30(%r14), %rax
movq %rax, (%rsp)
movq %r14, %r15
addq $0x28, %r15
leaq 0x2a457(%rip), %rbp     # 0x63e50
cmpl $0x2c, 0x10(%r13)
jne 0x39afb
movq 0x8(%r13), %r13
movl (%r13), %eax
andl $0x3f, %eax
cmpl $0x3, %eax
jne 0x39a2d
movq 0x10(%r13), %rdi
movl $0x12, %esi
callq 0x2afd5
testq %rax, %rax
je 0x39a2d
testb $0x2, 0x1(%rax)
jne 0x39a97
movq (%r13), %rdi
movl %edi, %eax
andl $0x3f, %eax
cmpl $0x3, %eax
jne 0x39aeb
cmpq %rbp, 0x10(%r13)
jne 0x39aeb
cmpq $0x0, (%r15)
je 0x39a72
leaq 0x1142f(%rip), %rsi     # 0x4ae85
xorl %eax, %eax
callq 0x118fc
movq (%r15), %rax
movq 0x8(%rax), %rdi
leaq 0x11441(%rip), %rsi     # 0x4aeac
xorl %eax, %eax
callq 0x1178c
movq 0x8(%r13), %rdi
movl $0x3a, %esi
leaq 0x113f4(%rip), %rdx     # 0x4ae76
callq 0x1950f
movq %rax, %rdi
movq %r15, %rsi
callq 0x39cd0
movq %rax, %r13
jmp 0x39aeb
leaq 0x2b962(%rip), %rdi     # 0x65400
movl $0x18, %esi
callq 0x2f700
movq %rax, %r12
movq %r13, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x1965e
movq %rax, %rdi
movl $0x3a, %esi
leaq 0x113af(%rip), %rdx     # 0x4ae76
callq 0x1950f
leaq 0x8(%r12), %rsi
movq %rax, %rdi
callq 0x39cd0
movq %rax, %r13
movq (%rsp), %rax
movq %r12, (%rax)
addq $0x10, %r12
movq %r12, (%rsp)
movl (%r13), %eax
andl $0x3f, %eax
cmpl $0x12, %eax
je 0x399f9
movq %r14, (%rbx)
leaq 0x113bf(%rip), %rdx     # 0x4aec4
movq %r13, %rdi
movl $0x29, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1950f
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/expression.c
// Function: conditional_expression
struct token *conditional_expression(struct token *token, struct expression **tree)
{
	token = logical_or_expression(token, tree);
	if (*tree && match_op(token, '?')) {
		struct expression *expr = alloc_expression(token->pos, EXPR_CONDITIONAL);
		expr->op = token->special;
		expr->conditional = *tree;
		*tree = expr;
		token = parse_expression(token->next, &expr->cond_true);
		token = expect(token, ':', "in conditional expression");
		token = conditional_expression(token, &expr->cond_false);
	}
	return token;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
leaq 0x8(%rsp), %rbx
movq $0x0, (%rbx)
movq %rbx, %rsi
callq 0x39ef3
movq %rax, %r12
movq (%rbx), %r15
testq %r15, %r15
je 0x39cb3
leaq 0x10(%rsp), %rbx
movl (%r12), %eax
andl $0x3f, %eax
movq %r15, %rbp
cmpl $0x12, %eax
jne 0x39c1a
movq $0x0, 0x10(%rsp)
cmpl $0x10e, 0x10(%r12)      # imm = 0x10E
jne 0x39c17
movq (%r12), %r13
xorl %edi, %edi
callq 0x2f9f5
movq %rax, %rbp
movq %r13, 0x8(%rax)
movw $0x7, (%rax)
movq 0x8(%r12), %rdi
movq %rbx, %rsi
callq 0x39ef3
movq %rax, %r12
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x39bf8
movl $0x10e, 0x4(%rbp)       # imm = 0x10E
movq %r15, 0x20(%rbp)
movq %rax, 0x28(%rbp)
movl (%r12), %eax
andl $0x3f, %eax
movq %rbp, %r15
jmp 0x39b8f
movl $0x10e, %edi            # imm = 0x10E
callq 0x2ddfa
movq (%r12), %rdi
leaq 0x112c8(%rip), %rsi     # 0x4aed5
movq %rax, %rdx
xorl %eax, %eax
callq 0x11a80
movq %r15, %rbp
movq %rbp, (%r14)
movq (%r12), %r15
movl %r15d, %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x39cbe
cmpl $0x3f, 0x10(%r12)
jne 0x39cbe
xorl %edi, %edi
callq 0x2f9f5
movq %rax, %rbp
movq %r15, 0x8(%rax)
movw $0x11, (%rax)
movl 0x10(%r12), %eax
movl %eax, 0x4(%rbp)
movq (%r14), %rax
movq %rax, 0x20(%rbp)
movq %rbp, (%r14)
movq 0x8(%r12), %rdi
leaq 0x28(%rbp), %rsi
callq 0x39d79
movq %rax, %rdi
movl $0x3a, %esi
leaq 0x10f5b(%rip), %rdx     # 0x4abd9
callq 0x1950f
addq $0x30, %rbp
movq $0x0, 0x8(%rsp)
movq %rax, %rdi
leaq 0x8(%rsp), %rsi
callq 0x39ef3
movq %rax, %r12
movq 0x8(%rsp), %r15
movq %rbp, %r14
testq %r15, %r15
jne 0x39b85
jmp 0x39cb6
movq %r14, %rbp
movq $0x0, (%rbp)
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/expression.c
// Function: assignment_expression
struct token *assignment_expression(struct token *token, struct expression **tree)
{
	token = conditional_expression(token, tree);
	if (*tree && token_type(token) == TOKEN_SPECIAL) {
		static const int assignments[] = {
			'=',
			SPECIAL_ADD_ASSIGN, SPECIAL_SUB_ASSIGN,
			SPECIAL_MUL_ASSIGN, SPECIAL_DIV_ASSIGN,
			SPECIAL_MOD_ASSIGN, SPECIAL_SHL_ASSIGN,
			SPECIAL_SHR_ASSIGN, SPECIAL_AND_ASSIGN,
			SPECIAL_OR_ASSIGN,  SPECIAL_XOR_ASSIGN };
		int i, op = token->special;
		for (i = 0; i < ARRAY_SIZE(assignments); i++)
			if (assignments[i] == op) {
				struct expression * expr = alloc_expression(token->pos, EXPR_ASSIGNMENT);
				struct token *next = token->next;
				expr->left = *tree;
				expr->op = op;
				*tree = expr;
				token = assignment_expression(next, &expr->right);
				if (token == next)
					expression_error(expr, "expression expected before '%s'", show_token(token));
				return token;
			}
	}
	return token;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
callq 0x39b4c
movq %rax, %rbx
cmpq $0x0, (%r14)
je 0x39d6d
movq (%rbx), %r12
movl %r12d, %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x39d6d
movl 0x10(%rbx), %ebp
xorl %eax, %eax
leaq 0x10e19(%rip), %rcx     # 0x4ab20
cmpl %ebp, (%rax,%rcx)
je 0x39d18
addq $0x4, %rax
cmpq $0x2c, %rax
jne 0x39d07
jmp 0x39d6d
xorl %edi, %edi
callq 0x2f9f5
movq %rax, %r15
movq %r12, 0x8(%rax)
movw $0x6, (%rax)
movq 0x8(%rbx), %r12
movq (%r14), %rax
movq %rax, 0x20(%r15)
movl %ebp, 0x4(%r15)
movq %r15, (%r14)
leaq 0x28(%r15), %rsi
movq %r12, %rdi
callq 0x39cd0
movq %rax, %rbx
cmpq %r12, %rax
jne 0x39d6d
movq %rbx, %rdi
callq 0x2df90
leaq 0x9316(%rip), %rsi      # 0x43076
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x11b04
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/expression.c
// Function: parse_type
static struct token *parse_type(struct token *token, struct expression **tree)
{
	struct symbol *sym;
	*tree = alloc_expression(token->pos, EXPR_TYPE);
	token = typename(token, &sym, NULL);
	if (sym->ident)
		sparse_error(token->pos,
			     "type expression should not include identifier "
			     "\"%s\"", sym->ident->name);
	(*tree)->symbol = sym;
	return token;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %r15
xorl %edi, %edi
callq 0x2f9f5
movq %r15, 0x8(%rax)
movw $0x4, (%rax)
movq %rax, (%rbx)
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x1965e
movq %rax, %r14
movq (%r15), %rax
movq 0x18(%rax), %rdx
testq %rdx, %rdx
je 0x39edf
addq $0x12, %rdx
movq (%r14), %rdi
leaq 0x10ee8(%rip), %rsi     # 0x4adbb
xorl %eax, %eax
callq 0x11a80
movq 0x8(%rsp), %rax
movq (%rbx), %rcx
movq %rax, 0x20(%rcx)
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/expression.c
// Function: relational_expression
static struct token *relational_expression(struct token *token, struct expression **tree)
{
	LR_BINOP_EXPRESSION(
		token, tree, EXPR_COMPARE, shift_expression,
		(op == '<') || (op == '>') ||
		(op == SPECIAL_LTE) || (op == SPECIAL_GTE)
	);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, 0x8(%rsp)
leaq 0x10(%rsp), %r15
movq $0x0, (%r15)
movq %r15, %rsi
callq 0x3a460
movq %rax, %r14
movq (%r15), %rbp
testq %rbp, %rbp
je 0x3a422
movq (%r14), %rbx
movl %ebx, %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x3a443
movq %rsp, %r15
movq $0x0, (%rsp)
movl 0x10(%r14), %r13d
leal -0x108(%r13), %eax
cmpl $0x2, %eax
jb 0x3a3d6
cmpl $0x3e, %r13d
je 0x3a3d6
cmpl $0x3c, %r13d
jne 0x3a443
xorl %edi, %edi
callq 0x2f9f5
movq %rax, %r12
movq %rbx, 0x8(%rax)
movw $0x16, (%rax)
movq 0x8(%r14), %rdi
movq %r15, %rsi
callq 0x3a460
movq %rax, %r14
movq (%rsp), %rax
testq %rax, %rax
je 0x3a427
movl %r13d, 0x4(%r12)
movq %rbp, 0x20(%r12)
movq %rax, 0x28(%r12)
movq (%r14), %rbx
movl %ebx, %eax
andl $0x3f, %eax
movq %r12, %rbp
cmpl $0x12, %eax
je 0x3a3b2
jmp 0x3a446
xorl %r12d, %r12d
jmp 0x3a446
movl %r13d, %edi
callq 0x2ddfa
movq (%r14), %rdi
leaq 0x10a9c(%rip), %rsi     # 0x4aed5
movq %rax, %rdx
xorl %eax, %eax
callq 0x11a80
movq %rbp, %r12
movq 0x8(%rsp), %rax
movq %r12, (%rax)
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/expression.c
// Function: match_oplist
static int match_oplist(int op, ...)
{
	va_list args;
	int nextop;

	va_start(args, op);
	do {
		nextop = va_arg(args, int);
	} while (nextop != 0 && nextop != op);
	va_end(args);

	return nextop != 0;
}

// Assembly:
subq $0x58, %rsp
leaq -0x60(%rsp), %r10
movq %rsi, 0x8(%r10)
movq %rdx, 0x10(%r10)
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0x3ae25
movaps %xmm0, -0x30(%rsp)
movaps %xmm1, -0x20(%rsp)
movaps %xmm2, -0x10(%rsp)
movaps %xmm3, (%rsp)
movaps %xmm4, 0x10(%rsp)
movaps %xmm5, 0x20(%rsp)
movaps %xmm6, 0x30(%rsp)
movaps %xmm7, 0x40(%rsp)
movq %r10, -0x70(%rsp)
leaq 0x60(%rsp), %rcx
movq %rcx, -0x78(%rsp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, -0x80(%rsp)
movl $0x8, %eax
cmpl $0x28, %eax
ja 0x3ae5e
movq %rcx, %rdx
movl %eax, %ecx
addq %r10, %rcx
addl $0x8, %eax
movl %eax, -0x80(%rsp)
jmp 0x3ae67
leaq 0x8(%rcx), %rdx
movq %rdx, -0x78(%rsp)
movl (%rcx), %esi
testl %esi, %esi
je 0x3ae74
movq %rdx, %rcx
cmpl %edi, %esi
jne 0x3ae48
xorl %eax, %eax
testl %esi, %esi
setne %al
addq $0x58, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: remove_phisources
int remove_phisources(struct basic_block *par, struct basic_block *old)
{
	struct instruction *insn;
	int changed = 0;

	FOR_EACH_PTR(old->insns, insn) {
		pseudo_t phi;

		if (!insn->bb)
			continue;
		if (insn->opcode != OP_PHI)
			return changed;

		// found a phi-node in the target BB,
		// now look after its phi-sources.
		FOR_EACH_PTR(insn->phi_list, phi) {
			struct instruction *phisrc = phi->def;

			if (phi == VOID)
				continue;
			assert(phisrc->phi_node == insn);
			if (phisrc->bb != par)
				continue;
			// found a phi-source corresponding to this edge:
			// remove it but avoid the recursive killing.
			REPLACE_CURRENT_PTR(phi, VOID);
			remove_use(&phisrc->src);
			phisrc->bb = NULL;
			changed |= REPEAT_CSE;
			// Only the first one must be removed.
			goto next;
		} END_FOR_EACH_PTR(phi);
next: ;
	} END_FOR_EACH_PTR(insn);
	return changed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x28(%rsi), %r14
testq %r14, %r14
je 0x3af8a
movq %rdi, %rbx
xorl %eax, %eax
leaq 0x2ab2c(%rip), %r15     # 0x659d0
movq %r14, %r12
movzwl (%r12), %ecx
testb %cl, %cl
jle 0x3af7a
xorl %r13d, %r13d
movq 0x18(%r12,%r13,8), %rdx
movzwl %cx, %esi
cmpl $0x100, %esi            # imm = 0x100
jb 0x3aed0
testq %rdx, %rdx
je 0x3af67
cmpq $0x0, 0x8(%rdx)
je 0x3af67
movl (%rdx), %esi
andl $0x7f, %esi
cmpl $0x46, %esi
jne 0x3af8c
movq 0x38(%rdx), %rsi
testq %rsi, %rsi
je 0x3af67
movq %rsi, %r8
movzwl (%r8), %r9d
movsbl %r9b, %edi
testw %di, %di
jle 0x3af3c
movzwl %di, %edi
movzwl %r9w, %r10d
xorl %r9d, %r9d
movq 0x18(%r8,%r9,8), %r11
cmpl $0x100, %r10d           # imm = 0x100
jb 0x3af1f
testq %r11, %r11
je 0x3af34
cmpq %r15, %r11
je 0x3af34
movq 0x18(%r11), %rbp
cmpq %rdx, 0x38(%rbp)
jne 0x3af9b
cmpq %rbx, 0x8(%rbp)
je 0x3af47
incq %r9
cmpq %r9, %rdi
jne 0x3af0c
movq 0x10(%r8), %r8
cmpq %rsi, %r8
jne 0x3aef5
jmp 0x3af67
leaq 0x30(%rbp), %rdi
movq %r15, 0x18(%r8,%r9,8)
callq 0x24a0e
movq $0x0, 0x8(%rbp)
movzwl (%r12), %ecx
movl $0x1, %eax
incq %r13
movzwl %cx, %edx
movsbq %dl, %rdx
cmpq %rdx, %r13
jl 0x3aeb7
movq 0x10(%r12), %r12
cmpq %r14, %r12
jne 0x3aea7
jmp 0x3af8c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10016(%rip), %rdi     # 0x4afb8
leaq 0x10028(%rip), %rsi     # 0x4afd1
leaq 0x10028(%rip), %rcx     # 0x4afd8
movl $0x33, %edx
callq 0xe120
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: convert_instruction_target
void convert_instruction_target(struct instruction *insn, pseudo_t src)
{
	pseudo_t target;
	struct pseudo_user *pu;
	/*
	 * Go through the "insn->users" list and replace them all..
	 */
	target = insn->target;
	if (target == src)
		return;
	FOR_EACH_PTR(target->users, pu) {
		if (*pu->userp != VOID) {
			assert(*pu->userp == target);
			*pu->userp = src;
		}
	} END_FOR_EACH_PTR(pu);
	if (has_use_list(src))
		concat_user_list(target->users, &src->users);
	target->users = NULL;
}

// Assembly:
pushq %rbx
movq 0x20(%rdi), %rbx
cmpq %rsi, %rbx
je 0x3b429
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x3b3f7
leaq 0x2a62e(%rip), %rcx     # 0x659d0
movq %rax, %rdx
movzwl (%rdx), %edi
testb %dil, %dil
jle 0x3b3ee
xorl %r8d, %r8d
movq 0x18(%rdx,%r8,8), %r9
movzwl %di, %r10d
cmpl $0x100, %r10d           # imm = 0x100
jb 0x3b3c7
testq %r9, %r9
je 0x3b3de
movq 0x8(%r9), %r9
movq (%r9), %r10
cmpq %rcx, %r10
je 0x3b3de
cmpq %rbx, %r10
jne 0x3b42b
movq %rsi, (%r9)
movzwl (%rdx), %edi
incq %r8
movzwl %di, %r9d
movsbq %r9b, %r9
cmpq %r9, %r8
jl 0x3b3b0
movq 0x10(%rdx), %rdx
cmpq %rax, %rdx
jne 0x3b3a5
testq %rsi, %rsi
je 0x3b421
movl 0x4(%rsi), %eax
cmpl $0x6, %eax
ja 0x3b40e
movl $0x43, %ecx
btl %eax, %ecx
jb 0x3b421
movq 0x8(%rbx), %rax
addq $0x8, %rsi
movq %rsi, %rdi
movq %rax, %rsi
callq 0x22b7a
movq $0x0, 0x8(%rbx)
popq %rbx
retq
leaq 0xfbe8(%rip), %rdi      # 0x4b01a
leaq 0xfb98(%rip), %rsi      # 0x4afd1
leaq 0xfbef(%rip), %rcx      # 0x4b02f
movl $0x194, %edx            # imm = 0x194
callq 0xe120
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: dominates
int dominates(struct instruction *insn, struct instruction *dom, int local)
{
	switch (dom->opcode) {
	case OP_CALL: case OP_ENTRY:
		return local ? 0 : -1;
	case OP_LOAD: case OP_STORE:
		break;
	case OP_ASM:
		if (dom->clobber_memory)
			return -1;
		if (dom->output_memory)
			return -1;
		return 0;
	default:
		return 0;
	}

	if (dom->src != insn->src) {
		if (local)
			return 0;
		/* We don't think two explicitly different symbols ever alias */
		if (distinct_symbols(insn->src, dom->src))
			return 0;
		/* We could try to do some alias analysis here */
		return -1;
	}
	if (!same_memop(insn, dom)) {
		if (!overlapping_memop(insn, dom))
			return 0;
		return -1;
	}
	return 1;
}

// Assembly:
movl (%rsi), %ecx
movl %ecx, %r8d
andl $0x7f, %r8d
xorl %eax, %eax
cmpl $0x49, %r8d
jg 0x3b47b
leal -0x43(%r8), %r9d
cmpl $0x2, %r9d
jae 0x3b48e
movq 0x30(%rsi), %r8
movq 0x30(%rdi), %r9
cmpq %r9, %r8
je 0x3b4b8
testl %edx, %edx
je 0x3b514
retq
cmpl $0x4e, %r8d
je 0x3b4a1
movl $0x0, %eax
cmpl $0x4a, %r8d
je 0x3b499
jmp 0x3b47a
movl $0x0, %eax
cmpl $0x1, %r8d
jne 0x3b47a
xorl %eax, %eax
cmpl $0x1, %edx
sbbl %eax, %eax
retq
movb 0x40(%rsi), %cl
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testb $0x1, %cl
jne 0x3b47a
shlb $0x6, %cl
sarb $0x7, %cl
movsbl %cl, %eax
retq
movq 0x38(%rdi), %rdx
movq 0x38(%rsi), %rsi
cmpq %rsi, %rdx
setne %al
movl (%rdi), %edi
movl %edi, %r8d
xorl %ecx, %r8d
cmpl $0x100, %r8d            # imm = 0x100
setae %r8b
orb %al, %r8b
movl $0x1, %eax
cmpb $0x1, %r8b
jne 0x3b47a
leaq 0x29212(%rip), %rax     # 0x64700
movl (%rax), %eax
imull %eax, %edx
imull %eax, %esi
shrl $0x8, %edi
addl %edx, %edi
cmpl %esi, %edi
jbe 0x3b511
shrl $0x8, %ecx
addl %ecx, %esi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %edx, %esi
ja 0x3b47a
xorl %eax, %eax
retq
cmpl $0x5, 0x4(%r9)
jne 0x3b535
cmpl $0x5, 0x4(%r8)
jne 0x3b535
movq 0x18(%r9), %rcx
movl $0x0, %eax
cmpq 0x18(%r8), %rcx
jne 0x3b47a
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: check_access
void check_access(struct instruction *insn)
{
	pseudo_t pseudo = insn->src;

	if (insn->bb && pseudo->type == PSEUDO_SYM) {
		int offset = insn->offset, bit = bytes_to_bits(offset) + insn->size;
		struct symbol *sym = pseudo->sym;

		if (sym->bit_size > 0 && (offset < 0 || bit > sym->bit_size)) {
			if (insn->tainted)
				return;
			warning(insn->pos, "invalid access %s '%s' (%d %d)",
				offset < 0 ? "below" : "past the end of",
				show_ident(sym->ident), offset,
				bits_to_bytes(sym->bit_size));
			insn->tainted = 1;
		}
	}
}

// Assembly:
cmpq $0x0, 0x8(%rdi)
je 0x3b602
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x30(%rdi), %rax
cmpl $0x5, 0x4(%rax)
jne 0x3b5fa
movq 0x18(%rax), %r15
movl 0x50(%r15), %eax
testl %eax, %eax
jle 0x3b5fa
movl 0x38(%rbx), %ebp
leaq 0x29187(%rip), %r12     # 0x64700
movl (%r12), %ecx
imull %ebp, %ecx
movl (%rbx), %edx
movl %edx, %esi
shrl $0x8, %esi
addl %ecx, %esi
testl %ebp, %ebp
sets %cl
cmpl %eax, %esi
setg %al
orb %cl, %al
testb %dl, %dl
setns %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x3b5fa
testl %ebp, %ebp
leaq 0xfae4(%rip), %rax      # 0x4b08e
leaq 0xfae3(%rip), %r14      # 0x4b094
cmovsq %rax, %r14
movq 0x18(%r15), %rdi
callq 0x2de35
movq %rax, %rcx
movl 0x50(%r15), %eax
testl %eax, %eax
js 0x3b5d9
movl (%r12), %esi
addl %esi, %eax
decl %eax
cltd
idivl %esi
movl %eax, %r9d
jmp 0x3b5df
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
movq 0x10(%rbx), %rdi
leaq 0xfa85(%rip), %rsi      # 0x4b06f
movq %r14, %rdx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x118fc
orb $-0x80, (%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: kill_dead_stores
void kill_dead_stores(struct entrypoint *ep, pseudo_t addr, int local)
{
	unsigned long generation;
	struct basic_block *bb;

	switch (pseudo_user_list_size(addr->users)) {
	case 0:
		return;
	case 1:
		if (local) {
			struct pseudo_user *pu = first_user(addr);
			struct instruction *insn = pu->insn;
			if (insn->opcode == OP_STORE) {
				kill_instruction_force(insn);
				return;
			}
		}
	default:
		break;
	}

	generation = ++bb_generation;
	FOR_EACH_PTR(ep->bbs, bb) {
		if (bb->children)
			continue;
		kill_dead_stores_bb(addr, generation, bb, local);
	} END_FOR_EACH_PTR(bb);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r12
movq 0x8(%rsi), %rdi
callq 0x22530
testl %eax, %eax
je 0x3b6ed
cmpl $0x1, %eax
jne 0x3b67e
testl %ebx, %ebx
je 0x3b67e
movq 0x8(%r14), %rax
movsbl (%rax), %ecx
testw %cx, %cx
jle 0x3b653
movzwl %cx, %ecx
xorl %edx, %edx
movq 0x18(%rax,%rdx,8), %rsi
testq %rsi, %rsi
jne 0x3b659
incq %rdx
cmpq %rdx, %rcx
jne 0x3b641
movq 0x10(%rax), %rax
jmp 0x3b634
movq (%rsi), %rdi
movl (%rdi), %eax
andl $0x7f, %eax
cmpl $0x44, %eax
jne 0x3b67e
movl $0x1, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x24a3f
movq 0x548f3(%rip), %r15     # 0x8ff78
incq %r15
movq %r15, 0x548e9(%rip)     # 0x8ff78
movq 0x18(%r12), %r12
testq %r12, %r12
je 0x3b6ed
movq %r12, %r13
movzwl (%r13), %eax
testb %al, %al
jle 0x3b6e4
xorl %ebp, %ebp
movq 0x18(%r13,%rbp,8), %rdx
movzwl %ax, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0x3b6bc
testq %rdx, %rdx
je 0x3b6d5
cmpq $0x0, 0x20(%rdx)
jne 0x3b6d5
movq %r14, %rdi
movq %r15, %rsi
movl %ebx, %ecx
callq 0x3b6fc
movzwl (%r13), %eax
incq %rbp
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %rbp
jl 0x3b6a7
movq 0x10(%r13), %r13
cmpq %r12, %r13
jne 0x3b69c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: kill_dead_stores_bb
static void kill_dead_stores_bb(pseudo_t pseudo, unsigned long generation, struct basic_block *bb, int local)
{
	struct instruction *insn;
	struct basic_block *parent;

	if (bb->generation == generation)
		return;
	bb->generation = generation;
	FOR_EACH_PTR_REVERSE(bb->insns, insn) {
		if (!insn->bb)
			continue;
		switch (insn->opcode) {
		case OP_LOAD:
			if (insn->src == pseudo)
				return;
			break;
		case OP_STORE:
			if (insn->src == pseudo) {
				kill_instruction_force(insn);
				continue;
			}
			break;
		case OP_CALL:
			if (!local)
				return;
		default:
			continue;
		}
		if (!local && insn->src->type != PSEUDO_SYM)
			return;
	} END_FOR_EACH_PTR_REVERSE(insn);

	FOR_EACH_PTR(bb->parents, parent) {
		if (bb_list_size(parent->children) > 1)
			continue;
		kill_dead_stores_bb(pseudo, generation, parent, local);
	} END_FOR_EACH_PTR(parent);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, (%rsp)
cmpq %rsi, 0x8(%rdx)
je 0x3b82c
movl %ecx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq (%rsp), %rax
movq %rsi, 0x8(%rax)
movq 0x28(%rax), %r13
testq %r13, %r13
je 0x3b7c0
movq %r13, %rbp
movq 0x8(%rbp), %rbp
movsbl (%rbp), %eax
testw %ax, %ax
jle 0x3b7b7
cwtl
decl %eax
movzwl %ax, %r12d
incq %r12
movq 0x10(%rbp,%r12,8), %rdi
cmpw $0x100, (%rbp)          # imm = 0x100
jb 0x3b75e
testq %rdi, %rdi
je 0x3b7b2
cmpq $0x0, 0x8(%rdi)
je 0x3b7b2
movl (%rdi), %eax
andl $0x7f, %eax
cmpl $0x4a, %eax
je 0x3b79f
cmpl $0x44, %eax
je 0x3b787
cmpl $0x43, %eax
jne 0x3b7b2
movq 0x30(%rdi), %rax
cmpq %r15, %rax
jne 0x3b790
jmp 0x3b82c
movq 0x30(%rdi), %rax
cmpq %r15, %rax
je 0x3b7a8
testl %ebx, %ebx
jne 0x3b7b2
cmpl $0x5, 0x4(%rax)
je 0x3b7b2
jmp 0x3b82c
testl %ebx, %ebx
jne 0x3b7b2
jmp 0x3b82c
movl $0x1, %esi
callq 0x24a3f
decq %r12
jg 0x3b74c
cmpq %r13, %rbp
jne 0x3b735
movq (%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, (%rsp)
testq %rax, %rax
je 0x3b82c
movq (%rsp), %rbp
movzwl (%rbp), %eax
testb %al, %al
jle 0x3b822
xorl %r13d, %r13d
movq 0x18(%rbp,%r13,8), %r12
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x3b7f4
testq %r12, %r12
je 0x3b813
movq 0x20(%r12), %rdi
callq 0x22530
cmpl $0x1, %eax
jg 0x3b813
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl %ebx, %ecx
callq 0x3b6fc
incq %r13
movl (%rbp), %eax
movsbq %al, %rcx
cmpq %rcx, %r13
jl 0x3b7e0
movq 0x10(%rbp), %rbp
cmpq (%rsp), %rbp
jne 0x3b7d5
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: kill_bb
void kill_bb(struct basic_block *bb)
{
	struct instruction *insn;
	struct basic_block *child, *parent;

	FOR_EACH_PTR(bb->insns, insn) {
		if (!insn->bb)
			continue;
		kill_instruction_force(insn);
		kill_defs(insn);
		/*
		 * We kill unreachable instructions even if they
		 * otherwise aren't "killable" (e.g. volatile loads)
		 */
	} END_FOR_EACH_PTR(insn);
	bb->insns = NULL;

	FOR_EACH_PTR(bb->children, child) {
		remove_bb_from_list(&child->parents, bb, 0);
	} END_FOR_EACH_PTR(child);
	bb->children = NULL;

	FOR_EACH_PTR(bb->parents, parent) {
		remove_bb_from_list(&parent->children, bb, 0);
	} END_FOR_EACH_PTR(parent);
	bb->parents = NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x28(%rdi), %r12
testq %r12, %r12
je 0x3b8da
movl $0x43, %ebp
movq %r12, %r13
movzwl (%r13), %eax
testb %al, %al
jle 0x3b8d1
xorl %r14d, %r14d
movq 0x18(%r13,%r14,8), %r15
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x3b87e
testq %r15, %r15
je 0x3b8a8
cmpq $0x0, 0x8(%r15)
je 0x3b8a8
movq %r15, %rdi
movl $0x1, %esi
callq 0x24a3f
movq 0x20(%r15), %rax
testq %rax, %rax
je 0x3b8a8
movl 0x4(%rax), %ecx
cmpl $0x6, %ecx
ja 0x3b8ba
btl %ecx, %ebp
jae 0x3b8ba
incq %r14
movl (%r13), %eax
movsbq %al, %rcx
cmpq %rcx, %r14
jl 0x3b86a
jmp 0x3b8d1
cmpq %r15, 0x18(%rax)
jne 0x3b8a8
movq %r15, %rdi
leaq 0x2a106(%rip), %rsi     # 0x659d0
callq 0x3b384
jmp 0x3b8a8
movq 0x10(%r13), %r13
cmpq %r12, %r13
jne 0x3b85e
movq $0x0, 0x28(%rbx)
movq 0x20(%rbx), %r14
testq %r14, %r14
je 0x3b938
movq %r14, %r15
movzwl (%r15), %eax
testb %al, %al
jle 0x3b92f
xorl %r12d, %r12d
movq 0x18(%r15,%r12,8), %rdi
movzwl %ax, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0x3b90e
testq %rdi, %rdi
je 0x3b920
addq $0x18, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x228ce
movzwl (%r15), %eax
incq %r12
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %r12
jl 0x3b8f9
movq 0x10(%r15), %r15
cmpq %r14, %r15
jne 0x3b8ee
movq $0x0, 0x20(%rbx)
movq 0x18(%rbx), %r14
testq %r14, %r14
je 0x3b996
movq %r14, %r15
movzwl (%r15), %eax
testb %al, %al
jle 0x3b98d
xorl %r12d, %r12d
movq 0x18(%r15,%r12,8), %rdi
movzwl %ax, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0x3b96c
testq %rdi, %rdi
je 0x3b97e
addq $0x20, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x228ce
movzwl (%r15), %eax
incq %r12
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %r12
jl 0x3b957
movq 0x10(%r15), %r15
cmpq %r14, %r15
jne 0x3b94c
movq $0x0, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: kill_unreachable_bbs
void kill_unreachable_bbs(struct entrypoint *ep)
{
	struct basic_block *bb;
	unsigned long generation = ++bb_generation;

	mark_bb_reachable(ep->entry->bb, generation);
	FOR_EACH_PTR(ep->bbs, bb) {
		if (bb->generation == generation)
			continue;
		/* Mark it as being dead */
		kill_bb(bb);
		bb->ep = NULL;
		DELETE_CURRENT_PTR(bb);
	} END_FOR_EACH_PTR(bb);
	PACK_PTR_LIST(&ep->bbs);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x545b3(%rip), %r14     # 0x8ff78
incq %r14
movq %r14, 0x545a9(%rip)     # 0x8ff78
movq 0x28(%rdi), %rax
movq 0x8(%rax), %rdi
movq %r14, %rsi
callq 0x3bacc
movq 0x18(%rbx), %rax
addq $0x18, %rbx
movq %rbx, 0x8(%rsp)
movq %rax, (%rsp)
testq %rax, %rax
je 0x3bab4
movq (%rsp), %rbp
movzwl (%rbp), %eax
testb %al, %al
jle 0x3baa6
leaq 0x18(%rbp), %rbx
leaq 0x10(%rbp), %rcx
movq %rcx, 0x10(%rsp)
xorl %r13d, %r13d
movslq %r13d, %rcx
movq (%rbx,%rcx,8), %r15
movzwl %ax, %edx
cmpl $0x100, %edx            # imm = 0x100
jb 0x3ba30
testq %r15, %r15
je 0x3ba97
cmpq %r14, 0x8(%r15)
je 0x3ba97
leaq (%rbx,%rcx,8), %r12
movq %r15, %rdi
callq 0x3b83b
movq $0x0, 0x10(%r15)
movsbq (%rbp), %rax
movq 0x10(%rsp), %rcx
leaq (%rcx,%rax,8), %rax
cmpq %rax, %r12
jae 0x3ba75
leaq 0x8(%r12), %rcx
movq 0x8(%r12), %rdx
movq %rdx, (%r12)
movq %rcx, %r12
cmpq %rax, %rcx
jb 0x3ba5d
jmp 0x3ba78
movq %r12, %rcx
movl $0xf0f0f0f0, %eax       # imm = 0xF0F0F0F0
movq %rax, (%rcx)
movl (%rbp), %eax
leal -0x1(%rax), %ecx
movzbl %cl, %ecx
andl $0xffffff00, %eax       # imm = 0xFFFFFF00
orl %ecx, %eax
movw %ax, (%rbp)
decl %r13d
incl %r13d
movsbl %al, %ecx
cmpl %ecx, %r13d
jl 0x3ba19
movq 0x10(%rbp), %rbp
cmpq (%rsp), %rbp
jne 0x3b9fd
movq 0x8(%rsp), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x226a7
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: mark_bb_reachable
static void mark_bb_reachable(struct basic_block *bb, unsigned long generation)
{
	struct basic_block *child;

	if (bb->generation == generation)
		return;
	bb->generation = generation;
	FOR_EACH_PTR(bb->children, child) {
		mark_bb_reachable(child, generation);
	} END_FOR_EACH_PTR(child);
}

// Assembly:
cmpq %rsi, 0x8(%rdi)
je 0x3bb3c
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rsi, 0x8(%rdi)
movq 0x20(%rdi), %r14
testq %r14, %r14
je 0x3bb31
movq %r14, %r15
movzwl (%r15), %eax
testb %al, %al
jle 0x3bb28
xorl %r12d, %r12d
movq 0x18(%r15,%r12,8), %rdi
movzwl %ax, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0x3bb0d
testq %rdi, %rdi
je 0x3bb19
movq %rbx, %rsi
callq 0x3bacc
movzwl (%r15), %eax
incq %r12
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %r12
jl 0x3baf8
movq 0x10(%r15), %r15
cmpq %r14, %r15
jne 0x3baed
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: simplify_cfg_early
int simplify_cfg_early(struct entrypoint *ep)
{
	struct basic_block *bb;
	int changed = 0;

	FOR_EACH_PTR_REVERSE(ep->bbs, bb) {
		struct instruction *insn;
		struct basic_block *tgt;

		if (!bb->ep) {
			DELETE_CURRENT_PTR(bb);
			changed = REPEAT_CFG_CLEANUP;
			continue;
		}

		insn = last_instruction(bb->insns);
		if (!insn)
			continue;
		switch (insn->opcode) {
		case OP_BR:
			tgt = insn->bb_true;
			if (bb_is_forwarder(bb))
				changed |= retarget_parents(bb, tgt);
			else if (bb_list_size(tgt->parents) == 1)
				changed |= merge_bb(bb, tgt);
			break;
		}
	} END_FOR_EACH_PTR_REVERSE(bb);
	return changed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x18(%rdi), %r12
testq %r12, %r12
je 0x3c125
movq $0x0, 0x8(%rsp)
movq %r12, %rbp
movq 0x8(%rbp), %rbp
movsbq (%rbp), %r13
leaq 0x10(%rbp), %rax
movq %rax, 0x10(%rsp)
leaq 0x18(%rbp), %rbx
movl %r13d, %r13d
leaq (%rbx,%r13,8), %rax
testl %r13d, %r13d
jle 0x3c11a
decq %r13
movq -0x8(%rax), %r14
addq $-0x8, %rax
movzwl (%rbp), %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0x3bfd5
testq %r14, %r14
je 0x3bfb0
cmpq $0x0, 0x10(%r14)
je 0x3c0c9
movq 0x28(%r14), %rdi
callq 0x225ce
testq %rax, %rax
je 0x3bfa9
movl (%rax), %ecx
andl $0x7f, %ecx
cmpl $0x3, %ecx
jne 0x3bfa9
movq 0x38(%rax), %r15
movq 0x28(%r14), %rax
testq %rax, %rax
je 0x3c08c
movq %rax, %rcx
movzwl (%rcx), %edx
movsbl %dl, %esi
testw %si, %si
jle 0x3c053
movzwl %si, %esi
xorl %edi, %edi
movzwl %dx, %r9d
movq 0x18(%rcx,%rdi,8), %r8
cmpl $0x100, %r9d            # imm = 0x100
jb 0x3c033
testq %r8, %r8
je 0x3c04b
cmpq $0x0, 0x8(%r8)
je 0x3c04b
movl (%r8), %r8d
andl $0x7f, %r8d
leal -0x4b(%r8), %r9d
cmpl $0x2, %r9d
jae 0x3c05e
incq %rdi
cmpq %rdi, %rsi
jne 0x3c01c
movq 0x10(%rcx), %rcx
cmpq %rax, %rcx
jne 0x3c00c
jmp 0x3c08c
addl $-0x3, %r8d
cmpl $0x2, %r8d
jae 0x3c08c
movq 0x18(%r14), %rdi
callq 0x225b0
testq %rax, %rax
je 0x3c0ab
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3c98d
testl %eax, %eax
jne 0x3c068
xorl %eax, %eax
jmp 0x3c0b8
movq 0x18(%r15), %rdi
callq 0x22530
cmpl $0x1, %eax
jne 0x3bfa9
movq %r14, %rdi
movq %r15, %rsi
callq 0x3c142
jmp 0x3c0b8
movq %r14, %rdi
callq 0x3b83b
movl $0x4, %eax
movq 0x8(%rsp), %rcx
orl %eax, %ecx
movq %rcx, 0x8(%rsp)
jmp 0x3bfa9
movzwl %cx, %ecx
movsbq %cl, %rcx
movq 0x10(%rsp), %rdx
leaq (%rdx,%rcx,8), %rcx
cmpq %rcx, %rax
jae 0x3c0f3
leaq 0x8(%rax), %rdx
movq 0x8(%rax), %rsi
movq %rsi, (%rax)
movq %rdx, %rax
cmpq %rcx, %rdx
jb 0x3c0de
jmp 0x3c0f6
movq %rax, %rdx
movl $0xf0f0f0f0, %eax       # imm = 0xF0F0F0F0
movq %rax, (%rdx)
decb (%rbp)
addq %rax, %r13
addq $0xf0f0f0f, %r13        # imm = 0xF0F0F0F
movl $0x4, %eax
movq %rax, 0x8(%rsp)
jmp 0x3bfa9
cmpq %r12, %rbp
jne 0x3bf93
jmp 0x3c12e
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: simplify_branch_branch
static int simplify_branch_branch(struct basic_block *bb, struct instruction *br,
	struct basic_block **target_p, int bb_true)
{
	struct basic_block *target = *target_p, *final;
	struct instruction *insn;
	int retval;

	if (target == bb)
		return 0;
	insn = last_instruction(target->insns);
	if (!insn || insn->opcode != OP_CBR || insn->cond != br->cond)
		return 0;
	/*
	 * Ahhah! We've found a branch to a branch on the same conditional!
	 * Now we just need to see if we can rewrite the branch..
	 */
	retval = 0;
	final = bb_true ? insn->bb_true : insn->bb_false;
	if (bb_has_side_effects(target))
		goto try_to_rewrite_target;
	if (bb_depends_on(final, target))
		goto try_to_rewrite_target;
	if (bb_depends_on_phi(final, target))
		return 0;
	return rewrite_branch(bb, target_p, target, final);

try_to_rewrite_target:
	/*
	 * If we're the only parent, at least we can rewrite the
	 * now-known second branch.
	 */
	if (bb_list_size(target->parents) != 1)
		return retval;
	convert_to_jump(insn, final);
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rdx), %r15
xorl %eax, %eax
cmpq %rdi, %r15
je 0x3c681
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movq 0x28(%r15), %rdi
callq 0x225ce
testq %rax, %rax
je 0x3c67f
movq %rax, %r13
movl (%rax), %eax
andl $0x7f, %eax
cmpl $0x4, %eax
jne 0x3c67f
movq 0x30(%r13), %rax
cmpq 0x30(%rbx), %rax
je 0x3c690
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
testl %ebp, %ebp
sete %al
movq 0x38(%r13,%rax,8), %rbp
movq 0x28(%r15), %rdi
callq 0x3c712
testl %eax, %eax
jne 0x3c6b9
movq 0x50(%r15), %rsi
movq %rbp, %rdi
callq 0x3c793
testl %eax, %eax
je 0x3c6de
movq 0x18(%r15), %rdi
callq 0x22530
cmpl $0x1, %eax
movl $0x0, %eax
jne 0x3c681
movq %r13, %rdi
movq %rbp, %rsi
callq 0x3bd75
movl $0x1, %eax
jmp 0x3c681
movq 0x28(%r15), %rsi
movq %rbp, %rdi
callq 0x3c80a
testl %eax, %eax
movl $0x0, %eax
jne 0x3c681
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbp, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3c89a
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: bb_has_side_effects
static int bb_has_side_effects(struct basic_block *bb)
{
	struct instruction *insn;
	FOR_EACH_PTR(bb->insns, insn) {
		if (!insn->bb)
			continue;
		switch (insn->opcode) {
		case OP_CALL:
			/* FIXME! This should take "const" etc into account */
			return 1;

		case OP_LOAD:
			if (!insn->type)
				return 1;
			if (insn->is_volatile)
				return 1;
			continue;

		case OP_STORE:
		case OP_CONTEXT:
			return 1;

		case OP_ASM:
			/* FIXME! This should take "volatile" etc into account */
			return 1;

		default:
			continue;
		}
	} END_FOR_EACH_PTR(insn);
	return 0;
}

// Assembly:
testq %rdi, %rdi
je 0x3c790
movl $0x1882, %ecx           # imm = 0x1882
movq %rdi, %rdx
movzwl (%rdx), %eax
movsbl %al, %esi
testw %si, %si
jle 0x3c787
movzwl %si, %esi
movzwl %ax, %r8d
xorl %r9d, %r9d
movq 0x18(%rdx,%r9,8), %r10
cmpl $0x100, %r8d            # imm = 0x100
jb 0x3c747
testq %r10, %r10
je 0x3c77f
cmpq $0x0, 0x8(%r10)
je 0x3c77f
movl (%r10), %r11d
andl $0x7f, %r11d
addl $-0x43, %r11d
cmpl $0xc, %r11d
ja 0x3c77f
movl $0x1, %eax
testl %r11d, %r11d
jne 0x3c779
cmpq $0x0, 0x18(%r10)
je 0x3c792
testb $0x1, 0x40(%r10)
je 0x3c77f
jmp 0x3c792
btl %r11d, %ecx
jb 0x3c792
incq %r9
cmpq %r9, %rsi
jne 0x3c734
movq 0x10(%rdx), %rdx
cmpq %rdi, %rdx
jne 0x3c71f
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: bb_depends_on
static int bb_depends_on(struct basic_block *target, struct basic_block *src)
{
	pseudo_t pseudo;

	FOR_EACH_PTR(src->defines, pseudo) {
		if (pseudo_in_list(target->needs, pseudo))
			return 1;
	} END_FOR_EACH_PTR(pseudo);
	return 0;
}

// Assembly:
testq %rsi, %rsi
je 0x3c807
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %r15
movzwl (%r15), %eax
testb %al, %al
jle 0x3c7e9
xorl %r12d, %r12d
movq 0x18(%r15,%r12,8), %rsi
movzwl %ax, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0x3c7c9
testq %rsi, %rsi
je 0x3c7da
movq 0x48(%r14), %rdi
callq 0x2289b
testb %al, %al
jne 0x3c7f6
movzwl (%r15), %eax
incq %r12
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %r12
jl 0x3c7b4
movq 0x10(%r15), %r15
cmpq %rbx, %r15
jne 0x3c7a9
xorl %eax, %eax
jmp 0x3c7fb
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: bb_depends_on_phi
static int bb_depends_on_phi(struct basic_block *target, struct basic_block *src)
{
	struct instruction *insn;
	FOR_EACH_PTR(src->insns, insn) {
		if (!insn->bb)
			continue;
		if (insn->opcode != OP_PHI)
			continue;
		if (pseudo_in_list(target->needs, insn->target))
			return 1;
	} END_FOR_EACH_PTR(insn);
	return 0;
}

// Assembly:
testq %rsi, %rsi
je 0x3c897
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %r15
movzwl (%r15), %eax
testb %al, %al
jle 0x3c879
xorl %r12d, %r12d
movq 0x18(%r15,%r12,8), %rcx
movzwl %ax, %edx
cmpl $0x100, %edx            # imm = 0x100
jb 0x3c844
testq %rcx, %rcx
je 0x3c86a
cmpq $0x0, 0x8(%rcx)
je 0x3c86a
movl (%rcx), %edx
andl $0x7f, %edx
cmpl $0x46, %edx
jne 0x3c86a
movq 0x48(%r14), %rdi
movq 0x20(%rcx), %rsi
callq 0x2289b
testb %al, %al
jne 0x3c886
movzwl (%r15), %eax
incq %r12
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %r12
jl 0x3c82f
movq 0x10(%r15), %r15
cmpq %rbx, %r15
jne 0x3c824
xorl %eax, %eax
jmp 0x3c88b
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: rewrite_branch
static int rewrite_branch(struct basic_block *bb,
	struct basic_block **ptr,
	struct basic_block *old,
	struct basic_block *new)
{
	if (*ptr != old || new == old || !bb->ep)
		return 0;

	/* We might find new if-conversions or non-dominating CSEs */
	/* we may also create new dead cycles */
	repeat_phase |= REPEAT_CSE | REPEAT_CFG_CLEANUP;
	*ptr = new;
	replace_bb_in_list(&bb->children, old, new, 1);
	remove_bb_from_list(&old->parents, bb, 1);
	add_bb(&new->parents, bb);
	return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
xorl %ebx, %ebx
cmpq %rdx, %rcx
je 0x3c907
movq %rdx, %r12
cmpq %rdx, (%rsi)
jne 0x3c907
movq %rdi, %r15
cmpq $0x0, 0x10(%rdi)
je 0x3c907
movq %rcx, %r14
leaq 0x2a4af(%rip), %rax     # 0x66d74
orb $0x5, (%rax)
movq %rcx, (%rsi)
leaq 0x20(%r15), %rdi
movl $0x1, %ebx
movq %r12, %rsi
movq %rcx, %rdx
movl $0x1, %ecx
callq 0x229de
addq $0x18, %r12
movq %r12, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x228ce
addq $0x18, %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x227b4
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: vrfy_bb_in_list
static void vrfy_bb_in_list(struct basic_block *bb, struct basic_block_list *list)
{
	if (bb) {
		struct basic_block *tmp;
		int no_bb_in_list = 0;

		FOR_EACH_PTR(list, tmp) {
			if (bb == tmp)
				return;
		} END_FOR_EACH_PTR(tmp);
		assert(no_bb_in_list);
	}
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x3c98b
testq %rsi, %rsi
je 0x3c96c
movq %rsi, %rax
movzwl (%rax), %edx
movsbl %dl, %ecx
testw %cx, %cx
jle 0x3c963
movzwl %cx, %ecx
movzwl %dx, %edx
xorl %r8d, %r8d
cmpl $0x100, %edx            # imm = 0x100
setb %r10b
movq 0x18(%rax,%r8,8), %r9
testq %r9, %r9
setne %r11b
orb %r10b, %r11b
cmpb $0x1, %r11b
jne 0x3c95b
cmpq %rdi, %r9
je 0x3c98b
incq %r8
cmpq %r8, %rcx
jne 0x3c937
movq 0x10(%rax), %rax
cmpq %rsi, %rax
jne 0x3c923
leaq 0xe793(%rip), %rdi      # 0x4b106
leaq 0xe657(%rip), %rsi      # 0x4afd1
leaq 0xe793(%rip), %rcx      # 0x4b114
movl $0x2da, %edx            # imm = 0x2DA
callq 0xe120
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/flow.c
// Function: rewrite_parent_branch
static int rewrite_parent_branch(struct basic_block *bb, struct basic_block *old, struct basic_block *new)
{
	int changed = 0;
	struct instruction *insn = last_instruction(bb->insns);

	if (!insn)
		return 0;

	/* Infinite loops: let's not "optimize" them.. */
	if (old == new)
		return 0;

	switch (insn->opcode) {
	case OP_CBR:
		changed |= rewrite_branch(bb, &insn->bb_false, old, new);
		/* fall through */
	case OP_BR:
		changed |= rewrite_branch(bb, &insn->bb_true, old, new);
		assert(changed);
		return changed;
	case OP_SWITCH: {
		struct multijmp *jmp;
		FOR_EACH_PTR(insn->multijmp_list, jmp) {
			changed |= rewrite_branch(bb, &jmp->target, old, new);
		} END_FOR_EACH_PTR(jmp);
		assert(changed);
		return changed;
	}
	default:
		return 0;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x28(%rdi), %rdi
callq 0x225ce
movq %rax, %r12
testq %rax, %rax
sete %al
cmpq %rbx, %r14
sete %cl
xorl %ebp, %ebp
orb %al, %cl
jne 0x3caa4
movl (%r12), %eax
andl $0x7f, %eax
xorl %ebp, %ebp
cmpl $0x3, %eax
je 0x3c9f4
cmpl $0x5, %eax
je 0x3ca35
cmpl $0x4, %eax
jne 0x3caa4
leaq 0x40(%r12), %rsi
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x3c89a
movl %eax, %ebp
addq $0x38, %r12
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x3c89a
orl %ebp, %eax
movl $0x1, %ebp
jne 0x3caa4
leaq 0xe73d(%rip), %rdi      # 0x4b15a
leaq 0xe5ad(%rip), %rsi      # 0x4afd1
leaq 0xe737(%rip), %rcx      # 0x4b162
movl $0x2aa, %edx            # imm = 0x2AA
callq 0xe120
movq 0x38(%r12), %rax
testq %rax, %rax
je 0x3cab5
xorl %r13d, %r13d
movq %rax, %rbp
movq %rax, (%rsp)
movzwl (%rbp), %eax
testb %al, %al
jle 0x3ca8d
xorl %r12d, %r12d
movq 0x18(%rbp,%r12,8), %rsi
movzwl %ax, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0x3ca69
testq %rsi, %rsi
je 0x3ca7e
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x3c89a
orl %eax, %r13d
movzwl (%rbp), %eax
incq %r12
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %r12
jl 0x3ca54
movq 0x10(%rbp), %rbp
movq (%rsp), %rax
cmpq %rax, %rbp
jne 0x3ca49
movl $0x1, %ebp
testl %r13d, %r13d
je 0x3cab5
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xe69e(%rip), %rdi      # 0x4b15a
leaq 0xe50e(%rip), %rsi      # 0x4afd1
leaq 0xe698(%rip), %rcx      # 0x4b162
movl $0x2b1, %edx            # imm = 0x2B1
callq 0xe120