task_name string | source_code string | compiler_asm string | object_asm string | shared_asm string | program_asm 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";
} | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.section .rodata
.align 3
.LC0:
.string "Hello, MMCODEEVAL: Masssively Multilingual Code Evaluation"
.text
.align 1
.globl hello_mmcodeeval
... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/000_C_1/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <hello_mmcodeeval>:
0: 1141 addi sp,sp,-16
2: e422 sd s0,8(sp)
4: 0800 addi s0,sp,16... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/000_C_1/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c8 <deregister_tm_clones>:
3c8: 1141 addi sp,sp,-16
3ca: e422 sd s0,8(sp)
3cc: 0800 addi s0,... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/000_C_1/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.go... |
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... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl calculate_even_sum
.type calculate_even_sum, @function
calculate_even_sum:
.LFB0:
.cfi_startproc
addi sp,sp,-48
.cfi_def_cfa_... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/001_C_10/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <calculate_even_sum>:
0: 7179 addi sp,sp,-48
2: f422 sd s0,40(sp)
4: 1800 addi s0,s... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/001_C_10/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003d0 <deregister_tm_clones>:
3d0: 1141 addi sp,sp,-16
3d2: e422 sd s0,8(sp)
3d4: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/001_C_10/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
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,... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl are_intervals_intersecting
.type are_intervals_intersecting, @function
are_intervals_intersecting:
.LFB0:
.cfi_startproc
addi ... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/002_C_11/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <are_intervals_intersecting>:
0: 1101 addi sp,sp,-32
2: ec22 sd s0,24(sp)
4: 1000 a... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/002_C_11/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003d8 <deregister_tm_clones>:
3d8: 1141 addi sp,sp,-16
3da: e422 sd s0,8(sp)
3dc: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/002_C_11/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
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... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl extraNumber
.type extraNumber, @function
extraNumber:
.LFB0:
.cfi_startproc
addi sp,sp,-32
.cfi_def_cfa_offset 32
sd s0,24(s... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/003_C_12/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <extraNumber>:
0: 1101 addi sp,sp,-32
2: ec22 sd s0,24(sp)
4: 1000 addi s0,sp,32
... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/003_C_12/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c8 <deregister_tm_clones>:
3c8: 1141 addi sp,sp,-16
3ca: e422 sd s0,8(sp)
3cc: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/003_C_12/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
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... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl calculate_total_score
.type calculate_total_score, @function
calculate_total_score:
.LFB0:
.cfi_startproc
addi sp,sp,-48
.cfi... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/004_C_13/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <calculate_total_score>:
0: 7179 addi sp,sp,-48
2: f422 sd s0,40(sp)
4: 1800 addi s... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/004_C_13/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003d0 <deregister_tm_clones>:
3d0: 1141 addi sp,sp,-16
3d2: e422 sd s0,8(sp)
3d4: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/004_C_13/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
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... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.section .rodata
.align 3
.LC0:
.word 1
.word 0
.word 0
.word 0
.word 1
.word 0
.word 1
.word 0
.word 2
.word 1
.text
.align 1
.glob... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/005_C_14/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <decode_numbers>:
0: 7159 addi sp,sp,-112
2: f486 sd ra,104(sp)
4: f0a2 sd s0,96(sp... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/005_C_14/code.so: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000510 <.plt>:
510: 00002397 auipc t2,0x2
514: 41c30333 sub t1,t1,t3
518: ae03be03 ld t3,-1312(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/005_C_14/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000640 <.plt>:
640: 00002397 auipc t2,0x2
644: 41c30333 sub t1,t1,t3
648: 9683be03 ld t3,-1688(t2) # 1fa8 <.g... |
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... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl count_coloring_methods
.type count_coloring_methods, @function
count_coloring_methods:
.LFB0:
.cfi_startproc
addi sp,sp,-400
... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/006_C_15/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <count_coloring_methods>:
0: 7165 addi sp,sp,-400
2: e706 sd ra,392(sp)
4: e322 sd ... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/006_C_15/code.so: file format elf64-littleriscv
Disassembly of section .plt:
00000000000004e0 <.plt>:
4e0: 00002397 auipc t2,0x2
4e4: 41c30333 sub t1,t1,t3
4e8: b103be03 ld t3,-1264(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/006_C_15/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000600 <.plt>:
600: 00002397 auipc t2,0x2
604: 41c30333 sub t1,t1,t3
608: 9b03be03 ld t3,-1616(t2) # 1fb0 <.g... |
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... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl count_valid_coin_toss_sequences
.type count_valid_coin_toss_sequences, @function
count_valid_coin_toss_sequences:
.LFB0:
.cfi_s... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/007_C_16/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <count_valid_coin_toss_sequences>:
0: d4010113 addi sp,sp,-704
4: 2a113c23 sd ra,696(sp)
8: 2a813823 ... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/007_C_16/code.so: file format elf64-littleriscv
Disassembly of section .plt:
00000000000004e0 <.plt>:
4e0: 00002397 auipc t2,0x2
4e4: 41c30333 sub t1,t1,t3
4e8: b103be03 ld t3,-1264(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/007_C_16/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000600 <.plt>:
600: 00002397 auipc t2,0x2
604: 41c30333 sub t1,t1,t3
608: 9b03be03 ld t3,-1616(t2) # 1fb0 <.g... |
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:
β ... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl find_longest_consecutive_ones_length
.type find_longest_consecutive_ones_length, @function
find_longest_consecutive_ones_length:... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/008_C_17/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <find_longest_consecutive_ones_length>:
0: 7179 addi sp,sp,-48
2: f422 sd s0,40(sp)
4: 1800 ... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/008_C_17/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003e0 <deregister_tm_clones>:
3e0: 1141 addi sp,sp,-16
3e2: e422 sd s0,8(sp)
3e4: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/008_C_17/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
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... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl create_id
.type create_id, @function
create_id:
.LFB6:
.cfi_startproc
addi sp,sp,-64
.cfi_def_cfa_offset 64
sd ra,56(sp)
sd... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/009_C_18/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <create_id>:
0: 7139 addi sp,sp,-64
2: fc06 sd ra,56(sp)
4: f822 sd s0,48(sp)
6:... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/009_C_18/code.so: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000480 <.plt>:
480: 00002397 auipc t2,0x2
484: 41c30333 sub t1,t1,t3
488: b703be03 ld t3,-1168(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/009_C_18/code.program: file format elf64-littleriscv
Disassembly of section .plt:
00000000000005b0 <.plt>:
5b0: 00002397 auipc t2,0x2
5b4: 41c30333 sub t1,t1,t3
5b8: a003be03 ld t3,-1536(t2) # 1fb0 <.g... |
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... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl count_permutations_of_binary_string
.type count_permutations_of_binary_string, @function
count_permutations_of_binary_string:
.L... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/010_C_19/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <count_permutations_of_binary_string>:
0: 715d addi sp,sp,-80
2: e4a2 sd s0,72(sp)
4: 0880 ... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/010_C_19/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003e0 <deregister_tm_clones>:
3e0: 1141 addi sp,sp,-16
3e2: e422 sd s0,8(sp)
3e4: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/010_C_19/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
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... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl calculate_triangle_area
.type calculate_triangle_area, @function
calculate_triangle_area:
.LFB0:
.cfi_startproc
addi sp,sp,-64... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/011_C_2/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <calculate_triangle_area>:
0: 7139 addi sp,sp,-64
2: fc06 sd ra,56(sp)
4: f822 sd s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/011_C_2/code.so: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000450 <.plt>:
450: 00002397 auipc t2,0x2
454: 41c30333 sub t1,t1,t3
458: ba03be03 ld t3,-1120(t2) # 1ff0 <.got.plt... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/011_C_2/code.program: file format elf64-littleriscv
Disassembly of section .plt:
00000000000005a0 <.plt>:
5a0: 00002397 auipc t2,0x2
5a4: 41c30333 sub t1,t1,t3
5a8: a183be03 ld t3,-1512(t2) # 1fb8 <.go... |
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
β ... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.section .rodata
.align 3
.LC0:
.string "DDDBA"
.text
.align 1
.globl answer_questions
.type answer_questions, @function
answer_questions:
.... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/012_C_20/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <answer_questions>:
0: 1141 addi sp,sp,-16
2: e422 sd s0,8(sp)
4: 0800 addi s0,sp,1... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/012_C_20/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c8 <deregister_tm_clones>:
3c8: 1141 addi sp,sp,-16
3ca: e422 sd s0,8(sp)
3cc: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/012_C_20/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
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... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl Is_Square
.type Is_Square, @function
Is_Square:
.LFB0:
.cfi_startproc
addi sp,sp,-48
.cfi_def_cfa_offset 48
sd ra,40(sp)
sd... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/013_C_21/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <Is_Square>:
0: 7179 addi sp,sp,-48
2: f406 sd ra,40(sp)
4: f022 sd s0,32(sp)
6:... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/013_C_21/code.so: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000440 <.plt>:
440: 00002397 auipc t2,0x2
444: 41c30333 sub t1,t1,t3
448: bb03be03 ld t3,-1104(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/013_C_21/code.program: file format elf64-littleriscv
Disassembly of section .plt:
00000000000005a0 <.plt>:
5a0: 00002397 auipc t2,0x2
5a4: 41c30333 sub t1,t1,t3
5a8: a183be03 ld t3,-1512(t2) # 1fb8 <.g... |
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... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl find_integers
.type find_integers, @function
find_integers:
.LFB0:
.cfi_startproc
addi sp,sp,-48
.cfi_def_cfa_offset 48
sd s... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/014_C_22/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <find_integers>:
0: 7179 addi sp,sp,-48
2: f422 sd s0,40(sp)
4: 1800 addi s0,sp,48
... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/014_C_22/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c8 <deregister_tm_clones>:
3c8: 1141 addi sp,sp,-16
3ca: e422 sd s0,8(sp)
3cc: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/014_C_22/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
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... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl count_acute_triangles
.type count_acute_triangles, @function
count_acute_triangles:
.LFB6:
.cfi_startproc
addi sp,sp,-160
.cf... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/015_C_23/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <count_acute_triangles>:
0: 7135 addi sp,sp,-160
2: ec86 sd ra,88(sp)
4: e8a2 sd s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/015_C_23/code.so: file format elf64-littleriscv
Disassembly of section .plt:
00000000000005c0 <.plt>:
5c0: 00002397 auipc t2,0x2
5c4: 41c30333 sub t1,t1,t3
5c8: a303be03 ld t3,-1488(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/015_C_23/code.program: file format elf64-littleriscv
Disassembly of section .plt:
00000000000006e0 <.plt>:
6e0: 00002397 auipc t2,0x2
6e4: 41c30333 sub t1,t1,t3
6e8: 8b03be03 ld t3,-1872(t2) # 1f90 <.g... |
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... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.section .rodata
.align 3
.LC0:
.string "Memory allocation failed\n"
.align 3
.LC1:
.string "%d,%c"
.text
.align 1
.globl process_integer_a... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/016_C_24/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <process_integer_and_char>:
0: 7179 addi sp,sp,-48
2: f406 sd ra,40(sp)
4: f022 sd ... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/016_C_24/code.so: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000530 <.plt>:
530: 00002397 auipc t2,0x2
534: 41c30333 sub t1,t1,t3
538: ac03be03 ld t3,-1344(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/016_C_24/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000660 <.plt>:
660: 00002397 auipc t2,0x2
664: 41c30333 sub t1,t1,t3
668: 9383be03 ld t3,-1736(t2) # 1f98 <.g... |
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... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl shift_characters
.type shift_characters, @function
shift_characters:
.LFB0:
.cfi_startproc
addi sp,sp,-48
.cfi_def_cfa_offset... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/017_C_25/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <shift_characters>:
0: 7179 addi sp,sp,-48
2: f406 sd ra,40(sp)
4: f022 sd s0,32(sp... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/017_C_25/code.so: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000450 <.plt>:
450: 00002397 auipc t2,0x2
454: 41c30333 sub t1,t1,t3
458: ba03be03 ld t3,-1120(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/017_C_25/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000570 <.plt>:
570: 00002397 auipc t2,0x2
574: 41c30333 sub t1,t1,t3
578: a483be03 ld t3,-1464(t2) # 1fb8 <.g... |
C_26 | #include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
/*
Classify the integer x based on the following method:
If x is a single-digit number, x belongs to its own class.
Otherwise, sum the digits of x, get a new x, and iterate until the class is determined.
Parameters:
- x (c... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl classify_integer
.type classify_integer, @function
classify_integer:
.LFB0:
.cfi_startproc
addi sp,sp,-64
.cfi_def_cfa_offset... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/018_C_26/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <classify_integer>:
0: 7139 addi sp,sp,-64
2: fc06 sd ra,56(sp)
4: f822 sd s0,48(sp... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/018_C_26/code.so: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000450 <.plt>:
450: 00002397 auipc t2,0x2
454: 41c30333 sub t1,t1,t3
458: ba03be03 ld t3,-1120(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/018_C_26/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000570 <.plt>:
570: 00002397 auipc t2,0x2
574: 41c30333 sub t1,t1,t3
578: a483be03 ld t3,-1464(t2) # 1fb8 <.g... |
C_27 | #include <assert.h>
#include <stdio.h>
/*
Transforms the case of a given letter.
Parameters:
- letter (char): The input letter to be transformed.
Returns:
- char: The letter with its case reversed. If the input is lowercase, it returns the uppercase version,
and if the input is uppercase, it returns the lowerca... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl transform_letter_case
.type transform_letter_case, @function
transform_letter_case:
.LFB0:
.cfi_startproc
addi sp,sp,-32
.cfi... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/019_C_27/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <transform_letter_case>:
0: 1101 addi sp,sp,-32
2: ec22 sd s0,24(sp)
4: 1000 addi s... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/019_C_27/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003d0 <deregister_tm_clones>:
3d0: 1141 addi sp,sp,-16
3d2: e422 sd s0,8(sp)
3d4: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/019_C_27/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
C_28 | #include <stdio.h>
#include <assert.h>
/*
Display the ASCII information for a given character.
β Parameters:
- character (char): The input character for which ASCII information is to be displayed.
β Returns:
- int: corresponding ASCII code
>>> display_ascii_info('A')
65
*/
int display_ascii_info(char char... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl display_ascii_info
.type display_ascii_info, @function
display_ascii_info:
.LFB0:
.cfi_startproc
addi sp,sp,-32
.cfi_def_cfa_... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/020_C_28/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <display_ascii_info>:
0: 1101 addi sp,sp,-32
2: ec22 sd s0,24(sp)
4: 1000 addi s0,s... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/020_C_28/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003d0 <deregister_tm_clones>:
3d0: 1141 addi sp,sp,-16
3d2: e422 sd s0,8(sp)
3d4: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/020_C_28/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
C_29 | #include <assert.h> // Used for testing the function with assertions
#include <math.h> // Not needed for this function
#include <stdbool.h> // Not needed for this function
#include <stdio.h> // Needed for input/output functions
#include <string.h> // Not needed for this function
/*
Evaluate the grade for an input integ... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl evaluate_integer_grade
.type evaluate_integer_grade, @function
evaluate_integer_grade:
.LFB0:
.cfi_startproc
addi sp,sp,-32
.... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/021_C_29/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <evaluate_integer_grade>:
0: 1101 addi sp,sp,-32
2: ec22 sd s0,24(sp)
4: 1000 addi ... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/021_C_29/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003d0 <deregister_tm_clones>:
3d0: 1141 addi sp,sp,-16
3d2: e422 sd s0,8(sp)
3d4: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/021_C_29/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
C_3 | #include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
/*
Calculate the value of the function for a given input.
Parameters:
- x (int): Input value for the function.
Returns:
- double or string: If x is not in the defined domain, returns "Not define".
Otherwise, return... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.section .rodata
.align 3
.LC1:
.string "%.5lf"
.align 3
.LC5:
.string "Not define"
.text
.align 1
.globl calculate_function_value
.type c... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/022_C_3/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <calculate_function_value>:
0: 1101 addi sp,sp,-32
2: ec06 sd ra,24(sp)
4: e822 sd s... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/022_C_3/code.so: file format elf64-littleriscv
Disassembly of section .plt:
00000000000004e0 <.plt>:
4e0: 00002397 auipc t2,0x2
4e4: 41c30333 sub t1,t1,t3
4e8: b103be03 ld t3,-1264(t2) # 1ff0 <.got.plt... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/022_C_3/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000610 <.plt>:
610: 00002397 auipc t2,0x2
614: 41c30333 sub t1,t1,t3
618: 9983be03 ld t3,-1640(t2) # 1fa8 <.go... |
C_30 | #include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
/*
Checks if a three-character string has exactly two characters that are the same.
β
Args:
s (char array): The three-character string to be checked.
β
Returns:
str: Returns 'Yes' if the input has exactly two equal characters, other... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.section .rodata
.align 3
.LC0:
.string "Yes"
.align 3
.LC1:
.string "No"
.text
.align 1
.globl check_two_equal_digits
.type check_two_equ... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/023_C_30/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <check_two_equal_digits>:
0: 1101 addi sp,sp,-32
2: ec22 sd s0,24(sp)
4: 1000 addi ... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/023_C_30/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003d0 <deregister_tm_clones>:
3d0: 1141 addi sp,sp,-16
3d2: e422 sd s0,8(sp)
3d4: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/023_C_30/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
C_31 | #include <assert.h>
#include <stdio.h>
#include <string.h>
/*
Given a string consisting of lowercase English letters, in each round you can change one of the characters to another character. The question is: what is the minimum number of rounds needed to make the string composed of the same character?
For example:
... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl minRoundsToSameChar
.type minRoundsToSameChar, @function
minRoundsToSameChar:
.LFB0:
.cfi_startproc
addi sp,sp,-160
.cfi_def_... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/024_C_31/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <minRoundsToSameChar>:
0: 7135 addi sp,sp,-160
2: ed06 sd ra,152(sp)
4: e922 sd s0,... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/024_C_31/code.so: file format elf64-littleriscv
Disassembly of section .plt:
00000000000004d0 <.plt>:
4d0: 00002397 auipc t2,0x2
4d4: 41c30333 sub t1,t1,t3
4d8: b203be03 ld t3,-1248(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/024_C_31/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000600 <.plt>:
600: 00002397 auipc t2,0x2
604: 41c30333 sub t1,t1,t3
608: 9b03be03 ld t3,-1616(t2) # 1fb0 <.g... |
C_32 | #include <assert.h>
#include <stdio.h>
/*
Given a sequence of n events, each occurring with a periodicity of a_i years, the problem is to find the year Y_n when the n-th event occurs, under the condition that the countdown for event i+1 can only commence in the year immediately following the occurrence of event i.
... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl apocalypseYear
.type apocalypseYear, @function
apocalypseYear:
.LFB0:
.cfi_startproc
addi sp,sp,-48
.cfi_def_cfa_offset 48
s... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/025_C_32/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <apocalypseYear>:
0: 7179 addi sp,sp,-48
2: f422 sd s0,40(sp)
4: 1800 addi s0,sp,48... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/025_C_32/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c8 <deregister_tm_clones>:
3c8: 1141 addi sp,sp,-16
3ca: e422 sd s0,8(sp)
3cc: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/025_C_32/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
C_33 | #include <stdio.h>
#include <assert.h>
#include <stdbool.h>
/*
This problem introduces a new modulo operation, denoted by the symbol "β". When calculating x β y, if x is not a multiple of y, the result is the remainder of x divided by y. Otherwise, divide x by y repeatedly until x is no longer a multiple of y, denoting... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl newModuloFactorial
.type newModuloFactorial, @function
newModuloFactorial:
.LFB0:
.cfi_startproc
addi sp,sp,-80
.cfi_def_cfa_... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/026_C_33/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <newModuloFactorial>:
0: 715d addi sp,sp,-80
2: e486 sd ra,72(sp)
4: e0a2 sd s0,64(... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/026_C_33/code.so: file format elf64-littleriscv
Disassembly of section .plt:
00000000000004d0 <.plt>:
4d0: 00002397 auipc t2,0x2
4d4: 41c30333 sub t1,t1,t3
4d8: b203be03 ld t3,-1248(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/026_C_33/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000600 <.plt>:
600: 00002397 auipc t2,0x2
604: 41c30333 sub t1,t1,t3
608: 9b03be03 ld t3,-1616(t2) # 1fb0 <.g... |
C_34 | #include <stdio.h>
#include <assert.h>
/*
You are given an array a of n integers. You can perform at most one operation where you select three integers i, j, x (1 <= i <= j <= n) and replace all elements from a[i] to a[j] with x, at a cost of (j - i + 1).
Find the minimum cost to make all elements in the array equal.
... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl makeEqualAgain
.type makeEqualAgain, @function
makeEqualAgain:
.LFB0:
.cfi_startproc
addi sp,sp,-64
.cfi_def_cfa_offset 64
s... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/027_C_34/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <makeEqualAgain>:
0: 7139 addi sp,sp,-64
2: fc22 sd s0,56(sp)
4: 0080 addi s0,sp,64... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/027_C_34/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c8 <deregister_tm_clones>:
3c8: 1141 addi sp,sp,-16
3ca: e422 sd s0,8(sp)
3cc: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/027_C_34/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
C_35 | #include <assert.h>
#include <stdio.h>
/*
Given a sequence of N piles of stones numbered from 1 to N, with each pile containing a positive number of stones, determine the winner of a game played by Charlie and Dan. Charlie goes first, and they take turns moving a positive number of stones from the leftmost non-empty pi... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.section .rodata
.align 3
.LC0:
.string "Charlie"
.align 3
.LC1:
.string "Dan"
.text
.align 1
.globl gameWinner
.type gameWinner, @functio... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/028_C_35/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <gameWinner>:
0: 7179 addi sp,sp,-48
2: f422 sd s0,40(sp)
4: 1800 addi s0,sp,48
... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/028_C_35/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c8 <deregister_tm_clones>:
3c8: 1141 addi sp,sp,-16
3ca: e422 sd s0,8(sp)
3cc: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/028_C_35/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
C_36 | #include <assert.h>
#include <stdio.h>
/*
Given n doors arranged in a circle, the player starts in front of door 1. Each turn, the player can choose a number i and pay a cost C_i to move i steps to the right and then open the door at that position. It is guaranteed that C_i >= C_{i+1} for 1 <= i < n.
The task is to det... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl minTotalCost
.type minTotalCost, @function
minTotalCost:
.LFB0:
.cfi_startproc
addi sp,sp,-32
.cfi_def_cfa_offset 32
sd s0,2... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/029_C_36/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <minTotalCost>:
0: 1101 addi sp,sp,-32
2: ec22 sd s0,24(sp)
4: 1000 addi s0,sp,32
... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/029_C_36/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c8 <deregister_tm_clones>:
3c8: 1141 addi sp,sp,-16
3ca: e422 sd s0,8(sp)
3cc: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/029_C_36/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
C_37 | #include <assert.h>
#include <stdio.h>
/*
Given a sequence of student IDs entering a classroom, where the IDs range from 0 to N-1, calculate the total number of handshakes that occur. Each student will shake hands with every student already in the classroom with a smaller ID number. The sequence represents the order in... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl countHandshakes
.type countHandshakes, @function
countHandshakes:
.LFB0:
.cfi_startproc
addi sp,sp,-16
.cfi_def_cfa_offset 16... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/030_C_37/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <countHandshakes>:
0: 1141 addi sp,sp,-16
2: e406 sd ra,8(sp)
4: e022 sd s0,0(sp)
... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/030_C_37/code.so: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000510 <.plt>:
510: 00002397 auipc t2,0x2
514: 41c30333 sub t1,t1,t3
518: ae03be03 ld t3,-1312(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/030_C_37/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000640 <.plt>:
640: 00002397 auipc t2,0x2
644: 41c30333 sub t1,t1,t3
648: 9683be03 ld t3,-1688(t2) # 1fa8 <.g... |
C_38 | #include <assert.h>
#include <stdio.h>
/*
Given n positive integers representing the count of each number from 1 to n,
find the maximum sum of the mode (most frequent element) for all prefixes of
a sequence constructed from these numbers. The mode is the largest number among
the most frequent elements in a sequence.... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl maxModeSum
.type maxModeSum, @function
maxModeSum:
.LFB0:
.cfi_startproc
addi sp,sp,-1392
.cfi_def_cfa_offset 1392
sd ra,138... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/031_C_38/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <maxModeSum>:
0: a9010113 addi sp,sp,-1392
4: 56113423 sd ra,1384(sp)
8: 56813023 sd s0,1376(sp)
c... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/031_C_38/code.so: file format elf64-littleriscv
Disassembly of section .plt:
00000000000004d0 <.plt>:
4d0: 00002397 auipc t2,0x2
4d4: 41c30333 sub t1,t1,t3
4d8: b203be03 ld t3,-1248(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/031_C_38/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000600 <.plt>:
600: 00002397 auipc t2,0x2
604: 41c30333 sub t1,t1,t3
608: 9b03be03 ld t3,-1616(t2) # 1fb0 <.g... |
C_39 | #include <assert.h>
#include <stdio.h>
/*
Given an array A of integers, the task is to calculate the sum of the XOR of all subarrays.
A subarray is defined by a pair of indices (L, R) such that 1 <= L <= R <= n, where n is the size of the array.
The XOR sum of a subarray is the result of XORing all elements from L to R... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl sumOfXorSubarrays
.type sumOfXorSubarrays, @function
sumOfXorSubarrays:
.LFB0:
.cfi_startproc
addi sp,sp,-48
.cfi_def_cfa_off... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/032_C_39/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <sumOfXorSubarrays>:
0: 7179 addi sp,sp,-48
2: f406 sd ra,40(sp)
4: f022 sd s0,32(s... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/032_C_39/code.so: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000510 <.plt>:
510: 00002397 auipc t2,0x2
514: 41c30333 sub t1,t1,t3
518: ae03be03 ld t3,-1312(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/032_C_39/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000640 <.plt>:
640: 00002397 auipc t2,0x2
644: 41c30333 sub t1,t1,t3
648: 9683be03 ld t3,-1688(t2) # 1fa8 <.g... |
C_4 | #include <assert.h>
#include <stdio.h>
/*
Find the maximum and minimum of three distinct integers.
Parameters:
a (int): The first integer.
b (int): The second integer.
c (int): The third integer.
Returns:
Tuple[int, int]: A tuple is not a concept in C; instead, we will return by reference.
>>> Example call:
int max,... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl find_max_min
.type find_max_min, @function
find_max_min:
.LFB0:
.cfi_startproc
addi sp,sp,-48
.cfi_def_cfa_offset 48
sd s0,4... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/033_C_4/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <find_max_min>:
0: 7179 addi sp,sp,-48
2: f422 sd s0,40(sp)
4: 1800 addi s0,sp,48
... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/033_C_4/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c8 <deregister_tm_clones>:
3c8: 1141 addi sp,sp,-16
3ca: e422 sd s0,8(sp)
3cc: 0800 addi s0,... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/033_C_4/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.go... |
C_40 | #include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
/*
Given two positive integers n and k, find the number of positive integers x, where 1 <= x <= n, that can be expressed as x = a^b with a and b being positive integers and b >= k.
Different legal representations of the sa... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl countPowerNumbers
.type countPowerNumbers, @function
countPowerNumbers:
.LFB6:
.cfi_startproc
addi sp,sp,-96
.cfi_def_cfa_off... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/034_C_40/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <countPowerNumbers>:
0: 711d addi sp,sp,-96
2: ec86 sd ra,88(sp)
4: e8a2 sd s0,80(s... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/034_C_40/code.so: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000520 <.plt>:
520: 00002397 auipc t2,0x2
524: 41c30333 sub t1,t1,t3
528: ad03be03 ld t3,-1328(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/034_C_40/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000640 <.plt>:
640: 00002397 auipc t2,0x2
644: 41c30333 sub t1,t1,t3
648: 9603be03 ld t3,-1696(t2) # 1fa0 <.g... |
C_41 | #include <stdio.h>
#include <assert.h>
/*
Given three integers n, m, and k, find the number of sequences consisting of n '(' and m ')', such that the longest balanced subsequence is of length 2 * k. The result should be calculated modulo 1,000,000,007 (10^9 + 7).
For example:
>>> countBalancedSubsequences(2, 2, 2)... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl countBalancedSubsequences
.type countBalancedSubsequences, @function
countBalancedSubsequences:
.LFB0:
.cfi_startproc
addi sp,... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/035_C_41/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <countBalancedSubsequences>:
0: 715d addi sp,sp,-80
2: e4a2 sd s0,72(sp)
4: 0880 ad... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/035_C_41/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003d0 <deregister_tm_clones>:
3d0: 1141 addi sp,sp,-16
3d2: e422 sd s0,8(sp)
3d4: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/035_C_41/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
C_42 | #include <stdio.h>
#include <assert.h>
/*
Given a rectangle paper of size n x m placed on a plane Cartesian coordinate system with its bottom-left corner at (0,0) and top-right corner at (n,m),
you need to calculate the expected number of operations to cut the paper such that the remaining area is less than k.
In eac... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl expectedCuts
.type expectedCuts, @function
expectedCuts:
.LFB0:
.cfi_startproc
addi sp,sp,-80
.cfi_def_cfa_offset 80
sd ra,7... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/036_C_42/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <expectedCuts>:
0: 715d addi sp,sp,-80
2: e486 sd ra,72(sp)
4: e0a2 sd s0,64(sp)
... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/036_C_42/code.so: file format elf64-littleriscv
Disassembly of section .plt:
00000000000004d0 <.plt>:
4d0: 00002397 auipc t2,0x2
4d4: 41c30333 sub t1,t1,t3
4d8: b203be03 ld t3,-1248(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/036_C_42/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000600 <.plt>:
600: 00002397 auipc t2,0x2
604: 41c30333 sub t1,t1,t3
608: 9b03be03 ld t3,-1616(t2) # 1fb0 <.g... |
C_43 | #include <stdio.h>
#include <assert.h>
#include <string.h>
/*
Given a permutation q of n elements and an integer k, find the number of permutations p of n elements such that f(p) = q, where f(p) is the lexicographically smallest permutation that can be obtained by dividing p into exactly k non-empty contiguous segments... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl countPermutations
.type countPermutations, @function
countPermutations:
.LFB0:
.cfi_startproc
addi sp,sp,-496
.cfi_def_cfa_of... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/037_C_43/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <countPermutations>:
0: 7141 addi sp,sp,-496
2: f786 sd ra,488(sp)
4: f3a2 sd s0,48... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/037_C_43/code.so: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000510 <.plt>:
510: 00002397 auipc t2,0x2
514: 41c30333 sub t1,t1,t3
518: ae03be03 ld t3,-1312(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/037_C_43/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000640 <.plt>:
640: 00003397 auipc t2,0x3
644: 41c30333 sub t1,t1,t3
648: 9683be03 ld t3,-1688(t2) # 2fa8 <.g... |
C_44 | #include <stdio.h>
#include <assert.h>
#include <stdbool.h>
/*
Given an array of n distinct integers representing the heights of Kira's friends,
find the number of ways to choose a triplet (a, b, c) such that the greatest common divisor (GCD)
of the maximum and minimum values of the triplet is 1.
>>> countTriplet... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl countTriplets
.type countTriplets, @function
countTriplets:
.LFB0:
.cfi_startproc
addi sp,sp,-80
.cfi_def_cfa_offset 80
sd s... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/038_C_44/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <countTriplets>:
0: 715d addi sp,sp,-80
2: e4a2 sd s0,72(sp)
4: 0880 addi s0,sp,80
... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/038_C_44/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c8 <deregister_tm_clones>:
3c8: 1141 addi sp,sp,-16
3ca: e422 sd s0,8(sp)
3cc: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/038_C_44/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
C_45 | #include <stdio.h>
#include <assert.h>
/*
You are given a 1 by n pixel image, where each pixel has a color represented by an integer. You can perform an operation where you pick a color and change all connected pixels of the same color to the chosen color. Two pixels are connected if they are adjacent and have the same... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl minOperations
.type minOperations, @function
minOperations:
.LFB0:
.cfi_startproc
addi sp,sp,-336
.cfi_def_cfa_offset 336
sd... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/039_C_45/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <minOperations>:
0: 714d addi sp,sp,-336
2: e686 sd ra,328(sp)
4: e2a2 sd s0,320(sp... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/039_C_45/code.so: file format elf64-littleriscv
Disassembly of section .plt:
00000000000004d0 <.plt>:
4d0: 00002397 auipc t2,0x2
4d4: 41c30333 sub t1,t1,t3
4d8: b203be03 ld t3,-1248(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/039_C_45/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000600 <.plt>:
600: 00002397 auipc t2,0x2
604: 41c30333 sub t1,t1,t3
608: 9b03be03 ld t3,-1616(t2) # 1fb0 <.g... |
C_46 | #include <assert.h>
#include <stdio.h>
/*
Given an integer n, write a function to compute the sum of all numbers from 1 to n that are multiples of either 3 or 5. If a number is a multiple of both 3 and 5, it should only be counted once.
For example:
>>> sumOfMultiples(10)
33 // (3 + 5 + 6 + 9 + 10)
*/
int sumOf... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl sumOfMultiples
.type sumOfMultiples, @function
sumOfMultiples:
.LFB0:
.cfi_startproc
addi sp,sp,-48
.cfi_def_cfa_offset 48
s... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/040_C_46/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <sumOfMultiples>:
0: 7179 addi sp,sp,-48
2: f422 sd s0,40(sp)
4: 1800 addi s0,sp,48... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/040_C_46/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c8 <deregister_tm_clones>:
3c8: 1141 addi sp,sp,-16
3ca: e422 sd s0,8(sp)
3cc: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/040_C_46/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
C_47 | #include <assert.h>
#include <ctype.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
/*
Determine if a given string is a palindrome. A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backward (ignoring spaces, punctuation, and capitalization).
>>> ... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl isPalindrome
.type isPalindrome, @function
isPalindrome:
.LFB0:
.cfi_startproc
addi sp,sp,-64
.cfi_def_cfa_offset 64
sd ra,5... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/041_C_47/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <isPalindrome>:
0: 7139 addi sp,sp,-64
2: fc06 sd ra,56(sp)
4: f822 sd s0,48(sp)
... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/041_C_47/code.so: file format elf64-littleriscv
Disassembly of section .plt:
00000000000004c0 <.plt>:
4c0: 00002397 auipc t2,0x2
4c4: 41c30333 sub t1,t1,t3
4c8: b303be03 ld t3,-1232(t2) # 1ff0 <.got.pl... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/041_C_47/code.program: file format elf64-littleriscv
Disassembly of section .plt:
00000000000005f0 <.plt>:
5f0: 00002397 auipc t2,0x2
5f4: 41c30333 sub t1,t1,t3
5f8: 9b83be03 ld t3,-1608(t2) # 1fa8 <.g... |
C_48 | #include <assert.h>
#include <stdio.h>
/*
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.
For example:
>>> addDigits(38)
2
Because 3 + 8 = 11, and 1 + 1 = 2. Since 2 has only one digit, 2 is the result.
*/
int addDigits(int num){
while (num >= 10) {
... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl addDigits
.type addDigits, @function
addDigits:
.LFB0:
.cfi_startproc
addi sp,sp,-48
.cfi_def_cfa_offset 48
sd s0,40(sp)
.c... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/042_C_48/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <addDigits>:
0: 7179 addi sp,sp,-48
2: f422 sd s0,40(sp)
4: 1800 addi s0,sp,48
6... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/042_C_48/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c0 <deregister_tm_clones>:
3c0: 1141 addi sp,sp,-16
3c2: e422 sd s0,8(sp)
3c4: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/042_C_48/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
C_49 | #include <assert.h>
#include <stdbool.h>
#include <stdio.h>
/*
You are playing a game called Nim. In this game, you start with a pile of n stones, and you and your opponent take turns to remove 1 to 3 stones from the pile. The one who removes the last stone wins the game. Given the number of stones n, determine if you ... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl canWinNim
.type canWinNim, @function
canWinNim:
.LFB0:
.cfi_startproc
addi sp,sp,-32
.cfi_def_cfa_offset 32
sd s0,24(sp)
.c... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/043_C_49/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <canWinNim>:
0: 1101 addi sp,sp,-32
2: ec22 sd s0,24(sp)
4: 1000 addi s0,sp,32
6... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/043_C_49/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c0 <deregister_tm_clones>:
3c0: 1141 addi sp,sp,-16
3c2: e422 sd s0,8(sp)
3c4: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/043_C_49/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
C_5 | #include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
/*
Calculate the distance between two points A (xa, ya) and B (xb, yb).
Parameters:
- xa (double): x-coordinate of point A.
- ya (double): y-coordinate of point A.
- xb (double): x-coordinate of point B.
- yb (double):... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl calculate_distance
.type calculate_distance, @function
calculate_distance:
.LFB0:
.cfi_startproc
addi sp,sp,-48
.cfi_def_cfa_... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/044_C_5/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <calculate_distance>:
0: 7179 addi sp,sp,-48
2: f406 sd ra,40(sp)
4: f022 sd s0,32(s... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/044_C_5/code.so: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000450 <.plt>:
450: 00002397 auipc t2,0x2
454: 41c30333 sub t1,t1,t3
458: ba03be03 ld t3,-1120(t2) # 1ff0 <.got.plt... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/044_C_5/code.program: file format elf64-littleriscv
Disassembly of section .plt:
00000000000005a0 <.plt>:
5a0: 00002397 auipc t2,0x2
5a4: 41c30333 sub t1,t1,t3
5a8: a183be03 ld t3,-1512(t2) # 1fb8 <.go... |
C_50 | #include <assert.h>
#include <stdio.h>
/*
Given two integers a and b, return the sum if the sum is even, or return the product of a and b if the sum is odd.
>>> evenSumOrOddProduct(2, 3)
6
>>> evenSumOrOddProduct(5, 5)
10
*/
int evenSumOrOddProduct(int a, int b);int evenSumOrOddProduct(int a, int b) {
... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl evenSumOrOddProduct
.type evenSumOrOddProduct, @function
evenSumOrOddProduct:
.LFB0:
.cfi_startproc
addi sp,sp,-48
.cfi_def_c... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/045_C_50/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <evenSumOrOddProduct>:
0: 7179 addi sp,sp,-48
2: f422 sd s0,40(sp)
4: 1800 addi s0,... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/045_C_50/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003d0 <deregister_tm_clones>:
3d0: 1141 addi sp,sp,-16
3d2: e422 sd s0,8(sp)
3d4: 0800 addi s0... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/045_C_50/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.g... |
C_6 | #include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
/*
Find the factorial of N and take the modulo 10007 of the result.
β Parameters:
- N (int): An integer representing the input value (N <= 10000).
β Returns:
β int: The result after taking the modulo 10007 of the ... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl process_request
.type process_request, @function
process_request:
.LFB0:
.cfi_startproc
addi sp,sp,-32
.cfi_def_cfa_offset 32... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/046_C_6/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <process_request>:
0: 1101 addi sp,sp,-32
2: ec06 sd ra,24(sp)
4: e822 sd s0,16(sp)
... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/046_C_6/code.so: file format elf64-littleriscv
Disassembly of section .plt:
00000000000004d0 <.plt>:
4d0: 00002397 auipc t2,0x2
4d4: 41c30333 sub t1,t1,t3
4d8: b203be03 ld t3,-1248(t2) # 1ff0 <.got.plt... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/046_C_6/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000600 <.plt>:
600: 00002397 auipc t2,0x2
604: 41c30333 sub t1,t1,t3
608: 9b03be03 ld t3,-1616(t2) # 1fb0 <.go... |
C_7 | #include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
/*
Calculate the area of a triangle given its base and height.
β Parameters:
- base (int): The base length of the triangle.
- height (int): The height of the triangle.
β Returns:
β float: The calculated area of th... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl calculate_triangle_area
.type calculate_triangle_area, @function
calculate_triangle_area:
.LFB0:
.cfi_startproc
addi sp,sp,-32... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/047_C_7/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <calculate_triangle_area>:
0: 1101 addi sp,sp,-32
2: ec22 sd s0,24(sp)
4: 1000 addi ... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/047_C_7/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003d0 <deregister_tm_clones>:
3d0: 1141 addi sp,sp,-16
3d2: e422 sd s0,8(sp)
3d4: 0800 addi s0,... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/047_C_7/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.go... |
C_8 | #include <assert.h>
#include <stdio.h>
/*
Calculate the Hamming distance between two integers in binary representation.
β Parameters:
- x (int): The first positive integer (x <= 1,000,000,000).
- y (int): The second positive integer (y <= 1,000,000,000).
β Returns:
β int: The Hamming distance between x and y, ... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl hamming_distance
.type hamming_distance, @function
hamming_distance:
.LFB0:
.cfi_startproc
addi sp,sp,-48
.cfi_def_cfa_offset... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/048_C_8/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <hamming_distance>:
0: 7179 addi sp,sp,-48
2: f422 sd s0,40(sp)
4: 1800 addi s0,sp,4... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/048_C_8/code.so: file format elf64-littleriscv
Disassembly of section .text:
00000000000003c8 <deregister_tm_clones>:
3c8: 1141 addi sp,sp,-16
3ca: e422 sd s0,8(sp)
3cc: 0800 addi s0,... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/048_C_8/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000540 <.plt>:
540: 00002397 auipc t2,0x2
544: 41c30333 sub t1,t1,t3
548: a803be03 ld t3,-1408(t2) # 1fc0 <.go... |
C_9 | #include <assert.h>
#include <stdarg.h>
/*
Count the number of odd integers in a given list of numbers.
Parameters:
- count (int): The count of numbers to evaluate.
- ... (int): A sequence of integers.
Returns:
int: The count of odd numbers in the input list.
>>> count_odd_numbers(5, 1, 4, 3, 2, 5)
... | .file "source.c"
.option pic
.attribute arch, "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_zicsr2p0_zifencei2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.align 1
.globl count_odd_numbers
.type count_odd_numbers, @function
count_odd_numbers:
.LFB0:
.cfi_startproc
addi sp,sp,-128
.cfi_def_cfa_of... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/049_C_9/code.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <count_odd_numbers>:
0: 7119 addi sp,sp,-128
2: fc06 sd ra,56(sp)
4: f822 sd s0,48(s... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/049_C_9/code.so: file format elf64-littleriscv
Disassembly of section .plt:
00000000000004d0 <.plt>:
4d0: 00002397 auipc t2,0x2
4d4: 41c30333 sub t1,t1,t3
4d8: b203be03 ld t3,-1248(t2) # 1ff0 <.got.plt... |
/home/alexanderpretko/CodeGeneration/MCEval/generated_mceval_riscv64_linux/O0/049_C_9/code.program: file format elf64-littleriscv
Disassembly of section .plt:
0000000000000600 <.plt>:
600: 00002397 auipc t2,0x2
604: 41c30333 sub t1,t1,t3
608: 9b03be03 ld t3,-1616(t2) # 1fb0 <.go... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.