Dataset Viewer
Auto-converted to Parquet Duplicate
index
int64
0
49
generation_index
int64
0
0
description
stringlengths
266
1.51k
prompt
stringlengths
3.64k
58.4k
gimple
stringlengths
723
12k
source
stringlengths
143
3.58k
generated_ir
stringlengths
0
25.7k
ground_truth_ir
stringlengths
2.44k
39.7k
compile_error
stringlengths
108
459
0
0
A well-known art union called "Kalevich is Alive!" manufactures objects d'art (pictures). The union consists of n painters who decided to organize their work as follows. Each painter uses only the color that was assigned to him. The colors are distinct for all painters. Let's assume that the first painter uses color 1...
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|> <|im_start|>user You were asked the following task: TASK: Convert the following GIMPLE IR to corresponding LLVM IR. Do not apply any optimizations. Output LLVM IR only. ```gimple int main () { int D.2284; { int i...
int main () { int D.2284; { int i; int j; int m; int n; int sum; int num; int a[50010][10]; try { sum = 0; num = 0; scanf ("%d %d", &m, &n); i = 0; goto <D.2252>; <D.2251>: j = 0; goto <D.2250>; <D.2249>:...
#include<stdio.h> #include<stdlib.h> #include<string.h> main() { int i,j,m,n,sum=0,num=0,a[50010][10]; scanf("%d %d",&m,&n); for(i=0;i<m;i++) for(j=0;j<n;j++) scanf("%d",&a[i][j]); for(j=0;j<n;j++) for(i=0;i<m;i++) { if(j==0&&i!=0) a[i][j]+...
; ModuleID = 'main' source_filename = "main" @.str = private unnamed_addr constant [5 x i8] c"%d %d\00", align 1 @.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @.str.2 = private unnamed_addr constant [2 x i8] c"\n\00", align 1 @.str.3 = private unnamed_addr constant [2 x i8] c" \00", align 1 defin...
; ModuleID = '/dev/shm/tmpns3we5am.c' source_filename = "/dev/shm/tmpns3we5am.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1 @.str.1 = private unnamed_addr constant...
/scratch/tmp/26202062/tmpqmvj91a6.ll:4:48: error: constant expression type mismatch: got type '[6 x i8]' but expected '[5 x i8]' @.str = private unnamed_addr constant [5 x i8] c"%d %d\00", align 1 ^ 1 error generated.
1
0
Kirito is stuck on a level of the MMORPG he is playing now. To move on in the game, he's got to defeat all n dragons that live on this level. Kirito and the dragons have strength, which is represented by an integer. In the duel between two opponents the duel's outcome is determined by their strength. Initially, Kirito'...
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|> <|im_start|>user You were asked the following task: TASK: Convert the following GIMPLE IR to corresponding LLVM IR. Do not apply any optimizations. Output LLVM IR only. ```gimple int main () { int D.2062; { int s...
int main () { int D.2062; { int s; int n; int cunt; int d_str[1000]; int d_bou[1000]; try { cunt = 0; scanf ("%d %d", &s, &n); { int i; i = 0; goto <D.2039>; <D.2038>: _1 = &d_bou[i]; _2 = &d_str[i];...
/* * main.c * * Created on: Sep 29, 2016 * Author: chrollo */ #include<stdio.h> int main() { int s,n,cunt=0; scanf("%d %d",&s,&n); int d_str[1000]; int d_bou[1000]; for(int i=0;i<n;i++) scanf("%d %d",&d_str[i],&d_bou[i]); for(int j=0;j<n;j++) for(int i=0;i<n;i++) if(s>d_str[i] && d_str[i]!=-1) ...
; ModuleID = 'main' source_filename = "main" @.str = private unnamed_addr constant [4 x i8] c"%d %d\00", align 1 @.str1 = private unnamed_addr constant [4 x i8] c"%d %d\00", align 1 @.str2 = private unnamed_addr constant [4 x i8] c"YES\0A\00", align 1 @.str3 = private unnamed_addr constant [4 x i8] c"NO\0A\00", align ...
; ModuleID = '/dev/shm/tmphcphiqfh.c' source_filename = "/dev/shm/tmphcphiqfh.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1 @.str.1 = private unnamed_addr constant...
/scratch/tmp/26202062/tmp3jr_00y0.ll:4:48: error: constant expression type mismatch: got type '[6 x i8]' but expected '[4 x i8]' @.str = private unnamed_addr constant [4 x i8] c"%d %d\00", align 1 ^ 1 error generated.
2
0
You're given a row with $$$n$$$ chairs. We call a seating of people "maximal" if the two following conditions hold: 1. There are no neighbors adjacent to anyone seated. 2. It's impossible to seat one more person without violating the first rule. The seating is given as a string consisting of zeros and ones ($$$0$$$ m...
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|> <|im_start|>user You were asked the following task: TASK: Convert the following GIMPLE IR to corresponding LLVM IR. Do not apply any optimizations. Output LLVM IR only. ```gimple int main () { int n.0; sizetype D.2039...
int main () { int n.0; sizetype D.2039; bitsizetype D.2040; sizetype D.2041; bitsizetype D.2042; sizetype D.2043; char[0:D.2039] * str.1; void * saved_stack.6; int D.2063; { int n; int i; int flag; char str[0:D.2039] [value-expr: *str.1]; extern int gets (); saved_stack.6 =...
#include <stdio.h> int main() { int n,i,flag=1; scanf("%d",&n); char str[n]; getchar(); gets(str); for(i=0;i<n;i++) { if(str[i]=='1'&&str[i+1]=='1')//solid { flag=0; break; } else if(str[i]=='0'&&str[i+1]=='0'&&str[i+2]=='0') { ...
; ModuleID = 'main' source_filename = "main" declare i32 @scanf(i8*, ...) declare i32 @gets(i8*) declare i32 @printf(i8*, ...) declare i8* @__builtin_stack_save() declare void @__builtin_stack_restore(i8*) define i32 @main() { entry: %n.0 = alloca i32 %D.2039 = alloca i64 %D.2040 = alloca i64 %D.2041 = alloca...
; ModuleID = '/dev/shm/tmpwzyc6rcx.c' source_filename = "/dev/shm/tmpwzyc6rcx.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4...
/scratch/tmp/26202062/tmp510hwu09.ll:212:1: error: expected instruction opcode D.2061: ^ 1 error generated.
3
0
Shubham has an array $$$a$$$ of size $$$n$$$, and wants to select exactly $$$x$$$ elements from it, such that their sum is odd. These elements do not have to be consecutive. The elements of the array are not guaranteed to be distinct. Tell him whether he can do so.
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|> <|im_start|>user You were asked the following task: TASK: Convert the following GIMPLE IR to corresponding LLVM IR. Do not apply any optimizations. Output LLVM IR only. ```gimple int main () { int n.0; sizetype D.2050...
int main () { int n.0; sizetype D.2050; bitsizetype D.2051; sizetype D.2052; bitsizetype D.2053; sizetype D.2054; int[0:D.2050] * a.1; void * saved_stack.8; int D.2076; { int t; int i; try { scanf ("%d", &t); i = 0; goto <D.2047>; <D.2046>: ...
#include <stdio.h> int main() { int t; scanf("%d",&t); int i; for(i=0;i<t;i++) { int n,x; long long int ans; scanf("%d %d",&n,&x); int a[n],e=0,o=0,j; for(j=0;j<n;j++) { scanf("%d",&a[j]); if(a[j]%2==0) e++; else o++; } if(n==x) { ans=0; for(j=0;j<n;j++) { ans=ans+a[...
; ModuleID = 'main' source_filename = "main" @.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"Yes\0A\00", align 1 @.str.3 = private unnamed_addr constant [3 x i8] c"No\0A\00", align ...
; ModuleID = '/dev/shm/tmp617r1brl.c' source_filename = "/dev/shm/tmp617r1brl.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [6...
/scratch/tmp/26202062/tmpjyxq7yef.ll:6:50: error: constant expression type mismatch: got type '[5 x i8]' but expected '[3 x i8]' @.str.2 = private unnamed_addr constant [3 x i8] c"Yes\0A\00", align 1 ^ 1 error generated.
4
0
Recently, a start up by two students of a state university of city F gained incredible popularity. Now it's time to start a new company. But what do we call it? The market analysts came up with a very smart plan: the name of the company should be identical to its reflection in a mirror! In other words, if we write out...
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|> <|im_start|>user You were asked the following task: TASK: Convert the following GIMPLE IR to corresponding LLVM IR. Do not apply any optimizations. Output LLVM IR only. ```gimple int main () { int D.2138; { int d...
int main () { int D.2138; { int d; int m; int i; char x; d = 0; scanf ("%s", &a); _1 = strlen (&a); m = (int) _1; i = 0; goto <D.2117>; <D.2116>: _2 = m + -1; _3 = _2 - i; _4 = a[i]; b[_3] = _4; x = a[i]; if (x == 65) goto <D.2119>; else goto <D....
#include<stdio.h> #include<string.h> char a[100001],b[100001]; int main() { int d=0,m,i; char x; scanf("%s",a); m=strlen(a); for(i=0;i<m;i++) { b[m-1-i]=a[i]; x=a[i]; if(x=='A'||x=='H'||x=='I'||x=='M'||x=='O'||x=='T'||x=='U'||x=='V'||x=='X'||x=='W'||x=='Y') d=...
; ModuleID = 'main.ll' source_filename = "main.c" @.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1 @.str1 = private unnamed_addr constant [4 x i8] c"NO\0A\00", align 1 @.str2 = private unnamed_addr constant [4 x i8] c"YES\0A\00", align 1 @a = global [100 x i8] zeroinitializer, align 1 @b = global [100 ...
; ModuleID = '/dev/shm/tmpzr7upt0w.c' source_filename = "/dev/shm/tmpzr7upt0w.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1 @a = dso_local global [100001 x i8] zeroin...
/scratch/tmp/26202062/tmp0y01ek6d.ll:6:49: error: constant expression type mismatch: got type '[5 x i8]' but expected '[4 x i8]' @.str2 = private unnamed_addr constant [4 x i8] c"YES\0A\00", align 1 ^ 1 error generated.
5
0
It's New Year's Eve soon, so Ivan decided it's high time he started setting the table. Ivan has bought two cakes and cut them into pieces: the first cake has been cut into a pieces, and the second one — into b pieces. Ivan knows that there will be n people at the celebration (including himself), so Ivan has set n plat...
<|im_start|>system You are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|> <|im_start|>user You were asked the following task: TASK: Convert the following GIMPLE IR to corresponding LLVM IR. Do not apply any optimizations. Output LLVM IR only. ```gimple int main () { int D.2059; { int n...
int main () { int D.2059; { int n; int n1; int n2; int a; int b; int i; int j; int c; int d; int e; try { e = 0; scanf ("%d %d %d", &n, &a, &b); a.0_1 = a; b.1_2 = b; if (a.0_1 > b.1_2) goto <D.2046>; else goto <D.2047>; ...
#include<stdio.h> int main(){ int n,n1,n2,a,b,i,j,c,d,e=0; scanf("%d %d %d",&n,&a,&b); if(a>b){ c=b; d=a; } else if(b>a){ c=a; d=b; } //printf("%d %d\n",c,d); for(i=1;i<=c/2+1;i++){ n1=i; n2=n-n1; // printf("%d %d\n",n1,n2); for(j=1;j<=100;j++){ if(n1*j<=c&&n2*j<=d&&j>e) ...
; ModuleID = 'main' source_filename = "main" declare i32 @scanf(i8*, ...) declare i32 @printf(i8*, ...) define i32 @main() { entry: %D.2059 = alloca i32 %n = alloca i32 %n1 = alloca i32 %n2 = alloca i32 %a = alloca i32 %b = alloca i32 %i = alloca i32 %j = alloca i32 %c = alloca i32 %d = alloca i32...
; ModuleID = '/dev/shm/tmp34z5t44b.c' source_filename = "/dev/shm/tmp34z5t44b.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1 @.str.1 = private unnamed_addr const...
/scratch/tmp/26202062/tmp9t21dwfc.ll:84:23: error: use of undefined value '%n.4_5' store i32 %21, i32* %n.4_5 ^ 1 error generated.
7
0
"Manao works on a sports TV. He's spent much time watching the football games of some country. After(...TRUNCATED)
"<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\(...TRUNCATED)
"int main ()\n{\n int n.0;\n sizetype D.2050;\n bitsizetype D.2051;\n sizetype D.2052;\n bitsiz(...TRUNCATED)
"#include<stdio.h>\n\nint main()\n\n{\n\n int n,i,j,c=0;\n\n scanf(\"%d\",&n);\n\n int a[n][2](...TRUNCATED)
"; ModuleID = 'main'\nsource_filename = \"main\"\n\n@.str = private unnamed_addr constant [3 x i8] c(...TRUNCATED)
"; ModuleID = '/dev/shm/tmprnnc7isl.c'\nsource_filename = \"/dev/shm/tmprnnc7isl.c\"\ntarget datalay(...TRUNCATED)
"/scratch/tmp/26202062/tmplvt_5sem.ll:25:3: error: instruction expected to be numbered '%0'\n %1 = (...TRUNCATED)
8
0
"For a permutation P[1... N] of integers from 1 to N, function f is defined as follows:\n\n$$$$\n\nL(...TRUNCATED)
"<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\(...TRUNCATED)
"int max (int a, int b)\n{\n int D.2448;\n\n if (a > b) goto <D.2446>; else goto <D.2447>;\n <D.2(...TRUNCATED)
"//set many funcs template\n#include<stdio.h>\n#include<string.h>\n#include<stdlib.h>\n#include<stdb(...TRUNCATED)
"; Function Attrs: noinline nounwind uwtable\ndefine i32 @max(i32 %a, i32 %b) #0 {\nentry:\n %cmp =(...TRUNCATED)
"; ModuleID = '/dev/shm/tmpf7wy8eu6.c'\nsource_filename = \"/dev/shm/tmpf7wy8eu6.c\"\ntarget datalay(...TRUNCATED)
"/scratch/tmp/26202062/tmpd25o7p3j.ll:84:8: error: expected instruction opcode\n %c = %rem\n (...TRUNCATED)
9
0
"Being tired of participating in too many Codeforces rounds, Gildong decided to take some rest in a (...TRUNCATED)
"<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\(...TRUNCATED)
"int main ()\n{\n int D.2043;\n\n {\n long long int x;\n long long int y;\n long long int(...TRUNCATED)
"#include<stdio.h>\n#pragma warning(disable:4996)\n\nint main()\n{\n\tlong long x, y, a, b;\n\tint t(...TRUNCATED)
"; ModuleID = 'main'\nsource_filename = \"main\"\n\ndeclare i32 @scanf(i8*, ...)\ndeclare i32 @print(...TRUNCATED)
"; ModuleID = '/dev/shm/tmp5gg4s7f4.c'\nsource_filename = \"/dev/shm/tmp5gg4s7f4.c\"\ntarget datalay(...TRUNCATED)
"/scratch/tmp/26202062/tmpuqggnhsb.ll:120:48: error: constant expression type mismatch: got type '[3(...TRUNCATED)
10
0
"Finally, a basketball court has been opened in SIS, so Demid has decided to hold a basketball exerc(...TRUNCATED)
"<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\(...TRUNCATED)
"long long int H (int index, int row, int n)\n{\n long long int D.2059;\n long long int f;\n\n _1(...TRUNCATED)
"#include<stdio.h>\n#define MAX 100000\nlong long int heights[MAX][2];\nint h[MAX][2];\nlong long in(...TRUNCATED)
"; ModuleID = 'H_module'\nsource_filename = \"H_module\"\n\n@heights = global [1000 x [2 x i64]] zer(...TRUNCATED)
"; ModuleID = '/dev/shm/tmpj7ku5kks.c'\nsource_filename = \"/dev/shm/tmpj7ku5kks.c\"\ntarget datalay(...TRUNCATED)
"/scratch/tmp/26202062/tmpq6_r5n7a.ll:7:50: error: constant expression type mismatch: got type '[6 x(...TRUNCATED)
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
4