task_name
stringlengths
8
10
source_code
stringlengths
58
1.86k
x86_64
stringlengths
668
14.9k
aarch64_linux
stringlengths
578
13.4k
riscv64
stringlengths
980
12.6k
aarch64_apple
stringlengths
464
13.2k
problem101
#include <stdio.h> #include <stdlib.h> int* func0(int n) { int* out = (int*)malloc(n * sizeof(int)); *out = n; for (int i = 1; i < n; i++) *(out + i) = *(out + i - 1) + 2; return out; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] // 16-byte Folded Spill add x29, sp, #32...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp...
problem110
#include <stdio.h> #include <stdbool.h> bool func0(int *arr, int size) { int num = 0; if (size == 0) return true; for (int i = 1; i < size; i++) if (arr[i] < arr[i - 1]) num += 1; if (arr[size - 1] > arr[0]) num += 1; if (num < 2) return true; return false; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str w1, [sp, #12] str wzr, [sp, #8] ldr w8, [sp, #12] s...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str w1, [sp, #12] str wzr, ...
problem100
#include <stdio.h> #include <stdlib.h> #include <math.h> int func0(const char *value) { double w; w = atof(value); return (int)(w < 0 ? ceil(w - 0.5) : floor(w + 0.5)); }
.text .intel_syntax noprefix .file "code.c" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function func0 .LCPI0_0: .quad 0x3fe0000000000000 # double 0.5 .text .globl func0 .p2align 4, 0x90 .type func0,@function func0: #...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] // 16-byte Folded Spill add x29, sp, #32...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .section .sdata,"aw",@progbits .p2align 3 # -- Begin function func0 .LCPI0_0: .quad 0x3fe0000000000000 # double 0.5 .LCPI0_1: .quad 0x4330000000000000 ...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp...
problem83
#include <stdio.h> #include <string.h> #include <stdbool.h> bool func0(const char* str) { int l = strlen(str); if (l < 2) return false; for (int i = 2; i * i <= l; i++) { if (l % i == 0) return false; } return true; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] // 16-byte Folded Spill add x29, sp, #32...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp...
problem104
#include <stdio.h> #include <stdlib.h> char* func0(int n, int m) { if (n > m) return "-1"; int num = (m + n) / 2; char* out = (char*)malloc(33); out[0] = '\0'; int index = 32; out[index--] = '\0'; do { out[index--] = '0' + num % 2; num /= 2; } while (num > 0); ret...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] // 16-byte Folded Spill add x29, sp, #48...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp...
problem128
#include <stdio.h> const char* func0(int interval1_start, int interval1_end, int interval2_start, int interval2_end) { int inter1, inter2, l, i; inter1 = interval1_start > interval2_start ? interval1_start : interval2_start; inter2 = interval1_end < interval2_end ? interval1_end : interval2_end; l = in...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str w0, [sp, #36] str w1, [sp, #32] str w2, [sp, #28] str w3, [sp, #24] l...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -80 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str w0, [sp, #36] str w1, [sp, #32] str w2, [...
problem121
#include <stdio.h> #include <stdlib.h> void func0(int* arr, int arr_size, int k, int* out) { for (int i = 0; i < arr_size - 1; i++) { for (int j = 0; j < arr_size - i - 1; j++) { if (arr[j] > arr[j + 1]) { int temp = arr[j]; arr[j] = arr[j + 1]; a...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #40] str w1, [sp, #36] str w2, [sp, #32] str x3, [sp, #24] s...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #40] str w1, [sp, #36] str w2, [...
problem58
#include <stdio.h> #include <stdbool.h> bool func0(float *l, int size) { int incr, decr; incr = decr = 0; for (int i = 1; i < size; i++) { if (l[i] > l[i - 1]) incr = 1; if (l[i] < l[i - 1]) decr = 1; } if (incr + decr == 2) return false; return true; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str w1, [sp, #12] str wzr, [sp, #4] str wzr, [sp, #8] m...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str w1, [sp, #12] str wzr, ...
problem146
#include <stdio.h> #include <stdlib.h> #include <string.h> int* func0(int nums[], int size) { int* sumdigit = (int*)malloc(size * sizeof(int)); for (int i = 0; i < size; i++) { char w[12]; // Assuming the integer won't exceed the length of an int in string form. sprintf(w, "%d", abs(nums[i])); ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] // 16-byte Folded Spill add x29, sp, #80...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -96 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, s...
problem93
#include <stdio.h> #include <math.h> int func0(float a, float b, float c) { if (roundf(a) != a) return 0; if (roundf(b) != b) return 0; if (roundf(c) != c) return 0; if ((a + b == c) || (a + c == b) || (b + c == a)) return 1; return 0; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #8] str s1, [sp, #4] str s2, [sp] ldr s0, [sp, #8] frinta s0...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #8] str s1, [sp, #4] str s2, [sp...
problem138
#include <stdio.h> #include <stdlib.h> #include <string.h> char* func0(const char* a, const char* b) { char *end; char *a_modified = strdup(a); char *b_modified = strdup(b); // Replace ',' with '.' if present for atof conversion for (int i = 0; a_modified[i]; ++i) if (a_modified[i] == ',') a_modif...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] // 16-byte Folded Spill add x29, sp, #80...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -96 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp...
problem159
#include <stdio.h> #include <string.h> char *func0(char *words[], int count) { char *max = ""; int maxu = 0; for (int i = 0; i < count; i++) { char unique[256] = {0}; int unique_count = 0; for (int j = 0; words[i][j] != '\0'; j++) { if (!strchr(unique, words[i][j])) { ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #352 .cfi_def_cfa_offset 352 stp x29, x30, [sp, #320] // 16-byte Folded Spill str x28, [sp, ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -336 .cfi_def_cfa...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #368 stp x28, x27, [sp, #336] ; 16-byte Folded Spill stp x29, x...
problem161
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> int func0(const char **operato, const int *operand, int operato_size, int operand_size) { int *num = (int*)malloc(operand_size * sizeof(int)); int *posto = (int*)malloc(operand_size * sizeof(int)); for (int i = 0; i < operand_size...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] // 16-byte Folded Spill add x29, sp, #64...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -80 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp...
problem39
#include <stdio.h> #include <string.h> void func0(char *s, int encode) { int l = strlen(s); int num = (l + 2) / 3; char x[4]; for (int i = 0; i < num; ++i) { int len = (i * 3 + 3 <= l) ? 3 : l - i * 3; strncpy(x, s + i * 3, len); x[len] = '\0'; if (len == 3) { ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] // 16-byte Folded Spill add x29, sp, #48...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -80 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp...
problem114
#include <stdio.h> #include <stdlib.h> #include <string.h> char **func0(char *lst[], int size) { char **out = malloc(size * sizeof(char *)); for (int i = 0; i < size; i++) { int sum = 0; for (int j = 0; lst[i][j] != '\0'; j++) { if (lst[i][j] >= '0' && lst[i][j] <= '9' && (lst[i][j]...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] // 16-byte Folded Spill add x29, sp, #48...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp...
problem116
#include <stdio.h> int func0(int **grid, int rows, int cols, int capacity) { int out = 0; for (int i = 0; i < rows; i++) { int sum = 0; for (int j = 0; j < cols; j++) sum += grid[i][j]; if (sum > 0) out += (sum + capacity - 1) / capacity; } return out; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #40] str w1, [sp, #36] str w2, [sp, #32] str w3, [sp, #28] s...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #40] str w1, [sp, #36] str w2, [...
problem142
#include <stdio.h> #include <string.h> const char* func0(const char* file_name) { int num_digit = 0, num_dot = 0; int length = strlen(file_name); if (length < 5) return "No"; char w = file_name[0]; if (w < 'A' || (w > 'Z' && w < 'a') || w > 'z') return "No"; const char* last = file_name + lengt...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] // 16-byte Folded Spill add x29, sp, #48...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp...
problem46
#include <stdio.h> #include <math.h> float func0(float a, float h) { return (a * h) * 0.5; }
.text .intel_syntax noprefix .file "code.c" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function func0 .LCPI0_0: .quad 0x3fe0000000000000 # double 0.5 .text .globl func0 .p2align 4, 0x90 .type func0,@function func0: #...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] str s1, [sp, #8] ldr s0, [sp, #12] ldr s1, [sp, #8] fmu...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .section .sdata,"aw",@progbits .p2align 3 # -- Begin function func0 .LCPI0_0: .quad 0x3fe0000000000000 # double 0.5 .text .globl func0 .p2align 1 .type func0...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] str s1, [sp, #8] ldr s0, [s...
problem111
#include <stdio.h> const char* func0(int *lst1, int size1, int *lst2, int size2) { int num = 0; for (int i = 0; i < size1; i++) if (lst1[i] % 2 == 0) num += 1; for (int i = 0; i < size2; i++) if (lst2[i] % 2 == 0) num += 1; if (num >= size1) return "YES"; return "NO"; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #32] str w1, [sp, #28] str x2, [sp, #16] str w3, [sp, #12] s...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #32] str w1, [sp, #28] str x2, [...
problem22
#include <stdio.h> #include <math.h> void func0(float *numbers, int size) { float min = numbers[0], max = numbers[0]; for (int i = 1; i < size; i++) { if (numbers[i] < min) min = numbers[i]; if (numbers[i] > max) max = numbers[i]; } for (int i = 0; i < size; i++) { numbers[i] = ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] ldr x8, [sp, #24] ldr s0, [x8] str s0...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] ldr x8, [...
problem85
#include <stdio.h> #include <stdlib.h> char* func0(int N) { char str[6]; sprintf(str, "%d", N); int sum = 0; for (int i = 0; str[i] != '\0'; i++) sum += str[i] - '0'; char* bi = malloc(33); int index = 0; if (sum == 0) { bi[index++] = '0'; } else { while (sum > ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] // 16-byte Folded Spill add x29, sp, #48...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp...
problem5
#include <stdio.h> #include <math.h> float func0(float numbers[], int size) { float sum = 0; float avg, msum, mavg; int i = 0; for (i = 0; i < size; i++) sum += numbers[i]; avg = sum / size; msum = 0; for (i = 0; i < size; i++) msum += fabs(numbers[i] - avg); return ...
.text .intel_syntax noprefix .file "code.c" .section .rodata.cst16,"aM",@progbits,16 .p2align 4, 0x0 # -- Begin function func0 .LCPI0_0: .quad 0x7fffffffffffffff # double NaN .quad 0x7fffffffffffffff # double NaN .text .globl func0 .p2align 4, 0x90 .type fun...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] movi d0, #0000000000000000 str s0, [sp...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] movi d0, ...
problem59
#include <stdio.h> #include <stdlib.h> int *func0(int *l1, int size1, int *l2, int size2, int *out_size) { int *out = malloc(size1 * sizeof(int)); int k = 0, i, j, m; for (i = 0; i < size1; i++) { int exists_in_out = 0; for (m = 0; m < k; m++) { if (out[m] == l1[i]) { ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] // 16-byte Folded Spill add x29, sp, #80...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -96 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp...
problem126
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> char **func0(const char *txt, int *returnSize) { int i, j = 0, num = 0, count = 0; int len = strlen(txt); char **out = NULL; char current[101] = {0}; if (strchr(txt, ' ') || strchr(txt, ',')) { out = malloc(sizeo...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #192 .cfi_def_cfa_offset 192 stp x29, x30, [sp, #176] // 16-byte Folded Spill add x29, sp, #...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -192 .cfi_def_cfa...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #208 stp x29, x30, [sp, #192] ; 16-byte Folded Spill add x29, s...
problem153
#include <stdio.h> #include <stdlib.h> void func0(int* game, int* guess, int* out, int length) { for (int i = 0; i < length; i++) { out[i] = abs(game[i] - guess[i]); } }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] // 16-byte Folded Spill add x29, sp, #32...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp...
problem64
#include <stdio.h> int func0(int n) { int ff[100] = {0}; ff[1] = 0; ff[2] = 1; for (int i = 3; i <= n; ++i) { ff[i] = ff[i - 1] + ff[i - 2] + ff[i - 3]; } return ff[n]; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #448 .cfi_def_cfa_offset 448 stp x29, x30, [sp, #416] // 16-byte Folded Spill str x28, [sp, ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -432 .cfi_def_cfa...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #464 stp x28, x27, [sp, #432] ; 16-byte Folded Spill stp x29, x...
problem163
#include <stdio.h> #include <stdlib.h> #include <string.h> // CRC32 function char* func0(const char* text) { if(strlen(text) == 0) { return strdup("None"); } unsigned int crc = 0xFFFFFFFF; unsigned int i, j; unsigned char byte; for(i = 0; text[i] != '\0'; i++) { byte = text[i...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] // 16-byte Folded Spill add x29, sp, #48...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp...
problem130
#include <stdio.h> #include <stdlib.h> int *func0(int **grid, int N, int k, int *returnSize) { int i, j, x, y, min; for (i = 0; i < N; i++) for (j = 0; j < N; j++) if (grid[i][j] == 1) { x = i; y = j; } min = N * N; if (x > 0 && grid[x - 1...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] // 16-byte Folded Spill add x29, sp, #64...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -80 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp...
problem14
#include <stdio.h> int func0(int a, int b) { while (b != 0) { int m = a % b; a = b; b = m; } return a; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] b .LBB0_1 .LBB0_1: ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -32 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] b LBB0_1 L...
problem105
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> void func0(int *x, int size, int **out, int *out_size) { *out = malloc(size * sizeof(int)); *out_size = 0; for (int i = 0; i < size; i++) { int num = x[i]; bool has_even_digit = false; if (num == 0) has_even_digit = true; ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] // 16-byte Folded Spill add x29, sp, #64...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -80 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp...
problem80
#include <stdio.h> #include <stdlib.h> #include <string.h> char* func0(int decimal) { char* out = malloc(64); if (!out) { return NULL; } int index = 62; out[63] = '\0'; if (decimal == 0) { out[index--] = '0'; } else { while (decimal > 0) { out[index--] =...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] // 16-byte Folded Spill add x29, sp, #48...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp...
problem157
#include <stdio.h> #include <string.h> void func0(int number, char *result) { const char *rep[] = {"m", "cm", "d", "cd", "c", "xc", "l", "xl", "x", "ix", "v", "iv", "i"}; const int num[] = {1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1}; int pos = 0; result[0] = '\0'; while(number > 0) { ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #192 .cfi_def_cfa_offset 192 stp x29, x30, [sp, #176] // 16-byte Folded Spill add x29, sp, #...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -208 .cfi_def_cfa...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #208 stp x29, x30, [sp, #192] ; 16-byte Folded Spill add x29, s...
problem52
#include <stdio.h> #include <string.h> #include <stdlib.h> void func0(char *text) { const char *vowels = "AEIOUaeiou"; char *out = text; while (*text != '\0') { if (strchr(vowels, *text) == NULL) { *out++ = *text; } text++; } *out = '\0'; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] // 16-byte Folded Spill add x29, sp, #32...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp...
problem113
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> void func0(const char *s, const char *c, char *result, char *palindrome) { int len = strlen(s); char *n = malloc((len + 1) * sizeof(char)); int ni = 0; for (int i = 0; s[i] != '\0'; i++) { const char *temp = c; ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] // 16-byte Folded Spill add x29, sp, #80...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -128 .cfi_def_cfa...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, s...
problem61
#include <stdio.h> int func0(int n) { return n * (n + 1) / 2; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] ldr w9, [sp, #12] add w9, w9, #1 mul ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -32 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] ldr w9, [...
problem144
#include <stdio.h> #include <string.h> #include <stdbool.h> void func0(const char* sentence, char* out) { int index = 0, word_len = 0; int out_index = 0; bool is_prime; int i, j; for (i = 0; sentence[i] != '\0'; ++i) { if (sentence[i] != ' ') { word_len++; } else { ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] // 16-byte Folded Spill add x29, sp, #48...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp...
problem30
#include <stdio.h> #include <string.h> #include <stdlib.h> int func0(char** strings, int count, const char* prefix, char*** out) { int prefix_length = strlen(prefix); *out = (char**)malloc(count * sizeof(char*)); int out_count = 0; for (int i = 0; i < count; i++) { if (strncmp(strings[i], pref...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] // 16-byte Folded Spill add x29, sp, #48...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp...
problem96
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> int func0(char* dict[][2], int size) { if (size == 0) return 0; int has_lower = 0, has_upper = 0; for (int i = 0; i < size; ++i) { char* key = dict[i][0]; for (int j = 0; key[j]; ++j) { if (!isalpha((u...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] // 16-byte Folded Spill add x29, sp, #48...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp...
problem47
#include <stdio.h> int func0(int n) { int f[100]; f[0] = 0; f[1] = 0; f[2] = 2; f[3] = 0; for (int i = 4; i <= n; i++) { f[i] = f[i - 1] + f[i - 2] + f[i - 3] + f[i - 4]; } return f[n]; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #432 .cfi_def_cfa_offset 432 str x29, [sp, #416] // 8-byte Folded Spill .cfi_offset w29...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -432 .cfi_def_cfa...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #464 stp x28, x27, [sp, #432] ; 16-byte Folded Spill stp x29, x...
problem75
#include <stdio.h> #include <stdlib.h> #include <string.h> char** func0(char** arr1, int n1, char** arr2, int n2){ int i, sum1 = 0, sum2 = 0; for(i=0; i<n1; i++){ sum1 += strlen(arr1[i]); } for(i=0; i<n2; i++){ sum2 += strlen(arr2[i]); } if(sum1 < sum2){ return arr1; } else if(sum1 >...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] // 16-byte Folded Spill add x29, sp, #48...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp...
problem134
#include <stdio.h> #include <math.h> int func0(float *lst, int size) { int sum = 0; for (int i = 0; i < size; i++) { sum += (int)ceil(lst[i]) * (int)ceil(lst[i]); } return sum; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] str wzr, [sp, #16] str wzr, [sp, #12] ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] str wzr, ...
problem95
#include <stdio.h> int func0(int lst[], int size) { int largest = 0, sum = 0, num, temp; for (int i = 0; i < size; ++i) { num = lst[i]; if (num > 1) { int prime = 1; for (int j = 2; j * j <= num; ++j) { if (num % j == 0) { prime = 0; ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #40] str w1, [sp, #36] str wzr, [sp, #32] str wzr, [sp, #28] ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #40] str w1, [sp, #36] str wzr, ...
problem103
#include <stdio.h> int func0(int x, int y) { if (y < x) return -1; if (y == x && y % 2 == 1) return -1; if (y % 2 == 1) return y - 1; return y; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] str w1, [sp, #4] ldr w8, [sp, #4] ldr w9, [sp, #8] subs ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -32 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] str w1, [sp, #4] ldr w8, [sp...
problem42
#include <stdio.h> int func0(int n) { return n * n; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] ldr w9, [sp, #12] mul w0, w8, w9 add ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -32 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] ldr w9, [...
problem40
#include <stdio.h> int func0(int n) { int f1 = 1, f2 = 2, m; int count = 0; while (count < n) { f1 = f1 + f2; m = f1; f1 = f2; f2 = m; int isprime = 1; for (int w = 2; w * w <= f1; w++) { if (f1 % w == 0) { isprime = 0; break; } ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #24] mov w8, #1 // =0x1 str w8, [sp, ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #24] mov w8, #1 ...
problem106
#include <stdio.h> #include <stdlib.h> #include <string.h> void func0(int *arr, int size, char ***out, int *out_size) { char *names[] = {"", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"}; int i, j; for (i = 0; i < size - 1; i++) { for (j = 0; j < size - i - 1; j++) { ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] // 16-byte Folded Spill add x29, sp, #...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -160 .cfi_def_cfa...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #160 stp x29, x30, [sp, #144] ; 16-byte Folded Spill add x29, s...
problem56
#include <stdio.h> int func0(int n) { int f[1000] = {0}; f[0] = 0; f[1] = 1; for (int i = 2; i <= n; i++) f[i] = f[i - 1] + f[i - 2]; return f[n]; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: stp x29, x30, [sp, #-32]! // 16-byte Folded Spill .cfi_def_cfa_offset 32 str x28, [sp, #16] ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -2032 .cfi_def_cf...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill stp x29, x30, [sp, #16] ...
problem6
#include <stdio.h> #include <stdlib.h> int *func0(const int numbers[], int size, int delimiter, int *out_size) { *out_size = size > 0 ? (size * 2) - 1 : 0; int *out = (int *)malloc(*out_size * sizeof(int)); if (size > 0) out[0] = numbers[0]; for (int i = 1, j = 1; i < size; ++i) { out[j++] = de...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] // 16-byte Folded Spill add x29, sp, #48...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp...
problem60
#include <stdio.h> int func0(int n) { for (int i = 2; i * i <= n; i++) while (n % i == 0 && n > i) n = n / i; return n; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] mov w8, #2 // =0x2 str w8, [sp, ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -32 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] mov w8, #2 ...
problem164
#include <stdio.h> void func0(int a, int b, int *out, int *size) { int m; *size = 0; if (b < a) { m = a; a = b; b = m; } for (int i = a; i <= b; i++) { if (i < 10 && i % 2 == 0) { out[(*size)++] = i; } } }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str w1, [sp, #24] str x2, [sp, #16] str x3, [sp, #8] ld...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str w1, [sp, #24] str x2, [...
problem98
#include <stdio.h> #include <stdlib.h> int func0(int a, int b) { return (abs(a) % 10) * (abs(b) % 10); }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] // 16-byte Folded Spill add x29, sp, #16...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp...
problem152
#include <stdio.h> #include <math.h> long long func0(float lst[], int lst_size) { long long sum = 0; for (int i = 0; i < lst_size; i++) { if (fabs(lst[i] - round(lst[i])) < 1e-4) { if (lst[i] > 0 && (int)(round(lst[i])) % 2 == 1) { sum += (int)(round(lst[i])) * (int)(round(l...
.text .intel_syntax noprefix .file "code.c" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function func0 .LCPI0_0: .quad 0x3f1a36e2eb1c432d # double 1.0E-4 .section .rodata.cst16,"aM",@progbits,16 .p2align 4, 0x0 .LCPI0_1: .quad 0x7fffffffffffffff ...
.text .file "code.c" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 // -- Begin function func0 .LCPI0_0: .xword 0x3f1a36e2eb1c432d // double 1.0E-4 .text .globl func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .section .sdata,"aw",@progbits .p2align 3 # -- Begin function func0 .LCPI0_0: .quad 0x4330000000000000 # double 4503599627370496 .LCPI0_1: .quad 0x3f1a36e2eb1c4...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .section __TEXT,__literal8,8byte_literals .p2align 3, 0x0 ; -- Begin function func0 lCPI0_0: .quad 0x3f1a36e2eb1c432d ; double 1.0E-4 .section __TEXT,__text,regular,pure_instructions .globl _func0 ...
problem16
#include <stdio.h> #include <stdlib.h> char *func0(int n) { int len = 2; for (int i = 1; i <= n; ++i) { len += snprintf(NULL, 0, " %d", i); } char *out = malloc(len); if (!out) { return NULL; } char *ptr = out; ptr += sprintf(ptr, "0"); for (int i = 1; i <= n;...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] // 16-byte Folded Spill add x29, sp, #48...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp...
problem92
#include <stdio.h> #include <string.h> #include <ctype.h> int func0(const char *S) { int isstart = 1; int isi = 0; int sum = 0; for (int i = 0; S[i] != '\0'; i++) { if (isspace(S[i]) && isi) { isi = 0; sum += 1; } if (S[i] == 'I' && isstart) { ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] // 16-byte Folded Spill add x29, sp, #32...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp...
problem70
#include <stdio.h> #include <stdlib.h> int func0(int *lst, int size) { int *freq = (int *)calloc(size + 1, sizeof(int)); int max = -1; for (int i = 0; i < size; i++) { freq[lst[i]]++; if ((freq[lst[i]] >= lst[i]) && (lst[i] > max)) { max = lst[i]; } } free(freq...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] // 16-byte Folded Spill add x29, sp, #32...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp...
problem50
#include <stdio.h> int func0(int n, int p) { int out = 1; for (int i = 0; i < n; i++) out = (out * 2) % p; return out; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] mov w8, #1 // =...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -32 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] mov w8, #1...
problem131
#include <stdio.h> #include <stdlib.h> int* func0(int n) { int* out = (int*)malloc((n + 1) * sizeof(int)); out[0] = 1; if (n == 0) return out; out[1] = 3; for (int i = 2; i <= n; i++) { if (i % 2 == 0) out[i] = 1 + i / 2; else out[i] = out[i - 1] + out[i - 2] + 1 + (i + 1) / 2; ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] // 16-byte Folded Spill add x29, sp, #32...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp...
problem10
#include <stdio.h> #include <stdlib.h> int *func0(int *numbers, int size) { if (size <= 0) { return NULL; } int *out = malloc(size * sizeof(int)); if (!out) { return NULL; } int max = numbers[0]; for (int i = 0; i < size; i++) { if (numbers[i] > max) max = ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] // 16-byte Folded Spill add x29, sp, #48...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -64 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp...
problem18
#include <stdio.h> #include <stdlib.h> #include <string.h> int *func0(const char *music_string, int *count) { int *out = NULL; int size = 0; int capacity = 0; char current[3] = ""; int music_string_length = strlen(music_string) + 1; char *temp_music_string = malloc(music_string_length + 1); ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] // 16-byte Folded Spill add x29, sp, #80...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -112 .cfi_def_cfa...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, s...
problem135
#include <stdio.h> #include <string.h> #include <ctype.h> int func0(const char *txt) { int len = strlen(txt); if (len == 0) return 0; char last_char = txt[len - 1]; if (!isalpha((unsigned char)last_char)) return 0; if (len == 1) return 1; char second_last_char = txt[len - 2]; if (isalpha((u...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] // 16-byte Folded Spill add x29, sp, #32...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp...
problem23
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> int *func0(const char *values, int *size) { static int out[256]; int count = 0; const char *start = values; char *end; while (*start) { while (*start && !isdigit(*start) && *start != '-') { start++; ...
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] // 16-byte Folded Spill add x29, sp, #64...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -80 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp...
problem86
#include <stdio.h> int func0(int lst[], int size) { int sum = 0; for (int i = 0; i * 2 + 1 < size; i++) if (lst[i * 2 + 1] % 2 == 0) sum += lst[i * 2 + 1]; return sum; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] str wzr, [sp, #16] str wzr, [sp, #12] ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] str wzr, ...
problem129
#include <stdio.h> #include <stdlib.h> int func0(int *arr, int arr_size) { if (arr_size == 0) return -32768; int sum = 0, prods = 1, i; for (i = 0; i < arr_size; i++) { sum += abs(arr[i]); if (arr[i] == 0) prods = 0; if (arr[i] < 0) prods = -prods; } return sum * prods; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] // 16-byte Folded Spill add x29, sp, #32...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -48 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp...
problem24
#include <stdio.h> int func0(const char *str) { int length = 0; while (str[length] != '\0') { length++; } return length; }
.text .intel_syntax noprefix .file "code.c" .globl func0 # -- Begin function func0 .p2align 4, 0x90 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_cfa_register...
.text .file "code.c" .globl func0 // -- Begin function func0 .p2align 2 .type func0,@function func0: // @func0 .cfi_startproc // %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str wzr, [sp, #4] b .LBB0_1 .LBB0_1: ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl func0 # -- Begin function func0 .p2align 1 .type func0,@function func0: # @func0 .cfi_startproc # %bb.0: addi sp, sp, -32 .cfi_def_cfa_...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _func0 ; -- Begin function func0 .p2align 2 _func0: ; @func0 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str wzr, [sp, #4] b LBB0_1 L...