Dataset Viewer
Auto-converted to Parquet Duplicate
task_name
string
source_code
string
x86
string
arm_linux
string
riscv
string
arm_apple
string
C_1
#include <assert.h> #include <string.h> // Return "Hello, MMCODEEVAL: Masssively Multilingual Code Evaluation" char *hello_mmcodeeval(){ return "Hello, MMCODEEVAL: Masssively Multilingual Code Evaluation"; }
.text .intel_syntax noprefix .file "code.c" .globl hello_mmcodeeval # -- Begin function hello_mmcodeeval .p2align 4, 0x90 .type hello_mmcodeeval,@function hello_mmcodeeval: # @hello_mmcodeeval .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mo...
.text .file "code.c" .globl hello_mmcodeeval // -- Begin function hello_mmcodeeval .p2align 2 .type hello_mmcodeeval,@function hello_mmcodeeval: // @hello_mmcodeeval .cfi_startproc // %bb.0: adrp x0, .L.str add x0, x0, :lo12:.L.str ret .Lfunc_end0: .size hello_mmcodeeval, ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl hello_mmcodeeval # -- Begin function hello_mmcodeeval .p2align 1 .type hello_mmcodeeval,@function hello_mmcodeeval: # @hello_mmcodeeval .cfi_startproc # %bb.0:...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _hello_mmcodeeval ; -- Begin function hello_mmcodeeval .p2align 2 _hello_mmcodeeval: ; @hello_mmcodeeval .cfi_startproc ; %bb.0: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF ret .cfi_endpro...
C_10
#include <assert.h> #include <stdio.h> /* Calculate the sum of even numbers in a given list. Parameters: - numbers (list): A list of integers. - size (int): The size of the list. Returns: int: The sum of even numbers in the input list. >>> calculate_even_sum([1,4,3,2,5], 5) 6 */ int calculate_even_s...
.text .intel_syntax noprefix .file "code.c" .globl calculate_even_sum # -- Begin function calculate_even_sum .p2align 4, 0x90 .type calculate_even_sum,@function calculate_even_sum: # @calculate_even_sum .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -...
.text .file "code.c" .globl calculate_even_sum // -- Begin function calculate_even_sum .p2align 2 .type calculate_even_sum,@function calculate_even_sum: // @calculate_even_sum .cfi_startproc // %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl calculate_even_sum # -- Begin function calculate_even_sum .p2align 1 .type calculate_even_sum,@function calculate_even_sum: # @calculate_even_sum .cfi_startproc # ...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _calculate_even_sum ; -- Begin function calculate_even_sum .p2align 2 _calculate_even_sum: ; @calculate_even_sum .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] st...
C_11
#include <assert.h> #include <stdio.h> /* Determine if two closed intervals intersect. ​ Args: ​ a, b: Representing the first closed interval [a, b] where 0 <= a <= b <= 1000. ​ c, d: Representing the second closed interval [c, d] where 0 <= c <= d <= 1000. ​ Returns: ​ int: 1 if the intervals intersect,...
.text .intel_syntax noprefix .file "code.c" .globl are_intervals_intersecting # -- Begin function are_intervals_intersecting .p2align 4, 0x90 .type are_intervals_intersecting,@function are_intervals_intersecting: # @are_intervals_intersecting .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offse...
.text .file "code.c" .globl are_intervals_intersecting // -- Begin function are_intervals_intersecting .p2align 2 .type are_intervals_intersecting,@function are_intervals_intersecting: // @are_intervals_intersecting .cfi_startproc // %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl are_intervals_intersecting # -- Begin function are_intervals_intersecting .p2align 1 .type are_intervals_intersecting,@function are_intervals_intersecting: # @are_intervals_interse...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _are_intervals_intersecting ; -- Begin function are_intervals_intersecting .p2align 2 _are_intervals_intersecting: ; @are_intervals_intersecting .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w...
C_12
#include <assert.h> #include <math.h> #include <stdbool.h> #include <stdio.h> /* You are given three digits a, b, c. Two of them are equal, but the third one is different from the other two. Find the value that occurs exactly once. >>> extraNumber(0,0,1) 1 >>> extraNumber(4,3,4) 3 */ int extraNumber(int...
.text .intel_syntax noprefix .file "code.c" .globl extraNumber # -- Begin function extraNumber .p2align 4, 0x90 .type extraNumber,@function extraNumber: # @extraNumber .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cf...
.text .file "code.c" .globl extraNumber // -- Begin function extraNumber .p2align 2 .type extraNumber,@function extraNumber: // @extraNumber .cfi_startproc // %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] str w1, [sp, #4] str w2, [sp] ldr w8, [...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl extraNumber # -- Begin function extraNumber .p2align 1 .type extraNumber,@function extraNumber: # @extraNumber .cfi_startproc # %bb.0: addi sp, sp, ...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _extraNumber ; -- Begin function extraNumber .p2align 2 _extraNumber: ; @extraNumber .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] str w1, [sp, #4] ...
C_13
#include <assert.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <string.h> /* Calculate the total score for a student based on the scores in different subjects. Parameters: - subject_scores (list): A list containing the scores for each subject. Returns: int: The total score obtained b...
.text .intel_syntax noprefix .file "code.c" .globl calculate_total_score # -- Begin function calculate_total_score .p2align 4, 0x90 .type calculate_total_score,@function calculate_total_score: # @calculate_total_score .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offs...
.text .file "code.c" .globl calculate_total_score // -- Begin function calculate_total_score .p2align 2 .type calculate_total_score,@function calculate_total_score: // @calculate_total_score .cfi_startproc // %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str w1, [s...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl calculate_total_score # -- Begin function calculate_total_score .p2align 1 .type calculate_total_score,@function calculate_total_score: # @calculate_total_score .cfi_sta...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _calculate_total_score ; -- Begin function calculate_total_score .p2align 2 _calculate_total_score: ; @calculate_total_score .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #2...
C_14
#include <assert.h> #include <stdio.h> #include <string.h> /* Decode a series of numbers to reveal the pattern and understand the actual values each digit represents. 0000=4 8888=8 1234=1 5678=3 9012=2 1357=0 2468=4 Parameters: - data_str: A string representing a series of numbers. Length does not exceed 100. Return...
.text .intel_syntax noprefix .file "code.c" .globl decode_numbers # -- Begin function decode_numbers .p2align 4, 0x90 .type decode_numbers,@function decode_numbers: # @decode_numbers .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp,...
.text .file "code.c" .globl decode_numbers // -- Begin function decode_numbers .p2align 2 .type decode_numbers,@function decode_numbers: // @decode_numbers .cfi_startproc // %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] // 16-byte Fol...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl decode_numbers # -- Begin function decode_numbers .p2align 1 .type decode_numbers,@function decode_numbers: # @decode_numbers .cfi_startproc # %bb.0: addi...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _decode_numbers ; -- Begin function decode_numbers .p2align 2 _decode_numbers: ; @decode_numbers .cfi_startproc ; %bb.0: sub sp, sp, #96 stp x29, x30, [sp, #80] ; 16-byte Folded ...
C_15
#include <assert.h> #include <stdio.h> /* Counts the number of different coloring methods for n squares with m colors, considering the requirement that adjacent squares and the first/last squares must have different colors. Args: - n (int): The number of squares. - m (int): The number of colors. Returns: in...
.text .intel_syntax noprefix .file "code.c" .globl count_coloring_methods # -- Begin function count_coloring_methods .p2align 4, 0x90 .type count_coloring_methods,@function count_coloring_methods: # @count_coloring_methods .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_o...
.text .file "code.c" .globl count_coloring_methods // -- Begin function count_coloring_methods .p2align 2 .type count_coloring_methods,@function count_coloring_methods: // @count_coloring_methods .cfi_startproc // %bb.0: str x29, [sp, #-16]! // 8-byte Folded Spill .cfi_de...
.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 count_coloring_methods .LCPI0_0: .quad -8775366530925146571 # 0x8637a2a24e5ace35 .text .globl count...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _count_coloring_methods ; -- Begin function count_coloring_methods .p2align 2 _count_coloring_methods: ; @count_coloring_methods .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded S...
C_16
#include <assert.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <string.h> /* Count the number of valid coin toss sequences with no consecutive heads in n tosses. ​ Parameters: - n (int): The number of coin tosses. ​ Returns: ​ unsigned long long: The count of valid sequences. >>> co...
.text .intel_syntax noprefix .file "code.c" .globl count_valid_coin_toss_sequences # -- Begin function count_valid_coin_toss_sequences .p2align 4, 0x90 .type count_valid_coin_toss_sequences,@function count_valid_coin_toss_sequences: # @count_valid_coin_toss_sequences .cfi_startproc # %bb.0: push rbp .cf...
.text .file "code.c" .globl count_valid_coin_toss_sequences // -- Begin function count_valid_coin_toss_sequences .p2align 2 .type count_valid_coin_toss_sequences,@function count_valid_coin_toss_sequences: // @count_valid_coin_toss_sequences .cfi_startproc // %bb.0: str x29, [sp, #-16]! // 8...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl count_valid_coin_toss_sequences # -- Begin function count_valid_coin_toss_sequences .p2align 1 .type count_valid_coin_toss_sequences,@function count_valid_coin_toss_sequences: # @count_valid...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _count_valid_coin_toss_sequences ; -- Begin function count_valid_coin_toss_sequences .p2align 2 _count_valid_coin_toss_sequences: ; @count_valid_coin_toss_sequences .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ...
C_17
#include <assert.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <string.h> /* Find the length of the longest consecutive sequence of 1s in the binary representation of a non-negative integer. ​ Parameters: - n (unsigned long long): A non-negative integer (0 ≤ n ≤ 2^64 - 1). ​ Returns: ​ ...
.text .intel_syntax noprefix .file "code.c" .globl find_longest_consecutive_ones_length # -- Begin function find_longest_consecutive_ones_length .p2align 4, 0x90 .type find_longest_consecutive_ones_length,@function find_longest_consecutive_ones_length: # @find_longest_consecutive_ones_length .cfi_startproc # %...
.text .file "code.c" .globl find_longest_consecutive_ones_length // -- Begin function find_longest_consecutive_ones_length .p2align 2 .type find_longest_consecutive_ones_length,@function find_longest_consecutive_ones_length: // @find_longest_consecutive_ones_length .cfi_startproc // %bb.0: sub sp, sp, #16 .cf...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl find_longest_consecutive_ones_length # -- Begin function find_longest_consecutive_ones_length .p2align 1 .type find_longest_consecutive_ones_length,@function find_longest_consecutive_ones_length: ...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _find_longest_consecutive_ones_length ; -- Begin function find_longest_consecutive_ones_length .p2align 2 _find_longest_consecutive_ones_length: ; @find_longest_consecutive_ones_length .cfi_startproc ; %bb.0: sub sp, sp, #16 .cf...
C_18
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> /* Creates an ID by combining two words in a specific manner. ​Parameters: - word1 (char*): The first word to be used in the ID. - word2 (char*): The second word to be used in the ID. ​Returns: ​char*: A divine ID formed by reversing every o...
.text .intel_syntax noprefix .file "code.c" .globl create_id # -- Begin function create_id .p2align 4, 0x90 .type create_id,@function create_id: # @create_id .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_...
.text .file "code.c" .globl create_id // -- Begin function create_id .p2align 2 .type create_id,@function create_id: // @create_id .cfi_startproc // %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] // 16-byte Folded Spill add ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl create_id # -- Begin function create_id .p2align 1 .type create_id,@function create_id: # @create_id .cfi_startproc # %bb.0: addi sp, sp, -80 ....
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _create_id ; -- Begin function create_id .p2align 2 _create_id: ; @create_id .cfi_startproc ; %bb.0: sub sp, sp, #80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add...
C_19
#include <assert.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <string.h> /* Count the number of different permutation schemes for a binary string of length n, where the number of '1's is m and the number of '0's is n - m. ​ Parameters: - n (int): Length of the binary string. - m (int): Numbe...
.text .intel_syntax noprefix .file "code.c" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function count_permutations_of_binary_string .LCPI0_0: .quad 0x3ff0000000000000 # double 1 .LCPI0_1: .quad 0x3fe0000000000000 # double 0.5 .text .glob...
.text .file "code.c" .globl count_permutations_of_binary_string // -- Begin function count_permutations_of_binary_string .p2align 2 .type count_permutations_of_binary_string,@function count_permutations_of_binary_string: // @count_permutations_of_binary_string .cfi_startproc // %bb.0: sub sp, sp, #64 .cfi_de...
.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 count_permutations_of_binary_string .LCPI0_0: .quad 0x3fe0000000000000 # double 0.5 .text .globl ...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _count_permutations_of_binary_string ; -- Begin function count_permutations_of_binary_string .p2align 2 _count_permutations_of_binary_string: ; @count_permutations_of_binary_string .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_d...
C_2
#include <assert.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <string.h> /* Calculate the area of a triangle given its three sides. ​ Parameters: - a (float): Length of side 'a'. - b (float): Length of side 'b'. - c (float): Length of side 'c'. ​ Returns: - str: If the provided sides form...
.text .intel_syntax noprefix .file "code.c" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function calculate_triangle_area .LCPI0_0: .quad 0xbff0000000000000 # double -1 .LCPI0_1: .quad 0x4000000000000000 # double 2 .text .globl calculate_t...
.text .file "code.c" .globl calculate_triangle_area // -- Begin function calculate_triangle_area .p2align 2 .type calculate_triangle_area,@function calculate_triangle_area: // @calculate_triangle_area .cfi_startproc // %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48]...
.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 calculate_triangle_area .LCPI0_0: .quad 0x4000000000000000 # double 2 .text .globl calculate_tria...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _calculate_triangle_area ; -- Begin function calculate_triangle_area .p2align 2 _calculate_triangle_area: ; @calculate_triangle_area .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str d0, [sp...
C_20
#include <assert.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <string.h> /* ​ Answer a series of questions by providing choices A, B, C, or D for each question. ​ Question 1: ​ Constants like 1e6 belong to which data type? ​ A. unsigned int ​ B. int ​ C. float ​ ...
.text .intel_syntax noprefix .file "code.c" .globl answer_questions # -- Begin function answer_questions .p2align 4, 0x90 .type answer_questions,@function answer_questions: # @answer_questions .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mo...
.text .file "code.c" .globl answer_questions // -- Begin function answer_questions .p2align 2 .type answer_questions,@function answer_questions: // @answer_questions .cfi_startproc // %bb.0: adrp x0, .L.str add x0, x0, :lo12:.L.str ret .Lfunc_end0: .size answer_questions, ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl answer_questions # -- Begin function answer_questions .p2align 1 .type answer_questions,@function answer_questions: # @answer_questions .cfi_startproc # %bb.0:...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _answer_questions ; -- Begin function answer_questions .p2align 2 _answer_questions: ; @answer_questions .cfi_startproc ; %bb.0: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF ret .cfi_endpro...
C_21
#include <assert.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <string.h> /* The task is to determine if it is possible to assemble the wooden squares from n buckets, where each bucket contains $a_i$ squares with a side length of 1, into a single larger square. Input: length of list, array of nu...
.text .intel_syntax noprefix .file "code.c" .globl Is_Square # -- Begin function Is_Square .p2align 4, 0x90 .type Is_Square,@function Is_Square: # @Is_Square .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rsp .cfi_def_...
.text .file "code.c" .globl Is_Square // -- Begin function Is_Square .p2align 2 .type Is_Square,@function Is_Square: // @Is_Square .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] // 16-byte Folded Spill add ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl Is_Square # -- Begin function Is_Square .p2align 1 .type Is_Square,@function Is_Square: # @Is_Square .cfi_startproc # %bb.0: addi sp, sp, -48 ....
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _Is_Square ; -- Begin function Is_Square .p2align 2 _Is_Square: ; @Is_Square .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str x1, [sp, #16] s...
C_22
#include <assert.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <string.h> /* Given integers c and d, where a + b = c and a * b = d, find and return the possible value of a (a <= b). If there are multiple groups, output the group with the smallest a. Parameters: - c (int): The sum of a an...
.text .intel_syntax noprefix .file "code.c" .globl find_integers # -- Begin function find_integers .p2align 4, 0x90 .type find_integers,@function find_integers: # @find_integers .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mov rbp, rs...
.text .file "code.c" .globl find_integers // -- Begin function find_integers .p2align 2 .type find_integers,@function find_integers: // @find_integers .cfi_startproc // %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] str w1, [sp, #4] str wzr, [sp] b ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl find_integers # -- Begin function find_integers .p2align 1 .type find_integers,@function find_integers: # @find_integers .cfi_startproc # %bb.0: addi sp...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _find_integers ; -- Begin function find_integers .p2align 2 _find_integers: ; @find_integers .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] str w1, [sp, ...
C_23
#include <assert.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <string.h> #include <stdarg.h> #include <stdlib.h> /* Count the number of acute-angled triangles that can be formed by selecting any 3 edges out of a given set of edges. Args: - edges_count: The number of edges passed. - An arbi...
.text .intel_syntax noprefix .file "code.c" .globl count_acute_triangles # -- Begin function count_acute_triangles .p2align 4, 0x90 .type count_acute_triangles,@function count_acute_triangles: # @count_acute_triangles .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offs...
.text .file "code.c" .globl count_acute_triangles // -- Begin function count_acute_triangles .p2align 2 .type count_acute_triangles,@function count_acute_triangles: // @count_acute_triangles .cfi_startproc // %bb.0: sub sp, sp, #336 .cfi_def_cfa_offset 336 stp x29, x30, [sp, #304] ...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl count_acute_triangles # -- Begin function count_acute_triangles .p2align 1 .type count_acute_triangles,@function count_acute_triangles: # @count_acute_triangles .cfi_sta...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _count_acute_triangles ; -- Begin function count_acute_triangles .p2align 2 _count_acute_triangles: ; @count_acute_triangles .cfi_startproc ; %bb.0: sub sp, sp, #80 stp x29, x30, [sp, #64] ; 1...
C_24
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /* Reads an integer and a character, then returns them as a formatted string separated by a comma. Parameters: - integer_value (int): The input integer. - char_value (char): The input character. Returns: - char*: A string containing the inte...
.text .intel_syntax noprefix .file "code.c" .globl process_integer_and_char # -- Begin function process_integer_and_char .p2align 4, 0x90 .type process_integer_and_char,@function process_integer_and_char: # @process_integer_and_char .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 ...
.text .file "code.c" .globl process_integer_and_char // -- Begin function process_integer_and_char .p2align 2 .type process_integer_and_char,@function process_integer_and_char: // @process_integer_and_char .cfi_startproc // %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl process_integer_and_char # -- Begin function process_integer_and_char .p2align 1 .type process_integer_and_char,@function process_integer_and_char: # @process_integer_and_char ...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _process_integer_and_char ; -- Begin function process_integer_and_char .p2align 2 _process_integer_and_char: ; @process_integer_and_char .cfi_startproc ; %bb.0: sub sp, sp, #48 stp x29, x30, [sp, #32] ...
C_25
#include <assert.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <string.h> /* Shifts all characters by 5 positions in alphabetical order. Only letters are replaced, and all letters are in uppercase. ​ Parameters: ​ text (str): The input text to be processed. ​ ​ Returns: ​ str: The tr...
.text .intel_syntax noprefix .file "code.c" .globl shift_characters # -- Begin function shift_characters .p2align 4, 0x90 .type shift_characters,@function shift_characters: # @shift_characters .cfi_startproc # %bb.0: push rbp .cfi_def_cfa_offset 16 .cfi_offset rbp, -16 mo...
.text .file "code.c" .globl shift_characters // -- Begin function shift_characters .p2align 2 .type shift_characters,@function shift_characters: // @shift_characters .cfi_startproc // %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] // 16-by...
.text .attribute 4, 16 .attribute 5, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0" .file "code.c" .globl shift_characters # -- Begin function shift_characters .p2align 1 .type shift_characters,@function shift_characters: # @shift_characters .cfi_startproc # %bb.0:...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 15, 0 .globl _shift_characters ; -- Begin function shift_characters .p2align 2 _shift_characters: ; @shift_characters .cfi_startproc ; %bb.0: sub sp, sp, #48 stp x29, x30, [sp, #32] ; 16-byte Fol...
End of preview. Expand in Data Studio

McEval-C and Assembly

This dataset pairs the C-language tasks from McEval with assembly generated by Clang 17 for four CPU targets and seven optimization levels. It is intended for research on compilation, decompilation, assembly understanding, and cross-architecture code translation.

Dataset structure

The dataset contains 50 programs. Each optimization level is stored as a separate Hugging Face split, with 50 rows per split.

These are compiler configurations, not predefined training, validation, or test sets. The same 50 tasks appear in every split, so users should split by task_name before training to avoid data leakage across optimization levels.

Each row has the following fields:

Field Description
task_name McEval-C task identifier
source_code C implementation for the task
x86 x86-64 Linux assembly in Intel syntax
arm_linux AArch64 Linux assembly
riscv RISC-V RV64GC Linux assembly using the LP64D ABI
arm_apple AArch64 Apple Darwin assembly

Usage

Load every optimization level:

from datasets import load_dataset

dataset = load_dataset("murodbek/mceval_asm")
print(dataset)

example = dataset["O2"][0]
print(example)

Load only one optimization level:

from datasets import load_dataset

dataset = load_dataset("murodbek/mceval_asm", split="O2")

Dataset creation

The C subset was extracted from McEval. For each task, code.c was compiled to assembly with Clang 17.

The architecture-specific compiler options were:

x86:       -target x86_64-unknown-linux-gnu -masm=intel
arm_linux: -target aarch64-linux-gnu
riscv:     -target riscv64-unknown-linux-gnu -march=rv64gc -mabi=lp64d
arm_apple: -target arm64-apple-darwin

Linux-targeted and Apple-targeted outputs were generated separately, joined on task_name and source_code, and sorted by task name.

Important notes

  • source_code contains the task implementation. The separate test harness used to check functional correctness is not included in each row.
  • The assembly may reference C standard library or math library functions and is not necessarily a standalone, linkable program by itself.
  • Results represent one compiler family and version: Clang 17. Assembly produced by other compilers or versions may differ substantially.
  • Architecture columns should not be assumed to have identical instruction-by-instruction behavior or formatting, even though they originate from the same C source.
  • Because the same programs occur at every optimization level, random row-level splitting across the full dataset can leak the same source program into both training and evaluation sets.

Source and license

The source programs are the C-language subset of McEval: Massively Multilingual Code Evaluation. McEval data is distributed under the Creative Commons Attribution-ShareAlike 4.0 International license.

If you use this dataset, please also cite the original McEval work and credit its authors.

Downloads last month
44