LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/jalalium[P]graph_algorithms_task/src_path/main_paths.c
// Function: find_all_paths
void	find_all_paths(t_graph *g)
{
	t_vect *spur = (t_vect*)malloc(sizeof(t_vect));
	t_queue *bfs = init_queue(); 
	init_vector(spur);
	push_back(spur, g->start);
	init_paths(g);
	push_q(bfs, create_state(g->start, spur));
	while (bfs->size > 0)
	{
		t_qlayer *front = bfs->head;
		for (int i = 0; i < g->adj[front->node].used; i++)
		{
			for (int j = 0; j < front->prefix->used; j++)
				if (front->prefix->tab[j] == g->adj[front->node].tab[i])
					goto st;
			add_path(g, append(front->prefix, g->adj[front->node].tab[i]));
			push_q(bfs, create_state(g->adj[front->node].tab[i], append(front->prefix, g->adj[front->node].tab[i])));
			st:;
		}	
		pop_q(bfs);
	}
	free(spur->tab);
	free(spur);
	free(bfs);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x18, %edi
callq 0x1080
movq %rax, %rbx
xorl %eax, %eax
callq 0x1b10
movq %rax, %r15
movq %rbx, %rdi
callq 0x1c90
movl 0x1c(%r14), %esi
movq %rbx, %rdi
callq 0x1d36
movq %r14, %rdi
callq 0x1814
movl 0x1c(%r14), %edi
movq %rbx, -0x30(%rbp)
movq %rbx, %rsi
callq 0x11ba
movq %r15, %rdi
movq %rax, %rsi
callq 0x1b28
cmpq $0x0, 0x10(%r15)
je 0x17b7
movq (%r15), %r13
movq (%r14), %rax
movslq 0x18(%r13), %rcx
leaq (%rcx,%rcx,2), %rdx
cmpq $0x0, 0x10(%rax,%rdx,8)
je 0x17aa
xorl %ebx, %ebx
movq (%r13), %rdi
movq 0x10(%rdi), %rsi
movl $0x7, %edx
testq %rsi, %rsi
je 0x1737
movq (%rdi), %r8
leaq (%rcx,%rcx,2), %r9
movq (%rax,%r9,8), %r9
movl (%r9,%rbx,4), %r9d
xorl %r10d, %r10d
cmpl %r9d, (%r8,%r10,4)
je 0x1732
incq %r10
cmpq %r10, %rsi
jne 0x1722
jmp 0x1737
movl $0xa, %edx
cmpl $0xa, %edx
je 0x1791
cmpl $0x7, %edx
jne 0x17aa
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,8), %rax
movl (%rax,%rbx,4), %esi
callq 0x122a
movq %r14, %rdi
movq %rax, %rsi
callq 0x195f
movq (%r14), %rax
movslq 0x18(%r13), %rcx
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,8), %rax
movl (%rax,%rbx,4), %r12d
movq (%r13), %rdi
movl %r12d, %esi
callq 0x122a
movl %r12d, %edi
movq %rax, %rsi
callq 0x11ba
movq %r15, %rdi
movq %rax, %rsi
callq 0x1b28
incq %rbx
movq (%r14), %rax
movslq 0x18(%r13), %rcx
leaq (%rcx,%rcx,2), %rdx
cmpq %rbx, 0x10(%rax,%rdx,8)
ja 0x16fe
movq %r15, %rdi
callq 0x1b66
jmp 0x16d7
movq -0x30(%rbp), %rbx
movq (%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1030
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O1/jalalium[P]graph_algorithms_task/src_path/main_paths.c
// Function: main
int main()
{
	t_graph *g;
	g = generate_graph();
	find_all_paths(g);
	print_paths(g);
	free_graph(g);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
xorl %eax, %eax
callq 0x1630
movq %rax, %rbx
movq %rax, %rdi
callq 0x1678
movq %rbx, %rdi
callq 0x1a0d
movq %rbx, %rdi
callq 0x135a
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/jalalium[P]graph_algorithms_task/src_path/path_routines.c
// Function: init_paths
void	init_paths(t_graph *g)
{
	t_paths *new = (t_paths*)malloc(sizeof(t_paths));

	new->path = (t_vect*)malloc(sizeof(t_vect)*50);
	for (int i = 0; i < 50; i++)
		init_vector(&new->path[i]);
	new->size = 50;
	new->used = 0;
	g->paths = new;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x18, %edi
callq 0x1080
movq %rax, %r14
movl $0x4b0, %edi            # imm = 0x4B0
callq 0x1080
movq %rax, (%r14)
xorl %r15d, %r15d
movq (%r14), %rdi
addq %r15, %rdi
callq 0x1c90
addq $0x18, %r15
cmpq $0x4b0, %r15            # imm = 0x4B0
jne 0x183e
movq $0x32, 0x8(%r14)
movq $0x0, 0x10(%r14)
movq %r14, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jalalium[P]graph_algorithms_task/src_path/path_routines.c
// Function: extend_paths
void	extend_paths(t_graph *g)
{
	size_t new_size = g->paths->size * 2;

	t_vect *copy = (t_vect*)malloc(sizeof(t_vect)*new_size); 
	for (int i = 0; i < new_size; i++)
		init_vector(&copy[i]);
	for (int i = 0; i < g->paths->size; i++)
	{
		for (int j = 0; j < g->paths->path[i].used; j++)
			push_back(&copy[i],g->paths->path[i].tab[j]);
		free(g->paths->path[i].tab);
	}
	free(g->paths->path);
	g->paths->path = copy;
	g->paths->size = new_size;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x8(%rax), %rax
leaq (%rax,%rax), %r12
shlq $0x4, %rax
leaq (%rax,%rax,2), %rdi
callq 0x1080
movq %rax, -0x30(%rbp)
testq %r12, %r12
je 0x18c3
movq %r12, %r14
movq -0x30(%rbp), %r15
movq %r15, %rdi
callq 0x1c90
addq $0x18, %r15
decq %r14
jne 0x18b2
movq %r12, -0x38(%rbp)
movq 0x8(%rbx), %rax
cmpq $0x0, 0x8(%rax)
je 0x1935
xorl %r13d, %r13d
movq 0x8(%rbx), %rax
movq (%rax), %rax
leaq (,%r13,2), %r12
addq %r13, %r12
leaq (%rax,%r12,8), %rax
cmpq $0x0, 0x10(%rax)
je 0x1920
movq -0x30(%rbp), %rcx
leaq (%rcx,%r12,8), %r15
xorl %r14d, %r14d
movq (%rax), %rax
movl (%rax,%r14,4), %esi
movq %r15, %rdi
callq 0x1d36
incq %r14
movq 0x8(%rbx), %rax
movq (%rax), %rax
leaq (%rax,%r12,8), %rax
cmpq %r14, 0x10(%rax)
ja 0x18fd
movq (%rax), %rdi
callq 0x1030
incq %r13
movq 0x8(%rbx), %rax
cmpq %r13, 0x8(%rax)
ja 0x18d5
movq (%rax), %rdi
callq 0x1030
movq 0x8(%rbx), %rax
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
movq -0x38(%rbp), %rcx
movq %rcx, 0x8(%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jalalium[P]graph_algorithms_task/src_path/path_routines.c
// Function: add_path
void	add_path(t_graph *g, t_vect *new)
{
	size_t pos = g->paths->used;
	size_t size = g->paths->size;

	if (pos >= size)
		extend_paths(g);
	for (int i = 0 ; i < new->used; i++)
		push_back(&g->paths->path[pos], new->tab[i]);
	g->paths->used++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x10(%rax), %r12
cmpq 0x8(%rax), %r12
jb 0x1986
movq %rbx, %rdi
callq 0x1875
cmpq $0x0, 0x10(%r14)
je 0x19b7
xorl %r15d, %r15d
leaq (%r12,%r12,2), %r12
shlq $0x3, %r12
movq 0x8(%rbx), %rax
movq (%rax), %rdi
addq %r12, %rdi
movq (%r14), %rax
movl (%rax,%r15,4), %esi
callq 0x1d36
incq %r15
cmpq %r15, 0x10(%r14)
ja 0x1998
movq 0x8(%rbx), %rax
incq 0x10(%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jalalium[P]graph_algorithms_task/src_path/print_paths.c
// Function: print_path_nb
void 	print_path_nb(t_graph *g)
{
	if (g->paths->used == 0)
		printf(BOLDWHITE "There is no path from vertex %d\n" RESET , g->start + 1);
	else if (g->paths->used == 1)
		printf(BOLDWHITE "There is 1 path from vertex %d\n" RESET , g->start + 1);
	else
		printf(BOLDWHITE "There are %zu paths from vertex %d\n" RESET , g->paths->used ,g->start + 1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rdi), %rax
movq 0x10(%rax), %rsi
movl 0x1c(%rdi), %edx
incl %edx
cmpq $0x1, %rsi
je 0x19ed
testq %rsi, %rsi
jne 0x19fe
leaq 0x665(%rip), %rdi       # 0x2050
jmp 0x19f4
leaq 0x68a(%rip), %rdi       # 0x207e
movl %edx, %esi
xorl %eax, %eax
popq %rbp
jmp 0x1070
leaq 0x6a6(%rip), %rdi       # 0x20ab
xorl %eax, %eax
popq %rbp
jmp 0x1070
// File: /workspace/github_c_makefile_star2_O1/jalalium[P]graph_algorithms_task/src_path/print_paths.c
// Function: print_paths
void	print_paths(t_graph *g)
{
	size_t i = 0;

	print_path_nb(g);
	qsort(g->paths->path,g->paths->used, sizeof(t_vect), cmp_path);
	while (i < g->paths->used)
	{
		int dest = g->paths->path[i].tab[g->paths->path[i].used - 1];
		printf(CYAN "Paths to vertex %d\n" RESET , dest + 1);
		while (i < g->paths->used && g->paths->path[i].tab[g->paths->path[i].used - 1] == dest)
		{
			for (int j = 0; j < g->paths->path[i].used; j++)
				printf("%d ", g->paths->path[i].tab[j] + 1);
			puts("");
			i++;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x19c8
movq 0x8(%rbx), %rax
movq (%rax), %rdi
movq 0x10(%rax), %rsi
leaq -0x7ad(%rip), %rcx      # 0x1288
movl $0x18, %edx
callq 0x1060
movq 0x8(%rbx), %rax
cmpq $0x0, 0x10(%rax)
je 0x1aff
leaq 0x6a4(%rip), %r15       # 0x20f9
xorl %r12d, %r12d
movq (%rax), %rax
leaq (%r12,%r12,2), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x10(%rax,%rcx,8), %rax
movl -0x4(%rdx,%rax,4), %eax
movq %rax, -0x30(%rbp)
leal 0x1(%rax), %esi
leaq 0x662(%rip), %rdi       # 0x20dc
xorl %eax, %eax
callq 0x1070
movq 0x8(%rbx), %rax
cmpq 0x10(%rax), %r12
jae 0x1af1
movq (%rax), %rax
leaq (%r12,%r12,2), %r14
movq (%rax,%r14,8), %rcx
movq 0x10(%rax,%r14,8), %rax
movq -0x30(%rbp), %rdx
cmpl %edx, -0x4(%rcx,%rax,4)
jne 0x1af1
movq 0x8(%rbx), %rax
movq (%rax), %rax
cmpq $0x0, 0x10(%rax,%r14,8)
je 0x1ae2
leaq (%rax,%r14,8), %rax
xorl %r13d, %r13d
movq (%rax), %rax
movl (%rax,%r13,4), %esi
incl %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x1070
incq %r13
movq 0x8(%rbx), %rax
movq (%rax), %rax
leaq (%rax,%r14,8), %rax
cmpq %r13, 0x10(%rax)
ja 0x1abb
movl $0xa, %edi
callq 0x1040
incq %r12
jmp 0x1a81
movq 0x8(%rbx), %rax
cmpq 0x10(%rax), %r12
jb 0x1a58
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/jalalium[P]graph_algorithms_task/src_path/validation.c
// Function: valid_params
int		valid_params(int dir, int node, t_graph *g)
{
	if (dir != 0 && dir != 1)
		return 0;
	if (node <= 0 || node > g->vertx)
		return 0;
	g->start = node - 1;
	g->direct = dir;
	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpl $0x2, %edi
setae %cl
testl %esi, %esi
setle %r8b
xorl %eax, %eax
orb %cl, %r8b
jne 0x1bf5
cmpl %esi, 0x10(%rdx)
jl 0x1bf5
decl %esi
movl %esi, 0x1c(%rdx)
movl %edi, 0x20(%rdx)
movl $0x1, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/eric-lo[P]3150/3-ProcessUser/system_implement_2.c
// Function: system_ver_3150
int system_ver_3150(const char *cmd_str) {
	if(cmd_str == NULL)
		return -1;

	if(fork() == 0) {
		execl(cmd_str, cmd_str, NULL);
		fprintf(stderr, "%s: command not found\n", cmd_str);
		exit(-1);
	}

	wait(NULL);
	return 0;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x1209
movq %rdi, %rbx
callq 0x10a0
testl %eax, %eax
je 0x1212
xorl %ebx, %ebx
xorl %edi, %edi
callq 0x1090
jmp 0x120e
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
popq %rbx
retq
movq %rbx, %rdi
callq 0x10c0
// File: /workspace/github_c_makefile_star2_O1/tomcatzh[P]RealityBenchmark/md_bench.c
// Function: mdContent
static CONTENTS* mdContent(const CONTENTS* data) {
#if OPENSSL_VERSION_NUMBER < 0x010100000L
    EVP_MD_CTX mdctx;
#endif
    EVP_MD_CTX *ctx;
    CONTENTS *mdResult = NULL;
    int i = 0;

    mdResult = calloc(1, sizeof(CONTENTS));
    assert(mdResult);
    mdResult->body = malloc(EVP_MAX_MD_SIZE);
    assert(mdResult->body);

    unsigned int md_len;

#if OPENSSL_VERSION_NUMBER < 0x010100000L
    EVP_MD_CTX_init(&mdctx);
    ctx = &mdctx;
#else
    ctx = EVP_MD_CTX_new();
#endif

    i = EVP_DigestInit_ex(ctx, md, NULL);
    assert(i==1);

    i = EVP_DigestUpdate(ctx, data->body, data->size);
    assert(i==1);

    i = EVP_DigestFinal_ex(ctx, mdResult->body, &md_len);
    assert(i==1);
    mdResult->size = md_len;

#if OPENSSL_VERSION_NUMBER < 0x010100000L
    EVP_MD_CTX_cleanup(&mdctx);
#else
    EVP_MD_CTX_free(ctx);
#endif

    return mdResult;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
movl $0x1, %edi
movl $0x10, %esi
callq 0x2120
testq %rax, %rax
je 0x27d3
movq %rax, %rbx
movl $0x40, %edi
callq 0x22f0
movq %rax, (%rbx)
testq %rax, %rax
je 0x27f2
movq %rax, %r12
callq 0x21d0
movq %rax, %r14
movq 0x8a30(%rip), %rsi      # 0xb1a0
movq %rax, %rdi
xorl %edx, %edx
callq 0x2140
cmpl $0x1, %eax
jne 0x2811
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x22b0
cmpl $0x1, %eax
jne 0x2830
leaq 0x4(%rsp), %rdx
movq %r14, %rdi
movq %r12, %rsi
callq 0x20f0
cmpl $0x1, %eax
jne 0x284f
movl 0x4(%rsp), %eax
movq %rax, 0x8(%rbx)
movq %r14, %rdi
callq 0x2290
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x49f6(%rip), %rdi      # 0x71d0
leaq 0x487f(%rip), %rsi      # 0x7060
leaq 0x49f1(%rip), %rcx      # 0x71d9
movl $0x1b, %edx
callq 0x2110
leaq 0x4a06(%rip), %rdi      # 0x71ff
leaq 0x4860(%rip), %rsi      # 0x7060
leaq 0x49d2(%rip), %rcx      # 0x71d9
movl $0x1d, %edx
callq 0x2110
leaq 0x49f6(%rip), %rdi      # 0x720e
leaq 0x4841(%rip), %rsi      # 0x7060
leaq 0x49b3(%rip), %rcx      # 0x71d9
movl $0x29, %edx
callq 0x2110
leaq 0x49d7(%rip), %rdi      # 0x720e
leaq 0x4822(%rip), %rsi      # 0x7060
leaq 0x4994(%rip), %rcx      # 0x71d9
movl $0x2c, %edx
callq 0x2110
leaq 0x49b8(%rip), %rdi      # 0x720e
leaq 0x4803(%rip), %rsi      # 0x7060
leaq 0x4975(%rip), %rcx      # 0x71d9
movl $0x2f, %edx
callq 0x2110
nop
// File: /workspace/github_c_makefile_star2_O1/ramirezsebas[P]TP-LISTINGS/./src/capitulo_2/2.1/arglist.c
// Function: main
int main (int argc, char* argv[])
{
  printf ("The name of this program is ‘%s’.\n", argv[0]);
  printf ("This program was invoked with %d arguments.\n", argc - 1);
  /* Were any command-line arguments specified?*/
  if (argc > 1) {
    /* Yes, print them. */
    int i;
    printf ("The arguments are:\n");
    for (i = 1; i < argc; ++i)
      printf ("  %s\n", argv[i]);
  }
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movl %edi, %r14d
movq (%rsi), %rsi
leaq 0xe9d(%rip), %rdi       # 0x2004
xorl %eax, %eax
callq 0x1030
leal -0x1(%r14), %esi
leaq 0xeb2(%rip), %rdi       # 0x202b
xorl %eax, %eax
callq 0x1030
cmpl $0x2, %r14d
jl 0x11b8
leaq 0xed1(%rip), %rdi       # 0x205e
callq 0x1040
movl %r14d, %r15d
movl $0x1, %r12d
leaq 0xeb6(%rip), %r14       # 0x2058
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1030
incq %r12
cmpq %r12, %r15
jne 0x11a2
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/g3ida[P]g3idaCompiler/vm.cpp
// Function: getNextInst()
Inst getNextInst() {
    int c = fgetc(input);
    std::string s;
    while(c==' ' || c == '\n' || c =='\t') {
        c = fgetc(input);
    }

    while(c != EOF && c != ' ' && c !='\n')
    {
        s+= c;
        c = fgetc(input);
    }
    Inst i;
    i.ins = unilexId(s.c_str());

    if(unilexIdNumArgs(s.c_str()) == 0) return i;
    s = "";
    c = fgetc(input);
    while(c != EOF && c != '\n')
    {
        s+= c;
        c = fgetc(input);
    }

    if(i.ins == VALEURD || i.ins == VALEURG) {
        memory[s] = 0;
        i.s = s;
    } else{
        i.value = atoi(s.c_str());
    }
    return i;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x5ce1(%rip), %rdi      # 0x81c8
callq 0x2200
leaq -0x40(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
movabsq $0x100000600, %r14      # imm = 0x100000600
cmpl $0x20, %eax
ja 0x253c
movl %eax, %ecx
btq %rcx, %r14
jae 0x253c
movq 0x5cab(%rip), %rdi      # 0x81c8
callq 0x2200
jmp 0x2509
movsbl %al, %esi
leaq -0x50(%rbp), %rdi
callq 0x2120
movq 0x5c91(%rip), %rdi      # 0x81c8
callq 0x2200
leal 0x1(%rax), %ecx
cmpl $0x21, %ecx
ja 0x2524
movabsq $0x200000801, %rdx      # imm = 0x200000801
btq %rcx, %rdx
jae 0x2524
movl $0x0, (%rbx)
leaq 0x8(%rbx), %rax
movq %rax, -0x30(%rbp)
leaq 0x18(%rbx), %r13
movq %r13, 0x8(%rbx)
movq $0x0, 0x10(%rbx)
movb $0x0, 0x18(%rbx)
movl $0x8, %r12d
movq -0x50(%rbp), %r15
leaq 0x5699(%rip), %r14      # 0x7c20
movq -0x8(%r12,%r14), %rsi
movq %r15, %rdi
callq 0x21a0
testl %eax, %eax
je 0x25ac
addq $0x10, %r12
cmpq $0x198, %r12            # imm = 0x198
jne 0x2587
movl $0x19, %eax
jmp 0x25b0
movl (%r12,%r14), %eax
movl %eax, 0x28(%rbx)
movl $0xc, %r12d
movq -0xc(%r12,%r14), %rsi
movq %r15, %rdi
callq 0x21a0
testl %eax, %eax
je 0x25dc
addq $0x10, %r12
cmpq $0x19c, %r12            # imm = 0x19C
jne 0x25b9
jmp 0x265d
cmpl $0x0, (%r12,%r14)
je 0x265d
leaq -0x50(%rbp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x2aa4(%rip), %rcx      # 0x5096
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x21e0
leaq -0x50(%rbp), %r15
movq 0x5bc1(%rip), %rdi      # 0x81c8
callq 0x2200
cmpl $-0x1, %eax
je 0x2623
cmpl $0xa, %eax
je 0x2623
movsbl %al, %esi
movq %r15, %rdi
callq 0x2120
jmp 0x2600
movl 0x28(%rbx), %eax
decl %eax
cmpl $0x1, %eax
ja 0x2652
leaq 0x5b9c(%rip), %rdi      # 0x81d0
leaq -0x50(%rbp), %rsi
callq 0x33c8
movl $0x0, (%rax)
leaq -0x50(%rbp), %rsi
movq -0x30(%rbp), %rdi
callq 0x20b0
jmp 0x265d
movq -0x50(%rbp), %rdi
callq 0x21f0
movl %eax, (%rbx)
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x266f
callq 0x2140
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2683
movq %rax, %rbx
movq -0x30(%rbp), %rax
movq (%rax), %rdi
cmpq %r13, %rdi
je 0x269c
callq 0x2140
jmp 0x269c
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x26ae
callq 0x2140
movq %rbx, %rdi
callq 0x2240
// File: /workspace/github_c_makefile_star2_O1/mgrosvenor[P]evec/demo3.c
// Function: main
int main(int argc, char** argv)
{
    int* a = NULL;

    printf("Initial Set\n");
    evpsh(a, 6);
    evpsh(a, 4);
    evpsh(a, 2);
    evpsh(a, 2);
    evpsh(a, 4);
    evpsh(a, 6);

    for(int i = 0; i < evcnt(a); i++){
        printf("%i: %i\n", i, a[i]);
    }
    printf("\n");

    printf("Sorted Set\n");
    evsort(a,compare);

    for(int i = 0; i < evcnt(a); i++){
        printf("%i: %i\n", i, a[i]);
    }
    printf("\n");


    printf("De-duplicated Set\n");
    for(int i = 1; i < evcnt(a); i++){
        if(a[i] == a[i-1]){
            evdel(a,i);
            i--;
        }
    }

    for(int i = 0; i < evcnt(a); i++){
        printf("%i: %i\n", i, a[i]);
    }
    printf("\n");

    a = evfree(a);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
leaq 0x92b(%rip), %rdi       # 0x240b
callq 0x1060
movl $0x6, %ebp
leaq 0x4(%rsp), %rbx
movl %ebp, (%rbx)
movl $0x4, %edx
xorl %edi, %edi
movq %rbx, %rsi
callq 0x1686
movl $0x4, %r14d
movl %r14d, (%rbx)
leaq 0x4(%rsp), %rbx
movl $0x4, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1686
movl $0x2, %r15d
movl %r15d, (%rbx)
leaq 0x4(%rsp), %rbx
movl $0x4, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1686
movl %r15d, (%rbx)
leaq 0x4(%rsp), %rbx
movl $0x4, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1686
movl %r14d, (%rbx)
leaq 0x4(%rsp), %rbx
movl $0x4, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1686
movl %ebp, (%rbx)
leaq 0x4(%rsp), %rsi
movl $0x4, %edx
movq %rax, %rdi
callq 0x1686
movq %rax, %rbx
movq %rax, %rdi
callq 0x1755
testq %rax, %rax
je 0x1bbb
leaq 0x851(%rip), %r14       # 0x23e8
xorl %r15d, %r15d
movl (%rbx,%r15,4), %edx
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x1080
incq %r15
movq %rbx, %rdi
callq 0x1755
cmpq %r15, %rax
ja 0x1b9a
movl $0xa, %edi
callq 0x1040
leaq 0x84b(%rip), %rdi       # 0x2417
callq 0x1060
leaq -0x10b(%rip), %rsi      # 0x1acd
movq %rbx, %rdi
callq 0x1a5a
movq %rbx, %rdi
callq 0x1755
testq %rax, %rax
je 0x1c18
leaq 0x7f4(%rip), %r14       # 0x23e8
xorl %r15d, %r15d
movl (%rbx,%r15,4), %edx
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x1080
incq %r15
movq %rbx, %rdi
callq 0x1755
cmpq %r15, %rax
ja 0x1bf7
movl $0xa, %edi
callq 0x1040
leaq 0x7f9(%rip), %rdi       # 0x2422
callq 0x1060
movq %rbx, %rdi
callq 0x1755
cmpq $0x2, %rax
jb 0x1c71
movl $0x1, %ebp
movl $0x1, %r14d
movl (%rbx,%r14,4), %eax
cmpl -0x4(%rbx,%r14,4), %eax
jne 0x1c5f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x199b
decl %ebp
incl %ebp
movslq %ebp, %r14
movq %rbx, %rdi
callq 0x1755
cmpq %r14, %rax
ja 0x1c47
movq %rbx, %rdi
callq 0x1755
testq %rax, %rax
je 0x1ca9
leaq 0x763(%rip), %r14       # 0x23e8
xorl %r15d, %r15d
movl (%rbx,%r15,4), %edx
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x1080
incq %r15
movq %rbx, %rdi
callq 0x1755
cmpq %r15, %rax
ja 0x1c88
movl $0xa, %edi
callq 0x1040
movq %rbx, %rdi
callq 0x1955
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/openshmem-org[P]openshmem-examples/c/dtrand.c
// Function: table_update
void
table_update(int nv, int idx)
{
    const int q = OWNER(idx);   /* PE that owns this index */
    const int off = OFFSET(idx);    /* local table offset */

    shmem_set_lock(&lock[idx]);

    shmem_int_p(&table[off], nv, q);

    shmem_clear_lock(&lock[idx]);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
movl %esi, %eax
cltd
idivl 0x2e7a(%rip)            # 0x40a8
movl %eax, %ebp
movl %edx, %r14d
movslq %esi, %r15
shlq $0x3, %r15
movq 0x2e6f(%rip), %rdi      # 0x40b0
addq %r15, %rdi
callq 0x1060
movslq %r14d, %rdi
shlq $0x2, %rdi
addq 0x2e61(%rip), %rdi      # 0x40b8
movl %ebx, %esi
movl %ebp, %edx
callq 0x1040
addq 0x2e49(%rip), %r15      # 0x40b0
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1050
// File: /workspace/github_c_makefile_star2_O1/openshmem-org[P]openshmem-examples/c/dtrand.c
// Function: table_dump
void
table_dump(void)
{
    int i;

    for (i = 0; i < ip_pe; i += 1) {
        printf("PE %4d: table[local %4d](global %4d) = %d\n",
               me, i, (me * ip_pe) + i, table[i]);
    }
}

// Assembly:
movl 0x2e29(%rip), %ecx      # 0x40a8
testl %ecx, %ecx
jle 0x12cb
pushq %r14
pushq %rbx
pushq %rax
leaq 0xd7a(%rip), %rbx       # 0x2008
xorl %r14d, %r14d
movl 0x2e29(%rip), %esi      # 0x40c0
imull %esi, %ecx
addl %r14d, %ecx
movq 0x2e14(%rip), %rax      # 0x40b8
movl (%rax,%r14,4), %r8d
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0x1030
incq %r14
movslq 0x2de9(%rip), %rcx      # 0x40a8
cmpq %rcx, %r14
jl 0x1291
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/adelciotto[P]plasma/src/palette_plasma.c
// Function: InitSDL
int InitSDL(void) {
    SDL_Init(SDL_INIT_VIDEO);

    if (SDL_GetDesktopDisplayMode(0, &displayMode) != 0) {
        return -1;
    }

    window = SDL_CreateWindow(WINDOW_TITLE, SDL_WINDOWPOS_CENTERED,
                              SDL_WINDOWPOS_CENTERED, width, height,
                              SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE);
    if (window == NULL) {
        return -1;
    }
    LogInfo("window created with size %dx%d", width, height);

    if (fullscreen) {
        SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
    }

    SDL_ShowCursor(SDL_DISABLE);

    renderer = SDL_CreateRenderer(
        window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
    if (renderer == NULL) {
        return -1;
    }
    LogInfo("renderer created with logical size %dx%d", width, height);

    SDL_RenderSetLogicalSize(renderer, width, height);

    texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGB888,
                                SDL_TEXTUREACCESS_STREAMING, width, height);
    if (texture == NULL) {
        return -1;
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl $0x20, %edi
callq 0x1150
leaq 0x2ccf(%rip), %rsi      # 0x4170
xorl %edi, %edi
callq 0x11f0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testl %eax, %eax
je 0x14ba
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movl 0x2c68(%rip), %ecx      # 0x4128
movl 0x2c65(%rip), %r8d      # 0x412c
leaq 0xbba(%rip), %rdi       # 0x2088
movl $0x2fff0000, %esi       # imm = 0x2FFF0000
movl $0x2fff0000, %edx       # imm = 0x2FFF0000
movl $0x24, %r9d
callq 0x1060
movq %rax, 0x2c56(%rip)      # 0x4140
testq %rax, %rax
je 0x14b1
movl 0x2c33(%rip), %edx      # 0x4128
movl 0x2c31(%rip), %ecx      # 0x412c
leaq 0xb95(%rip), %rsi       # 0x2097
xorl %edi, %edi
xorl %eax, %eax
callq 0x1200
cmpl $0x0, 0x2c56(%rip)      # 0x4168
je 0x1525
movq 0x2c25(%rip), %rdi      # 0x4140
movl $0x1001, %esi           # imm = 0x1001
callq 0x1180
xorl %ebp, %ebp
xorl %edi, %edi
callq 0x1220
movq 0x2c0b(%rip), %rdi      # 0x4140
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x6, %edx
callq 0x1040
movq %rax, 0x2bf8(%rip)      # 0x4148
testq %rax, %rax
je 0x14b1
movl 0x2bc9(%rip), %edx      # 0x4128
movl 0x2bc7(%rip), %ecx      # 0x412c
leaq 0xb4a(%rip), %rsi       # 0x20b6
xorl %edi, %edi
xorl %eax, %eax
callq 0x1200
movq 0x2bcc(%rip), %rdi      # 0x4148
movl 0x2ba6(%rip), %esi      # 0x4128
movl 0x2ba4(%rip), %edx      # 0x412c
callq 0x10b0
movq 0x2bb4(%rip), %rdi      # 0x4148
movl 0x2b8e(%rip), %ecx      # 0x4128
movl 0x2b8b(%rip), %r8d      # 0x412c
movl $0x16161804, %esi       # imm = 0x16161804
movl $0x1, %edx
callq 0x1210
movq %rax, 0x2b99(%rip)      # 0x4150
cmpq $0x1, %rax
sbbl %ebp, %ebp
movl %ebp, %ebx
jmp 0x14b1
// File: /workspace/github_c_makefile_star2_O1/adelciotto[P]plasma/src/palette_plasma.c
// Function: InitPalette
void InitPalette(void) {
    for (int x = 0; x < PALETTE_SIZE; x++) {
        Uint8 r = (Uint8)Max(128.0 + 128 * sin(PI * x / 32.0), 255);
        Uint8 b = (Uint8)Max(128.0 + 128 * sin(PI * x / 64.0), 255);
        palette[x] = RGBToUint32(r, 0, b);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
leaq 0x2bbe(%rip), %rbx      # 0x4190
xorl %r14d, %r14d
movl $0xff, %ebp
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
mulsd 0xa4e(%rip), %xmm0      # 0x2038
movsd %xmm0, (%rsp)
mulsd 0xa49(%rip), %xmm0      # 0x2040
callq 0x1090
movsd 0xa44(%rip), %xmm1      # 0x2048
mulsd %xmm1, %xmm0
addsd %xmm1, %xmm0
movsd 0xa3c(%rip), %xmm1      # 0x2050
minsd %xmm1, %xmm0
cvttsd2si %xmm0, %r15d
movsd (%rsp), %xmm0
mulsd 0xa2e(%rip), %xmm0      # 0x2058
callq 0x1090
movsd 0xa11(%rip), %xmm1      # 0x2048
mulsd %xmm1, %xmm0
addsd %xmm1, %xmm0
minsd 0xa09(%rip), %xmm0      # 0x2050
cvttsd2si %xmm0, %eax
andl %ebp, %r15d
shll $0x10, %r15d
andl %ebp, %eax
orl %r15d, %eax
movl %eax, (%rbx)
incq %r14
addq $0x4, %rbx
cmpq $0x100, %r14            # imm = 0x100
jne 0x15da
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/adelciotto[P]plasma/src/palette_plasma.c
// Function: DrawFrame
void DrawFrame(double elapsedTimeInMs) {
    int paletteShift = (int)(elapsedTimeInMs / 32.0);

    for (int y = 0; y < height; y++) {
        for (int x = 0; x < width; x++) {
            int index = Get1DArrayIndex(x, y, width);

            pixelBuffer[index] =
                palette[(plasmaBuffer[index] + paletteShift) % PALETTE_SIZE];
        }
    }
}

// Assembly:
cmpl $0x0, 0x28b1(%rip)      # 0x412c
jle 0x18e5
mulsd 0x7bb(%rip), %xmm0      # 0x2040
cvttsd2si %xmm0, %eax
movq 0x28d0(%rip), %rcx      # 0x4160
xorl %edx, %edx
movq 0x28bf(%rip), %rsi      # 0x4158
leaq 0x28f0(%rip), %rdi      # 0x4190
movl 0x2881(%rip), %r9d      # 0x4128
testl %r9d, %r9d
jle 0x18db
xorl %r8d, %r8d
imull %edx, %r9d
movslq %r9d, %r9
addq %r8, %r9
movl (%rcx,%r9,4), %r10d
addl %eax, %r10d
movzbl %r10b, %r10d
movl (%rdi,%r10,4), %r10d
movl %r10d, (%rsi,%r9,4)
movl 0x2855(%rip), %r9d      # 0x4128
incq %r8
cmpl %r9d, %r8d
jl 0x18af
incl %edx
cmpl 0x2849(%rip), %edx      # 0x412c
jl 0x18a0
retq
// File: /workspace/github_c_makefile_star2_O1/adelciotto[P]plasma/src/palette_plasma.c
// Function: DestroySDL
void DestroySDL(void) {
    SDL_DestroyTexture(texture);
    SDL_DestroyRenderer(renderer);
    SDL_DestroyWindow(window);
    SDL_Quit();
}

// Assembly:
pushq %rax
movq 0x2862(%rip), %rdi      # 0x4150
callq 0x1100
movq 0x284e(%rip), %rdi      # 0x4148
callq 0x10c0
movq 0x283a(%rip), %rdi      # 0x4140
callq 0x1030
popq %rax
jmp 0x1070
// File: /workspace/github_c_makefile_star2_O1/OhYee[P]computer_application_programming_experiment/hash_search/bf_search/bf_search.c
// Function: bg_init
bit_group *bg_init(unsigned long long size) {
    bit_group *bg = mp_new(sizeof(bit_group));
    bg->group_number = size / group_type_size;
    bg->bits = mp_new(sizeof(group_type) * bg->group_number);
    bg_reset(bg);
    return bg;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x10, %edi
callq 0x2748
movq %rax, %r14
shrq $0x5, %rbx
movq %rbx, 0x8(%rax)
shll $0x2, %ebx
movl %ebx, %edi
callq 0x2748
movq %rax, (%r14)
movq 0x8(%r14), %rdx
shlq $0x5, %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x1090
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/OhYee[P]computer_application_programming_experiment/hash_search/bf_search/bf_search.c
// Function: bg_print
void bg_print(bit_group *bg) {
    for (int i = bg->group_number - 1; i >= 0; --i) {
        unsigned int num = *(bg->bits + i);
        int          pos = group_type_size;

        for (int j = 0; j < group_type_size; ++j) {
            buf[j] = '0';
        }
        buf[group_type_size + 1] = '\0';

        while (num) {
            buf[pos--] = (num % 2) + '0';
            num /= 2;
        }

        printf("%d(%s)", i, buf);
    }
}

// Assembly:
movl 0x8(%rdi), %eax
decl %eax
js 0x34d9
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %eax, %r14d
leaq 0xf53(%rip), %r15       # 0x43b5
leaq 0x3d37(%rip), %r12      # 0x71a0
movq (%rbx), %rax
movl (%rax,%r14,4), %eax
movaps 0xec9(%rip), %xmm0      # 0x4340
movaps %xmm0, 0x3d32(%rip)     # 0x71b0
movaps %xmm0, 0x3d1b(%rip)     # 0x71a0
movb $0x0, 0x3d35(%rip)      # 0x71c1
testl %eax, %eax
je 0x34b2
bsrl %eax, %ecx
xorl $0x1f, %ecx
movl $0x20, %edx
movl %eax, %esi
andb $0x1, %sil
orb $0x30, %sil
movb %sil, (%rdx,%r12)
decq %rdx
shrl %eax
cmpl %edx, %ecx
jne 0x349b
movq %r15, %rdi
movl %r14d, %esi
movq %r12, %rdx
xorl %eax, %eax
callq 0x1080
leaq -0x1(%r14), %rax
testq %r14, %r14
movq %rax, %r14
jg 0x3469
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/OhYee[P]computer_application_programming_experiment/hash_search/bf_search/bf_search.c
// Function: bf_init
bloom_filter *bf_init(unsigned int k, unsigned long long m) {
    bloom_filter *bf = mp_new(sizeof(bloom_filter));
    bf->hash_num = k;
    bf->bit_length = m;
    bf->value = bg_init(m);
    return bf;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
movl $0x18, %edi
callq 0x2748
movq %rax, %r14
movl %ebp, 0x8(%rax)
movq %rbx, 0x10(%rax)
movl $0x10, %edi
callq 0x2748
movq %rax, %r15
shrq $0x5, %rbx
movq %rbx, 0x8(%rax)
shll $0x2, %ebx
movl %ebx, %edi
callq 0x2748
movq %rax, (%r15)
movq 0x8(%r15), %rdx
shlq $0x5, %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x1090
movq %r15, (%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/OhYee[P]computer_application_programming_experiment/hash_search/bf_search/bf_search.c
// Function: hash
unsigned long long hash(int type, char *s, unsigned long long limit) {
    unsigned long long code = 0;
    char *             ptr = s;
    int                param = 1;
    int                p = prime[8 - type];

    while (compare_char(*ptr, '\0') != 0) {
        code = (code + (param * (*ptr)));
        param = (param * p);
        ++ptr;
    }

    code = (code ^ 9999901) % limit;

    return code;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movl $0x8, %eax
subl %edi, %eax
cltq
leaq 0xea3(%rip), %rcx       # 0x4400
movl (%rcx,%rax,4), %ebp
movsbl (%rsi), %edi
xorl %esi, %esi
callq 0x241c
testl %eax, %eax
je 0x35a8
incq %r14
movl $0x1, %r12d
xorl %r15d, %r15d
movsbq -0x1(%r14), %rax
movslq %r12d, %r12
imulq %r12, %rax
addq %rax, %r15
imull %ebp, %r12d
movsbl (%r14), %edi
xorl %esi, %esi
callq 0x241c
incq %r14
testl %eax, %eax
jne 0x357a
xorq $0x98961d, %r15         # imm = 0x98961D
jmp 0x35ae
movl $0x98961d, %r15d        # imm = 0x98961D
movq %r15, %rax
xorl %edx, %edx
divq %rbx
movq %rdx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/OhYee[P]computer_application_programming_experiment/hash_search/bf_search/bf_search.c
// Function: bf_add
void bf_add(bloom_filter *bf, char *s) {
    for (int i = 0; i < bf->hash_num; ++i) {
        int code = hash(i, s, bf->bit_length);
        // set bg code-th bit to 1
        bg_set(bf->value, code);
    }
}

// Assembly:
cmpl $0x0, 0x8(%rdi)
je 0x3609
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %ebp, %ebp
movq 0x10(%r14), %rdx
movl %ebp, %edi
movq %rbx, %rsi
callq 0x353f
movq (%r14), %rcx
movslq %eax, %rdx
movq (%rcx), %rsi
andb $0x7, %al
movl $0x1, %edi
movl %eax, %ecx
shll %cl, %edi
shrq $0x3, %rdx
orl %edi, (%rsi,%rdx,4)
incl %ebp
cmpl 0x8(%r14), %ebp
jb 0x35d4
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/OhYee[P]computer_application_programming_experiment/hash_search/bf_search/bf_search.c
// Function: bf_exist
boolean bf_exist(bloom_filter *bf, char *s) {
    boolean exist = T;
    for (int i = 0; i < bf->hash_num; ++i) {
        int code = hash(i, s, bf->bit_length);
        // set bg code-th bit to 1
        if (!bg_read_file(bf->value, code)) {
            exist = F;
            break;
        }
    }
    return exist;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
leaq 0xa9f(%rip), %rax       # 0x40b8
movl (%rax), %ebx
cmpl $0x0, 0x8(%rdi)
je 0x366a
movq %rsi, %r14
movq %rdi, %r15
leaq 0xa8e(%rip), %rax       # 0x40bc
movl (%rax), %r12d
xorl %ebp, %ebp
movq 0x10(%r15), %rdx
movl %ebp, %edi
movq %r14, %rsi
callq 0x353f
movq (%r15), %rcx
movslq %eax, %rdx
movq (%rcx), %rsi
shrq $0x3, %rdx
andb $0x7, %al
movl $0x1, %edi
movl %eax, %ecx
shll %cl, %edi
testl %edi, (%rsi,%rdx,4)
cmovel %r12d, %ebx
je 0x366a
incl %ebp
cmpl 0x8(%r15), %ebp
jb 0x3633
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/antonblanchard[P]will-it-scale/tests/mmap1.c
// Function: testcase
void testcase(unsigned long long *iterations, unsigned long nr)
{
	while (1) {
		char *c = mmap(NULL, MEMSIZE, PROT_READ|PROT_WRITE,
			       MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
		assert(c != MAP_FAILED);
		munmap(c, MEMSIZE);

		(*iterations)++;
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x8000000, %esi        # imm = 0x8000000
xorl %edi, %edi
movl $0x3, %edx
movl $0x22, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
xorl %r9d, %r9d
callq 0x20e0
cmpq $-0x1, %rax
je 0x2c17
movl $0x8000000, %esi        # imm = 0x8000000
movq %rax, %rdi
callq 0x21d0
incq (%rbx)
jmp 0x2be0
leaq 0x670(%rip), %rdi       # 0x328e
leaq 0x679(%rip), %rsi       # 0x329e
leaq 0x680(%rip), %rcx       # 0x32ac
movl $0xf, %edx
callq 0x2120
// File: /workspace/github_c_makefile_star2_O1/zpole[P]IICV/src/test_nan.c
// Function: main
int
main(int argc VL_UNUSED, char** argv VL_UNUSED)
{
  VL_PRINTF ("Double   NaN : `%g'\n",   VL_NAN_D     ) ;
  VL_PRINTF ("Double   Inf : `%g'\n",   VL_INFINITY_D) ;
  VL_PRINTF ("Double - Inf : `%g'\n", - VL_INFINITY_D) ;
  VL_PRINTF ("Single   NaN : `%g'\n",   VL_NAN_F     ) ;
  VL_PRINTF ("Single   Inf : `%g'\n",   VL_INFINITY_F) ;
  VL_PRINTF ("Single - Inf : `%g'\n", - VL_INFINITY_F) ;

  VL_PRINTF ("Double: 0.0 <   VL_INFINITY_D: %d\n", 0.0 <   VL_INFINITY_D) ;
  VL_PRINTF ("Double: 0.0 > - VL_INFINITY_D: %d\n", 0.0 > - VL_INFINITY_D) ;

  return 0 ;
}

// Assembly:
pushq %rax
callq 0x1030
movq %rax, %rcx
leaq 0xed4(%rip), %rdi       # 0x2020
movsd 0xeb4(%rip), %xmm0      # 0x2008
movb $0x1, %al
callq *%rcx
callq 0x1030
movq %rax, %rcx
leaq 0xece(%rip), %rdi       # 0x2035
movsd 0xea1(%rip), %xmm0      # 0x2010
movb $0x1, %al
callq *%rcx
callq 0x1030
movq %rax, %rcx
leaq 0xec8(%rip), %rdi       # 0x204a
movsd 0xe8e(%rip), %xmm0      # 0x2018
movb $0x1, %al
callq *%rcx
callq 0x1030
movq %rax, %rcx
leaq 0xec2(%rip), %rdi       # 0x205f
movsd 0xe63(%rip), %xmm0      # 0x2008
movb $0x1, %al
callq *%rcx
callq 0x1030
movq %rax, %rcx
leaq 0xebc(%rip), %rdi       # 0x2074
movsd 0xe50(%rip), %xmm0      # 0x2010
movb $0x1, %al
callq *%rcx
callq 0x1030
movq %rax, %rcx
leaq 0xeb6(%rip), %rdi       # 0x2089
movsd 0xe3d(%rip), %xmm0      # 0x2018
movb $0x1, %al
callq *%rcx
callq 0x1030
movq %rax, %rcx
leaq 0xeb0(%rip), %rdi       # 0x209e
movl $0x1, %esi
xorl %eax, %eax
callq *%rcx
callq 0x1030
movq %rax, %rcx
leaq 0xebb(%rip), %rdi       # 0x20c1
movl $0x1, %esi
xorl %eax, %eax
callq *%rcx
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/randyrossi[P]fisher-modem/test/testThreadUtil.C
// Function: thread_body(void*)
void thread_body(void* data) {
  void* d = malloc(1024);
  fprintf(stdout, "thread is running\n");
  int t = rand() % 5 + 1;
  usleep(t * 1000000);
  fprintf(stdout, "thread is exiting\n");
  free(d);
}

// Assembly:
pushq %rbx
movq 0x2ce4(%rip), %rbx      # 0x3fc8
movq (%rbx), %rcx
leaq 0xd16(%rip), %rdi       # 0x2004
movl $0x12, %esi
movl $0x1, %edx
callq 0x1160
callq 0x1040
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x21, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
imull $0xf4240, %eax, %edi    # imm = 0xF4240
addl $0xf4240, %edi          # imm = 0xF4240
callq 0x10e0
movq (%rbx), %rcx
leaq 0xcdf(%rip), %rdi       # 0x2017
movl $0x12, %esi
movl $0x1, %edx
popq %rbx
jmp 0x1160
// File: /workspace/github_c_makefile_star2_O1/randyrossi[P]fisher-modem/test/testThreadUtil.C
// Function: main
int main(int argc, char* argv[]) {
  int num = 100;
  fprintf(stdout, "main thread running\n");
  thread_t threads[num];
  for (int i = 0; i < num; i++) {
    threads[i] = thread_create(thread_body, NULL, "thread1");
  }

  fprintf(stdout, "main calling thread_run()\n");
  for (int i = 0; i < num; i++) {
    thread_run(threads[i]);
  }

  fprintf(stdout, "main calling thread_join()\n");
  for (int i = 0; i < num; i++) {
    thread_join(threads[i]);
  }

  fprintf(stdout, "main calling thread_destroy()\n");
  for (int i = 0; i < num; i++) {
    thread_destroy(threads[i]);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x328, %rsp            # imm = 0x328
movq 0x2c6b(%rip), %r15      # 0x3fc8
movq (%r15), %rcx
leaq 0xcc3(%rip), %rdi       # 0x202a
movl $0x14, %esi
movl $0x1, %edx
callq 0x1160
xorl %r12d, %r12d
leaq -0xa4(%rip), %rbx       # 0x12dc
leaq 0xcb8(%rip), %r14       # 0x203f
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x1476
movq %rax, (%rsp,%r12,8)
incq %r12
cmpq $0x64, %r12
jne 0x1387
movq (%r15), %rcx
leaq 0xc9c(%rip), %rdi       # 0x2047
movl $0x1a, %esi
movl $0x1, %edx
callq 0x1160
xorl %ebx, %ebx
movq (%rsp,%rbx,8), %rdi
callq 0x1535
incq %rbx
cmpq $0x64, %rbx
jne 0x13bc
movq (%r15), %rcx
leaq 0xc8a(%rip), %rdi       # 0x2062
movl $0x1b, %esi
movl $0x1, %edx
callq 0x1160
xorl %ebx, %ebx
movq (%rsp,%rbx,8), %rdi
callq 0x1570
incq %rbx
cmpq $0x64, %rbx
jne 0x13e9
movq (%r15), %rcx
leaq 0xc79(%rip), %rdi       # 0x207e
movl $0x1e, %esi
movl $0x1, %edx
callq 0x1160
xorl %ebx, %ebx
movq (%rsp,%rbx,8), %rdi
callq 0x1584
incq %rbx
cmpq $0x64, %rbx
jne 0x1416
xorl %eax, %eax
addq $0x328, %rsp            # imm = 0x328
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/randyrossi[P]fisher-modem/threadutil/src/threadutil.C
// Function: thread_init(void*)
void thread_init(void* data) {
  thread_t thrd = (thread_t)data;

  // The first time we run, we hold up this thread until signalled by run
  pthread_mutex_lock(&thrd->lock);
  if (thrd->run == 0) {
    pthread_cond_wait(&thrd->cond, &thrd->lock);
  }
  pthread_mutex_unlock(&thrd->lock);

  // Actually call this thread's procedure
  thrd->proc(thrd->arg);

  // Now exit
  pthread_exit(NULL);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x18(%rdi), %r14
movq %r14, %rdi
callq 0x10f0
cmpl $0x0, 0x10(%rbx)
jne 0x1461
leaq 0x40(%rbx), %rdi
movq %r14, %rsi
callq 0x1110
movq %r14, %rdi
callq 0x1050
movq 0x8(%rbx), %rdi
callq *(%rbx)
xorl %edi, %edi
callq 0x1130
// File: /workspace/github_c_makefile_star2_O1/randyrossi[P]fisher-modem/threadutil/src/threadutil.C
// Function: thread_create(void (*)(void*), void*, char*)
thread_t thread_create(thread_proc_t proc, void* arg, char* name) {
  thread_t thrd = (thread_t)malloc(sizeof(thread));

  sprintf(thrd->name, "%s", name);
  thrd->proc = proc;
  thrd->arg = arg;
  thrd->run = 0;
  thrd->waiting = 0;

  if (pthread_cond_init(&thrd->cond, NULL) != 0) {
    fprintf(stderr, "[thread] cond init error\n");
    return NULL;
  }

  if (pthread_mutex_init(&thrd->lock, NULL) != 0) {
    fprintf(stderr, "[thread] mutex init error\n");
    return NULL;
  }

  if (pthread_attr_init(&thrd->attr) != 0) {
    fprintf(stderr, "[thread] attr init error\n");
    return NULL;
  }
  pthread_attr_setdetachstate(&thrd->attr, PTHREAD_CREATE_JOINABLE);

  if (pthread_create(&thrd->threadid, &thrd->attr,
                     (void* (*)(void*))thread_init, thrd) != 0) {
    fprintf(stderr, "[thread] pthread_create error\n");
    return NULL;
  }

  return thrd;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movl $0xc0, %edi
callq 0x10d0
movq %rax, %rbx
leaq 0xb0(%rax), %rdi
movq %r14, %rsi
callq 0x1070
movq %r12, (%rbx)
movq %r15, 0x8(%rbx)
movq $0x0, 0x10(%rbx)
leaq 0x40(%rbx), %rdi
xorl %esi, %esi
callq 0x10a0
testl %eax, %eax
jne 0x1511
leaq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x1100
testl %eax, %eax
jne 0x1518
leaq 0x70(%rbx), %r14
movq %r14, %rdi
callq 0x10b0
testl %eax, %eax
jne 0x151f
movq %r14, %rdi
xorl %esi, %esi
callq 0x10c0
movq %rbx, %rdi
addq $0xa8, %rdi
leaq -0xbf(%rip), %rdx       # 0x143c
movq %r14, %rsi
movq %rbx, %rcx
callq 0x1140
testl %eax, %eax
je 0x1526
callq 0x11d4
jmp 0x1524
callq 0x1180
jmp 0x1524
callq 0x119c
jmp 0x1524
callq 0x11b8
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/randyrossi[P]fisher-modem/threadutil/src/threadutil.C
// Function: thread_run(s_thread*)
void thread_run(thread_t thrd) {
  if (thrd == NULL) {
    return;
  }

  // Wake up the specified thread
  pthread_mutex_lock(&thrd->lock);
  thrd->run = 1;
  pthread_cond_signal(&thrd->cond);
  pthread_mutex_unlock(&thrd->lock);
}

// Assembly:
testq %rdi, %rdi
je 0x156f
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x18(%rdi), %r14
movq %r14, %rdi
callq 0x10f0
movl $0x1, 0x10(%rbx)
addq $0x40, %rbx
movq %rbx, %rdi
callq 0x1030
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1050
retq
// File: /workspace/github_c_makefile_star2_O1/randyrossi[P]fisher-modem/threadutil/src/threadutil.C
// Function: thread_destroy(s_thread*)
void thread_destroy(thread_t thrd) {
  pthread_attr_destroy(&thrd->attr);
  pthread_mutex_destroy(&thrd->lock);
  pthread_cond_destroy(&thrd->cond);
  free(thrd);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
addq $0x70, %rdi
callq 0x1120
leaq 0x18(%rbx), %rdi
callq 0x1080
leaq 0x40(%rbx), %rdi
callq 0x1150
movq %rbx, %rdi
popq %rbx
jmp 0x1090
// File: /workspace/github_c_makefile_star2_O1/randyrossi[P]fisher-modem/threadutil/src/threadutil.C
// Function: thread_wait(s_thread*)
void thread_wait(thread_t thrd) {
  // The current thread will block and waiting will be set to 1 to indicate
  // there is a thread waiting to be notified
  pthread_mutex_lock(&thrd->lock);
  thrd->waiting++;
  pthread_cond_wait(&thrd->cond, &thrd->lock);
  pthread_mutex_unlock(&thrd->lock);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x18(%rdi), %r14
movq %r14, %rdi
callq 0x10f0
incl 0x14(%rbx)
addq $0x40, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1110
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1050
// File: /workspace/github_c_makefile_star2_O1/randyrossi[P]fisher-modem/threadutil/src/threadutil.C
// Function: thread_notify(s_thread*)
void thread_notify(thread_t thrd) {
  // Whatever thread was waiting will be woken up.  If there was no thread
  // waiting, the notification will be lost
  pthread_mutex_lock(&thrd->lock);
  if (thrd->waiting > 0) {
    thrd->waiting--;
    pthread_cond_signal(&thrd->cond);
  }
  pthread_mutex_unlock(&thrd->lock);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x18(%rdi), %rbx
movq %rbx, %rdi
callq 0x10f0
movl 0x14(%r14), %eax
testl %eax, %eax
jle 0x160d
decl %eax
movl %eax, 0x14(%r14)
addq $0x40, %r14
movq %r14, %rdi
callq 0x1030
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1050
// File: /workspace/github_c_makefile_star2_O1/jwang11[P]intel_avx_perf/matrix_int16.c
// Function: init
void init(void) {
  srand(time(0));
  for (int i = 0; i < row; i++) {
    for (int j = 0; j < col; j++) {
      mat[i][j] = (int16_t)(rand() % 32);
    }   
  }
  for (int j = 0; j < col; j++) {
    mutiplier[j] = (int16_t)(rand() % 32);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
xorl %ebx, %ebx
xorl %edi, %edi
callq 0x1070
movl %eax, %edi
callq 0x1060
leaq 0x2ec8(%rip), %r14      # 0x4070
xorl %r15d, %r15d
callq 0x1080
leal 0x1f(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $0xffe0, %ecx           # imm = 0xFFE0
subl %ecx, %eax
movw %ax, (%r14,%r15,2)
incq %r15
cmpq $0x1000, %r15           # imm = 0x1000
jne 0x11ab
incq %rbx
addq $0x2000, %r14           # imm = 0x2000
cmpq $0x40, %rbx
jne 0x11a8
xorl %ebx, %ebx
leaq 0x82e86(%rip), %r14     # 0x84070
callq 0x1080
leal 0x1f(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $0xffe0, %ecx           # imm = 0xFFE0
subl %ecx, %eax
movw %ax, (%rbx,%r14)
addq $0x2, %rbx
cmpq $0x2000, %rbx           # imm = 0x2000
jne 0x11ea
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/jwang11[P]intel_avx_perf/matrix_int16.c
// Function: calc_non
void calc_non(void) {
  for(int j = 0; j < row; j++) {
    int16_t sum = 0;
    int16_t *vec = mat[j];

    for(int i = 0; i < col; i++)
      sum += vec[i] * mutiplier[i];

    result[j] = sum;
  }
}

// Assembly:
leaq 0x2e52(%rip), %rax      # 0x4070
xorl %ecx, %ecx
leaq 0x82e49(%rip), %rdx     # 0x84070
leaq 0x84e42(%rip), %rsi     # 0x86070
vpxor %xmm0, %xmm0, %xmm0
xorl %edi, %edi
vmovdqu64 (%rdi,%rdx), %zmm1
vpmullw (%rax,%rdi), %zmm1, %zmm1
vpaddw %zmm0, %zmm1, %zmm0
addq $0x40, %rdi
cmpq $0x2000, %rdi           # imm = 0x2000
jne 0x1234
vextracti64x4 $0x1, %zmm0, %ymm1
vpaddw %zmm1, %zmm0, %zmm0
vextracti128 $0x1, %ymm0, %xmm1
vpaddw %xmm1, %xmm0, %xmm0
vpshufd $0xee, %xmm0, %xmm1     # xmm1 = xmm0[2,3,2,3]
vpaddw %xmm1, %xmm0, %xmm0
vpshufd $0x55, %xmm0, %xmm1     # xmm1 = xmm0[1,1,1,1]
vpaddw %xmm1, %xmm0, %xmm0
vpsrld $0x10, %xmm0, %xmm1
vpaddw %xmm1, %xmm0, %xmm0
vpextrw $0x0, %xmm0, (%rsi,%rcx,2)
incq %rcx
addq $0x2000, %rax           # imm = 0x2000
cmpq $0x40, %rcx
jne 0x122e
vzeroupper
retq
// File: /workspace/github_c_makefile_star2_O1/jwang11[P]intel_avx_perf/matrix_int16.c
// Function: calc_avx2
void calc_avx2(void) {
  #define VLEN (256/8/sizeof(int16_t))
  const int col_aligned = col - col % VLEN;
  int16_t dst_arr[VLEN];

  __m256i op0, op1, tmp_vec;
  volatile __m256i  tgt;

  for (int i = 0; i < row; i++) {
    int16_t sum = 0;
    tgt = _mm256_setzero_si256();
    for (int j = 0; j < col_aligned; j += VLEN) {
      op0 = _mm256_load_si256((__m256i *)&mutiplier[j]);
      op1 = _mm256_load_si256((__m256i *)&mat[i][j]);
      tmp_vec = _mm256_mullo_epi16(op0, op1);
      tgt = _mm256_add_epi16(tmp_vec, tgt);
    }

    _mm256_store_epi64(&dst_arr, tgt);
    for (int k = 0; k < VLEN; k++)
      sum += dst_arr[k];

    for (int l = col_aligned; l < col; l++)
      sum += mat[i][l] * mutiplier[l];
 
    result[i] = sum;
  }
  #undef VLEN
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
andq $-0x20, %rsp
subq $0x40, %rsp
leaq 0x2dbc(%rip), %rax      # 0x4070
xorl %ecx, %ecx
vxorps %xmm0, %xmm0, %xmm0
leaq 0x82daf(%rip), %rdx     # 0x84070
leaq 0x84da8(%rip), %rsi     # 0x86070
vmovaps %ymm0, (%rsp)
movq $-0x10, %rdi
movq %rdx, %r8
vmovdqa 0x20(%rax,%rdi,2), %ymm1
vpmullw (%r8), %ymm1, %ymm1
vpaddw (%rsp), %ymm1, %ymm1
vmovdqa %ymm1, (%rsp)
addq $0x10, %rdi
addq $0x20, %r8
cmpq $0xff0, %rdi            # imm = 0xFF0
jb 0x12d7
vmovdqa (%rsp), %ymm1
vextracti128 $0x1, %ymm1, %xmm2
vphaddw %xmm1, %xmm2, %xmm1
vphaddw %xmm1, %xmm1, %xmm1
vphaddw %xmm1, %xmm1, %xmm1
vphaddw %xmm1, %xmm1, %xmm1
vpextrw $0x0, %xmm1, (%rsi,%rcx,2)
incq %rcx
addq $0x2000, %rax           # imm = 0x2000
cmpq $0x40, %rcx
jne 0x12c8
movq %rbp, %rsp
popq %rbp
vzeroupper
retq