LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/parser.c
// Function: parse_rel_expr
struct expr *parse_rel_expr(struct parser *p)
{
	struct expr *v = parse_add_expr(p);
	if (!v)
		return NULL;
	struct token *t;
	while ((t = match(p, t_gt)) || (t = match(p, t_lt))
	       || (t = match(p, t_lte)) || (t = match(p, t_gte))) {
		struct expr *v2 = parse_add_expr(p);
		if (!v2)
			syntax_error(p, "Unexpected token in expression");
		v = binop_init(dec_oper(t->tok), v, v2);
	}
	return v;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
callq 0x737a
testq %rax, %rax
je 0x74af
movq %rax, %r14
leaq 0x256a(%rip), %r15      # 0x9995
movq %rbx, %rdi
movl $0x1e, %esi
callq 0x7cb0
testq %rax, %rax
jne 0x7473
movq %rbx, %rdi
movl $0x1f, %esi
callq 0x7cb0
testq %rax, %rax
jne 0x7473
movq %rbx, %rdi
movl $0x21, %esi
callq 0x7cb0
testq %rax, %rax
jne 0x7473
movq %rbx, %rdi
movl $0x20, %esi
callq 0x7cb0
testq %rax, %rax
je 0x74b2
movq %rax, %r12
movq %rbx, %rdi
callq 0x737a
movq %rax, %r13
testq %rax, %rax
jne 0x7491
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7d15
movq (%r12), %rdi
callq 0x8384
movl %eax, %edi
movq %r14, %rsi
movq %r13, %rdx
callq 0x5cd8
movq %rax, %r14
jmp 0x742b
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/parser.c
// Function: parse_eq_expr
struct expr *parse_eq_expr(struct parser *p)
{
	struct expr *v = parse_rel_expr(p);
	if (!v)
		return NULL;
	struct token *t;
	while ((t = match(p, t_eq)) || (t = match(p, t_neq))) {
		struct expr *v2 = parse_rel_expr(p);
		if (!v2)
			syntax_error(p, "Unexpected token in expression");
		v = binop_init(dec_oper(t->tok), v, v2);
	}
	return v;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
callq 0x7407
testq %rax, %rax
je 0x753c
movq %rax, %r14
leaq 0x24b6(%rip), %r15      # 0x9995
movq %rbx, %rdi
movl $0x1c, %esi
callq 0x7cb0
testq %rax, %rax
jne 0x7503
movq %rbx, %rdi
movl $0x1d, %esi
callq 0x7cb0
testq %rax, %rax
je 0x753f
movq %rax, %r12
movq %rbx, %rdi
callq 0x7407
movq %rax, %r13
testq %rax, %rax
jne 0x7521
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7d15
movq (%r12), %rdi
callq 0x8384
movl %eax, %edi
movq %r14, %rsi
movq %r13, %rdx
callq 0x5cd8
movq %rax, %r14
jmp 0x74df
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/parser.c
// Function: parse_and_expr
struct expr *parse_and_expr(struct parser *p)
{
	struct expr *v = parse_eq_expr(p);
	if (!v)
		return NULL;
	while (match(p, t_ampersand) && match(p, t_ampersand)) {
		struct expr *v2 = parse_eq_expr(p);
		if (!v2)
			syntax_error(p, "Unexpected token in expression");
		v = binop_init(o_and, v, v2);
	}
	return v;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x74bf
testq %rax, %rax
je 0x75d1
movq %rax, %rbx
movq %r14, %rdi
movl $0x11, %esi
callq 0x7cb0
testq %rax, %rax
je 0x75d3
leaq 0x2418(%rip), %r15      # 0x9995
movq %r14, %rdi
movl $0x11, %esi
callq 0x7cb0
testq %rax, %rax
je 0x75d3
movq %r14, %rdi
callq 0x74bf
movq %rax, %r12
testq %rax, %rax
jne 0x75aa
movq %r14, %rdi
movq %r15, %rsi
callq 0x7d15
movl $0xa, %edi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x5cd8
movq %rax, %rbx
movq %r14, %rdi
movl $0x11, %esi
callq 0x7cb0
testq %rax, %rax
jne 0x757d
jmp 0x75d3
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/parser.c
// Function: parse_or_expr
struct expr *parse_or_expr(struct parser *p)
{
	struct expr *v = parse_and_expr(p);
	if (!v)
		return NULL;
	while (match(p, t_vslash) && match(p, t_vslash)) {
		struct expr *v2 = parse_and_expr(p);
		if (!v2)
			syntax_error(p, "Unexpected token in expression");
		v = binop_init(o_or, v, v2);
	}
	return v;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x754c
testq %rax, %rax
je 0x7667
movq %rax, %rbx
movq %r14, %rdi
movl $0x10, %esi
callq 0x7cb0
testq %rax, %rax
je 0x7669
leaq 0x2382(%rip), %r15      # 0x9995
movq %r14, %rdi
movl $0x10, %esi
callq 0x7cb0
testq %rax, %rax
je 0x7669
movq %r14, %rdi
callq 0x754c
movq %rax, %r12
testq %rax, %rax
jne 0x7640
movq %r14, %rdi
movq %r15, %rsi
callq 0x7d15
movl $0xb, %edi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x5cd8
movq %rax, %rbx
movq %r14, %rdi
movl $0x10, %esi
callq 0x7cb0
testq %rax, %rax
jne 0x7613
jmp 0x7669
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/parser.c
// Function: parse_expr_stmt
struct stmt *parse_expr_stmt(struct parser *p)
{
	struct expr *e;
	if ((e = parse_expr(p))) {
		if (!match(p, t_semic))
			syntax_error(p, "Expected ';' after expression");
		return e;
	}
	return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x7196
testq %rax, %rax
je 0x76af
movq %rax, %rbx
movq %r14, %rdi
movl $0x2a, %esi
callq 0x7cb0
testq %rax, %rax
jne 0x76b1
leaq 0x233f(%rip), %rsi      # 0x99e4
movq %r14, %rdi
callq 0x7d15
jmp 0x76b1
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/parser.c
// Function: parse_block
struct stmt *parse_block(struct parser *p)
{
	if (match(p, t_lcbrack)) {
		struct stmt *block = block_init();
		push_scope(p);
		struct stmt *s;
		while ((s = parse_stmt(p)) || (s = parse_declaration(p)))
			block_addstmt(block->child, s);
		if (!match(p, t_rcbrack))
			syntax_error(p, "Expected '}'");
		((struct block *) block->child)->scope = pop_scope(p);
		return block;
	}
	return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x18, %esi
callq 0x7cb0
testq %rax, %rax
je 0x773f
xorl %eax, %eax
callq 0x5c38
movq %rax, %r14
movq %rbx, %rdi
callq 0x7ba7
movq %rbx, %rdi
callq 0x774d
testq %rax, %rax
jne 0x76fe
movq %rbx, %rdi
callq 0x6227
testq %rax, %rax
je 0x770c
movq 0x8(%r14), %rdi
movq %rax, %rsi
callq 0x5c93
jmp 0x76e4
movq %rbx, %rdi
movl $0x19, %esi
callq 0x7cb0
testq %rax, %rax
jne 0x772d
leaq 0x22dd(%rip), %rsi      # 0x9a02
movq %rbx, %rdi
callq 0x7d15
movq %rbx, %rdi
callq 0x7c69
movq 0x8(%r14), %rcx
movq %rax, 0x10(%rcx)
jmp 0x7742
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/parser.c
// Function: parse_stmt
struct stmt *parse_stmt(struct parser *p)
{
	struct stmt *s;
	if ((s = parse_block(p)))
		return s;
	if ((s = parse_expr_stmt(p)))
		return s;
	if ((s = parse_cond(p)))
		return s;
	if ((s = parse_loop(p)))
		return s;
	if ((s = parse_jump(p)))
		return s;
	//if (s=parse_declaration(p)) return s;
	if (match(p, t_semic))
		return node_init(node_empty, NULL);

