task_name stringlengths 8 10 | source_code stringlengths 58 1.86k | compiler_asm stringlengths 391 9.46k | object_asm stringlengths 365 18.3k | shared_asm stringlengths 3.88k 22.8k | program_asm stringlengths 4.91k 26.3k |
|---|---|---|---|---|---|
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)) {
... | .arch armv8-a
.file "source.c"
.text
.align 2
.global func0
.type func0, %function
func0:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
sub sp, sp, #1072
.cfi_def_cfa_offset 1088
str xzr, [sp, 1024]
str x0, [sp, 8]
adrp x0, :got... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/000_problem17/code.o: file format elf64-littleaarch64
Disassembly of section .text:
0000000000000000 <func0>:
0: a9bf7bfd stp x29, x30, [sp, #-16]!
4: 910003fd mov x29, sp
8: d110c3ff sub sp, sp, #0x430
c: f90203ff str xzr, [sp, #1024]
... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/000_problem17/code.so: file format elf64-littleaarch64
Disassembly of section .init:
00000000000005c0 <_init>:
5c0: d503201f nop
5c4: a9bf7bfd stp x29, x30, [sp, #-16]!
5c8: 910003fd mov x29, sp
5cc: 94000025 bl 660 <call_weak_fn>
5d0: a8c17bf... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/000_problem17/code.program: file format elf64-littleaarch64
Disassembly of section .init:
00000000000006f0 <_init>:
6f0: d503201f nop
6f4: a9bf7bfd stp x29, x30, [sp, #-16]!
6f8: 910003fd mov x29, sp
6fc: 9400003e bl 7f4 <call_weak_fn>
700: a8... |
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;
} | .arch armv8-a
.file "source.c"
.text
.align 2
.global func0
.type func0, %function
func0:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -48
str x0, [sp, 40]
ldr x0, [sp, 40]
bl strlen
cmp x0, ... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/001_problem81/code.o: file format elf64-littleaarch64
Disassembly of section .text:
0000000000000000 <func0>:
0: a9bc7bfd stp x29, x30, [sp, #-64]!
4: 910003fd mov x29, sp
8: f9000bf3 str x19, [sp, #16]
c: f90017e0 str x0, [sp, #40]
1... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/001_problem81/code.so: file format elf64-littleaarch64
Disassembly of section .init:
0000000000000490 <_init>:
490: d503201f nop
494: a9bf7bfd stp x29, x30, [sp, #-16]!
498: 910003fd mov x29, sp
49c: 94000019 bl 500 <call_weak_fn>
4a0: a8c17bf... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/001_problem81/code.program: file format elf64-littleaarch64
Disassembly of section .init:
00000000000005b8 <_init>:
5b8: d503201f nop
5bc: a9bf7bfd stp x29, x30, [sp, #-16]!
5c0: 910003fd mov x29, sp
5c4: 9400002c bl 674 <call_weak_fn>
5c8: a8... |
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);
... | .arch armv8-a
.file "source.c"
.text
.section .rodata
.align 3
.LC0:
.string "aeiouAEIOU"
.text
.align 2
.global func0
.type func0, %function
func0:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
str x19, [sp, 16]
.cfi_offs... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/002_problem118/code.o: file format elf64-littleaarch64
Disassembly of section .text:
0000000000000000 <func0>:
0: a9b97bfd stp x29, x30, [sp, #-112]!
4: 910003fd mov x29, sp
8: f9000bf3 str x19, [sp, #16]
c: f9001fe0 str x0, [sp, #56]
... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/002_problem118/code.so: file format elf64-littleaarch64
Disassembly of section .init:
00000000000005e8 <_init>:
5e8: d503201f nop
5ec: a9bf7bfd stp x29, x30, [sp, #-16]!
5f0: 910003fd mov x29, sp
5f4: 9400002f bl 6b0 <call_weak_fn>
5f8: a8c17b... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/002_problem118/code.program: file format elf64-littleaarch64
Disassembly of section .init:
0000000000000718 <_init>:
718: d503201f nop
71c: a9bf7bfd stp x29, x30, [sp, #-16]!
720: 910003fd mov x29, sp
724: 94000044 bl 834 <call_weak_fn>
728: a... |
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;
} | .arch armv8-a
.file "source.c"
.text
.align 2
.global func0
.type func0, %function
func0:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str w1, [sp, 4]
str wzr, [sp, 20]
b .L2
.L9:
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 24]
b .L3
.L8:
ldr w0, [sp, 24]
add w0, w0, 1... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/003_problem41/code.o: file format elf64-littleaarch64
Disassembly of section .text:
0000000000000000 <func0>:
0: d10083ff sub sp, sp, #0x20
4: f90007e0 str x0, [sp, #8]
8: b90007e1 str w1, [sp, #4]
c: b90017ff str wzr, [sp, #20]
10: 1... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/003_problem41/code.so: file format elf64-littleaarch64
Disassembly of section .init:
0000000000000410 <_init>:
410: d503201f nop
414: a9bf7bfd stp x29, x30, [sp, #-16]!
418: 910003fd mov x29, sp
41c: 94000015 bl 470 <call_weak_fn>
420: a8c17bf... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/003_problem41/code.program: file format elf64-littleaarch64
Disassembly of section .init:
0000000000000580 <_init>:
580: d503201f nop
584: a9bf7bfd stp x29, x30, [sp, #-16]!
588: 910003fd mov x29, sp
58c: 9400002a bl 634 <call_weak_fn>
590: a8... |
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... | .arch armv8-a
.file "source.c"
.text
.align 2
.global func0
.type func0, %function
func0:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -64
str x0, [sp, 40]
str x1, [sp, 32]
ldr x0, [sp, 40]
b... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/004_problem15/code.o: file format elf64-littleaarch64
Disassembly of section .text:
0000000000000000 <func0>:
0: a9bb7bfd stp x29, x30, [sp, #-80]!
4: 910003fd mov x29, sp
8: f9000bf3 str x19, [sp, #16]
c: f90017e0 str x0, [sp, #40]
1... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/004_problem15/code.so: file format elf64-littleaarch64
Disassembly of section .init:
0000000000000570 <_init>:
570: d503201f nop
574: a9bf7bfd stp x29, x30, [sp, #-16]!
578: 910003fd mov x29, sp
57c: 94000029 bl 620 <call_weak_fn>
580: a8c17bf... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/004_problem15/code.program: file format elf64-littleaarch64
Disassembly of section .init:
00000000000006a0 <_init>:
6a0: d503201f nop
6a4: a9bf7bfd stp x29, x30, [sp, #-16]!
6a8: 910003fd mov x29, sp
6ac: 94000042 bl 7b4 <call_weak_fn>
6b0: a8... |
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;
} | .arch armv8-a
.file "source.c"
.text
.align 2
.global func0
.type func0, %function
func0:
.LFB0:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 24]
str w1, [sp, 20]
str x2, [sp, 8]
str wzr, [sp, 36]
mov w0, 1
str w0, [sp, 40]
str wzr, [sp, 44]
b .L2
.L3:
ldrsw x0, [sp, 44]
lsl x0,... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/005_problem9/code.o: file format elf64-littleaarch64
Disassembly of section .text:
0000000000000000 <func0>:
0: d100c3ff sub sp, sp, #0x30
4: f9000fe0 str x0, [sp, #24]
8: b90017e1 str w1, [sp, #20]
c: f90007e2 str x2, [sp, #8]
10: b9... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/005_problem9/code.so: file format elf64-littleaarch64
Disassembly of section .init:
0000000000000410 <_init>:
410: d503201f nop
414: a9bf7bfd stp x29, x30, [sp, #-16]!
418: 910003fd mov x29, sp
41c: 94000015 bl 470 <call_weak_fn>
420: a8c17bfd... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/005_problem9/code.program: file format elf64-littleaarch64
Disassembly of section .init:
0000000000000580 <_init>:
580: d503201f nop
584: a9bf7bfd stp x29, x30, [sp, #-16]!
588: 910003fd mov x29, sp
58c: 9400002a bl 634 <call_weak_fn>
590: a8c... |
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... | .arch armv8-a
.file "source.c"
.text
.section .rodata
.align 3
.LC0:
.string "aeiouAEIOU"
.text
.align 2
.global func0
.type func0, %function
func0:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
adrp x0, .LC0
... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/006_problem65/code.o: file format elf64-littleaarch64
Disassembly of section .text:
0000000000000000 <func0>:
0: a9bc7bfd stp x29, x30, [sp, #-64]!
4: 910003fd mov x29, sp
8: f9000fe0 str x0, [sp, #24]
c: 90000000 adrp x0, 0 <func0>
1... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/006_problem65/code.so: file format elf64-littleaarch64
Disassembly of section .init:
00000000000004c8 <_init>:
4c8: d503201f nop
4cc: a9bf7bfd stp x29, x30, [sp, #-16]!
4d0: 910003fd mov x29, sp
4d4: 9400001b bl 540 <call_weak_fn>
4d8: a8c17bf... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/006_problem65/code.program: file format elf64-littleaarch64
Disassembly of section .init:
00000000000005f8 <_init>:
5f8: d503201f nop
5fc: a9bf7bfd stp x29, x30, [sp, #-16]!
600: 910003fd mov x29, sp
604: 9400003c bl 6f4 <call_weak_fn>
608: a8... |
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... | .arch armv8-a
.file "source.c"
.text
.align 2
.global func0
.type func0, %function
func0:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str wzr, [sp, 24]
str wzr, [sp, 28]
b .L2
.L7:
ldrsw x0, [sp, 28]
ldr x1, [sp, 8]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 60
bne .L3
ldr... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/007_problem57/code.o: file format elf64-littleaarch64
Disassembly of section .text:
0000000000000000 <func0>:
0: d10083ff sub sp, sp, #0x20
4: f90007e0 str x0, [sp, #8]
8: b9001bff str wzr, [sp, #24]
c: b9001fff str wzr, [sp, #28]
10:... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/007_problem57/code.so: file format elf64-littleaarch64
Disassembly of section .init:
0000000000000410 <_init>:
410: d503201f nop
414: a9bf7bfd stp x29, x30, [sp, #-16]!
418: 910003fd mov x29, sp
41c: 94000015 bl 470 <call_weak_fn>
420: a8c17bf... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/007_problem57/code.program: file format elf64-littleaarch64
Disassembly of section .init:
0000000000000580 <_init>:
580: d503201f nop
584: a9bf7bfd stp x29, x30, [sp, #-16]!
588: 910003fd mov x29, sp
58c: 9400002a bl 634 <call_weak_fn>
590: a8... |
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_... | .arch armv8-a
.file "source.c"
.text
.align 2
.global func0
.type func0, %function
func0:
.LFB0:
.cfi_startproc
sub sp, sp, #64
.cfi_def_cfa_offset 64
str x0, [sp, 8]
str w1, [sp, 4]
str xzr, [sp, 32]
ldr x0, [sp, 8]
ldr d0, [x0]
str d0, [sp, 40]
mov w0, 1
str w0, [sp, 16]
b .L2
.L5:
fmov d0, 1.0e+0
... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/008_problem33/code.o: file format elf64-littleaarch64
Disassembly of section .text:
0000000000000000 <func0>:
0: d10103ff sub sp, sp, #0x40
4: f90007e0 str x0, [sp, #8]
8: b90007e1 str w1, [sp, #4]
c: f90013ff str xzr, [sp, #32]
10: f... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/008_problem33/code.so: file format elf64-littleaarch64
Disassembly of section .init:
0000000000000410 <_init>:
410: d503201f nop
414: a9bf7bfd stp x29, x30, [sp, #-16]!
418: 910003fd mov x29, sp
41c: 94000015 bl 470 <call_weak_fn>
420: a8c17bf... |
/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/008_problem33/code.program: file format elf64-littleaarch64
Disassembly of section .init:
0000000000000580 <_init>:
580: d503201f nop
584: a9bf7bfd stp x29, x30, [sp, #-16]!
588: 910003fd mov x29, sp
58c: 9400002a bl 634 <call_weak_fn>
590: a8... |
problem48 | "#include <stdio.h>\n#include <math.h>\n#include <stdlib.h>\n\nfloat func0(float *l, int size) {\n (...TRUNCATED) | "\t.arch armv8-a\n\t.file\t\"source.c\"\n\t.text\n\t.align\t2\n\t.global\tfunc0\n\t.type\tfunc0, %fu(...TRUNCATED) | "\n/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/009_problem48/code.o: file format(...TRUNCATED) | "\n/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/009_problem48/code.so: file forma(...TRUNCATED) | "\n/home/alexanderpretko/HE/generated_humaneval_arm64_linux/O0/009_problem48/code.program: file (...TRUNCATED) |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- -