data_source stringclasses 2
values | prompt listlengths 1 1 | ability stringclasses 1
value | reward_model dict | extra_info dict |
|---|---|---|---|---|
train | [
{
"content": "Given the following C code and unoptimized assembly code, your task is to generate highly optimized assembly code.\nC Code:\n \n#include<stdio.h>\nint main(){\nint n,m,i;\nscanf(\"%d %d\",&n,&m);\nfor(i=0;i<n;i++)scanf(\"%*d\");\nprintf(\"%d\\n\",(n-2)/(m-1)+1);\nreturn 0;\n}\n\nUnoptimized Assemb... | code | {
"ground_truth": "\t.file\t\"temp.c\"\n\t.text\n\t.section\t.rodata.str1.1,\"aMS\",@progbits,1\n.LC0:\n\t.string\t\"%d %d\"\n.LC1:\n\t.string\t\"%*d\"\n.LC2:\n\t.string\t\"%d\\n\"\n\t.section\t.text.startup,\"ax\",@progbits\n\t.p2align 4\n\t.globl\tmain\n\t.type\tmain, @function\nmain:\n.LFB23:\n\t.cfi_startproc\n\t... | {
"answer": "\t.file\t\"temp.c\"\n\t.text\n\t.section\t.rodata.str1.1,\"aMS\",@progbits,1\n.LC0:\n\t.string\t\"%d %d\"\n.LC1:\n\t.string\t\"%*d\"\n.LC2:\n\t.string\t\"%d\\n\"\n\t.section\t.text.startup,\"ax\",@progbits\n\t.p2align 4\n\t.globl\tmain\n\t.type\tmain, @function\nmain:\n.LFB23:\n\t.cfi_startproc\n\tendbr6... |
train | [
{
"content": "Given the following C code and unoptimized assembly code, your task is to generate highly optimized assembly code.\nC Code:\n \ni;y;z;main(a){for(;~scanf(\"%d\",&a);)i++?a%2?z--:a%4?y++:z++:0;puts(z<0-!y?\"No\":\"Yes\");}\n\nUnoptimized Assembly Code:\n\n\t.file\t\"temp.c\"\n\t.text\n\t.globl\ti\n... | code | {
"ground_truth": "\t.file\t\"temp.c\"\n\t.text\n\t.section\t.rodata.str1.1,\"aMS\",@progbits,1\n.LC0:\n\t.string\t\"No\"\n.LC1:\n\t.string\t\"Yes\"\n.LC2:\n\t.string\t\"%d\"\n\t.section\t.text.startup,\"ax\",@progbits\n\t.p2align 4\n\t.globl\tmain\n\t.type\tmain, @function\nmain:\n.LFB0:\n\t.cfi_startproc\n\tendbr64... | {
"answer": "\t.file\t\"temp.c\"\n\t.text\n\t.section\t.rodata.str1.1,\"aMS\",@progbits,1\n.LC0:\n\t.string\t\"No\"\n.LC1:\n\t.string\t\"Yes\"\n.LC2:\n\t.string\t\"%d\"\n\t.section\t.text.startup,\"ax\",@progbits\n\t.p2align 4\n\t.globl\tmain\n\t.type\tmain, @function\nmain:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpu... |
train | [
{
"content": "Given the following C code and unoptimized assembly code, your task is to generate highly optimized assembly code.\nC Code:\n \n#include <stdio.h>\n\n#define MOD_BY 998244353\n\nint add(int a, int b) {\n\treturn a + b - MOD_BY * (a + b >= MOD_BY);\n}\n\nint mul(int a, int b) {\n\tint r = 0;\n\twhi... | code | {
"ground_truth": "\t.file\t\"temp.c\"\n\t.text\n\t.p2align 4\n\t.globl\tadd\n\t.type\tadd, @function\nadd:\n.LFB23:\n\t.cfi_startproc\n\tendbr64\n\tleal\t(%rdi,%rsi), %eax\n\tleal\t-998244353(%rax), %edx\n\tcmpl\t$998244352, %eax\n\tcmovg\t%edx, %eax\n\tret\n\t.cfi_endproc\n.LFE23:\n\t.size\tadd, .-add\n\t.p2align 4... | {
"answer": "\t.file\t\"temp.c\"\n\t.text\n\t.p2align 4\n\t.globl\tadd\n\t.type\tadd, @function\nadd:\n.LFB23:\n\t.cfi_startproc\n\tendbr64\n\tleal\t(%rdi,%rsi), %eax\n\tleal\t-998244353(%rax), %edx\n\tcmpl\t$998244352, %eax\n\tcmovg\t%edx, %eax\n\tret\n\t.cfi_endproc\n.LFE23:\n\t.size\tadd, .-add\n\t.p2align 4\n\t.g... |
train | [
{
"content": "Given the following C code and unoptimized assembly code, your task is to generate highly optimized assembly code.\nC Code:\n \n#include<stdio.h>\nint main()\n{\n int n;\n scanf(\"%d\",&n);\n if(n==1)\n printf(\"0\\n\");\n else if(n==0)\n printf(\"1\\n\");\n return 0;\... | code | {
"ground_truth": "\t.file\t\"temp.c\"\n\t.text\n\t.section\t.rodata.str1.1,\"aMS\",@progbits,1\n.LC0:\n\t.string\t\"%d\"\n.LC1:\n\t.string\t\"0\"\n.LC2:\n\t.string\t\"1\"\n\t.section\t.text.startup,\"ax\",@progbits\n\t.p2align 4\n\t.globl\tmain\n\t.type\tmain, @function\nmain:\n.LFB23:\n\t.cfi_startproc\n\tendbr64\n... | {
"answer": "\t.file\t\"temp.c\"\n\t.text\n\t.section\t.rodata.str1.1,\"aMS\",@progbits,1\n.LC0:\n\t.string\t\"%d\"\n.LC1:\n\t.string\t\"0\"\n.LC2:\n\t.string\t\"1\"\n\t.section\t.text.startup,\"ax\",@progbits\n\t.p2align 4\n\t.globl\tmain\n\t.type\tmain, @function\nmain:\n.LFB23:\n\t.cfi_startproc\n\tendbr64\n\tsubq... |
train | [
{
"content": "Given the following C code and unoptimized assembly code, your task is to generate highly optimized assembly code.\nC Code:\n \n#include<stdio.h>\n#include<string.h>\nint main(void){\nchar s[11];\n scanf(\"%s\",&s);\n \n for(int i=0;i<strlen(s);i+=2){\n if(s[i]!='h'||s[i+1]!='i'){\nprintf(\"No... | code | {
"ground_truth": "\t.file\t\"temp.c\"\n\t.text\n\t.section\t.rodata.str1.1,\"aMS\",@progbits,1\n.LC0:\n\t.string\t\"%s\"\n.LC1:\n\t.string\t\"No\"\n.LC2:\n\t.string\t\"Yes\"\n\t.section\t.text.startup,\"ax\",@progbits\n\t.p2align 4\n\t.globl\tmain\n\t.type\tmain, @function\nmain:\n.LFB35:\n\t.cfi_startproc\n\tendbr6... | {
"answer": "\t.file\t\"temp.c\"\n\t.text\n\t.section\t.rodata.str1.1,\"aMS\",@progbits,1\n.LC0:\n\t.string\t\"%s\"\n.LC1:\n\t.string\t\"No\"\n.LC2:\n\t.string\t\"Yes\"\n\t.section\t.text.startup,\"ax\",@progbits\n\t.p2align 4\n\t.globl\tmain\n\t.type\tmain, @function\nmain:\n.LFB35:\n\t.cfi_startproc\n\tendbr64\n\tp... |
train | [{"content":"Given the following C code and unoptimized assembly code, your task is to generate high(...TRUNCATED) | code | {"ground_truth":"\t.file\t\"temp.c\"\n\t.text\n\t.section\t.rodata.str1.1,\"aMS\",@progbits,1\n.LC0:(...TRUNCATED) | {"answer":"\t.file\t\"temp.c\"\n\t.text\n\t.section\t.rodata.str1.1,\"aMS\",@progbits,1\n.LC0:\n\t.s(...TRUNCATED) |
train | [{"content":"Given the following C code and unoptimized assembly code, your task is to generate high(...TRUNCATED) | code | {"ground_truth":"\t.file\t\"temp.c\"\n\t.text\n\t.section\t.rodata.str1.1,\"aMS\",@progbits,1\n.LC0:(...TRUNCATED) | {"answer":"\t.file\t\"temp.c\"\n\t.text\n\t.section\t.rodata.str1.1,\"aMS\",@progbits,1\n.LC0:\n\t.s(...TRUNCATED) |
train | [{"content":"Given the following C code and unoptimized assembly code, your task is to generate high(...TRUNCATED) | code | {"ground_truth":"\t.file\t\"temp.c\"\n\t.text\n\t.p2align 4\n\t.type\tmerge_sort.part.0, @function\n(...TRUNCATED) | {"answer":"\t.file\t\"temp.c\"\n\t.text\n\t.p2align 4\n\t.type\tmerge_sort.part.0, @function\nmerge_(...TRUNCATED) |
train | [{"content":"Given the following C code and unoptimized assembly code, your task is to generate high(...TRUNCATED) | code | {"ground_truth":"\t.file\t\"temp.c\"\n\t.text\n\t.section\t.rodata.str1.1,\"aMS\",@progbits,1\n.LC0:(...TRUNCATED) | {"answer":"\t.file\t\"temp.c\"\n\t.text\n\t.section\t.rodata.str1.1,\"aMS\",@progbits,1\n.LC0:\n\t.s(...TRUNCATED) |
train | [{"content":"Given the following C code and unoptimized assembly code, your task is to generate high(...TRUNCATED) | code | {"ground_truth":"\t.file\t\"temp.c\"\n\t.text\n\t.section\t.rodata.str1.1,\"aMS\",@progbits,1\n.LC0:(...TRUNCATED) | {"answer":"\t.file\t\"temp.c\"\n\t.text\n\t.section\t.rodata.str1.1,\"aMS\",@progbits,1\n.LC0:\n\t.s(...TRUNCATED) |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 40