	return NULL;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x76bc
testq %rax, %rax
jne 0x778f
movq %rbx, %rdi
callq 0x7678
testq %rax, %rax
jne 0x778f
movq %rbx, %rdi
callq 0x794f
testq %rax, %rax
jne 0x778f
movq %rbx, %rdi
callq 0x77b1
testq %rax, %rax
jne 0x778f
movq %rbx, %rdi
callq 0x7a36
testq %rax, %rax
je 0x7791
popq %rbx
retq
movq %rbx, %rdi
movl $0x2a, %esi
callq 0x7cb0
testq %rax, %rax
je 0x77ad
xorl %edi, %edi
xorl %esi, %esi
popq %rbx
jmp 0x57a0
xorl %eax, %eax
jmp 0x778f
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/parser.c
// Function: parse_loop
struct stmt *parse_loop(struct parser *p)
{
	struct token *t;
	struct expr *init, *cond, *iter;
	struct stmt *body;
	if ((t = match(p, t_while))) {
		if (!match(p, t_lparen))
			syntax_error(p, "Missing left parentheses");
		if (!(cond = parse_expr(p)))
			syntax_error(p, "No valid expression");
		if (!match(p, t_rparen))
			syntax_error(p, "Missing right parentheses");
		if (!(body = parse_stmt(p)))
			syntax_error(p,
				     "Missing statement after while expression");
		return loop_init(NULL, cond, NULL, body);
	}
	if ((t = match(p, t_for))) {
		if (!match(p, t_lparen))
			syntax_error(p, "Missing left parentheses");
		init = parse_declaration(p);
		if (!init)
			syntax_error(p,
				     "No valid initializer statement in for loop");
		cond = parse_expr(p);
		if (!match(p, t_semic))
			syntax_error(p,
				     "No valid condition statement in for loop");
		iter = parse_expr(p);
		if (!match(p, t_rparen))
			syntax_error(p, "Missing right parentheses");
		if (!(body = parse_stmt(p)))
			syntax_error(p, "Missing statement");
		return loop_init(init, cond, iter, body);
	}

	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl $0x24, %esi
callq 0x7cb0
movq %rbx, %rdi
testq %rax, %rax
je 0x785f
movl $0x14, %esi
callq 0x7cb0
testq %rax, %rax
jne 0x77f1
leaq 0x2226(%rip), %rsi      # 0x9a0f
movq %rbx, %rdi
callq 0x7d15
movq %rbx, %rdi
callq 0x7196
movq %rax, %r14
testq %rax, %rax
jne 0x7810
leaq 0x2220(%rip), %rsi      # 0x9a28
movq %rbx, %rdi
callq 0x7d15
movq %rbx, %rdi
movl $0x15, %esi
callq 0x7cb0
testq %rax, %rax
jne 0x7831
leaq 0x20b5(%rip), %rsi      # 0x98de
movq %rbx, %rdi
callq 0x7d15
movq %rbx, %rdi
callq 0x774d
movq %rax, %r15
testq %rax, %rax
jne 0x7850
leaq 0x21f4(%rip), %rsi      # 0x9a3c
movq %rbx, %rdi
callq 0x7d15
xorl %edi, %edi
movq %r14, %rsi
xorl %edx, %edx
movq %r15, %rcx
jmp 0x7935
movl $0x25, %esi
callq 0x7cb0
testq %rax, %rax
je 0x7943
movq %rbx, %rdi
movl $0x14, %esi
callq 0x7cb0
testq %rax, %rax
jne 0x7893
leaq 0x2184(%rip), %rsi      # 0x9a0f
movq %rbx, %rdi
callq 0x7d15
movq %rbx, %rdi
callq 0x6227
movq %rax, %r14
testq %rax, %rax
jne 0x78b2
leaq 0x21bb(%rip), %rsi      # 0x9a65
movq %rbx, %rdi
callq 0x7d15
movq %rbx, %rdi
callq 0x7196
movq %rax, %r15
movq %rbx, %rdi
movl $0x2a, %esi
callq 0x7cb0
testq %rax, %rax
jne 0x78de
leaq 0x21ba(%rip), %rsi      # 0x9a90
movq %rbx, %rdi
callq 0x7d15
movq %rbx, %rdi
callq 0x7196
movq %rax, %r12
movq %rbx, %rdi
movl $0x15, %esi
callq 0x7cb0
testq %rax, %rax
jne 0x790a
leaq 0x1fdc(%rip), %rsi      # 0x98de
movq %rbx, %rdi
callq 0x7d15
movq %rbx, %rdi
callq 0x774d
movq %rax, %r13
testq %rax, %rax
jne 0x7929
leaq 0x2198(%rip), %rsi      # 0x9ab9
movq %rbx, %rdi
callq 0x7d15
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x5a54
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/parser.c
// Function: parse_cond
struct stmt *parse_cond(struct parser *p)
{
	struct expr *c;
	struct token *tif;
	if ((tif = match(p, t_if)) && match(p, t_lparen)) {
		if (!(c = parse_expr(p)))
			syntax_error(p, "Expected expression after '('");
		if (match(p, t_rparen)) {
			struct stmt *s, *s2;
			if ((s = parse_stmt(p))) {
				if (match(p, t_else)) {
					if ((s2 = parse_stmt(p)))
						return cond_init(c, s, s2);
				}
				return cond_init(c, s, NULL);
			}
			syntax_error(p, "No valid statement following if");
		}
		syntax_error(p, "Missing right parentheses");
	} else if (tif) {
		syntax_error(p, "Missing left parentheses");
	}

	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1a, %esi
callq 0x7cb0
testq %rax, %rax
je 0x7a28
movq %rbx, %rdi
movl $0x14, %esi
callq 0x7cb0
testq %rax, %rax
je 0x79f1
movq %rbx, %rdi
callq 0x7196
movq %rax, %r12
testq %rax, %rax
jne 0x799e
leaq 0x2135(%rip), %rsi      # 0x9acb
movq %rbx, %rdi
callq 0x7d15
movq %rbx, %rdi
movl $0x15, %esi
callq 0x7cb0
leaq 0x1f2c(%rip), %r14      # 0x98de
testq %rax, %rax
je 0x7a1d
movq %rbx, %rdi
callq 0x774d
movq %rax, %r15
testq %rax, %rax
je 0x7a09
movq %rbx, %rdi
movl $0x1b, %esi
callq 0x7cb0
testq %rax, %rax
je 0x79fa
movq %rbx, %rdi
callq 0x774d
testq %rax, %rax
je 0x79fa
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
jmp 0x7a02
leaq 0x2017(%rip), %r14      # 0x9a0f
jmp 0x7a1d
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x5ac1
jmp 0x7a18
leaq 0x20d9(%rip), %rsi      # 0x9ae9
movq %rbx, %rdi
callq 0x7d15
testq %r15, %r15
jne 0x7a2a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7d15
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/parser.c
// Function: parse_jump
struct stmt *parse_jump(struct parser *p)
{
	struct token *t;
	if ((t=match(p, t_break)) && match(p, t_semic)) return node_init(node_break, NULL);
	else if (t) syntax_error(p, "Missing semicolon after break");

