Datasets:

Modalities:
Text
Formats:
parquet
Tags:
code
DOI:
Libraries:
Datasets
Dask
License:
Dataset Viewer
Auto-converted to Parquet Duplicate
Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include <stdio.h> int A[102]; char C(int v) { int t; char r; for (t = 2; t * t <= v; t++) { if (v % t == 0) { break; } } if (t * t <= v) { r = 1; } else { r = 0; } return r; } int main() { int i; int T; int t; int n; int c; int V; scanf("%d", &T); while (T--) { scanf("%d", &n); fo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_0/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_0/source.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...
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> int main() { int i, j, k, ip; int h_array[300], w_array[300]; for (i = 0; i < 300; i++) { scanf("%d %d", &h_array[i], &w_array[i]); if (h_array[i] == 0 && w_array[i] == 0) { ip = i; break; } } for (k = 0; k < ip; k++) { for (i = 0; i < h_array[k];...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100039/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100039/source.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_add...
#include<stdio.h> int main (void) { int H,W,i,j; while(1) { scanf("%d %d",&H,&W); if (H==0 && W==0) break; for(i=0;i<H;i++) { for(j=0;j<W;j++) { if(i==0||i==H-1||j==0||j==W-1) printf("#"); else ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100082/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100082/source.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_add...
#include <stdio.h> int main(){ int H=1,W=1; int h,w; while(1){ scanf("%d%d", &H, &W); if(H==0 && W==0) break; for(h=0;h<H;h++){ for(w=0;w<W;w++) if(h == 0 || w == 0 || h == H-1 || w == W-1) printf("#"); else printf("."); printf("\n"); } printf("\n"); } return...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100132/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100132/source.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_add...
#include<stdio.h> int main(){ int H,W,a,b; while(1){ scanf("%d %d",&H,&W); if(H==0&&W==0) break; for(a=1;a<=H;a++){ for(b=1;b<=W;b++){ if(a==1||a==H||b==1||b==W){ printf("#"); } else{ printf("."); } } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100183/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100183/source.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_add...
#include<stdio.h> #include<string.h> //#include<iostream> //#include<algorithm> int main() { char str[1010],c1,c2; int A[100]={0}; //scanf("%s",str); int i=1,count1=0; while((c1=getchar())!='}') { //printf(" 14 %d %c\n",i,c1); if(c1>='a' && c1<='z') { // printf(" 16 %c\n",c1); A[c1-97]++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10027/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10027/source.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 ...
#include <stdio.h> int main(void) { int H,W,a,b; while(1){ scanf("%d %d",&H,&W); if(H==0&&W==0){ break; } for(a=1;a<W;a++){ printf("#"); } printf("#\n"); for(b=2;b<H;b++){ printf("#"); for(a=2;a<W;a++){ printf("."); } printf("#\n"); } for(a=1;a<W;a++){ printf("#"); } pr...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100312/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100312/source.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_add...
#include <stdio.h> int main( void ) { int H, W, H_Cou, W_Cou; while(1) { scanf( "%d %d", &H, &W ); if( H == 0 && W == 0 ) { break; } else { for( H_Cou = 0; H_Cou < H; H_Cou++ ) { if( H_Cou == 0 || H_Cou == H - 1 ) { for( W_Cou = 0; W_Cou < W; W_Cou++ ) { printf( "#"...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100363/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100363/source.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_add...
#include <stdio.h> int main(void) { int i,j,h,w; while(1){ scanf("%d %d",&h,&w); if(h==0 && w==0) break; else if(h>2 && w>2){ for(j=0;j<w;j++) printf("#"); printf("\n"); for(i=0;i<(h-2);i++){ printf("#"); for(j=0;j<(w-2);j++){ printf("."); } printf("#\n"); } for(j=0;j<w;j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100406/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100406/source.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_add...
#include <stdio.h> #include <string.h> char g[1001][1001]; int main() { int k,z,n=2,i,j,b3[30],len=0,from,prev,y; scanf("%d",&k); memset(g,'N',sizeof(g)); z=k; while(z) b3[len++]=z%3,z/=3; for(i=0;i<len;i++) if(b3[i]) { /* create path of length len with b3*3^i possibilities */ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10045/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10045/source.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 ...
#include <stdio.h> int main ( int argc, char *argv[ ] ) { int i, j; for ( ; ; ) { int h, w; scanf ( "%d%d", &h, &w ); if ( h == 0 && w == 0 ) break ; for ( i = 0; i < h; ++i ) { for ( j = 0; j < w; ++j ) { if ( i == 0 || i == h - 1 || j == 0 || j =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100536/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100536/source.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_add...
#include <stdio.h> int main() { int h,w; int i,j; while(1) { scanf("%d %d",&h,&w); if(h==0&&w==0) { break; } for(i=0;i<h;i++) { for(j=0;j<w;j++) { if(( i==0 )||( i==h-1 )||( j==0 )||( j==w-1 )) { printf("#"); } else { pri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100587/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100587/source.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_add...
#include <stdio.h> int main(){ int w,h; int i,j,k; while(1){ scanf("%d %d",&h,&w); if(h == 0 && w == 0) break; for(i = 0;i < w;i++){ printf("#"); } printf("\n"); for(i = 0;i < h - 2;i++){ printf("#"); for(j = 0;j < w - 2;j++){ printf("."); } printf("#\n"); } if(h - 1 > 0){...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100637/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100637/source.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_add...
#include<stdio.h> int main(void){ int h,w,i,j,k; for(i = 0;;i++){ scanf("%d%d",&h,&w); if(h==0 && w==0)break; for(j = 0;j < h;j++){ for(k = 0;k < w;k++){ if(j == 0 || j == h-1) printf("#"); else if(k == 0 || k == w-1) printf("#"); else printf("."); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100695/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100695/source.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_add...
#include <stdio.h> void mid(int w) { int i; for (i=0; i<w; i++) { if (i == 0) { printf("#"); continue; } if (i == w-1) { printf("#\n"); continue; } printf("."); } } void draw(int h, int w) { int i, j; for (i=0; i<h; i++) { if (i == 0 || i == h-1) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100738/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100738/source.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.4 = private unnamed_a...
#include<stdio.h> int rectangle(int tate,int yoko); int main(void){ int H[1000],W[1000],a,j; j=0; while(1){ scanf("%d %d",&H[j] ,&W[j]); if((H[j]==0)&&(W[j]==0)){ break; } j++; } for(a=0;a<j;a++){ rectangle(H[a],W[a]); printf("\n"); } return 0; } int rectangle(int tate,int yoko){ int h,i; f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100781/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100781/source.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_add...
#include <stdio.h> int main(){ while(1){ int h,w; int i,j; scanf("%d %d",&h,&w); if(h==0 && w==0) break; for(i=0;i<h;i++){ for(j=0;j<w;j++){ if(i==0 || i==h-1 || j==0 || j==w-1){ printf("#"); }else{ printf("."); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100824/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100824/source.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_add...
#include<stdio.h> int main() { int a,b,i,j; while(1) { scanf("%d%d",&a,&b); if(a==0&&b==0){break;} for(i=1;i<=a;i++) { for(j=1;j<=b;j++) { if(i>1&&i<a&&j<b&&j>1)printf("."); else printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100868/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100868/source.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_add...
#include <stdio.h> int main() { int h,w; int i,j; scanf("%d",&h); scanf("%d",&w); while(!((h==0) && (w==0))){ for(i=0;i<w;i++){ printf("#"); } printf("\n"); for(i=0;i<h-2;i++){ printf("#"); for(j=0;j<w-2;j++){ printf("."); } printf("#\n"); } for(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100918/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100918/source.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_add...
#include<stdio.h> int main(void) { int i,j; int H,W; while(1){ scanf("%d %d",&H,&W); if(H == 0 && W == 0)break; else for(i=1;i<=H;i++){ for(j=1;j<=W;j++){ if(i == 1||j == 1||i == H||j == W){ printf("#"); } else { printf("."); } } printf("\n"); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100969/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100969/source.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_add...
#include <stdio.h> int main(){ int h,w; int i,j; while(1){ scanf("%d %d",&h,&w); if(h==0 && w==0) break; for(i=0;i<h;i++){ for(j=0;j<w;j++){ if(i==0 || i==h-1 || j==0 || j==w-1) printf("#"); else{printf(".");} } printf("\n"); } printf("\n"); } return 0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101010/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101010/source.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_add...
#include<stdio.h> int main() { int H; int W; int iCount; int iCount1; int iCount2; int iPutNum = 0; int iH[1000]; int iW[1000]; //Hの入力 scanf("%d", &H); //Wの入力 scanf("%d", &W); while (H != 0 || W != 0) { iH[iPutNum] = H; iW[iPutNum] = W; //Hの入力 scanf("%d", &H); //Wの入力 scanf("%d", &W); iPu...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101054/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101054/source.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_add...
End of preview. Expand in Data Studio

The dataset consists of source code and LLVM IR pairs generated from accepted and de-duped programming contest solutions. The dataset is divided into language configs and mode splits. The language can be one of C, C++, D, Fortran, Go, Haskell, Nim, Objective-C, Python, Rust and Swift, indicating the source files' languages. The mode split indicates the compilation mode, which can be wither Size_Optimized or Perf_Optimized.

Once you have submitted an access request which has been approved, loading the dataset can be done as follows:

from datasets import load_dataset

dataset = load_dataset("UKPLab/SLTrans", "C", split="Size_Optimized")
Downloads last month
302