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> #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" .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,-80 .cfi_def_cfa_offset 80 sd s0,72(sp) .cfi_offset 8,...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/008_problem33/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 715d addi sp,sp,-80 2: e4a2 sd s0,72(sp) 4: 0880 addi s0,sp,80 6: faa43c23 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/008_problem33/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/008_problem33/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...
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" .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,-48 .cfi_def_cfa_offset 48 sd s0,40(sp) .cfi_offset 8,...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/009_problem48/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/009_problem48/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/009_problem48/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...
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" .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,-272 .cfi_def_cfa_offset 272 sd ra,264(sp) sd s0,256(s...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/010_problem145/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 716d addi sp,sp,-272 2: e606 sd ra,264(sp) 4: e222 sd s0,256(sp) 6: 0a00 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/010_problem145/code.so: file format elf64-littleriscv Disassembly of section .plt: 0000000000000500 <.plt>: 500: 00002397 auipc t2,0x2 504: 41c30333 sub t1,t1,t3 508: af03be03 ld t3,-1296(t2) # 1ff0 <.got.plt> 50c: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/010_problem145/code.program: file format elf64-littleriscv Disassembly of section .plt: 0000000000000630 <.plt>: 630: 00002397 auipc t2,0x2 634: 41c30333 sub t1,t1,t3 638: 9783be03 ld t3,-1672(t2) # 1fa8 <.got> 63c: ...
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" .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,-64 .cfi_def_cfa_offset 64 sd s0,56(sp) .cfi_offset 8,...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/011_problem117/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: fca43423 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/011_problem117/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/011_problem117/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: ...
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" .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 s0,72(sp) .cfi_offset 8,...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/012_problem71/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 715d addi sp,sp,-80 2: e4a2 sd s0,72(sp) 4: 0880 addi s0,sp,80 6: fca43423 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/012_problem71/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/012_problem71/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...
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" .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/013_problem125/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: 0880 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/013_problem125/code.so: file format elf64-littleriscv Disassembly of section .plt: 0000000000000530 <.plt>: 530: 00002397 auipc t2,0x2 534: 41c30333 sub t1,t1,t3 538: ac03be03 ld t3,-1344(t2) # 1ff0 <.got.plt> 53c: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/013_problem125/code.program: file format elf64-littleriscv Disassembly of section .plt: 0000000000000670 <.plt>: 670: 00002397 auipc t2,0x2 674: 41c30333 sub t1,t1,t3 678: 9303be03 ld t3,-1744(t2) # 1fa0 <.got> 67c: ...
problem54
#include <stdio.h> int func0(int x, int y) { return x + y; }
.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,-32 .cfi_def_cfa_offset 32 sd s0,24(sp) .cfi_offset 8,...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/014_problem54/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 1101 addi sp,sp,-32 2: ec22 sd s0,24(sp) 4: 1000 addi s0,sp,32 6: 87aa ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/014_problem54/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/014_problem54/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...
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" .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,-48 .cfi_def_cfa_offset 48 sd ra,40(sp) sd s0,32(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/015_problem26/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 7179 addi sp,sp,-48 2: f406 sd ra,40(sp) 4: f022 sd s0,32(sp) 6: 1800 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/015_problem26/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/015_problem26/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...
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" .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,-48 .cfi_def_cfa_offset 48 sd s0,40(sp) .cfi_offset 8,...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/016_problem109/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/016_problem109/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/016_problem109/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: ...
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" .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 .LC1: .string "A+" .align 3 .LC3: .string "A" .align 3 .LC5: .string "A-" .align 3 .LC7: .string "B+" .align 3 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/017_problem82/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 7179 addi sp,sp,-48 2: f406 sd ra,40(sp) 4: f022 sd s0,32(sp) 6: 1800 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/017_problem82/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/017_problem82/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...
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" .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/018_problem37/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: 87aa ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/018_problem37/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/018_problem37/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...
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" .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/019_problem140/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: 87aa ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/019_problem140/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/019_problem140/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: ...
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" .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/020_problem38/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: 0880 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/020_problem38/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/020_problem38/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...
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" .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,-96 .cfi_def_cfa_offset 96 sd ra,88(sp) sd s0,80(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/021_problem88/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 711d addi sp,sp,-96 2: ec86 sd ra,88(sp) 4: e8a2 sd s0,80(sp) 6: e4a6 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/021_problem88/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/021_problem88/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...
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" .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 ra,40(sp) sd s0,32(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/022_problem28/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 7179 addi sp,sp,-48 2: f406 sd ra,40(sp) 4: f022 sd s0,32(sp) 6: 1800 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/022_problem28/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/022_problem28/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...
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" .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,-64 .cfi_def_cfa_offset 64 sd ra,56(sp) sd s0,48(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/023_problem155/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/023_problem155/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: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/023_problem155/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: ...
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" .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/024_problem133/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/024_problem133/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: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/024_problem133/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: ...
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" .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/025_problem160/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: 87aa ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/025_problem160/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/025_problem160/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: ...
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" .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,-64 .cfi_def_cfa_offset 64 sd ra,56(sp) sd s0,48(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/026_problem31/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/026_problem31/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/026_problem31/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...
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" .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,-32 .cfi_def_cfa_offset 32 sd s0,24(sp) .cfi_offset 8,...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/027_problem158/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 1101 addi sp,sp,-32 2: ec22 sd s0,24(sp) 4: 1000 addi s0,sp,32 6: fea42627 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/027_problem158/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/027_problem158/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: ...
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" .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,-112 .cfi_def_cfa_offset 112 sd ra,104(sp) sd s0,96(sp...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/028_problem68/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/028_problem68/code.so: file format elf64-littleriscv Disassembly of section .plt: 0000000000000540 <.plt>: 540: 00002397 auipc t2,0x2 544: 41c30333 sub t1,t1,t3 548: ab03be03 ld t3,-1360(t2) # 1ff0 <.got.plt> 54c: fd...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/028_problem68/code.program: file format elf64-littleriscv Disassembly of section .plt: 0000000000000670 <.plt>: 670: 00002397 auipc t2,0x2 674: 41c30333 sub t1,t1,t3 678: 9303be03 ld t3,-1744(t2) # 1fa0 <.got> 67c: f...
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" .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,-96 .cfi_def_cfa_offset 96 sd ra,88(sp) sd s0,80(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/029_problem2/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 711d addi sp,sp,-96 2: ec86 sd ra,88(sp) 4: e8a2 sd s0,80(sp) 6: e4a6 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/029_problem2/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: fd4...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/029_problem2/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: fd...
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" .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/030_problem69/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/030_problem69/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/030_problem69/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...
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" .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,-96 .cfi_def_cfa_offset 96 sd ra,88(sp) sd s0,80(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/031_problem45/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 711d addi sp,sp,-96 2: ec86 sd ra,88(sp) 4: e8a2 sd s0,80(sp) 6: 1080 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/031_problem45/code.so: file format elf64-littleriscv Disassembly of section .plt: 00000000000004c0 <.plt>: 4c0: 00002397 auipc t2,0x2 4c4: 41c30333 sub t1,t1,t3 4c8: b303be03 ld t3,-1232(t2) # 1ff0 <.got.plt> 4cc: fd...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/031_problem45/code.program: file format elf64-littleriscv Disassembly of section .plt: 0000000000000600 <.plt>: 600: 00002397 auipc t2,0x2 604: 41c30333 sub t1,t1,t3 608: 9b03be03 ld t3,-1616(t2) # 1fb0 <.got> 60c: f...
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" .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/032_problem25/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: 87aa ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/032_problem25/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/032_problem25/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...
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" .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,-48 .cfi_def_cfa_offset 48 sd s0,40(sp) .cfi_offset 8,...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/033_problem1/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/033_problem1/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/033_problem1/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...
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" .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,-144 .cfi_def_cfa_offset 144 sd ra,136(sp) sd s0,128(s...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/034_problem87/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 7175 addi sp,sp,-144 2: e506 sd ra,136(sp) 4: e122 sd s0,128(sp) 6: 0900 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/034_problem87/code.so: file format elf64-littleriscv Disassembly of section .plt: 0000000000000540 <.plt>: 540: 00002397 auipc t2,0x2 544: 41c30333 sub t1,t1,t3 548: ab03be03 ld t3,-1360(t2) # 1ff0 <.got.plt> 54c: fd...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/034_problem87/code.program: file format elf64-littleriscv Disassembly of section .plt: 0000000000000670 <.plt>: 670: 00002397 auipc t2,0x2 674: 41c30333 sub t1,t1,t3 678: 9303be03 ld t3,-1744(t2) # 1fa0 <.got> 67c: f...
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" .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/035_problem73/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/035_problem73/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/035_problem73/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...
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" .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,-48 .cfi_def_cfa_offset 48 sd s0,40(sp) .cfi_offset 8,...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/036_problem78/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: 87aa ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/036_problem78/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/036_problem78/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...
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" .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 "%s.%s" .text .align 1 .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc addi sp,sp...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/037_problem154/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 711d addi sp,sp,-96 2: ec86 sd ra,88(sp) 4: e8a2 sd s0,80(sp) 6: 1080 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/037_problem154/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: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/037_problem154/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: ...
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" .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/038_problem89/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: 0880 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/038_problem89/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/038_problem89/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...
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" .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 "AEIOU" .text .align 1 .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc addi sp,sp...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/039_problem99/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/039_problem99/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/039_problem99/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...
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" .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/040_problem74/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/040_problem74/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/040_problem74/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...
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" .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/041_problem32/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/041_problem32/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/041_problem32/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...
problem139
#include <stdio.h> int func0(int n) { if (n % 2 == 0 && n >= 8) return 1; return 0; }
.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,-32 .cfi_def_cfa_offset 32 sd s0,24(sp) .cfi_offset 8,...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/042_problem139/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 1101 addi sp,sp,-32 2: ec22 sd s0,24(sp) 4: 1000 addi s0,sp,32 6: 87aa ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/042_problem139/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/042_problem139/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: ...
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" .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 "Mercury" .align 3 .LC1: .string "Venus" .align 3 .LC2: .string "Earth" .align 3 .LC3: .string "Ma...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/043_problem149/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 7175 addi sp,sp,-144 2: e506 sd ra,136(sp) 4: e122 sd s0,128(sp) 6: 0900 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/043_problem149/code.so: file format elf64-littleriscv Disassembly of section .plt: 0000000000000600 <.plt>: 600: 00002397 auipc t2,0x2 604: 41c30333 sub t1,t1,t3 608: 9f03be03 ld t3,-1552(t2) # 1ff0 <.got.plt> 60c: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/043_problem149/code.program: file format elf64-littleriscv Disassembly of section .plt: 0000000000000730 <.plt>: 730: 00002397 auipc t2,0x2 734: 41c30333 sub t1,t1,t3 738: 8703be03 ld t3,-1936(t2) # 1fa0 <.got> 73c: ...
problem3
#include <stdio.h> #include <math.h> float func0(float number) { return number - (int)number; }
.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,-32 .cfi_def_cfa_offset 32 sd s0,24(sp) .cfi_offset 8,...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/044_problem3/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 1101 addi sp,sp,-32 2: ec22 sd s0,24(sp) 4: 1000 addi s0,sp,32 6: fea42627 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/044_problem3/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/044_problem3/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...
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" .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,-64 .cfi_def_cfa_offset 64 sd ra,56(sp) sd s0,48(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/045_problem7/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/045_problem7/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: fd4...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/045_problem7/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: fd...
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" .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,-128 .cfi_def_cfa_offset 128 sd ra,120(sp) sd s0,112(s...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/046_problem27/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 7119 addi sp,sp,-128 2: fc86 sd ra,120(sp) 4: f8a2 sd s0,112(sp) 6: 0100 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/046_problem27/code.so: file format elf64-littleriscv Disassembly of section .plt: 00000000000004b0 <.plt>: 4b0: 00002397 auipc t2,0x2 4b4: 41c30333 sub t1,t1,t3 4b8: b403be03 ld t3,-1216(t2) # 1ff0 <.got.plt> 4bc: fd...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/046_problem27/code.program: file format elf64-littleriscv Disassembly of section .plt: 00000000000005e0 <.plt>: 5e0: 00002397 auipc t2,0x2 5e4: 41c30333 sub t1,t1,t3 5e8: 9c83be03 ld t3,-1592(t2) # 1fa8 <.got> 5ec: f...
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" .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/047_problem4/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/047_problem4/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/047_problem4/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...
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" .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,-48 .cfi_def_cfa_offset 48 sd s0,40(sp) .cfi_offset 8,...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/048_problem156/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: 87aa ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/048_problem156/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/048_problem156/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: ...
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" .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,-128 .cfi_def_cfa_offset 128 sd ra,120(sp) sd s0,112(s...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/049_problem148/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 7119 addi sp,sp,-128 2: fc86 sd ra,120(sp) 4: f8a2 sd s0,112(sp) 6: f4a6 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/049_problem148/code.so: file format elf64-littleriscv Disassembly of section .plt: 00000000000004b0 <.plt>: 4b0: 00002397 auipc t2,0x2 4b4: 41c30333 sub t1,t1,t3 4b8: b403be03 ld t3,-1216(t2) # 1ff0 <.got.plt> 4bc: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/049_problem148/code.program: file format elf64-littleriscv Disassembly of section .plt: 00000000000005e0 <.plt>: 5e0: 00002397 auipc t2,0x2 5e4: 41c30333 sub t1,t1,t3 5e8: 9c83be03 ld t3,-1592(t2) # 1fa8 <.got> 5ec: ...
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" .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/050_problem119/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/050_problem119/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: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/050_problem119/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: ...
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" .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,-64 .cfi_def_cfa_offset 64 sd ra,56(sp) sd s0,48(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/051_problem51/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/051_problem51/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/051_problem51/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...
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" .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/052_problem102/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/052_problem102/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: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/052_problem102/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: ...
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" .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,-64 .cfi_def_cfa_offset 64 sd ra,56(sp) sd s0,48(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/053_problem29/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/053_problem29/code.so: file format elf64-littleriscv Disassembly of section .plt: 00000000000004b0 <.plt>: 4b0: 00002397 auipc t2,0x2 4b4: 41c30333 sub t1,t1,t3 4b8: b403be03 ld t3,-1216(t2) # 1ff0 <.got.plt> 4bc: fd...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/053_problem29/code.program: file format elf64-littleriscv Disassembly of section .plt: 00000000000005f0 <.plt>: 5f0: 00002397 auipc t2,0x2 5f4: 41c30333 sub t1,t1,t3 5f8: 9b83be03 ld t3,-1608(t2) # 1fa8 <.got> 5fc: f...
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" .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,-64 .cfi_def_cfa_offset 64 sd ra,56(sp) sd s0,48(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/054_problem8/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/054_problem8/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: fd4...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/054_problem8/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: fd...
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" .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/055_problem115/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: fca43423 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/055_problem115/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/055_problem115/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: ...
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" .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/056_problem137/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/056_problem137/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/056_problem137/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: ...
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" .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/057_problem94/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/057_problem94/code.so: file format elf64-littleriscv Disassembly of section .plt: 00000000000004c0 <.plt>: 4c0: 00002397 auipc t2,0x2 4c4: 41c30333 sub t1,t1,t3 4c8: b303be03 ld t3,-1232(t2) # 1ff0 <.got.plt> 4cc: fd...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/057_problem94/code.program: file format elf64-littleriscv Disassembly of section .plt: 00000000000005f0 <.plt>: 5f0: 00002397 auipc t2,0x2 5f4: 41c30333 sub t1,t1,t3 5f8: 9b83be03 ld t3,-1608(t2) # 1fa8 <.got> 5fc: f...
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" .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,-64 .cfi_def_cfa_offset 64 sd ra,56(sp) sd s0,48(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/058_problem108/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/058_problem108/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: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/058_problem108/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: ...
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" .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,-64 .cfi_def_cfa_offset 64 sd ra,56(sp) sd s0,48(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/059_problem107/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/059_problem107/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: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/059_problem107/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: ...
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" .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/060_problem63/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/060_problem63/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/060_problem63/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...
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" .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/061_problem53/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/061_problem53/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/061_problem53/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...
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" .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/062_problem122/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/062_problem122/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/062_problem122/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: ...
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" .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/063_problem143/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/063_problem143/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/063_problem143/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: ...
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" .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/064_problem62/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/064_problem62/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/064_problem62/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...
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" .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/065_problem90/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/065_problem90/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/065_problem90/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...
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" .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/066_problem132/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: 87aa ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/066_problem132/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/066_problem132/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: ...
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" .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/067_problem141/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/067_problem141/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: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/067_problem141/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: ...
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" .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/068_problem36/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/068_problem36/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/068_problem36/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...
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" .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/069_problem127/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/069_problem127/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/069_problem127/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: ...
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" .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/070_problem44/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/070_problem44/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/070_problem44/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...
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" .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/071_problem34/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: 0880 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/071_problem34/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/071_problem34/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...
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" .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,-64 .cfi_def_cfa_offset 64 sd ra,56(sp) sd s0,48(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/072_problem11/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/072_problem11/code.so: file format elf64-littleriscv Disassembly of section .plt: 00000000000004b0 <.plt>: 4b0: 00002397 auipc t2,0x2 4b4: 41c30333 sub t1,t1,t3 4b8: b403be03 ld t3,-1216(t2) # 1ff0 <.got.plt> 4bc: fd...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/072_problem11/code.program: file format elf64-littleriscv Disassembly of section .plt: 00000000000005f0 <.plt>: 5f0: 00002397 auipc t2,0x2 5f4: 41c30333 sub t1,t1,t3 5f8: 9b83be03 ld t3,-1608(t2) # 1fa8 <.got> 5fc: f...
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" .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 ra,40(sp) sd s0,32(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/073_problem72/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 7179 addi sp,sp,-48 2: f406 sd ra,40(sp) 4: f022 sd s0,32(sp) 6: 1800 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/073_problem72/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/073_problem72/code.program: file format elf64-littleriscv Disassembly of section .plt: 00000000000005e0 <.plt>: 5e0: 00002397 auipc t2,0x2 5e4: 41c30333 sub t1,t1,t3 5e8: 9d03be03 ld t3,-1584(t2) # 1fb0 <.got> 5ec: f...
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" .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,-96 .cfi_def_cfa_offset 96 sd ra,88(sp) sd s0,80(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/074_problem150/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 711d addi sp,sp,-96 2: ec86 sd ra,88(sp) 4: e8a2 sd s0,80(sp) 6: 1080 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/074_problem150/code.so: file format elf64-littleriscv Disassembly of section .plt: 00000000000004b0 <.plt>: 4b0: 00002397 auipc t2,0x2 4b4: 41c30333 sub t1,t1,t3 4b8: b403be03 ld t3,-1216(t2) # 1ff0 <.got.plt> 4bc: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/074_problem150/code.program: file format elf64-littleriscv Disassembly of section .plt: 00000000000005f0 <.plt>: 5f0: 00002397 auipc t2,0x2 5f4: 41c30333 sub t1,t1,t3 5f8: 9b83be03 ld t3,-1608(t2) # 1fa8 <.got> 5fc: ...
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" .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/075_problem77/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: 87aa ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/075_problem77/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/075_problem77/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...
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" .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,-80 .cfi_def_cfa_offset 80 sd s0,72(sp) .cfi_offset 8,...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/076_problem21/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 715d addi sp,sp,-80 2: e4a2 sd s0,72(sp) 4: 0880 addi s0,sp,80 6: fca43423 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/076_problem21/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/076_problem21/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...
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" .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 "zero" .align 3 .LC1: .string "one" .align 3 .LC2: .string "two" .align 3 .LC3: .string "three" ....
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/077_problem20/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 7131 addi sp,sp,-192 2: fd06 sd ra,184(sp) 4: f922 sd s0,176(sp) 6: 0180 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/077_problem20/code.so: file format elf64-littleriscv Disassembly of section .plt: 00000000000005f0 <.plt>: 5f0: 00002397 auipc t2,0x2 5f4: 41c30333 sub t1,t1,t3 5f8: a003be03 ld t3,-1536(t2) # 1ff0 <.got.plt> 5fc: fd...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/077_problem20/code.program: file format elf64-littleriscv Disassembly of section .plt: 0000000000000730 <.plt>: 730: 00002397 auipc t2,0x2 734: 41c30333 sub t1,t1,t3 738: 8783be03 ld t3,-1928(t2) # 1fa8 <.got> 73c: f...
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" .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 "Yes" .align 3 .LC1: .string "No" .text .align 1 .globl func0 .type func0, @function func0: .LFB0:...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/078_problem120/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/078_problem120/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: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/078_problem120/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: ...
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" .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/079_problem151/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: 87aa ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/079_problem151/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/079_problem151/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: ...
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" .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/080_problem55/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/080_problem55/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/080_problem55/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...
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" .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/081_problem136/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/081_problem136/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/081_problem136/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: ...
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" .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 "2357BD" .text .align 1 .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc addi sp,s...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/082_problem79/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/082_problem79/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/082_problem79/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...
problem43
#include <stdio.h> void func0(int *l, int size) { for (int i = 0; i < size; i++) l[i] += 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 .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/083_problem43/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/083_problem43/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/083_problem43/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...
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" .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,-64 .cfi_def_cfa_offset 64 sd ra,56(sp) sd s0,48(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/084_problem124/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/084_problem124/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: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/084_problem124/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: ...
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" .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/085_problem35/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: 0880 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/085_problem35/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/085_problem35/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...
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" .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 ra,40(sp) sd s0,32(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/086_problem49/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 7179 addi sp,sp,-48 2: f406 sd ra,40(sp) 4: f022 sd s0,32(sp) 6: 1800 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/086_problem49/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/086_problem49/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...
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" .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 "%d" .text .align 1 .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc addi sp,sp,-1...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/087_problem66/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: 1880 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/087_problem66/code.so: file format elf64-littleriscv Disassembly of section .plt: 00000000000005b0 <.plt>: 5b0: 00002397 auipc t2,0x2 5b4: 41c30333 sub t1,t1,t3 5b8: a403be03 ld t3,-1472(t2) # 1ff0 <.got.plt> 5bc: fd...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/087_problem66/code.program: file format elf64-littleriscv Disassembly of section .plt: 00000000000006e0 <.plt>: 6e0: 00002397 auipc t2,0x2 6e4: 41c30333 sub t1,t1,t3 6e8: 8b03be03 ld t3,-1872(t2) # 1f90 <.got> 6ec: f...
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" .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,-48 .cfi_def_cfa_offset 48 sd s0,40(sp) .cfi_offset 8,...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/088_problem76/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: 87aa ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/088_problem76/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/088_problem76/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...
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" .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/089_problem84/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: 87aa ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/089_problem84/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/089_problem84/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...
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" .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,-64 .cfi_def_cfa_offset 64 sd s0,56(sp) .cfi_offset 8,...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/090_problem147/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: fca43423 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/090_problem147/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/090_problem147/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: ...
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" .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 ra,40(sp) sd s0,32(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/091_problem19/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 7179 addi sp,sp,-48 2: f406 sd ra,40(sp) 4: f022 sd s0,32(sp) 6: 1800 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/091_problem19/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/091_problem19/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...
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" .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/092_problem162/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/092_problem162/code.so: file format elf64-littleriscv Disassembly of section .plt: 00000000000004f0 <.plt>: 4f0: 00002397 auipc t2,0x2 4f4: 41c30333 sub t1,t1,t3 4f8: b003be03 ld t3,-1280(t2) # 1ff0 <.got.plt> 4fc: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/092_problem162/code.program: file format elf64-littleriscv Disassembly of section .plt: 0000000000000630 <.plt>: 630: 00002397 auipc t2,0x2 634: 41c30333 sub t1,t1,t3 638: 9703be03 ld t3,-1680(t2) # 1fa0 <.got> 63c: ...
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" .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 "" .text .align 1 .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc addi sp,sp,-64 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/093_problem13/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/093_problem13/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/093_problem13/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...
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" .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,-64 .cfi_def_cfa_offset 64 sd ra,56(sp) sd s0,48(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/094_problem97/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/094_problem97/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/094_problem97/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...
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" .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,-64 .cfi_def_cfa_offset 64 sd ra,56(sp) sd s0,48(sp) ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/095_problem12/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/095_problem12/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/095_problem12/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...
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" .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,-192 .cfi_def_cfa_offset 192 sd ra,184(sp) sd s0,176(s...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/096_problem112/code.o: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <func0>: 0: 7131 addi sp,sp,-192 2: fd06 sd ra,184(sp) 4: f922 sd s0,176(sp) 6: 0180 ...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/096_problem112/code.so: file format elf64-littleriscv Disassembly of section .plt: 00000000000004c0 <.plt>: 4c0: 00002397 auipc t2,0x2 4c4: 41c30333 sub t1,t1,t3 4c8: b303be03 ld t3,-1232(t2) # 1ff0 <.got.plt> 4cc: f...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/096_problem112/code.program: file format elf64-littleriscv Disassembly of section .plt: 0000000000000600 <.plt>: 600: 00002397 auipc t2,0x2 604: 41c30333 sub t1,t1,t3 608: 9b03be03 ld t3,-1616(t2) # 1fb0 <.got> 60c: ...
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" .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/097_problem123/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/097_problem123/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 3c...
/home/alexanderpretko/HE/generated_humaneval_riscv64_linux/O0/097_problem123/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: ...
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" .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/098_problem91/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/098_problem91/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/098_problem91/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...
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" .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/099_problem67/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/099_problem67/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/099_problem67/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...