	if ((t=match(p, t_continue)) && match(p, t_semic)) return node_init(node_continue, NULL);
	else if (t) syntax_error(p, "Missing semicolon after continue");

	struct expr *e;
	if (match(p, t_return)) {
		e = parse_expr(p);
		if (!match(p, t_semic)) syntax_error(p, "Missing semicolon after return");
		return node_init(node_return, e);
	}
	return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x26, %esi
callq 0x7cb0
testq %rax, %rax
je 0x7a74
movq %rbx, %rdi
movl $0x2a, %esi
callq 0x7cb0
testq %rax, %rax
je 0x7a65
movl $0xd, %edi
jmp 0x7a9d
leaq 0x209d(%rip), %rsi      # 0x9b09
movq %rbx, %rdi
callq 0x7d15
movq %rbx, %rdi
movl $0x27, %esi
callq 0x7cb0
testq %rax, %rax
je 0x7ab0
movq %rbx, %rdi
movl $0x2a, %esi
callq 0x7cb0
testq %rax, %rax
je 0x7aa1
movl $0xe, %edi
xorl %esi, %esi
jmp 0x7af6
leaq 0x207f(%rip), %rsi      # 0x9b27
movq %rbx, %rdi
callq 0x7d15
movq %rbx, %rdi
movl $0x28, %esi
callq 0x7cb0
testq %rax, %rax
je 0x7b02
movq %rbx, %rdi
callq 0x7196
movq %rax, %r14
movq %rbx, %rdi
movl $0x2a, %esi
callq 0x7cb0
testq %rax, %rax
jne 0x7aee
leaq 0x2062(%rip), %rsi      # 0x9b48
movq %rbx, %rdi
callq 0x7d15
movl $0xf, %edi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x57a0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/parser.c
// Function: parse_unit
struct node *parse_unit(struct parser *p)
{
	struct node *unit=NULL;
	struct stmt *s;
	while ((s=parse_function(p))) {
		if (!unit) unit = unit_init();
		unit_add(UNIT(unit), s);
	}
	return unit;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x6321
testq %rax, %rax
je 0x7b51
movq %rax, %r14
xorl %r15d, %r15d
testq %r15, %r15
jne 0x7b33
xorl %eax, %eax
callq 0x59b6
movq %rax, %r15
movq 0x8(%r15), %rdi
movq %r14, %rsi
callq 0x5a0f
movq %rbx, %rdi
callq 0x6321
movq %rax, %r14
testq %rax, %rax
jne 0x7b24
jmp 0x7b54
xorl %r15d, %r15d
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/pcommon.c
// Function: parser_init
struct parser *parser_init(struct token **tlist, int num_tokens)
{
	struct parser *p = malloc(sizeof(struct parser));

	p->scope_stk = NULL, p->num_stk = 0;
	push_scope(p);
	p->toks = tlist, p->len = num_tokens;
	p->cur = 0;

