task_name stringlengths 8 10 | source_code stringlengths 58 1.86k | compiler_asm stringlengths 667 8.62k | object_asm stringlengths 642 23.8k | shared_asm stringlengths 3.89k 27.4k | program_asm stringlengths 5.55k 28.7k |
|---|---|---|---|---|---|
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"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
addi sp,sp,-1088
.cfi_def_cfa_offset 1088
sd ra,1080(sp)
sd s0,10... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/000_problem17/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <func0>:
0: bc010113 addi sp,sp,-1088
4: 42113c23 sd ra,1080(sp)
8: 42813823 sd s0,1072(sp)
c: 44010413 ... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/000_problem17/code.so: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000580 <.plt>:
580: 00002397 auipc t2,0x2
584: 41c30333 sub t1,t1,t3
588: a703be03 ld t3,-1424(t2) # 1ff0 <.got.plt>
58c: fd... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/000_problem17/code.program: file format elf64-littleriscv
Disassembly of section .plt:
00000000000006b0 <.plt>:
6b0: 00002397 auipc t2,0x2
6b4: 41c30333 sub t1,t1,t3
6b8: 8e83be03 ld t3,-1816(t2) # 1f98 <.got>
6bc: f... |
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"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
addi sp,sp,-64
.cfi_def_cfa_offset 64
sd ra,56(sp)
sd s0,48(sp)
... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/001_problem81/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <func0>:
0: 7139 addi sp,sp,-64
2: fc06 sd ra,56(sp)
4: f822 sd s0,48(sp)
6: f426 ... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/001_problem81/code.so: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000440 <.plt>:
440: 00002397 auipc t2,0x2
444: 41c30333 sub t1,t1,t3
448: bb03be03 ld t3,-1104(t2) # 1ff0 <.got.plt>
44c: fd... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/001_problem81/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000570 <.plt>:
570: 00002397 auipc t2,0x2
574: 41c30333 sub t1,t1,t3
578: a483be03 ld t3,-1464(t2) # 1fb8 <.got>
57c: f... |
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"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.section .rodata
.align 3
.LC0:
.string "aeiouAEIOU"
.text
.align 1
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
addi ... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/002_problem118/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <func0>:
0: 7159 addi sp,sp,-112
2: f486 sd ra,104(sp)
4: f0a2 sd s0,96(sp)
6: eca6 ... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/002_problem118/code.so: file format elf64-littleriscv
Disassembly of section .plt:
00000000000005a0 <.plt>:
5a0: 00002397 auipc t2,0x2
5a4: 41c30333 sub t1,t1,t3
5a8: a503be03 ld t3,-1456(t2) # 1ff0 <.got.plt>
5ac: f... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/002_problem118/code.program: file format elf64-littleriscv
Disassembly of section .plt:
00000000000006d0 <.plt>:
6d0: 00002397 auipc t2,0x2
6d4: 41c30333 sub t1,t1,t3
6d8: 8b83be03 ld t3,-1864(t2) # 1f88 <.got>
6dc: ... |
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"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
addi sp,sp,-48
.cfi_def_cfa_offset 48
sd s0,40(sp)
.cfi_offset 8,... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/003_problem41/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <func0>:
0: 7179 addi sp,sp,-48
2: f422 sd s0,40(sp)
4: 1800 addi s0,sp,48
6: fca43c23 ... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/003_problem41/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c0 <deregister_tm_clones>:
3c0: 1141 addi sp,sp,-16
3c2: e422 sd s0,8(sp)
3c4: 0800 addi s0,sp,16
3c6... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/003_problem41/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.got>
54c: f... |
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"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl func0
.type func0, @function
func0:
.LFB6:
.cfi_startproc
addi sp,sp,-80
.cfi_def_cfa_offset 80
sd ra,72(sp)
sd s0,64(sp)
... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/004_problem15/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <func0>:
0: 715d addi sp,sp,-80
2: e486 sd ra,72(sp)
4: e0a2 sd s0,64(sp)
6: fc26 ... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/004_problem15/code.so: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000520 <.plt>:
520: 00002397 auipc t2,0x2
524: 41c30333 sub t1,t1,t3
528: ad03be03 ld t3,-1328(t2) # 1ff0 <.got.plt>
52c: fd... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/004_problem15/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000660 <.plt>:
660: 00002397 auipc t2,0x2
664: 41c30333 sub t1,t1,t3
668: 9383be03 ld t3,-1736(t2) # 1f98 <.got>
66c: f... |
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"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
addi sp,sp,-64
.cfi_def_cfa_offset 64
sd s0,56(sp)
.cfi_offset 8,... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/005_problem9/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <func0>:
0: 7139 addi sp,sp,-64
2: fc22 sd s0,56(sp)
4: 0080 addi s0,sp,64
6: fca43c23 ... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/005_problem9/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c0 <deregister_tm_clones>:
3c0: 1141 addi sp,sp,-16
3c2: e422 sd s0,8(sp)
3c4: 0800 addi s0,sp,16
3c6:... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/005_problem9/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.got>
54c: fd... |
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"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.section .rodata
.align 3
.LC0:
.string "aeiouAEIOU"
.text
.align 1
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
addi ... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/006_problem65/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <func0>:
0: 7139 addi sp,sp,-64
2: fc06 sd ra,56(sp)
4: f822 sd s0,48(sp)
6: 0080 ... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/006_problem65/code.so: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000470 <.plt>:
470: 00002397 auipc t2,0x2
474: 41c30333 sub t1,t1,t3
478: b803be03 ld t3,-1152(t2) # 1ff0 <.got.plt>
47c: fd... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/006_problem65/code.program: file format elf64-littleriscv
Disassembly of section .plt:
00000000000005b0 <.plt>:
5b0: 00002397 auipc t2,0x2
5b4: 41c30333 sub t1,t1,t3
5b8: a003be03 ld t3,-1536(t2) # 1fb0 <.got>
5bc: f... |
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"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
addi sp,sp,-48
.cfi_def_cfa_offset 48
sd s0,40(sp)
.cfi_offset 8,... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/007_problem57/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <func0>:
0: 7179 addi sp,sp,-48
2: f422 sd s0,40(sp)
4: 1800 addi s0,sp,48
6: fca43c23 ... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/007_problem57/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c0 <deregister_tm_clones>:
3c0: 1141 addi sp,sp,-16
3c2: e422 sd s0,8(sp)
3c4: 0800 addi s0,sp,16
3c6... |
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/007_problem57/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.got>
54c: f... |
problem33 | "#include <stdio.h>\n#include <math.h>\n\ndouble func0(const double *xs, int size) {\n double ans(...TRUNCATED) | "\t.file\t\"source.c\"\n\t.option pic\n\t.attribute arch, \"rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2(...TRUNCATED) | "\n/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/008_problem33/code.o: file form(...TRUNCATED) | "\n/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/008_problem33/code.so: file for(...TRUNCATED) | "\n/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/008_problem33/code.program: fil(...TRUNCATED) |
problem48 | "#include <stdio.h>\n#include <math.h>\n#include <stdlib.h>\n\nfloat func0(float *l, int size) {\n (...TRUNCATED) | "\t.file\t\"source.c\"\n\t.option pic\n\t.attribute arch, \"rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2(...TRUNCATED) | "\n/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/009_problem48/code.o: file form(...TRUNCATED) | "\n/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/009_problem48/code.so: file for(...TRUNCATED) | "\n/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/009_problem48/code.program: fil(...TRUNCATED) |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 38