task_name stringlengths 8 10 | source_code stringlengths 58 1.86k | compiler_asm stringlengths 608 11.8k | object_asm stringlengths 509 30.4k | shared_asm stringlengths 4.67k 39.1k | program_asm stringlengths 5.79k 40.2k |
|---|---|---|---|---|---|
problem17 | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int func0(const char *str) {
int count = 0;
int char_map[256] = {0};
int index;
for (index = 0; str[index]; index++) {
char ch = tolower((unsigned char)str[index]);
if (char_map[ch] == 0 && isalpha((unsigned char)ch)) {
... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $1072, %rsp
movq %rdi, -1064(%rbp)
movq %fs:40, %rax
movq %rax, -8(%rbp)
xorl %eax, %eax
movl $0, -1048(%rbp)... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/000_problem17/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 81 ec 30 04 00 00 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/000_problem17/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/000_problem17/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem81 | #include <string.h>
#include <stdbool.h>
bool func0(const char* s) {
if (strlen(s) < 3) return false;
for (int i = 2; i < strlen(s); i++)
if (s[i] == s[i-1] || s[i] == s[i-2]) return false;
return true;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
subq $40, %rsp
.cfi_offset 3, -24
movq %rdi, -40(%rbp)
movq -40(%rbp), %rax
movq %rax, %rdi
call strle... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/001_problem81/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 53 pu... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/001_problem81/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/001_problem81/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem118 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
char **func0(const char *s, int n, int *returnSize) {
const char *vowels = "aeiouAEIOU";
char **out = NULL;
int numc = 0, word_count = 0, begin = 0;
size_t length = strlen(s);
char *current = (char *)malloc(length + 1);
... | .file "source.c"
.text
.section .rodata
.LC0:
.string "aeiouAEIOU"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
subq $88, %rsp
.cfi_offset 3, -24
movq %rdi, -72(%rb... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/002_problem118/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 53 p... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/002_problem118/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/002_problem118/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem41 | #include <stdio.h>
#include <stdbool.h>
bool func0(int *l, int size) {
for (int i = 0; i < size; i++)
for (int j = i + 1; j < size; j++)
for (int k = j + 1; k < size; k++)
if (l[i] + l[j] + l[k] == 0) return true;
return false;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movl $0, -12(%rbp)
jmp .L2
.L9:
movl -12(%rbp), %eax
addl $1, %eax
movl... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/003_problem41/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/003_problem41/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/003_problem41/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem15 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
char **func0(const char *str, int *count) {
int len = strlen(str);
char **out = malloc(len * sizeof(char *));
char *current = malloc(len + 1);
current[0] = '\0';
for (int i = 0; i < len; ++i) {
size_t current_len = strlen(curr... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
subq $56, %rsp
.cfi_offset 3, -24
movq %rdi, -56(%rbp)
movq %rsi, -64(%rbp)
movq -56(%rbp), %rax
movq ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/004_problem15/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 53 pu... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/004_problem15/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/004_problem15/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem9 | #include <stdio.h>
void func0(int *numbers, int size, int *result) {
int sum = 0, product = 1;
for (int i = 0; i < size; i++) {
sum += numbers[i];
product *= numbers[i];
}
result[0] = sum;
result[1] = product;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movq %rdx, -40(%rbp)
movl $0, -12(%rbp)
movl $1, -8(%rbp)
movl $0, -4(%r... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/005_problem9/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mov... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/005_problem9/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/005_problem9/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax ... |
problem65 | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int func0(const char *s) {
const char *vowels = "aeiouAEIOU";
int count = 0;
int length = strlen(s);
for (int i = 0; i < length; i++) {
if (strchr(vowels, s[i])) {
count++;
}
}
if (length > 0 && (s[l... | .file "source.c"
.text
.section .rodata
.LC0:
.string "aeiouAEIOU"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -40(%rbp)
leaq .LC0(%rip), %rax
movq ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/006_problem65/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/006_problem65/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/006_problem65/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem57 | #include <stdio.h>
#include <stdbool.h>
#include <string.h>
bool func0(const char *brackets) {
int level = 0;
int i = 0;
while (brackets[i]) {
if (brackets[i] == '<') level++;
if (brackets[i] == '>') level--;
if (level < 0) return false;
i++;
}
if (level != 0) return... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl $0, -8(%rbp)
movl $0, -4(%rbp)
jmp .L2
.L7:
movl -4(%rbp), %eax
movslq %eax, %rdx
movq ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/007_problem57/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/007_problem57/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/007_problem57/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem33 | #include <stdio.h>
#include <math.h>
double func0(const double *xs, int size) {
double ans = 0.0;
double value, driv, x_pow;
int i;
value = xs[0];
for (i = 1; i < size; i++) {
x_pow = 1.0;
for (int j = 0; j < i; j++) {
x_pow *= ans;
}
value += xs[i] * x_... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -56(%rbp)
movl %esi, -60(%rbp)
pxor %xmm0, %xmm0
movsd %xmm0, -32(%rbp)
movq -56(%rbp), %rax
movsd (%ra... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/008_problem33/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d c8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/008_problem33/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/008_problem33/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem48 | #include <stdio.h>
#include <math.h>
#include <stdlib.h>
float func0(float *l, int size) {
for (int i = 0; i < size; i++) {
for (int j = i + 1; j < size; j++) {
if (l[i] > l[j]) {
float temp = l[i];
l[i] = l[j];
l[j] = temp;
}
... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movl $0, -12(%rbp)
jmp .L2
.L7:
movl -12(%rbp), %eax
addl $1, %eax
movl... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/009_problem48/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/009_problem48/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/009_problem48/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem145 | #include <stdio.h>
#include <stdlib.h>
int func0(const char* x, const char* n){
int a, b, c, d, i, j;
char num[101], den[101];
for (i = 0; x[i] != '/'; i++) {
num[i] = x[i];
}
num[i] = '\0';
a = atoi(num);
for (j = 0, i = i + 1; x[i] != '\0'; i++, j++) {
den[j] = x[i];
... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $272, %rsp
movq %rdi, -264(%rbp)
movq %rsi, -272(%rbp)
movq %fs:40, %rax
movq %rax, -8(%rbp)
xorl %eax, %eax
... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/010_problem145/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 81 ec 10 01 00 00 s... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/010_problem145/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/010_problem145/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem117 | #include <stdio.h>
#include <stdlib.h>
void func0(int *arr, int size) {
int count_ones, x, y, temp;
for (int i = 0; i < size; i++) {
for (int j = i + 1; j < size; j++) {
count_ones = 0;
x = arr[i];
y = arr[j];
while (x > 0) {
count_ones +=... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -40(%rbp)
movl %esi, -44(%rbp)
movl $0, -12(%rbp)
jmp .L2
.L11:
movl -12(%rbp), %eax
addl $1, %eax
mov... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/011_problem117/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d d8 m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/011_problem117/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/011_problem117/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem71 | #include <stdio.h>
#include <stdlib.h>
void func0(int *lst, int size, int *out) {
for (int i = 0; i < size - 1; i++) {
for (int j = i + 1; j < size; j++) {
if (lst[i] > lst[j]) {
int temp = lst[i];
lst[i] = lst[j];
lst[j] = temp;
}
... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -40(%rbp)
movl %esi, -44(%rbp)
movq %rdx, -56(%rbp)
movl $0, -24(%rbp)
jmp .L2
.L6:
movl -24(%rbp), %ea... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/012_problem71/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d d8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/012_problem71/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/012_problem71/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem125 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
int func0(const char *date) {
int mm, dd, yy;
if (strlen(date) != 10) return 0;
for (int i = 0; i < 10; i++) {
if (i == 2 || i == 5) {
if (date[i] != '-') return 0;
} else {
if (date[i] < '0' || date[i] > '9... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $64, %rsp
movq %rdi, -56(%rbp)
movq %fs:40, %rax
movq %rax, -8(%rbp)
xorl %eax, %eax
movq -56(%rbp), %rax
mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/013_problem125/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 40 s... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/013_problem125/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/013_problem125/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem54 | #include <stdio.h>
int func0(int x, int y) {
return x + y;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl -4(%rbp), %edx
movl -8(%rbp), %eax
addl %edx, %eax
popq %rbp
.cfi_de... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/014_problem54/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 89 7d fc mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/014_problem54/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/014_problem54/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem26 | #include <stdio.h>
#include <stdlib.h>
int* func0(int n, int* size) {
int* out = malloc(sizeof(int) * 64);
*size = 0;
for (int i = 2; i * i <= n; i++) {
while (n % i == 0) {
n = n / i;
out[(*size)++] = i;
}
}
if (n > 1) {
out[(*size)++] = n;
}
... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $32, %rsp
movl %edi, -20(%rbp)
movq %rsi, -32(%rbp)
movl $256, %edi
call malloc@PLT
movq %rax, -8(%rbp)
movq... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/015_problem26/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 20 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/015_problem26/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/015_problem26/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem109 | #include <stdio.h>
#include <stdlib.h>
int func0(int *n, int size) {
int num = 0;
for (int i = 0; i < size; i++) {
if (n[i] > 0) {
num += 1;
} else {
int sum = 0;
int w = abs(n[i]);
while (w >= 10) {
sum += w % 10;
... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movl $0, -16(%rbp)
movl $0, -12(%rbp)
jmp .L2
.L7:
movl -12(%rbp), %eax
... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/016_problem109/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/016_problem109/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/016_problem109/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem82 | #include <stdio.h>
#include <stdlib.h>
char** func0(float* grades, int size) {
char** out = malloc(size * sizeof(char*));
for (int i = 0; i < size; ++i) {
if (grades[i] >= 3.9999) out[i] = "A+";
else if (grades[i] > 3.7001) out[i] = "A";
else if (grades[i] > 3.3001) out[i] = "A-";
... | .file "source.c"
.text
.section .rodata
.LC1:
.string "A+"
.LC3:
.string "A"
.LC5:
.string "A-"
.LC7:
.string "B+"
.LC9:
.string "B"
.LC11:
.string "B-"
.LC13:
.string "C+"
.LC15:
.string "C"
.LC17:
.string "C-"
.LC19:
.string "D+"
.LC21:
.string "D"
.LC23:
.string "D-"
.LC24:
.string "E"
.text
.globl... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/017_problem82/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 20 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/017_problem82/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/017_problem82/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem37 | #include <stdio.h>
int func0(int n) {
int count = 0;
for (int i = 0; i < n; i++)
if (i % 11 == 0 || i % 13 == 0) {
int q = i;
while (q > 0) {
if (q % 10 == 7) count += 1;
q = q / 10;
}
}
return count;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl %edi, -20(%rbp)
movl $0, -12(%rbp)
movl $0, -8(%rbp)
jmp .L2
.L8:
movl -8(%rbp), %ecx
movslq %ecx, %rax
imul... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/018_problem37/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 89 7d ec mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/018_problem37/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/018_problem37/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem140 | #include <stdio.h>
long long func0(int n) {
long long fact = 1, bfact = 1;
for (int i = 1; i <= n; i++) {
fact = fact * i;
bfact = bfact * fact;
}
return bfact;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl %edi, -36(%rbp)
movq $1, -16(%rbp)
movq $1, -8(%rbp)
movl $1, -20(%rbp)
jmp .L2
.L3:
movl -20(%rbp), %eax
cl... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/019_problem140/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 89 7d dc m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/019_problem140/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/019_problem140/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem38 | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
void func0(float *l, int size, float *out) {
float *even = malloc((size / 2 + 1) * sizeof(float));
int i, j, even_count = 0;
for (i = 0; i < size; i += 2) {
even[even_count++] = l[i];
}
for (i = 0; i < even_count - 1; i++) {
... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $64, %rsp
movq %rdi, -40(%rbp)
movl %esi, -44(%rbp)
movq %rdx, -56(%rbp)
movl -44(%rbp), %eax
movl %eax, %edx... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/020_problem38/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 40 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/020_problem38/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/020_problem38/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem88 | #include <stdio.h>
#include <stdlib.h>
int **func0(int **lst, int lst_size, int *row_sizes, int x, int *return_size) {
int **out = (int **)malloc(100 * sizeof(int *));
int count = 0;
for (int i = 0; i < lst_size; i++) {
for (int j = row_sizes[i] - 1; j >= 0; j--) {
if (lst[i][j] == x) {... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
subq $72, %rsp
.cfi_offset 3, -24
movq %rdi, -56(%rbp)
movl %esi, -60(%rbp)
movq %rdx, -72(%rbp)
movl ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/021_problem88/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 53 pu... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/021_problem88/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/021_problem88/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem28 | #include <stdio.h>
#include <string.h>
void func0(const char* str, char* out) {
int length = strlen(str);
for (int i = 0; i < length; i++) {
char w = str[i];
if (w >= 'a' && w <= 'z') {
w -= 32;
} else if (w >= 'A' && w <= 'Z') {
w += 32;
}
out[i]... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $32, %rsp
movq %rdi, -24(%rbp)
movq %rsi, -32(%rbp)
movq -24(%rbp), %rax
movq %rax, %rdi
call strlen@PLT
mov... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/022_problem28/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 20 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/022_problem28/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/022_problem28/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem155 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
bool func0(const char *a, const char *b) {
int len_a = strlen(a);
int len_b = strlen(b);
char *temp = (char *)malloc(2 * len_b + 1);
for (int i = 0; i < len_b; i++) {
strncpy(temp, b + i, len_b - i);
strncp... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -40(%rbp)
movq %rsi, -48(%rbp)
movq -40(%rbp), %rax
movq %rax, %rdi
call strlen@PLT
mov... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/023_problem155/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 s... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/023_problem155/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/023_problem155/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem133 | #include <stdio.h>
#include <string.h>
int func0(const char *str) {
int count = 0, maxcount = 0;
for (int i = 0; i < strlen(str); i++) {
if (str[i] == '[') count += 1;
if (str[i] == ']') count -= 1;
if (count < 0) count = 0;
if (count > maxcount) maxcount = count;
if (co... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
subq $40, %rsp
.cfi_offset 3, -24
movq %rdi, -40(%rbp)
movl $0, -28(%rbp)
movl $0, -24(%rbp)
movl $0, ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/024_problem133/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 53 p... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/024_problem133/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/024_problem133/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem160 | #include <stdio.h>
void func0(int number, int need, int remaining, int result[2]) {
if (need > remaining) {
result[0] = number + remaining;
result[1] = 0;
} else {
result[0] = number + need;
result[1] = remaining - need;
}
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl %edx, -12(%rbp)
movq %rcx, -24(%rbp)
movl -8(%rbp), %eax
cmpl -12(%rb... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/025_problem160/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 89 7d fc m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/025_problem160/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/025_problem160/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem31 | #include <stdio.h>
#include <stdlib.h>
float* func0(const float* l, int count, int* out_count) {
float* out = (float*)malloc(count * sizeof(float));
*out_count = 0;
for (int i = 0; i < count; i++) {
if (l[i] > 0) {
out[(*out_count)++] = l[i];
}
}
return out;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movq %rdx, -40(%rbp)
movl -28(%rbp), %eax
cltq
salq $2, ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/026_problem31/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/026_problem31/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/026_problem31/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem158 | #include <stdio.h>
#include <math.h>
int func0(float a, float b, float c) {
if (fabs(a*a + b*b - c*c) < 1e-4 || fabs(a*a + c*c - b*b) < 1e-4 || fabs(b*b + c*c - a*a) < 1e-4) return 1;
return 0;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movss %xmm0, -4(%rbp)
movss %xmm1, -8(%rbp)
movss %xmm2, -12(%rbp)
movss -4(%rbp), %xmm0
movaps %xmm0, %xmm1
mulss... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/027_problem158/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: f3 0f 11 45 fc m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/027_problem158/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/027_problem158/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem68 | #include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
int func0(const char *s, int n) {
char num1[10] = "";
char num2[10] = "";
int is12 = 0, j = 0;
for (int i = 0; s[i] != '\0'; i++) {
if (isdigit(s[i])) {
if (is12 == 0) {
num1[j++] = s[i];
} else {... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
subq $72, %rsp
.cfi_offset 3, -24
movq %rdi, -72(%rbp)
movl %esi, -76(%rbp)
movq %fs:40, %rax
movq %ra... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/028_problem68/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 53 pu... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/028_problem68/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/028_problem68/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
char** func0(const char* paren_string, int* group_count) {
int length = strlen(paren_string);
int level = 0;
int capacity = 10;
char** groups = malloc(capacity * sizeof(char*));
char* buffer = malloc(length + 1);
int buffer_index = 0;
... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
subq $72, %rsp
.cfi_offset 3, -24
movq %rdi, -72(%rbp)
movq %rsi, -80(%rbp)
movq -72(%rbp), %rax
movq ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/029_problem2/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 53 pus... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/029_problem2/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/029_problem2/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax ... |
problem69 | #include <stdio.h>
#include <limits.h>
int *func0(int arr[], int length, int output[2]) {
int smallestEven = INT_MAX;
int index = -1;
for (int i = 0; i < length; ++i) {
if (arr[i] % 2 == 0 && (arr[i] < smallestEven || index == -1)) {
smallestEven = arr[i];
index = i;
... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movq %rdx, -40(%rbp)
movl $2147483647, -12(%rbp)
movl $-1, -8(%rbp)
movl... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/030_problem69/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/030_problem69/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/030_problem69/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem45 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
void func0(int x, int base, char *out) {
int index = 0;
char temp[33];
while (x > 0) {
temp[index++] = (x % base) + '0';
x = x / base;
}
int j = 0;
while(index > 0) {
out[j++] = temp[--index];
}
out[j] = ... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $80, %rsp
movl %edi, -68(%rbp)
movl %esi, -72(%rbp)
movq %rdx, -80(%rbp)
movq %fs:40, %rax
movq %rax, -8(%rbp... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/031_problem45/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 50 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/031_problem45/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/031_problem45/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem25 | #include <stdio.h>
int func0(int n) {
for (int i = 2; i * i <= n; i++)
if (n % i == 0) return n / i;
return 1;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl %edi, -20(%rbp)
movl $2, -4(%rbp)
jmp .L2
.L5:
movl -20(%rbp), %eax
cltd
idivl -4(%rbp)
movl %edx, %eax
tes... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/032_problem25/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 89 7d ec mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/032_problem25/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/032_problem25/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem1 | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
int func0(float numbers[], int size, float threshold) {
int i, j;
for (i = 0; i < size; i++)
for (j = i + 1; j < size; j++)
if (fabs(numbers[i] - numbers[j]) < threshold)
return 1;
return 0;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movss %xmm0, -32(%rbp)
movl $0, -8(%rbp)
jmp .L2
.L8:
movl -8(%rbp), %ea... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/033_problem1/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mov... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/033_problem1/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/033_problem1/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax ... |
problem87 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
char* func0(const char* s) {
int len = strlen(s);
char* out = malloc(len + 2);
char current[51];
int out_index = 0, current_index = 0;
for (int i = 0; i <= len; i++) {
if (s[i] == ' ' || s[i] == '\0') {
for (int j = 0;... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
addq $-128, %rsp
movq %rdi, -120(%rbp)
movq %fs:40, %rax
movq %rax, -8(%rbp)
xorl %eax, %eax
movq -120(%rbp), %rax... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/034_problem87/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 c4 80 ad... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/034_problem87/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/034_problem87/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem73 | #include <stdio.h>
#include <stdbool.h>
bool func0(int q[], int size, int w) {
int sum = 0;
for (int i = 0; i < size / 2; i++) {
if (q[i] != q[size - 1 - i]) return false;
sum += q[i] + q[size - 1 - i];
}
if (size % 2 == 1) sum += q[size / 2];
return sum <= w;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movl %edx, -32(%rbp)
movl $0, -8(%rbp)
movl $0, -4(%rbp)
jmp .L2
.L5:
m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/035_problem73/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/035_problem73/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/035_problem73/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem78 | #include <stdio.h>
#include <math.h>
#include <stdlib.h>
int func0(int a) {
for (int i = 0; i * i * i <= abs(a); i++)
if (i * i * i == abs(a)) return 1;
return 0;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl %edi, -20(%rbp)
movl $0, -4(%rbp)
jmp .L2
.L5:
movl -4(%rbp), %eax
imull %eax, %eax
imull -4(%rbp), %eax
mov... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/036_problem78/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 89 7d ec mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/036_problem78/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/036_problem78/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem154 | #include <stdio.h>
#include <string.h>
void func0(const char* class_name, const char** extensions, int ext_count, char* output) {
int max_strength = -1000;
const char* strongest = NULL;
for (int i = 0; i < ext_count; i++) {
const char* extension = extensions[i];
int strength = 0;
fo... | .file "source.c"
.text
.section .rodata
.LC0:
.string "%s.%s"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $80, %rsp
movq %rdi, -56(%rbp)
movq %rsi, -64(%rbp)
movl %edx, ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/037_problem154/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 50 s... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/037_problem154/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/037_problem154/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem89 | #include <stdio.h>
#include <stdlib.h>
void func0(int *array, int size, int **out_array, int *out_size) {
*out_size = size;
if (size == 0) {
*out_array = NULL;
return;
}
*out_array = (int *)malloc(sizeof(int) * size);
if (*out_array == NULL) {
exit(1);
}
for (int i... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $64, %rsp
movq %rdi, -40(%rbp)
movl %esi, -44(%rbp)
movq %rdx, -56(%rbp)
movq %rcx, -64(%rbp)
movq -64(%rbp),... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/038_problem89/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 40 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/038_problem89/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/038_problem89/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem99 | #include <stdio.h>
#include <string.h>
int func0(const char *s) {
const char *uvowel = "AEIOU";
int count = 0;
for (int i = 0; s[i] != '\0' && i * 2 < strlen(s); i++) {
if (strchr(uvowel, s[i * 2]) != NULL) {
count += 1;
}
}
return count;
} | .file "source.c"
.text
.section .rodata
.LC0:
.string "AEIOU"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
subq $40, %rsp
.cfi_offset 3, -24
movq %rdi, -40(%rbp)
l... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/039_problem99/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 53 pu... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/039_problem99/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/039_problem99/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem74 | #include <stdio.h>
int func0(int arr[], int size) {
int out = 0;
for (int i = 0; i < size / 2; i++) {
if (arr[i] != arr[size - 1 - i]) {
out++;
}
}
return out;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movl $0, -8(%rbp)
movl $0, -4(%rbp)
jmp .L2
.L4:
movl -4(%rbp), %eax
cl... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/040_problem74/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/040_problem74/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/040_problem74/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem32 | #include <stdbool.h>
bool func0(long long n) {
if (n < 2) return false;
for (long long i = 2; i * i <= n; i++)
if (n % i == 0) return false;
return true;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
cmpq $1, -24(%rbp)
jg .L2
movl $0, %eax
jmp .L3
.L2:
movq $2, -8(%rbp)
jmp .L4
.L6:
movq -2... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/041_problem32/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/041_problem32/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/041_problem32/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem139 | #include <stdio.h>
int func0(int n) {
if (n % 2 == 0 && n >= 8) return 1;
return 0;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl %edi, -4(%rbp)
movl -4(%rbp), %eax
andl $1, %eax
testl %eax, %eax
jne .L2
cmpl $7, -4(%rbp)
jle .L2
movl $1... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/042_problem139/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 89 7d fc m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/042_problem139/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/042_problem139/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem149 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
char** func0(const char* planet1, const char* planet2, int* returnSize) {
const char* planets[] = {"Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"};
int pos1 = -1, pos2 = -1, m;
for (m = 0; m < 8; m++) {
if (st... | .file "source.c"
.text
.section .rodata
.LC0:
.string "Mercury"
.LC1:
.string "Venus"
.LC2:
.string "Earth"
.LC3:
.string "Mars"
.LC4:
.string "Jupiter"
.LC5:
.string "Saturn"
.LC6:
.string "Uranus"
.LC7:
.string "Neptune"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
p... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/043_problem149/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 81 ec 90 00 00 00 s... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/043_problem149/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/043_problem149/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem3 | #include <stdio.h>
#include <math.h>
float func0(float number) {
return number - (int)number;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movss %xmm0, -4(%rbp)
movss -4(%rbp), %xmm0
cvttss2sil %xmm0, %eax
pxor %xmm1, %xmm1
cvtsi2ssl %eax, %xmm1
movss -... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/044_problem3/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: f3 0f 11 45 fc mov... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/044_problem3/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/044_problem3/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax ... |
problem7 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int* func0(const char* paren_string, int* returnSize) {
int* all_levels = NULL;
int level = 0, max_level = 0, i = 0, count = 0;
char chr;
for (i = 0; paren_string[i] != '\0'; i++) {
chr = paren_string[i];
if (chr == '(') {
... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -40(%rbp)
movq %rsi, -48(%rbp)
movq $0, -8(%rbp)
movl $0, -24(%rbp)
movl $0, -20(%rbp)
... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/045_problem7/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 sub... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/045_problem7/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/045_problem7/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax ... |
problem27 | #include <stdio.h>
#include <stdlib.h>
int* func0(int* numbers, int size, int* new_size) {
int* out = (int*)malloc(size * sizeof(int));
int* has1 = (int*)calloc(size, sizeof(int));
int* has2 = (int*)calloc(size, sizeof(int));
int has1_count = 0;
int has2_count = 0;
int out_count = 0;
for (... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $112, %rsp
movq %rdi, -88(%rbp)
movl %esi, -92(%rbp)
movq %rdx, -104(%rbp)
movl -92(%rbp), %eax
cltq
salq $2... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/046_problem27/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 70 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/046_problem27/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/046_problem27/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem4 | #include <stdio.h>
int func0(int operations[], int size) {
int num = 0;
for (int i = 0; i < size; i++) {
num += operations[i];
if (num < 0) return 1;
}
return 0;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movl $0, -8(%rbp)
movl $0, -4(%rbp)
jmp .L2
.L5:
movl -4(%rbp), %eax
cl... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/047_problem4/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mov... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/047_problem4/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/047_problem4/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax ... |
problem156 | #include <stdio.h>
#include <stdlib.h>
void func0(int num, int *result) {
int even_count = 0, odd_count = 0;
num = abs(num);
do {
int digit = num % 10;
if (digit % 2 == 0) {
even_count++;
} else {
odd_count++;
}
num /= 10;
} while (nu... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl %edi, -20(%rbp)
movq %rsi, -32(%rbp)
movl $0, -12(%rbp)
movl $0, -8(%rbp)
movl -20(%rbp), %eax
movl %eax, %ed... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/048_problem156/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 89 7d ec m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/048_problem156/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/048_problem156/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem148 | #include <stdio.h>
#include <stdlib.h>
int func0(int n) {
int *a = (int *)malloc(n * sizeof(int));
int **sum = (int **)malloc((n + 1) * sizeof(int *));
int **sum2 = (int **)malloc((n + 1) * sizeof(int *));
for (int i = 0; i <= n; i++) {
sum[i] = (int *)calloc(3, sizeof(int));
sum2[i] = ... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
subq $104, %rsp
.cfi_offset 3, -24
movl %edi, -100(%rbp)
movl -100(%rbp), %eax
cltq
salq $2, %rax
mov... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/049_problem148/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 53 p... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/049_problem148/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/049_problem148/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem119 | #include <stdio.h>
#include <string.h>
char *func0(const char *word) {
static char out[2] = {0};
const char *vowels = "AEIOUaeiou";
size_t len = strlen(word);
for (int i = len - 2; i >= 1; i--) {
if (strchr(vowels, word[i]) && !strchr(vowels, word[i + 1]) && !strchr(vowels, word[i - 1])) {... | .file "source.c"
.text
.section .rodata
.LC0:
.string "AEIOUaeiou"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -40(%rbp)
leaq .LC0(%rip), %rax
movq ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/050_problem119/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 s... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/050_problem119/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/050_problem119/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem51 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
void func0(char *s, int encode) {
int shift = encode ? 5 : 21;
size_t len = strlen(s);
for (size_t i = 0; i < len; i++) {
int w = ((s[i] - 'a' + shift) % 26) + 'a';
s[i] = (char)w;
}
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -40(%rbp)
movl %esi, -44(%rbp)
cmpl $0, -44(%rbp)
je .L2
movl $5, %eax
jmp .L3
.L2:
mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/051_problem51/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/051_problem51/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/051_problem51/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem102 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
char** func0(const char* s, int* count) {
int capacity = 10;
char** out = malloc(capacity * sizeof(char*));
char* current = malloc(strlen(s) + 1);
int word_count = 0;
int current_length = 0;
for (int i = 0; s[i]; i++) {
if (s[i... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
subq $56, %rsp
.cfi_offset 3, -24
movq %rdi, -56(%rbp)
movq %rsi, -64(%rbp)
movl $10, -48(%rbp)
movl -... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/052_problem102/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 53 p... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/052_problem102/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/052_problem102/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem29 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
char* func0(char** strings, int count) {
int length = 0;
for (int i = 0; i < count; i++) {
length += strlen(strings[i]);
}
char* out = (char*)malloc(length + 1);
if (!out) {
return NULL;
}
out[0] = '\0';
... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -40(%rbp)
movl %esi, -44(%rbp)
movl $0, -20(%rbp)
movl $0, -16(%rbp)
jmp .L2
.L3:
movl ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/053_problem29/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/053_problem29/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/053_problem29/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem8 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
char **func0(char **strings, int size, const char *substring, int *out_size) {
char **out = NULL;
int count = 0;
for (int i = 0; i < size; i++) {
if (strstr(strings[i], substring) != NULL) {
out = (char **)realloc(out, sizeof(ch... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movq %rdx, -40(%rbp)
movq %rcx, -48(%rbp)
movq $0, -8(%rb... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/054_problem8/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 sub... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/054_problem8/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/054_problem8/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax ... |
problem115 | #include <stdio.h>
long long func0(long long *nums, int size) {
long long current = nums[0];
long long min = nums[0];
for (int i = 1; i < size; i++) {
current = current < 0 ? current + nums[i] : nums[i];
if (current < min) min = current;
}
return min;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -40(%rbp)
movl %esi, -44(%rbp)
movq -40(%rbp), %rax
movq (%rax), %rax
movq %rax, -16(%rbp)
movq -40(%rb... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/055_problem115/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d d8 m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/055_problem115/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/055_problem115/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem137 | #include <stdio.h>
void func0(const int *lst, int size, int result[2]) {
int maxneg = 0;
int minpos = 0;
for (int i = 0; i < size; i++) {
if (lst[i] < 0 && (maxneg == 0 || lst[i] > maxneg)) maxneg = lst[i];
if (lst[i] > 0 && (minpos == 0 || lst[i] < minpos)) minpos = lst[i];
}
resul... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movq %rdx, -40(%rbp)
movl $0, -12(%rbp)
movl $0, -8(%rbp)
movl $0, -4(%r... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/056_problem137/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/056_problem137/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/056_problem137/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem94 | #include <stdio.h>
#include <ctype.h>
#include <string.h>
void func0(const char* message, char* out) {
const char* vowels = "aeiouAEIOU";
int i, j;
for (i = 0; message[i] != '\0'; ++i) {
char w = message[i];
if (islower(w)) {
w = toupper(w);
} else if (isupper(w)) {... | .file "source.c"
.text
.section .rodata
.LC0:
.string "aeiouAEIOU"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -40(%rbp)
movq %rsi, -48(%rbp)
leaq .... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/057_problem94/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/057_problem94/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/057_problem94/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem108 | #include <stdio.h>
#include <stdlib.h>
int* func0(int n) {
int* counts = (int*)malloc(2 * sizeof(int));
counts[0] = 0;
counts[1] = 0;
for (int i = 1; i <= n; i++) {
int reversed = 0, original = i;
int number = i;
while (number != 0) {
reversed = reversed * 10 + num... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movl %edi, -36(%rbp)
movl $8, %edi
call malloc@PLT
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
movl $0... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/058_problem108/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 s... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/058_problem108/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/058_problem108/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem107 | #include <stdio.h>
#include <stdlib.h>
int* func0(int n) {
int* out = (int*)malloc(n * sizeof(int));
int sum = 0, prod = 1;
for (int i = 1; i <= n; i++) {
sum += i;
prod *= i;
if (i % 2 == 0) out[i - 1] = prod;
else out[i - 1] = sum;
}
return out;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movl %edi, -36(%rbp)
movl -36(%rbp), %eax
cltq
salq $2, %rax
movq %rax, %rdi
call malloc@PLT
movq... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/059_problem107/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 s... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/059_problem107/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/059_problem107/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem63 | #include <stdio.h>
void func0(const float *xs, int xs_size, float *out) {
for (int i = 1; i < xs_size; i++) {
out[i - 1] = i * xs[i];
}
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movq %rdx, -40(%rbp)
movl $1, -4(%rbp)
jmp .L2
.L3:
pxor %xmm1, %xmm1
c... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/060_problem63/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/060_problem63/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/060_problem63/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem53 | #include <stdio.h>
#include <stdbool.h>
bool func0(int *l, int size, int t) {
for (int i = 0; i < size; i++)
if (l[i] >= t) return false;
return true;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movl %edx, -32(%rbp)
movl $0, -4(%rbp)
jmp .L2
.L5:
movl -4(%rbp), %eax
... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/061_problem53/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/061_problem53/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/061_problem53/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem122 | #include <stdio.h>
int func0(int* lst, int size) {
int sum = 0;
for (int i = 0; i * 2 < size; i++)
if (lst[i * 2] % 2 == 1) sum += lst[i * 2];
return sum;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movl $0, -8(%rbp)
movl $0, -4(%rbp)
jmp .L2
.L4:
movl -4(%rbp), %eax
ad... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/062_problem122/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/062_problem122/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/062_problem122/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem143 | #include <stdio.h>
int func0(int* lst, int size) {
int sum = 0;
for (int i = 0; i < size; i++) {
if (i % 3 == 0) sum += lst[i] * lst[i];
else if (i % 4 == 0) sum += lst[i] * lst[i] * lst[i];
else sum += lst[i];
}
return sum;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movl $0, -8(%rbp)
movl $0, -4(%rbp)
jmp .L2
.L6:
movl -4(%rbp), %ecx
mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/063_problem143/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/063_problem143/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/063_problem143/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem62 | #include <stdio.h>
#include <stdbool.h>
#include <string.h>
bool func0(const char *brackets) {
int level = 0;
for (int i = 0; i < strlen(brackets); i++) {
if (brackets[i] == '(') level += 1;
if (brackets[i] == ')') level -= 1;
if (level < 0) return false;
}
return level == 0;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
subq $40, %rsp
.cfi_offset 3, -24
movq %rdi, -40(%rbp)
movl $0, -24(%rbp)
movl $0, -20(%rbp)
jmp .L2
.... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/064_problem62/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 53 pu... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/064_problem62/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/064_problem62/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem90 | #include <stdio.h>
#include <string.h>
void func0(const char *s, char *out) {
int i;
for (i = 0; s[i] != '\0'; i++) {
int w = ((int)s[i] - 'a' + 4) % 26 + 'a';
out[i] = (char)w;
}
out[i] = '\0';
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movq %rsi, -32(%rbp)
movl $0, -8(%rbp)
jmp .L2
.L3:
movl -8(%rbp), %eax
movslq %eax, %rdx
mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/065_problem90/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/065_problem90/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/065_problem90/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem132 | #include <stdio.h>
int func0(int n) {
int prod = 1, has_odd = 0, digit;
while (n > 0) {
digit = n % 10;
if (digit % 2 == 1) {
has_odd = 1;
prod *= digit;
}
n /= 10;
}
return has_odd ? prod : 0;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl %edi, -20(%rbp)
movl $1, -12(%rbp)
movl $0, -8(%rbp)
jmp .L2
.L4:
movl -20(%rbp), %edx
movslq %edx, %rax
imu... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/066_problem132/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 89 7d ec m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/066_problem132/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/066_problem132/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem141 | #include <stdio.h>
#include <string.h>
void func0(const char *text, char *out) {
int space_len = 0;
int j = 0;
for (int i = 0; i < strlen(text); i++) {
if (text[i] == ' ') {
space_len++;
} else {
if (space_len == 1) out[j++] = '_';
if (space_len == 2) out... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
subq $40, %rsp
.cfi_offset 3, -24
movq %rdi, -40(%rbp)
movq %rsi, -48(%rbp)
movl $0, -28(%rbp)
movl $0... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/067_problem141/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 53 p... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/067_problem141/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/067_problem141/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem36 | #include <stdio.h>
float func0(float *l, int size) {
float max = -10000;
for (int i = 0; i < size; i++)
if (max < l[i]) max = l[i];
return max;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movss .LC0(%rip), %xmm0
movss %xmm0, -8(%rbp)
movl $0, -4(%rbp)
jmp .L2
... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/068_problem36/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/068_problem36/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/068_problem36/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem127 | #include <stdio.h>
#include <stdbool.h>
bool func0(const int *lst, int lst_size) {
if (lst_size == 0) return true;
for (int i = 1; i < lst_size; i++) {
if (lst[i] < lst[i - 1]) return false;
if (i >= 2 && lst[i] == lst[i - 1] && lst[i] == lst[i - 2]) return false;
}
return true;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
cmpl $0, -28(%rbp)
jne .L2
movl $1, %eax
jmp .L3
.L2:
movl $1, -4(%rbp)... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/069_problem127/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/069_problem127/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/069_problem127/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem44 | #include <stdio.h>
#include <stdbool.h>
bool func0(int *l, int size) {
for (int i = 0; i < size; i++)
for (int j = i + 1; j < size; j++)
if (l[i] + l[j] == 0) return true;
return false;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movl $0, -8(%rbp)
jmp .L2
.L7:
movl -8(%rbp), %eax
addl $1, %eax
movl %... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/070_problem44/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/070_problem44/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/070_problem44/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem34 | #include <stdio.h>
#include <stdlib.h>
void func0(int *l, int size, int *out) {
int *third = malloc((size / 3 + 1) * sizeof(int));
int i, k = 0, third_size = 0;
for (i = 0; i * 3 < size; i++) {
third[i] = l[i * 3];
third_size++;
}
for (i = 0; i < third_size - 1; i++) {
int... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $64, %rsp
movq %rdi, -40(%rbp)
movl %esi, -44(%rbp)
movq %rdx, -56(%rbp)
movl -44(%rbp), %eax
movslq %eax, %r... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/071_problem34/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 40 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/071_problem34/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/071_problem34/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem11 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
char *func0(const char *str) {
int len = strlen(str), i, j;
char *result = (char *)malloc(2 * len + 1);
if (!result) {
return NULL;
}
for (i = 0; i < len; i++) {
int is_palindrome = 1;
for (j = 0; j < (len - i) / 2... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -40(%rbp)
movq -40(%rbp), %rax
movq %rax, %rdi
call strlen@PLT
movl %eax, -12(%rbp)
mov... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/072_problem11/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/072_problem11/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/072_problem11/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem72 | #include <stdio.h>
#include <math.h>
float func0(float a, float b, float c) {
if (a + b <= c || a + c <= b || b + c <= a) return -1;
float s = (a + b + c) / 2;
float area = sqrtf(s * (s - a) * (s - b) * (s - c));
return roundf(area * 100) / 100;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $32, %rsp
movss %xmm0, -20(%rbp)
movss %xmm1, -24(%rbp)
movss %xmm2, -28(%rbp)
movss -20(%rbp), %xmm0
movaps ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/073_problem72/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 20 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/073_problem72/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 b9 2f 00 00 mov 0x2fb9(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/073_problem72/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem150 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
char** func0(char **lst, int lst_size, int *return_size) {
int i, j;
char *temp;
*return_size = 0;
for (i = 0; i < lst_size; ++i) {
if (strlen(lst[i]) % 2 == 0) {
lst[*return_size] = lst[i];
(*return_size)++;
... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $80, %rsp
movq %rdi, -56(%rbp)
movl %esi, -60(%rbp)
movq %rdx, -72(%rbp)
movq -72(%rbp), %rax
movl $0, (%rax)... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/074_problem150/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 50 s... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/074_problem150/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/074_problem150/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem77 | #include <stdio.h>
int func0(int x, int n) {
int p = 1, count = 0;
while (p <= x && count < 100) {
if (p == x) return 1;
p = p * n; count += 1;
}
return 0;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl %edi, -20(%rbp)
movl %esi, -24(%rbp)
movl $1, -8(%rbp)
movl $0, -4(%rbp)
jmp .L2
.L6:
movl -8(%rbp), %eax
cm... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/075_problem77/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 89 7d ec mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/075_problem77/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/075_problem77/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem21 | #include <stdio.h>
#include <math.h>
#include <float.h>
void func0(float numbers[], int size, float out[2]) {
float min_diff = FLT_MAX;
int i, j;
out[0] = numbers[0];
out[1] = numbers[1];
for (i = 0; i < size; i++) {
for (j = i + 1; j < size; j++) {
float diff = fabs(numbers[i... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -40(%rbp)
movl %esi, -44(%rbp)
movq %rdx, -56(%rbp)
movss .LC0(%rip), %xmm0
movss %xmm0, -20(%rbp)
movq... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/076_problem21/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d d8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/076_problem21/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/076_problem21/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem20 | #include <stdio.h>
#include <string.h>
const char* func0(const char* numbers) {
int count[10] = {0};
const char* numto[10] = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};
int index, i, j, k;
static char out[1000];
char current[6];
index = 0;
if (*numbe... | .file "source.c"
.text
.section .rodata
.LC0:
.string "zero"
.LC1:
.string "one"
.LC2:
.string "two"
.LC3:
.string "three"
.LC4:
.string "four"
.LC5:
.string "five"
.LC6:
.string "six"
.LC7:
.string "seven"
.LC8:
.string "eight"
.LC9:
.string "nine"
.text
.globl func0
.type func0, @function
func0:
.LFB0... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/077_problem20/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 81 ec b0 00 00 00 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/077_problem20/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/077_problem20/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem120 | #include <stdio.h>
#include <string.h>
const char *func0(const char *s1, const char *s2) {
int count = 0;
int len1 = strlen(s1);
int len2 = strlen(s2);
int i;
int can = 1;
for (i = 0; i < len1; i++) {
if (s1[i] == '(') count++;
if (s1[i] == ')') count--;
if (count < 0) ... | .file "source.c"
.text
.section .rodata
.LC0:
.string "Yes"
.LC1:
.string "No"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -40(%rbp)
movq %rsi, -48(... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/078_problem120/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 s... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/078_problem120/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/078_problem120/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem151 | #include <stdio.h>
int func0(int n, int x, int y) {
int isp = 1;
if (n < 2) isp = 0;
for (int i = 2; i * i <= n; i++) {
if (n % i == 0) isp = 0;
}
if (isp) return x;
return y;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl %edi, -20(%rbp)
movl %esi, -24(%rbp)
movl %edx, -28(%rbp)
movl $1, -8(%rbp)
cmpl $1, -20(%rbp)
jg .L2
movl $... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/079_problem151/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 89 7d ec m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/079_problem151/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/079_problem151/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem55 | #include <stdio.h>
#include <string.h>
#include <stdbool.h>
bool func0(const char *s0, const char *s1) {
int len0 = strlen(s0), len1 = strlen(s1);
for (int i = 0; i < len0; i++) {
bool found = false;
for (int j = 0; j < len1; j++) {
if (s0[i] == s1[j]) {
found = true... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -40(%rbp)
movq %rsi, -48(%rbp)
movq -40(%rbp), %rax
movq %rax, %rdi
call strlen@PLT
mov... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/080_problem55/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/080_problem55/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/080_problem55/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem136 | #include <stdio.h>
int func0(int *arr, int size) {
int max = -1;
for (int i = 1; i < size; ++i) {
if (arr[i] < arr[i - 1]) max = i;
}
return max;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movl $-1, -8(%rbp)
movl $1, -4(%rbp)
jmp .L2
.L4:
movl -4(%rbp), %eax
c... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/081_problem136/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/081_problem136/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/081_problem136/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem79 | #include <stdio.h>
#include <string.h>
int func0(const char* num) {
const char* key = "2357BD";
int out = 0;
for (int i = 0; i < strlen(num); i++) {
if (strchr(key, num[i])) out += 1;
}
return out;
} | .file "source.c"
.text
.section .rodata
.LC0:
.string "2357BD"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
pushq %rbx
subq $40, %rsp
.cfi_offset 3, -24
movq %rdi, -40(%rbp)
... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/082_problem79/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 53 pu... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/082_problem79/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/082_problem79/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem43 | #include <stdio.h>
void func0(int *l, int size) {
for (int i = 0; i < size; i++)
l[i] += 1;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movl $0, -4(%rbp)
jmp .L2
.L3:
movl -4(%rbp), %eax
cltq
leaq 0(,%rax,4)... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/083_problem43/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/083_problem43/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/083_problem43/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem124 | #include <stdio.h>
#include <stdlib.h>
void func0(int n, int *out, int *size) {
int capacity = 10;
*size = 1;
out[0] = 1;
while (n != 1) {
if (n % 2 == 1) {
if (*size >= capacity) {
capacity *= 2;
out = (int*)realloc(out, capacity * sizeof(int));... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movl %edi, -20(%rbp)
movq %rsi, -32(%rbp)
movq %rdx, -40(%rbp)
movl $10, -16(%rbp)
movq -40(%rbp), ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/084_problem124/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 s... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/084_problem124/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/084_problem124/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem35 | #include <stdio.h>
#include <stdlib.h>
int *func0(int *l, int size, int *out_size) {
int *out = malloc(size * sizeof(int));
int found, out_count = 0, i, j;
for (i = 0; i < size; i++) {
found = 0;
for (j = 0; j < out_count; j++) {
if (l[i] == out[j]) {
found = 1;
... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $64, %rsp
movq %rdi, -40(%rbp)
movl %esi, -44(%rbp)
movq %rdx, -56(%rbp)
movl -44(%rbp), %eax
cltq
salq $2, ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/085_problem35/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 40 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/085_problem35/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/085_problem35/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem49 | #include <stdio.h>
#include <string.h>
#include <stdbool.h>
bool func0(const char *text) {
int len = strlen(text);
for (int i = 0; i < len / 2; i++) {
if (text[i] != text[len - 1 - i]) {
return false;
}
}
return true;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $32, %rsp
movq %rdi, -24(%rbp)
movq -24(%rbp), %rax
movq %rax, %rdi
call strlen@PLT
movl %eax, -4(%rbp)
movl... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/086_problem49/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 20 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/086_problem49/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/086_problem49/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem66 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
char* func0(int x, int shift) {
static char xs[50];
sprintf(xs, "%d", x);
int len = strlen(xs);
if (len < shift) {
for (int i = 0; i < len / 2; i++) {
char temp = xs[i];
xs[i] = xs[len - 1 - i];
xs[l... | .file "source.c"
.text
.section .rodata
.LC0:
.string "%d"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $96, %rsp
movl %edi, -84(%rbp)
movl %esi, -88(%rbp)
movq %fs:40, %... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/087_problem66/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 60 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/087_problem66/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/087_problem66/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem76 | #include <stdio.h>
#include <stdlib.h>
int func0(int a) {
if (a < 2) return 0;
int num = 0;
for (int i = 2; i * i <= a; i++) {
while (a % i == 0) {
a = a / i;
num++;
}
}
if (a > 1) num++;
return num == 3;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl %edi, -20(%rbp)
cmpl $1, -20(%rbp)
jg .L2
movl $0, %eax
jmp .L3
.L2:
movl $0, -8(%rbp)
movl $2, -4(%rbp)
jm... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/088_problem76/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 89 7d ec mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/088_problem76/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/088_problem76/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem84 | #include <stdio.h>
int func0(int n) {
if (n < 1) return 0;
if (n == 1) return 1;
int out = 18;
for (int i = 2; i < n; i++)
out = out * 10;
return out;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl %edi, -20(%rbp)
cmpl $0, -20(%rbp)
jg .L2
movl $0, %eax
jmp .L3
.L2:
cmpl $1, -20(%rbp)
jne .L4
movl $1, %e... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/089_problem84/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 89 7d ec mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/089_problem84/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/089_problem84/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem147 | #include <stdio.h>
#include <stdlib.h>
int func0(int nums[], int size) {
int num = 0;
for (int i = 0; i < size; i++) {
if (nums[i] > 10) {
int first, last;
last = nums[i] % 10;
int n = nums[i];
while (n >= 10) {
n /= 10;
}
... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -40(%rbp)
movl %esi, -44(%rbp)
movl $0, -20(%rbp)
movl $0, -16(%rbp)
jmp .L2
.L6:
movl -16(%rbp), %eax
... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/090_problem147/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d d8 m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/090_problem147/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/090_problem147/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem19 | #include <stdio.h>
#include <string.h>
int func0(const char *str, const char *substring) {
int out = 0;
int str_len = strlen(str);
int sub_len = strlen(substring);
if (str_len == 0) return 0;
for (int i = 0; i <= str_len - sub_len; i++) {
if (strncmp(&str[i], substring, sub_len) == 0)
... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $32, %rsp
movq %rdi, -24(%rbp)
movq %rsi, -32(%rbp)
movl $0, -16(%rbp)
movq -24(%rbp), %rax
movq %rax, %rdi
... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/091_problem19/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 20 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/091_problem19/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/091_problem19/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem162 | #include <stdio.h>
#include <string.h>
#include <ctype.h>
char* func0(char *s){
int nletter = 0;
int length = strlen(s);
for (int i = 0; i < length; i++) {
if (isalpha((unsigned char)s[i])) {
if (isupper((unsigned char)s[i])) s[i] = tolower((unsigned char)s[i]);
else if (isl... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -40(%rbp)
movl $0, -16(%rbp)
movq -40(%rbp), %rax
movq %rax, %rdi
call strlen@PLT
movl ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/092_problem162/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 s... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/092_problem162/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/092_problem162/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem13 | #include <stdio.h>
#include <string.h>
char *func0(char **strings, int count) {
char *out = "";
int longest_length = 0;
for (int i = 0; i < count; i++) {
int current_length = strlen(strings[i]);
if (current_length > longest_length) {
out = strings[i];
longest_length ... | .file "source.c"
.text
.section .rodata
.LC0:
.string ""
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -40(%rbp)
movl %esi, -44(%rbp)
leaq .LC0(%rip),... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/093_problem13/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/093_problem13/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/093_problem13/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem97 | #include <stdio.h>
#include <stdlib.h>
int *func0(int n, int *count) {
int *out = malloc(n * sizeof(int));
*count = 0;
int i, j, isp, k;
for (i = 2; i < n; i++) {
isp = 1;
for (j = 0; j < *count; j++) {
k = out[j];
if (k * k > i) break;
if (i % k == ... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movl %edi, -36(%rbp)
movq %rsi, -48(%rbp)
movl -36(%rbp), %eax
cltq
salq $2, %rax
movq %rax, %rdi
... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/094_problem97/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/094_problem97/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/094_problem97/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem12 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
char *func0(const char *a, const char *b) {
int len_a = strlen(a);
int len_b = strlen(b);
int min_len = len_a < len_b ? len_a : len_b;
char *output = malloc((min_len + 1) * sizeof(char));
if (!output) return NULL;
for (int i = 0; i < m... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $48, %rsp
movq %rdi, -40(%rbp)
movq %rsi, -48(%rbp)
movq -40(%rbp), %rax
movq %rax, %rdi
call strlen@PLT
mov... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/095_problem12/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 83 ec 30 su... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/095_problem12/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/095_problem12/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem112 | #include <stdio.h>
#include <string.h>
void func0(const char* test, int* freq, int* max_count, char* letters) {
int local_freq[26] = {0}; // for 'a' to 'z'
int local_max = 0;
const char* ptr = test;
int idx = 0;
while (*ptr) {
if (*ptr != ' ') {
int letter_index = *ptr - 'a';
... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $176, %rsp
movq %rdi, -152(%rbp)
movq %rsi, -160(%rbp)
movq %rdx, -168(%rbp)
movq %rcx, -176(%rbp)
movq %fs:4... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/096_problem112/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 81 ec b0 00 00 00 s... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/096_problem112/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 c1 2f 00 00 mov 0x2fc1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/096_problem112/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem123 | #include <stdio.h>
int func0(int arr[], int k) {
int sum = 0;
for (int i = 0; i < k; i++)
if (arr[i] >= -99 && arr[i] <= 99)
sum += arr[i];
return sum;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movl $0, -8(%rbp)
movl $0, -4(%rbp)
jmp .L2
.L4:
movl -4(%rbp), %eax
cl... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/097_problem123/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 m... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/097_problem123/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/097_problem123/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%ra... |
problem91 | #include <stdio.h>
#include <limits.h>
int func0(int *lst, int size) {
if (size < 2) return -1;
int first = INT_MAX, second = INT_MAX;
for (int i = 0; i < size; ++i) {
if (lst[i] < first) {
second = first;
first = lst[i];
} else if (lst[i] < second && lst[i] != firs... | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
cmpl $1, -28(%rbp)
jg .L2
movl $-1, %eax
jmp .L3
.L2:
movl $2147483647,... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/098_problem91/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/098_problem91/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/098_problem91/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
problem67 | #include <stdio.h>
#include <string.h>
int func0(const char *s) {
int sum = 0;
for (int i = 0; s[i] != '\0'; i++)
if (s[i] >= 'A' && s[i] <= 'Z')
sum += s[i];
return sum;
} | .file "source.c"
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movq %rdi, -24(%rbp)
movl $0, -8(%rbp)
movl $0, -4(%rbp)
jmp .L2
.L4:
movl -4(%rbp), %eax
movslq %eax, %rdx
movq ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/099_problem67/code.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <func0>:
0: f3 0f 1e fa endbr64
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 48 89 7d e8 mo... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/099_problem67/code.so: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d1 2f 00 00 mov 0x2fd1(%rip),%rax ... |
/home/alexanderpretko/HE/generated_humaneval_x86_linux/O0/099_problem67/code.program: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.