	return p;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl $0x20, %edi
callq 0x2100
movq %rax, %r15
movq $0x0, (%rax)
xorl %ebp, %ebp
movl %ebp, 0x8(%rax)
movq %rax, %rdi
callq 0x7ba7
movq %r14, 0x10(%r15)
movl %ebx, 0x1c(%r15)
movl %ebp, 0x18(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/pcommon.c
// Function: push_scope
void push_scope(struct parser *p)
{
	struct symbol_table *top = get_scope(p);
	p->num_stk++;
	if (!p->scope_stk)
		p->scope_stk = malloc(sizeof(struct symbol_table *));
	else
		p->scope_stk =
		    realloc(p->scope_stk,
			    sizeof(struct symbol_table *) * p->num_stk);
	p->scope_stk[p->num_stk - 1] = symbol_table_init(top);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq 0x8(%rdi), %rax
testq %rax, %rax
je 0x7bc1
movq (%rbx), %rcx
movq -0x8(%rcx,%rax,8), %r14
jmp 0x7bc4
xorl %r14d, %r14d
incl %eax
movl %eax, 0x8(%rbx)
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x7bdf
movslq %eax, %rsi
shlq $0x3, %rsi
callq 0x2110
jmp 0x7be9
movl $0x8, %edi
callq 0x2100
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x7d74
movq (%rbx), %rcx
movslq 0x8(%rbx), %rdx
movq %rax, -0x8(%rcx,%rdx,8)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/pcommon.c
// Function: parser_free
void parser_free(struct parser *p)
{
	for (int i = 0; i < p->len; i++) {
		free(p->toks[i]->tok);
		free(p->toks[i]);
	}
	symbol_table_free(pop_scope(p));
	free(p->toks);
	free(p);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x1c(%rdi)
jle 0x7c41
xorl %r14d, %r14d
movq 0x10(%rbx), %rax
movq (%rax,%r14,8), %rax
movq (%rax), %rdi
callq 0x2030
movq 0x10(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x2030
incq %r14
movslq 0x1c(%rbx), %rax
cmpq %rax, %r14
jl 0x7c18
movq %rbx, %rdi
callq 0x7c69
movq %rax, %rdi
callq 0x7da6
movq 0x10(%rbx), %rdi
callq 0x2030
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2030
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/pcommon.c
// Function: pop_scope
struct symbol_table *pop_scope(struct parser *p)
{
	if (!p->num_stk)
		return NULL;
	struct symbol_table *s = p->scope_stk[p->num_stk - 1];
	p->num_stk--;
	if (!p->num_stk) {
		free(p->scope_stk);
		p->scope_stk = NULL;
	} else {
		p->scope_stk =
		    realloc(p->scope_stk,
			    sizeof(struct symbol_table *) * p->num_stk);
	}
	return s;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movslq 0x8(%rdi), %rax
testq %rax, %rax
je 0x7c97
movq %rdi, %r14
movq (%rdi), %rdi
movq -0x8(%rdi,%rax,8), %rbx
decl %eax
movl %eax, 0x8(%r14)
je 0x7c9b
movslq %eax, %rsi
shlq $0x3, %rsi
callq 0x2110
jmp 0x7ca2
xorl %ebx, %ebx
jmp 0x7ca5
callq 0x2030
xorl %eax, %eax
movq %rax, (%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/pcommon.c
// Function: syntax_error
void syntax_error(struct parser *p, const char *msg)
{
	if (p->cur >= p->len)
		p->cur = p->len - 1;
	struct token *t = p->toks[p->cur];
	fprintf(stderr, "\n(%d,%d): error \"%s\" Near Token %s\n", t->col,
		t->line, msg, t->tok);
	exit(1);
}

// Assembly:
movq %rsi, %r8
movl 0x1c(%rdi), %eax
cmpl %eax, 0x18(%rdi)
jl 0x7d25
decl %eax
movl %eax, 0x18(%rdi)
pushq %rax
movq 0x10(%rdi), %rax
movslq 0x18(%rdi), %rcx
movq (%rax,%rcx,8), %rax
movq 0x62bf(%rip), %rcx      # 0xdff8
movq (%rcx), %rdi
movl 0x8(%rax), %edx
movl 0xc(%rax), %ecx
movq (%rax), %r9
leaq 0x1e1b(%rip), %rsi      # 0x9b67
xorl %eax, %eax
callq 0x20d0
movl $0x1, %edi
callq 0x2120
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/symbols.c
// Function: symbol_table_init
struct symbol_table *symbol_table_init(struct symbol_table *parent)
{
	struct symbol_table *table = malloc(sizeof(struct symbol_table));

	table->parent = parent;
	table->syms = NULL, table->num_syms = 0;
	table->fp = parent ? parent->fp : 0;

	return table;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x20, %edi
callq 0x2100
movq %rbx, 0x18(%rax)
movq $0x0, 0x10(%rax)
movl $0x0, 0x8(%rax)
testq %rbx, %rbx
je 0x7d9f
movq (%rbx), %rcx
jmp 0x7da1
xorl %ecx, %ecx
movq %rcx, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/symbols.c
// Function: symbol_table_free
void symbol_table_free(struct symbol_table *scope)
{
	if (!scope)
		return;

	for (int i = 0; i < scope->num_syms; i++) {
		free(scope->syms[i]->identifier);
		free(scope->syms[i]);
	}
	free(scope->syms);
	free(scope);
}

// Assembly:
testq %rdi, %rdi
je 0x7dfd
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x8(%rdi)
jle 0x7de5
xorl %r14d, %r14d
movq 0x10(%rbx), %rax
movq (%rax,%r14,8), %rax
movq 0x10(%rax), %rdi
callq 0x2030
movq 0x10(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x2030
incq %r14
movslq 0x8(%rbx), %rax
cmpq %rax, %r14
jl 0x7dbb
movq 0x10(%rbx), %rdi
callq 0x2030
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2030
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/symbols.c
// Function: get_symbol
struct symbol *get_symbol(struct symbol_table *scope, const char *ident)
{
	struct symbol_table *p = scope;
	struct symbol *sym = NULL;
	while (p && !sym) {
		for (int i = 0; i < p->num_syms; i++) {
			if (!strcmp(p->syms[i]->identifier, ident)) {
				sym = p->syms[i];
				break;
			}
		}
		p = p->parent;
	}

	return sym;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x7e63
movq %rsi, %rbx
movq %rdi, %r14
xorl %eax, %eax
movslq 0x8(%r14), %r13
testq %r13, %r13
jle 0x7e4d
movq %rax, (%rsp)
movq 0x10(%r14), %rbp
xorl %r12d, %r12d
movq (%rbp,%r12,8), %r15
movq 0x10(%r15), %rdi
movq %rbx, %rsi
callq 0x20c0
testl %eax, %eax
je 0x7e50
incq %r12
cmpq %r12, %r13
jne 0x7e2a
movq (%rsp), %r15
jmp 0x7e50
movq %rax, %r15
movq 0x18(%r14), %r14
testq %r14, %r14
je 0x7e66
movq %r15, %rax
testq %r15, %r15
je 0x7e16
jmp 0x7e66
xorl %r15d, %r15d
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_O1/Mithreindeir[P]ewcc/src/frontend/symbols.c
// Function: set_type
void set_type(struct symbol_table *scope, char *ident, struct type *type)
{
	scope->num_syms++;
	if (!scope->syms)
		scope->syms = malloc(sizeof(struct symbol *));
	else
		scope->syms =
		    realloc(scope->syms,
			    sizeof(struct symbol *) * scope->num_syms);
	struct symbol *s = malloc(sizeof(struct symbol));

	s->offset = 0;
	int len = strlen(ident);
	s->identifier = malloc(len+1);
	memcpy(s->identifier, ident, len);
	s->identifier[len] = 0;
     	s->type = type;
	s->size = resolve_size(type);
	scope->syms[scope->num_syms - 1] = s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movslq 0x8(%rdi), %rsi
incq %rsi
movl %esi, 0x8(%rdi)
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x7eca
shlq $0x3, %rsi
callq 0x2110
jmp 0x7ed4
movl $0x8, %edi
callq 0x2100
movq %rax, 0x10(%rbx)
movl $0x20, %edi
callq 0x2100
movq %rax, %r12
movq $0x0, (%rax)
movq %r15, %rdi
callq 0x2070
movq %rax, %r13
incl %eax
movslq %eax, %rdi
callq 0x2100
movq %rax, %rbp
movq %rax, 0x10(%r12)
movslq %r13d, %r13
movq %rax, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x20f0
movb $0x0, (%rbp,%r13)
movq %r14, 0x18(%r12)
movq %r14, %rdi
callq 0x8178
cltq
movq %rax, 0x8(%r12)
movq 0x10(%rbx), %rax
movslq 0x8(%rbx), %rcx
movq %r12, -0x8(%rax,%rcx,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/symbols.c
// Function: alloc_type
unsigned alloc_type(struct symbol_table *scope, char *ident)
{
	struct symbol *sym = get_symbol(scope, ident);
	if (!sym) return 0;
	/*If parent's frame pointer is greater than the current frame pointer, update it*/
	if (scope->parent && scope->parent->fp > scope->fp)
		scope->fp = scope->parent->fp;
	/*For now, default to integer*/
	scope->fp += sym->size;
	sym->offset = scope->fp;
	return sym->offset;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x7dfe
testq %rax, %rax
je 0x7f81
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x7f72
movq (%rcx), %rcx
cmpq (%rbx), %rcx
jbe 0x7f72
movq %rcx, (%rbx)
movq (%rbx), %rcx
addq 0x8(%rax), %rcx
movq %rcx, (%rbx)
movq %rcx, (%rax)
jmp 0x7f83
xorl %ecx, %ecx
movl %ecx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/types.c
// Function: type_init
struct type *type_init(enum info_type node_type)
{
	struct type *t = malloc(sizeof(struct type));
	t->type = node_type;
	t->next = NULL;
	return t;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
movl $0x28, %edi
callq 0x2100
movl %ebx, 0x18(%rax)
movq $0x0, 0x20(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/types.c
// Function: types_merge
struct type *types_merge(struct type *t1, struct type *t2)
{
	struct type *t3 = t1 ? t1 : t2;
	if (t1) {
		while (t1->next)
			t1 = t1->next;
		t1->next = t2;
	}
	return t3;
}

// Assembly:
testq %rdi, %rdi
je 0x7fd2
movq %rdi, %rax
movq %rdi, %rdx
movq %rdx, %rcx
movq 0x20(%rdx), %rdx
testq %rdx, %rdx
jne 0x7fc1
movq %rsi, 0x20(%rcx)
retq
movq %rsi, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/types.c
// Function: type_free
void type_free(struct type *head)
{
	if (!head)
		return;
	type_free(head->next);
	if (head->type == type_fcn) {
		for (int i = 0; i < head->info.fcn.paramc; i++) {
			free(head->info.fcn.paramv[i]);
			type_free(head->info.fcn.paramt[i]);
		}
		free(head->info.fcn.paramv);
		free(head->info.fcn.paramt);
	}
	free(head);
}

// Assembly:
testq %rdi, %rdi
je 0x803f
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
callq 0x7fd6
cmpl $0x3, 0x18(%rbx)
jne 0x8030
cmpl $0x0, (%rbx)
jle 0x801e
xorl %r14d, %r14d
movq 0x8(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x2030
movq 0x10(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x7fd6
incq %r14
movslq (%rbx), %rax
cmpq %rax, %r14
jl 0x7ff9
movq 0x8(%rbx), %rdi
callq 0x2030
movq 0x10(%rbx), %rdi
callq 0x2030
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2030
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/types.c
// Function: type_copy
struct type *type_copy(struct type *top)
{
	if (!top) return NULL;
	struct type *cpy = type_init(top->type);
	memcpy(&cpy->info, &top->info, sizeof(top->info));
	if (top->type == type_fcn) {
		struct func_type fcn = top->info.fcn;
		char **paramv  = malloc(sizeof(char*)*fcn.paramc);
		struct type **paramt = malloc(sizeof(struct type*)*fcn.paramc);
		for (int i = 0; i < fcn.paramc; i++) {
			int slen = strlen(fcn.paramv[i]);
			char *np = malloc(slen+1);
			memcpy(np, fcn.paramv[i], slen);
			np[slen] = 0;
			paramv[i] = np;
			paramt[i] = type_copy(fcn.paramt[i]);
		}
		cpy->info.fcn.paramv = paramv;
		cpy->info.fcn.paramt = paramt;
	}
	if (top->next) cpy->next = type_copy(top->next);
	return cpy;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
testq %rdi, %rdi
je 0x8163
movq %rdi, %r15
movl 0x18(%rdi), %ebx
movl $0x28, %edi
callq 0x2100
movq %rax, %r14
movl %ebx, 0x18(%rax)
movq $0x0, 0x20(%rax)
movups (%r15), %xmm0
movups %xmm0, (%rax)
movq 0x10(%r15), %rax
movq %rax, 0x10(%r14)
cmpl $0x3, %ebx
jne 0x814f
movq %r14, 0x10(%rsp)
movslq (%r15), %rbx
movq 0x8(%r15), %r13
movq %r15, 0x8(%rsp)
movq 0x10(%r15), %r15
leaq (,%rbx,8), %r12
movq %r12, %rdi
callq 0x2100
movq %rax, %rbp
movq %r12, %rdi
callq 0x2100
testq %rbx, %rbx
jle 0x813d
xorl %r14d, %r14d
movq %r15, 0x20(%rsp)
movq %rbp, 0x18(%rsp)
movq %rax, (%rsp)
movq %r13, %r12
movq (%r13,%r14,8), %r13
movq %r13, %rdi
callq 0x2070
movq %rax, %rbp
incl %eax
movslq %eax, %rdi
callq 0x2100
movq %rbx, %r15
movq %rax, %rbx
movslq %ebp, %rbp
movq %rax, %rdi
movq %r13, %rsi
movq %r12, %r13
movq %rbp, %rdx
callq 0x20f0
movb $0x0, (%rbx,%rbp)
movq 0x18(%rsp), %rbp
movq %rbx, (%rbp,%r14,8)
movq %r15, %rbx
movq 0x20(%rsp), %r15
movq (%r15,%r14,8), %rdi
callq 0x8040
movq (%rsp), %rcx
movq %rax, (%rcx,%r14,8)
movq (%rsp), %rax
incq %r14
cmpq %r14, %rbx
jne 0x80d3
movq 0x10(%rsp), %r14
movq %rbp, 0x8(%r14)
movq %rax, 0x10(%r14)
movq 0x8(%rsp), %r15
movq 0x20(%r15), %rdi
testq %rdi, %rdi
je 0x8166
callq 0x8040
movq %rax, 0x20(%r14)
jmp 0x8166
xorl %r14d, %r14d
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/types.c
// Function: resolve_size
int resolve_size(struct type *type)
{
	struct type *head = type;
	int m = 1;
	while (head) {
		if (head->type == type_ptr) return PTR_SIZE*m;
		if (head->type == type_datatype) {
			switch (head->info.data_type) {
				case type_int: return INT_TYPE_SIZE*m;
				case type_char: return CHAR_TYPE_SIZE*m;
				default: break;
			}
		}
		if (head->type == type_array) m = m * head->info.elem;
		head = head->next;
	}
	/*Default to integer*/
	printf("Error resolving size of type: ");
	print_type(type);
	printf("\n");
	return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
testq %rdi, %rdi
je 0x81bc
movl $0x1, %ebx
movq %r14, %rax
movl 0x18(%rax), %ecx
testl %ecx, %ecx
je 0x819f
cmpl $0x2, %ecx
je 0x81b0
cmpl $0x1, %ecx
jne 0x81b3
jmp 0x81e0
movl (%rax), %edx
cmpl $0x2, %edx
je 0x81e3
cmpl $0x1, %edx
je 0x81e0
cmpl $0x2, %ecx
jne 0x81b3
imull (%rax), %ebx
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x818c
leaq 0x1a16(%rip), %rdi      # 0x9bd9
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x2080
movq %r14, %rdi
callq 0x81ed
movl $0xa, %edi
callq 0x2040
jmp 0x81e3
shll $0x2, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/types.c
// Function: print_type
void print_type(struct type *head)
{
	if (!head)
		return;
	switch (head->type) {
	case type_datatype:
		printf("%s", data_type_str[head->info.data_type]);
		print_type(head->next);
		break;
	case type_ptr:
		printf("ptr(");
		print_type(head->next);
		printf(")");
		break;
	case type_array:
		printf("arr(");
		print_type(head->next);
		printf(", %d)", head->info.elem);
		break;
	case type_fcn:
		printf("fcn( ");
		for (int i = 0; i < head->info.fcn.paramc; i++) {
			printf("%s: ", head->info.fcn.paramv[i]);
			print_type(head->info.fcn.paramt[i]);
			if ((i + 1) < head->info.fcn.paramc)
				printf(", ");
		}
		printf(") -> ");
		print_type(head->next);
		break;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x198a(%rip), %r14      # 0x9b8c
leaq 0xfc0(%rip), %r12       # 0x91c9
leaq 0xf7b(%rip), %r13       # 0x918b
leaq 0x19f7(%rip), %rbp      # 0x9c0e
testq %rbx, %rbx
je 0x82bc
movl 0x18(%rbx), %eax
cmpq $0x3, %rax
ja 0x82bc
movslq (%r14,%rax,4), %rax
addq %r14, %rax
jmpq *%rax
movl (%rbx), %eax
leaq 0x6371(%rip), %rcx      # 0xe5b0
movq (%rcx,%rax,8), %rsi
leaq 0xf33(%rip), %rdi       # 0x917d
xorl %eax, %eax
callq 0x2080
movq 0x20(%rbx), %rbx
jmp 0x8217
leaq 0x19aa(%rip), %rdi      # 0x9c08
xorl %eax, %eax
callq 0x2080
cmpl $0x0, (%rbx)
jle 0x82a9
xorl %r15d, %r15d
movq 0x8(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r12, %rdi
xorl %eax, %eax
callq 0x2080
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %rdi
callq 0x81ed
incq %r15
movslq (%rbx), %rax
cmpq %rax, %r15
jge 0x82a1
movq %r13, %rdi
xorl %eax, %eax
callq 0x2080
movslq (%rbx), %rax
cmpq %rax, %r15
jl 0x826d
movq %rbp, %rdi
xorl %eax, %eax
callq 0x2080
movq 0x20(%rbx), %rbx
jmp 0x8217
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x192b(%rip), %rdi      # 0x9bfd
xorl %eax, %eax
callq 0x2080
movq 0x20(%rbx), %rdi
callq 0x81ed
movl (%rbx), %esi
leaq 0x1917(%rip), %rdi      # 0x9c02
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2080
leaq 0x18f1(%rip), %rdi      # 0x9bf8
xorl %eax, %eax
callq 0x2080
movq 0x20(%rbx), %rdi
callq 0x81ed
movl $0x29, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2040
// File: /workspace/github_c_makefile_star2_O1/Mithreindeir[P]ewcc/src/frontend/types.c
// Function: cmp_types
int cmp_types(struct type *a, struct type *b)
{
	if (!a || !b)
		return 0;
	if (a->next && b->next)
		return cmp_types(a->next, b->next);
	if ((!a->next && b->next) || (b->next && !a->next))
		return 0;
	if (a->type != b->type)
		return 0;
	if (a->type == type_datatype
	    && a->info.data_type != b->info.data_type)
		return 0;
	return 1;
}

// Assembly:
xorl %eax, %eax
testq %rdi, %rdi
je 0x835f
movq %rsi, %rcx
testq %rsi, %rsi
je 0x835f
movq %rdi, %rdx
movq 0x20(%rdi), %rdi
testq %rdi, %rdi
je 0x8358
movq 0x20(%rcx), %rsi
testq %rsi, %rsi
jne 0x8331
testq %rdi, %rdi
jne 0x8360
cmpq $0x0, 0x20(%rcx)
je 0x8360
retq
testq %rdi, %rdi
jne 0x836c
cmpq $0x0, 0x20(%rcx)
jne 0x835f
movl 0x18(%rdx), %esi
cmpl 0x18(%rcx), %esi
jne 0x835f
testl %esi, %esi
jne 0x837e
movl (%rdx), %edx
cmpl (%rcx), %edx
jne 0x835f
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/KhuramAli[P]JAM-Benchmark/counter_example_2_pthread/code02.c
// Function: f
void* f()
{
    for(int n = 0; n < 1000; ++n) {
        atomic_fetch_add_explicit(&acnt, 1, memory_order_relaxed); // atomic
        ++cnt; // undefined behavior, in practice some updates missed
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x3e8, %ecx            # imm = 0x3E8
movl 0x2edd(%rip), %eax      # 0x4048
lock
incl 0x2ed2(%rip)            # 0x4044
decl %ecx
jne 0x116b
addl $0x3e8, %eax            # imm = 0x3E8
movl %eax, 0x2ec7(%rip)      # 0x4048
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/KhuramAli[P]JAM-Benchmark/counter_example_2_pthread/code02.c
// Function: main
int main(void)
{
    pthread_t thr[10];
    for(int n = 0; n < 10; ++n)
        pthread_create(&thr[n], NULL, f, NULL);
    for(int n = 0; n < 10; ++n)
        pthread_join(thr[n], NULL);
 
    printf("The atomic counter is %u\n", acnt);
    printf("The non-atomic counter is %u\n", cnt);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x50, %rsp
xorl %r14d, %r14d
leaq -0x3e(%rip), %rbx       # 0x115c
leaq (%r14,%rbp), %rdi
addq $-0x60, %rdi
xorl %esi, %esi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x1040
addq $0x8, %r14
cmpq $0x50, %r14
jne 0x119a
xorl %ebx, %ebx
movq -0x60(%rbp,%rbx,8), %rdi
xorl %esi, %esi
callq 0x1050
incq %rbx
cmpq $0xa, %rbx
jne 0x11ba
movl 0x2e6f(%rip), %esi      # 0x4044
leaq 0xe28(%rip), %rdi       # 0x2004
xorl %eax, %eax
callq 0x1030
movl 0x2e5f(%rip), %esi      # 0x4048
leaq 0xe2e(%rip), %rdi       # 0x201e
xorl %eax, %eax
callq 0x1030
xorl %eax, %eax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Vatoth[P]CPE_2016_Lemin/src/main.c
// Function: main
int		main(int ac, char **av)
{
  t_list	list;
  t_anthill	anthill;
  t_ant		*ants;

  if (ac != 1 || av[1] != NULL)
    return (my_printf("USAGE:\n\t ./lem_in < map\n"));
  init(&anthill, &list);
  if (recup_info(&list, &anthill) == ERROR ||
      anthill.entry == NULL || anthill.exit == NULL)
    {
      printf_info(&list, &anthill);
      return (ERROR);
    }
  anthill.entry->ants = anthill.ants;
  check_graph(&anthill);
  if (anthill.entry->mark == FALSE)
    {
      printf_info(&list, &anthill);
      return (ERROR);
    }
  printf_info(&list, &anthill);
  if (!(ants = get_ants(anthill.entry->ants, &anthill)))
    return (1);
  move_ants(ants, &anthill);
  return (0);
}

// Assembly:
cmpl $0x1, %edi
jne 0x11b2
cmpq $0x0, 0x8(%rsi)
je 0x11c0
leaq 0x1e4b(%rip), %rdi      # 0x3004
xorl %eax, %eax
jmp 0x26c4
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
xorps %xmm0, %xmm0
leaq 0x8(%rsp), %rsi
movups %xmm0, 0x8(%rsi)
movq $0x0, 0x18(%rsi)
leaq 0x28(%rsp), %rdi
movl $0x0, (%rdi)
movups %xmm0, 0x8(%rdi)
callq 0x21e4
cmpl $0x1, %eax
je 0x1274
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x1274
cmpq $0x0, 0x18(%rsp)
je 0x1274
leaq 0x8(%rsp), %rbx
movl (%rbx), %ecx
movl %ecx, (%rax)
movq %rbx, %rdi
callq 0x2153
movq 0x8(%rbx), %rax
movl 0xc(%rax), %ebp
leaq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0x1ae0
movl $0x1, %ebx
testl %ebp, %ebp
je 0x12a0
movq 0x10(%rsp), %r15
movslq (%r15), %r12
movq %r12, %r14
shlq $0x4, %r14
movq %r14, %rdi
callq 0x1080
testq %rax, %rax
je 0x128a
testl %r12d, %r12d
jle 0x128c
xorl %ecx, %ecx
movq %r15, (%rax,%rcx)
movq $0x0, 0x8(%rax,%rcx)
addq $0x10, %rcx
cmpq %rcx, %r14
jne 0x125c
jmp 0x128c
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x1ae0
movl $0x1, %ebx
jmp 0x12a0
xorl %eax, %eax
testq %rax, %rax
je 0x12a0
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x1dc4
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/Vatoth[P]CPE_2016_Lemin/src/tools2.c
// Function: free_tab
void	free_tab(char **tab)
{
  int	i;

  i = 0;
  if (tab != NULL)
    {
      while (tab[i])
	free(tab[i++]);
      free(tab);
    }
}

// Assembly:
testq %rdi, %rdi
je 0x12e8
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x12d9
leaq 0x8(%rbx), %r14
callq 0x1030
movq (%r14), %rdi
addq $0x8, %r14
testq %rdi, %rdi
jne 0x12c8
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1030
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/Vatoth[P]CPE_2016_Lemin/src/tools.c
// Function: my_putstr_error
int	my_putstr_error(const char *str)
{
  int	i;

  i = -1;
  while (str[++i])
    write(2, &str[i], i);
  return (ERROR);
}

// Assembly:
cmpb $0x0, (%rdi)
je 0x131f
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
leaq (%rbx,%r14), %rsi
movl $0x2, %edi
movq %r14, %rdx
callq 0x1040
cmpb $0x0, 0x1(%rbx,%r14)
leaq 0x1(%r14), %r14
jne 0x12fb
addq $0x8, %rsp
popq %rbx
popq %r14
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/Vatoth[P]CPE_2016_Lemin/src/tools.c
// Function: my_strcmp
int     my_strcmp(const char *s1, const char *s2)
{
  int   character;

  if (!s1 || !s2)
    return ((s1) ? 1 : (s2) ? -1 : 0);
  character = 0;
  while (s1[character] == s2[character] && s1[character] && s2[character])
    character = character + 1;
  if (s1[character] > s2[character])
    return (1);
  else if (s1[character] < s2[character])
    return (-1);
  else
    return (0);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x135e
xorl %eax, %eax
movb (%rdi,%rax), %cl
movb (%rsi,%rax), %dl
testb %dl, %dl
je 0x134c
testb %cl, %cl
je 0x134c
incq %rax
cmpb %dl, %cl
je 0x1337
movl $0x1, %eax
cmpb %dl, %cl
jg 0x135d
setl %al
movzbl %al, %eax
negl %eax
retq
xorl %ecx, %ecx
negq %rsi
sbbl %ecx, %ecx
testq %rdi, %rdi
movl $0x1, %eax
cmovel %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/Vatoth[P]CPE_2016_Lemin/src/tools.c
// Function: my_strdup
char    *my_strdup(const char *src)
{
  char  *dest;
  int   i;
  int   n;

  i = 0;
  n = my_strlen(src);
  if ((dest = malloc(sizeof(char) * (n + 1))) == NULL)
    return (NULL);
  while (i < n)
    {
      dest[i] = src[i];
      ++i;
    }
  dest[i] = '\0';
  return (dest);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
callq 0x24a8
movl %eax, %r15d
leal 0x1(%r15), %eax
movslq %eax, %rdi
callq 0x1080
testq %rax, %rax
je 0x13ad
movq %rax, %rbx
testl %r15d, %r15d
jle 0x13b1
movl %r15d, %r15d
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1070
jmp 0x13b4
xorl %ebx, %ebx
jmp 0x13b9
xorl %r15d, %r15d
movb $0x0, (%rbx,%r15)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/Vatoth[P]CPE_2016_Lemin/src/tools.c
// Function: my_compare
int     my_compare(char *s1, char *s2, int i)
{
  int	nb;

  nb = 0;
  while (i > 0 && s1[nb] != '\0' && s2[nb] != '\0')
    {
      if (s1[nb] != s2[nb])
	return (1);
      nb++;
      i--;
    }
  if (i == 0)
    return (0);
  if (my_strlen(s1) != my_strlen(s2))
    return (1);
  return (0);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
testl %edx, %edx
jle 0x13f9
movl %edx, %eax
negq %rax
xorl %ecx, %ecx
movb (%rdi,%rcx), %sil
testb %sil, %sil
je 0x13f9
movb (%rbx,%rcx), %r8b
testb %r8b, %r8b
je 0x13f9
cmpb %r8b, %sil
jne 0x141b
incq %rcx
decl %edx
movq %rax, %rsi
addq %rcx, %rsi
jne 0x13d3
xorl %edx, %edx
testl %edx, %edx
je 0x1417
callq 0x24a8
movl %eax, %ebp
movq %rbx, %rdi
callq 0x24a8
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %ebp
setne %al
jmp 0x1420
xorl %eax, %eax
jmp 0x1420
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Vatoth[P]CPE_2016_Lemin/src/get_next_line.c
// Function: get_next_line
char		*get_next_line(const int fd)
{
  int		i;
  char		read_c;
  char		*str;
  int		check;

  i = 0;
  read_c = 0;
  if ((check = read_char(fd, &read_c)) == -1)
    return (NULL);
  if ((str = malloc(sizeof(char) * (READ_SIZE + 1))) == NULL)
    return (NULL);
  my_memset(str, 0, READ_SIZE + 1 * sizeof(char));
  while (read_c != '\n')
    {
      str[i++] = read_c;
      if (read_char(fd, &read_c) < 0)
	break;
      if (i > (READ_SIZE + 1))
	if ((str = my_realloc(str, (i + (READ_SIZE + 1) * sizeof(*str)))) == NULL)
	  return (NULL);
    }
  if (str[i])
    str[i] = '\0';
  return (str);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebp
leaq 0x7(%rsp), %rsi
movb $0x0, (%rsi)
callq 0x156e
cmpl $-0x1, %eax
je 0x155a
movl $0x1001, %edi           # imm = 0x1001
callq 0x1080
testq %rax, %rax
je 0x155a
movq %rax, %rbx
xorl %r14d, %r14d
movl $0x1001, %edx           # imm = 0x1001
movq %rax, %rdi
xorl %esi, %esi
callq 0x1050
movb 0x7(%rsp), %al
cmpb $0xa, %al
je 0x154c
leaq 0x7(%rsp), %r14
xorl %r13d, %r13d
leaq 0x1(%r13), %r12
movb %al, (%rbx,%r13)
movl %ebp, %edi
movq %r14, %rsi
callq 0x156e
testl %eax, %eax
js 0x1549
cmpq $0x1001, %r13           # imm = 0x1001
jb 0x153a
movq %rbx, %rdi
callq 0x24a8
cltq
leaq (%rax,%r13), %rdi
addq $0x1002, %rdi           # imm = 0x1002
callq 0x1080
testq %rax, %rax
je 0x152f
movq %rax, %r15
addq $0x1002, %r13           # imm = 0x1002
movq %rbx, %rdi
callq 0x24a8
movslq %eax, %rdx
addq %r13, %rdx
je 0x150e
movq %r15, %rdi
xorl %esi, %esi
callq 0x1050
movb (%rbx), %al
testb %al, %al
je 0x1525
xorl %ecx, %ecx
movb %al, (%r15,%rcx)
movb 0x1(%rbx,%rcx), %al
incq %rcx
testb %al, %al
jne 0x1516
movq %rbx, %rdi
callq 0x1030
jmp 0x1532
xorl %r15d, %r15d
movq %r15, %rbx
testq %r15, %r15
je 0x155a
movb 0x7(%rsp), %al
movq %r12, %r13
cmpb $0xa, %al
jne 0x14a8
movslq %r12d, %r14
cmpb $0x0, (%rbx,%r14)
je 0x155c
movb $0x0, (%rbx,%r14)
jmp 0x155c
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/Vatoth[P]CPE_2016_Lemin/src/get_next_line.c
// Function: read_char
static int	read_char(const int fd, char *read_c)
{
  static char	buffer[READ_SIZE];
  static int	bytes_reads = 0;
  static int	y = 0;

  if (bytes_reads == 0)
    {
      if ((bytes_reads = read(fd, buffer, READ_SIZE)) <= 0)
	return (-1);
      y = 0;
    }
  *read_c = buffer[y];
  y = y + 1;
  bytes_reads = bytes_reads - 1;
  return (0);
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
cmpl $0x0, 0x4af7(%rip)      # 0x6070
jne 0x15a0
leaq 0x3aee(%rip), %rsi      # 0x5070
movl $0x1000, %edx           # imm = 0x1000
callq 0x1060
movl %eax, 0x4ade(%rip)      # 0x6070
testl %eax, %eax
jle 0x15c5
movl $0x0, 0x4ad4(%rip)      # 0x6074
movslq 0x4acd(%rip), %rax      # 0x6074
leaq 0x3ac2(%rip), %rcx      # 0x5070
movb (%rax,%rcx), %cl
movb %cl, (%rbx)
incl %eax
movl %eax, 0x4ab9(%rip)      # 0x6074
decl 0x4aaf(%rip)            # 0x6070
xorl %eax, %eax
popq %rbx
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x15c3
// File: /workspace/github_c_makefile_star2_O1/Vatoth[P]CPE_2016_Lemin/src/clear_file.c
// Function: epur_str
void    epur_str(char *str)
{
  int   i;
  int   j;

  i = 0;
  j = 0;
  while (str[i] != '\0')
    {
      if (str[i] != ' ' && str[i] != '\t')
        {
          str[j++] = str[i];
          if (str[i + 1] != '\0' && (str[i + 1] == ' ' || str[i + 1] == '\t'))
            str[j++] = ' ';
        }
      i++;
    }
  if (j != 0 && (str[j - 1] == ' ' || str[j - 1] == '\t'))
    str[j - 1] = '\0';
  str[j] = '\0';
}

// Assembly:
leaq 0x1(%rdi), %rcx
xorl %eax, %eax
movzbl -0x1(%rcx), %esi
cmpl $0x9, %esi
je 0x1602
cmpl $0x20, %esi
je 0x1602
testl %esi, %esi
je 0x160b
movslq %eax, %rdx
movb %sil, (%rdi,%rdx)
incq %rdx
movzbl (%rcx), %esi
cmpl $0x20, %esi
je 0x15fb
cmpl $0x9, %esi
jne 0x1604
addl $0x2, %eax
movb $0x20, (%rdi,%rdx)
movl %eax, %edx
incq %rcx
movl %edx, %eax
jmp 0x15d2
testl %eax, %eax
je 0x1626
movslq %eax, %rcx
movzbl -0x1(%rdi,%rcx), %edx
cmpl $0x20, %edx
je 0x1621
cmpl $0x9, %edx
jne 0x1626
movb $0x0, -0x1(%rdi,%rcx)
cltq
movb $0x0, (%rdi,%rax)
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/Vatoth[P]CPE_2016_Lemin/src/parse.c
// Function: parse_info
int              parse_info(t_list *list, t_anthill *anthill)
{
  t_line	*element;

  element = list->first;
  if (check_number(element->line) == ERROR)
    return (ERROR);
  list->first->bool = TRUE;
  anthill->ants = my_getnbr(element->line);
  if (get_info(anthill, element, 0, 0) == ERROR ||
      anthill->entry == NULL || anthill->exit == NULL)
    return (ERROR);
  return (create_link(list, anthill));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
movq 0x8(%rdi), %r14
movq (%r14), %rdi
callq 0x1980
cmpl $0x1, %eax
jne 0x166d
movl $0x1, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movl $0x1, 0x8(%rax)
movq (%r14), %rdi
callq 0x216c
movq 0x8(%rsp), %rcx
movl %eax, (%rcx)
leaq 0x8(%rcx), %rax
movq %rax, 0x18(%rsp)
leaq 0x10(%rcx), %rax
movq %rax, 0x20(%rsp)
xorl %r12d, %r12d
leaq 0x1975(%rip), %r15      # 0x301d
xorl %ebx, %ebx
movq (%r14), %rdi
movq %r15, %rsi
callq 0x1325
testl %eax, %eax
je 0x177c
movq (%r14), %rdi
leaq 0x195e(%rip), %rsi      # 0x3025
callq 0x1325
testl %eax, %eax
je 0x179d
movq (%r14), %rdi
movl $0x20, %esi
callq 0x22b8
testq %rax, %rax
je 0x1659
movq %rax, %r13
movq %rax, %rdi
callq 0x1427
cmpl $0x3, %eax
jne 0x1772
movl $0x30, %edi
callq 0x1080
testq %rax, %rax
je 0x1659
movq %rax, %rbp
movq (%r13), %rdi
callq 0x1371
movq %rax, 0x10(%rbp)
testq %rax, %rax
je 0x1659
movq %r13, %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %rdx
callq 0x1a21
cmpl $0x1, %eax
je 0x1659
movl $0x0, 0xc(%rbp)
cmpl $0x1, %ebx
jne 0x1756
movq 0x18(%rsp), %rax
cmpq $0x0, (%rax)
je 0x1767
cmpl $0x1, %r12d
jne 0x176a
movq 0x20(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x176a
movq %rbp, (%rax)
movl $0x1, 0x8(%r14)
movq %r13, %rdi
callq 0x12b0
jmp 0x17bd
cmpl $0x2, %r12d
jl 0x1791
movq 0x20(%rsp), %rax
cmpq $0x0, (%rax)
je 0x1659
testl %ebx, %ebx
jg 0x1659
incl %ebx
jmp 0x17bd
cmpl $0x2, %ebx
jl 0x17b1
movq 0x18(%rsp), %rax
cmpq $0x0, (%rax)
je 0x1659
testl %r12d, %r12d
jg 0x1659
incl %r12d
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x16aa
movq 0x8(%rsp), %rax
cmpq $0x0, 0x8(%rax)
je 0x1659
movq 0x8(%rsp), %rax
cmpq $0x0, 0x10(%rax)
je 0x1659
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1808
nop
// File: /workspace/github_c_makefile_star2_O1/Vatoth[P]CPE_2016_Lemin/src/create_edge.c
// Function: create_link
int		create_link(t_list *list, t_anthill *anthill)
{
  t_line        *element;
  char          **tab;
  char          *temp;

  element = list->first;
  while (element)
    {
      if (!(tab = my_str_to_wordtab(element->line, EDGE_CHAR)))
        return (ERROR);
      if (count_tab(tab) == 2)
        {
          if (create_edge(tab, anthill, 0, 0) == ERROR)
            return (ERROR);
          temp = tab[0];
          tab[0] = tab[1];
          tab[1] = temp;
          if (create_edge(tab, anthill, 0, 0) == ERROR)
            return (ERROR);
          element->bool = TRUE;
        }
      free_tab(tab);
      element = element->next;
    }
  return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x8(%rdi), %r15
testq %r15, %r15
je 0x1887
movq %rsi, %rbx
movl $0x1, %ebp
movq (%r15), %rdi
movl $0x2d, %esi
callq 0x22b8
testq %rax, %rax
je 0x1889
movq %rax, %r14
movq %rax, %rdi
callq 0x1427
cmpl $0x2, %eax
jne 0x1876
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1896
testl %eax, %eax
jne 0x1889
movq (%r14), %rax
movq 0x8(%r14), %rcx
movq %rcx, (%r14)
movq %rax, 0x8(%r14)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1896
testl %eax, %eax
jne 0x1889
movl $0x1, 0x8(%r15)
movq %r14, %rdi
callq 0x12b0
movq 0x10(%r15), %r15
testq %r15, %r15
jne 0x1820
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq