Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> #include<stdlib.h> int com(const void *a, const void *b){ return *(int*)a - *(int*)b; } int main(){ int N, M; scanf("%d %d", &N, &M); int X[M]; int i; for(i = 0; i < M; i++){ scanf("%d", &X[i]); } qsort(X, M, sizeof(int), com); int D[M-1]; for(i = 0; i < M-1; i++){ D[i] = X[i+1] - X[i]; } qsort(D, M-1, sizeof(int), com); long sum = 0; for(i = 0; i < M - N; i++){ sum += D[i]; } printf("%ld\n", sum); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135132/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135132/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 [6 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 [5 x i8] c"%ld\0A\00", align 1 ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @com(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) #0 { entry: %0 = load i32, ptr %a, align 4, !tbaa !5 %1 = load i32, ptr %b, align 4, !tbaa !5 %sub = sub nsw i32 %0, %1 ret i32 %sub } ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #1 { entry: %N = alloca i32, align 4 %M = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #7 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %M) #7 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N, ptr noundef nonnull %M) %0 = load i32, ptr %M, align 4, !tbaa !5 %1 = zext i32 %0 to i64 %2 = call ptr @llvm.stacksave.p0() %vla = alloca i32, i64 %1, align 16 %3 = load i32, ptr %M, align 4, !tbaa !5 %cmp44 = icmp sgt i32 %3, 0 br i1 %cmp44, label %for.body, label %entry.for.end_crit_edge entry.for.end_crit_edge: ; preds = %entry %.pre62 = sext i32 %3 to i64 br label %for.end for.body: ; preds = %entry, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ] %arrayidx = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %4 = load i32, ptr %M, align 4, !tbaa !5 %5 = sext i32 %4 to i64 %cmp = icmp slt i64 %indvars.iv.next, %5 br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9 for.end: ; preds = %for.body, %entry.for.end_crit_edge %conv.pre-phi = phi i64 [ %.pre62, %entry.for.end_crit_edge ], [ %5, %for.body ] call void @qsort(ptr noundef nonnull %vla, i64 noundef %conv.pre-phi, i64 noundef 4, ptr noundef nonnull @com) #7 %6 = load i32, ptr %M, align 4, !tbaa !5 %sub = add i32 %6, -1 %7 = zext i32 %sub to i64 %vla2 = alloca i32, i64 %7, align 16 %cmp546 = icmp sgt i32 %6, 1 br i1 %cmp546, label %for.body7.preheader, label %for.end17 for.body7.preheader: ; preds = %for.end %.pre = load i32, ptr %vla, align 16, !tbaa !5 %min.iters.check = icmp ult i32 %6, 9 br i1 %min.iters.check, label %for.body7.preheader80, label %vector.ph vector.ph: ; preds = %for.body7.preheader %n.vec = and i64 %7, 4294967288 %vector.recur.init = insertelement <4 x i32> poison, i32 %.pre, i64 3 br label %vector.body vector.body: ; preds = %vector.body, %vector.ph %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] %vector.recur = phi <4 x i32> [ %vector.recur.init, %vector.ph ], [ %wide.load63, %vector.body ] %8 = or i64 %index, 1 %9 = getelementptr inbounds i32, ptr %vla, i64 %8 %wide.load = load <4 x i32>, ptr %9, align 4, !tbaa !5 %10 = getelementptr inbounds i32, ptr %9, i64 4 %wide.load63 = load <4 x i32>, ptr %10, align 4, !tbaa !5 %11 = shufflevector <4 x i32> %vector.recur, <4 x i32> %wide.load, <4 x i32> <i32 3, i32 4, i32 5, i32 6> %12 = shufflevector <4 x i32> %wide.load, <4 x i32> %wide.load63, <4 x i32> <i32 3, i32 4, i32 5, i32 6> %13 = sub nsw <4 x i32> %wide.load, %11 %14 = sub nsw <4 x i32> %wide.load63, %12 %15 = getelementptr inbounds i32, ptr %vla2, i64 %index store <4 x i32> %13, ptr %15, align 16, !tbaa !5 %16 = getelementptr inbounds i32, ptr %15, i64 4 store <4 x i32> %14, ptr %16, align 16, !tbaa !5 %index.next = add nuw i64 %index, 8 %17 = icmp eq i64 %index.next, %n.vec br i1 %17, label %middle.block, label %vector.body, !llvm.loop !11 middle.block: ; preds = %vector.body %cmp.n = icmp eq i64 %n.vec, %7 %vector.recur.extract = extractelement <4 x i32> %wide.load63, i64 3 br i1 %cmp.n, label %for.end17, label %for.body7.preheader80 for.body7.preheader80: ; preds = %for.body7.preheader, %middle.block %scalar.recur.ph = phi i32 [ %vector.recur.extract, %middle.block ], [ %.pre, %for.body7.preheader ] %indvars.iv54.ph = phi i64 [ %n.vec, %middle.block ], [ 0, %for.body7.preheader ] br label %for.body7 for.body7: ; preds = %for.body7.preheader80, %for.body7 %scalar.recur = phi i32 [ %18, %for.body7 ], [ %scalar.recur.ph, %for.body7.preheader80 ] %indvars.iv54 = phi i64 [ %indvars.iv.next55, %for.body7 ], [ %indvars.iv54.ph, %for.body7.preheader80 ] %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1 %arrayidx9 = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv.next55 %18 = load i32, ptr %arrayidx9, align 4, !tbaa !5 %sub12 = sub nsw i32 %18, %scalar.recur %arrayidx14 = getelementptr inbounds i32, ptr %vla2, i64 %indvars.iv54 store i32 %sub12, ptr %arrayidx14, align 4, !tbaa !5 %exitcond.not = icmp eq i64 %indvars.iv.next55, %7 br i1 %exitcond.not, label %for.end17, label %for.body7, !llvm.loop !14 for.end17: ; preds = %for.body7, %middle.block, %for.end %conv19 = sext i32 %sub to i64 call void @qsort(ptr noundef nonnull %vla2, i64 noundef %conv19, i64 noundef 4, ptr noundef nonnull @com) #7 %19 = load i32, ptr %M, align 4, !tbaa !5 %20 = load i32, ptr %N, align 4, !tbaa !5 %sub21 = sub nsw i32 %19, %20 %cmp2248 = icmp sgt i32 %sub21, 0 br i1 %cmp2248, label %for.body24.preheader, label %for.end31 for.body24.preheader: ; preds = %for.end17 %wide.trip.count60 = zext i32 %sub21 to i64 %min.iters.check66 = icmp ult i32 %sub21, 4 br i1 %min.iters.check66, label %for.body24.preheader78, label %vector.ph67 vector.ph67: ; preds = %for.body24.preheader %n.vec69 = and i64 %wide.trip.count60, 4294967292 br label %vector.body72 vector.body72: ; preds = %vector.body72, %vector.ph67 %index73 = phi i64 [ 0, %vector.ph67 ], [ %index.next77, %vector.body72 ] %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph67 ], [ %25, %vector.body72 ] %vec.phi74 = phi <2 x i64> [ zeroinitializer, %vector.ph67 ], [ %26, %vector.body72 ] %21 = getelementptr inbounds i32, ptr %vla2, i64 %index73 %wide.load75 = load <2 x i32>, ptr %21, align 16, !tbaa !5 %22 = getelementptr inbounds i32, ptr %21, i64 2 %wide.load76 = load <2 x i32>, ptr %22, align 8, !tbaa !5 %23 = sext <2 x i32> %wide.load75 to <2 x i64> %24 = sext <2 x i32> %wide.load76 to <2 x i64> %25 = add <2 x i64> %vec.phi, %23 %26 = add <2 x i64> %vec.phi74, %24 %index.next77 = add nuw i64 %index73, 4 %27 = icmp eq i64 %index.next77, %n.vec69 br i1 %27, label %middle.block64, label %vector.body72, !llvm.loop !15 middle.block64: ; preds = %vector.body72 %bin.rdx = add <2 x i64> %26, %25 %28 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx) %cmp.n71 = icmp eq i64 %n.vec69, %wide.trip.count60 br i1 %cmp.n71, label %for.end31, label %for.body24.preheader78 for.body24.preheader78: ; preds = %for.body24.preheader, %middle.block64 %indvars.iv57.ph = phi i64 [ 0, %for.body24.preheader ], [ %n.vec69, %middle.block64 ] %sum.050.ph = phi i64 [ 0, %for.body24.preheader ], [ %28, %middle.block64 ] br label %for.body24 for.body24: ; preds = %for.body24.preheader78, %for.body24 %indvars.iv57 = phi i64 [ %indvars.iv.next58, %for.body24 ], [ %indvars.iv57.ph, %for.body24.preheader78 ] %sum.050 = phi i64 [ %add28, %for.body24 ], [ %sum.050.ph, %for.body24.preheader78 ] %arrayidx26 = getelementptr inbounds i32, ptr %vla2, i64 %indvars.iv57 %29 = load i32, ptr %arrayidx26, align 4, !tbaa !5 %conv27 = sext i32 %29 to i64 %add28 = add nsw i64 %sum.050, %conv27 %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1 %exitcond61.not = icmp eq i64 %indvars.iv.next58, %wide.trip.count60 br i1 %exitcond61.not, label %for.end31, label %for.body24, !llvm.loop !16 for.end31: ; preds = %for.body24, %middle.block64, %for.end17 %sum.0.lcssa = phi i64 [ 0, %for.end17 ], [ %28, %middle.block64 ], [ %add28, %for.body24 ] %call32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %sum.0.lcssa) call void @llvm.stackrestore.p0(ptr %2) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %M) #7 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #7 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare ptr @llvm.stacksave.p0() #4 ; Function Attrs: nofree declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #5 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare void @llvm.stackrestore.p0(ptr) #4 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #6 attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn } attributes #5 = { nofree "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #7 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10, !12, !13} !12 = !{!"llvm.loop.isvectorized", i32 1} !13 = !{!"llvm.loop.unroll.runtime.disable"} !14 = distinct !{!14, !10, !13, !12} !15 = distinct !{!15, !10, !12, !13} !16 = distinct !{!16, !10, !13, !12}
#include <stdio.h> #include <string.h> void mD(char C, int *D) { switch (C) { int t; case 'N': t=D[0];D[0]=D[1];D[1]=D[5];D[5]=D[4];D[4]=t; break; case 'S': t=D[0];D[0]=D[4];D[4]=D[5];D[5]=D[1];D[1]=t; break; case 'E': t=D[0];D[0]=D[3];D[3]=D[5];D[5]=D[2];D[2]=t; break; case 'W': t=D[0];D[0]=D[2];D[2]=D[5];D[5]=D[3];D[3]=t; break; case 'R': t=D[1];D[1]=D[3];D[3]=D[4];D[4]=D[2];D[2]=t; break; case 'L': t=D[1];D[1]=D[2];D[2]=D[4];D[4]=D[3];D[3]=t; break; } return; } /* サイコロが一致していたら1、それ以外は0 */ int cD(int *D1, int *D2) { int d; /* すべての面が必ず1度は上面にくる回転 */ char C[]={' ','N','N','N','E','E','E'}; int c; /* 必ずC[]の要素数だけ繰り返す。 同じ数字が複数の面に存在する可能性があるので */ for (c=0;c<7;c++) { mD(C[c], D2); /* サイコロ1と2の上面の数字が一致したら…… */ if (D1[0]==D2[0]) { /* サイコロを右回転させて、すべての面の数字が一致する ポジションがないか調べる */ for(d=0;d<6;d++) { mD('R', D2); /* ポジションがあったらフラグを立てる */ if (D1[1]==D2[1]) { if ((D1[2]==D2[2]) && (D1[3]==D2[3]) && (D1[4]==D2[4]) && (D1[5]==D2[5])) return 1; } } } } return 0; } int main(void) { int D[101][6],d,N,n; scanf("%d\n",&N); /* サイコロ初期値の設定 */ for(n=0;n<N;n++) for(d=0;d<6;d++) scanf("%d",&D[n][d]); /* サイコロの一致判定 */ for(n=0;n<(N-1);n++) { int m; for(m=n+1;m<N;m++) { if (cD(D[n],D[m])) { printf("No\n"); return 0; } } } printf("Yes\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135183/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135183/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" @__const.cD.C = private unnamed_addr constant [7 x i8] c" NNNEEE", align 1 @.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 @.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @str.4 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable define dso_local void @mD(i8 noundef signext %C, ptr nocapture noundef %D) local_unnamed_addr #0 { entry: %conv = sext i8 %C to i32 switch i32 %conv, label %sw.epilog [ i32 78, label %sw.bb i32 83, label %sw.bb8 i32 69, label %sw.bb17 i32 87, label %sw.bb26 i32 82, label %sw.bb35 i32 76, label %sw.bb44 ] sw.bb: ; preds = %entry %0 = load i32, ptr %D, align 4, !tbaa !5 %arrayidx1 = getelementptr inbounds i32, ptr %D, i64 1 %1 = load i32, ptr %arrayidx1, align 4, !tbaa !5 store i32 %1, ptr %D, align 4, !tbaa !5 %arrayidx3 = getelementptr inbounds i32, ptr %D, i64 5 %2 = load i32, ptr %arrayidx3, align 4, !tbaa !5 store i32 %2, ptr %arrayidx1, align 4, !tbaa !5 %arrayidx5 = getelementptr inbounds i32, ptr %D, i64 4 %3 = load i32, ptr %arrayidx5, align 4, !tbaa !5 store i32 %3, ptr %arrayidx3, align 4, !tbaa !5 store i32 %0, ptr %arrayidx5, align 4, !tbaa !5 br label %sw.epilog sw.bb8: ; preds = %entry %4 = load i32, ptr %D, align 4, !tbaa !5 %arrayidx10 = getelementptr inbounds i32, ptr %D, i64 4 %5 = load i32, ptr %arrayidx10, align 4, !tbaa !5 store i32 %5, ptr %D, align 4, !tbaa !5 %arrayidx12 = getelementptr inbounds i32, ptr %D, i64 5 %6 = load i32, ptr %arrayidx12, align 4, !tbaa !5 store i32 %6, ptr %arrayidx10, align 4, !tbaa !5 %arrayidx14 = getelementptr inbounds i32, ptr %D, i64 1 %7 = load i32, ptr %arrayidx14, align 4, !tbaa !5 store i32 %7, ptr %arrayidx12, align 4, !tbaa !5 store i32 %4, ptr %arrayidx14, align 4, !tbaa !5 br label %sw.epilog sw.bb17: ; preds = %entry %8 = load i32, ptr %D, align 4, !tbaa !5 %arrayidx19 = getelementptr inbounds i32, ptr %D, i64 3 %9 = load i32, ptr %arrayidx19, align 4, !tbaa !5 store i32 %9, ptr %D, align 4, !tbaa !5 %arrayidx21 = getelementptr inbounds i32, ptr %D, i64 5 %10 = load i32, ptr %arrayidx21, align 4, !tbaa !5 store i32 %10, ptr %arrayidx19, align 4, !tbaa !5 %arrayidx23 = getelementptr inbounds i32, ptr %D, i64 2 %11 = load i32, ptr %arrayidx23, align 4, !tbaa !5 store i32 %11, ptr %arrayidx21, align 4, !tbaa !5 store i32 %8, ptr %arrayidx23, align 4, !tbaa !5 br label %sw.epilog sw.bb26: ; preds = %entry %12 = load i32, ptr %D, align 4, !tbaa !5 %arrayidx28 = getelementptr inbounds i32, ptr %D, i64 2 %13 = load i32, ptr %arrayidx28, align 4, !tbaa !5 store i32 %13, ptr %D, align 4, !tbaa !5 %arrayidx30 = getelementptr inbounds i32, ptr %D, i64 5 %14 = load i32, ptr %arrayidx30, align 4, !tbaa !5 store i32 %14, ptr %arrayidx28, align 4, !tbaa !5 %arrayidx32 = getelementptr inbounds i32, ptr %D, i64 3 %15 = load i32, ptr %arrayidx32, align 4, !tbaa !5 store i32 %15, ptr %arrayidx30, align 4, !tbaa !5 store i32 %12, ptr %arrayidx32, align 4, !tbaa !5 br label %sw.epilog sw.bb35: ; preds = %entry %arrayidx36 = getelementptr inbounds i32, ptr %D, i64 1 %16 = load <4 x i32>, ptr %arrayidx36, align 4, !tbaa !5 %17 = shufflevector <4 x i32> %16, <4 x i32> poison, <4 x i32> <i32 2, i32 0, i32 3, i32 1> store <4 x i32> %17, ptr %arrayidx36, align 4, !tbaa !5 br label %sw.epilog sw.bb44: ; preds = %entry %arrayidx45 = getelementptr inbounds i32, ptr %D, i64 1 %18 = load <4 x i32>, ptr %arrayidx45, align 4, !tbaa !5 %19 = shufflevector <4 x i32> %18, <4 x i32> poison, <4 x i32> <i32 1, i32 3, i32 0, i32 2> store <4 x i32> %19, ptr %arrayidx45, align 4, !tbaa !5 br label %sw.epilog sw.epilog: ; preds = %entry, %sw.bb44, %sw.bb35, %sw.bb26, %sw.bb17, %sw.bb8, %sw.bb ret void } ; Function Attrs: nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable define dso_local i32 @cD(ptr nocapture noundef readonly %D1, ptr nocapture noundef %D2) local_unnamed_addr #1 { entry: %arrayidx36.i = getelementptr inbounds i32, ptr %D2, i64 1 %arrayidx37.i = getelementptr inbounds i32, ptr %D2, i64 3 %arrayidx39.i = getelementptr inbounds i32, ptr %D2, i64 4 %arrayidx41.i = getelementptr inbounds i32, ptr %D2, i64 2 %arrayidx7 = getelementptr inbounds i32, ptr %D1, i64 1 %arrayidx11 = getelementptr inbounds i32, ptr %D1, i64 2 %arrayidx14 = getelementptr inbounds i32, ptr %D1, i64 3 %arrayidx18 = getelementptr inbounds i32, ptr %D1, i64 4 %arrayidx22 = getelementptr inbounds i32, ptr %D1, i64 5 %arrayidx23 = getelementptr inbounds i32, ptr %D2, i64 5 br label %for.body for.body: ; preds = %entry, %for.inc28 %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.inc28 ] %arrayidx = getelementptr inbounds [7 x i8], ptr @__const.cD.C, i64 0, i64 %indvars.iv %0 = load i8, ptr %arrayidx, align 1, !tbaa !9 tail call void @mD(i8 noundef signext %0, ptr noundef %D2) %1 = load i32, ptr %D1, align 4, !tbaa !5 %2 = load i32, ptr %D2, align 4, !tbaa !5 %cmp3 = icmp eq i32 %1, %2 br i1 %cmp3, label %for.body6.preheader, label %for.inc28 for.body6.preheader: ; preds = %for.body %3 = load i32, ptr %arrayidx36.i, align 4, !tbaa !5 %4 = load i32, ptr %arrayidx37.i, align 4, !tbaa !5 store i32 %4, ptr %arrayidx36.i, align 4, !tbaa !5 %5 = load i32, ptr %arrayidx39.i, align 4, !tbaa !5 store i32 %5, ptr %arrayidx37.i, align 4, !tbaa !5 %6 = load i32, ptr %arrayidx41.i, align 4, !tbaa !5 store i32 %6, ptr %arrayidx39.i, align 4, !tbaa !5 store i32 %3, ptr %arrayidx41.i, align 4, !tbaa !5 %7 = load i32, ptr %arrayidx7, align 4, !tbaa !5 %cmp9 = icmp eq i32 %7, %4 br i1 %cmp9, label %if.then10, label %for.inc if.then10: ; preds = %for.body6.preheader %8 = load i32, ptr %arrayidx11, align 4, !tbaa !5 %cmp13 = icmp eq i32 %8, %3 br i1 %cmp13, label %land.lhs.true, label %for.inc land.lhs.true: ; preds = %if.then10 %9 = load i32, ptr %arrayidx14, align 4, !tbaa !5 %cmp16 = icmp eq i32 %9, %5 br i1 %cmp16, label %land.lhs.true17, label %for.inc land.lhs.true17: ; preds = %land.lhs.true %10 = load i32, ptr %arrayidx18, align 4, !tbaa !5 %cmp20 = icmp eq i32 %10, %6 br i1 %cmp20, label %land.lhs.true21, label %for.inc land.lhs.true21: ; preds = %land.lhs.true17 %11 = load i32, ptr %arrayidx22, align 4, !tbaa !5 %12 = load i32, ptr %arrayidx23, align 4, !tbaa !5 %cmp24 = icmp eq i32 %11, %12 br i1 %cmp24, label %cleanup, label %for.inc for.inc: ; preds = %for.body6.preheader, %land.lhs.true21, %land.lhs.true17, %land.lhs.true, %if.then10 store i32 %5, ptr %arrayidx36.i, align 4, !tbaa !5 store i32 %6, ptr %arrayidx37.i, align 4, !tbaa !5 store i32 %3, ptr %arrayidx39.i, align 4, !tbaa !5 store i32 %4, ptr %arrayidx41.i, align 4, !tbaa !5 %13 = load i32, ptr %arrayidx7, align 4, !tbaa !5 %cmp9.1 = icmp eq i32 %13, %5 br i1 %cmp9.1, label %if.then10.1, label %for.inc.1 if.then10.1: ; preds = %for.inc %14 = load i32, ptr %arrayidx11, align 4, !tbaa !5 %cmp13.1 = icmp eq i32 %14, %4 br i1 %cmp13.1, label %land.lhs.true.1, label %for.inc.1 land.lhs.true.1: ; preds = %if.then10.1 %15 = load i32, ptr %arrayidx14, align 4, !tbaa !5 %cmp16.1 = icmp eq i32 %15, %6 br i1 %cmp16.1, label %land.lhs.true17.1, label %for.inc.1 land.lhs.true17.1: ; preds = %land.lhs.true.1 %16 = load i32, ptr %arrayidx18, align 4, !tbaa !5 %cmp20.1 = icmp eq i32 %16, %3 br i1 %cmp20.1, label %land.lhs.true21.1, label %for.inc.1 land.lhs.true21.1: ; preds = %land.lhs.true17.1 %17 = load i32, ptr %arrayidx22, align 4, !tbaa !5 %18 = load i32, ptr %arrayidx23, align 4, !tbaa !5 %cmp24.1 = icmp eq i32 %17, %18 br i1 %cmp24.1, label %cleanup, label %for.inc.1 for.inc.1: ; preds = %land.lhs.true21.1, %land.lhs.true17.1, %land.lhs.true.1, %if.then10.1, %for.inc store i32 %6, ptr %arrayidx36.i, align 4, !tbaa !5 store i32 %3, ptr %arrayidx37.i, align 4, !tbaa !5 store i32 %4, ptr %arrayidx39.i, align 4, !tbaa !5 store i32 %5, ptr %arrayidx41.i, align 4, !tbaa !5 %19 = load i32, ptr %arrayidx7, align 4, !tbaa !5 %cmp9.2 = icmp eq i32 %19, %6 br i1 %cmp9.2, label %if.then10.2, label %for.inc.2 if.then10.2: ; preds = %for.inc.1 %20 = load i32, ptr %arrayidx11, align 4, !tbaa !5 %cmp13.2 = icmp eq i32 %20, %5 br i1 %cmp13.2, label %land.lhs.true.2, label %for.inc.2 land.lhs.true.2: ; preds = %if.then10.2 %21 = load i32, ptr %arrayidx14, align 4, !tbaa !5 %cmp16.2 = icmp eq i32 %21, %3 br i1 %cmp16.2, label %land.lhs.true17.2, label %for.inc.2 land.lhs.true17.2: ; preds = %land.lhs.true.2 %22 = load i32, ptr %arrayidx18, align 4, !tbaa !5 %cmp20.2 = icmp eq i32 %22, %4 br i1 %cmp20.2, label %land.lhs.true21.2, label %for.inc.2 land.lhs.true21.2: ; preds = %land.lhs.true17.2 %23 = load i32, ptr %arrayidx22, align 4, !tbaa !5 %24 = load i32, ptr %arrayidx23, align 4, !tbaa !5 %cmp24.2 = icmp eq i32 %23, %24 br i1 %cmp24.2, label %cleanup, label %for.inc.2 for.inc.2: ; preds = %land.lhs.true21.2, %land.lhs.true17.2, %land.lhs.true.2, %if.then10.2, %for.inc.1 store i32 %3, ptr %arrayidx36.i, align 4, !tbaa !5 store i32 %4, ptr %arrayidx37.i, align 4, !tbaa !5 store i32 %5, ptr %arrayidx39.i, align 4, !tbaa !5 store i32 %6, ptr %arrayidx41.i, align 4, !tbaa !5 %25 = load i32, ptr %arrayidx7, align 4, !tbaa !5 %cmp9.3 = icmp eq i32 %25, %3 br i1 %cmp9.3, label %if.then10.3, label %for.inc.3 if.then10.3: ; preds = %for.inc.2 %26 = load i32, ptr %arrayidx11, align 4, !tbaa !5 %cmp13.3 = icmp eq i32 %26, %6 br i1 %cmp13.3, label %land.lhs.true.3, label %for.inc.3 land.lhs.true.3: ; preds = %if.then10.3 %27 = load i32, ptr %arrayidx14, align 4, !tbaa !5 %cmp16.3 = icmp eq i32 %27, %4 br i1 %cmp16.3, label %land.lhs.true17.3, label %for.inc.3 land.lhs.true17.3: ; preds = %land.lhs.true.3 %28 = load i32, ptr %arrayidx18, align 4, !tbaa !5 %cmp20.3 = icmp eq i32 %28, %5 br i1 %cmp20.3, label %land.lhs.true21.3, label %for.inc.3 land.lhs.true21.3: ; preds = %land.lhs.true17.3 %29 = load i32, ptr %arrayidx22, align 4, !tbaa !5 %30 = load i32, ptr %arrayidx23, align 4, !tbaa !5 %cmp24.3 = icmp eq i32 %29, %30 br i1 %cmp24.3, label %cleanup, label %for.inc.3 for.inc.3: ; preds = %land.lhs.true21.3, %land.lhs.true17.3, %land.lhs.true.3, %if.then10.3, %for.inc.2 store i32 %4, ptr %arrayidx36.i, align 4, !tbaa !5 store i32 %5, ptr %arrayidx37.i, align 4, !tbaa !5 store i32 %6, ptr %arrayidx39.i, align 4, !tbaa !5 store i32 %3, ptr %arrayidx41.i, align 4, !tbaa !5 %31 = load i32, ptr %arrayidx7, align 4, !tbaa !5 %cmp9.4 = icmp eq i32 %31, %4 br i1 %cmp9.4, label %if.then10.4, label %for.inc.4 if.then10.4: ; preds = %for.inc.3 %32 = load i32, ptr %arrayidx11, align 4, !tbaa !5 %cmp13.4 = icmp eq i32 %32, %3 br i1 %cmp13.4, label %land.lhs.true.4, label %for.inc.4 land.lhs.true.4: ; preds = %if.then10.4 %33 = load i32, ptr %arrayidx14, align 4, !tbaa !5 %cmp16.4 = icmp eq i32 %33, %5 br i1 %cmp16.4, label %land.lhs.true17.4, label %for.inc.4 land.lhs.true17.4: ; preds = %land.lhs.true.4 %34 = load i32, ptr %arrayidx18, align 4, !tbaa !5 %cmp20.4 = icmp eq i32 %34, %6 br i1 %cmp20.4, label %land.lhs.true21.4, label %for.inc.4 land.lhs.true21.4: ; preds = %land.lhs.true17.4 %35 = load i32, ptr %arrayidx22, align 4, !tbaa !5 %36 = load i32, ptr %arrayidx23, align 4, !tbaa !5 %cmp24.4 = icmp eq i32 %35, %36 br i1 %cmp24.4, label %cleanup, label %for.inc.4 for.inc.4: ; preds = %land.lhs.true21.4, %land.lhs.true17.4, %land.lhs.true.4, %if.then10.4, %for.inc.3 store i32 %5, ptr %arrayidx36.i, align 4, !tbaa !5 store i32 %6, ptr %arrayidx37.i, align 4, !tbaa !5 store i32 %3, ptr %arrayidx39.i, align 4, !tbaa !5 store i32 %4, ptr %arrayidx41.i, align 4, !tbaa !5 %37 = load i32, ptr %arrayidx7, align 4, !tbaa !5 %cmp9.5 = icmp eq i32 %37, %5 br i1 %cmp9.5, label %if.then10.5, label %for.inc28 if.then10.5: ; preds = %for.inc.4 %38 = load i32, ptr %arrayidx11, align 4, !tbaa !5 %cmp13.5 = icmp eq i32 %38, %4 br i1 %cmp13.5, label %land.lhs.true.5, label %for.inc28 land.lhs.true.5: ; preds = %if.then10.5 %39 = load i32, ptr %arrayidx14, align 4, !tbaa !5 %cmp16.5 = icmp eq i32 %39, %6 br i1 %cmp16.5, label %land.lhs.true17.5, label %for.inc28 land.lhs.true17.5: ; preds = %land.lhs.true.5 %40 = load i32, ptr %arrayidx18, align 4, !tbaa !5 %cmp20.5 = icmp eq i32 %40, %3 br i1 %cmp20.5, label %land.lhs.true21.5, label %for.inc28 land.lhs.true21.5: ; preds = %land.lhs.true17.5 %41 = load i32, ptr %arrayidx22, align 4, !tbaa !5 %42 = load i32, ptr %arrayidx23, align 4, !tbaa !5 %cmp24.5 = icmp eq i32 %41, %42 br i1 %cmp24.5, label %cleanup, label %for.inc28 for.inc28: ; preds = %for.inc.4, %if.then10.5, %land.lhs.true.5, %land.lhs.true17.5, %land.lhs.true21.5, %for.body %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %exitcond.not = icmp eq i64 %indvars.iv.next, 7 br i1 %exitcond.not, label %cleanup, label %for.body, !llvm.loop !10 cleanup: ; preds = %for.inc28, %land.lhs.true21, %land.lhs.true21.1, %land.lhs.true21.2, %land.lhs.true21.3, %land.lhs.true21.4, %land.lhs.true21.5 %retval.0 = phi i32 [ 1, %land.lhs.true21.5 ], [ 1, %land.lhs.true21.4 ], [ 1, %land.lhs.true21.3 ], [ 1, %land.lhs.true21.2 ], [ 1, %land.lhs.true21.1 ], [ 1, %land.lhs.true21 ], [ 0, %for.inc28 ] ret i32 %retval.0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #3 { entry: %D = alloca [101 x [6 x i32]], align 16 %N = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 2424, ptr nonnull %D) #6 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #6 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N) %0 = load i32, ptr %N, align 4, !tbaa !5 %cmp46 = icmp sgt i32 %0, 0 br i1 %cmp46, label %for.cond1.preheader, label %cleanup30 for.cond1.preheader: ; preds = %entry, %for.cond1.preheader %indvars.iv = phi i64 [ %indvars.iv.next, %for.cond1.preheader ], [ 0, %entry ] %arrayidx5 = getelementptr inbounds [101 x [6 x i32]], ptr %D, i64 0, i64 %indvars.iv, i64 0 %call6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx5) %arrayidx5.1 = getelementptr inbounds [101 x [6 x i32]], ptr %D, i64 0, i64 %indvars.iv, i64 1 %call6.1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx5.1) %arrayidx5.2 = getelementptr inbounds [101 x [6 x i32]], ptr %D, i64 0, i64 %indvars.iv, i64 2 %call6.2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx5.2) %arrayidx5.3 = getelementptr inbounds [101 x [6 x i32]], ptr %D, i64 0, i64 %indvars.iv, i64 3 %call6.3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx5.3) %arrayidx5.4 = getelementptr inbounds [101 x [6 x i32]], ptr %D, i64 0, i64 %indvars.iv, i64 4 %call6.4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx5.4) %arrayidx5.5 = getelementptr inbounds [101 x [6 x i32]], ptr %D, i64 0, i64 %indvars.iv, i64 5 %call6.5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx5.5) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %1 = load i32, ptr %N, align 4, !tbaa !5 %2 = sext i32 %1 to i64 %cmp = icmp slt i64 %indvars.iv.next, %2 br i1 %cmp, label %for.cond1.preheader, label %for.cond10.preheader, !llvm.loop !12 for.cond10.preheader: ; preds = %for.cond1.preheader %cmp1150 = icmp sgt i32 %1, 1 br i1 %cmp1150, label %for.body12.preheader, label %cleanup30 for.body12.preheader: ; preds = %for.cond10.preheader %sub = add nsw i32 %1, -1 %3 = zext i32 %1 to i64 %wide.trip.count62 = zext i32 %sub to i64 %wide.trip.count = zext i32 %1 to i64 br label %for.body12 for.cond10.loopexit: ; preds = %for.cond13, %for.body12 %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1 %exitcond63.not = icmp eq i64 %indvars.iv.next60, %wide.trip.count62 br i1 %exitcond63.not, label %cleanup30, label %for.body12, !llvm.loop !13 for.body12: ; preds = %for.body12.preheader, %for.cond10.loopexit %indvars.iv59 = phi i64 [ 0, %for.body12.preheader ], [ %indvars.iv.next60, %for.cond10.loopexit ] %indvars.iv54 = phi i64 [ 1, %for.body12.preheader ], [ %indvars.iv.next55, %for.cond10.loopexit ] %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1 %cmp14.not48 = icmp ult i64 %indvars.iv.next60, %3 br i1 %cmp14.not48, label %for.body15.lr.ph, label %for.cond10.loopexit for.body15.lr.ph: ; preds = %for.body12 %arrayidx17 = getelementptr inbounds [101 x [6 x i32]], ptr %D, i64 0, i64 %indvars.iv59 br label %for.body15 for.cond13: ; preds = %for.body15 %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1 %exitcond.not = icmp eq i64 %indvars.iv.next57, %wide.trip.count br i1 %exitcond.not, label %for.cond10.loopexit, label %for.body15, !llvm.loop !14 for.body15: ; preds = %for.body15.lr.ph, %for.cond13 %indvars.iv56 = phi i64 [ %indvars.iv54, %for.body15.lr.ph ], [ %indvars.iv.next57, %for.cond13 ] %arrayidx19 = getelementptr inbounds [101 x [6 x i32]], ptr %D, i64 0, i64 %indvars.iv56 %call21 = call i32 @cD(ptr noundef nonnull %arrayidx17, ptr noundef nonnull %arrayidx19), !range !15 %tobool.not = icmp eq i32 %call21, 0 br i1 %tobool.not, label %for.cond13, label %cleanup30 cleanup30: ; preds = %for.cond10.loopexit, %for.body15, %for.cond10.preheader, %entry %str.4.sink = phi ptr [ @str, %entry ], [ @str, %for.cond10.preheader ], [ @str.4, %for.body15 ], [ @str, %for.cond10.loopexit ] %puts44 = call i32 @puts(ptr nonnull dereferenceable(1) %str.4.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #6 call void @llvm.lifetime.end.p0(i64 2424, ptr nonnull %D) #6 ret i32 0 } ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #5 attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #3 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #5 = { nofree nounwind } attributes #6 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = !{!7, !7, i64 0} !10 = distinct !{!10, !11} !11 = !{!"llvm.loop.mustprogress"} !12 = distinct !{!12, !11} !13 = distinct !{!13, !11} !14 = distinct !{!14, !11} !15 = !{i32 0, i32 2}
#include <stdio.h> int Search(int num,int ans); void Sort(int C[10]); int Answer_1(void); int Answer_2(void); int a[10],b[10],d[10],e[10]; int main(void){ int i,j,m; scanf("%d",&m); for(i=1;i<=6;i++){ scanf("%d",&e[i]); d[i] = e[i];} for(j=0;j<m;j++){ for(i=1;i<=6;i++){ scanf("%d",&b[i]); a[i] = b[i]; } Sort(a); Sort(d); if(Answer_1()) return 0; Search(1,2); Search(1,3); Search(2,3); if(Answer_2()) return 0; } printf("Yes\n"); return 0; } void Sort(int C[10]){ int tmp,i; for(i=1;i<6;i++){ if(C[i]>C[i+1]){ tmp = C[i+1]; C[i+1] = C[i]; C[i] = tmp; } } } int Search(int num,int ans){ int tmp,i; for(i=0;i<4;i++){ if(b[num]==e[num]) return 0; tmp = b[num]; b[num] = b[ans]; b[ans] = b[7-num]; b[7-num] = b[7-ans]; b[7-ans] = tmp; } return 0; } int Answer_1(void){ int i,cnt=0; for(i=1;i<=6;i++){ if(a[i] == d[i]) cnt++; } if((cnt==6) && (a[1]==a[2]) && (a[2]==a[3]) && (a[3]==a[4]) && (a[4]==a[5])){ printf("No\n"); return 1; } return 0; } int Answer_2(void){ int i,cnt=0; for(i=1;i<=6;i++){ if(b[i] == e[i]) cnt+=1; } if(cnt==6){ printf("No\n"); return 1; } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135226/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135226/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 [3 x i8] c"%d\00", align 1 @e = dso_local global [10 x i32] zeroinitializer, align 16 @d = dso_local local_unnamed_addr global [10 x i32] zeroinitializer, align 16 @b = dso_local global [10 x i32] zeroinitializer, align 16 @a = dso_local local_unnamed_addr global [10 x i32] zeroinitializer, align 16 @str = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @str.4 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %m = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #7 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %m) %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 1)) %0 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 1), align 4, !tbaa !5 store i32 %0, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 1), align 4, !tbaa !5 %call1.1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 2)) %1 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 2), align 8, !tbaa !5 store i32 %1, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 2), align 8, !tbaa !5 %call1.2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 3)) %2 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 3), align 4, !tbaa !5 store i32 %2, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 3), align 4, !tbaa !5 %call1.3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 4)) %3 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 4), align 16, !tbaa !5 store i32 %3, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 4), align 16, !tbaa !5 %call1.4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 5)) %4 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 5), align 4, !tbaa !5 store i32 %4, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 5), align 4, !tbaa !5 %call1.5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 6)) %5 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 6), align 8, !tbaa !5 store i32 %5, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 6), align 8, !tbaa !5 %6 = load i32, ptr %m, align 4, !tbaa !5 %cmp7107 = icmp sgt i32 %6, 0 br i1 %cmp7107, label %for.cond9.preheader, label %cleanup for.cond6: ; preds = %Search.exit87 %inc31 = add nuw nsw i32 %j.0108, 1 %7 = load i32, ptr %m, align 4, !tbaa !5 %cmp7 = icmp slt i32 %inc31, %7 br i1 %cmp7, label %for.cond9.preheader, label %cleanup, !llvm.loop !9 for.cond9.preheader: ; preds = %entry, %for.cond6 %j.0108 = phi i32 [ %inc31, %for.cond6 ], [ 0, %entry ] %call14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 1)) %8 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5 store i32 %8, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 1), align 4, !tbaa !5 %call14.1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 2)) %9 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 2), align 8, !tbaa !5 store i32 %9, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 2), align 8, !tbaa !5 %call14.2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 3)) %10 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 3), align 4, !tbaa !5 store i32 %10, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 3), align 4, !tbaa !5 %call14.3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 4)) %11 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 4), align 16, !tbaa !5 store i32 %11, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 4), align 16, !tbaa !5 %call14.4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 5)) %12 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 5), align 4, !tbaa !5 store i32 %12, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 5), align 4, !tbaa !5 %call14.5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 6)) %13 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 6), align 8, !tbaa !5 store i32 %13, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 6), align 8, !tbaa !5 %14 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 1), align 4, !tbaa !5 %15 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 2), align 8, !tbaa !5 %cmp3.i = icmp sgt i32 %14, %15 br i1 %cmp3.i, label %if.then.i, label %for.inc.i if.then.i: ; preds = %for.cond9.preheader store i32 %14, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 2), align 8, !tbaa !5 store i32 %15, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 1), align 4, !tbaa !5 br label %for.inc.i for.inc.i: ; preds = %if.then.i, %for.cond9.preheader %16 = phi i32 [ %14, %for.cond9.preheader ], [ %15, %if.then.i ] %17 = phi i32 [ %15, %for.cond9.preheader ], [ %14, %if.then.i ] %18 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 3), align 4, !tbaa !5 %cmp3.1.i = icmp sgt i32 %17, %18 br i1 %cmp3.1.i, label %if.then.1.i, label %for.inc.1.i if.then.1.i: ; preds = %for.inc.i store i32 %17, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 3), align 4, !tbaa !5 store i32 %18, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 2), align 8, !tbaa !5 br label %for.inc.1.i for.inc.1.i: ; preds = %if.then.1.i, %for.inc.i %19 = phi i32 [ %18, %if.then.1.i ], [ %17, %for.inc.i ] %20 = phi i32 [ %17, %if.then.1.i ], [ %18, %for.inc.i ] %21 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 4), align 16, !tbaa !5 %cmp3.2.i = icmp sgt i32 %20, %21 br i1 %cmp3.2.i, label %if.then.2.i, label %for.inc.2.i if.then.2.i: ; preds = %for.inc.1.i store i32 %20, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 4), align 16, !tbaa !5 store i32 %21, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 3), align 4, !tbaa !5 br label %for.inc.2.i for.inc.2.i: ; preds = %if.then.2.i, %for.inc.1.i %22 = phi i32 [ %21, %if.then.2.i ], [ %20, %for.inc.1.i ] %23 = phi i32 [ %20, %if.then.2.i ], [ %21, %for.inc.1.i ] %24 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 5), align 4 %cmp3.3.i = icmp sgt i32 %23, %24 br i1 %cmp3.3.i, label %if.then.3.i, label %for.inc.3.i if.then.3.i: ; preds = %for.inc.2.i store i32 %23, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 5), align 4, !tbaa !5 store i32 %24, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 4), align 16, !tbaa !5 br label %for.inc.3.i for.inc.3.i: ; preds = %if.then.3.i, %for.inc.2.i %25 = phi i32 [ %24, %if.then.3.i ], [ %23, %for.inc.2.i ] %26 = phi i32 [ %23, %if.then.3.i ], [ %24, %for.inc.2.i ] %cmp3.4.i = icmp sgt i32 %26, %13 br i1 %cmp3.4.i, label %if.then.4.i, label %Sort.exit if.then.4.i: ; preds = %for.inc.3.i store i32 %26, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 6), align 8, !tbaa !5 store i32 %13, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 5), align 4, !tbaa !5 br label %Sort.exit Sort.exit: ; preds = %for.inc.3.i, %if.then.4.i %27 = phi i32 [ %13, %for.inc.3.i ], [ %26, %if.then.4.i ] %28 = phi i32 [ %26, %for.inc.3.i ], [ %13, %if.then.4.i ] %29 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 1), align 4, !tbaa !5 %30 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 2), align 8, !tbaa !5 %cmp3.i46 = icmp sgt i32 %29, %30 br i1 %cmp3.i46, label %if.then.i59, label %for.inc.i47 if.then.i59: ; preds = %Sort.exit store i32 %29, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 2), align 8, !tbaa !5 store i32 %30, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 1), align 4, !tbaa !5 br label %for.inc.i47 for.inc.i47: ; preds = %if.then.i59, %Sort.exit %31 = phi i32 [ %29, %Sort.exit ], [ %30, %if.then.i59 ] %32 = phi i32 [ %30, %Sort.exit ], [ %29, %if.then.i59 ] %33 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 3), align 4, !tbaa !5 %cmp3.1.i48 = icmp sgt i32 %32, %33 br i1 %cmp3.1.i48, label %if.then.1.i58, label %for.inc.1.i49 if.then.1.i58: ; preds = %for.inc.i47 store i32 %32, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 3), align 4, !tbaa !5 store i32 %33, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 2), align 8, !tbaa !5 br label %for.inc.1.i49 for.inc.1.i49: ; preds = %if.then.1.i58, %for.inc.i47 %34 = phi i32 [ %33, %if.then.1.i58 ], [ %32, %for.inc.i47 ] %35 = phi i32 [ %32, %if.then.1.i58 ], [ %33, %for.inc.i47 ] %36 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 4), align 16, !tbaa !5 %cmp3.2.i50 = icmp sgt i32 %35, %36 br i1 %cmp3.2.i50, label %if.then.2.i57, label %for.inc.2.i51 if.then.2.i57: ; preds = %for.inc.1.i49 store i32 %35, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 4), align 16, !tbaa !5 store i32 %36, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 3), align 4, !tbaa !5 br label %for.inc.2.i51 for.inc.2.i51: ; preds = %if.then.2.i57, %for.inc.1.i49 %37 = phi i32 [ %36, %if.then.2.i57 ], [ %35, %for.inc.1.i49 ] %38 = phi i32 [ %35, %if.then.2.i57 ], [ %36, %for.inc.1.i49 ] %39 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 5), align 4, !tbaa !5 %cmp3.3.i52 = icmp sgt i32 %38, %39 br i1 %cmp3.3.i52, label %if.then.3.i56, label %for.inc.3.i53 if.then.3.i56: ; preds = %for.inc.2.i51 store i32 %38, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 5), align 4, !tbaa !5 store i32 %39, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 4), align 16, !tbaa !5 br label %for.inc.3.i53 for.inc.3.i53: ; preds = %if.then.3.i56, %for.inc.2.i51 %40 = phi i32 [ %39, %if.then.3.i56 ], [ %38, %for.inc.2.i51 ] %41 = phi i32 [ %38, %if.then.3.i56 ], [ %39, %for.inc.2.i51 ] %42 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 6), align 8, !tbaa !5 %cmp3.4.i54 = icmp sgt i32 %41, %42 br i1 %cmp3.4.i54, label %if.then.4.i55, label %Sort.exit60 if.then.4.i55: ; preds = %for.inc.3.i53 store i32 %41, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 6), align 8, !tbaa !5 store i32 %42, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 5), align 4, !tbaa !5 br label %Sort.exit60 Sort.exit60: ; preds = %for.inc.3.i53, %if.then.4.i55 %43 = phi i32 [ %42, %for.inc.3.i53 ], [ %41, %if.then.4.i55 ] %44 = phi i32 [ %41, %for.inc.3.i53 ], [ %42, %if.then.4.i55 ] %cmp3.i61 = icmp eq i32 %16, %31 %inc.i = zext i1 %cmp3.i61 to i32 %cmp3.1.i62 = icmp eq i32 %19, %34 %inc.1.i = zext i1 %cmp3.1.i62 to i32 %spec.select.1.i = add nuw nsw i32 %inc.1.i, %inc.i %cmp3.2.i63 = icmp eq i32 %22, %37 %inc.2.i = zext i1 %cmp3.2.i63 to i32 %spec.select.2.i = add nuw nsw i32 %spec.select.1.i, %inc.2.i %cmp3.3.i64 = icmp eq i32 %25, %40 %inc.3.i = zext i1 %cmp3.3.i64 to i32 %spec.select.3.i = add nuw nsw i32 %spec.select.2.i, %inc.3.i %cmp3.4.i65 = icmp eq i32 %28, %44 %inc.4.i = zext i1 %cmp3.4.i65 to i32 %spec.select.4.i = add nuw nsw i32 %spec.select.3.i, %inc.4.i %cmp3.5.i = icmp eq i32 %27, %43 %inc.5.i = zext i1 %cmp3.5.i to i32 %spec.select.5.i = add nuw nsw i32 %spec.select.4.i, %inc.5.i %cmp5.i = icmp eq i32 %spec.select.5.i, 6 %cmp6.i = icmp eq i32 %16, %19 %or.cond25.i = and i1 %cmp6.i, %cmp5.i %cmp8.i = icmp eq i32 %16, %22 %or.cond26.i = and i1 %cmp8.i, %or.cond25.i br i1 %or.cond26.i, label %land.lhs.true9.i, label %if.end land.lhs.true9.i: ; preds = %Sort.exit60 %cmp10.i = icmp eq i32 %16, %25 %cmp12.i = icmp eq i32 %25, %28 %or.cond.i = and i1 %cmp10.i, %cmp12.i br i1 %or.cond.i, label %cleanup, label %if.end if.end: ; preds = %land.lhs.true9.i, %Sort.exit60 %45 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 1), align 4, !tbaa !5 %46 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5 %cmp3.i66 = icmp eq i32 %46, %45 br i1 %cmp3.i66, label %Search.exit.thread, label %if.end.i if.end.i: ; preds = %if.end %47 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 2), align 8, !tbaa !5 store i32 %47, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5 store i32 %13, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 2), align 8, !tbaa !5 %48 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 5), align 4, !tbaa !5 store i32 %48, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 6), align 8, !tbaa !5 store i32 %46, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 5), align 4, !tbaa !5 %cmp3.1.i67 = icmp eq i32 %47, %45 br i1 %cmp3.1.i67, label %Search.exit.thread, label %if.end.1.i if.end.1.i: ; preds = %if.end.i store i32 %13, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5 store i32 %48, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 2), align 8, !tbaa !5 store i32 %46, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 6), align 8, !tbaa !5 store i32 %47, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 5), align 4, !tbaa !5 %cmp3.2.i68 = icmp eq i32 %13, %45 br i1 %cmp3.2.i68, label %Search.exit, label %if.end.2.i if.end.2.i: ; preds = %if.end.1.i store i32 %48, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5 store i32 %46, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 2), align 8, !tbaa !5 store i32 %47, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 6), align 8, !tbaa !5 store i32 %13, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 5), align 4, !tbaa !5 %cmp3.3.i69 = icmp eq i32 %48, %45 br i1 %cmp3.3.i69, label %Search.exit.thread, label %if.end.3.i if.end.3.i: ; preds = %if.end.2.i store i32 %46, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5 store i32 %47, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 2), align 8, !tbaa !5 store i32 %13, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 6), align 8, !tbaa !5 store i32 %48, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 5), align 4, !tbaa !5 br label %Search.exit Search.exit.thread: ; preds = %if.end, %if.end.i, %if.end.2.i %.ph = phi i32 [ %47, %if.end.2.i ], [ %48, %if.end.i ], [ %13, %if.end ] %.pre.pre116 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 3), align 4, !tbaa !5 %.pre111.pre117 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 4), align 16, !tbaa !5 br label %Search.exit78 Search.exit: ; preds = %if.end.1.i, %if.end.3.i %49 = phi i32 [ %46, %if.end.1.i ], [ %13, %if.end.3.i ] %50 = phi i32 [ %13, %if.end.1.i ], [ %46, %if.end.3.i ] %cmp3.i70 = icmp eq i32 %50, %45 %.pre.pre = load i32, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 3), align 4, !tbaa !5 %.pre111.pre = load i32, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 4), align 16, !tbaa !5 br i1 %cmp3.i70, label %Search.exit78, label %if.end.i71 if.end.i71: ; preds = %Search.exit store i32 %.pre.pre, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5 store i32 %49, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 3), align 4, !tbaa !5 store i32 %.pre111.pre, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 6), align 8, !tbaa !5 store i32 %50, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 4), align 16, !tbaa !5 %cmp3.1.i72 = icmp eq i32 %.pre.pre, %45 br i1 %cmp3.1.i72, label %Search.exit78, label %if.end.1.i73 if.end.1.i73: ; preds = %if.end.i71 store i32 %49, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5 store i32 %.pre111.pre, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 3), align 4, !tbaa !5 store i32 %50, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 6), align 8, !tbaa !5 store i32 %.pre.pre, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 4), align 16, !tbaa !5 %cmp3.2.i74 = icmp eq i32 %49, %45 br i1 %cmp3.2.i74, label %Search.exit78, label %if.end.2.i75 if.end.2.i75: ; preds = %if.end.1.i73 store i32 %.pre111.pre, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5 store i32 %50, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 3), align 4, !tbaa !5 store i32 %.pre.pre, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 6), align 8, !tbaa !5 store i32 %49, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 4), align 16, !tbaa !5 %cmp3.3.i76 = icmp eq i32 %.pre111.pre, %45 br i1 %cmp3.3.i76, label %Search.exit78, label %if.end.3.i77 if.end.3.i77: ; preds = %if.end.2.i75 store i32 %50, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5 store i32 %.pre.pre, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 3), align 4, !tbaa !5 store i32 %49, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 6), align 8, !tbaa !5 store i32 %.pre111.pre, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 4), align 16, !tbaa !5 br label %Search.exit78 Search.exit78: ; preds = %Search.exit.thread, %Search.exit, %if.end.i71, %if.end.1.i73, %if.end.2.i75, %if.end.3.i77 %.pre111 = phi i32 [ %.pre111.pre, %Search.exit ], [ %50, %if.end.i71 ], [ %.pre.pre, %if.end.1.i73 ], [ %49, %if.end.2.i75 ], [ %.pre111.pre, %if.end.3.i77 ], [ %.pre111.pre117, %Search.exit.thread ] %.pre = phi i32 [ %.pre.pre, %Search.exit ], [ %49, %if.end.i71 ], [ %.pre111.pre, %if.end.1.i73 ], [ %50, %if.end.2.i75 ], [ %.pre.pre, %if.end.3.i77 ], [ %.pre.pre116, %Search.exit.thread ] %51 = phi i32 [ %49, %Search.exit ], [ %.pre111.pre, %if.end.i71 ], [ %50, %if.end.1.i73 ], [ %.pre.pre, %if.end.2.i75 ], [ %49, %if.end.3.i77 ], [ %.ph, %Search.exit.thread ] %52 = phi i32 [ %45, %Search.exit ], [ %45, %if.end.i71 ], [ %45, %if.end.1.i73 ], [ %45, %if.end.2.i75 ], [ %50, %if.end.3.i77 ], [ %45, %Search.exit.thread ] %53 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 2), align 8, !tbaa !5 %54 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 2), align 8, !tbaa !5 %cmp3.i79 = icmp eq i32 %54, %53 %.pre112 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 5), align 4, !tbaa !5 br i1 %cmp3.i79, label %Search.exit87, label %if.end.i80 if.end.i80: ; preds = %Search.exit78 store i32 %.pre, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 2), align 8, !tbaa !5 store i32 %.pre112, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 3), align 4, !tbaa !5 store i32 %.pre111, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 5), align 4, !tbaa !5 store i32 %54, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 4), align 16, !tbaa !5 %cmp3.1.i81 = icmp eq i32 %.pre, %53 br i1 %cmp3.1.i81, label %Search.exit87, label %if.end.1.i82 if.end.1.i82: ; preds = %if.end.i80 store i32 %.pre112, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 2), align 8, !tbaa !5 store i32 %.pre111, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 3), align 4, !tbaa !5 store i32 %54, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 5), align 4, !tbaa !5 store i32 %.pre, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 4), align 16, !tbaa !5 %cmp3.2.i83 = icmp eq i32 %.pre112, %53 br i1 %cmp3.2.i83, label %Search.exit87, label %if.end.2.i84 if.end.2.i84: ; preds = %if.end.1.i82 store i32 %.pre111, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 2), align 8, !tbaa !5 store i32 %54, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 3), align 4, !tbaa !5 store i32 %.pre, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 5), align 4, !tbaa !5 store i32 %.pre112, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 4), align 16, !tbaa !5 %cmp3.3.i85 = icmp eq i32 %.pre111, %53 br i1 %cmp3.3.i85, label %Search.exit87, label %if.end.3.i86 if.end.3.i86: ; preds = %if.end.2.i84 store i32 %54, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 2), align 8, !tbaa !5 store i32 %.pre, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 3), align 4, !tbaa !5 store i32 %.pre112, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 5), align 4, !tbaa !5 store i32 %.pre111, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 4), align 16, !tbaa !5 br label %Search.exit87 Search.exit87: ; preds = %Search.exit78, %if.end.i80, %if.end.1.i82, %if.end.2.i84, %if.end.3.i86 %55 = phi i32 [ %.pre112, %Search.exit78 ], [ %.pre111, %if.end.i80 ], [ %54, %if.end.1.i82 ], [ %.pre, %if.end.2.i84 ], [ %.pre112, %if.end.3.i86 ] %56 = phi i32 [ %.pre111, %Search.exit78 ], [ %54, %if.end.i80 ], [ %.pre, %if.end.1.i82 ], [ %.pre112, %if.end.2.i84 ], [ %.pre111, %if.end.3.i86 ] %57 = phi i32 [ %.pre, %Search.exit78 ], [ %.pre112, %if.end.i80 ], [ %.pre111, %if.end.1.i82 ], [ %54, %if.end.2.i84 ], [ %.pre, %if.end.3.i86 ] %58 = phi i32 [ %53, %Search.exit78 ], [ %.pre, %if.end.i80 ], [ %53, %if.end.1.i82 ], [ %.pre111, %if.end.2.i84 ], [ %54, %if.end.3.i86 ] %cmp3.i88 = icmp eq i32 %52, %45 %add.i = zext i1 %cmp3.i88 to i32 %cmp3.1.i89 = icmp eq i32 %58, %53 %add.1.i = zext i1 %cmp3.1.i89 to i32 %59 = load <4 x i32>, ptr getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 3), align 4, !tbaa !5 %60 = insertelement <4 x i32> poison, i32 %57, i64 0 %61 = insertelement <4 x i32> %60, i32 %56, i64 1 %62 = insertelement <4 x i32> %61, i32 %55, i64 2 %63 = insertelement <4 x i32> %62, i32 %51, i64 3 %64 = icmp eq <4 x i32> %63, %59 %65 = bitcast <4 x i1> %64 to i4 %66 = call i4 @llvm.ctpop.i4(i4 %65), !range !11 %67 = zext i4 %66 to i32 %op.rdx = add nuw nsw i32 %67, %add.i %op.rdx118 = add nuw nsw i32 %op.rdx, %add.1.i %cmp4.i = icmp eq i32 %op.rdx118, 6 br i1 %cmp4.i, label %cleanup, label %for.cond6 cleanup: ; preds = %for.cond6, %Search.exit87, %land.lhs.true9.i, %entry %str.4.sink = phi ptr [ @str, %entry ], [ @str.4, %land.lhs.true9.i ], [ @str.4, %Search.exit87 ], [ @str, %for.cond6 ] %puts.i100 = call i32 @puts(ptr nonnull dereferenceable(1) %str.4.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %m) #7 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable define dso_local void @Sort(ptr nocapture noundef %C) local_unnamed_addr #3 { entry: %arrayidx = getelementptr inbounds i32, ptr %C, i64 1 %0 = load i32, ptr %arrayidx, align 4, !tbaa !5 %arrayidx2 = getelementptr inbounds i32, ptr %C, i64 2 %1 = load i32, ptr %arrayidx2, align 4, !tbaa !5 %cmp3 = icmp sgt i32 %0, %1 br i1 %cmp3, label %if.then, label %for.inc if.then: ; preds = %entry store i32 %0, ptr %arrayidx2, align 4, !tbaa !5 store i32 %1, ptr %arrayidx, align 4, !tbaa !5 br label %for.inc for.inc: ; preds = %entry, %if.then %2 = phi i32 [ %1, %entry ], [ %0, %if.then ] %arrayidx2.1 = getelementptr inbounds i32, ptr %C, i64 3 %3 = load i32, ptr %arrayidx2.1, align 4, !tbaa !5 %cmp3.1 = icmp sgt i32 %2, %3 br i1 %cmp3.1, label %if.then.1, label %for.inc.1 if.then.1: ; preds = %for.inc store i32 %2, ptr %arrayidx2.1, align 4, !tbaa !5 store i32 %3, ptr %arrayidx2, align 4, !tbaa !5 br label %for.inc.1 for.inc.1: ; preds = %if.then.1, %for.inc %4 = phi i32 [ %2, %if.then.1 ], [ %3, %for.inc ] %arrayidx2.2 = getelementptr inbounds i32, ptr %C, i64 4 %5 = load i32, ptr %arrayidx2.2, align 4, !tbaa !5 %cmp3.2 = icmp sgt i32 %4, %5 br i1 %cmp3.2, label %if.then.2, label %for.inc.2 if.then.2: ; preds = %for.inc.1 store i32 %4, ptr %arrayidx2.2, align 4, !tbaa !5 store i32 %5, ptr %arrayidx2.1, align 4, !tbaa !5 br label %for.inc.2 for.inc.2: ; preds = %if.then.2, %for.inc.1 %6 = phi i32 [ %4, %if.then.2 ], [ %5, %for.inc.1 ] %arrayidx2.3 = getelementptr inbounds i32, ptr %C, i64 5 %7 = load i32, ptr %arrayidx2.3, align 4, !tbaa !5 %cmp3.3 = icmp sgt i32 %6, %7 br i1 %cmp3.3, label %if.then.3, label %for.inc.3 if.then.3: ; preds = %for.inc.2 store i32 %6, ptr %arrayidx2.3, align 4, !tbaa !5 store i32 %7, ptr %arrayidx2.2, align 4, !tbaa !5 br label %for.inc.3 for.inc.3: ; preds = %if.then.3, %for.inc.2 %8 = phi i32 [ %6, %if.then.3 ], [ %7, %for.inc.2 ] %arrayidx2.4 = getelementptr inbounds i32, ptr %C, i64 6 %9 = load i32, ptr %arrayidx2.4, align 4, !tbaa !5 %cmp3.4 = icmp sgt i32 %8, %9 br i1 %cmp3.4, label %if.then.4, label %for.inc.4 if.then.4: ; preds = %for.inc.3 store i32 %8, ptr %arrayidx2.4, align 4, !tbaa !5 store i32 %9, ptr %arrayidx2.3, align 4, !tbaa !5 br label %for.inc.4 for.inc.4: ; preds = %if.then.4, %for.inc.3 ret void } ; Function Attrs: nofree nounwind uwtable define dso_local i32 @Answer_1() local_unnamed_addr #0 { entry: %0 = load <4 x i32>, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 1), align 4, !tbaa !5 %1 = load <4 x i32>, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 1), align 4, !tbaa !5 %2 = icmp eq <4 x i32> %0, %1 %3 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 5), align 4 %4 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 5), align 4, !tbaa !5 %cmp3.4 = icmp eq i32 %3, %4 %inc.4 = zext i1 %cmp3.4 to i32 %5 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @a, i64 0, i64 6), align 8, !tbaa !5 %6 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @d, i64 0, i64 6), align 8, !tbaa !5 %cmp3.5 = icmp eq i32 %5, %6 %inc.5 = zext i1 %cmp3.5 to i32 %7 = bitcast <4 x i1> %2 to i4 %8 = tail call i4 @llvm.ctpop.i4(i4 %7), !range !11 %9 = zext i4 %8 to i32 %op.rdx = add nuw nsw i32 %9, %inc.4 %op.rdx27 = add nuw nsw i32 %op.rdx, %inc.5 %cmp5 = icmp eq i32 %op.rdx27, 6 %10 = shufflevector <4 x i32> %0, <4 x i32> poison, <2 x i32> zeroinitializer %11 = shufflevector <4 x i32> %0, <4 x i32> poison, <2 x i32> <i32 1, i32 2> %12 = icmp eq <2 x i32> %10, %11 %13 = extractelement <2 x i1> %12, i64 0 %or.cond25 = and i1 %cmp5, %13 %14 = extractelement <2 x i1> %12, i64 1 %or.cond26 = and i1 %or.cond25, %14 br i1 %or.cond26, label %land.lhs.true9, label %cleanup land.lhs.true9: ; preds = %entry %15 = extractelement <4 x i32> %0, i64 0 %16 = extractelement <4 x i32> %0, i64 3 %cmp10 = icmp eq i32 %15, %16 %cmp12 = icmp eq i32 %16, %3 %or.cond = and i1 %cmp10, %cmp12 br i1 %or.cond, label %if.then13, label %cleanup if.then13: ; preds = %land.lhs.true9 %puts = tail call i32 @puts(ptr nonnull dereferenceable(1) @str.4) br label %cleanup cleanup: ; preds = %entry, %land.lhs.true9, %if.then13 %retval.0 = phi i32 [ 1, %if.then13 ], [ 0, %land.lhs.true9 ], [ 0, %entry ] ret i32 %retval.0 } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable define dso_local i32 @Search(i32 noundef %num, i32 noundef %ans) local_unnamed_addr #4 { entry: %idxprom = sext i32 %num to i64 %arrayidx = getelementptr inbounds [10 x i32], ptr @b, i64 0, i64 %idxprom %arrayidx2 = getelementptr inbounds [10 x i32], ptr @e, i64 0, i64 %idxprom %0 = load i32, ptr %arrayidx2, align 4, !tbaa !5 %idxprom6 = sext i32 %ans to i64 %arrayidx7 = getelementptr inbounds [10 x i32], ptr @b, i64 0, i64 %idxprom6 %sub = sub nsw i32 7, %num %idxprom10 = sext i32 %sub to i64 %arrayidx11 = getelementptr inbounds [10 x i32], ptr @b, i64 0, i64 %idxprom10 %sub14 = sub nsw i32 7, %ans %idxprom15 = sext i32 %sub14 to i64 %arrayidx16 = getelementptr inbounds [10 x i32], ptr @b, i64 0, i64 %idxprom15 %1 = load i32, ptr %arrayidx, align 4, !tbaa !5 %cmp3 = icmp eq i32 %1, %0 br i1 %cmp3, label %cleanup, label %if.end if.end: ; preds = %entry %2 = load i32, ptr %arrayidx7, align 4, !tbaa !5 store i32 %2, ptr %arrayidx, align 4, !tbaa !5 %3 = load i32, ptr %arrayidx11, align 4, !tbaa !5 store i32 %3, ptr %arrayidx7, align 4, !tbaa !5 %4 = load i32, ptr %arrayidx16, align 4, !tbaa !5 store i32 %4, ptr %arrayidx11, align 4, !tbaa !5 store i32 %1, ptr %arrayidx16, align 4, !tbaa !5 %5 = load i32, ptr %arrayidx, align 4, !tbaa !5 %cmp3.1 = icmp eq i32 %5, %0 br i1 %cmp3.1, label %cleanup, label %if.end.1 if.end.1: ; preds = %if.end %6 = load i32, ptr %arrayidx7, align 4, !tbaa !5 store i32 %6, ptr %arrayidx, align 4, !tbaa !5 %7 = load i32, ptr %arrayidx11, align 4, !tbaa !5 store i32 %7, ptr %arrayidx7, align 4, !tbaa !5 %8 = load i32, ptr %arrayidx16, align 4, !tbaa !5 store i32 %8, ptr %arrayidx11, align 4, !tbaa !5 store i32 %5, ptr %arrayidx16, align 4, !tbaa !5 %9 = load i32, ptr %arrayidx, align 4, !tbaa !5 %cmp3.2 = icmp eq i32 %9, %0 br i1 %cmp3.2, label %cleanup, label %if.end.2 if.end.2: ; preds = %if.end.1 %10 = load i32, ptr %arrayidx7, align 4, !tbaa !5 store i32 %10, ptr %arrayidx, align 4, !tbaa !5 %11 = load i32, ptr %arrayidx11, align 4, !tbaa !5 store i32 %11, ptr %arrayidx7, align 4, !tbaa !5 %12 = load i32, ptr %arrayidx16, align 4, !tbaa !5 store i32 %12, ptr %arrayidx11, align 4, !tbaa !5 store i32 %9, ptr %arrayidx16, align 4, !tbaa !5 %13 = load i32, ptr %arrayidx, align 4, !tbaa !5 %cmp3.3 = icmp eq i32 %13, %0 br i1 %cmp3.3, label %cleanup, label %if.end.3 if.end.3: ; preds = %if.end.2 %14 = load i32, ptr %arrayidx7, align 4, !tbaa !5 store i32 %14, ptr %arrayidx, align 4, !tbaa !5 %15 = load i32, ptr %arrayidx11, align 4, !tbaa !5 store i32 %15, ptr %arrayidx7, align 4, !tbaa !5 %16 = load i32, ptr %arrayidx16, align 4, !tbaa !5 store i32 %16, ptr %arrayidx11, align 4, !tbaa !5 store i32 %13, ptr %arrayidx16, align 4, !tbaa !5 br label %cleanup cleanup: ; preds = %if.end.3, %if.end.2, %if.end.1, %if.end, %entry ret i32 0 } ; Function Attrs: nofree nounwind uwtable define dso_local i32 @Answer_2() local_unnamed_addr #0 { entry: %0 = load <4 x i32>, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5 %1 = load <4 x i32>, ptr getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 1), align 4, !tbaa !5 %2 = icmp eq <4 x i32> %0, %1 %3 = load <2 x i32>, ptr getelementptr inbounds ([10 x i32], ptr @b, i64 0, i64 5), align 4, !tbaa !5 %4 = load <2 x i32>, ptr getelementptr inbounds ([10 x i32], ptr @e, i64 0, i64 5), align 4, !tbaa !5 %5 = icmp eq <2 x i32> %3, %4 %6 = extractelement <2 x i1> %5, i64 0 %add.4 = zext i1 %6 to i32 %7 = extractelement <2 x i1> %5, i64 1 %add.5 = zext i1 %7 to i32 %8 = bitcast <4 x i1> %2 to i4 %9 = tail call i4 @llvm.ctpop.i4(i4 %8), !range !11 %10 = zext i4 %9 to i32 %op.rdx = add nuw nsw i32 %10, %add.4 %op.rdx15 = add nuw nsw i32 %op.rdx, %add.5 %cmp4 = icmp eq i32 %op.rdx15, 6 br i1 %cmp4, label %if.then5, label %cleanup if.then5: ; preds = %entry %puts = tail call i32 @puts(ptr nonnull dereferenceable(1) @str.4) br label %cleanup cleanup: ; preds = %entry, %if.then5 %retval.0 = phi i32 [ 1, %if.then5 ], [ 0, %entry ] ret i32 %retval.0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #5 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i4 @llvm.ctpop.i4(i4) #6 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #5 = { nofree nounwind } attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #7 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = !{i4 0, i4 5}
#include<stdio.h> int la[100][7], lt[7], s=1, c; void dice(int num){ lt[0] = lt[1]; lt[1] = lt[num]; lt[num] = lt[6]; lt[6] = lt[7-num]; lt[7-num] = lt[0]; } int same(int a){ s = (la[a][1]==lt[1]&&la[a][3]==lt[3]&&la[a][4]==lt[4]&&la[a][5]==lt[5]&&la[a][6]==lt[6])?0:1; return s; } void reset(int a){ for(int i=0; i<6; i++) lt[i+1] = la[a][i+1]; c = 0; } int main(void){ int n; scanf("%d", &n); for(int i=0; i<n; i++) for(int j=0; j<6; j++) scanf("%d", &la[i][j+1]); for(int i=0; i<n&&s; i++){ for(int j=i+1; j<n&&s; j++){ if(s){ reset(j); dice(5); if(la[i][2]==lt[2]) while(same(i) && c++<4) dice(4); } // 1 if(s){ reset(j); if(la[i][2]==lt[2]) while(same(i) && c++<4) dice(4); } // 2 if(s){ reset(j); dice(3); dice(5); if(la[i][2]==lt[2]) while(same(i) && c++<4) dice(4); } // 3 if(s){ reset(j); dice(4); dice(5); if(la[i][2]==lt[2]) while(same(i) && c++<4) dice(4); } // 4 if(s){ reset(j); dice(5); dice(5); if(la[i][2]==lt[2]) while(same(i) && c++<4) dice(4); } // 5 if(s){ reset(j); dice(2); if(la[i][2]==lt[2]) while(same(i) && c++<4) dice(4); } // 6 } } if(s) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135277/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135277/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" @s = dso_local local_unnamed_addr global i32 1, align 4 @lt = dso_local local_unnamed_addr global [7 x i32] zeroinitializer, align 16 @la = dso_local global [100 x [7 x i32]] zeroinitializer, align 16 @c = dso_local local_unnamed_addr global i32 0, align 4 @.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable define dso_local void @dice(i32 noundef %num) local_unnamed_addr #0 { entry: %0 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %0, ptr @lt, align 16, !tbaa !5 %idxprom = sext i32 %num to i64 %arrayidx = getelementptr inbounds [7 x i32], ptr @lt, i64 0, i64 %idxprom %1 = load i32, ptr %arrayidx, align 4, !tbaa !5 store i32 %1, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 %2 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %2, ptr %arrayidx, align 4, !tbaa !5 %sub = sub nsw i32 7, %num %idxprom3 = sext i32 %sub to i64 %arrayidx4 = getelementptr inbounds [7 x i32], ptr @lt, i64 0, i64 %idxprom3 %3 = load i32, ptr %arrayidx4, align 4, !tbaa !5 store i32 %3, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 %4 = load i32, ptr @lt, align 16, !tbaa !5 store i32 %4, ptr %arrayidx4, align 4, !tbaa !5 ret void } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable define dso_local i32 @same(i32 noundef %a) local_unnamed_addr #0 { entry: %idxprom = sext i32 %a to i64 %arrayidx1 = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %idxprom, i64 1 %0 = load i32, ptr %arrayidx1, align 4, !tbaa !5 %1 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 %cmp = icmp eq i32 %0, %1 br i1 %cmp, label %land.lhs.true, label %land.end land.lhs.true: ; preds = %entry %arrayidx4 = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %idxprom, i64 3 %2 = load i32, ptr %arrayidx4, align 4, !tbaa !5 %3 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp5 = icmp eq i32 %2, %3 br i1 %cmp5, label %land.lhs.true6, label %land.end land.lhs.true6: ; preds = %land.lhs.true %arrayidx9 = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %idxprom, i64 4 %4 = load i32, ptr %arrayidx9, align 4, !tbaa !5 %5 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 %cmp10 = icmp eq i32 %4, %5 br i1 %cmp10, label %land.lhs.true11, label %land.end land.lhs.true11: ; preds = %land.lhs.true6 %arrayidx14 = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %idxprom, i64 5 %6 = load i32, ptr %arrayidx14, align 4, !tbaa !5 %7 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 5), align 4, !tbaa !5 %cmp15 = icmp eq i32 %6, %7 br i1 %cmp15, label %land.rhs, label %land.end land.rhs: ; preds = %land.lhs.true11 %arrayidx18 = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %idxprom, i64 6 %8 = load i32, ptr %arrayidx18, align 4, !tbaa !5 %9 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 %cmp19 = icmp ne i32 %8, %9 %10 = zext i1 %cmp19 to i32 br label %land.end land.end: ; preds = %land.rhs, %land.lhs.true11, %land.lhs.true6, %land.lhs.true, %entry %not. = phi i32 [ 1, %land.lhs.true11 ], [ 1, %land.lhs.true6 ], [ 1, %land.lhs.true ], [ 1, %entry ], [ %10, %land.rhs ] store i32 %not., ptr @s, align 4, !tbaa !5 ret i32 %not. } ; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable define dso_local void @reset(i32 noundef %a) local_unnamed_addr #1 { entry: %idxprom = sext i32 %a to i64 %0 = mul nsw i64 %idxprom, 28 %1 = getelementptr i8, ptr @la, i64 %0 %scevgep = getelementptr i8, ptr %1, i64 4 tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), ptr noundef nonnull align 4 dereferenceable(24) %scevgep, i64 24, i1 false), !tbaa !5 store i32 0, ptr @c, align 4, !tbaa !5 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #3 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #7 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %cmp309 = icmp sgt i32 %0, 0 br i1 %cmp309, label %for.cond1.preheader, label %for.cond12thread-pre-split.thread for.cond12thread-pre-split.thread: ; preds = %entry %.pr451 = load i32, ptr @s, align 4 %tobool408453.not = icmp eq i32 %.pr451, 0 br i1 %tobool408453.not, label %if.else, label %if.end138 for.cond1.preheader: ; preds = %entry, %for.cond1.preheader %indvars.iv = phi i64 [ %indvars.iv.next, %for.cond1.preheader ], [ 0, %entry ] %arrayidx6 = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %indvars.iv, i64 1 %call7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx6) %arrayidx6.1 = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %indvars.iv, i64 2 %call7.1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx6.1) %arrayidx6.2 = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %indvars.iv, i64 3 %call7.2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx6.2) %arrayidx6.3 = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %indvars.iv, i64 4 %call7.3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx6.3) %arrayidx6.4 = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %indvars.iv, i64 5 %call7.4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx6.4) %arrayidx6.5 = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %indvars.iv, i64 6 %call7.5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx6.5) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %1 = load i32, ptr %n, align 4, !tbaa !5 %2 = sext i32 %1 to i64 %cmp = icmp slt i64 %indvars.iv.next, %2 br i1 %cmp, label %for.cond1.preheader, label %for.cond12thread-pre-split, !llvm.loop !9 for.cond12thread-pre-split: ; preds = %for.cond1.preheader %.pr = load i32, ptr @s, align 4 %cmp13407 = icmp sgt i32 %1, 0 %tobool408 = icmp ne i32 %.pr, 0 %3 = select i1 %cmp13407, i1 %tobool408, i1 false br i1 %3, label %for.body15.lr.ph, label %for.cond.cleanup14 for.body15.lr.ph: ; preds = %for.cond12thread-pre-split %4 = zext i32 %1 to i64 br label %for.body15 for.cond18.for.cond12.loopexit_crit_edge: ; preds = %for.inc128 store i32 %197, ptr @c, align 4, !tbaa !5 store i32 %196, ptr @lt, align 16, !tbaa !5 br label %for.cond12.loopexit for.cond12.loopexit: ; preds = %for.cond18.for.cond12.loopexit_crit_edge, %for.body15 %5 = phi i32 [ %195, %for.cond18.for.cond12.loopexit_crit_edge ], [ %7, %for.body15 ] %s.promoted388 = phi i32 [ %s.promoted393, %for.cond18.for.cond12.loopexit_crit_edge ], [ %s.promoted396409, %for.body15 ] %.lcssa = phi i32 [ %.pr279.pr.pr349, %for.cond18.for.cond12.loopexit_crit_edge ], [ %s.promoted396409, %for.body15 ] %tobool = icmp ne i32 %.lcssa, 0 %6 = select i1 %cmp19365, i1 %tobool, i1 false %indvars.iv.next444 = add nuw nsw i64 %indvars.iv443, 1 br i1 %6, label %for.body15, label %for.cond.cleanup14, !llvm.loop !11 for.cond.cleanup14: ; preds = %for.cond12.loopexit, %for.cond12thread-pre-split %tobool.lcssa = phi i1 [ %tobool408, %for.cond12thread-pre-split ], [ %tobool, %for.cond12.loopexit ] br i1 %tobool.lcssa, label %if.end138, label %if.else for.body15: ; preds = %for.body15.lr.ph, %for.cond12.loopexit %7 = phi i32 [ %1, %for.body15.lr.ph ], [ %5, %for.cond12.loopexit ] %indvars.iv448 = phi i64 [ 0, %for.body15.lr.ph ], [ %indvars.iv.next449, %for.cond12.loopexit ] %indvars.iv443 = phi i64 [ 1, %for.body15.lr.ph ], [ %indvars.iv.next444, %for.cond12.loopexit ] %s.promoted396409 = phi i32 [ %.pr, %for.body15.lr.ph ], [ %s.promoted388, %for.cond12.loopexit ] %indvars.iv.next449 = add nuw nsw i64 %indvars.iv448, 1 %cmp19365 = icmp ult i64 %indvars.iv.next449, %4 %tobool21366 = icmp ne i32 %s.promoted396409, 0 %8 = select i1 %cmp19365, i1 %tobool21366, i1 false br i1 %8, label %if.then.lr.ph, label %for.cond12.loopexit if.then.lr.ph: ; preds = %for.body15 %arrayidx28 = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %indvars.iv448, i64 2 %arrayidx1.i = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %indvars.iv448, i64 1 %arrayidx4.i = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %indvars.iv448, i64 3 %arrayidx9.i = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %indvars.iv448, i64 4 %arrayidx14.i = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %indvars.iv448, i64 5 %arrayidx18.i = getelementptr inbounds [100 x [7 x i32]], ptr @la, i64 0, i64 %indvars.iv448, i64 6 br label %if.then if.then: ; preds = %if.then.lr.ph, %for.inc128 %9 = phi i32 [ %7, %if.then.lr.ph ], [ %195, %for.inc128 ] %indvars.iv445 = phi i64 [ %indvars.iv443, %if.then.lr.ph ], [ %indvars.iv.next446, %for.inc128 ] %s.promoted395 = phi i32 [ %s.promoted396409, %if.then.lr.ph ], [ %s.promoted393, %for.inc128 ] %.pr279.pr.pr351367 = phi i32 [ %s.promoted396409, %if.then.lr.ph ], [ %.pr279.pr.pr349, %for.inc128 ] %10 = mul nuw nsw i64 %indvars.iv445, 28 %gep = getelementptr i8, ptr getelementptr inbounds ([100 x [7 x i32]], ptr @la, i64 0, i64 0, i64 1), i64 %10 call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), ptr noundef nonnull align 4 dereferenceable(24) %gep, i64 24, i1 false), !tbaa !5 %11 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 %12 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 5), align 4, !tbaa !5 store i32 %12, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 %13 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %13, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 5), align 4, !tbaa !5 %14 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 2), align 8, !tbaa !5 store i32 %14, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %11, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 2), align 8, !tbaa !5 %15 = load i32, ptr %arrayidx28, align 4, !tbaa !5 %cmp29 = icmp eq i32 %15, %11 br i1 %cmp29, label %while.cond.preheader, label %if.then39 while.cond.preheader: ; preds = %if.then %16 = load i32, ptr %arrayidx1.i, align 4, !tbaa !5 %.promoted311 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %.promoted312 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 %cmp.i = icmp eq i32 %16, %12 br i1 %cmp.i, label %land.lhs.true.i, label %same.exit.thread land.lhs.true.i: ; preds = %while.cond.preheader %17 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i = icmp eq i32 %17, %.promoted311 br i1 %cmp5.i, label %land.lhs.true6.i, label %same.exit.thread land.lhs.true6.i: ; preds = %land.lhs.true.i %18 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i = icmp eq i32 %18, %.promoted312 br i1 %cmp10.i, label %land.lhs.true11.i, label %same.exit.thread land.lhs.true11.i: ; preds = %land.lhs.true6.i %19 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i = icmp eq i32 %19, %13 br i1 %cmp15.i, label %same.exit, label %same.exit.thread same.exit.thread: ; preds = %land.lhs.true11.i, %land.lhs.true6.i, %land.lhs.true.i, %while.cond.preheader store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs33 same.exit: ; preds = %land.lhs.true11.i %20 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i = icmp ne i32 %20, %14 %21 = zext i1 %cmp19.i to i32 store i32 %21, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i, label %land.rhs33, label %for.inc128 land.rhs33: ; preds = %same.exit.thread, %same.exit store i32 %.promoted312, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %14, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %.promoted311, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %12, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i.1 = icmp eq i32 %16, %.promoted312 br i1 %cmp.i.1, label %land.lhs.true.i.1, label %same.exit.thread.1 land.lhs.true.i.1: ; preds = %land.rhs33 %22 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i.1 = icmp eq i32 %22, %12 br i1 %cmp5.i.1, label %land.lhs.true6.i.1, label %same.exit.thread.1 land.lhs.true6.i.1: ; preds = %land.lhs.true.i.1 %23 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i.1 = icmp eq i32 %23, %14 br i1 %cmp10.i.1, label %land.lhs.true11.i.1, label %same.exit.thread.1 land.lhs.true11.i.1: ; preds = %land.lhs.true6.i.1 %24 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i.1 = icmp eq i32 %24, %13 br i1 %cmp15.i.1, label %same.exit.1, label %same.exit.thread.1 same.exit.thread.1: ; preds = %land.lhs.true11.i.1, %land.lhs.true6.i.1, %land.lhs.true.i.1, %land.rhs33 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs33.1 same.exit.1: ; preds = %land.lhs.true11.i.1 %25 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i.1 = icmp ne i32 %25, %.promoted311 %26 = zext i1 %cmp19.i.1 to i32 store i32 %26, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i.1, label %land.rhs33.1, label %for.inc128 land.rhs33.1: ; preds = %same.exit.1, %same.exit.thread.1 store i32 %14, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %.promoted311, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %12, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %.promoted312, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i.2 = icmp eq i32 %16, %14 br i1 %cmp.i.2, label %land.lhs.true.i.2, label %same.exit.thread.2 land.lhs.true.i.2: ; preds = %land.rhs33.1 %27 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i.2 = icmp eq i32 %27, %.promoted312 br i1 %cmp5.i.2, label %land.lhs.true6.i.2, label %same.exit.thread.2 land.lhs.true6.i.2: ; preds = %land.lhs.true.i.2 %28 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i.2 = icmp eq i32 %28, %.promoted311 br i1 %cmp10.i.2, label %land.lhs.true11.i.2, label %same.exit.thread.2 land.lhs.true11.i.2: ; preds = %land.lhs.true6.i.2 %29 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i.2 = icmp eq i32 %29, %13 br i1 %cmp15.i.2, label %same.exit.2, label %same.exit.thread.2 same.exit.thread.2: ; preds = %land.lhs.true11.i.2, %land.lhs.true6.i.2, %land.lhs.true.i.2, %land.rhs33.1 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs33.2 same.exit.2: ; preds = %land.lhs.true11.i.2 %30 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i.2 = icmp ne i32 %30, %12 %31 = zext i1 %cmp19.i.2 to i32 store i32 %31, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i.2, label %land.rhs33.2, label %for.inc128 land.rhs33.2: ; preds = %same.exit.2, %same.exit.thread.2 store i32 %.promoted311, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %12, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %.promoted312, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %14, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i.3 = icmp eq i32 %16, %.promoted311 br i1 %cmp.i.3, label %land.lhs.true.i.3, label %same.exit.thread.3 land.lhs.true.i.3: ; preds = %land.rhs33.2 %32 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i.3 = icmp eq i32 %32, %14 br i1 %cmp5.i.3, label %land.lhs.true6.i.3, label %same.exit.thread.3 land.lhs.true6.i.3: ; preds = %land.lhs.true.i.3 %33 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i.3 = icmp eq i32 %33, %12 br i1 %cmp10.i.3, label %land.lhs.true11.i.3, label %same.exit.thread.3 land.lhs.true11.i.3: ; preds = %land.lhs.true6.i.3 %34 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i.3 = icmp eq i32 %34, %13 br i1 %cmp15.i.3, label %same.exit.3, label %same.exit.thread.3 same.exit.thread.3: ; preds = %land.lhs.true11.i.3, %land.lhs.true6.i.3, %land.lhs.true.i.3, %land.rhs33.2 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs33.3 same.exit.3: ; preds = %land.lhs.true11.i.3 %35 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i.3 = icmp ne i32 %35, %.promoted312 %36 = zext i1 %cmp19.i.3 to i32 store i32 %36, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i.3, label %land.rhs33.3, label %for.inc128 land.rhs33.3: ; preds = %same.exit.3, %same.exit.thread.3 store i32 %12, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %.promoted312, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %14, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %.promoted311, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 br i1 %cmp.i, label %land.lhs.true.i.4, label %same.exit.thread.4 land.lhs.true.i.4: ; preds = %land.rhs33.3 %37 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i.4 = icmp eq i32 %37, %.promoted311 br i1 %cmp5.i.4, label %land.lhs.true6.i.4, label %same.exit.thread.4 land.lhs.true6.i.4: ; preds = %land.lhs.true.i.4 %38 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i.4 = icmp eq i32 %38, %.promoted312 br i1 %cmp10.i.4, label %land.lhs.true11.i.4, label %same.exit.thread.4 land.lhs.true11.i.4: ; preds = %land.lhs.true6.i.4 %39 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i.4 = icmp eq i32 %39, %13 br i1 %cmp15.i.4, label %same.exit.4, label %same.exit.thread.4 same.exit.thread.4: ; preds = %land.lhs.true11.i.4, %land.lhs.true6.i.4, %land.lhs.true.i.4, %land.rhs33.3 store i32 1, ptr @s, align 4, !tbaa !5 br label %if.then39 same.exit.4: ; preds = %land.lhs.true11.i.4 %40 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i.4 = icmp ne i32 %40, %14 %41 = zext i1 %cmp19.i.4 to i32 store i32 %41, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i.4, label %if.then39, label %for.inc128 if.then39: ; preds = %if.then, %same.exit.thread.4, %same.exit.4 %s.promoted394 = phi i32 [ %s.promoted395, %if.then ], [ 1, %same.exit.thread.4 ], [ 1, %same.exit.4 ] %42 = phi i32 [ %11, %if.then ], [ %.promoted311, %same.exit.thread.4 ], [ %.promoted311, %same.exit.4 ] %.pr279.pr.pr350 = phi i32 [ %.pr279.pr.pr351367, %if.then ], [ 1, %same.exit.thread.4 ], [ 1, %same.exit.4 ] call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), ptr noundef nonnull align 4 dereferenceable(24) %gep, i64 24, i1 false), !tbaa !5 %43 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 2), align 8, !tbaa !5 %cmp43 = icmp eq i32 %15, %43 br i1 %cmp43, label %while.cond45.preheader, label %if.then57 while.cond45.preheader: ; preds = %if.then39 %44 = load i32, ptr %arrayidx1.i, align 4, !tbaa !5 %.promoted315 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 %.promoted316 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %.promoted317 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 %.promoted318 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 %45 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 5), align 4 %cmp.i170 = icmp eq i32 %44, %.promoted315 br i1 %cmp.i170, label %land.lhs.true.i172, label %same.exit184.thread land.lhs.true.i172: ; preds = %while.cond45.preheader %46 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i174 = icmp eq i32 %46, %.promoted316 br i1 %cmp5.i174, label %land.lhs.true6.i175, label %same.exit184.thread land.lhs.true6.i175: ; preds = %land.lhs.true.i172 %47 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i177 = icmp eq i32 %47, %.promoted317 br i1 %cmp10.i177, label %land.lhs.true11.i178, label %same.exit184.thread land.lhs.true11.i178: ; preds = %land.lhs.true6.i175 %48 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i180 = icmp eq i32 %48, %45 br i1 %cmp15.i180, label %same.exit184, label %same.exit184.thread same.exit184.thread: ; preds = %land.lhs.true11.i178, %land.lhs.true6.i175, %land.lhs.true.i172, %while.cond45.preheader store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs48 same.exit184: ; preds = %land.lhs.true11.i178 %49 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i183 = icmp ne i32 %49, %.promoted318 %50 = zext i1 %cmp19.i183 to i32 store i32 %50, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i183, label %land.rhs48, label %for.inc128 land.rhs48: ; preds = %same.exit184.thread, %same.exit184 store i32 %.promoted317, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %.promoted318, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %.promoted316, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %.promoted315, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i170.1 = icmp eq i32 %44, %.promoted317 br i1 %cmp.i170.1, label %land.lhs.true.i172.1, label %same.exit184.thread.1 land.lhs.true.i172.1: ; preds = %land.rhs48 %51 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i174.1 = icmp eq i32 %51, %.promoted315 br i1 %cmp5.i174.1, label %land.lhs.true6.i175.1, label %same.exit184.thread.1 land.lhs.true6.i175.1: ; preds = %land.lhs.true.i172.1 %52 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i177.1 = icmp eq i32 %52, %.promoted318 br i1 %cmp10.i177.1, label %land.lhs.true11.i178.1, label %same.exit184.thread.1 land.lhs.true11.i178.1: ; preds = %land.lhs.true6.i175.1 %53 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i180.1 = icmp eq i32 %53, %45 br i1 %cmp15.i180.1, label %same.exit184.1, label %same.exit184.thread.1 same.exit184.thread.1: ; preds = %land.lhs.true11.i178.1, %land.lhs.true6.i175.1, %land.lhs.true.i172.1, %land.rhs48 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs48.1 same.exit184.1: ; preds = %land.lhs.true11.i178.1 %54 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i183.1 = icmp ne i32 %54, %.promoted316 %55 = zext i1 %cmp19.i183.1 to i32 store i32 %55, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i183.1, label %land.rhs48.1, label %for.inc128 land.rhs48.1: ; preds = %same.exit184.1, %same.exit184.thread.1 store i32 %.promoted318, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %.promoted316, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %.promoted315, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %.promoted317, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i170.2 = icmp eq i32 %44, %.promoted318 br i1 %cmp.i170.2, label %land.lhs.true.i172.2, label %same.exit184.thread.2 land.lhs.true.i172.2: ; preds = %land.rhs48.1 %56 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i174.2 = icmp eq i32 %56, %.promoted317 br i1 %cmp5.i174.2, label %land.lhs.true6.i175.2, label %same.exit184.thread.2 land.lhs.true6.i175.2: ; preds = %land.lhs.true.i172.2 %57 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i177.2 = icmp eq i32 %57, %.promoted316 br i1 %cmp10.i177.2, label %land.lhs.true11.i178.2, label %same.exit184.thread.2 land.lhs.true11.i178.2: ; preds = %land.lhs.true6.i175.2 %58 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i180.2 = icmp eq i32 %58, %45 br i1 %cmp15.i180.2, label %same.exit184.2, label %same.exit184.thread.2 same.exit184.thread.2: ; preds = %land.lhs.true11.i178.2, %land.lhs.true6.i175.2, %land.lhs.true.i172.2, %land.rhs48.1 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs48.2 same.exit184.2: ; preds = %land.lhs.true11.i178.2 %59 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i183.2 = icmp ne i32 %59, %.promoted315 %60 = zext i1 %cmp19.i183.2 to i32 store i32 %60, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i183.2, label %land.rhs48.2, label %for.inc128 land.rhs48.2: ; preds = %same.exit184.2, %same.exit184.thread.2 store i32 %.promoted316, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %.promoted315, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %.promoted317, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %.promoted318, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i170.3 = icmp eq i32 %44, %.promoted316 br i1 %cmp.i170.3, label %land.lhs.true.i172.3, label %same.exit184.thread.3 land.lhs.true.i172.3: ; preds = %land.rhs48.2 %61 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i174.3 = icmp eq i32 %61, %.promoted318 br i1 %cmp5.i174.3, label %land.lhs.true6.i175.3, label %same.exit184.thread.3 land.lhs.true6.i175.3: ; preds = %land.lhs.true.i172.3 %62 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i177.3 = icmp eq i32 %62, %.promoted315 br i1 %cmp10.i177.3, label %land.lhs.true11.i178.3, label %same.exit184.thread.3 land.lhs.true11.i178.3: ; preds = %land.lhs.true6.i175.3 %63 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i180.3 = icmp eq i32 %63, %45 br i1 %cmp15.i180.3, label %same.exit184.3, label %same.exit184.thread.3 same.exit184.thread.3: ; preds = %land.lhs.true11.i178.3, %land.lhs.true6.i175.3, %land.lhs.true.i172.3, %land.rhs48.2 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs48.3 same.exit184.3: ; preds = %land.lhs.true11.i178.3 %64 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i183.3 = icmp ne i32 %64, %.promoted317 %65 = zext i1 %cmp19.i183.3 to i32 store i32 %65, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i183.3, label %land.rhs48.3, label %for.inc128 land.rhs48.3: ; preds = %same.exit184.3, %same.exit184.thread.3 store i32 %.promoted315, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %.promoted317, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %.promoted318, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %.promoted316, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 br i1 %cmp.i170, label %land.lhs.true.i172.4, label %same.exit184.thread.4 land.lhs.true.i172.4: ; preds = %land.rhs48.3 %66 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i174.4 = icmp eq i32 %66, %.promoted316 br i1 %cmp5.i174.4, label %land.lhs.true6.i175.4, label %same.exit184.thread.4 land.lhs.true6.i175.4: ; preds = %land.lhs.true.i172.4 %67 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i177.4 = icmp eq i32 %67, %.promoted317 br i1 %cmp10.i177.4, label %land.lhs.true11.i178.4, label %same.exit184.thread.4 land.lhs.true11.i178.4: ; preds = %land.lhs.true6.i175.4 %68 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i180.4 = icmp eq i32 %68, %45 br i1 %cmp15.i180.4, label %same.exit184.4, label %same.exit184.thread.4 same.exit184.thread.4: ; preds = %land.lhs.true11.i178.4, %land.lhs.true6.i175.4, %land.lhs.true.i172.4, %land.rhs48.3 store i32 1, ptr @s, align 4, !tbaa !5 br label %if.then57 same.exit184.4: ; preds = %land.lhs.true11.i178.4 %69 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i183.4 = icmp ne i32 %69, %.promoted318 %70 = zext i1 %cmp19.i183.4 to i32 store i32 %70, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i183.4, label %if.then57, label %for.inc128 if.then57: ; preds = %if.then39, %same.exit184.thread.4, %same.exit184.4 %s.promoted392 = phi i32 [ %s.promoted394, %if.then39 ], [ 1, %same.exit184.thread.4 ], [ 1, %same.exit184.4 ] %.pr279.pr.pr348 = phi i32 [ %.pr279.pr.pr350, %if.then39 ], [ 1, %same.exit184.thread.4 ], [ 1, %same.exit184.4 ] call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), ptr noundef nonnull align 4 dereferenceable(24) %gep, i64 24, i1 false), !tbaa !5 %71 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 %72 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %73 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %73, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %74 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %71, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 %75 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 5), align 4, !tbaa !5 store i32 %75, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %74, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 5), align 4, !tbaa !5 %76 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 2), align 8, !tbaa !5 store i32 %76, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %72, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 2), align 8, !tbaa !5 %cmp61 = icmp eq i32 %15, %72 br i1 %cmp61, label %while.cond63.preheader, label %if.then75 while.cond63.preheader: ; preds = %if.then57 %77 = load i32, ptr %arrayidx1.i, align 4, !tbaa !5 %cmp.i189 = icmp eq i32 %77, %75 br i1 %cmp.i189, label %land.lhs.true.i191, label %same.exit203.thread land.lhs.true.i191: ; preds = %while.cond63.preheader %78 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i193 = icmp eq i32 %78, %73 br i1 %cmp5.i193, label %land.lhs.true6.i194, label %same.exit203.thread land.lhs.true6.i194: ; preds = %land.lhs.true.i191 %79 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i196 = icmp eq i32 %79, %71 br i1 %cmp10.i196, label %land.lhs.true11.i197, label %same.exit203.thread land.lhs.true11.i197: ; preds = %land.lhs.true6.i194 %80 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i199 = icmp eq i32 %80, %74 br i1 %cmp15.i199, label %same.exit203, label %same.exit203.thread same.exit203.thread: ; preds = %land.lhs.true11.i197, %land.lhs.true6.i194, %land.lhs.true.i191, %while.cond63.preheader store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs66 same.exit203: ; preds = %land.lhs.true11.i197 %81 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i202 = icmp ne i32 %81, %76 %82 = zext i1 %cmp19.i202 to i32 store i32 %82, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i202, label %land.rhs66, label %for.inc128 land.rhs66: ; preds = %same.exit203.thread, %same.exit203 store i32 %71, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %76, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %73, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %75, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i189.1 = icmp eq i32 %77, %71 br i1 %cmp.i189.1, label %land.lhs.true.i191.1, label %same.exit203.thread.1 land.lhs.true.i191.1: ; preds = %land.rhs66 %83 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i193.1 = icmp eq i32 %83, %75 br i1 %cmp5.i193.1, label %land.lhs.true6.i194.1, label %same.exit203.thread.1 land.lhs.true6.i194.1: ; preds = %land.lhs.true.i191.1 %84 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i196.1 = icmp eq i32 %84, %76 br i1 %cmp10.i196.1, label %land.lhs.true11.i197.1, label %same.exit203.thread.1 land.lhs.true11.i197.1: ; preds = %land.lhs.true6.i194.1 %85 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i199.1 = icmp eq i32 %85, %74 br i1 %cmp15.i199.1, label %same.exit203.1, label %same.exit203.thread.1 same.exit203.thread.1: ; preds = %land.lhs.true11.i197.1, %land.lhs.true6.i194.1, %land.lhs.true.i191.1, %land.rhs66 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs66.1 same.exit203.1: ; preds = %land.lhs.true11.i197.1 %86 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i202.1 = icmp ne i32 %86, %73 %87 = zext i1 %cmp19.i202.1 to i32 store i32 %87, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i202.1, label %land.rhs66.1, label %for.inc128 land.rhs66.1: ; preds = %same.exit203.1, %same.exit203.thread.1 store i32 %76, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %73, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %75, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %71, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i189.2 = icmp eq i32 %77, %76 br i1 %cmp.i189.2, label %land.lhs.true.i191.2, label %same.exit203.thread.2 land.lhs.true.i191.2: ; preds = %land.rhs66.1 %88 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i193.2 = icmp eq i32 %88, %71 br i1 %cmp5.i193.2, label %land.lhs.true6.i194.2, label %same.exit203.thread.2 land.lhs.true6.i194.2: ; preds = %land.lhs.true.i191.2 %89 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i196.2 = icmp eq i32 %89, %73 br i1 %cmp10.i196.2, label %land.lhs.true11.i197.2, label %same.exit203.thread.2 land.lhs.true11.i197.2: ; preds = %land.lhs.true6.i194.2 %90 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i199.2 = icmp eq i32 %90, %74 br i1 %cmp15.i199.2, label %same.exit203.2, label %same.exit203.thread.2 same.exit203.thread.2: ; preds = %land.lhs.true11.i197.2, %land.lhs.true6.i194.2, %land.lhs.true.i191.2, %land.rhs66.1 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs66.2 same.exit203.2: ; preds = %land.lhs.true11.i197.2 %91 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i202.2 = icmp ne i32 %91, %75 %92 = zext i1 %cmp19.i202.2 to i32 store i32 %92, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i202.2, label %land.rhs66.2, label %for.inc128 land.rhs66.2: ; preds = %same.exit203.2, %same.exit203.thread.2 store i32 %73, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %75, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %71, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %76, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i189.3 = icmp eq i32 %77, %73 br i1 %cmp.i189.3, label %land.lhs.true.i191.3, label %same.exit203.thread.3 land.lhs.true.i191.3: ; preds = %land.rhs66.2 %93 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i193.3 = icmp eq i32 %93, %76 br i1 %cmp5.i193.3, label %land.lhs.true6.i194.3, label %same.exit203.thread.3 land.lhs.true6.i194.3: ; preds = %land.lhs.true.i191.3 %94 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i196.3 = icmp eq i32 %94, %75 br i1 %cmp10.i196.3, label %land.lhs.true11.i197.3, label %same.exit203.thread.3 land.lhs.true11.i197.3: ; preds = %land.lhs.true6.i194.3 %95 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i199.3 = icmp eq i32 %95, %74 br i1 %cmp15.i199.3, label %same.exit203.3, label %same.exit203.thread.3 same.exit203.thread.3: ; preds = %land.lhs.true11.i197.3, %land.lhs.true6.i194.3, %land.lhs.true.i191.3, %land.rhs66.2 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs66.3 same.exit203.3: ; preds = %land.lhs.true11.i197.3 %96 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i202.3 = icmp ne i32 %96, %71 %97 = zext i1 %cmp19.i202.3 to i32 store i32 %97, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i202.3, label %land.rhs66.3, label %for.inc128 land.rhs66.3: ; preds = %same.exit203.3, %same.exit203.thread.3 store i32 %75, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %71, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %76, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %73, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 br i1 %cmp.i189, label %land.lhs.true.i191.4, label %same.exit203.thread.4 land.lhs.true.i191.4: ; preds = %land.rhs66.3 %98 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i193.4 = icmp eq i32 %98, %73 br i1 %cmp5.i193.4, label %land.lhs.true6.i194.4, label %same.exit203.thread.4 land.lhs.true6.i194.4: ; preds = %land.lhs.true.i191.4 %99 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i196.4 = icmp eq i32 %99, %71 br i1 %cmp10.i196.4, label %land.lhs.true11.i197.4, label %same.exit203.thread.4 land.lhs.true11.i197.4: ; preds = %land.lhs.true6.i194.4 %100 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i199.4 = icmp eq i32 %100, %74 br i1 %cmp15.i199.4, label %same.exit203.4, label %same.exit203.thread.4 same.exit203.thread.4: ; preds = %land.lhs.true11.i197.4, %land.lhs.true6.i194.4, %land.lhs.true.i191.4, %land.rhs66.3 store i32 1, ptr @s, align 4, !tbaa !5 br label %if.then75 same.exit203.4: ; preds = %land.lhs.true11.i197.4 %101 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i202.4 = icmp ne i32 %101, %76 %102 = zext i1 %cmp19.i202.4 to i32 store i32 %102, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i202.4, label %if.then75, label %for.inc128 if.then75: ; preds = %if.then57, %same.exit203.thread.4, %same.exit203.4 %s.promoted391 = phi i32 [ %s.promoted392, %if.then57 ], [ 1, %same.exit203.thread.4 ], [ 1, %same.exit203.4 ] %.pr279.pr.pr347 = phi i32 [ %.pr279.pr.pr348, %if.then57 ], [ 1, %same.exit203.thread.4 ], [ 1, %same.exit203.4 ] call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), ptr noundef nonnull align 4 dereferenceable(24) %gep, i64 24, i1 false), !tbaa !5 %103 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 %104 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 %105 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %105, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 %106 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 store i32 %103, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %107 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 5), align 4, !tbaa !5 store i32 %107, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %106, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 5), align 4, !tbaa !5 %108 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 2), align 8, !tbaa !5 store i32 %108, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %104, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 2), align 8, !tbaa !5 %cmp79 = icmp eq i32 %15, %104 br i1 %cmp79, label %while.cond81.preheader, label %if.then93 while.cond81.preheader: ; preds = %if.then75 %109 = load i32, ptr %arrayidx1.i, align 4, !tbaa !5 %cmp.i208 = icmp eq i32 %109, %107 br i1 %cmp.i208, label %land.lhs.true.i210, label %same.exit222.thread land.lhs.true.i210: ; preds = %while.cond81.preheader %110 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i212 = icmp eq i32 %110, %103 br i1 %cmp5.i212, label %land.lhs.true6.i213, label %same.exit222.thread land.lhs.true6.i213: ; preds = %land.lhs.true.i210 %111 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i215 = icmp eq i32 %111, %105 br i1 %cmp10.i215, label %land.lhs.true11.i216, label %same.exit222.thread land.lhs.true11.i216: ; preds = %land.lhs.true6.i213 %112 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i218 = icmp eq i32 %112, %106 br i1 %cmp15.i218, label %same.exit222, label %same.exit222.thread same.exit222.thread: ; preds = %land.lhs.true11.i216, %land.lhs.true6.i213, %land.lhs.true.i210, %while.cond81.preheader store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs84 same.exit222: ; preds = %land.lhs.true11.i216 %113 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i221 = icmp ne i32 %113, %108 %114 = zext i1 %cmp19.i221 to i32 store i32 %114, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i221, label %land.rhs84, label %for.inc128 land.rhs84: ; preds = %same.exit222.thread, %same.exit222 store i32 %105, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %108, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %103, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %107, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i208.1 = icmp eq i32 %109, %105 br i1 %cmp.i208.1, label %land.lhs.true.i210.1, label %same.exit222.thread.1 land.lhs.true.i210.1: ; preds = %land.rhs84 %115 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i212.1 = icmp eq i32 %115, %107 br i1 %cmp5.i212.1, label %land.lhs.true6.i213.1, label %same.exit222.thread.1 land.lhs.true6.i213.1: ; preds = %land.lhs.true.i210.1 %116 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i215.1 = icmp eq i32 %116, %108 br i1 %cmp10.i215.1, label %land.lhs.true11.i216.1, label %same.exit222.thread.1 land.lhs.true11.i216.1: ; preds = %land.lhs.true6.i213.1 %117 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i218.1 = icmp eq i32 %117, %106 br i1 %cmp15.i218.1, label %same.exit222.1, label %same.exit222.thread.1 same.exit222.thread.1: ; preds = %land.lhs.true11.i216.1, %land.lhs.true6.i213.1, %land.lhs.true.i210.1, %land.rhs84 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs84.1 same.exit222.1: ; preds = %land.lhs.true11.i216.1 %118 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i221.1 = icmp ne i32 %118, %103 %119 = zext i1 %cmp19.i221.1 to i32 store i32 %119, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i221.1, label %land.rhs84.1, label %for.inc128 land.rhs84.1: ; preds = %same.exit222.1, %same.exit222.thread.1 store i32 %108, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %103, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %107, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %105, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i208.2 = icmp eq i32 %109, %108 br i1 %cmp.i208.2, label %land.lhs.true.i210.2, label %same.exit222.thread.2 land.lhs.true.i210.2: ; preds = %land.rhs84.1 %120 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i212.2 = icmp eq i32 %120, %105 br i1 %cmp5.i212.2, label %land.lhs.true6.i213.2, label %same.exit222.thread.2 land.lhs.true6.i213.2: ; preds = %land.lhs.true.i210.2 %121 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i215.2 = icmp eq i32 %121, %103 br i1 %cmp10.i215.2, label %land.lhs.true11.i216.2, label %same.exit222.thread.2 land.lhs.true11.i216.2: ; preds = %land.lhs.true6.i213.2 %122 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i218.2 = icmp eq i32 %122, %106 br i1 %cmp15.i218.2, label %same.exit222.2, label %same.exit222.thread.2 same.exit222.thread.2: ; preds = %land.lhs.true11.i216.2, %land.lhs.true6.i213.2, %land.lhs.true.i210.2, %land.rhs84.1 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs84.2 same.exit222.2: ; preds = %land.lhs.true11.i216.2 %123 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i221.2 = icmp ne i32 %123, %107 %124 = zext i1 %cmp19.i221.2 to i32 store i32 %124, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i221.2, label %land.rhs84.2, label %for.inc128 land.rhs84.2: ; preds = %same.exit222.2, %same.exit222.thread.2 store i32 %103, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %107, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %105, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %108, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i208.3 = icmp eq i32 %109, %103 br i1 %cmp.i208.3, label %land.lhs.true.i210.3, label %same.exit222.thread.3 land.lhs.true.i210.3: ; preds = %land.rhs84.2 %125 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i212.3 = icmp eq i32 %125, %108 br i1 %cmp5.i212.3, label %land.lhs.true6.i213.3, label %same.exit222.thread.3 land.lhs.true6.i213.3: ; preds = %land.lhs.true.i210.3 %126 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i215.3 = icmp eq i32 %126, %107 br i1 %cmp10.i215.3, label %land.lhs.true11.i216.3, label %same.exit222.thread.3 land.lhs.true11.i216.3: ; preds = %land.lhs.true6.i213.3 %127 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i218.3 = icmp eq i32 %127, %106 br i1 %cmp15.i218.3, label %same.exit222.3, label %same.exit222.thread.3 same.exit222.thread.3: ; preds = %land.lhs.true11.i216.3, %land.lhs.true6.i213.3, %land.lhs.true.i210.3, %land.rhs84.2 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs84.3 same.exit222.3: ; preds = %land.lhs.true11.i216.3 %128 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i221.3 = icmp ne i32 %128, %105 %129 = zext i1 %cmp19.i221.3 to i32 store i32 %129, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i221.3, label %land.rhs84.3, label %for.inc128 land.rhs84.3: ; preds = %same.exit222.3, %same.exit222.thread.3 store i32 %107, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %105, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %108, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %103, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 br i1 %cmp.i208, label %land.lhs.true.i210.4, label %same.exit222.thread.4 land.lhs.true.i210.4: ; preds = %land.rhs84.3 %130 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i212.4 = icmp eq i32 %130, %103 br i1 %cmp5.i212.4, label %land.lhs.true6.i213.4, label %same.exit222.thread.4 land.lhs.true6.i213.4: ; preds = %land.lhs.true.i210.4 %131 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i215.4 = icmp eq i32 %131, %105 br i1 %cmp10.i215.4, label %land.lhs.true11.i216.4, label %same.exit222.thread.4 land.lhs.true11.i216.4: ; preds = %land.lhs.true6.i213.4 %132 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i218.4 = icmp eq i32 %132, %106 br i1 %cmp15.i218.4, label %same.exit222.4, label %same.exit222.thread.4 same.exit222.thread.4: ; preds = %land.lhs.true11.i216.4, %land.lhs.true6.i213.4, %land.lhs.true.i210.4, %land.rhs84.3 store i32 1, ptr @s, align 4, !tbaa !5 br label %if.then93 same.exit222.4: ; preds = %land.lhs.true11.i216.4 %133 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i221.4 = icmp ne i32 %133, %108 %134 = zext i1 %cmp19.i221.4 to i32 store i32 %134, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i221.4, label %if.then93, label %for.inc128 if.then93: ; preds = %if.then75, %same.exit222.thread.4, %same.exit222.4 %s.promoted390 = phi i32 [ %s.promoted391, %if.then75 ], [ 1, %same.exit222.thread.4 ], [ 1, %same.exit222.4 ] %.pr279.pr.pr346 = phi i32 [ %.pr279.pr.pr347, %if.then75 ], [ 1, %same.exit222.thread.4 ], [ 1, %same.exit222.4 ] call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), ptr noundef nonnull align 4 dereferenceable(24) %gep, i64 24, i1 false), !tbaa !5 %135 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 %136 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 5), align 4, !tbaa !5 %137 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 %138 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 2), align 8, !tbaa !5 store i32 %137, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %138, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 5), align 4, !tbaa !5 store i32 %135, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %136, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 2), align 8, !tbaa !5 %cmp97 = icmp eq i32 %15, %136 br i1 %cmp97, label %while.cond99.preheader, label %if.then111 while.cond99.preheader: ; preds = %if.then93 %139 = load i32, ptr %arrayidx1.i, align 4, !tbaa !5 %.promoted334 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %.promoted335 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 %cmp.i227 = icmp eq i32 %139, %137 br i1 %cmp.i227, label %land.lhs.true.i229, label %same.exit241.thread land.lhs.true.i229: ; preds = %while.cond99.preheader %140 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i231 = icmp eq i32 %140, %.promoted334 br i1 %cmp5.i231, label %land.lhs.true6.i232, label %same.exit241.thread land.lhs.true6.i232: ; preds = %land.lhs.true.i229 %141 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i234 = icmp eq i32 %141, %.promoted335 br i1 %cmp10.i234, label %land.lhs.true11.i235, label %same.exit241.thread land.lhs.true11.i235: ; preds = %land.lhs.true6.i232 %142 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i237 = icmp eq i32 %142, %138 br i1 %cmp15.i237, label %same.exit241, label %same.exit241.thread same.exit241.thread: ; preds = %land.lhs.true11.i235, %land.lhs.true6.i232, %land.lhs.true.i229, %while.cond99.preheader store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs102 same.exit241: ; preds = %land.lhs.true11.i235 %143 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i240 = icmp ne i32 %143, %135 %144 = zext i1 %cmp19.i240 to i32 store i32 %144, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i240, label %land.rhs102, label %for.inc128 land.rhs102: ; preds = %same.exit241.thread, %same.exit241 store i32 %.promoted335, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %135, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %.promoted334, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %137, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i227.1 = icmp eq i32 %139, %.promoted335 br i1 %cmp.i227.1, label %land.lhs.true.i229.1, label %same.exit241.thread.1 land.lhs.true.i229.1: ; preds = %land.rhs102 %145 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i231.1 = icmp eq i32 %145, %137 br i1 %cmp5.i231.1, label %land.lhs.true6.i232.1, label %same.exit241.thread.1 land.lhs.true6.i232.1: ; preds = %land.lhs.true.i229.1 %146 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i234.1 = icmp eq i32 %146, %135 br i1 %cmp10.i234.1, label %land.lhs.true11.i235.1, label %same.exit241.thread.1 land.lhs.true11.i235.1: ; preds = %land.lhs.true6.i232.1 %147 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i237.1 = icmp eq i32 %147, %138 br i1 %cmp15.i237.1, label %same.exit241.1, label %same.exit241.thread.1 same.exit241.thread.1: ; preds = %land.lhs.true11.i235.1, %land.lhs.true6.i232.1, %land.lhs.true.i229.1, %land.rhs102 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs102.1 same.exit241.1: ; preds = %land.lhs.true11.i235.1 %148 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i240.1 = icmp ne i32 %148, %.promoted334 %149 = zext i1 %cmp19.i240.1 to i32 store i32 %149, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i240.1, label %land.rhs102.1, label %for.inc128 land.rhs102.1: ; preds = %same.exit241.1, %same.exit241.thread.1 store i32 %135, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %.promoted334, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %137, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %.promoted335, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i227.2 = icmp eq i32 %139, %135 br i1 %cmp.i227.2, label %land.lhs.true.i229.2, label %same.exit241.thread.2 land.lhs.true.i229.2: ; preds = %land.rhs102.1 %150 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i231.2 = icmp eq i32 %150, %.promoted335 br i1 %cmp5.i231.2, label %land.lhs.true6.i232.2, label %same.exit241.thread.2 land.lhs.true6.i232.2: ; preds = %land.lhs.true.i229.2 %151 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i234.2 = icmp eq i32 %151, %.promoted334 br i1 %cmp10.i234.2, label %land.lhs.true11.i235.2, label %same.exit241.thread.2 land.lhs.true11.i235.2: ; preds = %land.lhs.true6.i232.2 %152 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i237.2 = icmp eq i32 %152, %138 br i1 %cmp15.i237.2, label %same.exit241.2, label %same.exit241.thread.2 same.exit241.thread.2: ; preds = %land.lhs.true11.i235.2, %land.lhs.true6.i232.2, %land.lhs.true.i229.2, %land.rhs102.1 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs102.2 same.exit241.2: ; preds = %land.lhs.true11.i235.2 %153 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i240.2 = icmp ne i32 %153, %137 %154 = zext i1 %cmp19.i240.2 to i32 store i32 %154, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i240.2, label %land.rhs102.2, label %for.inc128 land.rhs102.2: ; preds = %same.exit241.2, %same.exit241.thread.2 store i32 %.promoted334, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %137, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %.promoted335, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %135, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i227.3 = icmp eq i32 %139, %.promoted334 br i1 %cmp.i227.3, label %land.lhs.true.i229.3, label %same.exit241.thread.3 land.lhs.true.i229.3: ; preds = %land.rhs102.2 %155 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i231.3 = icmp eq i32 %155, %135 br i1 %cmp5.i231.3, label %land.lhs.true6.i232.3, label %same.exit241.thread.3 land.lhs.true6.i232.3: ; preds = %land.lhs.true.i229.3 %156 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i234.3 = icmp eq i32 %156, %137 br i1 %cmp10.i234.3, label %land.lhs.true11.i235.3, label %same.exit241.thread.3 land.lhs.true11.i235.3: ; preds = %land.lhs.true6.i232.3 %157 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i237.3 = icmp eq i32 %157, %138 br i1 %cmp15.i237.3, label %same.exit241.3, label %same.exit241.thread.3 same.exit241.thread.3: ; preds = %land.lhs.true11.i235.3, %land.lhs.true6.i232.3, %land.lhs.true.i229.3, %land.rhs102.2 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs102.3 same.exit241.3: ; preds = %land.lhs.true11.i235.3 %158 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i240.3 = icmp ne i32 %158, %.promoted335 %159 = zext i1 %cmp19.i240.3 to i32 store i32 %159, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i240.3, label %land.rhs102.3, label %for.inc128 land.rhs102.3: ; preds = %same.exit241.3, %same.exit241.thread.3 store i32 %137, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %.promoted335, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %135, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %.promoted334, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 br i1 %cmp.i227, label %land.lhs.true.i229.4, label %same.exit241.thread.4 land.lhs.true.i229.4: ; preds = %land.rhs102.3 %160 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i231.4 = icmp eq i32 %160, %.promoted334 br i1 %cmp5.i231.4, label %land.lhs.true6.i232.4, label %same.exit241.thread.4 land.lhs.true6.i232.4: ; preds = %land.lhs.true.i229.4 %161 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i234.4 = icmp eq i32 %161, %.promoted335 br i1 %cmp10.i234.4, label %land.lhs.true11.i235.4, label %same.exit241.thread.4 land.lhs.true11.i235.4: ; preds = %land.lhs.true6.i232.4 %162 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i237.4 = icmp eq i32 %162, %138 br i1 %cmp15.i237.4, label %same.exit241.4, label %same.exit241.thread.4 same.exit241.thread.4: ; preds = %land.lhs.true11.i235.4, %land.lhs.true6.i232.4, %land.lhs.true.i229.4, %land.rhs102.3 store i32 1, ptr @s, align 4, !tbaa !5 br label %if.then111 same.exit241.4: ; preds = %land.lhs.true11.i235.4 %163 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i240.4 = icmp ne i32 %163, %135 %164 = zext i1 %cmp19.i240.4 to i32 store i32 %164, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i240.4, label %if.then111, label %for.inc128 if.then111: ; preds = %if.then93, %same.exit241.thread.4, %same.exit241.4 %s.promoted389 = phi i32 [ %s.promoted390, %if.then93 ], [ 1, %same.exit241.thread.4 ], [ 1, %same.exit241.4 ] %.pr279.pr.pr345 = phi i32 [ %.pr279.pr.pr346, %if.then93 ], [ 1, %same.exit241.thread.4 ], [ 1, %same.exit241.4 ] call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), ptr noundef nonnull align 4 dereferenceable(24) %gep, i64 24, i1 false), !tbaa !5 %165 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 %166 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 2), align 8, !tbaa !5 store i32 %166, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 %167 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %167, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 2), align 8, !tbaa !5 %168 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 5), align 4, !tbaa !5 store i32 %168, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %165, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 5), align 4, !tbaa !5 %cmp115 = icmp eq i32 %15, %167 br i1 %cmp115, label %while.cond117.preheader, label %for.inc128 while.cond117.preheader: ; preds = %if.then111 %169 = load i32, ptr %arrayidx1.i, align 4, !tbaa !5 %.promoted340 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %.promoted341 = load i32, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 %cmp.i246 = icmp eq i32 %169, %166 br i1 %cmp.i246, label %land.lhs.true.i248, label %same.exit260.thread land.lhs.true.i248: ; preds = %while.cond117.preheader %170 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i250 = icmp eq i32 %170, %.promoted340 br i1 %cmp5.i250, label %land.lhs.true6.i251, label %same.exit260.thread land.lhs.true6.i251: ; preds = %land.lhs.true.i248 %171 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i253 = icmp eq i32 %171, %.promoted341 br i1 %cmp10.i253, label %land.lhs.true11.i254, label %same.exit260.thread land.lhs.true11.i254: ; preds = %land.lhs.true6.i251 %172 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i256 = icmp eq i32 %172, %165 br i1 %cmp15.i256, label %same.exit260, label %same.exit260.thread same.exit260.thread: ; preds = %land.lhs.true11.i254, %land.lhs.true6.i251, %land.lhs.true.i248, %while.cond117.preheader store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs120 same.exit260: ; preds = %land.lhs.true11.i254 %173 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i259 = icmp ne i32 %173, %168 %174 = zext i1 %cmp19.i259 to i32 store i32 %174, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i259, label %land.rhs120, label %for.inc128.loopexit land.rhs120: ; preds = %same.exit260.thread, %same.exit260 store i32 %.promoted341, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %168, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %.promoted340, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %166, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i246.1 = icmp eq i32 %169, %.promoted341 br i1 %cmp.i246.1, label %land.lhs.true.i248.1, label %same.exit260.thread.1 land.lhs.true.i248.1: ; preds = %land.rhs120 %175 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i250.1 = icmp eq i32 %175, %166 br i1 %cmp5.i250.1, label %land.lhs.true6.i251.1, label %same.exit260.thread.1 land.lhs.true6.i251.1: ; preds = %land.lhs.true.i248.1 %176 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i253.1 = icmp eq i32 %176, %168 br i1 %cmp10.i253.1, label %land.lhs.true11.i254.1, label %same.exit260.thread.1 land.lhs.true11.i254.1: ; preds = %land.lhs.true6.i251.1 %177 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i256.1 = icmp eq i32 %177, %165 br i1 %cmp15.i256.1, label %same.exit260.1, label %same.exit260.thread.1 same.exit260.thread.1: ; preds = %land.lhs.true11.i254.1, %land.lhs.true6.i251.1, %land.lhs.true.i248.1, %land.rhs120 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs120.1 same.exit260.1: ; preds = %land.lhs.true11.i254.1 %178 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i259.1 = icmp ne i32 %178, %.promoted340 %179 = zext i1 %cmp19.i259.1 to i32 store i32 %179, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i259.1, label %land.rhs120.1, label %for.inc128.loopexit land.rhs120.1: ; preds = %same.exit260.1, %same.exit260.thread.1 store i32 %168, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %.promoted340, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %166, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %.promoted341, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i246.2 = icmp eq i32 %169, %168 br i1 %cmp.i246.2, label %land.lhs.true.i248.2, label %same.exit260.thread.2 land.lhs.true.i248.2: ; preds = %land.rhs120.1 %180 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i250.2 = icmp eq i32 %180, %.promoted341 br i1 %cmp5.i250.2, label %land.lhs.true6.i251.2, label %same.exit260.thread.2 land.lhs.true6.i251.2: ; preds = %land.lhs.true.i248.2 %181 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i253.2 = icmp eq i32 %181, %.promoted340 br i1 %cmp10.i253.2, label %land.lhs.true11.i254.2, label %same.exit260.thread.2 land.lhs.true11.i254.2: ; preds = %land.lhs.true6.i251.2 %182 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i256.2 = icmp eq i32 %182, %165 br i1 %cmp15.i256.2, label %same.exit260.2, label %same.exit260.thread.2 same.exit260.thread.2: ; preds = %land.lhs.true11.i254.2, %land.lhs.true6.i251.2, %land.lhs.true.i248.2, %land.rhs120.1 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs120.2 same.exit260.2: ; preds = %land.lhs.true11.i254.2 %183 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i259.2 = icmp ne i32 %183, %166 %184 = zext i1 %cmp19.i259.2 to i32 store i32 %184, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i259.2, label %land.rhs120.2, label %for.inc128.loopexit land.rhs120.2: ; preds = %same.exit260.2, %same.exit260.thread.2 store i32 %.promoted340, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %166, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %.promoted341, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %168, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 %cmp.i246.3 = icmp eq i32 %169, %.promoted340 br i1 %cmp.i246.3, label %land.lhs.true.i248.3, label %same.exit260.thread.3 land.lhs.true.i248.3: ; preds = %land.rhs120.2 %185 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i250.3 = icmp eq i32 %185, %168 br i1 %cmp5.i250.3, label %land.lhs.true6.i251.3, label %same.exit260.thread.3 land.lhs.true6.i251.3: ; preds = %land.lhs.true.i248.3 %186 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i253.3 = icmp eq i32 %186, %166 br i1 %cmp10.i253.3, label %land.lhs.true11.i254.3, label %same.exit260.thread.3 land.lhs.true11.i254.3: ; preds = %land.lhs.true6.i251.3 %187 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i256.3 = icmp eq i32 %187, %165 br i1 %cmp15.i256.3, label %same.exit260.3, label %same.exit260.thread.3 same.exit260.thread.3: ; preds = %land.lhs.true11.i254.3, %land.lhs.true6.i251.3, %land.lhs.true.i248.3, %land.rhs120.2 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs120.3 same.exit260.3: ; preds = %land.lhs.true11.i254.3 %188 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i259.3 = icmp ne i32 %188, %.promoted341 %189 = zext i1 %cmp19.i259.3 to i32 store i32 %189, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i259.3, label %land.rhs120.3, label %for.inc128.loopexit land.rhs120.3: ; preds = %same.exit260.3, %same.exit260.thread.3 store i32 %166, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 1), align 4, !tbaa !5 store i32 %.promoted341, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 4), align 16, !tbaa !5 store i32 %168, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 6), align 8, !tbaa !5 store i32 %.promoted340, ptr getelementptr inbounds ([7 x i32], ptr @lt, i64 0, i64 3), align 4, !tbaa !5 br i1 %cmp.i246, label %land.lhs.true.i248.4, label %same.exit260.thread.4 land.lhs.true.i248.4: ; preds = %land.rhs120.3 %190 = load i32, ptr %arrayidx4.i, align 4, !tbaa !5 %cmp5.i250.4 = icmp eq i32 %190, %.promoted340 br i1 %cmp5.i250.4, label %land.lhs.true6.i251.4, label %same.exit260.thread.4 land.lhs.true6.i251.4: ; preds = %land.lhs.true.i248.4 %191 = load i32, ptr %arrayidx9.i, align 4, !tbaa !5 %cmp10.i253.4 = icmp eq i32 %191, %.promoted341 br i1 %cmp10.i253.4, label %land.lhs.true11.i254.4, label %same.exit260.thread.4 land.lhs.true11.i254.4: ; preds = %land.lhs.true6.i251.4 %192 = load i32, ptr %arrayidx14.i, align 4, !tbaa !5 %cmp15.i256.4 = icmp eq i32 %192, %165 br i1 %cmp15.i256.4, label %same.exit260.4, label %same.exit260.thread.4 same.exit260.thread.4: ; preds = %land.lhs.true11.i254.4, %land.lhs.true6.i251.4, %land.lhs.true.i248.4, %land.rhs120.3 store i32 1, ptr @s, align 4, !tbaa !5 br label %land.rhs120.4 same.exit260.4: ; preds = %land.lhs.true11.i254.4 %193 = load i32, ptr %arrayidx18.i, align 4, !tbaa !5 %cmp19.i259.4 = icmp ne i32 %193, %168 %194 = zext i1 %cmp19.i259.4 to i32 store i32 %194, ptr @s, align 4, !tbaa !5 br i1 %cmp19.i259.4, label %land.rhs120.4, label %for.inc128.loopexit land.rhs120.4: ; preds = %same.exit260.4, %same.exit260.thread.4 br label %for.inc128.loopexit for.inc128.loopexit: ; preds = %land.rhs120.4, %same.exit260.4, %same.exit260.3, %same.exit260.2, %same.exit260.1, %same.exit260 %.lcssa437 = phi i32 [ %165, %same.exit260 ], [ %166, %same.exit260.1 ], [ %.promoted341, %same.exit260.2 ], [ %168, %same.exit260.3 ], [ %.promoted340, %same.exit260.4 ], [ %.promoted340, %land.rhs120.4 ] %s.promoted393.ph = phi i32 [ 0, %same.exit260 ], [ 0, %same.exit260.1 ], [ 0, %same.exit260.2 ], [ 0, %same.exit260.3 ], [ 0, %same.exit260.4 ], [ 1, %land.rhs120.4 ] %.ph = phi i32 [ 0, %same.exit260 ], [ 1, %same.exit260.1 ], [ 2, %same.exit260.2 ], [ 3, %same.exit260.3 ], [ 4, %same.exit260.4 ], [ 5, %land.rhs120.4 ] %.pre = load i32, ptr %n, align 4, !tbaa !5 br label %for.inc128 for.inc128: ; preds = %same.exit, %same.exit.1, %same.exit.2, %same.exit.3, %same.exit.4, %same.exit184, %same.exit184.1, %same.exit184.2, %same.exit184.3, %same.exit184.4, %same.exit203, %same.exit203.1, %same.exit203.2, %same.exit203.3, %same.exit203.4, %same.exit222, %same.exit222.1, %same.exit222.2, %same.exit222.3, %same.exit222.4, %same.exit241, %same.exit241.1, %same.exit241.2, %same.exit241.3, %same.exit241.4, %for.inc128.loopexit, %if.then111 %195 = phi i32 [ %9, %if.then111 ], [ %.pre, %for.inc128.loopexit ], [ %9, %same.exit241.4 ], [ %9, %same.exit241.3 ], [ %9, %same.exit241.2 ], [ %9, %same.exit241.1 ], [ %9, %same.exit241 ], [ %9, %same.exit222.4 ], [ %9, %same.exit222.3 ], [ %9, %same.exit222.2 ], [ %9, %same.exit222.1 ], [ %9, %same.exit222 ], [ %9, %same.exit203.4 ], [ %9, %same.exit203.3 ], [ %9, %same.exit203.2 ], [ %9, %same.exit203.1 ], [ %9, %same.exit203 ], [ %9, %same.exit184.4 ], [ %9, %same.exit184.3 ], [ %9, %same.exit184.2 ], [ %9, %same.exit184.1 ], [ %9, %same.exit184 ], [ %9, %same.exit.4 ], [ %9, %same.exit.3 ], [ %9, %same.exit.2 ], [ %9, %same.exit.1 ], [ %9, %same.exit ] %s.promoted393 = phi i32 [ %s.promoted389, %if.then111 ], [ %s.promoted393.ph, %for.inc128.loopexit ], [ 0, %same.exit241.4 ], [ 0, %same.exit241.3 ], [ 0, %same.exit241.2 ], [ 0, %same.exit241.1 ], [ 0, %same.exit241 ], [ 0, %same.exit222.4 ], [ 0, %same.exit222.3 ], [ 0, %same.exit222.2 ], [ 0, %same.exit222.1 ], [ 0, %same.exit222 ], [ 0, %same.exit203.4 ], [ 0, %same.exit203.3 ], [ 0, %same.exit203.2 ], [ 0, %same.exit203.1 ], [ 0, %same.exit203 ], [ 0, %same.exit184.4 ], [ 0, %same.exit184.3 ], [ 0, %same.exit184.2 ], [ 0, %same.exit184.1 ], [ 0, %same.exit184 ], [ 0, %same.exit.4 ], [ 0, %same.exit.3 ], [ 0, %same.exit.2 ], [ 0, %same.exit.1 ], [ 0, %same.exit ] %196 = phi i32 [ %165, %if.then111 ], [ %.lcssa437, %for.inc128.loopexit ], [ %.promoted334, %same.exit241.4 ], [ %135, %same.exit241.3 ], [ %.promoted335, %same.exit241.2 ], [ %137, %same.exit241.1 ], [ %15, %same.exit241 ], [ %103, %same.exit222.4 ], [ %108, %same.exit222.3 ], [ %105, %same.exit222.2 ], [ %107, %same.exit222.1 ], [ %15, %same.exit222 ], [ %73, %same.exit203.4 ], [ %76, %same.exit203.3 ], [ %71, %same.exit203.2 ], [ %75, %same.exit203.1 ], [ %15, %same.exit203 ], [ %.promoted316, %same.exit184.4 ], [ %.promoted318, %same.exit184.3 ], [ %.promoted317, %same.exit184.2 ], [ %.promoted315, %same.exit184.1 ], [ %42, %same.exit184 ], [ %.promoted311, %same.exit.4 ], [ %14, %same.exit.3 ], [ %.promoted312, %same.exit.2 ], [ %12, %same.exit.1 ], [ %11, %same.exit ] %197 = phi i32 [ 0, %if.then111 ], [ %.ph, %for.inc128.loopexit ], [ 4, %same.exit241.4 ], [ 3, %same.exit241.3 ], [ 2, %same.exit241.2 ], [ 1, %same.exit241.1 ], [ 0, %same.exit241 ], [ 4, %same.exit222.4 ], [ 3, %same.exit222.3 ], [ 2, %same.exit222.2 ], [ 1, %same.exit222.1 ], [ 0, %same.exit222 ], [ 4, %same.exit203.4 ], [ 3, %same.exit203.3 ], [ 2, %same.exit203.2 ], [ 1, %same.exit203.1 ], [ 0, %same.exit203 ], [ 4, %same.exit184.4 ], [ 3, %same.exit184.3 ], [ 2, %same.exit184.2 ], [ 1, %same.exit184.1 ], [ 0, %same.exit184 ], [ 4, %same.exit.4 ], [ 3, %same.exit.3 ], [ 2, %same.exit.2 ], [ 1, %same.exit.1 ], [ 0, %same.exit ] %.pr279.pr.pr349 = phi i32 [ %.pr279.pr.pr345, %if.then111 ], [ %s.promoted393.ph, %for.inc128.loopexit ], [ 0, %same.exit241.4 ], [ 0, %same.exit241.3 ], [ 0, %same.exit241.2 ], [ 0, %same.exit241.1 ], [ 0, %same.exit241 ], [ 0, %same.exit222.4 ], [ 0, %same.exit222.3 ], [ 0, %same.exit222.2 ], [ 0, %same.exit222.1 ], [ 0, %same.exit222 ], [ 0, %same.exit203.4 ], [ 0, %same.exit203.3 ], [ 0, %same.exit203.2 ], [ 0, %same.exit203.1 ], [ 0, %same.exit203 ], [ 0, %same.exit184.4 ], [ 0, %same.exit184.3 ], [ 0, %same.exit184.2 ], [ 0, %same.exit184.1 ], [ 0, %same.exit184 ], [ 0, %same.exit.4 ], [ 0, %same.exit.3 ], [ 0, %same.exit.2 ], [ 0, %same.exit.1 ], [ 0, %same.exit ] %indvars.iv.next446 = add nuw nsw i64 %indvars.iv445, 1 %198 = trunc i64 %indvars.iv.next446 to i32 %cmp19 = icmp sgt i32 %195, %198 %tobool21 = icmp ne i32 %.pr279.pr.pr349, 0 %199 = and i1 %cmp19, %tobool21 br i1 %199, label %if.then, label %for.cond18.for.cond12.loopexit_crit_edge, !llvm.loop !12 if.else: ; preds = %for.cond12thread-pre-split.thread, %for.cond.cleanup14 br label %if.end138 if.end138: ; preds = %for.cond.cleanup14, %for.cond12thread-pre-split.thread, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %for.cond12thread-pre-split.thread ], [ @str.3, %for.cond.cleanup14 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #7 ret i32 0 } ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #5 ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6 attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nofree nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #3 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #5 = { nofree nounwind } attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #7 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10} !12 = distinct !{!12, !10}
#include<stdio.h> int main() { int j, t, count, n, i, a, b, c, r; scanf("%d", &n); for(i = 0; i < n; i++) { scanf("%d %d %d %d", &a, &b, &c, &r); count = 0; if(a>=b) { t=b; b=a; a=t; } if(c >= a && c <= b) { if(c+r <= b && c-r >= a) { count = b-a-2*r; } else if(c+r > b && c-r >= a) { count = c-r-a; } else if(c+r <= b && c-r < a) { count = b-c-r; } else { count = 0; } } else if(c > b) { if(c-r >= b) { count = b-a; } else if(c-r >= a) { count = c-r-a; } else { count = 0; } } else if(c < a) { if(c+r <= a) { count = b-a; } else if(c+r <= b) { count = b-c-r; } else { count = 0; } } printf("%d\n", count); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13532/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13532/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [12 x i8] c"%d %d %d %d\00", align 1 @.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 %a = alloca i32, align 4 %b = alloca i32, align 4 %c = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %cmp85 = icmp sgt i32 %0, 0 br i1 %cmp85, label %for.body, label %for.end for.body: ; preds = %entry, %if.end67 %i.086 = phi i32 [ %inc, %if.end67 ], [ 0, %entry ] %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c, ptr noundef nonnull %r) %1 = load i32, ptr %a, align 4, !tbaa !5 %2 = load i32, ptr %b, align 4, !tbaa !5 %cmp2.not = icmp slt i32 %1, %2 br i1 %cmp2.not, label %if.end, label %if.then if.then: ; preds = %for.body store i32 %1, ptr %b, align 4, !tbaa !5 store i32 %2, ptr %a, align 4, !tbaa !5 br label %if.end if.end: ; preds = %if.then, %for.body %3 = phi i32 [ %1, %if.then ], [ %2, %for.body ] %4 = phi i32 [ %2, %if.then ], [ %1, %for.body ] %5 = load i32, ptr %c, align 4, !tbaa !5 %cmp3.not = icmp slt i32 %5, %4 %cmp34 = icmp sgt i32 %5, %3 br i1 %cmp3.not, label %if.else33, label %land.lhs.true land.lhs.true: ; preds = %if.end br i1 %cmp34, label %if.then35, label %if.then5 if.then5: ; preds = %land.lhs.true %6 = load i32, ptr %r, align 4, !tbaa !5 %add = add nsw i32 %6, %5 %cmp6.not = icmp sgt i32 %add, %3 %sub = sub nsw i32 %5, %6 %cmp8.not = icmp slt i32 %sub, %4 %or.cond = select i1 %cmp6.not, i1 true, i1 %cmp8.not br i1 %or.cond, label %if.else, label %if.then9 if.then9: ; preds = %if.then5 %7 = shl i32 %6, 1 %8 = add i32 %4, %7 %sub11 = sub i32 %3, %8 br label %if.end67 if.else: ; preds = %if.then5 br i1 %cmp6.not, label %land.lhs.true14, label %land.lhs.true23 land.lhs.true14: ; preds = %if.else %sub19 = sub nsw i32 %sub, %4 %spec.select81 = select i1 %cmp8.not, i32 0, i32 %sub19 br label %if.end67 land.lhs.true23: ; preds = %if.else %sub28 = sub i32 %3, %add %spec.select82 = select i1 %cmp8.not, i32 %sub28, i32 0 br label %if.end67 if.else33: ; preds = %if.end br i1 %cmp34, label %if.then35, label %if.then51 if.then35: ; preds = %land.lhs.true, %if.else33 %9 = load i32, ptr %r, align 4, !tbaa !5 %sub36 = sub nsw i32 %5, %9 %cmp37.not = icmp slt i32 %sub36, %3 br i1 %cmp37.not, label %if.else40, label %if.then38 if.then38: ; preds = %if.then35 %sub39 = sub nsw i32 %3, %4 br label %if.end67 if.else40: ; preds = %if.then35 %cmp42.not = icmp slt i32 %sub36, %4 %sub45 = sub nsw i32 %sub36, %4 %spec.select = select i1 %cmp42.not, i32 0, i32 %sub45 br label %if.end67 if.then51: ; preds = %if.else33 %10 = load i32, ptr %r, align 4, !tbaa !5 %add52 = add nsw i32 %10, %5 %cmp53.not = icmp sgt i32 %add52, %4 br i1 %cmp53.not, label %if.else56, label %if.then54 if.then54: ; preds = %if.then51 %sub55 = sub nsw i32 %3, %4 br label %if.end67 if.else56: ; preds = %if.then51 %cmp58.not = icmp sgt i32 %add52, %3 %sub61 = sub i32 %3, %add52 %spec.select83 = select i1 %cmp58.not, i32 0, i32 %sub61 br label %if.end67 if.end67: ; preds = %if.else56, %land.lhs.true23, %land.lhs.true14, %if.else40, %if.then38, %if.then54, %if.then9 %count.0 = phi i32 [ %sub11, %if.then9 ], [ %sub39, %if.then38 ], [ %sub55, %if.then54 ], [ %spec.select, %if.else40 ], [ %spec.select81, %land.lhs.true14 ], [ %spec.select82, %land.lhs.true23 ], [ %spec.select83, %if.else56 ] %call68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %count.0) %inc = add nuw nsw i32 %i.086, 1 %11 = load i32, ptr %n, align 4, !tbaa !5 %cmp = icmp slt i32 %inc, %11 br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9 for.end: ; preds = %if.end67, %entry call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"}
#include <stdio.h> struct dice{ int d[6], tmp[6]; }; struct dice dice1; struct dice dice2; struct dice dice3[110]; void copy1(int a){ int i; for (i=0;i<6;i++){ dice3[a].d[i]=dice2.d[i]; dice3[a].tmp[i]=dice2.tmp[i]; } } void copy2(int a){ int i; for (i=0;i<6;i++){ dice2.d[i]=dice3[a].d[i]; dice2.tmp[i]=dice3[a].tmp[i]; } } void init1(int n[6]){ int i; for (i=0;i<6;i++){ dice1.d[i]=n[i]; } } void init2(int n[6]){ int i; for (i=0;i<6;i++){ dice2.d[i]=n[i]; } } void throwdice(char c){ int i; for(i=0;i<6;i++){ dice1.tmp[i]=dice1.d[i]; } if(c=='N'){ dice1.d[0]=dice1.tmp[1]; dice1.d[1]=dice1.tmp[5]; dice1.d[2]=dice1.tmp[2]; dice1.d[3]=dice1.tmp[3]; dice1.d[4]=dice1.tmp[0]; dice1.d[5]=dice1.tmp[4]; } else if(c=='E'){ dice1.d[0]=dice1.tmp[3]; dice1.d[1]=dice1.tmp[1]; dice1.d[2]=dice1.tmp[0]; dice1.d[3]=dice1.tmp[5]; dice1.d[4]=dice1.tmp[4]; dice1.d[5]=dice1.tmp[2]; } else if(c=='W'){ dice1.d[0]=dice1.tmp[2]; dice1.d[1]=dice1.tmp[1]; dice1.d[2]=dice1.tmp[5]; dice1.d[3]=dice1.tmp[0]; dice1.d[4]=dice1.tmp[4]; dice1.d[5]=dice1.tmp[3]; } else if(c=='S'){ dice1.d[0]=dice1.tmp[4]; dice1.d[1]=dice1.tmp[0]; dice1.d[2]=dice1.tmp[2]; dice1.d[3]=dice1.tmp[3]; dice1.d[4]=dice1.tmp[5]; dice1.d[5]=dice1.tmp[1]; } else if(c=='R'){ dice1.d[0]=dice1.tmp[0]; dice1.d[1]=dice1.tmp[3]; dice1.d[2]=dice1.tmp[1]; dice1.d[3]=dice1.tmp[4]; dice1.d[4]=dice1.tmp[2]; dice1.d[5]=dice1.tmp[5]; } } int compare(){ int i; for(i=0;i<6;i++){ if(dice1.d[i]!=dice2.d[i]){ return 0; } } return 1; } int main() { int n[6]; int m; int i,j,k,l; int ok=0; scanf("%d",&m); for(i=0;i<6;i++){ scanf("%d",&n[i]); } init2(n); copy1(0); for(i=0;i<m-1;i++){ for(j=0;j<6;j++){ scanf("%d",&n[j]); } init1(n); for(j=0;j<i+1;j++){ copy2(j); for(k=0;k<4;k++){ for(l=0;l<4;l++){ throwdice('N'); throwdice('E'); throwdice('S'); if(compare()) ok=1; } throwdice('N'); } throwdice('E'); for(k=0;k<2;k++){ for(l=0;l<4;l++){ throwdice('N'); throwdice('E'); throwdice('S'); if(compare()) ok=1; } throwdice('W'); throwdice('W'); } } copy1(i+1); } if(!ok) puts("Yes"); else puts("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135363/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135363/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" %struct.dice = type { [6 x i32], [6 x i32] } @dice2 = dso_local local_unnamed_addr global %struct.dice zeroinitializer, align 16 @dice3 = dso_local local_unnamed_addr global [110 x %struct.dice] zeroinitializer, align 16 @dice1 = dso_local local_unnamed_addr global %struct.dice zeroinitializer, align 16 @.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable define dso_local void @copy1(i32 noundef %a) local_unnamed_addr #0 { entry: %idxprom1 = sext i32 %a to i64 %arrayidx2 = getelementptr inbounds [110 x %struct.dice], ptr @dice3, i64 0, i64 %idxprom1 tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %arrayidx2, ptr noundef nonnull align 4 dereferenceable(24) @dice2, i64 24, i1 false), !tbaa !5 %0 = mul nsw i64 %idxprom1, 48 %1 = getelementptr i8, ptr @dice3, i64 %0 %scevgep = getelementptr i8, ptr %1, i64 24 tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %scevgep, ptr noundef nonnull align 4 dereferenceable(24) getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 1, i64 0), i64 24, i1 false), !tbaa !5 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable define dso_local void @copy2(i32 noundef %a) local_unnamed_addr #0 { entry: %idxprom = sext i32 %a to i64 %arrayidx = getelementptr inbounds [110 x %struct.dice], ptr @dice3, i64 0, i64 %idxprom tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) @dice2, ptr noundef nonnull align 16 dereferenceable(24) %arrayidx, i64 24, i1 false), !tbaa !5 %0 = mul nsw i64 %idxprom, 48 %1 = getelementptr i8, ptr @dice3, i64 %0 %scevgep = getelementptr i8, ptr %1, i64 24 tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 1, i64 0), ptr noundef nonnull align 8 dereferenceable(24) %scevgep, i64 24, i1 false), !tbaa !5 ret void } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: read, inaccessiblemem: none) uwtable define dso_local void @init1(ptr nocapture noundef readonly %n) local_unnamed_addr #2 { entry: %0 = load <4 x i32>, ptr %n, align 4, !tbaa !5 store <4 x i32> %0, ptr @dice1, align 16, !tbaa !5 %arrayidx.4 = getelementptr inbounds i32, ptr %n, i64 4 %1 = load <2 x i32>, ptr %arrayidx.4, align 4, !tbaa !5 store <2 x i32> %1, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 4), align 16, !tbaa !5 ret void } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: read, inaccessiblemem: none) uwtable define dso_local void @init2(ptr nocapture noundef readonly %n) local_unnamed_addr #2 { entry: %0 = load <4 x i32>, ptr %n, align 4, !tbaa !5 store <4 x i32> %0, ptr @dice2, align 16, !tbaa !5 %arrayidx.4 = getelementptr inbounds i32, ptr %n, i64 4 %1 = load <2 x i32>, ptr %arrayidx.4, align 4, !tbaa !5 store <2 x i32> %1, ptr getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 0, i64 4), align 16, !tbaa !5 ret void } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable define dso_local void @throwdice(i8 noundef signext %c) local_unnamed_addr #3 { entry: %0 = load i32, ptr @dice1, align 16, !tbaa !5 store i32 %0, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 1, i64 0), align 8, !tbaa !5 %1 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 1), align 4, !tbaa !5 store i32 %1, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 1, i64 1), align 4, !tbaa !5 %2 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 2), align 8, !tbaa !5 store i32 %2, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 1, i64 2), align 16, !tbaa !5 %3 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 3), align 4, !tbaa !5 store i32 %3, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 1, i64 3), align 4, !tbaa !5 %4 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 4), align 16, !tbaa !5 store i32 %4, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 1, i64 4), align 8, !tbaa !5 %5 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 5), align 4, !tbaa !5 store i32 %5, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 1, i64 5), align 4, !tbaa !5 switch i8 %c, label %if.end27 [ i8 78, label %if.end27.sink.split.sink.split i8 69, label %if.then8 i8 87, label %if.then13 i8 83, label %if.then18 i8 82, label %if.end27.sink.split ] if.then8: ; preds = %entry br label %if.end27.sink.split.sink.split if.then13: ; preds = %entry br label %if.end27.sink.split.sink.split if.then18: ; preds = %entry br label %if.end27.sink.split.sink.split if.end27.sink.split.sink.split: ; preds = %entry, %if.then8, %if.then18, %if.then13 %.sink41 = phi i32 [ %2, %if.then13 ], [ %4, %if.then18 ], [ %3, %if.then8 ], [ %1, %entry ] %.sink40.ph = phi i32 [ %1, %if.then13 ], [ %0, %if.then18 ], [ %1, %if.then8 ], [ %5, %entry ] %.sink39.ph = phi i32 [ %5, %if.then13 ], [ %2, %if.then18 ], [ %0, %if.then8 ], [ %2, %entry ] %.sink38.ph = phi i32 [ %0, %if.then13 ], [ %3, %if.then18 ], [ %5, %if.then8 ], [ %3, %entry ] %.sink37.ph = phi i32 [ %4, %if.then13 ], [ %5, %if.then18 ], [ %4, %if.then8 ], [ %0, %entry ] %.sink.ph = phi i32 [ %3, %if.then13 ], [ %1, %if.then18 ], [ %2, %if.then8 ], [ %4, %entry ] store i32 %.sink41, ptr @dice1, align 16, !tbaa !5 br label %if.end27.sink.split if.end27.sink.split: ; preds = %if.end27.sink.split.sink.split, %entry %.sink40 = phi i32 [ %3, %entry ], [ %.sink40.ph, %if.end27.sink.split.sink.split ] %.sink39 = phi i32 [ %1, %entry ], [ %.sink39.ph, %if.end27.sink.split.sink.split ] %.sink38 = phi i32 [ %4, %entry ], [ %.sink38.ph, %if.end27.sink.split.sink.split ] %.sink37 = phi i32 [ %2, %entry ], [ %.sink37.ph, %if.end27.sink.split.sink.split ] %.sink = phi i32 [ %5, %entry ], [ %.sink.ph, %if.end27.sink.split.sink.split ] store i32 %.sink40, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 1), align 4, !tbaa !5 store i32 %.sink39, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 2), align 8, !tbaa !5 store i32 %.sink38, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 3), align 4, !tbaa !5 store i32 %.sink37, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 4), align 16, !tbaa !5 store i32 %.sink, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 5), align 4, !tbaa !5 br label %if.end27 if.end27: ; preds = %if.end27.sink.split, %entry ret void } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable define dso_local i32 @compare() local_unnamed_addr #4 { entry: %0 = load i32, ptr @dice1, align 16, !tbaa !5 %1 = load i32, ptr @dice2, align 16, !tbaa !5 %cmp3.not = icmp eq i32 %0, %1 br i1 %cmp3.not, label %for.cond, label %cleanup for.cond: ; preds = %entry %2 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 1), align 4, !tbaa !5 %3 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 0, i64 1), align 4, !tbaa !5 %cmp3.not.1 = icmp eq i32 %2, %3 br i1 %cmp3.not.1, label %for.cond.1, label %cleanup for.cond.1: ; preds = %for.cond %4 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 2), align 8, !tbaa !5 %5 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 0, i64 2), align 8, !tbaa !5 %cmp3.not.2 = icmp eq i32 %4, %5 br i1 %cmp3.not.2, label %for.cond.2, label %cleanup for.cond.2: ; preds = %for.cond.1 %6 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 3), align 4, !tbaa !5 %7 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 0, i64 3), align 4, !tbaa !5 %cmp3.not.3 = icmp eq i32 %6, %7 br i1 %cmp3.not.3, label %for.cond.3, label %cleanup for.cond.3: ; preds = %for.cond.2 %8 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 4), align 16, !tbaa !5 %9 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 0, i64 4), align 16, !tbaa !5 %cmp3.not.4 = icmp eq i32 %8, %9 br i1 %cmp3.not.4, label %for.cond.4, label %cleanup for.cond.4: ; preds = %for.cond.3 %10 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 5), align 4, !tbaa !5 %11 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 0, i64 5), align 4, !tbaa !5 %cmp3.not.5 = icmp eq i32 %10, %11 %spec.select = zext i1 %cmp3.not.5 to i32 br label %cleanup cleanup: ; preds = %for.cond.4, %for.cond.3, %for.cond.2, %for.cond.1, %for.cond, %entry %retval.0 = phi i32 [ 0, %entry ], [ 0, %for.cond ], [ 0, %for.cond.1 ], [ 0, %for.cond.2 ], [ 0, %for.cond.3 ], [ %spec.select, %for.cond.4 ] ret i32 %retval.0 } ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #5 { entry: %n = alloca [6 x i32], align 16 %m = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %n) #8 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #8 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %m) %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %arrayidx.1 = getelementptr inbounds [6 x i32], ptr %n, i64 0, i64 1 %call1.1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx.1) %arrayidx.2 = getelementptr inbounds [6 x i32], ptr %n, i64 0, i64 2 %call1.2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx.2) %arrayidx.3 = getelementptr inbounds [6 x i32], ptr %n, i64 0, i64 3 %call1.3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx.3) %arrayidx.4 = getelementptr inbounds [6 x i32], ptr %n, i64 0, i64 4 %call1.4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx.4) %arrayidx.5 = getelementptr inbounds [6 x i32], ptr %n, i64 0, i64 5 %call1.5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx.5) %0 = load <4 x i32>, ptr %n, align 16, !tbaa !5 store <4 x i32> %0, ptr @dice2, align 16, !tbaa !5 %1 = load <2 x i32>, ptr %arrayidx.4, align 16, !tbaa !5 store <2 x i32> %1, ptr getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 0, i64 4), align 16, !tbaa !5 call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) @dice3, ptr noundef nonnull align 16 dereferenceable(24) @dice2, i64 24, i1 false), !tbaa !5 call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds ([110 x %struct.dice], ptr @dice3, i64 0, i64 0, i32 1, i64 0), ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 1, i64 0), i64 24, i1 false), !tbaa !5 %2 = load i32, ptr %m, align 4, !tbaa !5 %cmp3225 = icmp sgt i32 %2, 1 br i1 %cmp3225, label %for.cond5.preheader, label %if.end58 for.cond5.preheader: ; preds = %entry, %for.end49 %indvars.iv300 = phi i64 [ %indvars.iv.next301, %for.end49 ], [ 0, %entry ] %indvars.iv298 = phi i64 [ %indvars.iv.next299, %for.end49 ], [ 1, %entry ] %ok.0227 = phi i32 [ %39, %for.end49 ], [ 0, %entry ] %call10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %call10.1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx.1) %call10.2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx.2) %call10.3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx.3) %call10.4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx.4) %call10.5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx.5) %3 = load i32, ptr %n, align 16, !tbaa !5 %4 = load i32, ptr %arrayidx.1, align 4, !tbaa !5 %5 = load i32, ptr %arrayidx.2, align 8, !tbaa !5 %6 = load i32, ptr %arrayidx.3, align 4, !tbaa !5 %7 = load i32, ptr %arrayidx.4, align 16, !tbaa !5 %8 = load i32, ptr %arrayidx.5, align 4, !tbaa !5 br label %for.body17 for.body17: ; preds = %for.cond5.preheader, %for.cond34.3.1 %indvars.iv = phi i64 [ 0, %for.cond5.preheader ], [ %indvars.iv.next, %for.cond34.3.1 ] %ok.1222 = phi i32 [ %ok.0227, %for.cond5.preheader ], [ %39, %for.cond34.3.1 ] %dice1.promoted174.lcssa199220 = phi i32 [ %3, %for.cond5.preheader ], [ %.lcssa163183.lcssa204217, %for.cond34.3.1 ] %.lcssa160180.lcssa203218 = phi i32 [ %5, %for.cond5.preheader ], [ %dice1.promoted174.lcssa199220, %for.cond34.3.1 ] %.lcssa163183.lcssa204217 = phi i32 [ %6, %for.cond5.preheader ], [ %.promoted168189.lcssa208215, %for.cond34.3.1 ] %.promoted168189.lcssa208215 = phi i32 [ %8, %for.cond5.preheader ], [ %.lcssa160180.lcssa203218, %for.cond34.3.1 ] %arrayidx.i = getelementptr inbounds [110 x %struct.dice], ptr @dice3, i64 0, i64 %indvars.iv call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) @dice2, ptr noundef nonnull align 16 dereferenceable(24) %arrayidx.i, i64 24, i1 false), !tbaa !5 %9 = mul nuw nsw i64 %indvars.iv, 48 %gep = getelementptr i8, ptr getelementptr inbounds ([110 x %struct.dice], ptr @dice3, i64 0, i64 0, i32 1, i64 0), i64 %9 call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 1, i64 0), ptr noundef nonnull align 8 dereferenceable(24) %gep, i64 24, i1 false), !tbaa !5 %10 = load i32, ptr @dice2, align 16, !tbaa !5 %11 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 0, i64 1), align 4 %12 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 0, i64 2), align 8 %13 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 0, i64 3), align 4 %14 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 0, i64 4), align 16 %15 = load i32, ptr getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 0, i64 5), align 4 %cmp3.not.i = icmp eq i32 %dice1.promoted174.lcssa199220, %10 %cmp3.not.1.i = icmp eq i32 %.lcssa163183.lcssa204217, %11 %or.cond = select i1 %cmp3.not.i, i1 %cmp3.not.1.i, i1 false %cmp3.not.2.i = icmp eq i32 %4, %12 %or.cond104 = select i1 %or.cond, i1 %cmp3.not.2.i, i1 false %cmp3.not.3.i = icmp eq i32 %7, %13 %or.cond105 = select i1 %or.cond104, i1 %cmp3.not.3.i, i1 false %cmp3.not.4.i = icmp eq i32 %.lcssa160180.lcssa203218, %14 %or.cond106 = select i1 %or.cond105, i1 %cmp3.not.4.i, i1 false br i1 %or.cond106, label %compare.exit, label %compare.exit.thread compare.exit: ; preds = %for.body17 %cmp3.not.5.i = icmp ne i32 %.promoted168189.lcssa208215, %15 %cond.fr = freeze i1 %cmp3.not.5.i br i1 %cond.fr, label %compare.exit.thread, label %for.cond21 compare.exit.thread: ; preds = %for.body17, %compare.exit br label %for.cond21 for.cond21: ; preds = %compare.exit, %compare.exit.thread %16 = phi i32 [ %ok.1222, %compare.exit.thread ], [ 1, %compare.exit ] %cmp3.not.1.i.1 = icmp eq i32 %7, %11 %or.cond.1 = select i1 %cmp3.not.i, i1 %cmp3.not.1.i.1, i1 false %cmp3.not.2.i.1 = icmp eq i32 %.lcssa163183.lcssa204217, %12 %or.cond104.1 = select i1 %or.cond.1, i1 %cmp3.not.2.i.1, i1 false %cmp3.not.3.i.1 = icmp eq i32 %.lcssa160180.lcssa203218, %13 %or.cond105.1 = select i1 %or.cond104.1, i1 %cmp3.not.3.i.1, i1 false %cmp3.not.4.i.1 = icmp eq i32 %4, %14 %or.cond106.1 = select i1 %or.cond105.1, i1 %cmp3.not.4.i.1, i1 false br i1 %or.cond106.1, label %compare.exit.1, label %compare.exit.thread.1 compare.exit.1: ; preds = %for.cond21 %cmp3.not.5.i.1 = icmp ne i32 %.promoted168189.lcssa208215, %15 %cond.fr.1 = freeze i1 %cmp3.not.5.i.1 br i1 %cond.fr.1, label %compare.exit.thread.1, label %for.cond21.1 compare.exit.thread.1: ; preds = %compare.exit.1, %for.cond21 br label %for.cond21.1 for.cond21.1: ; preds = %compare.exit.thread.1, %compare.exit.1 %17 = phi i32 [ %16, %compare.exit.thread.1 ], [ 1, %compare.exit.1 ] %cmp3.not.1.i.2 = icmp eq i32 %.lcssa160180.lcssa203218, %11 %or.cond.2 = select i1 %cmp3.not.i, i1 %cmp3.not.1.i.2, i1 false %cmp3.not.2.i.2 = icmp eq i32 %7, %12 %or.cond104.2 = select i1 %or.cond.2, i1 %cmp3.not.2.i.2, i1 false %cmp3.not.3.i.2 = icmp eq i32 %4, %13 %or.cond105.2 = select i1 %or.cond104.2, i1 %cmp3.not.3.i.2, i1 false %cmp3.not.4.i.2 = icmp eq i32 %.lcssa163183.lcssa204217, %14 %or.cond106.2 = select i1 %or.cond105.2, i1 %cmp3.not.4.i.2, i1 false br i1 %or.cond106.2, label %compare.exit.2, label %compare.exit.thread.2 compare.exit.2: ; preds = %for.cond21.1 %cmp3.not.5.i.2 = icmp ne i32 %.promoted168189.lcssa208215, %15 %cond.fr.2 = freeze i1 %cmp3.not.5.i.2 br i1 %cond.fr.2, label %compare.exit.thread.2, label %for.cond21.2 compare.exit.thread.2: ; preds = %compare.exit.2, %for.cond21.1 br label %for.cond21.2 for.cond21.2: ; preds = %compare.exit.thread.2, %compare.exit.2 %18 = phi i32 [ %17, %compare.exit.thread.2 ], [ 1, %compare.exit.2 ] %cmp3.not.1.i.3 = icmp eq i32 %4, %11 %or.cond.3 = select i1 %cmp3.not.i, i1 %cmp3.not.1.i.3, i1 false %cmp3.not.2.i.3 = icmp eq i32 %.lcssa160180.lcssa203218, %12 %or.cond104.3 = select i1 %or.cond.3, i1 %cmp3.not.2.i.3, i1 false %cmp3.not.3.i.3 = icmp eq i32 %.lcssa163183.lcssa204217, %13 %or.cond105.3 = select i1 %or.cond104.3, i1 %cmp3.not.3.i.3, i1 false %cmp3.not.4.i.3 = icmp eq i32 %7, %14 %or.cond106.3 = select i1 %or.cond105.3, i1 %cmp3.not.4.i.3, i1 false br i1 %or.cond106.3, label %compare.exit.3, label %compare.exit.thread.3 compare.exit.3: ; preds = %for.cond21.2 %cmp3.not.5.i.3 = icmp ne i32 %.promoted168189.lcssa208215, %15 %cond.fr.3 = freeze i1 %cmp3.not.5.i.3 br i1 %cond.fr.3, label %compare.exit.thread.3, label %for.cond21.3 compare.exit.thread.3: ; preds = %compare.exit.3, %for.cond21.2 br label %for.cond21.3 for.cond21.3: ; preds = %compare.exit.thread.3, %compare.exit.3 %19 = phi i32 [ %18, %compare.exit.thread.3 ], [ 1, %compare.exit.3 ] %cmp3.not.i.1239 = icmp eq i32 %4, %10 %or.cond.1241 = select i1 %cmp3.not.i.1239, i1 %cmp3.not.1.i, i1 false %cmp3.not.2.i.1242 = icmp eq i32 %.promoted168189.lcssa208215, %12 %or.cond104.1243 = select i1 %or.cond.1241, i1 %cmp3.not.2.i.1242, i1 false %cmp3.not.3.i.1244 = icmp eq i32 %dice1.promoted174.lcssa199220, %13 %or.cond105.1245 = select i1 %or.cond104.1243, i1 %cmp3.not.3.i.1244, i1 false %or.cond106.1247 = select i1 %or.cond105.1245, i1 %cmp3.not.4.i, i1 false br i1 %or.cond106.1247, label %compare.exit.1250, label %compare.exit.thread.1251 compare.exit.1250: ; preds = %for.cond21.3 %cmp3.not.5.i.1248 = icmp ne i32 %7, %15 %cond.fr.1249 = freeze i1 %cmp3.not.5.i.1248 br i1 %cond.fr.1249, label %compare.exit.thread.1251, label %for.cond21.1252 compare.exit.thread.1251: ; preds = %compare.exit.1250, %for.cond21.3 br label %for.cond21.1252 for.cond21.1252: ; preds = %compare.exit.thread.1251, %compare.exit.1250 %20 = phi i32 [ %19, %compare.exit.thread.1251 ], [ 1, %compare.exit.1250 ] %cmp3.not.1.i.1.1 = icmp eq i32 %dice1.promoted174.lcssa199220, %11 %or.cond.1.1 = select i1 %cmp3.not.i.1239, i1 %cmp3.not.1.i.1.1, i1 false %or.cond104.1.1 = select i1 %or.cond.1.1, i1 %cmp3.not.2.i.1, i1 false %or.cond105.1.1 = select i1 %or.cond104.1.1, i1 %cmp3.not.3.i.1, i1 false %cmp3.not.4.i.1.1 = icmp eq i32 %.promoted168189.lcssa208215, %14 %or.cond106.1.1 = select i1 %or.cond105.1.1, i1 %cmp3.not.4.i.1.1, i1 false br i1 %or.cond106.1.1, label %compare.exit.1.1, label %compare.exit.thread.1.1 compare.exit.1.1: ; preds = %for.cond21.1252 %cmp3.not.5.i.1.1 = icmp ne i32 %7, %15 %cond.fr.1.1 = freeze i1 %cmp3.not.5.i.1.1 br i1 %cond.fr.1.1, label %compare.exit.thread.1.1, label %for.cond21.1.1 compare.exit.thread.1.1: ; preds = %compare.exit.1.1, %for.cond21.1252 br label %for.cond21.1.1 for.cond21.1.1: ; preds = %compare.exit.thread.1.1, %compare.exit.1.1 %21 = phi i32 [ %20, %compare.exit.thread.1.1 ], [ 1, %compare.exit.1.1 ] %or.cond.2.1 = select i1 %cmp3.not.i.1239, i1 %cmp3.not.1.i.2, i1 false %cmp3.not.2.i.2.1 = icmp eq i32 %dice1.promoted174.lcssa199220, %12 %or.cond104.2.1 = select i1 %or.cond.2.1, i1 %cmp3.not.2.i.2.1, i1 false %cmp3.not.3.i.2.1 = icmp eq i32 %.promoted168189.lcssa208215, %13 %or.cond105.2.1 = select i1 %or.cond104.2.1, i1 %cmp3.not.3.i.2.1, i1 false %or.cond106.2.1 = select i1 %or.cond105.2.1, i1 %cmp3.not.4.i.2, i1 false br i1 %or.cond106.2.1, label %compare.exit.2.1, label %compare.exit.thread.2.1 compare.exit.2.1: ; preds = %for.cond21.1.1 %cmp3.not.5.i.2.1 = icmp ne i32 %7, %15 %cond.fr.2.1 = freeze i1 %cmp3.not.5.i.2.1 br i1 %cond.fr.2.1, label %compare.exit.thread.2.1, label %for.cond21.2.1 compare.exit.thread.2.1: ; preds = %compare.exit.2.1, %for.cond21.1.1 br label %for.cond21.2.1 for.cond21.2.1: ; preds = %compare.exit.thread.2.1, %compare.exit.2.1 %22 = phi i32 [ %21, %compare.exit.thread.2.1 ], [ 1, %compare.exit.2.1 ] %cmp3.not.1.i.3.1 = icmp eq i32 %.promoted168189.lcssa208215, %11 %or.cond.3.1 = select i1 %cmp3.not.i.1239, i1 %cmp3.not.1.i.3.1, i1 false %or.cond104.3.1 = select i1 %or.cond.3.1, i1 %cmp3.not.2.i.3, i1 false %or.cond105.3.1 = select i1 %or.cond104.3.1, i1 %cmp3.not.3.i.3, i1 false %cmp3.not.4.i.3.1 = icmp eq i32 %dice1.promoted174.lcssa199220, %14 %or.cond106.3.1 = select i1 %or.cond105.3.1, i1 %cmp3.not.4.i.3.1, i1 false br i1 %or.cond106.3.1, label %compare.exit.3.1, label %compare.exit.thread.3.1 compare.exit.3.1: ; preds = %for.cond21.2.1 %cmp3.not.5.i.3.1 = icmp ne i32 %7, %15 %cond.fr.3.1 = freeze i1 %cmp3.not.5.i.3.1 br i1 %cond.fr.3.1, label %compare.exit.thread.3.1, label %for.cond21.3.1 compare.exit.thread.3.1: ; preds = %compare.exit.3.1, %for.cond21.2.1 br label %for.cond21.3.1 for.cond21.3.1: ; preds = %compare.exit.thread.3.1, %compare.exit.3.1 %23 = phi i32 [ %22, %compare.exit.thread.3.1 ], [ 1, %compare.exit.3.1 ] %cmp3.not.i.2253 = icmp eq i32 %.promoted168189.lcssa208215, %10 %or.cond.2255 = select i1 %cmp3.not.i.2253, i1 %cmp3.not.1.i, i1 false %or.cond104.2257 = select i1 %or.cond.2255, i1 %cmp3.not.2.i.2, i1 false %or.cond105.2259 = select i1 %or.cond104.2257, i1 %cmp3.not.3.i.2, i1 false %or.cond106.2261 = select i1 %or.cond105.2259, i1 %cmp3.not.4.i, i1 false br i1 %or.cond106.2261, label %compare.exit.2264, label %compare.exit.thread.2265 compare.exit.2264: ; preds = %for.cond21.3.1 %cmp3.not.5.i.2262 = icmp ne i32 %dice1.promoted174.lcssa199220, %15 %cond.fr.2263 = freeze i1 %cmp3.not.5.i.2262 br i1 %cond.fr.2263, label %compare.exit.thread.2265, label %for.cond21.2266 compare.exit.thread.2265: ; preds = %compare.exit.2264, %for.cond21.3.1 br label %for.cond21.2266 for.cond21.2266: ; preds = %compare.exit.thread.2265, %compare.exit.2264 %24 = phi i32 [ %23, %compare.exit.thread.2265 ], [ 1, %compare.exit.2264 ] %or.cond.1.2 = select i1 %cmp3.not.i.2253, i1 %cmp3.not.1.i.3, i1 false %or.cond104.1.2 = select i1 %or.cond.1.2, i1 %cmp3.not.2.i.1, i1 false %or.cond105.1.2 = select i1 %or.cond104.1.2, i1 %cmp3.not.3.i.1, i1 false %or.cond106.1.2 = select i1 %or.cond105.1.2, i1 %cmp3.not.4.i.3, i1 false br i1 %or.cond106.1.2, label %compare.exit.1.2, label %compare.exit.thread.1.2 compare.exit.1.2: ; preds = %for.cond21.2266 %cmp3.not.5.i.1.2 = icmp ne i32 %dice1.promoted174.lcssa199220, %15 %cond.fr.1.2 = freeze i1 %cmp3.not.5.i.1.2 br i1 %cond.fr.1.2, label %compare.exit.thread.1.2, label %for.cond21.1.2 compare.exit.thread.1.2: ; preds = %compare.exit.1.2, %for.cond21.2266 br label %for.cond21.1.2 for.cond21.1.2: ; preds = %compare.exit.thread.1.2, %compare.exit.1.2 %25 = phi i32 [ %24, %compare.exit.thread.1.2 ], [ 1, %compare.exit.1.2 ] %or.cond.2.2 = select i1 %cmp3.not.i.2253, i1 %cmp3.not.1.i.2, i1 false %or.cond104.2.2 = select i1 %or.cond.2.2, i1 %cmp3.not.2.i, i1 false %or.cond105.2.2 = select i1 %or.cond104.2.2, i1 %cmp3.not.3.i, i1 false %or.cond106.2.2 = select i1 %or.cond105.2.2, i1 %cmp3.not.4.i.2, i1 false br i1 %or.cond106.2.2, label %compare.exit.2.2, label %compare.exit.thread.2.2 compare.exit.2.2: ; preds = %for.cond21.1.2 %cmp3.not.5.i.2.2 = icmp ne i32 %dice1.promoted174.lcssa199220, %15 %cond.fr.2.2 = freeze i1 %cmp3.not.5.i.2.2 br i1 %cond.fr.2.2, label %compare.exit.thread.2.2, label %for.cond21.2.2 compare.exit.thread.2.2: ; preds = %compare.exit.2.2, %for.cond21.1.2 br label %for.cond21.2.2 for.cond21.2.2: ; preds = %compare.exit.thread.2.2, %compare.exit.2.2 %26 = phi i32 [ %25, %compare.exit.thread.2.2 ], [ 1, %compare.exit.2.2 ] %or.cond.3.2 = select i1 %cmp3.not.i.2253, i1 %cmp3.not.1.i.1, i1 false %or.cond104.3.2 = select i1 %or.cond.3.2, i1 %cmp3.not.2.i.3, i1 false %or.cond105.3.2 = select i1 %or.cond104.3.2, i1 %cmp3.not.3.i.3, i1 false %or.cond106.3.2 = select i1 %or.cond105.3.2, i1 %cmp3.not.4.i.1, i1 false br i1 %or.cond106.3.2, label %compare.exit.3.2, label %compare.exit.thread.3.2 compare.exit.3.2: ; preds = %for.cond21.2.2 %cmp3.not.5.i.3.2 = icmp ne i32 %dice1.promoted174.lcssa199220, %15 %cond.fr.3.2 = freeze i1 %cmp3.not.5.i.3.2 br i1 %cond.fr.3.2, label %compare.exit.thread.3.2, label %for.cond21.3.2 compare.exit.thread.3.2: ; preds = %compare.exit.3.2, %for.cond21.2.2 br label %for.cond21.3.2 for.cond21.3.2: ; preds = %compare.exit.thread.3.2, %compare.exit.3.2 %27 = phi i32 [ %26, %compare.exit.thread.3.2 ], [ 1, %compare.exit.3.2 ] %cmp3.not.i.3267 = icmp eq i32 %7, %10 %or.cond.3269 = select i1 %cmp3.not.i.3267, i1 %cmp3.not.1.i, i1 false %or.cond104.3271 = select i1 %or.cond.3269, i1 %cmp3.not.2.i.2.1, i1 false %or.cond105.3273 = select i1 %or.cond104.3271, i1 %cmp3.not.3.i.2.1, i1 false %or.cond106.3275 = select i1 %or.cond105.3273, i1 %cmp3.not.4.i, i1 false br i1 %or.cond106.3275, label %compare.exit.3278, label %compare.exit.thread.3279 compare.exit.3278: ; preds = %for.cond21.3.2 %cmp3.not.5.i.3276 = icmp ne i32 %4, %15 %cond.fr.3277 = freeze i1 %cmp3.not.5.i.3276 br i1 %cond.fr.3277, label %compare.exit.thread.3279, label %for.cond21.3280 compare.exit.thread.3279: ; preds = %compare.exit.3278, %for.cond21.3.2 br label %for.cond21.3280 for.cond21.3280: ; preds = %compare.exit.thread.3279, %compare.exit.3278 %28 = phi i32 [ %27, %compare.exit.thread.3279 ], [ 1, %compare.exit.3278 ] %or.cond.1.3 = select i1 %cmp3.not.i.3267, i1 %cmp3.not.1.i.3.1, i1 false %or.cond104.1.3 = select i1 %or.cond.1.3, i1 %cmp3.not.2.i.1, i1 false %or.cond105.1.3 = select i1 %or.cond104.1.3, i1 %cmp3.not.3.i.1, i1 false %or.cond106.1.3 = select i1 %or.cond105.1.3, i1 %cmp3.not.4.i.3.1, i1 false br i1 %or.cond106.1.3, label %compare.exit.1.3, label %compare.exit.thread.1.3 compare.exit.1.3: ; preds = %for.cond21.3280 %cmp3.not.5.i.1.3 = icmp ne i32 %4, %15 %cond.fr.1.3 = freeze i1 %cmp3.not.5.i.1.3 br i1 %cond.fr.1.3, label %compare.exit.thread.1.3, label %for.cond21.1.3 compare.exit.thread.1.3: ; preds = %compare.exit.1.3, %for.cond21.3280 br label %for.cond21.1.3 for.cond21.1.3: ; preds = %compare.exit.thread.1.3, %compare.exit.1.3 %29 = phi i32 [ %28, %compare.exit.thread.1.3 ], [ 1, %compare.exit.1.3 ] %or.cond.2.3 = select i1 %cmp3.not.i.3267, i1 %cmp3.not.1.i.2, i1 false %or.cond104.2.3 = select i1 %or.cond.2.3, i1 %cmp3.not.2.i.1242, i1 false %or.cond105.2.3 = select i1 %or.cond104.2.3, i1 %cmp3.not.3.i.1244, i1 false %or.cond106.2.3 = select i1 %or.cond105.2.3, i1 %cmp3.not.4.i.2, i1 false br i1 %or.cond106.2.3, label %compare.exit.2.3, label %compare.exit.thread.2.3 compare.exit.2.3: ; preds = %for.cond21.1.3 %cmp3.not.5.i.2.3 = icmp ne i32 %4, %15 %cond.fr.2.3 = freeze i1 %cmp3.not.5.i.2.3 br i1 %cond.fr.2.3, label %compare.exit.thread.2.3, label %for.cond21.2.3 compare.exit.thread.2.3: ; preds = %compare.exit.2.3, %for.cond21.1.3 br label %for.cond21.2.3 for.cond21.2.3: ; preds = %compare.exit.thread.2.3, %compare.exit.2.3 %30 = phi i32 [ %29, %compare.exit.thread.2.3 ], [ 1, %compare.exit.2.3 ] %or.cond.3.3 = select i1 %cmp3.not.i.3267, i1 %cmp3.not.1.i.1.1, i1 false %or.cond104.3.3 = select i1 %or.cond.3.3, i1 %cmp3.not.2.i.3, i1 false %or.cond105.3.3 = select i1 %or.cond104.3.3, i1 %cmp3.not.3.i.3, i1 false %or.cond106.3.3 = select i1 %or.cond105.3.3, i1 %cmp3.not.4.i.1.1, i1 false br i1 %or.cond106.3.3, label %compare.exit.3.3, label %compare.exit.thread.3.3 compare.exit.3.3: ; preds = %for.cond21.2.3 %cmp3.not.5.i.3.3 = icmp ne i32 %4, %15 %cond.fr.3.3 = freeze i1 %cmp3.not.5.i.3.3 br i1 %cond.fr.3.3, label %compare.exit.thread.3.3, label %for.cond21.3.3 compare.exit.thread.3.3: ; preds = %compare.exit.3.3, %for.cond21.2.3 br label %for.cond21.3.3 for.cond21.3.3: ; preds = %compare.exit.thread.3.3, %compare.exit.3.3 %31 = phi i32 [ %30, %compare.exit.thread.3.3 ], [ 1, %compare.exit.3.3 ] %cmp3.not.i82 = icmp eq i32 %.lcssa163183.lcssa204217, %10 %or.cond107 = select i1 %cmp3.not.i82, i1 %cmp3.not.1.i.3.1, i1 false %or.cond108 = select i1 %or.cond107, i1 %cmp3.not.2.i, i1 false %or.cond109 = select i1 %or.cond108, i1 %cmp3.not.3.i, i1 false %or.cond110 = select i1 %or.cond109, i1 %cmp3.not.4.i.3.1, i1 false br i1 %or.cond110, label %compare.exit95, label %compare.exit95.thread compare.exit95: ; preds = %for.cond21.3.3 %cmp3.not.5.i93 = icmp ne i32 %.lcssa160180.lcssa203218, %15 %cond.fr100 = freeze i1 %cmp3.not.5.i93 br i1 %cond.fr100, label %compare.exit95.thread, label %for.cond34 compare.exit95.thread: ; preds = %for.cond21.3.3, %compare.exit95 br label %for.cond34 for.cond34: ; preds = %compare.exit95, %compare.exit95.thread %32 = phi i32 [ %31, %compare.exit95.thread ], [ 1, %compare.exit95 ] %or.cond107.1 = select i1 %cmp3.not.i82, i1 %cmp3.not.1.i.1, i1 false %or.cond108.1 = select i1 %or.cond107.1, i1 %cmp3.not.2.i.1242, i1 false %or.cond109.1 = select i1 %or.cond108.1, i1 %cmp3.not.3.i.1244, i1 false %or.cond110.1 = select i1 %or.cond109.1, i1 %cmp3.not.4.i.1, i1 false br i1 %or.cond110.1, label %compare.exit95.1, label %compare.exit95.thread.1 compare.exit95.1: ; preds = %for.cond34 %cmp3.not.5.i93.1 = icmp ne i32 %.lcssa160180.lcssa203218, %15 %cond.fr100.1 = freeze i1 %cmp3.not.5.i93.1 br i1 %cond.fr100.1, label %compare.exit95.thread.1, label %for.cond34.1 compare.exit95.thread.1: ; preds = %compare.exit95.1, %for.cond34 br label %for.cond34.1 for.cond34.1: ; preds = %compare.exit95.thread.1, %compare.exit95.1 %33 = phi i32 [ %32, %compare.exit95.thread.1 ], [ 1, %compare.exit95.1 ] %or.cond107.2 = select i1 %cmp3.not.i82, i1 %cmp3.not.1.i.1.1, i1 false %or.cond108.2 = select i1 %or.cond107.2, i1 %cmp3.not.2.i.2, i1 false %or.cond109.2 = select i1 %or.cond108.2, i1 %cmp3.not.3.i.2, i1 false %or.cond110.2 = select i1 %or.cond109.2, i1 %cmp3.not.4.i.1.1, i1 false br i1 %or.cond110.2, label %compare.exit95.2, label %compare.exit95.thread.2 compare.exit95.2: ; preds = %for.cond34.1 %cmp3.not.5.i93.2 = icmp ne i32 %.lcssa160180.lcssa203218, %15 %cond.fr100.2 = freeze i1 %cmp3.not.5.i93.2 br i1 %cond.fr100.2, label %compare.exit95.thread.2, label %for.cond34.2 compare.exit95.thread.2: ; preds = %compare.exit95.2, %for.cond34.1 br label %for.cond34.2 for.cond34.2: ; preds = %compare.exit95.thread.2, %compare.exit95.2 %34 = phi i32 [ %33, %compare.exit95.thread.2 ], [ 1, %compare.exit95.2 ] %or.cond107.3 = select i1 %cmp3.not.i82, i1 %cmp3.not.1.i.3, i1 false %or.cond108.3 = select i1 %or.cond107.3, i1 %cmp3.not.2.i.2.1, i1 false %or.cond109.3 = select i1 %or.cond108.3, i1 %cmp3.not.3.i.2.1, i1 false %or.cond110.3 = select i1 %or.cond109.3, i1 %cmp3.not.4.i.3, i1 false br i1 %or.cond110.3, label %compare.exit95.3, label %compare.exit95.thread.3 compare.exit95.3: ; preds = %for.cond34.2 %cmp3.not.5.i93.3 = icmp ne i32 %.lcssa160180.lcssa203218, %15 %cond.fr100.3 = freeze i1 %cmp3.not.5.i93.3 br i1 %cond.fr100.3, label %compare.exit95.thread.3, label %for.cond34.3 compare.exit95.thread.3: ; preds = %compare.exit95.3, %for.cond34.2 br label %for.cond34.3 for.cond34.3: ; preds = %compare.exit95.thread.3, %compare.exit95.3 %35 = phi i32 [ %34, %compare.exit95.thread.3 ], [ 1, %compare.exit95.3 ] %cmp3.not.i82.1281 = icmp eq i32 %.lcssa160180.lcssa203218, %10 %or.cond107.1283 = select i1 %cmp3.not.i82.1281, i1 %cmp3.not.1.i.1.1, i1 false %or.cond108.1285 = select i1 %or.cond107.1283, i1 %cmp3.not.2.i, i1 false %or.cond109.1287 = select i1 %or.cond108.1285, i1 %cmp3.not.3.i, i1 false %or.cond110.1289 = select i1 %or.cond109.1287, i1 %cmp3.not.4.i.1.1, i1 false br i1 %or.cond110.1289, label %compare.exit95.1292, label %compare.exit95.thread.1293 compare.exit95.1292: ; preds = %for.cond34.3 %cmp3.not.5.i93.1290 = icmp ne i32 %.lcssa163183.lcssa204217, %15 %cond.fr100.1291 = freeze i1 %cmp3.not.5.i93.1290 br i1 %cond.fr100.1291, label %compare.exit95.thread.1293, label %for.cond34.1294 compare.exit95.thread.1293: ; preds = %compare.exit95.1292, %for.cond34.3 br label %for.cond34.1294 for.cond34.1294: ; preds = %compare.exit95.thread.1293, %compare.exit95.1292 %36 = phi i32 [ %35, %compare.exit95.thread.1293 ], [ 1, %compare.exit95.1292 ] %or.cond107.1.1 = select i1 %cmp3.not.i82.1281, i1 %cmp3.not.1.i.1, i1 false %or.cond108.1.1 = select i1 %or.cond107.1.1, i1 %cmp3.not.2.i.2.1, i1 false %or.cond109.1.1 = select i1 %or.cond108.1.1, i1 %cmp3.not.3.i.2.1, i1 false %or.cond110.1.1 = select i1 %or.cond109.1.1, i1 %cmp3.not.4.i.1, i1 false br i1 %or.cond110.1.1, label %compare.exit95.1.1, label %compare.exit95.thread.1.1 compare.exit95.1.1: ; preds = %for.cond34.1294 %cmp3.not.5.i93.1.1 = icmp ne i32 %.lcssa163183.lcssa204217, %15 %cond.fr100.1.1 = freeze i1 %cmp3.not.5.i93.1.1 br i1 %cond.fr100.1.1, label %compare.exit95.thread.1.1, label %for.cond34.1.1 compare.exit95.thread.1.1: ; preds = %compare.exit95.1.1, %for.cond34.1294 br label %for.cond34.1.1 for.cond34.1.1: ; preds = %compare.exit95.thread.1.1, %compare.exit95.1.1 %37 = phi i32 [ %36, %compare.exit95.thread.1.1 ], [ 1, %compare.exit95.1.1 ] %or.cond107.2.1 = select i1 %cmp3.not.i82.1281, i1 %cmp3.not.1.i.3.1, i1 false %or.cond108.2.1 = select i1 %or.cond107.2.1, i1 %cmp3.not.2.i.2, i1 false %or.cond109.2.1 = select i1 %or.cond108.2.1, i1 %cmp3.not.3.i.2, i1 false %or.cond110.2.1 = select i1 %or.cond109.2.1, i1 %cmp3.not.4.i.3.1, i1 false br i1 %or.cond110.2.1, label %compare.exit95.2.1, label %compare.exit95.thread.2.1 compare.exit95.2.1: ; preds = %for.cond34.1.1 %cmp3.not.5.i93.2.1 = icmp ne i32 %.lcssa163183.lcssa204217, %15 %cond.fr100.2.1 = freeze i1 %cmp3.not.5.i93.2.1 br i1 %cond.fr100.2.1, label %compare.exit95.thread.2.1, label %for.cond34.2.1 compare.exit95.thread.2.1: ; preds = %compare.exit95.2.1, %for.cond34.1.1 br label %for.cond34.2.1 for.cond34.2.1: ; preds = %compare.exit95.thread.2.1, %compare.exit95.2.1 %38 = phi i32 [ %37, %compare.exit95.thread.2.1 ], [ 1, %compare.exit95.2.1 ] %or.cond107.3.1 = select i1 %cmp3.not.i82.1281, i1 %cmp3.not.1.i.3, i1 false %or.cond108.3.1 = select i1 %or.cond107.3.1, i1 %cmp3.not.2.i.1242, i1 false %or.cond109.3.1 = select i1 %or.cond108.3.1, i1 %cmp3.not.3.i.1244, i1 false %or.cond110.3.1 = select i1 %or.cond109.3.1, i1 %cmp3.not.4.i.3, i1 false br i1 %or.cond110.3.1, label %compare.exit95.3.1, label %compare.exit95.thread.3.1 compare.exit95.3.1: ; preds = %for.cond34.2.1 %cmp3.not.5.i93.3.1 = icmp ne i32 %.lcssa163183.lcssa204217, %15 %cond.fr100.3.1 = freeze i1 %cmp3.not.5.i93.3.1 br i1 %cond.fr100.3.1, label %compare.exit95.thread.3.1, label %for.cond34.3.1 compare.exit95.thread.3.1: ; preds = %compare.exit95.3.1, %for.cond34.2.1 br label %for.cond34.3.1 for.cond34.3.1: ; preds = %compare.exit95.thread.3.1, %compare.exit95.3.1 %39 = phi i32 [ %38, %compare.exit95.thread.3.1 ], [ 1, %compare.exit95.3.1 ] %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv298 br i1 %exitcond.not, label %for.end49, label %for.body17, !llvm.loop !9 for.end49: ; preds = %for.cond34.3.1 store i32 %.lcssa163183.lcssa204217, ptr @dice1, align 16, !tbaa !5 store i32 %4, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 1), align 4, !tbaa !5 store i32 %dice1.promoted174.lcssa199220, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 2), align 8, !tbaa !5 store i32 %.promoted168189.lcssa208215, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 3), align 4, !tbaa !5 store i32 %7, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 4), align 16, !tbaa !5 store i32 %.lcssa160180.lcssa203218, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 0, i64 5), align 4, !tbaa !5 store i32 %.promoted168189.lcssa208215, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 1, i64 0), align 8, !tbaa !5 store i32 %4, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 1, i64 1), align 4, !tbaa !5 store i32 %.lcssa163183.lcssa204217, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 1, i64 2), align 16, !tbaa !5 store i32 %.lcssa160180.lcssa203218, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 1, i64 3), align 4, !tbaa !5 store i32 %7, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 1, i64 4), align 8, !tbaa !5 store i32 %dice1.promoted174.lcssa199220, ptr getelementptr inbounds (%struct.dice, ptr @dice1, i64 0, i32 1, i64 5), align 4, !tbaa !5 %indvars.iv.next301 = add nuw nsw i64 %indvars.iv300, 1 %arrayidx2.i = getelementptr inbounds [110 x %struct.dice], ptr @dice3, i64 0, i64 %indvars.iv.next301 call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %arrayidx2.i, ptr noundef nonnull align 16 dereferenceable(24) %arrayidx.i, i64 24, i1 false) %40 = mul nuw nsw i64 %indvars.iv.next301, 48 %gep223 = getelementptr i8, ptr getelementptr inbounds ([110 x %struct.dice], ptr @dice3, i64 0, i64 0, i32 1, i64 0), i64 %40 call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %gep223, ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (%struct.dice, ptr @dice2, i64 0, i32 1, i64 0), i64 24, i1 false), !tbaa !5 %41 = load i32, ptr %m, align 4, !tbaa !5 %sub = add nsw i32 %41, -1 %42 = sext i32 %sub to i64 %cmp3 = icmp slt i64 %indvars.iv.next301, %42 %indvars.iv.next299 = add nuw nsw i64 %indvars.iv298, 1 br i1 %cmp3, label %for.cond5.preheader, label %for.end53, !llvm.loop !11 for.end53: ; preds = %for.end49 %43 = icmp eq i32 %39, 0 %spec.select = select i1 %43, ptr @.str.1, ptr @.str.2 br label %if.end58 if.end58: ; preds = %for.end53, %entry %.str.2.sink = phi ptr [ @.str.1, %entry ], [ %spec.select, %for.end53 ] %call57 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.2.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %m) #8 call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %n) #8 ret i32 0 } ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #6 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #6 ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7 ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #7 attributes #0 = { mustprogress nofree nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: read, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #5 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #6 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #8 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10}
#include <stdio.h> #include <stdlib.h> struct dice { int label[7]; }; struct dice *make_dice(int *num) { int i; struct dice *dice1; dice1 = (struct dice *)malloc(sizeof(struct dice)); for(i = 1;i <= 6;i++) { dice1->label[i] = num[i]; } return dice1; } void turnS(struct dice *a) { int temp; temp = a->label[1]; a->label[1] = a->label[5]; a->label[5] = a->label[6]; a->label[6] = a->label[2]; a->label[2] = temp; } void turnW(struct dice *a) { int temp; temp = a->label[1]; a->label[1] = a->label[3]; a->label[3] = a->label[6]; a->label[6] = a->label[4]; a->label[4] = temp; } void turnN(struct dice *a) { int temp; temp = a->label[1]; a->label[1] = a->label[2]; a->label[2] = a->label[6]; a->label[6] = a->label[5]; a->label[5] = temp; } void turnE(struct dice *a) { int temp; temp = a->label[1]; a->label[1] = a->label[4]; a->label[4] = a->label[6]; a->label[6] = a->label[3]; a->label[3] = temp; } void spin(struct dice *a) { turnS(a); turnE(a); turnN(a); } int cmp_dice(struct dice *a, struct dice *b) { int i; for(i = 1;i <= 6;i++) { if(a->label[i] != b->label[i]) return 1; } return 0; } int cmp_dice2(struct dice *dice1, struct dice *dice2) { int i,j; for(i = 0;i < 4;i++) { for(j = 0;j < 4;j++) { if(cmp_dice(dice1, dice2) == 0) break; spin(dice1); } if(cmp_dice(dice1, dice2) == 0) break; turnW(dice1); } for(i = 0;i < 4;i++) { for(j = 0;j < 4;j++) { if(cmp_dice(dice1, dice2) == 0) break; spin(dice1); } if(cmp_dice(dice1, dice2) == 0) break; turnS(dice1); } if(cmp_dice(dice1, dice2) == 0) { return 0; }else{ return 1; } } int main() { int i,j,n,t,num[7]; struct dice **dice; scanf("%d", &n); dice = (struct dice **)malloc(sizeof(struct dice *)*n); for(i = 0;i < n;i++) { for(j = 1;j <= 6;j++) { scanf("%d", num+j); } dice[i] = make_dice(num); } t = 0; for(i = 0;i < n-1;i++) { for(j = i+1; j < n;j++) { t += 1 - cmp_dice2(dice[i], dice[j]); } } if(t == 0) { printf("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135406/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135406/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 [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: mustprogress nofree nounwind willreturn uwtable define dso_local noalias ptr @make_dice(ptr nocapture noundef readonly %num) local_unnamed_addr #0 { entry: %call = tail call noalias dereferenceable_or_null(28) ptr @malloc(i64 noundef 28) #10 %scevgep = getelementptr i8, ptr %call, i64 4 %scevgep8 = getelementptr i8, ptr %num, i64 4 tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %scevgep, ptr noundef nonnull align 4 dereferenceable(24) %scevgep8, i64 24, i1 false), !tbaa !5 ret ptr %call } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable define dso_local void @turnS(ptr nocapture noundef %a) local_unnamed_addr #3 { entry: %arrayidx = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 1 %0 = load i32, ptr %arrayidx, align 4, !tbaa !5 %arrayidx2 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 5 %1 = load i32, ptr %arrayidx2, align 4, !tbaa !5 store i32 %1, ptr %arrayidx, align 4, !tbaa !5 %arrayidx6 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 6 %2 = load i32, ptr %arrayidx6, align 4, !tbaa !5 store i32 %2, ptr %arrayidx2, align 4, !tbaa !5 %arrayidx10 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 2 %3 = load i32, ptr %arrayidx10, align 4, !tbaa !5 store i32 %3, ptr %arrayidx6, align 4, !tbaa !5 store i32 %0, ptr %arrayidx10, align 4, !tbaa !5 ret void } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable define dso_local void @turnW(ptr nocapture noundef %a) local_unnamed_addr #3 { entry: %arrayidx = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 1 %0 = load i32, ptr %arrayidx, align 4, !tbaa !5 %arrayidx2 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 3 %1 = load i32, ptr %arrayidx2, align 4, !tbaa !5 store i32 %1, ptr %arrayidx, align 4, !tbaa !5 %arrayidx6 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 6 %2 = load i32, ptr %arrayidx6, align 4, !tbaa !5 store i32 %2, ptr %arrayidx2, align 4, !tbaa !5 %arrayidx10 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 4 %3 = load i32, ptr %arrayidx10, align 4, !tbaa !5 store i32 %3, ptr %arrayidx6, align 4, !tbaa !5 store i32 %0, ptr %arrayidx10, align 4, !tbaa !5 ret void } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable define dso_local void @turnN(ptr nocapture noundef %a) local_unnamed_addr #3 { entry: %arrayidx = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 1 %0 = load i32, ptr %arrayidx, align 4, !tbaa !5 %arrayidx2 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 2 %1 = load i32, ptr %arrayidx2, align 4, !tbaa !5 store i32 %1, ptr %arrayidx, align 4, !tbaa !5 %arrayidx6 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 6 %2 = load i32, ptr %arrayidx6, align 4, !tbaa !5 store i32 %2, ptr %arrayidx2, align 4, !tbaa !5 %arrayidx10 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 5 %3 = load i32, ptr %arrayidx10, align 4, !tbaa !5 store i32 %3, ptr %arrayidx6, align 4, !tbaa !5 store i32 %0, ptr %arrayidx10, align 4, !tbaa !5 ret void } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable define dso_local void @turnE(ptr nocapture noundef %a) local_unnamed_addr #3 { entry: %arrayidx = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 1 %0 = load i32, ptr %arrayidx, align 4, !tbaa !5 %arrayidx2 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 4 %1 = load i32, ptr %arrayidx2, align 4, !tbaa !5 store i32 %1, ptr %arrayidx, align 4, !tbaa !5 %arrayidx6 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 6 %2 = load i32, ptr %arrayidx6, align 4, !tbaa !5 store i32 %2, ptr %arrayidx2, align 4, !tbaa !5 %arrayidx10 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 3 %3 = load i32, ptr %arrayidx10, align 4, !tbaa !5 store i32 %3, ptr %arrayidx6, align 4, !tbaa !5 store i32 %0, ptr %arrayidx10, align 4, !tbaa !5 ret void } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable define dso_local void @spin(ptr nocapture noundef %a) local_unnamed_addr #3 { entry: %arrayidx10.i = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 2 %0 = load <4 x i32>, ptr %arrayidx10.i, align 4, !tbaa !5 %1 = shufflevector <4 x i32> %0, <4 x i32> poison, <4 x i32> <i32 1, i32 3, i32 0, i32 2> store <4 x i32> %1, ptr %arrayidx10.i, align 4, !tbaa !5 ret void } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @cmp_dice(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #4 { entry: %arrayidx = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 1 %0 = load i32, ptr %arrayidx, align 4, !tbaa !5 %arrayidx3 = getelementptr inbounds [7 x i32], ptr %b, i64 0, i64 1 %1 = load i32, ptr %arrayidx3, align 4, !tbaa !5 %cmp4.not = icmp eq i32 %0, %1 br i1 %cmp4.not, label %for.cond, label %cleanup for.cond: ; preds = %entry %arrayidx.1 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 2 %2 = load i32, ptr %arrayidx.1, align 4, !tbaa !5 %arrayidx3.1 = getelementptr inbounds [7 x i32], ptr %b, i64 0, i64 2 %3 = load i32, ptr %arrayidx3.1, align 4, !tbaa !5 %cmp4.not.1 = icmp eq i32 %2, %3 br i1 %cmp4.not.1, label %for.cond.1, label %cleanup for.cond.1: ; preds = %for.cond %arrayidx.2 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 3 %4 = load i32, ptr %arrayidx.2, align 4, !tbaa !5 %arrayidx3.2 = getelementptr inbounds [7 x i32], ptr %b, i64 0, i64 3 %5 = load i32, ptr %arrayidx3.2, align 4, !tbaa !5 %cmp4.not.2 = icmp eq i32 %4, %5 br i1 %cmp4.not.2, label %for.cond.2, label %cleanup for.cond.2: ; preds = %for.cond.1 %arrayidx.3 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 4 %6 = load i32, ptr %arrayidx.3, align 4, !tbaa !5 %arrayidx3.3 = getelementptr inbounds [7 x i32], ptr %b, i64 0, i64 4 %7 = load i32, ptr %arrayidx3.3, align 4, !tbaa !5 %cmp4.not.3 = icmp eq i32 %6, %7 br i1 %cmp4.not.3, label %for.cond.3, label %cleanup for.cond.3: ; preds = %for.cond.2 %arrayidx.4 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 5 %8 = load i32, ptr %arrayidx.4, align 4, !tbaa !5 %arrayidx3.4 = getelementptr inbounds [7 x i32], ptr %b, i64 0, i64 5 %9 = load i32, ptr %arrayidx3.4, align 4, !tbaa !5 %cmp4.not.4 = icmp eq i32 %8, %9 br i1 %cmp4.not.4, label %for.cond.4, label %cleanup for.cond.4: ; preds = %for.cond.3 %arrayidx.5 = getelementptr inbounds [7 x i32], ptr %a, i64 0, i64 6 %10 = load i32, ptr %arrayidx.5, align 4, !tbaa !5 %arrayidx3.5 = getelementptr inbounds [7 x i32], ptr %b, i64 0, i64 6 %11 = load i32, ptr %arrayidx3.5, align 4, !tbaa !5 %cmp4.not.5 = icmp ne i32 %10, %11 %spec.select = zext i1 %cmp4.not.5 to i32 br label %cleanup cleanup: ; preds = %for.cond.4, %for.cond.3, %for.cond.2, %for.cond.1, %for.cond, %entry %retval.0 = phi i32 [ 1, %entry ], [ 1, %for.cond ], [ 1, %for.cond.1 ], [ 1, %for.cond.2 ], [ 1, %for.cond.3 ], [ %spec.select, %for.cond.4 ] ret i32 %retval.0 } ; Function Attrs: nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable define dso_local i32 @cmp_dice2(ptr nocapture noundef %dice1, ptr nocapture noundef readonly %dice2) local_unnamed_addr #5 { entry: %arrayidx.5.i75 = getelementptr inbounds [7 x i32], ptr %dice1, i64 0, i64 6 %arrayidx.i = getelementptr inbounds [7 x i32], ptr %dice1, i64 0, i64 1 %arrayidx3.i = getelementptr inbounds [7 x i32], ptr %dice2, i64 0, i64 1 %arrayidx.1.i = getelementptr inbounds [7 x i32], ptr %dice1, i64 0, i64 2 %arrayidx3.1.i = getelementptr inbounds [7 x i32], ptr %dice2, i64 0, i64 2 %arrayidx.2.i = getelementptr inbounds [7 x i32], ptr %dice1, i64 0, i64 3 %arrayidx3.2.i = getelementptr inbounds [7 x i32], ptr %dice2, i64 0, i64 3 %arrayidx.3.i = getelementptr inbounds [7 x i32], ptr %dice1, i64 0, i64 4 %arrayidx3.3.i = getelementptr inbounds [7 x i32], ptr %dice2, i64 0, i64 4 %arrayidx.4.i = getelementptr inbounds [7 x i32], ptr %dice1, i64 0, i64 5 %arrayidx3.4.i = getelementptr inbounds [7 x i32], ptr %dice2, i64 0, i64 5 %arrayidx3.5.i = getelementptr inbounds [7 x i32], ptr %dice2, i64 0, i64 6 %.pre = load i32, ptr %arrayidx.i, align 4, !tbaa !5 %.pre184.pre = load i32, ptr %arrayidx.1.i, align 4, !tbaa !5 br label %for.cond1.preheader for.cond1.preheader: ; preds = %entry, %if.end8 %.pre184 = phi i32 [ %.pre184.pre, %entry ], [ %.pre184190, %if.end8 ] %0 = phi i32 [ %.pre, %entry ], [ %36, %if.end8 ] %i.0179 = phi i32 [ 0, %entry ], [ %inc10, %if.end8 ] %1 = load i32, ptr %arrayidx3.i, align 4, !tbaa !5 %cmp4.not.i = icmp eq i32 %0, %1 br i1 %cmp4.not.i, label %for.cond.i, label %for.cond1.preheader.if.end_crit_edge for.cond1.preheader.if.end_crit_edge: ; preds = %for.cond1.preheader %.pre185 = load i32, ptr %arrayidx.2.i, align 4, !tbaa !5 br label %if.end for.cond.i: ; preds = %for.cond1.preheader %2 = load i32, ptr %arrayidx3.1.i, align 4, !tbaa !5 %cmp4.not.1.i = icmp eq i32 %.pre184, %2 %.pre186 = load i32, ptr %arrayidx.2.i, align 4, !tbaa !5 br i1 %cmp4.not.1.i, label %for.cond.1.i, label %if.end for.cond.1.i: ; preds = %for.cond.i %3 = load i32, ptr %arrayidx3.2.i, align 4, !tbaa !5 %cmp4.not.2.i = icmp eq i32 %.pre186, %3 br i1 %cmp4.not.2.i, label %for.cond.2.i, label %if.end for.cond.2.i: ; preds = %for.cond.1.i %4 = load i32, ptr %arrayidx.3.i, align 4, !tbaa !5 %5 = load i32, ptr %arrayidx3.3.i, align 4, !tbaa !5 %cmp4.not.3.i = icmp eq i32 %4, %5 br i1 %cmp4.not.3.i, label %for.cond.3.i, label %if.end for.cond.3.i: ; preds = %for.cond.2.i %6 = load i32, ptr %arrayidx.4.i, align 4, !tbaa !5 %7 = load i32, ptr %arrayidx3.4.i, align 4, !tbaa !5 %cmp4.not.4.i = icmp eq i32 %6, %7 br i1 %cmp4.not.4.i, label %cmp_dice.exit, label %if.end cmp_dice.exit: ; preds = %for.cond.3.i %8 = load i32, ptr %arrayidx.5.i75, align 4, !tbaa !5 %9 = load i32, ptr %arrayidx3.5.i, align 4, !tbaa !5 %cmp4.not.5.i.not = icmp eq i32 %8, %9 br i1 %cmp4.not.5.i.not, label %for.end, label %if.end if.end: ; preds = %for.cond1.preheader.if.end_crit_edge, %for.cond.3.i, %for.cond.2.i, %for.cond.1.i, %for.cond.i, %cmp_dice.exit %10 = phi i32 [ %.pre185, %for.cond1.preheader.if.end_crit_edge ], [ %.pre186, %for.cond.3.i ], [ %.pre186, %for.cond.2.i ], [ %.pre186, %for.cond.1.i ], [ %.pre186, %for.cond.i ], [ %.pre186, %cmp_dice.exit ] %11 = load i32, ptr %arrayidx.4.i, align 4, !tbaa !5 %12 = load i32, ptr %arrayidx.3.i, align 4, !tbaa !5 store i32 %.pre184, ptr %arrayidx.3.i, align 4, !tbaa !5 store i32 %11, ptr %arrayidx.2.i, align 4, !tbaa !5 store i32 %10, ptr %arrayidx.1.i, align 4, !tbaa !5 store i32 %12, ptr %arrayidx.4.i, align 4, !tbaa !5 %13 = load i32, ptr %arrayidx3.i, align 4, !tbaa !5 %cmp4.not.i.1 = icmp eq i32 %0, %13 br i1 %cmp4.not.i.1, label %for.cond.i.1, label %if.end.1 for.cond.i.1: ; preds = %if.end %14 = load i32, ptr %arrayidx3.1.i, align 4, !tbaa !5 %cmp4.not.1.i.1 = icmp eq i32 %10, %14 br i1 %cmp4.not.1.i.1, label %for.cond.1.i.1, label %if.end.1 for.cond.1.i.1: ; preds = %for.cond.i.1 %15 = load i32, ptr %arrayidx3.2.i, align 4, !tbaa !5 %cmp4.not.2.i.1 = icmp eq i32 %11, %15 br i1 %cmp4.not.2.i.1, label %for.cond.2.i.1, label %if.end.1 for.cond.2.i.1: ; preds = %for.cond.1.i.1 %16 = load i32, ptr %arrayidx3.3.i, align 4, !tbaa !5 %cmp4.not.3.i.1 = icmp eq i32 %.pre184, %16 br i1 %cmp4.not.3.i.1, label %for.cond.3.i.1, label %if.end.1 for.cond.3.i.1: ; preds = %for.cond.2.i.1 %17 = load i32, ptr %arrayidx3.4.i, align 4, !tbaa !5 %cmp4.not.4.i.1 = icmp eq i32 %12, %17 br i1 %cmp4.not.4.i.1, label %cmp_dice.exit.1, label %if.end.1 cmp_dice.exit.1: ; preds = %for.cond.3.i.1 %18 = load i32, ptr %arrayidx.5.i75, align 4, !tbaa !5 %19 = load i32, ptr %arrayidx3.5.i, align 4, !tbaa !5 %cmp4.not.5.i.not.1 = icmp eq i32 %18, %19 br i1 %cmp4.not.5.i.not.1, label %for.end, label %if.end.1 if.end.1: ; preds = %cmp_dice.exit.1, %for.cond.3.i.1, %for.cond.2.i.1, %for.cond.1.i.1, %for.cond.i.1, %if.end store i32 %10, ptr %arrayidx.3.i, align 4, !tbaa !5 store i32 %12, ptr %arrayidx.2.i, align 4, !tbaa !5 store i32 %11, ptr %arrayidx.1.i, align 4, !tbaa !5 store i32 %.pre184, ptr %arrayidx.4.i, align 4, !tbaa !5 %20 = load i32, ptr %arrayidx3.i, align 4, !tbaa !5 %cmp4.not.i.2 = icmp eq i32 %0, %20 br i1 %cmp4.not.i.2, label %for.cond.i.2, label %if.end.2 for.cond.i.2: ; preds = %if.end.1 %21 = load i32, ptr %arrayidx3.1.i, align 4, !tbaa !5 %cmp4.not.1.i.2 = icmp eq i32 %11, %21 br i1 %cmp4.not.1.i.2, label %for.cond.1.i.2, label %if.end.2 for.cond.1.i.2: ; preds = %for.cond.i.2 %22 = load i32, ptr %arrayidx3.2.i, align 4, !tbaa !5 %cmp4.not.2.i.2 = icmp eq i32 %12, %22 br i1 %cmp4.not.2.i.2, label %for.cond.2.i.2, label %if.end.2 for.cond.2.i.2: ; preds = %for.cond.1.i.2 %23 = load i32, ptr %arrayidx3.3.i, align 4, !tbaa !5 %cmp4.not.3.i.2 = icmp eq i32 %10, %23 br i1 %cmp4.not.3.i.2, label %for.cond.3.i.2, label %if.end.2 for.cond.3.i.2: ; preds = %for.cond.2.i.2 %24 = load i32, ptr %arrayidx3.4.i, align 4, !tbaa !5 %cmp4.not.4.i.2 = icmp eq i32 %.pre184, %24 br i1 %cmp4.not.4.i.2, label %cmp_dice.exit.2, label %if.end.2 cmp_dice.exit.2: ; preds = %for.cond.3.i.2 %25 = load i32, ptr %arrayidx.5.i75, align 4, !tbaa !5 %26 = load i32, ptr %arrayidx3.5.i, align 4, !tbaa !5 %cmp4.not.5.i.not.2 = icmp eq i32 %25, %26 br i1 %cmp4.not.5.i.not.2, label %for.end, label %if.end.2 if.end.2: ; preds = %cmp_dice.exit.2, %for.cond.3.i.2, %for.cond.2.i.2, %for.cond.1.i.2, %for.cond.i.2, %if.end.1 store i32 %11, ptr %arrayidx.3.i, align 4, !tbaa !5 store i32 %.pre184, ptr %arrayidx.2.i, align 4, !tbaa !5 store i32 %12, ptr %arrayidx.1.i, align 4, !tbaa !5 store i32 %10, ptr %arrayidx.4.i, align 4, !tbaa !5 %27 = load i32, ptr %arrayidx3.i, align 4, !tbaa !5 %cmp4.not.i.3 = icmp eq i32 %0, %27 br i1 %cmp4.not.i.3, label %for.cond.i.3, label %if.end.3 for.cond.i.3: ; preds = %if.end.2 %28 = load i32, ptr %arrayidx3.1.i, align 4, !tbaa !5 %cmp4.not.1.i.3 = icmp eq i32 %12, %28 br i1 %cmp4.not.1.i.3, label %for.cond.1.i.3, label %if.end.3 for.cond.1.i.3: ; preds = %for.cond.i.3 %29 = load i32, ptr %arrayidx3.2.i, align 4, !tbaa !5 %cmp4.not.2.i.3 = icmp eq i32 %.pre184, %29 br i1 %cmp4.not.2.i.3, label %for.cond.2.i.3, label %if.end.3 for.cond.2.i.3: ; preds = %for.cond.1.i.3 %30 = load i32, ptr %arrayidx3.3.i, align 4, !tbaa !5 %cmp4.not.3.i.3 = icmp eq i32 %11, %30 br i1 %cmp4.not.3.i.3, label %for.cond.3.i.3, label %if.end.3 for.cond.3.i.3: ; preds = %for.cond.2.i.3 %31 = load i32, ptr %arrayidx3.4.i, align 4, !tbaa !5 %cmp4.not.4.i.3 = icmp eq i32 %10, %31 br i1 %cmp4.not.4.i.3, label %cmp_dice.exit.3, label %if.end.3 cmp_dice.exit.3: ; preds = %for.cond.3.i.3 %32 = load i32, ptr %arrayidx.5.i75, align 4, !tbaa !5 %33 = load i32, ptr %arrayidx3.5.i, align 4, !tbaa !5 %cmp4.not.5.i.not.3 = icmp eq i32 %32, %33 br i1 %cmp4.not.5.i.not.3, label %for.end, label %if.end.3 if.end.3: ; preds = %cmp_dice.exit.3, %for.cond.3.i.3, %for.cond.2.i.3, %for.cond.1.i.3, %for.cond.i.3, %if.end.2 store i32 %12, ptr %arrayidx.3.i, align 4, !tbaa !5 store i32 %10, ptr %arrayidx.2.i, align 4, !tbaa !5 store i32 %.pre184, ptr %arrayidx.1.i, align 4, !tbaa !5 store i32 %11, ptr %arrayidx.4.i, align 4, !tbaa !5 %.pre187 = load i32, ptr %arrayidx3.i, align 4, !tbaa !5 br label %for.end for.end: ; preds = %if.end.3, %cmp_dice.exit.3, %cmp_dice.exit.2, %cmp_dice.exit.1, %cmp_dice.exit %.pre184190 = phi i32 [ %.pre184, %if.end.3 ], [ %12, %cmp_dice.exit.3 ], [ %11, %cmp_dice.exit.2 ], [ %10, %cmp_dice.exit.1 ], [ %.pre184, %cmp_dice.exit ] %34 = phi i32 [ %11, %if.end.3 ], [ %10, %cmp_dice.exit.3 ], [ %.pre184, %cmp_dice.exit.2 ], [ %12, %cmp_dice.exit.1 ], [ %6, %cmp_dice.exit ] %35 = phi i32 [ %12, %if.end.3 ], [ %11, %cmp_dice.exit.3 ], [ %10, %cmp_dice.exit.2 ], [ %.pre184, %cmp_dice.exit.1 ], [ %4, %cmp_dice.exit ] %36 = phi i32 [ %10, %if.end.3 ], [ %.pre184, %cmp_dice.exit.3 ], [ %12, %cmp_dice.exit.2 ], [ %11, %cmp_dice.exit.1 ], [ %.pre186, %cmp_dice.exit ] %37 = phi i32 [ %.pre187, %if.end.3 ], [ %0, %cmp_dice.exit.3 ], [ %0, %cmp_dice.exit.2 ], [ %0, %cmp_dice.exit.1 ], [ %0, %cmp_dice.exit ] %cmp4.not.i56 = icmp eq i32 %0, %37 br i1 %cmp4.not.i56, label %for.cond.i58, label %if.end8 for.cond.i58: ; preds = %for.end %38 = load i32, ptr %arrayidx3.1.i, align 4, !tbaa !5 %cmp4.not.1.i61 = icmp eq i32 %.pre184190, %38 br i1 %cmp4.not.1.i61, label %for.cond.1.i62, label %if.end8 for.cond.1.i62: ; preds = %for.cond.i58 %39 = load i32, ptr %arrayidx3.2.i, align 4, !tbaa !5 %cmp4.not.2.i65 = icmp eq i32 %36, %39 br i1 %cmp4.not.2.i65, label %for.cond.2.i66, label %if.end8 for.cond.2.i66: ; preds = %for.cond.1.i62 %40 = load i32, ptr %arrayidx3.3.i, align 4, !tbaa !5 %cmp4.not.3.i69 = icmp eq i32 %35, %40 br i1 %cmp4.not.3.i69, label %for.cond.3.i70, label %if.end8 for.cond.3.i70: ; preds = %for.cond.2.i66 %41 = load i32, ptr %arrayidx3.4.i, align 4, !tbaa !5 %cmp4.not.4.i73 = icmp eq i32 %34, %41 br i1 %cmp4.not.4.i73, label %cmp_dice.exit79, label %if.end8 cmp_dice.exit79: ; preds = %for.cond.3.i70 %42 = load i32, ptr %arrayidx.5.i75, align 4, !tbaa !5 %43 = load i32, ptr %arrayidx3.5.i, align 4, !tbaa !5 %cmp4.not.5.i77.not = icmp eq i32 %42, %43 br i1 %cmp4.not.5.i77.not, label %for.cond15.preheader.preheader, label %if.end8 if.end8: ; preds = %for.cond.3.i70, %for.cond.2.i66, %for.cond.1.i62, %for.cond.i58, %for.end, %cmp_dice.exit79 store i32 %36, ptr %arrayidx.i, align 4, !tbaa !5 %44 = load i32, ptr %arrayidx.5.i75, align 4, !tbaa !5 store i32 %44, ptr %arrayidx.2.i, align 4, !tbaa !5 store i32 %35, ptr %arrayidx.5.i75, align 4, !tbaa !5 store i32 %0, ptr %arrayidx.3.i, align 4, !tbaa !5 %inc10 = add nuw nsw i32 %i.0179, 1 %exitcond.not = icmp eq i32 %inc10, 4 br i1 %exitcond.not, label %for.cond15.preheader.preheader, label %for.cond1.preheader, !llvm.loop !9 for.cond15.preheader.preheader: ; preds = %cmp_dice.exit79, %if.end8 %.ph218 = phi i32 [ %35, %if.end8 ], [ %42, %cmp_dice.exit79 ] %.ph219 = phi i32 [ %0, %if.end8 ], [ %35, %cmp_dice.exit79 ] %.ph220 = phi i32 [ %44, %if.end8 ], [ %36, %cmp_dice.exit79 ] %.ph221 = phi i32 [ %36, %if.end8 ], [ %0, %cmp_dice.exit79 ] br label %for.cond15.preheader for.cond15.preheader: ; preds = %for.cond15.preheader.preheader, %if.end28 %45 = phi i32 [ %80, %if.end28 ], [ %.ph219, %for.cond15.preheader.preheader ] %46 = phi i32 [ %81, %if.end28 ], [ %.ph220, %for.cond15.preheader.preheader ] %47 = phi i32 [ %93, %if.end28 ], [ %.ph220, %for.cond15.preheader.preheader ] %48 = phi i32 [ %94, %if.end28 ], [ %.ph219, %for.cond15.preheader.preheader ] %49 = phi i32 [ %82, %if.end28 ], [ %.ph218, %for.cond15.preheader.preheader ] %50 = phi i32 [ %49, %if.end28 ], [ %34, %for.cond15.preheader.preheader ] %51 = phi i32 [ %95, %if.end28 ], [ %.ph219, %for.cond15.preheader.preheader ] %52 = phi i32 [ %96, %if.end28 ], [ %.ph220, %for.cond15.preheader.preheader ] %53 = phi i32 [ %54, %if.end28 ], [ %.pre184190, %for.cond15.preheader.preheader ] %54 = phi i32 [ %79, %if.end28 ], [ %.ph221, %for.cond15.preheader.preheader ] %i.1181 = phi i32 [ %inc30, %if.end28 ], [ 0, %for.cond15.preheader.preheader ] %55 = load i32, ptr %arrayidx3.i, align 4, !tbaa !5 %cmp4.not.i83 = icmp eq i32 %54, %55 br i1 %cmp4.not.i83, label %for.cond.i85, label %if.end21 for.cond.i85: ; preds = %for.cond15.preheader %56 = load i32, ptr %arrayidx3.1.i, align 4, !tbaa !5 %cmp4.not.1.i88 = icmp eq i32 %53, %56 br i1 %cmp4.not.1.i88, label %for.cond.1.i89, label %if.end21 for.cond.1.i89: ; preds = %for.cond.i85 %57 = load i32, ptr %arrayidx3.2.i, align 4, !tbaa !5 %cmp4.not.2.i92 = icmp eq i32 %52, %57 br i1 %cmp4.not.2.i92, label %for.cond.2.i93, label %if.end21 for.cond.2.i93: ; preds = %for.cond.1.i89 %58 = load i32, ptr %arrayidx3.3.i, align 4, !tbaa !5 %cmp4.not.3.i96 = icmp eq i32 %51, %58 br i1 %cmp4.not.3.i96, label %for.cond.3.i97, label %if.end21 for.cond.3.i97: ; preds = %for.cond.2.i93 %59 = load i32, ptr %arrayidx3.4.i, align 4, !tbaa !5 %cmp4.not.4.i100 = icmp eq i32 %50, %59 br i1 %cmp4.not.4.i100, label %cmp_dice.exit106, label %if.end21 cmp_dice.exit106: ; preds = %for.cond.3.i97 %60 = load i32, ptr %arrayidx3.5.i, align 4, !tbaa !5 %cmp4.not.5.i104.not = icmp eq i32 %49, %60 br i1 %cmp4.not.5.i104.not, label %for.end24, label %if.end21 if.end21: ; preds = %for.cond.3.i97, %for.cond.2.i93, %for.cond.1.i89, %for.cond.i85, %for.cond15.preheader, %cmp_dice.exit106 store i32 %53, ptr %arrayidx.3.i, align 4, !tbaa !5 store i32 %50, ptr %arrayidx.2.i, align 4, !tbaa !5 store i32 %47, ptr %arrayidx.1.i, align 4, !tbaa !5 store i32 %48, ptr %arrayidx.4.i, align 4, !tbaa !5 %61 = load i32, ptr %arrayidx3.i, align 4, !tbaa !5 %cmp4.not.i83.1 = icmp eq i32 %54, %61 br i1 %cmp4.not.i83.1, label %for.cond.i85.1, label %if.end21.1 for.cond.i85.1: ; preds = %if.end21 %62 = load i32, ptr %arrayidx3.1.i, align 4, !tbaa !5 %cmp4.not.1.i88.1 = icmp eq i32 %47, %62 br i1 %cmp4.not.1.i88.1, label %for.cond.1.i89.1, label %if.end21.1 for.cond.1.i89.1: ; preds = %for.cond.i85.1 %63 = load i32, ptr %arrayidx3.2.i, align 4, !tbaa !5 %cmp4.not.2.i92.1 = icmp eq i32 %50, %63 br i1 %cmp4.not.2.i92.1, label %for.cond.2.i93.1, label %if.end21.1 for.cond.2.i93.1: ; preds = %for.cond.1.i89.1 %64 = load i32, ptr %arrayidx3.3.i, align 4, !tbaa !5 %cmp4.not.3.i96.1 = icmp eq i32 %53, %64 br i1 %cmp4.not.3.i96.1, label %for.cond.3.i97.1, label %if.end21.1 for.cond.3.i97.1: ; preds = %for.cond.2.i93.1 %65 = load i32, ptr %arrayidx3.4.i, align 4, !tbaa !5 %cmp4.not.4.i100.1 = icmp eq i32 %48, %65 br i1 %cmp4.not.4.i100.1, label %cmp_dice.exit106.1, label %if.end21.1 cmp_dice.exit106.1: ; preds = %for.cond.3.i97.1 %66 = load i32, ptr %arrayidx3.5.i, align 4, !tbaa !5 %cmp4.not.5.i104.not.1 = icmp eq i32 %49, %66 br i1 %cmp4.not.5.i104.not.1, label %for.end24, label %if.end21.1 if.end21.1: ; preds = %cmp_dice.exit106.1, %for.cond.3.i97.1, %for.cond.2.i93.1, %for.cond.1.i89.1, %for.cond.i85.1, %if.end21 store i32 %47, ptr %arrayidx.3.i, align 4, !tbaa !5 store i32 %48, ptr %arrayidx.2.i, align 4, !tbaa !5 store i32 %50, ptr %arrayidx.1.i, align 4, !tbaa !5 store i32 %53, ptr %arrayidx.4.i, align 4, !tbaa !5 %67 = load i32, ptr %arrayidx3.i, align 4, !tbaa !5 %cmp4.not.i83.2 = icmp eq i32 %54, %67 br i1 %cmp4.not.i83.2, label %for.cond.i85.2, label %if.end21.2 for.cond.i85.2: ; preds = %if.end21.1 %68 = load i32, ptr %arrayidx3.1.i, align 4, !tbaa !5 %cmp4.not.1.i88.2 = icmp eq i32 %50, %68 br i1 %cmp4.not.1.i88.2, label %for.cond.1.i89.2, label %if.end21.2 for.cond.1.i89.2: ; preds = %for.cond.i85.2 %69 = load i32, ptr %arrayidx3.2.i, align 4, !tbaa !5 %cmp4.not.2.i92.2 = icmp eq i32 %48, %69 br i1 %cmp4.not.2.i92.2, label %for.cond.2.i93.2, label %if.end21.2 for.cond.2.i93.2: ; preds = %for.cond.1.i89.2 %70 = load i32, ptr %arrayidx3.3.i, align 4, !tbaa !5 %cmp4.not.3.i96.2 = icmp eq i32 %47, %70 br i1 %cmp4.not.3.i96.2, label %for.cond.3.i97.2, label %if.end21.2 for.cond.3.i97.2: ; preds = %for.cond.2.i93.2 %71 = load i32, ptr %arrayidx3.4.i, align 4, !tbaa !5 %cmp4.not.4.i100.2 = icmp eq i32 %53, %71 br i1 %cmp4.not.4.i100.2, label %cmp_dice.exit106.2, label %if.end21.2 cmp_dice.exit106.2: ; preds = %for.cond.3.i97.2 %72 = load i32, ptr %arrayidx3.5.i, align 4, !tbaa !5 %cmp4.not.5.i104.not.2 = icmp eq i32 %49, %72 br i1 %cmp4.not.5.i104.not.2, label %for.end24, label %if.end21.2 if.end21.2: ; preds = %cmp_dice.exit106.2, %for.cond.3.i97.2, %for.cond.2.i93.2, %for.cond.1.i89.2, %for.cond.i85.2, %if.end21.1 store i32 %50, ptr %arrayidx.3.i, align 4, !tbaa !5 store i32 %53, ptr %arrayidx.2.i, align 4, !tbaa !5 store i32 %48, ptr %arrayidx.1.i, align 4, !tbaa !5 store i32 %47, ptr %arrayidx.4.i, align 4, !tbaa !5 %73 = load i32, ptr %arrayidx3.i, align 4, !tbaa !5 %cmp4.not.i83.3 = icmp eq i32 %54, %73 br i1 %cmp4.not.i83.3, label %for.cond.i85.3, label %if.end21.3 for.cond.i85.3: ; preds = %if.end21.2 %74 = load i32, ptr %arrayidx3.1.i, align 4, !tbaa !5 %cmp4.not.1.i88.3 = icmp eq i32 %48, %74 br i1 %cmp4.not.1.i88.3, label %for.cond.1.i89.3, label %if.end21.3 for.cond.1.i89.3: ; preds = %for.cond.i85.3 %75 = load i32, ptr %arrayidx3.2.i, align 4, !tbaa !5 %cmp4.not.2.i92.3 = icmp eq i32 %53, %75 br i1 %cmp4.not.2.i92.3, label %for.cond.2.i93.3, label %if.end21.3 for.cond.2.i93.3: ; preds = %for.cond.1.i89.3 %76 = load i32, ptr %arrayidx3.3.i, align 4, !tbaa !5 %cmp4.not.3.i96.3 = icmp eq i32 %50, %76 br i1 %cmp4.not.3.i96.3, label %for.cond.3.i97.3, label %if.end21.3 for.cond.3.i97.3: ; preds = %for.cond.2.i93.3 %77 = load i32, ptr %arrayidx3.4.i, align 4, !tbaa !5 %cmp4.not.4.i100.3 = icmp eq i32 %47, %77 br i1 %cmp4.not.4.i100.3, label %cmp_dice.exit106.3, label %if.end21.3 cmp_dice.exit106.3: ; preds = %for.cond.3.i97.3 %78 = load i32, ptr %arrayidx3.5.i, align 4, !tbaa !5 %cmp4.not.5.i104.not.3 = icmp eq i32 %49, %78 br i1 %cmp4.not.5.i104.not.3, label %for.end24, label %if.end21.3 if.end21.3: ; preds = %cmp_dice.exit106.3, %for.cond.3.i97.3, %for.cond.2.i93.3, %for.cond.1.i89.3, %for.cond.i85.3, %if.end21.2 store i32 %48, ptr %arrayidx.3.i, align 4, !tbaa !5 store i32 %47, ptr %arrayidx.2.i, align 4, !tbaa !5 store i32 %53, ptr %arrayidx.1.i, align 4, !tbaa !5 store i32 %50, ptr %arrayidx.4.i, align 4, !tbaa !5 %.pre188 = load i32, ptr %arrayidx3.i, align 4, !tbaa !5 br label %for.end24 for.end24: ; preds = %if.end21.3, %cmp_dice.exit106.3, %cmp_dice.exit106.2, %cmp_dice.exit106.1, %cmp_dice.exit106 %79 = phi i32 [ %50, %if.end21.3 ], [ %47, %cmp_dice.exit106.3 ], [ %53, %cmp_dice.exit106.2 ], [ %48, %cmp_dice.exit106.1 ], [ %50, %cmp_dice.exit106 ] %80 = phi i32 [ %48, %if.end21.3 ], [ %50, %cmp_dice.exit106.3 ], [ %47, %cmp_dice.exit106.2 ], [ %53, %cmp_dice.exit106.1 ], [ %45, %cmp_dice.exit106 ] %81 = phi i32 [ %47, %if.end21.3 ], [ %53, %cmp_dice.exit106.3 ], [ %48, %cmp_dice.exit106.2 ], [ %50, %cmp_dice.exit106.1 ], [ %46, %cmp_dice.exit106 ] %82 = phi i32 [ %53, %if.end21.3 ], [ %48, %cmp_dice.exit106.3 ], [ %50, %cmp_dice.exit106.2 ], [ %47, %cmp_dice.exit106.1 ], [ %53, %cmp_dice.exit106 ] %83 = phi i32 [ %.pre188, %if.end21.3 ], [ %54, %cmp_dice.exit106.3 ], [ %54, %cmp_dice.exit106.2 ], [ %54, %cmp_dice.exit106.1 ], [ %54, %cmp_dice.exit106 ] %84 = phi i32 [ %47, %if.end21.3 ], [ %53, %cmp_dice.exit106.3 ], [ %48, %cmp_dice.exit106.2 ], [ %50, %cmp_dice.exit106.1 ], [ %47, %cmp_dice.exit106 ] %85 = phi i32 [ %48, %if.end21.3 ], [ %50, %cmp_dice.exit106.3 ], [ %47, %cmp_dice.exit106.2 ], [ %53, %cmp_dice.exit106.1 ], [ %48, %cmp_dice.exit106 ] %86 = phi i32 [ %48, %if.end21.3 ], [ %50, %cmp_dice.exit106.3 ], [ %47, %cmp_dice.exit106.2 ], [ %53, %cmp_dice.exit106.1 ], [ %51, %cmp_dice.exit106 ] %87 = phi i32 [ %47, %if.end21.3 ], [ %53, %cmp_dice.exit106.3 ], [ %48, %cmp_dice.exit106.2 ], [ %50, %cmp_dice.exit106.1 ], [ %52, %cmp_dice.exit106 ] %cmp4.not.i113 = icmp eq i32 %54, %83 br i1 %cmp4.not.i113, label %for.cond.i115, label %if.end28 for.cond.i115: ; preds = %for.end24 %88 = load i32, ptr %arrayidx3.1.i, align 4, !tbaa !5 %cmp4.not.1.i118 = icmp eq i32 %82, %88 br i1 %cmp4.not.1.i118, label %for.cond.1.i119, label %if.end28 for.cond.1.i119: ; preds = %for.cond.i115 %89 = load i32, ptr %arrayidx3.2.i, align 4, !tbaa !5 %cmp4.not.2.i122 = icmp eq i32 %81, %89 br i1 %cmp4.not.2.i122, label %for.cond.2.i123, label %if.end28 for.cond.2.i123: ; preds = %for.cond.1.i119 %90 = load i32, ptr %arrayidx3.3.i, align 4, !tbaa !5 %cmp4.not.3.i126 = icmp eq i32 %80, %90 br i1 %cmp4.not.3.i126, label %for.cond.3.i127, label %if.end28 for.cond.3.i127: ; preds = %for.cond.2.i123 %91 = load i32, ptr %arrayidx3.4.i, align 4, !tbaa !5 %cmp4.not.4.i130 = icmp eq i32 %79, %91 br i1 %cmp4.not.4.i130, label %cmp_dice.exit136, label %if.end28 cmp_dice.exit136: ; preds = %for.cond.3.i127 %92 = load i32, ptr %arrayidx3.5.i, align 4, !tbaa !5 %cmp4.not.5.i134.not = icmp eq i32 %49, %92 br i1 %cmp4.not.5.i134.not, label %for.cond.i145, label %if.end28 if.end28: ; preds = %for.cond.3.i127, %for.cond.2.i123, %for.cond.1.i119, %for.cond.i115, %for.end24, %cmp_dice.exit136 %93 = phi i32 [ %81, %for.cond.3.i127 ], [ %81, %for.cond.2.i123 ], [ %81, %for.cond.1.i119 ], [ %84, %for.cond.i115 ], [ %84, %for.end24 ], [ %81, %cmp_dice.exit136 ] %94 = phi i32 [ %80, %for.cond.3.i127 ], [ %80, %for.cond.2.i123 ], [ %85, %for.cond.1.i119 ], [ %85, %for.cond.i115 ], [ %85, %for.end24 ], [ %80, %cmp_dice.exit136 ] %95 = phi i32 [ %80, %for.cond.3.i127 ], [ %80, %for.cond.2.i123 ], [ %86, %for.cond.1.i119 ], [ %86, %for.cond.i115 ], [ %86, %for.end24 ], [ %80, %cmp_dice.exit136 ] %96 = phi i32 [ %81, %for.cond.3.i127 ], [ %81, %for.cond.2.i123 ], [ %81, %for.cond.1.i119 ], [ %87, %for.cond.i115 ], [ %87, %for.end24 ], [ %81, %cmp_dice.exit136 ] store i32 %79, ptr %arrayidx.i, align 4, !tbaa !5 store i32 %49, ptr %arrayidx.4.i, align 4, !tbaa !5 store i32 %82, ptr %arrayidx.5.i75, align 4, !tbaa !5 store i32 %54, ptr %arrayidx.1.i, align 4, !tbaa !5 %inc30 = add nuw nsw i32 %i.1181, 1 %exitcond183.not = icmp eq i32 %inc30, 4 br i1 %exitcond183.not, label %for.end31, label %for.cond15.preheader, !llvm.loop !11 for.end31: ; preds = %if.end28 %.pre189 = load i32, ptr %arrayidx3.i, align 4, !tbaa !5 %cmp4.not.i143 = icmp eq i32 %79, %.pre189 br i1 %cmp4.not.i143, label %for.cond.i145, label %cmp_dice.exit166.thread for.cond.i145: ; preds = %cmp_dice.exit136, %for.end31 %97 = phi i32 [ %54, %for.end31 ], [ %82, %cmp_dice.exit136 ] %98 = phi i32 [ %49, %for.end31 ], [ %79, %cmp_dice.exit136 ] %99 = phi i32 [ %82, %for.end31 ], [ %49, %cmp_dice.exit136 ] %100 = load i32, ptr %arrayidx3.1.i, align 4, !tbaa !5 %cmp4.not.1.i148 = icmp eq i32 %97, %100 br i1 %cmp4.not.1.i148, label %for.cond.1.i149, label %cmp_dice.exit166.thread for.cond.1.i149: ; preds = %for.cond.i145 %101 = load i32, ptr %arrayidx3.2.i, align 4, !tbaa !5 %cmp4.not.2.i152 = icmp eq i32 %81, %101 br i1 %cmp4.not.2.i152, label %for.cond.2.i153, label %cmp_dice.exit166.thread for.cond.2.i153: ; preds = %for.cond.1.i149 %102 = load i32, ptr %arrayidx3.3.i, align 4, !tbaa !5 %cmp4.not.3.i156 = icmp eq i32 %80, %102 br i1 %cmp4.not.3.i156, label %for.cond.3.i157, label %cmp_dice.exit166.thread for.cond.3.i157: ; preds = %for.cond.2.i153 %103 = load i32, ptr %arrayidx3.4.i, align 4, !tbaa !5 %cmp4.not.4.i160 = icmp eq i32 %98, %103 br i1 %cmp4.not.4.i160, label %cmp_dice.exit166, label %cmp_dice.exit166.thread cmp_dice.exit166: ; preds = %for.cond.3.i157 %104 = load i32, ptr %arrayidx3.5.i, align 4, !tbaa !5 %cmp4.not.5.i164.not = icmp eq i32 %99, %104 %cond.fr = freeze i1 %cmp4.not.5.i164.not %not.cond.fr = xor i1 %cond.fr, true %spec.select = zext i1 %not.cond.fr to i32 br label %cmp_dice.exit166.thread cmp_dice.exit166.thread: ; preds = %cmp_dice.exit166, %for.cond.3.i157, %for.cond.2.i153, %for.cond.1.i149, %for.cond.i145, %for.end31 %105 = phi i32 [ 1, %for.end31 ], [ 1, %for.cond.i145 ], [ 1, %for.cond.1.i149 ], [ 1, %for.cond.2.i153 ], [ 1, %for.cond.3.i157 ], [ %spec.select, %cmp_dice.exit166 ] ret i32 %105 } ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #6 { entry: %n = alloca i32, align 4 %num = alloca [7 x i32], align 16 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #11 call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %num) #11 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %conv = sext i32 %0 to i64 %mul = shl nsw i64 %conv, 3 %call1 = call noalias ptr @malloc(i64 noundef %mul) #10 %cmp54 = icmp sgt i32 %0, 0 br i1 %cmp54, label %for.cond3.preheader.lr.ph, label %if.end for.cond3.preheader.lr.ph: ; preds = %entry %scevgep8.i = getelementptr inbounds i8, ptr %num, i64 4 %add.ptr.1 = getelementptr inbounds i32, ptr %num, i64 2 %add.ptr.2 = getelementptr inbounds i32, ptr %num, i64 3 %add.ptr.3 = getelementptr inbounds i32, ptr %num, i64 4 %add.ptr.4 = getelementptr inbounds i32, ptr %num, i64 5 %add.ptr.5 = getelementptr inbounds i32, ptr %num, i64 6 br label %for.cond3.preheader for.cond3.preheader: ; preds = %for.cond3.preheader.lr.ph, %for.cond3.preheader %indvars.iv = phi i64 [ 0, %for.cond3.preheader.lr.ph ], [ %indvars.iv.next, %for.cond3.preheader ] %call7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %scevgep8.i) %call7.1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %add.ptr.1) %call7.2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %add.ptr.2) %call7.3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %add.ptr.3) %call7.4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %add.ptr.4) %call7.5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %add.ptr.5) %call.i = call noalias dereferenceable_or_null(28) ptr @malloc(i64 noundef 28) #10 %scevgep.i = getelementptr i8, ptr %call.i, i64 4 call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %scevgep.i, ptr noundef nonnull align 4 dereferenceable(24) %scevgep8.i, i64 24, i1 false), !tbaa !5 %arrayidx = getelementptr inbounds ptr, ptr %call1, i64 %indvars.iv store ptr %call.i, ptr %arrayidx, align 8, !tbaa !12 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %1 = load i32, ptr %n, align 4, !tbaa !5 %2 = sext i32 %1 to i64 %cmp = icmp slt i64 %indvars.iv.next, %2 br i1 %cmp, label %for.cond3.preheader, label %for.cond13.preheader, !llvm.loop !14 for.cond13.preheader: ; preds = %for.cond3.preheader %cmp1460 = icmp sgt i32 %1, 1 br i1 %cmp1460, label %for.body16, label %if.end for.cond13.loopexit: ; preds = %for.body20, %for.body16 %3 = phi i32 [ %5, %for.body16 ], [ %9, %for.body20 ] %t.1.lcssa = phi i32 [ %t.061, %for.body16 ], [ %add27, %for.body20 ] %sub = add nsw i32 %3, -1 %4 = sext i32 %sub to i64 %cmp14 = icmp slt i64 %indvars.iv.next72, %4 %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1 br i1 %cmp14, label %for.body16, label %for.end33, !llvm.loop !15 for.body16: ; preds = %for.cond13.preheader, %for.cond13.loopexit %5 = phi i32 [ %3, %for.cond13.loopexit ], [ %1, %for.cond13.preheader ] %indvars.iv71 = phi i64 [ %indvars.iv.next72, %for.cond13.loopexit ], [ 0, %for.cond13.preheader ] %indvars.iv66 = phi i64 [ %indvars.iv.next67, %for.cond13.loopexit ], [ 1, %for.cond13.preheader ] %t.061 = phi i32 [ %t.1.lcssa, %for.cond13.loopexit ], [ 0, %for.cond13.preheader ] %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1 %6 = sext i32 %5 to i64 %cmp1856 = icmp slt i64 %indvars.iv.next72, %6 br i1 %cmp1856, label %for.body20.lr.ph, label %for.cond13.loopexit for.body20.lr.ph: ; preds = %for.body16 %arrayidx22 = getelementptr inbounds ptr, ptr %call1, i64 %indvars.iv71 %7 = load ptr, ptr %arrayidx22, align 8, !tbaa !12 br label %for.body20 for.body20: ; preds = %for.body20.lr.ph, %for.body20 %indvars.iv68 = phi i64 [ %indvars.iv66, %for.body20.lr.ph ], [ %indvars.iv.next69, %for.body20 ] %t.158 = phi i32 [ %t.061, %for.body20.lr.ph ], [ %add27, %for.body20 ] %arrayidx24 = getelementptr inbounds ptr, ptr %call1, i64 %indvars.iv68 %8 = load ptr, ptr %arrayidx24, align 8, !tbaa !12 %call25 = call i32 @cmp_dice2(ptr noundef %7, ptr noundef %8), !range !16 %sub26 = xor i32 %call25, 1 %add27 = add nsw i32 %sub26, %t.158 %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1 %9 = load i32, ptr %n, align 4, !tbaa !5 %10 = trunc i64 %indvars.iv.next69 to i32 %cmp18 = icmp sgt i32 %9, %10 br i1 %cmp18, label %for.body20, label %for.cond13.loopexit, !llvm.loop !17 for.end33: ; preds = %for.cond13.loopexit %11 = icmp eq i32 %t.1.lcssa, 0 %spec.select = select i1 %11, ptr @str.3, ptr @str br label %if.end if.end: ; preds = %for.end33, %for.cond13.preheader, %entry %str.sink = phi ptr [ @str.3, %entry ], [ @str.3, %for.cond13.preheader ], [ %spec.select, %for.end33 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %num) #11 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #11 ret i32 0 } ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #7 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #8 ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite) declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #9 attributes #0 = { mustprogress nofree nounwind willreturn uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #5 = { nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #6 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #7 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #8 = { nofree nounwind } attributes #9 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) } attributes #10 = { nounwind allocsize(0) } attributes #11 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10} !12 = !{!13, !13, i64 0} !13 = !{!"any pointer", !7, i64 0} !14 = distinct !{!14, !10} !15 = distinct !{!15, !10} !16 = !{i32 0, i32 2} !17 = distinct !{!17, !10}
#include <stdio.h> #include <math.h> typedef long long ll; int dat[555555*2]; int ok[555555*2]; int isp[1555555]; ll p[1555555]; int pc; void sieve(ll S) { ll i,j; pc = 0; //for( i = 0; i <= S; i++ ) isp[i] = 1; isp[0] = isp[1] = 1; for( i = 2; i*i <= S; i++ ) { if( isp[i] ) continue; for( j = i*i; j <= S; j += i ) isp[j] = 1; } for( i = 2; i <= S; i++ ) if( !isp[i] ) p[pc++] = i; } int main(void) { ll a,l,r,i,v; int b,c,j,res; scanf("%lld%d",&a,&b); sieve(sqrt(a+b)+1); l = a-b; r = a+b; if( l < 2 ) l = 2; b = r-l+1; res = b; for( i = 0; i <= b; i++ ) dat[i] = 11111; //printf("%lld %lld %d\n",l,r,b); //printf("%d\n",pc); for( j = 0; j < pc; j++ ) { for( i = l/p[j]*p[j]; i <= r; i+=p[j] ) { if( i-l < 0 ) continue; if( ok[i-l] ) continue; c = 0; v = i; while( v%p[j]== 0 ) { v/=p[j],++c; if( dat[i-l] < c ) break; } if( dat[i-l] < c ){ res--; ok[i-l] = 1; } dat[i-l] = c; //printf("%lld\n",i); } } /* for( i = 0; i < b; i++ ) { //if( ok[i] ) printf("%lld ",i+l); res += ok[i]; } */ //puts(""); printf("%d\n",res); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135464/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135464/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" @pc = dso_local local_unnamed_addr global i32 0, align 4 @isp = dso_local local_unnamed_addr global [1555555 x i32] zeroinitializer, align 16 @p = dso_local local_unnamed_addr global [1555555 x i64] zeroinitializer, align 16 @.str = private unnamed_addr constant [7 x i8] c"%lld%d\00", align 1 @dat = dso_local local_unnamed_addr global [1111110 x i32] zeroinitializer, align 16 @ok = dso_local local_unnamed_addr global [1111110 x i32] zeroinitializer, align 16 @.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 ; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, argmem: none, inaccessiblemem: none) uwtable define dso_local void @sieve(i64 noundef %S) local_unnamed_addr #0 { entry: store i32 0, ptr @pc, align 4, !tbaa !5 store i32 1, ptr getelementptr inbounds ([1555555 x i32], ptr @isp, i64 0, i64 1), align 4, !tbaa !5 store i32 1, ptr @isp, align 16, !tbaa !5 %cmp.not36 = icmp slt i64 %S, 4 br i1 %cmp.not36, label %for.cond8.preheader, label %for.body for.cond8.preheader: ; preds = %for.inc6, %entry %cmp9.not42 = icmp slt i64 %S, 2 br i1 %cmp9.not42, label %for.end19, label %for.body10.preheader for.body10.preheader: ; preds = %for.cond8.preheader %0 = add i64 %S, -1 %xtraiter = and i64 %0, 1 %1 = icmp eq i64 %S, 2 br i1 %1, label %for.end19.loopexit.unr-lcssa, label %for.body10.preheader.new for.body10.preheader.new: ; preds = %for.body10.preheader %unroll_iter = and i64 %0, -2 br label %for.body10 for.body: ; preds = %entry, %for.inc6 %mul39 = phi i64 [ %mul, %for.inc6 ], [ 4, %entry ] %i.037 = phi i64 [ %inc, %for.inc6 ], [ 2, %entry ] %arrayidx = getelementptr inbounds [1555555 x i32], ptr @isp, i64 0, i64 %i.037 %2 = load i32, ptr %arrayidx, align 4, !tbaa !5 %tobool.not = icmp ne i32 %2, 0 %cmp3.not34 = icmp sgt i64 %mul39, %S %or.cond = or i1 %tobool.not, %cmp3.not34 br i1 %or.cond, label %for.inc6, label %for.body4 for.body4: ; preds = %for.body, %for.body4 %j.035 = phi i64 [ %add, %for.body4 ], [ %mul39, %for.body ] %arrayidx5 = getelementptr inbounds [1555555 x i32], ptr @isp, i64 0, i64 %j.035 store i32 1, ptr %arrayidx5, align 4, !tbaa !5 %add = add nuw nsw i64 %j.035, %i.037 %cmp3.not = icmp sgt i64 %add, %S br i1 %cmp3.not, label %for.inc6, label %for.body4, !llvm.loop !9 for.inc6: ; preds = %for.body4, %for.body %inc = add nuw nsw i64 %i.037, 1 %mul = mul nsw i64 %inc, %inc %cmp.not = icmp sgt i64 %mul, %S br i1 %cmp.not, label %for.cond8.preheader, label %for.body, !llvm.loop !11 for.body10: ; preds = %for.inc17.1, %for.body10.preheader.new %i.144 = phi i64 [ 2, %for.body10.preheader.new ], [ %inc18.1, %for.inc17.1 ] %inc144143 = phi i32 [ 0, %for.body10.preheader.new ], [ %inc1440.1, %for.inc17.1 ] %niter = phi i64 [ 0, %for.body10.preheader.new ], [ %niter.next.1, %for.inc17.1 ] %arrayidx11 = getelementptr inbounds [1555555 x i32], ptr @isp, i64 0, i64 %i.144 %3 = load i32, ptr %arrayidx11, align 8, !tbaa !5 %tobool12.not = icmp eq i32 %3, 0 br i1 %tobool12.not, label %if.then13, label %for.inc17 if.then13: ; preds = %for.body10 %inc14 = add nsw i32 %inc144143, 1 store i32 %inc14, ptr @pc, align 4, !tbaa !5 %idxprom = sext i32 %inc144143 to i64 %arrayidx15 = getelementptr inbounds [1555555 x i64], ptr @p, i64 0, i64 %idxprom store i64 %i.144, ptr %arrayidx15, align 8, !tbaa !12 br label %for.inc17 for.inc17: ; preds = %for.body10, %if.then13 %inc1440 = phi i32 [ %inc144143, %for.body10 ], [ %inc14, %if.then13 ] %inc18 = or i64 %i.144, 1 %arrayidx11.1 = getelementptr inbounds [1555555 x i32], ptr @isp, i64 0, i64 %inc18 %4 = load i32, ptr %arrayidx11.1, align 4, !tbaa !5 %tobool12.not.1 = icmp eq i32 %4, 0 br i1 %tobool12.not.1, label %if.then13.1, label %for.inc17.1 if.then13.1: ; preds = %for.inc17 %inc14.1 = add nsw i32 %inc1440, 1 store i32 %inc14.1, ptr @pc, align 4, !tbaa !5 %idxprom.1 = sext i32 %inc1440 to i64 %arrayidx15.1 = getelementptr inbounds [1555555 x i64], ptr @p, i64 0, i64 %idxprom.1 store i64 %inc18, ptr %arrayidx15.1, align 8, !tbaa !12 br label %for.inc17.1 for.inc17.1: ; preds = %if.then13.1, %for.inc17 %inc1440.1 = phi i32 [ %inc1440, %for.inc17 ], [ %inc14.1, %if.then13.1 ] %inc18.1 = add nuw i64 %i.144, 2 %niter.next.1 = add i64 %niter, 2 %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter br i1 %niter.ncmp.1, label %for.end19.loopexit.unr-lcssa, label %for.body10, !llvm.loop !14 for.end19.loopexit.unr-lcssa: ; preds = %for.inc17.1, %for.body10.preheader %i.144.unr = phi i64 [ 2, %for.body10.preheader ], [ %inc18.1, %for.inc17.1 ] %inc144143.unr = phi i32 [ 0, %for.body10.preheader ], [ %inc1440.1, %for.inc17.1 ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %for.end19, label %for.body10.epil for.body10.epil: ; preds = %for.end19.loopexit.unr-lcssa %arrayidx11.epil = getelementptr inbounds [1555555 x i32], ptr @isp, i64 0, i64 %i.144.unr %5 = load i32, ptr %arrayidx11.epil, align 4, !tbaa !5 %tobool12.not.epil = icmp eq i32 %5, 0 br i1 %tobool12.not.epil, label %if.then13.epil, label %for.end19 if.then13.epil: ; preds = %for.body10.epil %inc14.epil = add nsw i32 %inc144143.unr, 1 store i32 %inc14.epil, ptr @pc, align 4, !tbaa !5 %idxprom.epil = sext i32 %inc144143.unr to i64 %arrayidx15.epil = getelementptr inbounds [1555555 x i64], ptr @p, i64 0, i64 %idxprom.epil store i64 %i.144.unr, ptr %arrayidx15.epil, align 8, !tbaa !12 br label %for.end19 for.end19: ; preds = %for.end19.loopexit.unr-lcssa, %if.then13.epil, %for.body10.epil, %for.cond8.preheader ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #2 { entry: %a = alloca i64, align 8 %b = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %a) #6 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #6 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b) %0 = load i64, ptr %a, align 8, !tbaa !12 %1 = load i32, ptr %b, align 4, !tbaa !5 %conv = sext i32 %1 to i64 %add = add nsw i64 %0, %conv %conv1 = sitofp i64 %add to double %call2 = call double @sqrt(double noundef %conv1) #6 %add3 = fadd double %call2, 1.000000e+00 %conv4 = fptosi double %add3 to i64 store i32 0, ptr @pc, align 4, !tbaa !5 store i32 1, ptr getelementptr inbounds ([1555555 x i32], ptr @isp, i64 0, i64 1), align 4, !tbaa !5 store i32 1, ptr @isp, align 16, !tbaa !5 %cmp.not36.i = icmp slt i64 %conv4, 4 br i1 %cmp.not36.i, label %for.cond8.preheader.i, label %for.body.i for.cond8.preheader.i: ; preds = %for.inc6.i, %entry %cmp9.not42.i = icmp slt i64 %conv4, 2 br i1 %cmp9.not42.i, label %sieve.exit, label %for.body10.i.preheader for.body10.i.preheader: ; preds = %for.cond8.preheader.i %2 = add i64 %conv4, -1 %xtraiter = and i64 %2, 1 %3 = icmp eq i64 %conv4, 2 br i1 %3, label %sieve.exit.loopexit.unr-lcssa, label %for.body10.i.preheader.new for.body10.i.preheader.new: ; preds = %for.body10.i.preheader %unroll_iter = and i64 %2, -2 br label %for.body10.i for.body.i: ; preds = %entry, %for.inc6.i %mul39.i = phi i64 [ %mul.i, %for.inc6.i ], [ 4, %entry ] %i.037.i = phi i64 [ %inc.i, %for.inc6.i ], [ 2, %entry ] %arrayidx.i = getelementptr inbounds [1555555 x i32], ptr @isp, i64 0, i64 %i.037.i %4 = load i32, ptr %arrayidx.i, align 4, !tbaa !5 %tobool.not.i = icmp ne i32 %4, 0 %cmp3.not34.i = icmp sgt i64 %mul39.i, %conv4 %or.cond.i = or i1 %cmp3.not34.i, %tobool.not.i br i1 %or.cond.i, label %for.inc6.i, label %for.body4.i for.body4.i: ; preds = %for.body.i, %for.body4.i %j.035.i = phi i64 [ %add.i, %for.body4.i ], [ %mul39.i, %for.body.i ] %arrayidx5.i = getelementptr inbounds [1555555 x i32], ptr @isp, i64 0, i64 %j.035.i store i32 1, ptr %arrayidx5.i, align 4, !tbaa !5 %add.i = add nuw nsw i64 %j.035.i, %i.037.i %cmp3.not.i = icmp sgt i64 %add.i, %conv4 br i1 %cmp3.not.i, label %for.inc6.i, label %for.body4.i, !llvm.loop !9 for.inc6.i: ; preds = %for.body4.i, %for.body.i %inc.i = add nuw nsw i64 %i.037.i, 1 %mul.i = mul nsw i64 %inc.i, %inc.i %cmp.not.i = icmp sgt i64 %mul.i, %conv4 br i1 %cmp.not.i, label %for.cond8.preheader.i, label %for.body.i, !llvm.loop !11 for.body10.i: ; preds = %for.inc17.i.1, %for.body10.i.preheader.new %i.144.i = phi i64 [ 2, %for.body10.i.preheader.new ], [ %inc18.i.1, %for.inc17.i.1 ] %inc144143.i = phi i32 [ 0, %for.body10.i.preheader.new ], [ %inc1440.i.1, %for.inc17.i.1 ] %niter = phi i64 [ 0, %for.body10.i.preheader.new ], [ %niter.next.1, %for.inc17.i.1 ] %arrayidx11.i = getelementptr inbounds [1555555 x i32], ptr @isp, i64 0, i64 %i.144.i %5 = load i32, ptr %arrayidx11.i, align 8, !tbaa !5 %tobool12.not.i = icmp eq i32 %5, 0 br i1 %tobool12.not.i, label %if.then13.i, label %for.inc17.i if.then13.i: ; preds = %for.body10.i %inc14.i = add nsw i32 %inc144143.i, 1 store i32 %inc14.i, ptr @pc, align 4, !tbaa !5 %idxprom.i = sext i32 %inc144143.i to i64 %arrayidx15.i = getelementptr inbounds [1555555 x i64], ptr @p, i64 0, i64 %idxprom.i store i64 %i.144.i, ptr %arrayidx15.i, align 8, !tbaa !12 br label %for.inc17.i for.inc17.i: ; preds = %if.then13.i, %for.body10.i %inc1440.i = phi i32 [ %inc144143.i, %for.body10.i ], [ %inc14.i, %if.then13.i ] %inc18.i = or i64 %i.144.i, 1 %arrayidx11.i.1 = getelementptr inbounds [1555555 x i32], ptr @isp, i64 0, i64 %inc18.i %6 = load i32, ptr %arrayidx11.i.1, align 4, !tbaa !5 %tobool12.not.i.1 = icmp eq i32 %6, 0 br i1 %tobool12.not.i.1, label %if.then13.i.1, label %for.inc17.i.1 if.then13.i.1: ; preds = %for.inc17.i %inc14.i.1 = add nsw i32 %inc1440.i, 1 store i32 %inc14.i.1, ptr @pc, align 4, !tbaa !5 %idxprom.i.1 = sext i32 %inc1440.i to i64 %arrayidx15.i.1 = getelementptr inbounds [1555555 x i64], ptr @p, i64 0, i64 %idxprom.i.1 store i64 %inc18.i, ptr %arrayidx15.i.1, align 8, !tbaa !12 br label %for.inc17.i.1 for.inc17.i.1: ; preds = %if.then13.i.1, %for.inc17.i %inc1440.i.1 = phi i32 [ %inc1440.i, %for.inc17.i ], [ %inc14.i.1, %if.then13.i.1 ] %inc18.i.1 = add nuw i64 %i.144.i, 2 %niter.next.1 = add i64 %niter, 2 %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter br i1 %niter.ncmp.1, label %sieve.exit.loopexit.unr-lcssa, label %for.body10.i, !llvm.loop !14 sieve.exit.loopexit.unr-lcssa: ; preds = %for.inc17.i.1, %for.body10.i.preheader %inc1440.i.lcssa.ph = phi i32 [ undef, %for.body10.i.preheader ], [ %inc1440.i.1, %for.inc17.i.1 ] %i.144.i.unr = phi i64 [ 2, %for.body10.i.preheader ], [ %inc18.i.1, %for.inc17.i.1 ] %inc144143.i.unr = phi i32 [ 0, %for.body10.i.preheader ], [ %inc1440.i.1, %for.inc17.i.1 ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %sieve.exit, label %for.body10.i.epil for.body10.i.epil: ; preds = %sieve.exit.loopexit.unr-lcssa %arrayidx11.i.epil = getelementptr inbounds [1555555 x i32], ptr @isp, i64 0, i64 %i.144.i.unr %7 = load i32, ptr %arrayidx11.i.epil, align 4, !tbaa !5 %tobool12.not.i.epil = icmp eq i32 %7, 0 br i1 %tobool12.not.i.epil, label %if.then13.i.epil, label %sieve.exit if.then13.i.epil: ; preds = %for.body10.i.epil %inc14.i.epil = add nsw i32 %inc144143.i.unr, 1 store i32 %inc14.i.epil, ptr @pc, align 4, !tbaa !5 %idxprom.i.epil = sext i32 %inc144143.i.unr to i64 %arrayidx15.i.epil = getelementptr inbounds [1555555 x i64], ptr @p, i64 0, i64 %idxprom.i.epil store i64 %i.144.i.unr, ptr %arrayidx15.i.epil, align 8, !tbaa !12 br label %sieve.exit sieve.exit: ; preds = %sieve.exit.loopexit.unr-lcssa, %if.then13.i.epil, %for.body10.i.epil, %for.cond8.preheader.i %8 = phi i32 [ 0, %for.cond8.preheader.i ], [ %inc1440.i.lcssa.ph, %sieve.exit.loopexit.unr-lcssa ], [ %inc144143.i.unr, %for.body10.i.epil ], [ %inc14.i.epil, %if.then13.i.epil ] %9 = load i64, ptr %a, align 8, !tbaa !12 %10 = load i32, ptr %b, align 4, !tbaa !5 %conv5 = sext i32 %10 to i64 %sub = sub nsw i64 %9, %conv5 %add7 = add nsw i64 %9, %conv5 %sub.fr = freeze i64 %sub %spec.store.select = call i64 @llvm.smax.i64(i64 %sub.fr, i64 2) %sub9 = sub nsw i64 %add7, %spec.store.select %11 = trunc i64 %sub9 to i32 %conv11 = add i32 %11, 1 store i32 %conv11, ptr %b, align 4, !tbaa !5 %cmp13.not99 = icmp slt i32 %conv11, 0 br i1 %cmp13.not99, label %for.cond15.preheader, label %for.body.preheader for.body.preheader: ; preds = %sieve.exit %conv12 = zext i32 %conv11 to i64 %12 = add nuw nsw i64 %conv12, 1 %min.iters.check = icmp ult i32 %conv11, 7 br i1 %min.iters.check, label %for.body.preheader110, label %vector.ph vector.ph: ; preds = %for.body.preheader %n.vec = and i64 %12, 8589934584 br label %vector.body vector.body: ; preds = %vector.body, %vector.ph %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] %13 = getelementptr inbounds [1111110 x i32], ptr @dat, i64 0, i64 %index store <4 x i32> <i32 11111, i32 11111, i32 11111, i32 11111>, ptr %13, align 16, !tbaa !5 %14 = getelementptr inbounds i32, ptr %13, i64 4 store <4 x i32> <i32 11111, i32 11111, i32 11111, i32 11111>, ptr %14, align 16, !tbaa !5 %index.next = add nuw i64 %index, 8 %15 = icmp eq i64 %index.next, %n.vec br i1 %15, label %middle.block, label %vector.body, !llvm.loop !15 middle.block: ; preds = %vector.body %cmp.n = icmp eq i64 %12, %n.vec br i1 %cmp.n, label %for.cond15.preheader, label %for.body.preheader110 for.body.preheader110: ; preds = %for.body.preheader, %middle.block %i.0100.ph = phi i64 [ 0, %for.body.preheader ], [ %n.vec, %middle.block ] br label %for.body for.cond15.preheader: ; preds = %for.body, %middle.block, %sieve.exit %cmp16104 = icmp sgt i32 %8, 0 br i1 %cmp16104, label %for.body18.preheader, label %for.end66 for.body18.preheader: ; preds = %for.cond15.preheader %wide.trip.count = zext i32 %8 to i64 br label %for.body18 for.body: ; preds = %for.body.preheader110, %for.body %i.0100 = phi i64 [ %inc, %for.body ], [ %i.0100.ph, %for.body.preheader110 ] %arrayidx = getelementptr inbounds [1111110 x i32], ptr @dat, i64 0, i64 %i.0100 store i32 11111, ptr %arrayidx, align 4, !tbaa !5 %inc = add nuw nsw i64 %i.0100, 1 %exitcond.not = icmp eq i64 %i.0100, %conv12 br i1 %exitcond.not, label %for.cond15.preheader, label %for.body, !llvm.loop !18 for.body18: ; preds = %for.body18.preheader, %for.inc64 %indvars.iv = phi i64 [ 0, %for.body18.preheader ], [ %indvars.iv.next, %for.inc64 ] %res.0106 = phi i32 [ %conv11, %for.body18.preheader ], [ %res.1.lcssa, %for.inc64 ] %arrayidx19 = getelementptr inbounds [1555555 x i64], ptr @p, i64 0, i64 %indvars.iv %16 = load i64, ptr %arrayidx19, align 8, !tbaa !12 %17 = srem i64 %spec.store.select, %16 %mul = sub nsw i64 %spec.store.select, %17 %cmp23.not101 = icmp sgt i64 %mul, %add7 br i1 %cmp23.not101, label %for.inc64, label %for.body25 for.body25: ; preds = %for.body18, %for.inc59 %res.1103 = phi i32 [ %res.3, %for.inc59 ], [ %res.0106, %for.body18 ] %i.1102 = phi i64 [ %add62, %for.inc59 ], [ %mul, %for.body18 ] %sub26 = sub nsw i64 %i.1102, %spec.store.select %cmp27 = icmp slt i64 %sub26, 0 br i1 %cmp27, label %for.inc59, label %if.end30 if.end30: ; preds = %for.body25 %arrayidx32 = getelementptr inbounds [1111110 x i32], ptr @ok, i64 0, i64 %sub26 %18 = load i32, ptr %arrayidx32, align 4, !tbaa !5 %tobool.not = icmp eq i32 %18, 0 br i1 %tobool.not, label %while.cond.preheader, label %for.inc59 while.cond.preheader: ; preds = %if.end30 %arrayidx44 = getelementptr inbounds [1111110 x i32], ptr @dat, i64 0, i64 %sub26 %.pre.pre = load i32, ptr %arrayidx44, align 4, !tbaa !5 br label %while.cond while.cond: ; preds = %while.cond.preheader, %while.body %v.0 = phi i64 [ %div41, %while.body ], [ %i.1102, %while.cond.preheader ] %c.0 = phi i32 [ %inc42, %while.body ], [ 0, %while.cond.preheader ] %rem = srem i64 %v.0, %16 %div41 = sdiv i64 %v.0, %16 %cmp37 = icmp eq i64 %rem, 0 br i1 %cmp37, label %while.body, label %while.end while.body: ; preds = %while.cond %inc42 = add nuw nsw i32 %c.0, 1 %cmp45.not = icmp sgt i32 %.pre.pre, %c.0 br i1 %cmp45.not, label %while.cond, label %while.end, !llvm.loop !19 while.end: ; preds = %while.body, %while.cond %c.1 = phi i32 [ %inc42, %while.body ], [ %c.0, %while.cond ] %cmp51 = icmp slt i32 %.pre.pre, %c.1 br i1 %cmp51, label %if.then53, label %if.end56 if.then53: ; preds = %while.end %dec = add nsw i32 %res.1103, -1 store i32 1, ptr %arrayidx32, align 4, !tbaa !5 br label %if.end56 if.end56: ; preds = %if.then53, %while.end %res.2 = phi i32 [ %dec, %if.then53 ], [ %res.1103, %while.end ] store i32 %c.1, ptr %arrayidx44, align 4, !tbaa !5 br label %for.inc59 for.inc59: ; preds = %if.end30, %for.body25, %if.end56 %res.3 = phi i32 [ %res.1103, %for.body25 ], [ %res.1103, %if.end30 ], [ %res.2, %if.end56 ] %add62 = add nsw i64 %i.1102, %16 %cmp23.not = icmp sgt i64 %add62, %add7 br i1 %cmp23.not, label %for.inc64, label %for.body25, !llvm.loop !20 for.inc64: ; preds = %for.inc59, %for.body18 %res.1.lcssa = phi i32 [ %res.0106, %for.body18 ], [ %res.3, %for.inc59 ] %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %exitcond109.not = icmp eq i64 %indvars.iv.next, %wide.trip.count br i1 %exitcond109.not, label %for.end66, label %for.body18, !llvm.loop !21 for.end66: ; preds = %for.inc64, %for.cond15.preheader %res.0.lcssa = phi i32 [ %conv11, %for.cond15.preheader ], [ %res.1.lcssa, %for.inc64 ] %call67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %res.0.lcssa) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #6 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %a) #6 ret i32 0 } ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: mustprogress nofree nounwind willreturn memory(write) declare double @sqrt(double noundef) local_unnamed_addr #4 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i64 @llvm.smax.i64(i64, i64) #5 attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #6 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10} !12 = !{!13, !13, i64 0} !13 = !{!"long long", !7, i64 0} !14 = distinct !{!14, !10} !15 = distinct !{!15, !10, !16, !17} !16 = !{!"llvm.loop.isvectorized", i32 1} !17 = !{!"llvm.loop.unroll.runtime.disable"} !18 = distinct !{!18, !10, !17, !16} !19 = distinct !{!19, !10} !20 = distinct !{!20, !10} !21 = distinct !{!21, !10}
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int descending_compare(const void *a, const void *b){ if (*(int*)a > *(int*)b){ return -1; }else if (*(int*)a == *(int*)b){ return 0; }else{ return 1; } } int ascending_compare(const void *a, const void *b){ if (*(int*)a < *(int*)b){ return -1; }else if (*(int*)a == *(int*)b){ return 0; }else{ return 1; } } int lower_bound(int *a, int n, int key){ int left, mid, right; left = 0, right = n; mid = (left + right)/2; while ((left+1 != mid || mid+1 != right) && mid != left){ if (key > a[mid]){ left = mid; }else{ right = mid+1; } mid = (left + right)/2; } if (a[left] >= key)return left; if (a[mid] >= key)return mid; if (a[right] >= key)return right; return n; } //greatest common divisor unsigned long gcd(unsigned long x, unsigned long y){ if (y == 0){ return x; }else if (x > y){ return gcd(y, x % y); }else{ return gcd(x, y % x); } } long long factorial(int x){ long long rtn = 1; int i; for (i = x; i > 1; i--){ rtn = (rtn*i); } return rtn; } int head[100005]; int next[400005]; int to[400005]; int weight[400005]; int v[400005] = {0}; int visited[400005] = {0}; int dfs(int crt){ // printf("called crt = %d", crt); int e; int result = 0; e = head[crt]; while (e != -1){ if (visited[to[e]] == 0){ visited[to[e]] = 1; v[to[e]] = v[crt] + weight[e]; result = dfs(to[e]); } if (result == 1) return result; if (v[to[e]] != v[crt] + weight[e]) return 1; e = next[e]; } return result; } int main(void){ for (int i = 0; i < 200005; i++){ head[i] = -1; } int n, m; int l, r, d; int cnt = 0; scanf("%d %d", &n, &m); for (int i = 0; i < m; i++){ scanf("%d %d %d", &l, &r, &d); next[cnt] = head[l]; head[l] = cnt; to[cnt] = r; weight[cnt] = d; cnt++; next[cnt] = head[r]; head[r] = cnt; to[cnt] = l; weight[cnt] = -1*d; cnt++; } for (int i = 0; i < n; i++){ if(dfs(i)){ printf("No\n"); return 0; } } printf("Yes\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135529/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135529/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" @v = dso_local local_unnamed_addr global [400005 x i32] zeroinitializer, align 16 @visited = dso_local local_unnamed_addr global [400005 x i32] zeroinitializer, align 16 @head = dso_local local_unnamed_addr global [100005 x i32] zeroinitializer, align 16 @to = dso_local local_unnamed_addr global [400005 x i32] zeroinitializer, align 16 @weight = dso_local local_unnamed_addr global [400005 x i32] zeroinitializer, align 16 @next = dso_local local_unnamed_addr global [400005 x i32] zeroinitializer, align 16 @.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1 @.str.1 = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.4 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @descending_compare(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #0 { entry: %0 = load i32, ptr %a, align 4, !tbaa !5 %1 = load i32, ptr %b, align 4, !tbaa !5 %cmp = icmp sgt i32 %0, %1 %cmp1 = icmp ne i32 %0, %1 %. = zext i1 %cmp1 to i32 %retval.0 = select i1 %cmp, i32 -1, i32 %. ret i32 %retval.0 } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @ascending_compare(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #0 { entry: %0 = load i32, ptr %a, align 4, !tbaa !5 %1 = load i32, ptr %b, align 4, !tbaa !5 %cmp = icmp slt i32 %0, %1 %cmp1 = icmp ne i32 %0, %1 %. = zext i1 %cmp1 to i32 %retval.0 = select i1 %cmp, i32 -1, i32 %. ret i32 %retval.0 } ; Function Attrs: nofree norecurse nosync nounwind memory(argmem: read) uwtable define dso_local i32 @lower_bound(ptr nocapture noundef readonly %a, i32 noundef %n, i32 noundef %key) local_unnamed_addr #1 { entry: %mid.050 = sdiv i32 %n, 2 %0 = and i32 %n, -2 %cmp.not51 = icmp eq i32 %0, 2 %add252 = add nsw i32 %mid.050, 1 %cmp3.not53 = icmp eq i32 %add252, %n %or.cond54 = select i1 %cmp.not51, i1 %cmp3.not53, i1 false %n.off = add i32 %n, 1 %cmp4.not55 = icmp ult i32 %n.off, 3 %or.cond4956 = or i1 %cmp4.not55, %or.cond54 br i1 %or.cond4956, label %while.end, label %while.body while.body: ; preds = %entry, %while.body %add260 = phi i32 [ %add2, %while.body ], [ %add252, %entry ] %mid.059 = phi i32 [ %mid.0, %while.body ], [ %mid.050, %entry ] %right.058 = phi i32 [ %right.1, %while.body ], [ %n, %entry ] %left.057 = phi i32 [ %left.1, %while.body ], [ 0, %entry ] %idxprom = sext i32 %mid.059 to i64 %arrayidx = getelementptr inbounds i32, ptr %a, i64 %idxprom %1 = load i32, ptr %arrayidx, align 4, !tbaa !5 %cmp5 = icmp slt i32 %1, %key %left.1 = select i1 %cmp5, i32 %mid.059, i32 %left.057 %right.1 = select i1 %cmp5, i32 %right.058, i32 %add260 %add7 = add nsw i32 %left.1, %right.1 %mid.0 = sdiv i32 %add7, 2 %add1 = add nsw i32 %left.1, 1 %cmp.not = icmp eq i32 %add1, %mid.0 %add2 = add nsw i32 %mid.0, 1 %cmp3.not = icmp eq i32 %add2, %right.1 %or.cond = select i1 %cmp.not, i1 %cmp3.not, i1 false %cmp4.not = icmp eq i32 %mid.0, %left.1 %or.cond49 = or i1 %cmp4.not, %or.cond br i1 %or.cond49, label %while.end, label %while.body, !llvm.loop !9 while.end: ; preds = %while.body, %entry %left.0.lcssa = phi i32 [ 0, %entry ], [ %left.1, %while.body ] %right.0.lcssa = phi i32 [ %n, %entry ], [ %right.1, %while.body ] %mid.0.lcssa = phi i32 [ %mid.050, %entry ], [ %mid.0, %while.body ] %idxprom9 = sext i32 %left.0.lcssa to i64 %arrayidx10 = getelementptr inbounds i32, ptr %a, i64 %idxprom9 %2 = load i32, ptr %arrayidx10, align 4, !tbaa !5 %cmp11.not = icmp slt i32 %2, %key br i1 %cmp11.not, label %if.end13, label %cleanup if.end13: ; preds = %while.end %idxprom14 = sext i32 %mid.0.lcssa to i64 %arrayidx15 = getelementptr inbounds i32, ptr %a, i64 %idxprom14 %3 = load i32, ptr %arrayidx15, align 4, !tbaa !5 %cmp16.not = icmp slt i32 %3, %key br i1 %cmp16.not, label %if.end18, label %cleanup if.end18: ; preds = %if.end13 %idxprom19 = sext i32 %right.0.lcssa to i64 %arrayidx20 = getelementptr inbounds i32, ptr %a, i64 %idxprom19 %4 = load i32, ptr %arrayidx20, align 4, !tbaa !5 %cmp21.not = icmp slt i32 %4, %key %n.right.0 = select i1 %cmp21.not, i32 %n, i32 %right.0.lcssa br label %cleanup cleanup: ; preds = %if.end18, %if.end13, %while.end %retval.0 = phi i32 [ %left.0.lcssa, %while.end ], [ %mid.0.lcssa, %if.end13 ], [ %n.right.0, %if.end18 ] ret i32 %retval.0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i64 @gcd(i64 noundef %x, i64 noundef %y) local_unnamed_addr #3 { entry: %cmp1518 = icmp eq i64 %y, 0 br i1 %cmp1518, label %return, label %if.else.lr.ph if.else.lr.ph: ; preds = %entry, %if.then2 %y.tr.ph20 = phi i64 [ %rem, %if.then2 ], [ %y, %entry ] %x.tr.ph19 = phi i64 [ %y.tr16, %if.then2 ], [ %x, %entry ] br label %if.else if.else: ; preds = %if.else.lr.ph, %if.else3 %y.tr16 = phi i64 [ %y.tr.ph20, %if.else.lr.ph ], [ %rem4, %if.else3 ] %cmp1 = icmp ugt i64 %x.tr.ph19, %y.tr16 br i1 %cmp1, label %if.then2, label %if.else3 if.then2: ; preds = %if.else %rem = urem i64 %x.tr.ph19, %y.tr16 %cmp15 = icmp eq i64 %rem, 0 br i1 %cmp15, label %return, label %if.else.lr.ph if.else3: ; preds = %if.else %rem4 = urem i64 %y.tr16, %x.tr.ph19 %cmp = icmp eq i64 %rem4, 0 br i1 %cmp, label %return, label %if.else return: ; preds = %if.then2, %if.else3, %entry %x.tr.ph.lcssa = phi i64 [ %x, %entry ], [ %x.tr.ph19, %if.else3 ], [ %y.tr16, %if.then2 ] ret i64 %x.tr.ph.lcssa } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i64 @factorial(i32 noundef %x) local_unnamed_addr #3 { entry: %cmp4 = icmp sgt i32 %x, 1 br i1 %cmp4, label %for.body.preheader, label %for.end for.body.preheader: ; preds = %entry %0 = zext i32 %x to i64 br label %for.body for.body: ; preds = %for.body.preheader, %for.body %indvars.iv = phi i64 [ %0, %for.body.preheader ], [ %indvars.iv.next, %for.body ] %rtn.05 = phi i64 [ 1, %for.body.preheader ], [ %mul, %for.body ] %mul = mul nsw i64 %rtn.05, %indvars.iv %indvars.iv.next = add nsw i64 %indvars.iv, -1 %cmp = icmp ugt i64 %indvars.iv, 2 br i1 %cmp, label %for.body, label %for.end, !llvm.loop !11 for.end: ; preds = %for.body, %entry %rtn.0.lcssa = phi i64 [ 1, %entry ], [ %mul, %for.body ] ret i64 %rtn.0.lcssa } ; Function Attrs: nofree nosync nounwind memory(readwrite, argmem: none, inaccessiblemem: none) uwtable define dso_local i32 @dfs(i32 noundef %crt) local_unnamed_addr #4 { entry: %idxprom = sext i32 %crt to i64 %arrayidx = getelementptr inbounds [100005 x i32], ptr @head, i64 0, i64 %idxprom %e.052 = load i32, ptr %arrayidx, align 4, !tbaa !5 %cmp.not53 = icmp eq i32 %e.052, -1 br i1 %cmp.not53, label %cleanup, label %while.body.lr.ph while.body.lr.ph: ; preds = %entry %arrayidx11 = getelementptr inbounds [400005 x i32], ptr @v, i64 0, i64 %idxprom %.pre58.pre = load i32, ptr %arrayidx11, align 4, !tbaa !5 br label %while.body while.body: ; preds = %while.body.lr.ph, %if.end34 %.pre58 = phi i32 [ %.pre58.pre, %while.body.lr.ph ], [ %.pre5859, %if.end34 ] %e.054 = phi i32 [ %e.052, %while.body.lr.ph ], [ %e.0, %if.end34 ] %idxprom1 = sext i32 %e.054 to i64 %arrayidx2 = getelementptr inbounds [400005 x i32], ptr @to, i64 0, i64 %idxprom1 %0 = load i32, ptr %arrayidx2, align 4, !tbaa !5 %idxprom3 = sext i32 %0 to i64 %arrayidx4 = getelementptr inbounds [400005 x i32], ptr @visited, i64 0, i64 %idxprom3 %1 = load i32, ptr %arrayidx4, align 4, !tbaa !5 %cmp5 = icmp eq i32 %1, 0 br i1 %cmp5, label %if.end, label %if.end22 if.end: ; preds = %while.body store i32 1, ptr %arrayidx4, align 4, !tbaa !5 %arrayidx13 = getelementptr inbounds [400005 x i32], ptr @weight, i64 0, i64 %idxprom1 %2 = load i32, ptr %arrayidx13, align 4, !tbaa !5 %add = add nsw i32 %2, %.pre58 %arrayidx17 = getelementptr inbounds [400005 x i32], ptr @v, i64 0, i64 %idxprom3 store i32 %add, ptr %arrayidx17, align 4, !tbaa !5 %call = tail call i32 @dfs(i32 noundef %0), !range !12 %cmp20.not = icmp eq i32 %call, 0 br i1 %cmp20.not, label %if.end.if.end22_crit_edge, label %cleanup if.end.if.end22_crit_edge: ; preds = %if.end %.pre = load i32, ptr %arrayidx2, align 4, !tbaa !5 %.pre57 = load i32, ptr %arrayidx11, align 4, !tbaa !5 %.pre61 = sext i32 %.pre to i64 br label %if.end22 if.end22: ; preds = %if.end.if.end22_crit_edge, %while.body %idxprom25.pre-phi = phi i64 [ %.pre61, %if.end.if.end22_crit_edge ], [ %idxprom3, %while.body ] %.pre5859 = phi i32 [ %.pre57, %if.end.if.end22_crit_edge ], [ %.pre58, %while.body ] %arrayidx26 = getelementptr inbounds [400005 x i32], ptr @v, i64 0, i64 %idxprom25.pre-phi %3 = load i32, ptr %arrayidx26, align 4, !tbaa !5 %arrayidx30 = getelementptr inbounds [400005 x i32], ptr @weight, i64 0, i64 %idxprom1 %4 = load i32, ptr %arrayidx30, align 4, !tbaa !5 %add31 = add nsw i32 %4, %.pre5859 %cmp32.not = icmp eq i32 %3, %add31 br i1 %cmp32.not, label %if.end34, label %cleanup if.end34: ; preds = %if.end22 %arrayidx36 = getelementptr inbounds [400005 x i32], ptr @next, i64 0, i64 %idxprom1 %e.0 = load i32, ptr %arrayidx36, align 4, !tbaa !5 %cmp.not = icmp eq i32 %e.0, -1 br i1 %cmp.not, label %cleanup, label %while.body, !llvm.loop !13 cleanup: ; preds = %if.end, %if.end22, %if.end34, %entry %retval.0 = phi i32 [ 0, %entry ], [ 0, %if.end34 ], [ 1, %if.end22 ], [ 1, %if.end ] ret i32 %retval.0 } ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #5 { entry: %n = alloca i32, align 4 %m = alloca i32, align 4 %l = alloca i32, align 4 %r = alloca i32, align 4 %d = alloca i32, align 4 tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(800020) @head, i8 -1, i64 800020, i1 false), !tbaa !5 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #9 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #9 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %l) #9 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #9 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %d) #9 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %m) %0 = load i32, ptr %m, align 4, !tbaa !5 %cmp365 = icmp sgt i32 %0, 0 br i1 %cmp365, label %for.body5, label %for.cond33.preheader for.cond33.preheader: ; preds = %for.body5, %entry %1 = load i32, ptr %n, align 4, !tbaa !5 %cmp34.not68 = icmp sgt i32 %1, 0 br i1 %cmp34.not68, label %for.body36, label %cleanup43 for.body5: ; preds = %entry, %for.body5 %indvars.iv = phi i64 [ %indvars.iv.next, %for.body5 ], [ 0, %entry ] %i1.067 = phi i32 [ %inc30, %for.body5 ], [ 0, %entry ] %call6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %l, ptr noundef nonnull %r, ptr noundef nonnull %d) %2 = load i32, ptr %l, align 4, !tbaa !5 %idxprom7 = sext i32 %2 to i64 %arrayidx8 = getelementptr inbounds [100005 x i32], ptr @head, i64 0, i64 %idxprom7 %3 = load i32, ptr %arrayidx8, align 4, !tbaa !5 %arrayidx10 = getelementptr inbounds [400005 x i32], ptr @next, i64 0, i64 %indvars.iv store i32 %3, ptr %arrayidx10, align 8, !tbaa !5 %4 = trunc i64 %indvars.iv to i32 store i32 %4, ptr %arrayidx8, align 4, !tbaa !5 %5 = load i32, ptr %r, align 4, !tbaa !5 %arrayidx14 = getelementptr inbounds [400005 x i32], ptr @to, i64 0, i64 %indvars.iv store i32 %5, ptr %arrayidx14, align 8, !tbaa !5 %6 = load i32, ptr %d, align 4, !tbaa !5 %arrayidx16 = getelementptr inbounds [400005 x i32], ptr @weight, i64 0, i64 %indvars.iv store i32 %6, ptr %arrayidx16, align 8, !tbaa !5 %7 = or i64 %indvars.iv, 1 %idxprom18 = sext i32 %5 to i64 %arrayidx19 = getelementptr inbounds [100005 x i32], ptr @head, i64 0, i64 %idxprom18 %8 = load i32, ptr %arrayidx19, align 4, !tbaa !5 %arrayidx21 = getelementptr inbounds [400005 x i32], ptr @next, i64 0, i64 %7 store i32 %8, ptr %arrayidx21, align 4, !tbaa !5 %9 = trunc i64 %7 to i32 store i32 %9, ptr %arrayidx19, align 4, !tbaa !5 %arrayidx25 = getelementptr inbounds [400005 x i32], ptr @to, i64 0, i64 %7 store i32 %2, ptr %arrayidx25, align 4, !tbaa !5 %mul = sub nsw i32 0, %6 %arrayidx27 = getelementptr inbounds [400005 x i32], ptr @weight, i64 0, i64 %7 store i32 %mul, ptr %arrayidx27, align 4, !tbaa !5 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2 %inc30 = add nuw nsw i32 %i1.067, 1 %10 = load i32, ptr %m, align 4, !tbaa !5 %cmp3 = icmp slt i32 %inc30, %10 br i1 %cmp3, label %for.body5, label %for.cond33.preheader, !llvm.loop !14 for.cond33: ; preds = %for.body36 %inc40 = add nuw nsw i32 %i32.069, 1 %11 = load i32, ptr %n, align 4, !tbaa !5 %cmp34.not = icmp slt i32 %inc40, %11 br i1 %cmp34.not, label %for.body36, label %cleanup43, !llvm.loop !15 for.body36: ; preds = %for.cond33.preheader, %for.cond33 %i32.069 = phi i32 [ %inc40, %for.cond33 ], [ 0, %for.cond33.preheader ] %call37 = call i32 @dfs(i32 noundef %i32.069), !range !12 %tobool.not = icmp eq i32 %call37, 0 br i1 %tobool.not, label %for.cond33, label %cleanup43 cleanup43: ; preds = %for.cond33, %for.body36, %for.cond33.preheader %str.sink = phi ptr [ @str.4, %for.cond33.preheader ], [ @str, %for.body36 ], [ @str.4, %for.cond33 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %d) #9 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #9 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %l) #9 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %m) #9 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #9 ret i32 0 } ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #6 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #7 ; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8 attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nofree norecurse nosync nounwind memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #3 = { nofree norecurse nosync nounwind memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { nofree nosync nounwind memory(readwrite, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #5 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #6 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #7 = { nofree nounwind } attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: write) } attributes #9 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10} !12 = !{i32 0, i32 2} !13 = distinct !{!13, !10} !14 = distinct !{!14, !10} !15 = distinct !{!15, !10}
#include <stdio.h> int main(){ int N,X,T; scanf("%d %d %d",&N,&X,&T); printf("%d\n",(N+X-1)/X*T); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135572/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135572/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 [9 x i8] c"%d %d %d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %N = alloca i32, align 4 %X = alloca i32, align 4 %T = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %X) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %T) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N, ptr noundef nonnull %X, ptr noundef nonnull %T) %0 = load i32, ptr %N, align 4, !tbaa !5 %1 = load i32, ptr %X, align 4, !tbaa !5 %add = add i32 %0, -1 %sub = add i32 %add, %1 %div = sdiv i32 %sub, %1 %2 = load i32, ptr %T, align 4, !tbaa !5 %mul = mul nsw i32 %2, %div %call1 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %T) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %X) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(){ int X, T, N; scanf("%d",&N); scanf("%d",&X); scanf("%d",&T); if(N%X == 0){ printf("%d", (N/X)*T); } else{ printf("%d", (N/X)*T + T); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135622/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135622/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 [3 x i8] c"%d\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %X = alloca i32, align 4 %T = alloca i32, align 4 %N = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %X) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %T) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N) %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %X) %call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %T) %0 = load i32, ptr %N, align 4, !tbaa !5 %1 = load i32, ptr %X, align 4, !tbaa !5 %rem = srem i32 %0, %1 %cmp = icmp ne i32 %rem, 0 %div = sdiv i32 %0, %1 %2 = load i32, ptr %T, align 4, !tbaa !5 %mul57 = zext i1 %cmp to i32 %add.sink.v = add i32 %div, %mul57 %add.sink = mul i32 %2, %add.sink.v %call6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %add.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %T) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %X) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> int main(){ int N,X,T,cnt=1; scanf("%d%d%d",&N,&X,&T); while((N-X)>0){ N-=X; cnt++; } printf("%d\n",(T*cnt)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135666/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135666/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 [7 x i8] c"%d%d%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %N = alloca i32, align 4 %X = alloca i32, align 4 %T = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %X) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %T) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N, ptr noundef nonnull %X, ptr noundef nonnull %T) %0 = load i32, ptr %X, align 4, !tbaa !5 %N.promoted = load i32, ptr %N, align 4, !tbaa !5 %sub5 = sub nsw i32 %N.promoted, %0 %cmp6 = icmp sgt i32 %sub5, 0 br i1 %cmp6, label %while.body, label %while.end while.body: ; preds = %entry, %while.body %sub8 = phi i32 [ %sub, %while.body ], [ %sub5, %entry ] %cnt.07 = phi i32 [ %inc, %while.body ], [ 1, %entry ] %inc = add nuw nsw i32 %cnt.07, 1 %sub = sub nsw i32 %sub8, %0 %cmp = icmp sgt i32 %sub, 0 br i1 %cmp, label %while.body, label %while.cond.while.end_crit_edge, !llvm.loop !9 while.cond.while.end_crit_edge: ; preds = %while.body store i32 %sub8, ptr %N, align 4, !tbaa !5 br label %while.end while.end: ; preds = %while.cond.while.end_crit_edge, %entry %cnt.0.lcssa = phi i32 [ %inc, %while.cond.while.end_crit_edge ], [ 1, %entry ] %1 = load i32, ptr %T, align 4, !tbaa !5 %mul = mul nsw i32 %1, %cnt.0.lcssa %call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %T) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %X) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"}
#include<stdio.h> int main(void){ int n,x,t,i; scanf("%d %d %d",&n,&x,&t); for(i=1;;i++){ n-=x; if(n<=0){ break; } } printf("%d",i*t); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135709/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135709/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 [9 x i8] c"%d %d %d\00", align 1 @.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 %x = alloca i32, align 4 %t = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %t) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %x, ptr noundef nonnull %t) %0 = load i32, ptr %x, align 4, !tbaa !5 %n.promoted = load i32, ptr %n, align 4, !tbaa !5 br label %for.cond for.cond: ; preds = %for.cond, %entry %sub3 = phi i32 [ %n.promoted, %entry ], [ %sub, %for.cond ] %i.0 = phi i32 [ 1, %entry ], [ %inc, %for.cond ] %sub = sub nsw i32 %sub3, %0 %cmp = icmp slt i32 %sub, 1 %inc = add nuw nsw i32 %i.0, 1 br i1 %cmp, label %for.end, label %for.cond for.end: ; preds = %for.cond store i32 %sub, ptr %n, align 4, !tbaa !5 %1 = load i32, ptr %t, align 4, !tbaa !5 %mul = mul nsw i32 %1, %i.0 %call1 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %t) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> int main() { int n,k,l,i; int arr[2001]; scanf("%d %d",&n,&k); for(i=0;i<n;i++) { scanf("%d",&arr[i]); } k=5-k; l=0; for(i=0;i<n;i++) { if(arr[i]<=k) { l++; } } printf("%d\n",l/3); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13576/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13576/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 [6 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 [4 x i8] c"%d\0A\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 %k = alloca i32, align 4 %arr = alloca [2001 x i32], align 16 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %k) #4 call void @llvm.lifetime.start.p0(i64 8004, ptr nonnull %arr) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %k) %0 = load i32, ptr %n, align 4, !tbaa !5 %cmp19 = icmp sgt i32 %0, 0 br i1 %cmp19, label %for.body, label %for.end.thread for.end.thread: ; preds = %entry %1 = load i32, ptr %k, align 4, !tbaa !5 %sub31 = sub nsw i32 5, %1 store i32 %sub31, ptr %k, align 4, !tbaa !5 br label %for.end11 for.body: ; preds = %entry, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ] %arrayidx = getelementptr inbounds [2001 x i32], ptr %arr, i64 0, i64 %indvars.iv %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %2 = load i32, ptr %n, align 4, !tbaa !5 %3 = sext i32 %2 to i64 %cmp = icmp slt i64 %indvars.iv.next, %3 br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9 for.end: ; preds = %for.body %4 = load i32, ptr %k, align 4, !tbaa !5 %sub = sub nsw i32 5, %4 store i32 %sub, ptr %k, align 4, !tbaa !5 %cmp321 = icmp sgt i32 %2, 0 br i1 %cmp321, label %for.body4.preheader, label %for.end11 for.body4.preheader: ; preds = %for.end %wide.trip.count = zext i32 %2 to i64 %min.iters.check = icmp ult i32 %2, 8 br i1 %min.iters.check, label %for.body4.preheader35, label %vector.ph vector.ph: ; preds = %for.body4.preheader %n.vec = and i64 %wide.trip.count, 4294967288 %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %sub, i64 0 %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer br label %vector.body vector.body: ; preds = %vector.body, %vector.ph %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %11, %vector.body ] %vec.phi33 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %12, %vector.body ] %5 = getelementptr inbounds [2001 x i32], ptr %arr, i64 0, i64 %index %wide.load = load <4 x i32>, ptr %5, align 16, !tbaa !5 %6 = getelementptr inbounds i32, ptr %5, i64 4 %wide.load34 = load <4 x i32>, ptr %6, align 16, !tbaa !5 %7 = icmp sle <4 x i32> %wide.load, %broadcast.splat %8 = icmp sle <4 x i32> %wide.load34, %broadcast.splat %9 = zext <4 x i1> %7 to <4 x i32> %10 = zext <4 x i1> %8 to <4 x i32> %11 = add <4 x i32> %vec.phi, %9 %12 = add <4 x i32> %vec.phi33, %10 %index.next = add nuw i64 %index, 8 %13 = icmp eq i64 %index.next, %n.vec br i1 %13, label %middle.block, label %vector.body, !llvm.loop !11 middle.block: ; preds = %vector.body %bin.rdx = add <4 x i32> %12, %11 %14 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx) %cmp.n = icmp eq i64 %n.vec, %wide.trip.count br i1 %cmp.n, label %for.end11.loopexit, label %for.body4.preheader35 for.body4.preheader35: ; preds = %for.body4.preheader, %middle.block %indvars.iv27.ph = phi i64 [ 0, %for.body4.preheader ], [ %n.vec, %middle.block ] %l.022.ph = phi i32 [ 0, %for.body4.preheader ], [ %14, %middle.block ] br label %for.body4 for.body4: ; preds = %for.body4.preheader35, %for.body4 %indvars.iv27 = phi i64 [ %indvars.iv.next28, %for.body4 ], [ %indvars.iv27.ph, %for.body4.preheader35 ] %l.022 = phi i32 [ %spec.select, %for.body4 ], [ %l.022.ph, %for.body4.preheader35 ] %arrayidx6 = getelementptr inbounds [2001 x i32], ptr %arr, i64 0, i64 %indvars.iv27 %15 = load i32, ptr %arrayidx6, align 4, !tbaa !5 %cmp7.not = icmp sle i32 %15, %sub %inc8 = zext i1 %cmp7.not to i32 %spec.select = add nuw nsw i32 %l.022, %inc8 %indvars.iv.next28 = add nuw nsw i64 %indvars.iv27, 1 %exitcond.not = icmp eq i64 %indvars.iv.next28, %wide.trip.count br i1 %exitcond.not, label %for.end11.loopexit, label %for.body4, !llvm.loop !14 for.end11.loopexit: ; preds = %for.body4, %middle.block %spec.select.lcssa = phi i32 [ %14, %middle.block ], [ %spec.select, %for.body4 ] %16 = udiv i32 %spec.select.lcssa, 3 br label %for.end11 for.end11: ; preds = %for.end.thread, %for.end11.loopexit, %for.end %l.0.lcssa = phi i32 [ 0, %for.end ], [ %16, %for.end11.loopexit ], [ 0, %for.end.thread ] %call12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %l.0.lcssa) call void @llvm.lifetime.end.p0(i64 8004, ptr nonnull %arr) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %k) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10, !12, !13} !12 = !{!"llvm.loop.isvectorized", i32 1} !13 = !{!"llvm.loop.unroll.runtime.disable"} !14 = distinct !{!14, !10, !13, !12}
#include<stdio.h> int main() { int n; scanf("%d",&n); int th[n]; int ta[n]; int ansh[n]; int ansa[n]; int home[100001]={0}; int i=0; for(i=0;i<n;i++) { scanf("%d%d",&th[i],&ta[i]); home[th[i]]=home[th[i]]+1; ansh[i]=n-1; ansa[i]=n-1; } for(i=0;i<n;i++) { int hold=home[ta[i]]; ansh[i]=ansh[i]+hold; ansa[i]=ansa[i]-hold; } for(i=0;i<n;i++) { printf("%d %d\n",ansh[i],ansa[i]); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13581/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13581/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [5 x i8] c"%d%d\00", align 1 @.str.2 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 %home = alloca [100001 x i32], align 16 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #5 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %1 = zext i32 %0 to i64 %2 = call ptr @llvm.stacksave.p0() %vla = alloca i32, i64 %1, align 16 %3 = load i32, ptr %n, align 4, !tbaa !5 %4 = zext i32 %3 to i64 %vla1 = alloca i32, i64 %4, align 16 %vla2 = alloca i32, i64 %4, align 16 %vla3 = alloca i32, i64 %4, align 16 call void @llvm.lifetime.start.p0(i64 400004, ptr nonnull %home) #5 call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400004) %home, i8 0, i64 400004, i1 false) %cmp70 = icmp sgt i32 %3, 0 br i1 %cmp70, label %for.body, label %for.end50 for.cond20.preheader: ; preds = %for.body %cmp2172 = icmp sgt i32 %8, 0 br i1 %cmp2172, label %for.body22.preheader, label %for.end50 for.body22.preheader: ; preds = %for.cond20.preheader %wide.trip.count = zext i32 %8 to i64 %xtraiter = and i64 %wide.trip.count, 1 %5 = icmp eq i32 %8, 1 br i1 %5, label %for.cond40.preheader.unr-lcssa, label %for.body22.preheader.new for.body22.preheader.new: ; preds = %for.body22.preheader %unroll_iter = and i64 %wide.trip.count, 4294967294 br label %for.body22 for.body: ; preds = %entry, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ] %arrayidx = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv %arrayidx5 = getelementptr inbounds i32, ptr %vla1, i64 %indvars.iv %call6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx, ptr noundef nonnull %arrayidx5) %6 = load i32, ptr %arrayidx, align 4, !tbaa !5 %idxprom9 = sext i32 %6 to i64 %arrayidx10 = getelementptr inbounds [100001 x i32], ptr %home, i64 0, i64 %idxprom9 %7 = load i32, ptr %arrayidx10, align 4, !tbaa !5 %add = add nsw i32 %7, 1 store i32 %add, ptr %arrayidx10, align 4, !tbaa !5 %8 = load i32, ptr %n, align 4, !tbaa !5 %sub = add nsw i32 %8, -1 %arrayidx16 = getelementptr inbounds i32, ptr %vla2, i64 %indvars.iv store i32 %sub, ptr %arrayidx16, align 4, !tbaa !5 %arrayidx19 = getelementptr inbounds i32, ptr %vla3, i64 %indvars.iv store i32 %sub, ptr %arrayidx19, align 4, !tbaa !5 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %9 = sext i32 %8 to i64 %cmp = icmp slt i64 %indvars.iv.next, %9 br i1 %cmp, label %for.body, label %for.cond20.preheader, !llvm.loop !9 for.cond40.preheader.unr-lcssa: ; preds = %for.body22, %for.body22.preheader %indvars.iv78.unr = phi i64 [ 0, %for.body22.preheader ], [ %indvars.iv.next79.1, %for.body22 ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %for.cond40.preheader, label %for.body22.epil for.body22.epil: ; preds = %for.cond40.preheader.unr-lcssa %arrayidx24.epil = getelementptr inbounds i32, ptr %vla1, i64 %indvars.iv78.unr %10 = load i32, ptr %arrayidx24.epil, align 4, !tbaa !5 %idxprom25.epil = sext i32 %10 to i64 %arrayidx26.epil = getelementptr inbounds [100001 x i32], ptr %home, i64 0, i64 %idxprom25.epil %11 = load i32, ptr %arrayidx26.epil, align 4, !tbaa !5 %arrayidx28.epil = getelementptr inbounds i32, ptr %vla2, i64 %indvars.iv78.unr %12 = load i32, ptr %arrayidx28.epil, align 4, !tbaa !5 %add29.epil = add nsw i32 %12, %11 store i32 %add29.epil, ptr %arrayidx28.epil, align 4, !tbaa !5 %arrayidx33.epil = getelementptr inbounds i32, ptr %vla3, i64 %indvars.iv78.unr %13 = load i32, ptr %arrayidx33.epil, align 4, !tbaa !5 %sub34.epil = sub nsw i32 %13, %11 store i32 %sub34.epil, ptr %arrayidx33.epil, align 4, !tbaa !5 br label %for.cond40.preheader for.cond40.preheader: ; preds = %for.cond40.preheader.unr-lcssa, %for.body22.epil br i1 %cmp2172, label %for.body42, label %for.end50 for.body22: ; preds = %for.body22, %for.body22.preheader.new %indvars.iv78 = phi i64 [ 0, %for.body22.preheader.new ], [ %indvars.iv.next79.1, %for.body22 ] %niter = phi i64 [ 0, %for.body22.preheader.new ], [ %niter.next.1, %for.body22 ] %arrayidx24 = getelementptr inbounds i32, ptr %vla1, i64 %indvars.iv78 %14 = load i32, ptr %arrayidx24, align 8, !tbaa !5 %idxprom25 = sext i32 %14 to i64 %arrayidx26 = getelementptr inbounds [100001 x i32], ptr %home, i64 0, i64 %idxprom25 %15 = load i32, ptr %arrayidx26, align 4, !tbaa !5 %arrayidx28 = getelementptr inbounds i32, ptr %vla2, i64 %indvars.iv78 %16 = load i32, ptr %arrayidx28, align 8, !tbaa !5 %add29 = add nsw i32 %16, %15 store i32 %add29, ptr %arrayidx28, align 8, !tbaa !5 %arrayidx33 = getelementptr inbounds i32, ptr %vla3, i64 %indvars.iv78 %17 = load i32, ptr %arrayidx33, align 8, !tbaa !5 %sub34 = sub nsw i32 %17, %15 store i32 %sub34, ptr %arrayidx33, align 8, !tbaa !5 %indvars.iv.next79 = or i64 %indvars.iv78, 1 %arrayidx24.1 = getelementptr inbounds i32, ptr %vla1, i64 %indvars.iv.next79 %18 = load i32, ptr %arrayidx24.1, align 4, !tbaa !5 %idxprom25.1 = sext i32 %18 to i64 %arrayidx26.1 = getelementptr inbounds [100001 x i32], ptr %home, i64 0, i64 %idxprom25.1 %19 = load i32, ptr %arrayidx26.1, align 4, !tbaa !5 %arrayidx28.1 = getelementptr inbounds i32, ptr %vla2, i64 %indvars.iv.next79 %20 = load i32, ptr %arrayidx28.1, align 4, !tbaa !5 %add29.1 = add nsw i32 %20, %19 store i32 %add29.1, ptr %arrayidx28.1, align 4, !tbaa !5 %arrayidx33.1 = getelementptr inbounds i32, ptr %vla3, i64 %indvars.iv.next79 %21 = load i32, ptr %arrayidx33.1, align 4, !tbaa !5 %sub34.1 = sub nsw i32 %21, %19 store i32 %sub34.1, ptr %arrayidx33.1, align 4, !tbaa !5 %indvars.iv.next79.1 = add nuw nsw i64 %indvars.iv78, 2 %niter.next.1 = add i64 %niter, 2 %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter br i1 %niter.ncmp.1, label %for.cond40.preheader.unr-lcssa, label %for.body22, !llvm.loop !11 for.body42: ; preds = %for.cond40.preheader, %for.body42 %indvars.iv81 = phi i64 [ %indvars.iv.next82, %for.body42 ], [ 0, %for.cond40.preheader ] %arrayidx44 = getelementptr inbounds i32, ptr %vla2, i64 %indvars.iv81 %22 = load i32, ptr %arrayidx44, align 4, !tbaa !5 %arrayidx46 = getelementptr inbounds i32, ptr %vla3, i64 %indvars.iv81 %23 = load i32, ptr %arrayidx46, align 4, !tbaa !5 %call47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %22, i32 noundef %23) %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1 %24 = load i32, ptr %n, align 4, !tbaa !5 %25 = sext i32 %24 to i64 %cmp41 = icmp slt i64 %indvars.iv.next82, %25 br i1 %cmp41, label %for.body42, label %for.end50, !llvm.loop !12 for.end50: ; preds = %for.body42, %entry, %for.cond20.preheader, %for.cond40.preheader call void @llvm.lifetime.end.p0(i64 400004, ptr nonnull %home) #5 call void @llvm.stackrestore.p0(ptr %2) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #5 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare ptr @llvm.stacksave.p0() #3 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare void @llvm.stackrestore.p0(ptr) #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn } attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #5 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10} !12 = distinct !{!12, !10}
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<limits.h> int main() { long long int i,j,k,n,a[4534],x,t,b,count=0,sum=0 ; scanf("%lld %lld %lld",&n,&x,&t) ; b=n/x; if(n%x==0) printf("%lld",b*t) ; else printf("%lld",(b+1)*t) ; return 0 ; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135853/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135853/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 [15 x i8] c"%lld %lld %lld\00", align 1 @.str.1 = private unnamed_addr constant [5 x i8] c"%lld\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i64, align 8 %x = alloca i64, align 8 %t = alloca i64, align 8 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %n) #3 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %x) #3 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %t) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %x, ptr noundef nonnull %t) %0 = load i64, ptr %n, align 8, !tbaa !5 %1 = load i64, ptr %x, align 8, !tbaa !5 %div = sdiv i64 %0, %1 %rem = srem i64 %0, %1 %cmp = icmp eq i64 %rem, 0 br i1 %cmp, label %if.then, label %if.else if.then: ; preds = %entry %2 = load i64, ptr %t, align 8, !tbaa !5 %mul = mul nsw i64 %2, %div br label %if.end if.else: ; preds = %entry %add = add nsw i64 %div, 1 %3 = load i64, ptr %t, align 8, !tbaa !5 %mul2 = mul nsw i64 %3, %add br label %if.end if.end: ; preds = %if.else, %if.then %mul2.sink = phi i64 [ %mul2, %if.else ], [ %mul, %if.then ] %call3 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %mul2.sink) call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %t) #3 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %x) #3 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %n) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"long long", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> int main() { int m, f, b; scanf( "%d %d %d", &m, &f, &b ); if( m >= b ) printf( "0\n" ); else if( m + f < b ) printf( "NA\n" ); else printf( "%d\n", b - m ); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135897/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135897/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 [9 x i8] c"%d %d %d\00", align 1 @.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 @str = private unnamed_addr constant [3 x i8] c"NA\00", align 1 @str.4 = private unnamed_addr constant [2 x i8] c"0\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %m = alloca i32, align 4 %f = alloca i32, align 4 %b = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %f) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %m, ptr noundef nonnull %f, ptr noundef nonnull %b) %0 = load i32, ptr %m, align 4, !tbaa !5 %1 = load i32, ptr %b, align 4, !tbaa !5 %cmp.not = icmp slt i32 %0, %1 br i1 %cmp.not, label %if.else, label %if.then if.then: ; preds = %entry %puts9 = call i32 @puts(ptr nonnull dereferenceable(1) @str.4) br label %if.end7 if.else: ; preds = %entry %2 = load i32, ptr %f, align 4, !tbaa !5 %add = add nsw i32 %2, %0 %cmp2 = icmp slt i32 %add, %1 br i1 %cmp2, label %if.then3, label %if.else5 if.then3: ; preds = %if.else %puts = call i32 @puts(ptr nonnull dereferenceable(1) @str) br label %if.end7 if.else5: ; preds = %if.else %sub = sub nsw i32 %1, %0 %call6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %sub) br label %if.end7 if.end7: ; preds = %if.then3, %if.else5, %if.then call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %f) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %m) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> int main(){ int n,i,j,a[100000]={0,0,0}; scanf("%d",&n); int b[n][2]; for(i=0;i<n;i++) { scanf("%d%d",&b[i][0],&b[i][1]); a[b[i][0]-1]++; } for(i=0;i<n;i++) { j=a[b[i][1]-1]; printf("%d %d\n",(n-1)+j,n-1-j); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13594/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13594/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [5 x i8] c"%d%d\00", align 1 @.str.2 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 %a = alloca [100000 x i32], align 16 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #5 call void @llvm.lifetime.start.p0(i64 400000, ptr nonnull %a) #5 call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400000) %a, i8 0, i64 400000, i1 false) %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %1 = zext i32 %0 to i64 %2 = call ptr @llvm.stacksave.p0() %vla = alloca [2 x i32], i64 %1, align 16 %3 = load i32, ptr %n, align 4, !tbaa !5 %cmp36 = icmp sgt i32 %3, 0 br i1 %cmp36, label %for.body, label %for.end27 for.cond12.preheader: ; preds = %for.body %cmp1338 = icmp sgt i32 %6, 0 br i1 %cmp1338, label %for.body14, label %for.end27 for.body: ; preds = %entry, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ] %arrayidx = getelementptr inbounds [2 x i32], ptr %vla, i64 %indvars.iv %arrayidx4 = getelementptr inbounds [2 x i32], ptr %vla, i64 %indvars.iv, i64 1 %call5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx, ptr noundef nonnull %arrayidx4) %4 = load i32, ptr %arrayidx, align 8, !tbaa !5 %sub = add nsw i32 %4, -1 %idxprom9 = sext i32 %sub to i64 %arrayidx10 = getelementptr inbounds [100000 x i32], ptr %a, i64 0, i64 %idxprom9 %5 = load i32, ptr %arrayidx10, align 4, !tbaa !5 %inc = add nsw i32 %5, 1 store i32 %inc, ptr %arrayidx10, align 4, !tbaa !5 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %6 = load i32, ptr %n, align 4, !tbaa !5 %7 = sext i32 %6 to i64 %cmp = icmp slt i64 %indvars.iv.next, %7 br i1 %cmp, label %for.body, label %for.cond12.preheader, !llvm.loop !9 for.body14: ; preds = %for.cond12.preheader, %for.body14 %indvars.iv41 = phi i64 [ %indvars.iv.next42, %for.body14 ], [ 0, %for.cond12.preheader ] %8 = phi i32 [ %11, %for.body14 ], [ %6, %for.cond12.preheader ] %arrayidx17 = getelementptr inbounds [2 x i32], ptr %vla, i64 %indvars.iv41, i64 1 %9 = load i32, ptr %arrayidx17, align 4, !tbaa !5 %sub18 = add nsw i32 %9, -1 %idxprom19 = sext i32 %sub18 to i64 %arrayidx20 = getelementptr inbounds [100000 x i32], ptr %a, i64 0, i64 %idxprom19 %10 = load i32, ptr %arrayidx20, align 4, !tbaa !5 %sub21 = add nsw i32 %8, -1 %add = add nsw i32 %10, %sub21 %sub23 = sub nsw i32 %sub21, %10 %call24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %add, i32 noundef %sub23) %indvars.iv.next42 = add nuw nsw i64 %indvars.iv41, 1 %11 = load i32, ptr %n, align 4, !tbaa !5 %12 = sext i32 %11 to i64 %cmp13 = icmp slt i64 %indvars.iv.next42, %12 br i1 %cmp13, label %for.body14, label %for.end27, !llvm.loop !11 for.end27: ; preds = %for.body14, %entry, %for.cond12.preheader call void @llvm.stackrestore.p0(ptr %2) call void @llvm.lifetime.end.p0(i64 400000, ptr nonnull %a) #5 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #5 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare ptr @llvm.stacksave.p0() #4 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare void @llvm.stackrestore.p0(ptr) #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn } attributes #5 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10}
#include <stdio.h> int main(void) { int n, prime = 1; scanf("%d", &n); for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { if (i * j == n) { printf("Yes\n"); return 0; } } } printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135990/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135990/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 [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @str.3 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %.off = add i32 %0, -1 %switch = icmp ult i32 %.off, 2 br i1 %switch, label %cleanup9, label %for.cond1.1 for.cond1.1: ; preds = %entry %1 = mul i32 %0, 954437177 %2 = mul i32 %0, -1227133513 %3 = insertelement <2 x i32> poison, i32 %0, i64 0 %4 = shufflevector <2 x i32> %3, <2 x i32> poison, <2 x i32> zeroinitializer %5 = mul <2 x i32> %4, <i32 -1431655765, i32 -858993459> %6 = extractelement <2 x i32> %5, i64 0 %exitcond = icmp eq i32 %6, 1 %cmp5.3 = icmp eq i32 %0, 4 %7 = extractelement <2 x i32> %5, i64 1 %exitcond24 = icmp eq i32 %7, 1 %cmp5.5 = icmp eq i32 %0, 6 %exitcond25 = icmp eq i32 %2, 1 %cmp5.7 = icmp eq i32 %0, 8 %exitcond26 = icmp eq i32 %1, 1 %exitcond.1 = icmp eq i32 %6, 2 %exitcond24.1 = icmp eq i32 %7, 2 %cmp5.5.1 = icmp eq i32 %0, 12 %exitcond25.1 = icmp eq i32 %2, 2 %cmp5.7.1 = icmp eq i32 %0, 16 %exitcond26.1 = icmp eq i32 %1, 2 %cmp5.2 = icmp eq i32 %0, 3 %exitcond.2 = icmp eq i32 %6, 3 %exitcond24.2 = icmp eq i32 %7, 3 %cmp5.5.2 = icmp eq i32 %0, 18 %exitcond25.2 = icmp eq i32 %2, 3 %cmp5.7.2 = icmp eq i32 %0, 24 %exitcond26.2 = icmp eq i32 %1, 3 %exitcond.3 = icmp eq i32 %6, 4 %exitcond24.3 = icmp eq i32 %7, 4 %exitcond25.3 = icmp eq i32 %2, 4 %8 = insertelement <8 x i32> poison, i32 %0, i64 0 %9 = insertelement <8 x i32> %8, i32 %1, i64 1 %10 = shufflevector <2 x i32> %5, <2 x i32> poison, <8 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison> %11 = shufflevector <8 x i32> %9, <8 x i32> %10, <8 x i32> <i32 0, i32 1, i32 8, i32 9, i32 poison, i32 poison, i32 poison, i32 poison> %12 = shufflevector <8 x i32> %11, <8 x i32> poison, <8 x i32> <i32 0, i32 1, i32 0, i32 0, i32 2, i32 0, i32 3, i32 0> %13 = icmp eq <8 x i32> %12, <i32 32, i32 4, i32 5, i32 10, i32 5, i32 20, i32 5, i32 30> %exitcond25.4 = icmp eq i32 %2, 5 %cmp5.7.4 = icmp eq i32 %0, 40 %exitcond26.4 = icmp eq i32 %1, 5 %exitcond.5 = icmp eq i32 %6, 6 %14 = insertelement <8 x i32> %8, i32 %2, i64 1 %15 = insertelement <8 x i32> %14, i32 %1, i64 2 %16 = shufflevector <8 x i32> %15, <8 x i32> %10, <8 x i32> <i32 0, i32 1, i32 2, i32 8, i32 poison, i32 poison, i32 poison, i32 poison> %17 = shufflevector <8 x i32> %16, <8 x i32> poison, <8 x i32> <i32 0, i32 1, i32 0, i32 2, i32 0, i32 0, i32 3, i32 0> %18 = icmp eq <8 x i32> %17, <i32 36, i32 6, i32 48, i32 6, i32 7, i32 14, i32 7, i32 28> %cmp5.5.6 = icmp eq i32 %0, 42 %exitcond25.6 = icmp eq i32 %2, 7 %cmp5.7.6 = icmp eq i32 %0, 56 %exitcond26.6 = icmp eq i32 %1, 7 %19 = icmp eq <2 x i32> %5, <i32 8, i32 8> %exitcond25.7 = icmp eq i32 %2, 8 %cmp5.7.7 = icmp eq i32 %0, 64 %exitcond26.7 = icmp eq i32 %1, 8 %cmp5.8 = icmp eq i32 %0, 9 %exitcond.8 = icmp eq i32 %6, 9 %exitcond24.8 = icmp eq i32 %7, 9 %cmp5.5.8 = icmp eq i32 %0, 54 %exitcond25.8 = icmp eq i32 %2, 9 %cmp5.7.8 = icmp eq i32 %0, 72 %exitcond26.8 = icmp eq i32 %1, 9 %20 = or <8 x i1> %13, %18 %21 = bitcast <8 x i1> %20 to i8 %op.rdx = icmp ne i8 %21, 0 %op.rdx99 = or i1 %op.rdx, %cmp5.3 %op.rdx100 = or i1 %exitcond, %exitcond24 %op.rdx101 = or i1 %cmp5.5, %exitcond25 %op.rdx102 = or i1 %cmp5.7, %exitcond26 %op.rdx103 = or i1 %exitcond.1, %exitcond24.1 %op.rdx104 = or i1 %cmp5.5.1, %exitcond25.1 %op.rdx105 = or i1 %cmp5.7.1, %exitcond26.1 %op.rdx106 = or i1 %cmp5.2, %exitcond.2 %op.rdx107 = or i1 %exitcond24.2, %cmp5.5.2 %op.rdx108 = or i1 %exitcond25.2, %cmp5.7.2 %op.rdx109 = or i1 %exitcond26.2, %exitcond.3 %op.rdx110 = or i1 %exitcond24.3, %exitcond25.3 %op.rdx111 = or i1 %exitcond25.4, %cmp5.7.4 %op.rdx112 = or i1 %exitcond26.4, %exitcond.5 %22 = and i32 %7, -2 %op.rdx113 = icmp eq i32 %22, 6 %op.rdx114 = or i1 %cmp5.5.6, %exitcond25.6 %op.rdx115 = or i1 %cmp5.7.6, %exitcond26.6 %shift = shufflevector <2 x i1> %19, <2 x i1> poison, <2 x i32> <i32 1, i32 poison> %23 = or <2 x i1> %19, %shift %op.rdx116 = extractelement <2 x i1> %23, i64 0 %op.rdx117 = or i1 %exitcond25.7, %cmp5.7.7 %op.rdx118 = or i1 %exitcond26.7, %cmp5.8 %op.rdx119 = or i1 %exitcond.8, %exitcond24.8 %op.rdx120 = or i1 %cmp5.5.8, %exitcond25.8 %op.rdx121 = or i1 %cmp5.7.8, %exitcond26.8 %op.rdx122 = or i1 %op.rdx99, %op.rdx100 %op.rdx123 = or i1 %op.rdx101, %op.rdx102 %op.rdx124 = or i1 %op.rdx103, %op.rdx104 %op.rdx125 = or i1 %op.rdx105, %op.rdx106 %op.rdx126 = or i1 %op.rdx107, %op.rdx108 %op.rdx127 = or i1 %op.rdx109, %op.rdx110 %op.rdx128 = or i1 %op.rdx111, %op.rdx112 %op.rdx129 = or i1 %op.rdx113, %op.rdx114 %op.rdx130 = or i1 %op.rdx115, %op.rdx116 %op.rdx131 = or i1 %op.rdx117, %op.rdx118 %op.rdx132 = or i1 %op.rdx119, %op.rdx120 %op.rdx133 = or i1 %op.rdx122, %op.rdx123 %op.rdx134 = or i1 %op.rdx124, %op.rdx125 %op.rdx135 = or i1 %op.rdx126, %op.rdx127 %op.rdx136 = or i1 %op.rdx128, %op.rdx129 %op.rdx137 = or i1 %op.rdx130, %op.rdx131 %op.rdx138 = or i1 %op.rdx132, %op.rdx121 %op.rdx139 = or i1 %op.rdx133, %op.rdx134 %op.rdx140 = or i1 %op.rdx135, %op.rdx136 %op.rdx141 = or i1 %op.rdx137, %op.rdx138 %op.rdx142 = or i1 %op.rdx139, %op.rdx140 %op.rdx143 = or i1 %op.rdx142, %op.rdx141 br i1 %op.rdx143, label %cleanup9, label %cleanup13 cleanup9: ; preds = %entry, %for.cond1.1 br label %cleanup13 cleanup13: ; preds = %for.cond1.1, %cleanup9 %str.sink = phi ptr [ @str, %cleanup9 ], [ @str.3, %for.cond1.1 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
/* ex3-4 Sagzar1993 */ #include <stdio.h> int main(void) { int num; //入力を受け取る scanf("%d", &num); //numが各数字で割り切れ、かつその商が1から9の間であるとき、Yesを表示 if(num % 1 == 0 && num / 1 <= 9){ printf("Yes\n"); }else if(num % 2 == 0 && num / 2 <= 9){ printf("Yes\n"); }else if(num % 3 == 0 && num / 3 <= 9){ printf("Yes\n"); }else if(num % 4 == 0 && num / 4 <= 9){ printf("Yes\n"); }else if(num % 5 == 0 && num / 5 <= 9){ printf("Yes\n"); }else if(num % 6 == 0 && num / 6 <= 9){ printf("Yes\n"); }else if(num % 7 == 0 && num / 7 <= 9){ printf("Yes\n"); }else if(num % 8 == 0 && num / 8 <= 9){ printf("Yes\n"); }else if(num % 9 == 0 && num / 9 <= 9){ printf("Yes\n"); }else{ printf("No\n"); //どれにも当てはまらなかった場合はNoを表示 } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136032/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136032/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 [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.11 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %num = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %num) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %num) %0 = load i32, ptr %num, align 4, !tbaa !5 %cmp1 = icmp slt i32 %0, 10 br i1 %cmp1, label %if.end75, label %if.else if.else: ; preds = %entry %1 = and i32 %0, 1 %cmp4 = icmp eq i32 %1, 0 %cmp7 = icmp ult i32 %0, 20 %or.cond = and i1 %cmp7, %cmp4 br i1 %or.cond, label %if.end75, label %if.else10 if.else10: ; preds = %if.else %rem1192 = urem i32 %0, 3 %cmp12 = icmp eq i32 %rem1192, 0 %cmp15 = icmp ult i32 %0, 30 %or.cond85 = and i1 %cmp15, %cmp12 br i1 %or.cond85, label %if.end75, label %if.else18 if.else18: ; preds = %if.else10 %2 = and i32 %0, 3 %cmp20 = icmp eq i32 %2, 0 %cmp23 = icmp ult i32 %0, 40 %or.cond86 = and i1 %cmp23, %cmp20 br i1 %or.cond86, label %if.end75, label %if.else26 if.else26: ; preds = %if.else18 %rem2793 = urem i32 %0, 5 %cmp28 = icmp eq i32 %rem2793, 0 %cmp31 = icmp ult i32 %0, 50 %or.cond87 = and i1 %cmp31, %cmp28 br i1 %or.cond87, label %if.end75, label %if.else34 if.else34: ; preds = %if.else26 %rem3594 = urem i32 %0, 6 %cmp36 = icmp eq i32 %rem3594, 0 %cmp39 = icmp ult i32 %0, 60 %or.cond88 = and i1 %cmp39, %cmp36 br i1 %or.cond88, label %if.end75, label %if.else42 if.else42: ; preds = %if.else34 %rem4395 = urem i32 %0, 7 %cmp44 = icmp eq i32 %rem4395, 0 %cmp47 = icmp ult i32 %0, 70 %or.cond89 = and i1 %cmp47, %cmp44 br i1 %or.cond89, label %if.end75, label %if.else50 if.else50: ; preds = %if.else42 %3 = and i32 %0, 7 %cmp52 = icmp eq i32 %3, 0 %cmp55 = icmp ult i32 %0, 80 %or.cond90 = and i1 %cmp55, %cmp52 br i1 %or.cond90, label %if.end75, label %if.else58 if.else58: ; preds = %if.else50 %rem5996 = urem i32 %0, 9 %cmp60 = icmp eq i32 %rem5996, 0 %cmp63 = icmp ult i32 %0, 90 %or.cond91 = and i1 %cmp63, %cmp60 %str.3.str = select i1 %or.cond91, ptr @str.11, ptr @str br label %if.end75 if.end75: ; preds = %if.else58, %if.else50, %if.else42, %if.else34, %if.else26, %if.else18, %if.else10, %if.else, %entry %str.10.sink = phi ptr [ @str.11, %entry ], [ @str.11, %if.else ], [ @str.11, %if.else10 ], [ @str.11, %if.else18 ], [ @str.11, %if.else26 ], [ @str.11, %if.else34 ], [ @str.11, %if.else42 ], [ @str.11, %if.else50 ], [ %str.3.str, %if.else58 ] %puts83 = call i32 @puts(ptr nonnull dereferenceable(1) %str.10.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %num) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
/* ex3_4 kento_titech*/ #include<stdio.h> int main(void){ int i; int N,n,r; scanf("%d",&N); for(i=1;i<10;++i){ n=N/i; r=N%i; if(0<n && n<10 && r==0){ printf("Yes\n"); break; } } if(i==10){ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136076/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136076/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 [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @str.3 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %N = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N) %0 = load i32, ptr %N, align 4, !tbaa !5 %1 = add i32 %0, -1 %or.cond = icmp ult i32 %1, 9 br i1 %or.cond, label %if.end9, label %for.inc for.inc: ; preds = %entry %div.1 = sdiv i32 %0, 2 %2 = add nsw i32 %div.1, -1 %or.cond.1 = icmp ult i32 %2, 9 %3 = and i32 %0, 1 %cmp4.1 = icmp eq i32 %3, 0 %or.cond10.1 = and i1 %or.cond.1, %cmp4.1 br i1 %or.cond10.1, label %if.end9, label %for.inc.1 for.inc.1: ; preds = %for.inc %div.2 = sdiv i32 %0, 3 %rem.2 = srem i32 %0, 3 %4 = add nsw i32 %div.2, -1 %or.cond.2 = icmp ult i32 %4, 9 %cmp4.2 = icmp eq i32 %rem.2, 0 %or.cond10.2 = and i1 %or.cond.2, %cmp4.2 br i1 %or.cond10.2, label %if.end9, label %for.inc.2 for.inc.2: ; preds = %for.inc.1 %div.3 = sdiv i32 %0, 4 %5 = add nsw i32 %div.3, -1 %or.cond.3 = icmp ult i32 %5, 9 %6 = and i32 %0, 3 %cmp4.3 = icmp eq i32 %6, 0 %or.cond10.3 = and i1 %or.cond.3, %cmp4.3 br i1 %or.cond10.3, label %if.end9, label %for.inc.3 for.inc.3: ; preds = %for.inc.2 %div.4 = sdiv i32 %0, 5 %rem.4 = srem i32 %0, 5 %7 = add nsw i32 %div.4, -1 %or.cond.4 = icmp ult i32 %7, 9 %cmp4.4 = icmp eq i32 %rem.4, 0 %or.cond10.4 = and i1 %or.cond.4, %cmp4.4 br i1 %or.cond10.4, label %if.end9, label %for.inc.4 for.inc.4: ; preds = %for.inc.3 %div.5 = sdiv i32 %0, 6 %rem.5 = srem i32 %0, 6 %8 = add nsw i32 %div.5, -1 %or.cond.5 = icmp ult i32 %8, 9 %cmp4.5 = icmp eq i32 %rem.5, 0 %or.cond10.5 = and i1 %or.cond.5, %cmp4.5 br i1 %or.cond10.5, label %if.end9, label %for.inc.5 for.inc.5: ; preds = %for.inc.4 %div.6 = sdiv i32 %0, 7 %rem.6 = srem i32 %0, 7 %9 = add nsw i32 %div.6, -1 %or.cond.6 = icmp ult i32 %9, 9 %cmp4.6 = icmp eq i32 %rem.6, 0 %or.cond10.6 = and i1 %or.cond.6, %cmp4.6 br i1 %or.cond10.6, label %if.end9, label %for.inc.6 for.inc.6: ; preds = %for.inc.5 %div.7 = sdiv i32 %0, 8 %10 = add nsw i32 %div.7, -1 %or.cond.7 = icmp ult i32 %10, 9 %11 = and i32 %0, 7 %cmp4.7 = icmp eq i32 %11, 0 %or.cond10.7 = and i1 %or.cond.7, %cmp4.7 br i1 %or.cond10.7, label %if.end9, label %for.inc.7 for.inc.7: ; preds = %for.inc.6 %div.8 = sdiv i32 %0, 9 %rem.8 = srem i32 %0, 9 %12 = add nsw i32 %div.8, -1 %or.cond.8 = icmp ult i32 %12, 9 %cmp4.8 = icmp eq i32 %rem.8, 0 %or.cond10.8 = and i1 %or.cond.8, %cmp4.8 %spec.select = select i1 %or.cond10.8, ptr @str, ptr @str.3 br label %if.end9 if.end9: ; preds = %for.inc.7, %entry, %for.inc, %for.inc.1, %for.inc.2, %for.inc.3, %for.inc.4, %for.inc.5, %for.inc.6 %str.sink = phi ptr [ @str, %for.inc.6 ], [ @str, %for.inc.5 ], [ @str, %for.inc.4 ], [ @str, %for.inc.3 ], [ @str, %for.inc.2 ], [ @str, %for.inc.1 ], [ @str, %for.inc ], [ @str, %entry ], [ %spec.select, %for.inc.7 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
/* ex3_4 KKOO */ #include <stdio.h> int main(void) { int num,i,j,result; //整数の入力 scanf("%d",&num); //九九の計算 i = 0; j = 0; result=0; for(i=1; i < 10; i++){ for(j=1; j < 10; j++){ //九九が一致したらresultを1にする if(i*j == num){ result = 1; } } } //resultが1ならYes if(result == 1){ printf("Yes\n"); } //resultが0ならYes else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136119/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136119/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 [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @reltable.main = private unnamed_addr constant [79 x i32] [i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @str.3 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32)], align 4 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %num = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %num) #5 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %num) %0 = load i32, ptr %num, align 4, !tbaa !5 %.fr109 = freeze i32 %0 %1 = add i32 %.fr109, -1 %narrow = icmp ult i32 %1, 10 br i1 %narrow, label %if.end12, label %switch.early.test switch.early.test: ; preds = %entry %switch.tableidx = add i32 %.fr109, -3 %2 = icmp ult i32 %switch.tableidx, 79 br i1 %2, label %switch.lookup, label %if.end12 switch.lookup: ; preds = %switch.early.test %3 = sext i32 %switch.tableidx to i64 %reltable.shift = shl i64 %3, 2 %reltable.intrinsic = call ptr @llvm.load.relative.i64(ptr @reltable.main, i64 %reltable.shift) br label %if.end12 if.end12: ; preds = %switch.early.test, %switch.lookup, %entry %str.sink = phi ptr [ @str.3, %entry ], [ %reltable.intrinsic, %switch.lookup ], [ @str, %switch.early.test ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %num) #5 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 ; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read) declare ptr @llvm.load.relative.i64(ptr, i64) #4 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) } attributes #5 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> int main() { int n; int i, j; scanf("%d", &n); for(i = 1; i < 10; i++) { for(j = 1; j < 10; j++) { if(i * j == n) { printf("Yes\n"); return 0; } } } printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136162/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136162/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 [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %.off = add i32 %0, -1 %switch = icmp ult i32 %.off, 2 br i1 %switch, label %if.then, label %for.cond1.1 for.cond1.1: ; preds = %entry %1 = mul i32 %0, 954437177 %2 = mul i32 %0, -1227133513 %3 = insertelement <2 x i32> poison, i32 %0, i64 0 %4 = shufflevector <2 x i32> %3, <2 x i32> poison, <2 x i32> zeroinitializer %5 = mul <2 x i32> %4, <i32 -1431655765, i32 -858993459> %6 = extractelement <2 x i32> %5, i64 0 %exitcond = icmp eq i32 %6, 1 %cmp4.3 = icmp eq i32 %0, 4 %7 = extractelement <2 x i32> %5, i64 1 %exitcond19 = icmp eq i32 %7, 1 %cmp4.5 = icmp eq i32 %0, 6 %exitcond20 = icmp eq i32 %2, 1 %cmp4.7 = icmp eq i32 %0, 8 %exitcond21 = icmp eq i32 %1, 1 %exitcond.1 = icmp eq i32 %6, 2 %exitcond19.1 = icmp eq i32 %7, 2 %cmp4.5.1 = icmp eq i32 %0, 12 %exitcond20.1 = icmp eq i32 %2, 2 %cmp4.7.1 = icmp eq i32 %0, 16 %exitcond21.1 = icmp eq i32 %1, 2 %cmp4.2 = icmp eq i32 %0, 3 %exitcond.2 = icmp eq i32 %6, 3 %exitcond19.2 = icmp eq i32 %7, 3 %cmp4.5.2 = icmp eq i32 %0, 18 %exitcond20.2 = icmp eq i32 %2, 3 %cmp4.7.2 = icmp eq i32 %0, 24 %exitcond21.2 = icmp eq i32 %1, 3 %exitcond.3 = icmp eq i32 %6, 4 %exitcond19.3 = icmp eq i32 %7, 4 %exitcond20.3 = icmp eq i32 %2, 4 %8 = insertelement <8 x i32> poison, i32 %0, i64 0 %9 = insertelement <8 x i32> %8, i32 %1, i64 1 %10 = shufflevector <2 x i32> %5, <2 x i32> poison, <8 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison> %11 = shufflevector <8 x i32> %9, <8 x i32> %10, <8 x i32> <i32 0, i32 1, i32 8, i32 9, i32 poison, i32 poison, i32 poison, i32 poison> %12 = shufflevector <8 x i32> %11, <8 x i32> poison, <8 x i32> <i32 0, i32 1, i32 0, i32 0, i32 2, i32 0, i32 3, i32 0> %13 = icmp eq <8 x i32> %12, <i32 32, i32 4, i32 5, i32 10, i32 5, i32 20, i32 5, i32 30> %exitcond20.4 = icmp eq i32 %2, 5 %cmp4.7.4 = icmp eq i32 %0, 40 %exitcond21.4 = icmp eq i32 %1, 5 %exitcond.5 = icmp eq i32 %6, 6 %14 = insertelement <8 x i32> %8, i32 %2, i64 1 %15 = insertelement <8 x i32> %14, i32 %1, i64 2 %16 = shufflevector <8 x i32> %15, <8 x i32> %10, <8 x i32> <i32 0, i32 1, i32 2, i32 8, i32 poison, i32 poison, i32 poison, i32 poison> %17 = shufflevector <8 x i32> %16, <8 x i32> poison, <8 x i32> <i32 0, i32 1, i32 0, i32 2, i32 0, i32 0, i32 3, i32 0> %18 = icmp eq <8 x i32> %17, <i32 36, i32 6, i32 48, i32 6, i32 7, i32 14, i32 7, i32 28> %cmp4.5.6 = icmp eq i32 %0, 42 %exitcond20.6 = icmp eq i32 %2, 7 %cmp4.7.6 = icmp eq i32 %0, 56 %exitcond21.6 = icmp eq i32 %1, 7 %19 = icmp eq <2 x i32> %5, <i32 8, i32 8> %exitcond20.7 = icmp eq i32 %2, 8 %cmp4.7.7 = icmp eq i32 %0, 64 %exitcond21.7 = icmp eq i32 %1, 8 %cmp4.8 = icmp eq i32 %0, 9 %exitcond.8 = icmp eq i32 %6, 9 %exitcond19.8 = icmp eq i32 %7, 9 %cmp4.5.8 = icmp eq i32 %0, 54 %exitcond20.8 = icmp eq i32 %2, 9 %cmp4.7.8 = icmp eq i32 %0, 72 %exitcond21.8 = icmp eq i32 %1, 9 %20 = or <8 x i1> %13, %18 %21 = bitcast <8 x i1> %20 to i8 %op.rdx = icmp ne i8 %21, 0 %op.rdx94 = or i1 %op.rdx, %cmp4.3 %op.rdx95 = or i1 %exitcond, %exitcond19 %op.rdx96 = or i1 %cmp4.5, %exitcond20 %op.rdx97 = or i1 %cmp4.7, %exitcond21 %op.rdx98 = or i1 %exitcond.1, %exitcond19.1 %op.rdx99 = or i1 %cmp4.5.1, %exitcond20.1 %op.rdx100 = or i1 %cmp4.7.1, %exitcond21.1 %op.rdx101 = or i1 %cmp4.2, %exitcond.2 %op.rdx102 = or i1 %exitcond19.2, %cmp4.5.2 %op.rdx103 = or i1 %exitcond20.2, %cmp4.7.2 %op.rdx104 = or i1 %exitcond21.2, %exitcond.3 %op.rdx105 = or i1 %exitcond19.3, %exitcond20.3 %op.rdx106 = or i1 %exitcond20.4, %cmp4.7.4 %op.rdx107 = or i1 %exitcond21.4, %exitcond.5 %22 = and i32 %7, -2 %op.rdx108 = icmp eq i32 %22, 6 %op.rdx109 = or i1 %cmp4.5.6, %exitcond20.6 %op.rdx110 = or i1 %cmp4.7.6, %exitcond21.6 %shift = shufflevector <2 x i1> %19, <2 x i1> poison, <2 x i32> <i32 1, i32 poison> %23 = or <2 x i1> %19, %shift %op.rdx111 = extractelement <2 x i1> %23, i64 0 %op.rdx112 = or i1 %exitcond20.7, %cmp4.7.7 %op.rdx113 = or i1 %exitcond21.7, %cmp4.8 %op.rdx114 = or i1 %exitcond.8, %exitcond19.8 %op.rdx115 = or i1 %cmp4.5.8, %exitcond20.8 %op.rdx116 = or i1 %cmp4.7.8, %exitcond21.8 %op.rdx117 = or i1 %op.rdx94, %op.rdx95 %op.rdx118 = or i1 %op.rdx96, %op.rdx97 %op.rdx119 = or i1 %op.rdx98, %op.rdx99 %op.rdx120 = or i1 %op.rdx100, %op.rdx101 %op.rdx121 = or i1 %op.rdx102, %op.rdx103 %op.rdx122 = or i1 %op.rdx104, %op.rdx105 %op.rdx123 = or i1 %op.rdx106, %op.rdx107 %op.rdx124 = or i1 %op.rdx108, %op.rdx109 %op.rdx125 = or i1 %op.rdx110, %op.rdx111 %op.rdx126 = or i1 %op.rdx112, %op.rdx113 %op.rdx127 = or i1 %op.rdx114, %op.rdx115 %op.rdx128 = or i1 %op.rdx117, %op.rdx118 %op.rdx129 = or i1 %op.rdx119, %op.rdx120 %op.rdx130 = or i1 %op.rdx121, %op.rdx122 %op.rdx131 = or i1 %op.rdx123, %op.rdx124 %op.rdx132 = or i1 %op.rdx125, %op.rdx126 %op.rdx133 = or i1 %op.rdx127, %op.rdx116 %op.rdx134 = or i1 %op.rdx128, %op.rdx129 %op.rdx135 = or i1 %op.rdx130, %op.rdx131 %op.rdx136 = or i1 %op.rdx132, %op.rdx133 %op.rdx137 = or i1 %op.rdx134, %op.rdx135 %op.rdx138 = or i1 %op.rdx137, %op.rdx136 br i1 %op.rdx138, label %if.then, label %cleanup if.then: ; preds = %entry, %for.cond1.1 br label %cleanup cleanup: ; preds = %for.cond1.1, %if.then %str.sink = phi ptr [ @str.3, %if.then ], [ @str, %for.cond1.1 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(void) { int i, j, n; scanf("%d", &n); for (i=1; i<=9; i++) { for (j=1; j<=9; j++) { if (i*j == n) { printf("Yes\n"); return 0; } } } printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136205/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136205/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 [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %.off = add i32 %0, -1 %switch = icmp ult i32 %.off, 2 br i1 %switch, label %if.then, label %for.cond1.1 for.cond1.1: ; preds = %entry %1 = mul i32 %0, 954437177 %2 = mul i32 %0, -1227133513 %3 = insertelement <2 x i32> poison, i32 %0, i64 0 %4 = shufflevector <2 x i32> %3, <2 x i32> poison, <2 x i32> zeroinitializer %5 = mul <2 x i32> %4, <i32 -1431655765, i32 -858993459> %6 = extractelement <2 x i32> %5, i64 0 %exitcond = icmp eq i32 %6, 1 %cmp4.3 = icmp eq i32 %0, 4 %7 = extractelement <2 x i32> %5, i64 1 %exitcond19 = icmp eq i32 %7, 1 %cmp4.5 = icmp eq i32 %0, 6 %exitcond20 = icmp eq i32 %2, 1 %cmp4.7 = icmp eq i32 %0, 8 %exitcond21 = icmp eq i32 %1, 1 %exitcond.1 = icmp eq i32 %6, 2 %exitcond19.1 = icmp eq i32 %7, 2 %cmp4.5.1 = icmp eq i32 %0, 12 %exitcond20.1 = icmp eq i32 %2, 2 %cmp4.7.1 = icmp eq i32 %0, 16 %exitcond21.1 = icmp eq i32 %1, 2 %cmp4.2 = icmp eq i32 %0, 3 %exitcond.2 = icmp eq i32 %6, 3 %exitcond19.2 = icmp eq i32 %7, 3 %cmp4.5.2 = icmp eq i32 %0, 18 %exitcond20.2 = icmp eq i32 %2, 3 %cmp4.7.2 = icmp eq i32 %0, 24 %exitcond21.2 = icmp eq i32 %1, 3 %exitcond.3 = icmp eq i32 %6, 4 %exitcond19.3 = icmp eq i32 %7, 4 %exitcond20.3 = icmp eq i32 %2, 4 %8 = insertelement <8 x i32> poison, i32 %0, i64 0 %9 = insertelement <8 x i32> %8, i32 %1, i64 1 %10 = shufflevector <2 x i32> %5, <2 x i32> poison, <8 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison> %11 = shufflevector <8 x i32> %9, <8 x i32> %10, <8 x i32> <i32 0, i32 1, i32 8, i32 9, i32 poison, i32 poison, i32 poison, i32 poison> %12 = shufflevector <8 x i32> %11, <8 x i32> poison, <8 x i32> <i32 0, i32 1, i32 0, i32 0, i32 2, i32 0, i32 3, i32 0> %13 = icmp eq <8 x i32> %12, <i32 32, i32 4, i32 5, i32 10, i32 5, i32 20, i32 5, i32 30> %exitcond20.4 = icmp eq i32 %2, 5 %cmp4.7.4 = icmp eq i32 %0, 40 %exitcond21.4 = icmp eq i32 %1, 5 %exitcond.5 = icmp eq i32 %6, 6 %14 = insertelement <8 x i32> %8, i32 %2, i64 1 %15 = insertelement <8 x i32> %14, i32 %1, i64 2 %16 = shufflevector <8 x i32> %15, <8 x i32> %10, <8 x i32> <i32 0, i32 1, i32 2, i32 8, i32 poison, i32 poison, i32 poison, i32 poison> %17 = shufflevector <8 x i32> %16, <8 x i32> poison, <8 x i32> <i32 0, i32 1, i32 0, i32 2, i32 0, i32 0, i32 3, i32 0> %18 = icmp eq <8 x i32> %17, <i32 36, i32 6, i32 48, i32 6, i32 7, i32 14, i32 7, i32 28> %cmp4.5.6 = icmp eq i32 %0, 42 %exitcond20.6 = icmp eq i32 %2, 7 %cmp4.7.6 = icmp eq i32 %0, 56 %exitcond21.6 = icmp eq i32 %1, 7 %19 = icmp eq <2 x i32> %5, <i32 8, i32 8> %exitcond20.7 = icmp eq i32 %2, 8 %cmp4.7.7 = icmp eq i32 %0, 64 %exitcond21.7 = icmp eq i32 %1, 8 %cmp4.8 = icmp eq i32 %0, 9 %exitcond.8 = icmp eq i32 %6, 9 %exitcond19.8 = icmp eq i32 %7, 9 %cmp4.5.8 = icmp eq i32 %0, 54 %exitcond20.8 = icmp eq i32 %2, 9 %cmp4.7.8 = icmp eq i32 %0, 72 %exitcond21.8 = icmp eq i32 %1, 9 %20 = or <8 x i1> %13, %18 %21 = bitcast <8 x i1> %20 to i8 %op.rdx = icmp ne i8 %21, 0 %op.rdx94 = or i1 %op.rdx, %cmp4.3 %op.rdx95 = or i1 %exitcond, %exitcond19 %op.rdx96 = or i1 %cmp4.5, %exitcond20 %op.rdx97 = or i1 %cmp4.7, %exitcond21 %op.rdx98 = or i1 %exitcond.1, %exitcond19.1 %op.rdx99 = or i1 %cmp4.5.1, %exitcond20.1 %op.rdx100 = or i1 %cmp4.7.1, %exitcond21.1 %op.rdx101 = or i1 %cmp4.2, %exitcond.2 %op.rdx102 = or i1 %exitcond19.2, %cmp4.5.2 %op.rdx103 = or i1 %exitcond20.2, %cmp4.7.2 %op.rdx104 = or i1 %exitcond21.2, %exitcond.3 %op.rdx105 = or i1 %exitcond19.3, %exitcond20.3 %op.rdx106 = or i1 %exitcond20.4, %cmp4.7.4 %op.rdx107 = or i1 %exitcond21.4, %exitcond.5 %22 = and i32 %7, -2 %op.rdx108 = icmp eq i32 %22, 6 %op.rdx109 = or i1 %cmp4.5.6, %exitcond20.6 %op.rdx110 = or i1 %cmp4.7.6, %exitcond21.6 %shift = shufflevector <2 x i1> %19, <2 x i1> poison, <2 x i32> <i32 1, i32 poison> %23 = or <2 x i1> %19, %shift %op.rdx111 = extractelement <2 x i1> %23, i64 0 %op.rdx112 = or i1 %exitcond20.7, %cmp4.7.7 %op.rdx113 = or i1 %exitcond21.7, %cmp4.8 %op.rdx114 = or i1 %exitcond.8, %exitcond19.8 %op.rdx115 = or i1 %cmp4.5.8, %exitcond20.8 %op.rdx116 = or i1 %cmp4.7.8, %exitcond21.8 %op.rdx117 = or i1 %op.rdx94, %op.rdx95 %op.rdx118 = or i1 %op.rdx96, %op.rdx97 %op.rdx119 = or i1 %op.rdx98, %op.rdx99 %op.rdx120 = or i1 %op.rdx100, %op.rdx101 %op.rdx121 = or i1 %op.rdx102, %op.rdx103 %op.rdx122 = or i1 %op.rdx104, %op.rdx105 %op.rdx123 = or i1 %op.rdx106, %op.rdx107 %op.rdx124 = or i1 %op.rdx108, %op.rdx109 %op.rdx125 = or i1 %op.rdx110, %op.rdx111 %op.rdx126 = or i1 %op.rdx112, %op.rdx113 %op.rdx127 = or i1 %op.rdx114, %op.rdx115 %op.rdx128 = or i1 %op.rdx117, %op.rdx118 %op.rdx129 = or i1 %op.rdx119, %op.rdx120 %op.rdx130 = or i1 %op.rdx121, %op.rdx122 %op.rdx131 = or i1 %op.rdx123, %op.rdx124 %op.rdx132 = or i1 %op.rdx125, %op.rdx126 %op.rdx133 = or i1 %op.rdx127, %op.rdx116 %op.rdx134 = or i1 %op.rdx128, %op.rdx129 %op.rdx135 = or i1 %op.rdx130, %op.rdx131 %op.rdx136 = or i1 %op.rdx132, %op.rdx133 %op.rdx137 = or i1 %op.rdx134, %op.rdx135 %op.rdx138 = or i1 %op.rdx137, %op.rdx136 br i1 %op.rdx138, label %if.then, label %cleanup if.then: ; preds = %entry, %for.cond1.1 br label %cleanup cleanup: ; preds = %for.cond1.1, %if.then %str.sink = phi ptr [ @str.3, %if.then ], [ @str, %for.cond1.1 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> int main(void){ int a; scanf("%d", &a); for(int i = 1; i <= 9; i++){ for(int j = 1; j <= 9; j++){ if(i * j == a){ printf("Yes\n"); return 0; } } } printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136249/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136249/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 [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @str.3 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %a = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a) %0 = load i32, ptr %a, align 4, !tbaa !5 %.off = add i32 %0, -1 %switch = icmp ult i32 %.off, 2 br i1 %switch, label %cleanup9, label %for.cond1.1 for.cond1.1: ; preds = %entry %1 = mul i32 %0, 954437177 %2 = mul i32 %0, -1227133513 %3 = insertelement <2 x i32> poison, i32 %0, i64 0 %4 = shufflevector <2 x i32> %3, <2 x i32> poison, <2 x i32> zeroinitializer %5 = mul <2 x i32> %4, <i32 -1431655765, i32 -858993459> %6 = extractelement <2 x i32> %5, i64 0 %exitcond = icmp eq i32 %6, 1 %cmp5.3 = icmp eq i32 %0, 4 %7 = extractelement <2 x i32> %5, i64 1 %exitcond23 = icmp eq i32 %7, 1 %cmp5.5 = icmp eq i32 %0, 6 %exitcond24 = icmp eq i32 %2, 1 %cmp5.7 = icmp eq i32 %0, 8 %exitcond25 = icmp eq i32 %1, 1 %exitcond.1 = icmp eq i32 %6, 2 %exitcond23.1 = icmp eq i32 %7, 2 %cmp5.5.1 = icmp eq i32 %0, 12 %exitcond24.1 = icmp eq i32 %2, 2 %cmp5.7.1 = icmp eq i32 %0, 16 %exitcond25.1 = icmp eq i32 %1, 2 %cmp5.2 = icmp eq i32 %0, 3 %exitcond.2 = icmp eq i32 %6, 3 %exitcond23.2 = icmp eq i32 %7, 3 %cmp5.5.2 = icmp eq i32 %0, 18 %exitcond24.2 = icmp eq i32 %2, 3 %cmp5.7.2 = icmp eq i32 %0, 24 %exitcond25.2 = icmp eq i32 %1, 3 %exitcond.3 = icmp eq i32 %6, 4 %exitcond23.3 = icmp eq i32 %7, 4 %exitcond24.3 = icmp eq i32 %2, 4 %8 = insertelement <8 x i32> poison, i32 %0, i64 0 %9 = insertelement <8 x i32> %8, i32 %1, i64 1 %10 = shufflevector <2 x i32> %5, <2 x i32> poison, <8 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison> %11 = shufflevector <8 x i32> %9, <8 x i32> %10, <8 x i32> <i32 0, i32 1, i32 8, i32 9, i32 poison, i32 poison, i32 poison, i32 poison> %12 = shufflevector <8 x i32> %11, <8 x i32> poison, <8 x i32> <i32 0, i32 1, i32 0, i32 0, i32 2, i32 0, i32 3, i32 0> %13 = icmp eq <8 x i32> %12, <i32 32, i32 4, i32 5, i32 10, i32 5, i32 20, i32 5, i32 30> %exitcond24.4 = icmp eq i32 %2, 5 %cmp5.7.4 = icmp eq i32 %0, 40 %exitcond25.4 = icmp eq i32 %1, 5 %exitcond.5 = icmp eq i32 %6, 6 %14 = insertelement <8 x i32> %8, i32 %2, i64 1 %15 = insertelement <8 x i32> %14, i32 %1, i64 2 %16 = shufflevector <8 x i32> %15, <8 x i32> %10, <8 x i32> <i32 0, i32 1, i32 2, i32 8, i32 poison, i32 poison, i32 poison, i32 poison> %17 = shufflevector <8 x i32> %16, <8 x i32> poison, <8 x i32> <i32 0, i32 1, i32 0, i32 2, i32 0, i32 0, i32 3, i32 0> %18 = icmp eq <8 x i32> %17, <i32 36, i32 6, i32 48, i32 6, i32 7, i32 14, i32 7, i32 28> %cmp5.5.6 = icmp eq i32 %0, 42 %exitcond24.6 = icmp eq i32 %2, 7 %cmp5.7.6 = icmp eq i32 %0, 56 %exitcond25.6 = icmp eq i32 %1, 7 %19 = icmp eq <2 x i32> %5, <i32 8, i32 8> %exitcond24.7 = icmp eq i32 %2, 8 %cmp5.7.7 = icmp eq i32 %0, 64 %exitcond25.7 = icmp eq i32 %1, 8 %cmp5.8 = icmp eq i32 %0, 9 %exitcond.8 = icmp eq i32 %6, 9 %exitcond23.8 = icmp eq i32 %7, 9 %cmp5.5.8 = icmp eq i32 %0, 54 %exitcond24.8 = icmp eq i32 %2, 9 %cmp5.7.8 = icmp eq i32 %0, 72 %exitcond25.8 = icmp eq i32 %1, 9 %20 = or <8 x i1> %13, %18 %21 = bitcast <8 x i1> %20 to i8 %op.rdx = icmp ne i8 %21, 0 %op.rdx98 = or i1 %op.rdx, %cmp5.3 %op.rdx99 = or i1 %exitcond, %exitcond23 %op.rdx100 = or i1 %cmp5.5, %exitcond24 %op.rdx101 = or i1 %cmp5.7, %exitcond25 %op.rdx102 = or i1 %exitcond.1, %exitcond23.1 %op.rdx103 = or i1 %cmp5.5.1, %exitcond24.1 %op.rdx104 = or i1 %cmp5.7.1, %exitcond25.1 %op.rdx105 = or i1 %cmp5.2, %exitcond.2 %op.rdx106 = or i1 %exitcond23.2, %cmp5.5.2 %op.rdx107 = or i1 %exitcond24.2, %cmp5.7.2 %op.rdx108 = or i1 %exitcond25.2, %exitcond.3 %op.rdx109 = or i1 %exitcond23.3, %exitcond24.3 %op.rdx110 = or i1 %exitcond24.4, %cmp5.7.4 %op.rdx111 = or i1 %exitcond25.4, %exitcond.5 %22 = and i32 %7, -2 %op.rdx112 = icmp eq i32 %22, 6 %op.rdx113 = or i1 %cmp5.5.6, %exitcond24.6 %op.rdx114 = or i1 %cmp5.7.6, %exitcond25.6 %shift = shufflevector <2 x i1> %19, <2 x i1> poison, <2 x i32> <i32 1, i32 poison> %23 = or <2 x i1> %19, %shift %op.rdx115 = extractelement <2 x i1> %23, i64 0 %op.rdx116 = or i1 %exitcond24.7, %cmp5.7.7 %op.rdx117 = or i1 %exitcond25.7, %cmp5.8 %op.rdx118 = or i1 %exitcond.8, %exitcond23.8 %op.rdx119 = or i1 %cmp5.5.8, %exitcond24.8 %op.rdx120 = or i1 %cmp5.7.8, %exitcond25.8 %op.rdx121 = or i1 %op.rdx98, %op.rdx99 %op.rdx122 = or i1 %op.rdx100, %op.rdx101 %op.rdx123 = or i1 %op.rdx102, %op.rdx103 %op.rdx124 = or i1 %op.rdx104, %op.rdx105 %op.rdx125 = or i1 %op.rdx106, %op.rdx107 %op.rdx126 = or i1 %op.rdx108, %op.rdx109 %op.rdx127 = or i1 %op.rdx110, %op.rdx111 %op.rdx128 = or i1 %op.rdx112, %op.rdx113 %op.rdx129 = or i1 %op.rdx114, %op.rdx115 %op.rdx130 = or i1 %op.rdx116, %op.rdx117 %op.rdx131 = or i1 %op.rdx118, %op.rdx119 %op.rdx132 = or i1 %op.rdx121, %op.rdx122 %op.rdx133 = or i1 %op.rdx123, %op.rdx124 %op.rdx134 = or i1 %op.rdx125, %op.rdx126 %op.rdx135 = or i1 %op.rdx127, %op.rdx128 %op.rdx136 = or i1 %op.rdx129, %op.rdx130 %op.rdx137 = or i1 %op.rdx131, %op.rdx120 %op.rdx138 = or i1 %op.rdx132, %op.rdx133 %op.rdx139 = or i1 %op.rdx134, %op.rdx135 %op.rdx140 = or i1 %op.rdx136, %op.rdx137 %op.rdx141 = or i1 %op.rdx138, %op.rdx139 %op.rdx142 = or i1 %op.rdx141, %op.rdx140 br i1 %op.rdx142, label %cleanup9, label %cleanup13 cleanup9: ; preds = %entry, %for.cond1.1 br label %cleanup13 cleanup13: ; preds = %for.cond1.1, %cleanup9 %str.sink = phi ptr [ @str, %cleanup9 ], [ @str.3, %for.cond1.1 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(void){ int N; scanf("%d", &N); int fl = 0; for(int i=1; i<10; i++){ if(N%i == 0 && N/i < 10){ fl = 1; break; } } if(fl){ printf("Yes"); }else{ printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136292/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136292/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { land.lhs.true: %N = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N) %0 = load i32, ptr %N, align 4, !tbaa !5 %cmp2 = icmp slt i32 %0, 10 br i1 %cmp2, label %if.then3, label %for.inc for.inc: ; preds = %land.lhs.true %1 = and i32 %0, 1 %cmp1.1 = icmp eq i32 %1, 0 %cmp2.1 = icmp ult i32 %0, 20 %or.cond = and i1 %cmp1.1, %cmp2.1 br i1 %or.cond, label %if.then3, label %for.inc.1 for.inc.1: ; preds = %for.inc %rem.213 = urem i32 %0, 3 %cmp1.2 = icmp eq i32 %rem.213, 0 %cmp2.2 = icmp ult i32 %0, 30 %or.cond18 = and i1 %cmp1.2, %cmp2.2 br i1 %or.cond18, label %if.then3, label %for.inc.2 for.inc.2: ; preds = %for.inc.1 %2 = and i32 %0, 3 %cmp1.3 = icmp eq i32 %2, 0 %cmp2.3 = icmp ult i32 %0, 40 %or.cond19 = and i1 %cmp1.3, %cmp2.3 br i1 %or.cond19, label %if.then3, label %for.inc.3 for.inc.3: ; preds = %for.inc.2 %rem.414 = urem i32 %0, 5 %cmp1.4 = icmp eq i32 %rem.414, 0 %cmp2.4 = icmp ult i32 %0, 50 %or.cond20 = and i1 %cmp1.4, %cmp2.4 br i1 %or.cond20, label %if.then3, label %for.inc.4 for.inc.4: ; preds = %for.inc.3 %rem.515 = urem i32 %0, 6 %cmp1.5 = icmp eq i32 %rem.515, 0 %cmp2.5 = icmp ult i32 %0, 60 %or.cond21 = and i1 %cmp1.5, %cmp2.5 br i1 %or.cond21, label %if.then3, label %for.inc.5 for.inc.5: ; preds = %for.inc.4 %rem.616 = urem i32 %0, 7 %cmp1.6 = icmp eq i32 %rem.616, 0 %cmp2.6 = icmp ult i32 %0, 70 %or.cond22 = and i1 %cmp1.6, %cmp2.6 br i1 %or.cond22, label %if.then3, label %for.inc.6 for.inc.6: ; preds = %for.inc.5 %3 = and i32 %0, 7 %cmp1.7 = icmp eq i32 %3, 0 %cmp2.7 = icmp ult i32 %0, 80 %or.cond23 = and i1 %cmp1.7, %cmp2.7 br i1 %or.cond23, label %if.then3, label %for.inc.7 for.inc.7: ; preds = %for.inc.6 %rem.817 = urem i32 %0, 9 %cmp1.8 = icmp eq i32 %rem.817, 0 %cmp2.8 = icmp ult i32 %0, 90 %or.cond24 = and i1 %cmp1.8, %cmp2.8 br i1 %or.cond24, label %if.then3, label %if.end6 if.then3: ; preds = %for.inc.7, %for.inc.6, %for.inc.5, %for.inc.4, %for.inc.3, %for.inc.2, %for.inc.1, %for.inc, %land.lhs.true br label %if.end6 if.end6: ; preds = %for.inc.7, %if.then3 %.str.2.sink = phi ptr [ @.str.1, %if.then3 ], [ @.str.2, %for.inc.7 ] %call5 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(int argc, const char * argv[]) { unsigned int N; int Number[9] = {1, 2, 3, 4, 5, 6, 7, 8, 9}; int Result[100]; scanf("%u", &N); for (int i = 0; i < 9; i++) { for (int j = 0; j < 9; j++) { Result[i * 9 + j] = Number[i] * Number[j]; if (N == Result[i * 9 + j]) { printf("Yes"); return 0; } } } printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136335/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136335/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 [3 x i8] c"%u\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 @reltable.main = private unnamed_addr constant [81 x i32] [i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.main to i64)) to i32)], align 4 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main(i32 noundef %argc, ptr nocapture noundef readnone %argv) local_unnamed_addr #0 { entry: %N = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N) %0 = load i32, ptr %N, align 4, !tbaa !5 %switch.tableidx = add i32 %0, -1 %1 = icmp ult i32 %switch.tableidx, 81 br i1 %1, label %switch.lookup, label %cleanup22 switch.lookup: ; preds = %entry %2 = sext i32 %switch.tableidx to i64 %reltable.shift = shl i64 %2, 2 %reltable.intrinsic = call ptr @llvm.load.relative.i64(ptr @reltable.main, i64 %reltable.shift) br label %cleanup22 cleanup22: ; preds = %switch.lookup, %entry %.str.1.sink = phi ptr [ @.str.2, %entry ], [ %reltable.intrinsic, %switch.lookup ] %call15 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read) declare ptr @llvm.load.relative.i64(ptr, i64) #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(){ int n; scanf("%d",&n); for(int i=1;i<=9;i++)for(int j=1;j<=9;j++)if(i*j==n){ puts("Yes"); return 0; } puts("No"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136379/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136379/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %.off = add i32 %0, -1 %switch = icmp ult i32 %.off, 2 br i1 %switch, label %cleanup9, label %for.cond1.1 for.cond1.1: ; preds = %entry %1 = mul i32 %0, 954437177 %2 = mul i32 %0, -1227133513 %3 = insertelement <2 x i32> poison, i32 %0, i64 0 %4 = shufflevector <2 x i32> %3, <2 x i32> poison, <2 x i32> zeroinitializer %5 = mul <2 x i32> %4, <i32 -1431655765, i32 -858993459> %6 = extractelement <2 x i32> %5, i64 0 %exitcond = icmp eq i32 %6, 1 %cmp5.3 = icmp eq i32 %0, 4 %7 = extractelement <2 x i32> %5, i64 1 %exitcond23 = icmp eq i32 %7, 1 %cmp5.5 = icmp eq i32 %0, 6 %exitcond24 = icmp eq i32 %2, 1 %cmp5.7 = icmp eq i32 %0, 8 %exitcond25 = icmp eq i32 %1, 1 %exitcond.1 = icmp eq i32 %6, 2 %exitcond23.1 = icmp eq i32 %7, 2 %cmp5.5.1 = icmp eq i32 %0, 12 %exitcond24.1 = icmp eq i32 %2, 2 %cmp5.7.1 = icmp eq i32 %0, 16 %exitcond25.1 = icmp eq i32 %1, 2 %cmp5.2 = icmp eq i32 %0, 3 %exitcond.2 = icmp eq i32 %6, 3 %exitcond23.2 = icmp eq i32 %7, 3 %cmp5.5.2 = icmp eq i32 %0, 18 %exitcond24.2 = icmp eq i32 %2, 3 %cmp5.7.2 = icmp eq i32 %0, 24 %exitcond25.2 = icmp eq i32 %1, 3 %exitcond.3 = icmp eq i32 %6, 4 %exitcond23.3 = icmp eq i32 %7, 4 %exitcond24.3 = icmp eq i32 %2, 4 %8 = insertelement <8 x i32> poison, i32 %0, i64 0 %9 = insertelement <8 x i32> %8, i32 %1, i64 1 %10 = shufflevector <2 x i32> %5, <2 x i32> poison, <8 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison> %11 = shufflevector <8 x i32> %9, <8 x i32> %10, <8 x i32> <i32 0, i32 1, i32 8, i32 9, i32 poison, i32 poison, i32 poison, i32 poison> %12 = shufflevector <8 x i32> %11, <8 x i32> poison, <8 x i32> <i32 0, i32 1, i32 0, i32 0, i32 2, i32 0, i32 3, i32 0> %13 = icmp eq <8 x i32> %12, <i32 32, i32 4, i32 5, i32 10, i32 5, i32 20, i32 5, i32 30> %exitcond24.4 = icmp eq i32 %2, 5 %cmp5.7.4 = icmp eq i32 %0, 40 %exitcond25.4 = icmp eq i32 %1, 5 %exitcond.5 = icmp eq i32 %6, 6 %14 = insertelement <8 x i32> %8, i32 %2, i64 1 %15 = insertelement <8 x i32> %14, i32 %1, i64 2 %16 = shufflevector <8 x i32> %15, <8 x i32> %10, <8 x i32> <i32 0, i32 1, i32 2, i32 8, i32 poison, i32 poison, i32 poison, i32 poison> %17 = shufflevector <8 x i32> %16, <8 x i32> poison, <8 x i32> <i32 0, i32 1, i32 0, i32 2, i32 0, i32 0, i32 3, i32 0> %18 = icmp eq <8 x i32> %17, <i32 36, i32 6, i32 48, i32 6, i32 7, i32 14, i32 7, i32 28> %cmp5.5.6 = icmp eq i32 %0, 42 %exitcond24.6 = icmp eq i32 %2, 7 %cmp5.7.6 = icmp eq i32 %0, 56 %exitcond25.6 = icmp eq i32 %1, 7 %19 = icmp eq <2 x i32> %5, <i32 8, i32 8> %exitcond24.7 = icmp eq i32 %2, 8 %cmp5.7.7 = icmp eq i32 %0, 64 %exitcond25.7 = icmp eq i32 %1, 8 %cmp5.8 = icmp eq i32 %0, 9 %exitcond.8 = icmp eq i32 %6, 9 %exitcond23.8 = icmp eq i32 %7, 9 %cmp5.5.8 = icmp eq i32 %0, 54 %exitcond24.8 = icmp eq i32 %2, 9 %cmp5.7.8 = icmp eq i32 %0, 72 %exitcond25.8 = icmp eq i32 %1, 9 %20 = or <8 x i1> %13, %18 %21 = bitcast <8 x i1> %20 to i8 %op.rdx = icmp ne i8 %21, 0 %op.rdx98 = or i1 %op.rdx, %cmp5.3 %op.rdx99 = or i1 %exitcond, %exitcond23 %op.rdx100 = or i1 %cmp5.5, %exitcond24 %op.rdx101 = or i1 %cmp5.7, %exitcond25 %op.rdx102 = or i1 %exitcond.1, %exitcond23.1 %op.rdx103 = or i1 %cmp5.5.1, %exitcond24.1 %op.rdx104 = or i1 %cmp5.7.1, %exitcond25.1 %op.rdx105 = or i1 %cmp5.2, %exitcond.2 %op.rdx106 = or i1 %exitcond23.2, %cmp5.5.2 %op.rdx107 = or i1 %exitcond24.2, %cmp5.7.2 %op.rdx108 = or i1 %exitcond25.2, %exitcond.3 %op.rdx109 = or i1 %exitcond23.3, %exitcond24.3 %op.rdx110 = or i1 %exitcond24.4, %cmp5.7.4 %op.rdx111 = or i1 %exitcond25.4, %exitcond.5 %22 = and i32 %7, -2 %op.rdx112 = icmp eq i32 %22, 6 %op.rdx113 = or i1 %cmp5.5.6, %exitcond24.6 %op.rdx114 = or i1 %cmp5.7.6, %exitcond25.6 %shift = shufflevector <2 x i1> %19, <2 x i1> poison, <2 x i32> <i32 1, i32 poison> %23 = or <2 x i1> %19, %shift %op.rdx115 = extractelement <2 x i1> %23, i64 0 %op.rdx116 = or i1 %exitcond24.7, %cmp5.7.7 %op.rdx117 = or i1 %exitcond25.7, %cmp5.8 %op.rdx118 = or i1 %exitcond.8, %exitcond23.8 %op.rdx119 = or i1 %cmp5.5.8, %exitcond24.8 %op.rdx120 = or i1 %cmp5.7.8, %exitcond25.8 %op.rdx121 = or i1 %op.rdx98, %op.rdx99 %op.rdx122 = or i1 %op.rdx100, %op.rdx101 %op.rdx123 = or i1 %op.rdx102, %op.rdx103 %op.rdx124 = or i1 %op.rdx104, %op.rdx105 %op.rdx125 = or i1 %op.rdx106, %op.rdx107 %op.rdx126 = or i1 %op.rdx108, %op.rdx109 %op.rdx127 = or i1 %op.rdx110, %op.rdx111 %op.rdx128 = or i1 %op.rdx112, %op.rdx113 %op.rdx129 = or i1 %op.rdx114, %op.rdx115 %op.rdx130 = or i1 %op.rdx116, %op.rdx117 %op.rdx131 = or i1 %op.rdx118, %op.rdx119 %op.rdx132 = or i1 %op.rdx121, %op.rdx122 %op.rdx133 = or i1 %op.rdx123, %op.rdx124 %op.rdx134 = or i1 %op.rdx125, %op.rdx126 %op.rdx135 = or i1 %op.rdx127, %op.rdx128 %op.rdx136 = or i1 %op.rdx129, %op.rdx130 %op.rdx137 = or i1 %op.rdx131, %op.rdx120 %op.rdx138 = or i1 %op.rdx132, %op.rdx133 %op.rdx139 = or i1 %op.rdx134, %op.rdx135 %op.rdx140 = or i1 %op.rdx136, %op.rdx137 %op.rdx141 = or i1 %op.rdx138, %op.rdx139 %op.rdx142 = or i1 %op.rdx141, %op.rdx140 br i1 %op.rdx142, label %cleanup9, label %cleanup13 cleanup9: ; preds = %entry, %for.cond1.1 br label %cleanup13 cleanup13: ; preds = %for.cond1.1, %cleanup9 %.str.1.sink = phi ptr [ @.str.1, %cleanup9 ], [ @.str.2, %for.cond1.1 ] %call6 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.1.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> int main(void){ int N; scanf("%d", &N); int a, b; for(int i=1; i<10; i++){ a=N/i; b=N%i; if(b==0&&a<10){ printf("Yes"); break; }else if(i==9&&b!=0){ printf("No"); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136421/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136421/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %N = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N) %0 = load i32, ptr %N, align 4, !tbaa !5 %cmp2 = icmp slt i32 %0, 10 br i1 %cmp2, label %cleanup.sink.split, label %for.inc for.inc: ; preds = %entry %1 = and i32 %0, 1 %cmp1.1 = icmp eq i32 %1, 0 %cmp2.1 = icmp ult i32 %0, 20 %or.cond.1 = and i1 %cmp2.1, %cmp1.1 br i1 %or.cond.1, label %cleanup.sink.split, label %for.inc.1 for.inc.1: ; preds = %for.inc %rem.220 = urem i32 %0, 3 %cmp1.2 = icmp eq i32 %rem.220, 0 %cmp2.2 = icmp ult i32 %0, 30 %or.cond.2 = and i1 %cmp2.2, %cmp1.2 br i1 %or.cond.2, label %cleanup.sink.split, label %for.inc.2 for.inc.2: ; preds = %for.inc.1 %2 = and i32 %0, 3 %cmp1.3 = icmp eq i32 %2, 0 %cmp2.3 = icmp ult i32 %0, 40 %or.cond.3 = and i1 %cmp2.3, %cmp1.3 br i1 %or.cond.3, label %cleanup.sink.split, label %for.inc.3 for.inc.3: ; preds = %for.inc.2 %rem.421 = urem i32 %0, 5 %cmp1.4 = icmp eq i32 %rem.421, 0 %cmp2.4 = icmp ult i32 %0, 50 %or.cond.4 = and i1 %cmp2.4, %cmp1.4 br i1 %or.cond.4, label %cleanup.sink.split, label %for.inc.4 for.inc.4: ; preds = %for.inc.3 %rem.522 = urem i32 %0, 6 %cmp1.5 = icmp eq i32 %rem.522, 0 %cmp2.5 = icmp ult i32 %0, 60 %or.cond.5 = and i1 %cmp2.5, %cmp1.5 br i1 %or.cond.5, label %cleanup.sink.split, label %for.inc.5 for.inc.5: ; preds = %for.inc.4 %rem.623 = urem i32 %0, 7 %cmp1.6 = icmp eq i32 %rem.623, 0 %cmp2.6 = icmp ult i32 %0, 70 %or.cond.6 = and i1 %cmp2.6, %cmp1.6 br i1 %or.cond.6, label %cleanup.sink.split, label %for.inc.6 for.inc.6: ; preds = %for.inc.5 %3 = and i32 %0, 7 %cmp1.7 = icmp eq i32 %3, 0 %cmp2.7 = icmp ult i32 %0, 80 %or.cond.7 = and i1 %cmp2.7, %cmp1.7 br i1 %or.cond.7, label %cleanup.sink.split, label %for.inc.7 for.inc.7: ; preds = %for.inc.6 %rem.824 = urem i32 %0, 9 %cmp1.8 = icmp eq i32 %rem.824, 0 %cmp2.8 = icmp ult i32 %0, 90 %or.cond.8 = and i1 %cmp2.8, %cmp1.8 br i1 %or.cond.8, label %cleanup.sink.split, label %if.else.8 if.else.8: ; preds = %for.inc.7 %cmp6.8.not = icmp eq i32 %rem.824, 0 br i1 %cmp6.8.not, label %cleanup, label %cleanup.sink.split cleanup.sink.split: ; preds = %if.else.8, %entry, %for.inc, %for.inc.1, %for.inc.2, %for.inc.3, %for.inc.4, %for.inc.5, %for.inc.6, %for.inc.7 %.str.2.sink = phi ptr [ @.str.1, %for.inc.7 ], [ @.str.1, %for.inc.6 ], [ @.str.1, %for.inc.5 ], [ @.str.1, %for.inc.4 ], [ @.str.1, %for.inc.3 ], [ @.str.1, %for.inc.2 ], [ @.str.1, %for.inc.1 ], [ @.str.1, %for.inc ], [ @.str.1, %entry ], [ @.str.2, %if.else.8 ] %call8.8 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink) br label %cleanup cleanup: ; preds = %cleanup.sink.split, %if.else.8 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main (void) { int A,B,C; B = 0; C = 0; scanf("%d", &A); //printf("入力値 A=%d,B=%d\n",A,B); for(int i = 1;i < 10;i++){ for(int j = 1;j < 10;j++){ B = i *j ; if(B == A){ C = 1; break; } if(B == A){ C = 1; break; } } } if(C == 1){ printf("Yes"); } else{ printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136465/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136465/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %A = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %A) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %A) %0 = load i32, ptr %A, align 4, !tbaa !5 switch i32 %0, label %for.cond1.2.2 [ i32 1, label %for.cond1.1.2.thread109 i32 2, label %for.cond1.1.2.thread109 i32 3, label %if.end17 i32 4, label %for.cond1.1.2.thread109 i32 5, label %for.cond1.1.2.thread109 i32 6, label %if.end17 i32 7, label %for.cond1.1.2.thread109 i32 8, label %for.cond1.1.2.thread109 i32 9, label %if.end17 i32 10, label %for.cond1.1.2.thread109 i32 12, label %for.cond1.1.2.thread109 i32 14, label %for.cond1.1.2.thread109 i32 16, label %for.cond1.1.2.thread109 i32 18, label %for.cond1.1.2.thread109 ] for.cond1.1.2.thread109: ; preds = %entry, %entry, %entry, %entry, %entry, %entry, %entry, %entry, %entry, %entry, %entry br label %for.cond1.2.2 for.cond1.2.2: ; preds = %entry, %for.cond1.1.2.thread109 %spec.select = phi ptr [ @.str.1, %for.cond1.1.2.thread109 ], [ @.str.2, %entry ] %switch.tableidx = add i32 %0, -4 %1 = icmp ult i32 %switch.tableidx, 60 br i1 %1, label %switch.hole_check, label %cleanup.6 cleanup.6: ; preds = %switch.hole_check, %for.cond1.2.2 switch i32 %0, label %cleanup.8 [ i32 9, label %if.end17 i32 81, label %if.end17 i32 64, label %if.end17 i32 72, label %if.end17 ] cleanup.8: ; preds = %cleanup.6 br label %if.end17 switch.hole_check: ; preds = %for.cond1.2.2 %switch.maskindex = zext i32 %switch.tableidx to i64 %switch.shifted = lshr i64 582145577822936415, %switch.maskindex %2 = and i64 %switch.shifted, 1 %switch.lobit.not = icmp eq i64 %2, 0 br i1 %switch.lobit.not, label %cleanup.6, label %if.end17 if.end17: ; preds = %switch.hole_check, %cleanup.8, %entry, %entry, %entry, %cleanup.6, %cleanup.6, %cleanup.6, %cleanup.6 %.str.2.sink = phi ptr [ @.str.1, %cleanup.6 ], [ @.str.1, %cleanup.6 ], [ @.str.1, %cleanup.6 ], [ @.str.1, %cleanup.6 ], [ @.str.1, %entry ], [ @.str.1, %entry ], [ @.str.1, %entry ], [ %spec.select, %cleanup.8 ], [ @.str.1, %switch.hole_check ] %call16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %A) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> typedef unsigned long long ll; #define length 100000 //10万 #define kw_len 10 ll factor[300]; ll memory[300]; /*素朴法で計算 factorは必ずmemset(factor,0,sizeof(factor)); グローバルであるmemoryに個数を書き込む memory配列の走査にはfactorの要素を使う*/ void primefac(ll num){ int i = 0,kosuu=0; while(*(factor+i) != 0){ while(num % *(factor+i)==0){ num /= *(factor+i); memory[*(factor+i)] +=1; } if(num==1)break; i++; } } /*グローバルにあるfactorに素数書き込む.個数を返すので配列は-1しろ*/ int elast(ll number){ ll tmp=0; int flag=0; *factor = 2; for(int i=3;i <= number;i++){ flag=0; for(int j=0;j <= tmp ;j++){ if(i % (*(factor+j)) == 0){ flag=1; break; } } if(flag)continue; tmp += 1; *(factor+tmp) = i; } return tmp+2; } int compare(const int*a,const int *b){ if(*a<*b) return -1; else if(*a>*b) return 1; return 0; } ll nCr(int n,int r){ ll val=1; int i; if(r==0)return 1; for(i=0;i<n-r;i++){ val *= (n-i); val /= (i+1); } return val; } ll nPr(int n,int r){ ll val=1; int i; for(i=0;i<r;i++){ val *= (n-i); } return val; } /* qsort(array,length,sizeof(int),(int(*)(const int*, const int*))compare); 使う時これをコピペ */ int main(){ int N,K,i,j,A=1,B; int *inp; char *chp; ll sum=0; scanf("%d",&N); if(N>81){ puts("No"); return 0; } for(i=2;i<=9;i++){ if(N%i==0){ A = i; } } if((N / A)<10){ puts("Yes"); return 0; } puts("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136508/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136508/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" @factor = dso_local local_unnamed_addr global [300 x i64] zeroinitializer, align 16 @memory = dso_local local_unnamed_addr global [300 x i64] zeroinitializer, align 16 @.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [3 x i8] c"No\00", align 1 @.str.2 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, argmem: none, inaccessiblemem: none) uwtable define dso_local void @primefac(i64 noundef %num) local_unnamed_addr #0 { entry: %0 = load i64, ptr @factor, align 16, !tbaa !5 %cmp.not22 = icmp eq i64 %0, 0 br i1 %cmp.not22, label %while.end11, label %while.cond1.preheader while.cond: ; preds = %while.end %indvars.iv.next = add nuw i64 %indvars.iv, 1 %add.ptr = getelementptr inbounds i64, ptr @factor, i64 %indvars.iv.next %1 = load i64, ptr %add.ptr, align 8, !tbaa !5 %cmp.not = icmp eq i64 %1, 0 br i1 %cmp.not, label %while.end11, label %while.cond1.preheader, !llvm.loop !9 while.cond1.preheader: ; preds = %entry, %while.cond %indvars.iv = phi i64 [ %indvars.iv.next, %while.cond ], [ 0, %entry ] %2 = phi i64 [ %1, %while.cond ], [ %0, %entry ] %num.addr.024 = phi i64 [ %num.addr.1.lcssa, %while.cond ], [ %num, %entry ] %rem18 = urem i64 %num.addr.024, %2 %cmp419 = icmp eq i64 %rem18, 0 br i1 %cmp419, label %while.body5.lr.ph, label %while.end while.body5.lr.ph: ; preds = %while.cond1.preheader %arrayidx = getelementptr inbounds [300 x i64], ptr @memory, i64 0, i64 %2 %arrayidx.promoted = load i64, ptr %arrayidx, align 8, !tbaa !5 br label %while.body5 while.body5: ; preds = %while.body5.lr.ph, %while.body5 %add21 = phi i64 [ %arrayidx.promoted, %while.body5.lr.ph ], [ %add, %while.body5 ] %num.addr.120 = phi i64 [ %num.addr.024, %while.body5.lr.ph ], [ %div, %while.body5 ] %div = udiv i64 %num.addr.120, %2 %add = add i64 %add21, 1 %rem = urem i64 %div, %2 %cmp4 = icmp eq i64 %rem, 0 br i1 %cmp4, label %while.body5, label %while.cond1.while.end_crit_edge, !llvm.loop !11 while.cond1.while.end_crit_edge: ; preds = %while.body5 store i64 %add, ptr %arrayidx, align 8, !tbaa !5 br label %while.end while.end: ; preds = %while.cond1.while.end_crit_edge, %while.cond1.preheader %num.addr.1.lcssa = phi i64 [ %div, %while.cond1.while.end_crit_edge ], [ %num.addr.024, %while.cond1.preheader ] %cmp10 = icmp eq i64 %num.addr.1.lcssa, 1 br i1 %cmp10, label %while.end11, label %while.cond while.end11: ; preds = %while.cond, %while.end, %entry ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, argmem: none, inaccessiblemem: none) uwtable define dso_local i32 @elast(i64 noundef %number) local_unnamed_addr #0 { entry: store i64 2, ptr @factor, align 16, !tbaa !5 %cmp.not33 = icmp ult i64 %number, 3 br i1 %cmp.not33, label %for.cond.cleanup, label %for.cond2.preheader for.cond2.preheader: ; preds = %entry, %for.inc15 %indvars.iv38 = phi i64 [ %indvars.iv.next39, %for.inc15 ], [ 3, %entry ] %tmp.034 = phi i64 [ %tmp.1, %for.inc15 ], [ 0, %entry ] %0 = add i64 %tmp.034, 1 br label %for.body7 for.cond.cleanup.loopexit: ; preds = %for.inc15 %1 = trunc i64 %tmp.1 to i32 %2 = add i32 %1, 2 br label %for.cond.cleanup for.cond.cleanup: ; preds = %for.cond.cleanup.loopexit, %entry %tmp.0.lcssa = phi i32 [ 2, %entry ], [ %2, %for.cond.cleanup.loopexit ] ret i32 %tmp.0.lcssa for.cond2: ; preds = %for.body7 %indvars.iv.next = add nuw i64 %indvars.iv, 1 %exitcond = icmp eq i64 %indvars.iv, %tmp.034 br i1 %exitcond, label %if.end12, label %for.body7, !llvm.loop !12 for.body7: ; preds = %for.cond2.preheader, %for.cond2 %indvars.iv = phi i64 [ 0, %for.cond2.preheader ], [ %indvars.iv.next, %for.cond2 ] %add.ptr = getelementptr inbounds i64, ptr @factor, i64 %indvars.iv %3 = load i64, ptr %add.ptr, align 8, !tbaa !5 %rem = urem i64 %indvars.iv38, %3 %cmp9 = icmp eq i64 %rem, 0 br i1 %cmp9, label %for.inc15, label %for.cond2 if.end12: ; preds = %for.cond2 %add.ptr14 = getelementptr inbounds i64, ptr @factor, i64 %0 store i64 %indvars.iv38, ptr %add.ptr14, align 8, !tbaa !5 br label %for.inc15 for.inc15: ; preds = %for.body7, %if.end12 %tmp.1 = phi i64 [ %0, %if.end12 ], [ %tmp.034, %for.body7 ] %indvars.iv.next39 = add nuw nsw i64 %indvars.iv38, 1 %exitcond41 = icmp eq i64 %indvars.iv38, %number br i1 %exitcond41, label %for.cond.cleanup.loopexit, label %for.cond2.preheader, !llvm.loop !13 } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @compare(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #2 { entry: %0 = load i32, ptr %a, align 4, !tbaa !14 %1 = load i32, ptr %b, align 4, !tbaa !14 %cmp = icmp slt i32 %0, %1 %cmp1 = icmp sgt i32 %0, %1 %. = zext i1 %cmp1 to i32 %retval.0 = select i1 %cmp, i32 -1, i32 %. ret i32 %retval.0 } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i64 @nCr(i32 noundef %n, i32 noundef %r) local_unnamed_addr #3 { entry: %cmp = icmp eq i32 %r, 0 br i1 %cmp, label %cleanup, label %for.cond.preheader for.cond.preheader: ; preds = %entry %sub = sub nsw i32 %n, %r %cmp112 = icmp sgt i32 %sub, 0 br i1 %cmp112, label %for.body.preheader, label %cleanup for.body.preheader: ; preds = %for.cond.preheader %0 = sext i32 %n to i64 %wide.trip.count = zext i32 %sub to i64 %xtraiter = and i64 %wide.trip.count, 1 %1 = icmp eq i32 %sub, 1 br i1 %1, label %cleanup.loopexit.unr-lcssa, label %for.body.preheader.new for.body.preheader.new: ; preds = %for.body.preheader %unroll_iter = and i64 %wide.trip.count, 4294967294 br label %for.body for.body: ; preds = %for.body, %for.body.preheader.new %indvars.iv = phi i64 [ 0, %for.body.preheader.new ], [ %indvars.iv.next.1, %for.body ] %val.013 = phi i64 [ 1, %for.body.preheader.new ], [ %div.1, %for.body ] %niter = phi i64 [ 0, %for.body.preheader.new ], [ %niter.next.1, %for.body ] %2 = sub nsw i64 %0, %indvars.iv %mul = mul i64 %val.013, %2 %indvars.iv.next = or i64 %indvars.iv, 1 %div = udiv i64 %mul, %indvars.iv.next %3 = sub nsw i64 %0, %indvars.iv.next %mul.1 = mul i64 %div, %3 %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2 %div.1 = udiv i64 %mul.1, %indvars.iv.next.1 %niter.next.1 = add i64 %niter, 2 %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter br i1 %niter.ncmp.1, label %cleanup.loopexit.unr-lcssa, label %for.body, !llvm.loop !16 cleanup.loopexit.unr-lcssa: ; preds = %for.body, %for.body.preheader %div.lcssa.ph = phi i64 [ undef, %for.body.preheader ], [ %div.1, %for.body ] %indvars.iv.unr = phi i64 [ 0, %for.body.preheader ], [ %indvars.iv.next.1, %for.body ] %val.013.unr = phi i64 [ 1, %for.body.preheader ], [ %div.1, %for.body ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %cleanup, label %for.body.epil for.body.epil: ; preds = %cleanup.loopexit.unr-lcssa %4 = sub nsw i64 %0, %indvars.iv.unr %mul.epil = mul i64 %val.013.unr, %4 %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.unr, 1 %div.epil = udiv i64 %mul.epil, %indvars.iv.next.epil br label %cleanup cleanup: ; preds = %for.body.epil, %cleanup.loopexit.unr-lcssa, %for.cond.preheader, %entry %retval.0 = phi i64 [ 1, %entry ], [ 1, %for.cond.preheader ], [ %div.lcssa.ph, %cleanup.loopexit.unr-lcssa ], [ %div.epil, %for.body.epil ] ret i64 %retval.0 } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i64 @nPr(i32 noundef %n, i32 noundef %r) local_unnamed_addr #3 { entry: %cmp4 = icmp sgt i32 %r, 0 br i1 %cmp4, label %for.body.preheader, label %for.end for.body.preheader: ; preds = %entry %0 = sext i32 %n to i64 %wide.trip.count = zext i32 %r to i64 %xtraiter = and i64 %wide.trip.count, 7 %1 = icmp ult i32 %r, 8 br i1 %1, label %for.end.loopexit.unr-lcssa, label %for.body.preheader.new for.body.preheader.new: ; preds = %for.body.preheader %unroll_iter = and i64 %wide.trip.count, 4294967288 br label %for.body for.body: ; preds = %for.body, %for.body.preheader.new %indvars.iv = phi i64 [ 0, %for.body.preheader.new ], [ %indvars.iv.next.7, %for.body ] %val.05 = phi i64 [ 1, %for.body.preheader.new ], [ %mul.7, %for.body ] %niter = phi i64 [ 0, %for.body.preheader.new ], [ %niter.next.7, %for.body ] %2 = sub nsw i64 %0, %indvars.iv %mul = mul i64 %val.05, %2 %indvars.iv.next.neg = xor i64 %indvars.iv, -1 %3 = add i64 %indvars.iv.next.neg, %0 %mul.1 = mul i64 %mul, %3 %indvars.iv.next.1 = or i64 %indvars.iv, 2 %4 = sub nsw i64 %0, %indvars.iv.next.1 %mul.2 = mul i64 %mul.1, %4 %indvars.iv.next.2 = or i64 %indvars.iv, 3 %5 = sub nsw i64 %0, %indvars.iv.next.2 %mul.3 = mul i64 %mul.2, %5 %indvars.iv.next.3 = or i64 %indvars.iv, 4 %6 = sub nsw i64 %0, %indvars.iv.next.3 %mul.4 = mul i64 %mul.3, %6 %indvars.iv.next.4 = or i64 %indvars.iv, 5 %7 = sub nsw i64 %0, %indvars.iv.next.4 %mul.5 = mul i64 %mul.4, %7 %indvars.iv.next.5 = or i64 %indvars.iv, 6 %8 = sub nsw i64 %0, %indvars.iv.next.5 %mul.6 = mul i64 %mul.5, %8 %indvars.iv.next.6 = or i64 %indvars.iv, 7 %9 = sub nsw i64 %0, %indvars.iv.next.6 %mul.7 = mul i64 %mul.6, %9 %indvars.iv.next.7 = add nuw nsw i64 %indvars.iv, 8 %niter.next.7 = add i64 %niter, 8 %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter br i1 %niter.ncmp.7, label %for.end.loopexit.unr-lcssa, label %for.body, !llvm.loop !17 for.end.loopexit.unr-lcssa: ; preds = %for.body, %for.body.preheader %mul.lcssa.ph = phi i64 [ undef, %for.body.preheader ], [ %mul.7, %for.body ] %indvars.iv.unr = phi i64 [ 0, %for.body.preheader ], [ %indvars.iv.next.7, %for.body ] %val.05.unr = phi i64 [ 1, %for.body.preheader ], [ %mul.7, %for.body ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %for.end, label %for.body.epil for.body.epil: ; preds = %for.end.loopexit.unr-lcssa, %for.body.epil %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %for.body.epil ], [ %indvars.iv.unr, %for.end.loopexit.unr-lcssa ] %val.05.epil = phi i64 [ %mul.epil, %for.body.epil ], [ %val.05.unr, %for.end.loopexit.unr-lcssa ] %epil.iter = phi i64 [ %epil.iter.next, %for.body.epil ], [ 0, %for.end.loopexit.unr-lcssa ] %10 = sub nsw i64 %0, %indvars.iv.epil %mul.epil = mul i64 %val.05.epil, %10 %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1 %epil.iter.next = add i64 %epil.iter, 1 %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter br i1 %epil.iter.cmp.not, label %for.end, label %for.body.epil, !llvm.loop !18 for.end: ; preds = %for.end.loopexit.unr-lcssa, %for.body.epil, %entry %val.0.lcssa = phi i64 [ 1, %entry ], [ %mul.lcssa.ph, %for.end.loopexit.unr-lcssa ], [ %mul.epil, %for.body.epil ] ret i64 %val.0.lcssa } ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #4 { entry: %N = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #6 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N) %0 = load i32, ptr %N, align 4, !tbaa !14 %cmp = icmp sgt i32 %0, 81 br i1 %cmp, label %cleanup, label %for.body.preheader for.body.preheader: ; preds = %entry %1 = and i32 %0, 1 %cmp3 = icmp eq i32 %1, 0 %spec.select = select i1 %cmp3, i32 2, i32 1 %rem.1 = srem i32 %0, 3 %cmp3.1 = icmp eq i32 %rem.1, 0 %spec.select.1 = select i1 %cmp3.1, i32 3, i32 %spec.select %2 = and i32 %0, 3 %cmp3.2 = icmp eq i32 %2, 0 %spec.select.2 = select i1 %cmp3.2, i32 4, i32 %spec.select.1 %rem.3 = srem i32 %0, 5 %cmp3.3 = icmp eq i32 %rem.3, 0 %spec.select.3 = select i1 %cmp3.3, i32 5, i32 %spec.select.2 %rem.4 = srem i32 %0, 6 %cmp3.4 = icmp eq i32 %rem.4, 0 %spec.select.4 = select i1 %cmp3.4, i32 6, i32 %spec.select.3 %rem.5 = srem i32 %0, 7 %cmp3.5 = icmp eq i32 %rem.5, 0 %spec.select.5 = select i1 %cmp3.5, i32 7, i32 %spec.select.4 %3 = and i32 %0, 7 %cmp3.6 = icmp eq i32 %3, 0 %spec.select.6 = select i1 %cmp3.6, i32 8, i32 %spec.select.5 %rem.7 = srem i32 %0, 9 %cmp3.7 = icmp eq i32 %rem.7, 0 %spec.select.7 = select i1 %cmp3.7, i32 9, i32 %spec.select.6 %div = sdiv i32 %0, %spec.select.7 %cmp6 = icmp slt i32 %div, 10 %.str.2..str.1 = select i1 %cmp6, ptr @.str.2, ptr @.str.1 br label %cleanup cleanup: ; preds = %entry, %for.body.preheader %.str.1.sink = phi ptr [ %.str.2..str.1, %for.body.preheader ], [ @.str.1, %entry ] %call10 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.1.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #6 ret i32 0 } ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #5 attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree norecurse nosync nounwind memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #5 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #6 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"long long", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10} !12 = distinct !{!12, !10} !13 = distinct !{!13, !10} !14 = !{!15, !15, i64 0} !15 = !{!"int", !7, i64 0} !16 = distinct !{!16, !10} !17 = distinct !{!17, !10} !18 = distinct !{!18, !19} !19 = !{!"llvm.loop.unroll.disable"}
/* * main.c * * Created on: 2019/07/21 * Author: family */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { int N = 0; int i = 0, ans = 0; scanf("%d", &N); for (i = 1; i < 10; i++) { int j = 0; j = N/i; if (((i * j) == N) && (j < 10)) { ans++; } else { } } if (ans != 0) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136559/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136559/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 [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %N = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #4 store i32 0, ptr %N, align 4, !tbaa !5 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N) %0 = load i32, ptr %N, align 4, !tbaa !5 %.fr = freeze i32 %0 %cmp2 = icmp slt i32 %.fr, 10 %inc = zext i1 %cmp2 to i32 %div.1 = sdiv i32 %.fr, 2 %mul.1 = shl nsw i32 %div.1, 1 %cmp1.1 = icmp eq i32 %mul.1, %.fr %cmp2.1 = icmp slt i32 %.fr, 20 %or.cond.1 = and i1 %cmp2.1, %cmp1.1 %inc.1 = zext i1 %or.cond.1 to i32 %spec.select.1 = add nuw nsw i32 %inc, %inc.1 %1 = srem i32 %.fr, 3 %cmp1.2 = icmp eq i32 %1, 0 %cmp2.2 = icmp slt i32 %.fr, 30 %or.cond.2 = and i1 %cmp2.2, %cmp1.2 %inc.2 = zext i1 %or.cond.2 to i32 %spec.select.2 = add nuw nsw i32 %spec.select.1, %inc.2 %div.3 = sdiv i32 %.fr, 4 %mul.3 = shl nsw i32 %div.3, 2 %cmp1.3 = icmp eq i32 %mul.3, %.fr %cmp2.3 = icmp slt i32 %.fr, 40 %or.cond.3 = and i1 %cmp2.3, %cmp1.3 %inc.3 = zext i1 %or.cond.3 to i32 %spec.select.3 = add nuw nsw i32 %spec.select.2, %inc.3 %2 = srem i32 %.fr, 5 %cmp1.4 = icmp eq i32 %2, 0 %cmp2.4 = icmp slt i32 %.fr, 50 %or.cond.4 = and i1 %cmp2.4, %cmp1.4 %inc.4 = zext i1 %or.cond.4 to i32 %spec.select.4 = add nuw nsw i32 %spec.select.3, %inc.4 %3 = srem i32 %.fr, 6 %cmp1.5 = icmp eq i32 %3, 0 %cmp2.5 = icmp slt i32 %.fr, 60 %or.cond.5 = and i1 %cmp2.5, %cmp1.5 %inc.5 = zext i1 %or.cond.5 to i32 %spec.select.5 = add nuw nsw i32 %spec.select.4, %inc.5 %4 = srem i32 %.fr, 7 %cmp1.6 = icmp eq i32 %4, 0 %cmp2.6 = icmp slt i32 %.fr, 70 %or.cond.6 = and i1 %cmp2.6, %cmp1.6 %inc.6 = zext i1 %or.cond.6 to i32 %spec.select.6 = add nuw nsw i32 %spec.select.5, %inc.6 %div.7 = sdiv i32 %.fr, 8 %mul.7 = shl nsw i32 %div.7, 3 %cmp1.7 = icmp eq i32 %mul.7, %.fr %cmp2.7 = icmp slt i32 %.fr, 80 %or.cond.7 = and i1 %cmp2.7, %cmp1.7 %inc.7 = zext i1 %or.cond.7 to i32 %spec.select.7 = add nuw nsw i32 %spec.select.6, %inc.7 %5 = srem i32 %.fr, 9 %cmp1.8 = icmp eq i32 %5, 0 %cmp2.8 = icmp slt i32 %.fr, 90 %or.cond.8 = and i1 %cmp2.8, %cmp1.8 %inc.8.neg = sext i1 %or.cond.8 to i32 %cmp4.not = icmp eq i32 %spec.select.7, %inc.8.neg %str.str.3 = select i1 %cmp4.not, ptr @str, ptr @str.3 %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.str.3) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
//set many funcs template //Ver.20190820 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){if(a<b){return a;}return b;} int zt(int a,int b){return max(a,b)-min(a,b);} int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;} int ceil(int a,int b){if(a%b==0){return a/b;}return (a/b)+1;} int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} int lcm(int a,int b){int c=gcd(a,b);a/=c;return a*b;} int nCr(int a,int b){int i,r=1;for(i=1;i<=b;i++){r*=(a+1-i);r/=i;}return r;} int nHr(int a,int b){return nCr(a+b-1,b);} int fact(int a){int i,r=1;for(i=1;i<=a;i++){r*=i;}return r;} int pow(int a,int b){int i,r=1;for(i=1;i<=b;i++){r*=a;}return r;} int dsum(int x){int r=0;while(x){r+=(x%10);x/=10;}return r;} int dsumb(int x,int b){int r=0;while(x){r+=(x%b);x/=b;}return r;} int sankaku(int x){return ((1+x)*x)/2;} void swap(int *a,int *b){int c;c=(*a);(*a)=(*b);(*b)=c;} long long llmax(long long a,long long b){if(a>b){return a;}return b;} long long llmin(long long a,long long b){if(a<b){return a;}return b;} long long llzt(long long a,long long b){return llmax(a,b)-llmin(a,b);} long long llround(long long a,long long b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;} long long llceil(long long a,long long b){if(a%b==0){return a/b;}return (a/b)+1;} long long llgcd(long long a,long long b){long long c;while(b!=0){c=a%b;a=b;b=c;}return a;} long long lllcm(long long a,long long b){long long c=llgcd(a,b);a/=c;return a*b;} long long llnCr(long long a,long long b){long long i,r=1;for(i=1;i<=b;i++){r*=(a+1-i);r/=i;}return r;} long long llnHr(long long a,long long b){return llnCr(a+b-1,b);} long long llfact(long long a){long long i,r=1;for(i=1;i<=a;i++){r*=i;}return r;} long long llpow(long long a,long long b){long long i,r=1;for(i=1;i<=b;i++){r*=a;}return r;} long long lldsum(long long x){long long r=0;while(x){r+=(x%10);x/=10;}return r;} long long lldsumb(long long x,long long b){long long r=0;while(x){r+=(x%b);x/=b;}return r;} long long llsankaku(long long x){return ((1+x)*x)/2;} void llswap(long long *a,long long *b){long long c;c=(*a);(*a)=(*b);(*b)=c;} double dbmax(double a,double b){if(a>b){return a;}return b;} double dbmin(double a,double b){if(a<b){return a;}return b;} double dbzt(double a,double b){return dbmax(a,b)-dbmin(a,b);} void dbswap(double *a,double *b){double c;c=(*a);(*a)=(*b);(*b)=c;} void chswap(char *a,char *b){char c;c=(*a);(*a)=(*b);(*b)=c;} int sortfncsj(const void *a,const void *b){if(*(int *)a>*(int *)b){return 1;}if(*(int *)a==*(int *)b){return 0;}return -1;} int sortfnckj(const void *a,const void *b){if(*(int *)a<*(int *)b){return 1;}if(*(int *)a==*(int *)b){return 0;}return -1;} int llsortfncsj(const void *a,const void *b){if(*(long long *)a>*(long long *)b){return 1;}if(*(long long *)a==*(long long *)b){return 0;}return -1;} int llsortfnckj(const void *a,const void *b){if(*(long long *)a<*(long long *)b){return 1;}if(*(long long *)a==*(long long *)b){return 0;}return -1;} int dbsortfncsj(const void *a,const void *b){if(*(double *)a>*(double *)b){return 1;}if(*(double *)a==*(double *)b){return 0;}return -1;} int dbsortfnckj(const void *a,const void *b){if(*(double *)a<*(double *)b){return 1;}if(*(double *)a==*(double *)b){return 0;}return -1;} int strsortfncsj(const void *a,const void *b){return strcmp((char *)a,(char *)b);} int strsortfnckj(const void *a,const void *b){return strcmp((char *)b,(char *)a);} int chsortfncsj(const void *a,const void *b){if(*(char *)a>*(char *)b){return 1;}if(*(char *)a==*(char *)b){return 0;}return -1;} int chsortfnckj(const void *a,const void *b){if(*(char *)a<*(char *)b){return 1;}if(*(char *)a==*(char *)b){return 0;}return -1;} void shuffledget(int x[],int n){ int i,b[524288],p,c; for(i=0;i<n;i++){ b[i]=i; } for(i=n;i>=1;i--){ p=rand()%i; c=b[i-1];b[i-1]=b[p];b[p]=c; } for(i=0;i<n;i++){ scanf("%d",&x[b[i]]); } } int dx4[4]={1,-1,0,0}; int dy4[4]={0,0,1,-1}; int dx8[8]={-1,-1,-1,0,0,1,1,1}; int dy8[8]={-1,0,1,-1,1,-1,0,1}; int search(int x,int a[],int n){ int st=0,fi=n-1,te; while(st<=fi){ te=(st+fi)/2; if(a[te]<x){st=te+1;}else{fi=te-1;} } return st; } void prarr(int arr[],int n){ int i; for(i=0;i<n;i++){ if(i){printf(" ");} printf("%d",arr[i]); } printf("\n"); return; } void getperm(int a[],int n){ int i,p; for(i=0;i<n;i++){ a[i]=i; } for(i=n-1;i>=1;i--){ p=rand()%(i+1); swap(&a[p],&a[i]); } } typedef struct{ int val; int node; }sd; int sdsortfnc(const void *a,const void *b){ if(((sd*)a)->val < ((sd*)b)->val){return -1;} if(((sd*)a)->val > ((sd*)b)->val){return 1;} return 0; } void coordinate_comp(int a[],int n){ int i,c=0; sd dat[524288]; for(i=0;i<n;i++){ dat[i].val=a[i]; dat[i].node=i; } qsort(dat,n,sizeof(dat[0]),sdsortfnc); a[dat[0].node]=c; for(i=1;i<n;i++){ if(dat[i-1].val!=dat[i].val){c++;} a[dat[i].node]=c; } } int main(void){ //srand(time(0)); int i,j,n,m,k,a[524288],b,c,h,w,r=0,l,t; double d; char s[524288]; scanf("%d",&n); for(i=1;i<=9;i++){ if((n/i)<=9 && (n%i)==0){printf("Yes\n");return 0;} } printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136601/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136601/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" %struct.sd = type { i32, i32 } @.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @dx4 = dso_local local_unnamed_addr global [4 x i32] [i32 1, i32 -1, i32 0, i32 0], align 16 @dy4 = dso_local local_unnamed_addr global [4 x i32] [i32 0, i32 0, i32 1, i32 -1], align 16 @dx8 = dso_local local_unnamed_addr global [8 x i32] [i32 -1, i32 -1, i32 -1, i32 0, i32 0, i32 1, i32 1, i32 1], align 16 @dy8 = dso_local local_unnamed_addr global [8 x i32] [i32 -1, i32 0, i32 1, i32 -1, i32 1, i32 -1, i32 0, i32 1], align 16 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.5 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable define dso_local i32 @max(i32 noundef %a, i32 noundef %b) local_unnamed_addr #0 { entry: %a.b = tail call i32 @llvm.smax.i32(i32 %a, i32 %b) ret i32 %a.b } ; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable define dso_local i32 @min(i32 noundef %a, i32 noundef %b) local_unnamed_addr #0 { entry: %a.b = tail call i32 @llvm.smin.i32(i32 %a, i32 %b) ret i32 %a.b } ; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable define dso_local i32 @zt(i32 noundef %a, i32 noundef %b) local_unnamed_addr #0 { entry: %sub5 = sub nsw i32 %a, %b %sub = tail call i32 @llvm.abs.i32(i32 %sub5, i1 true) ret i32 %sub } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable define dso_local i32 @round(i32 noundef %a, i32 noundef %b) local_unnamed_addr #1 { entry: %rem = srem i32 %a, %b %mul = shl nsw i32 %rem, 1 %cmp.not = icmp sge i32 %mul, %b %div1 = sdiv i32 %a, %b %add = zext i1 %cmp.not to i32 %retval.0 = add nsw i32 %div1, %add ret i32 %retval.0 } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable define dso_local i32 @ceil(i32 noundef %a, i32 noundef %b) local_unnamed_addr #1 { entry: %rem = srem i32 %a, %b %cmp = icmp ne i32 %rem, 0 %div = sdiv i32 %a, %b %add = zext i1 %cmp to i32 %retval.0 = add nsw i32 %div, %add ret i32 %retval.0 } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i32 @gcd(i32 noundef %a, i32 noundef %b) local_unnamed_addr #2 { entry: %cmp.not4 = icmp eq i32 %b, 0 br i1 %cmp.not4, label %while.end, label %while.body while.body: ; preds = %entry, %while.body %a.addr.06 = phi i32 [ %b.addr.05, %while.body ], [ %a, %entry ] %b.addr.05 = phi i32 [ %rem, %while.body ], [ %b, %entry ] %rem = srem i32 %a.addr.06, %b.addr.05 %cmp.not = icmp eq i32 %rem, 0 br i1 %cmp.not, label %while.end, label %while.body, !llvm.loop !5 while.end: ; preds = %while.body, %entry %a.addr.0.lcssa = phi i32 [ %a, %entry ], [ %b.addr.05, %while.body ] ret i32 %a.addr.0.lcssa } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3 ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i32 @lcm(i32 noundef %a, i32 noundef %b) local_unnamed_addr #2 { entry: %cmp.not4.i = icmp eq i32 %b, 0 br i1 %cmp.not4.i, label %gcd.exit, label %while.body.i while.body.i: ; preds = %entry, %while.body.i %a.addr.06.i = phi i32 [ %b.addr.05.i, %while.body.i ], [ %a, %entry ] %b.addr.05.i = phi i32 [ %rem.i, %while.body.i ], [ %b, %entry ] %rem.i = srem i32 %a.addr.06.i, %b.addr.05.i %cmp.not.i = icmp eq i32 %rem.i, 0 br i1 %cmp.not.i, label %gcd.exit, label %while.body.i, !llvm.loop !5 gcd.exit: ; preds = %while.body.i, %entry %a.addr.0.lcssa.i = phi i32 [ %a, %entry ], [ %b.addr.05.i, %while.body.i ] %div = sdiv i32 %a, %a.addr.0.lcssa.i %mul = mul nsw i32 %div, %b ret i32 %mul } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i32 @nCr(i32 noundef %a, i32 noundef %b) local_unnamed_addr #2 { entry: %cmp.not6 = icmp slt i32 %b, 1 br i1 %cmp.not6, label %for.end, label %for.body.lr.ph for.body.lr.ph: ; preds = %entry %add = add nsw i32 %a, 1 %xtraiter = and i32 %b, 1 %0 = icmp eq i32 %b, 1 br i1 %0, label %for.end.loopexit.unr-lcssa, label %for.body.lr.ph.new for.body.lr.ph.new: ; preds = %for.body.lr.ph %unroll_iter = and i32 %b, -2 br label %for.body for.body: ; preds = %for.body, %for.body.lr.ph.new %r.08 = phi i32 [ 1, %for.body.lr.ph.new ], [ %div.1, %for.body ] %i.07 = phi i32 [ 1, %for.body.lr.ph.new ], [ %inc.1, %for.body ] %niter = phi i32 [ 0, %for.body.lr.ph.new ], [ %niter.next.1, %for.body ] %sub = sub i32 %add, %i.07 %mul = mul nsw i32 %r.08, %sub %div = sdiv i32 %mul, %i.07 %inc = add nuw i32 %i.07, 1 %sub.1 = sub i32 %add, %inc %mul.1 = mul nsw i32 %div, %sub.1 %div.1 = sdiv i32 %mul.1, %inc %inc.1 = add nuw i32 %i.07, 2 %niter.next.1 = add i32 %niter, 2 %niter.ncmp.1 = icmp eq i32 %niter.next.1, %unroll_iter br i1 %niter.ncmp.1, label %for.end.loopexit.unr-lcssa, label %for.body, !llvm.loop !7 for.end.loopexit.unr-lcssa: ; preds = %for.body, %for.body.lr.ph %div.lcssa.ph = phi i32 [ undef, %for.body.lr.ph ], [ %div.1, %for.body ] %r.08.unr = phi i32 [ 1, %for.body.lr.ph ], [ %div.1, %for.body ] %i.07.unr = phi i32 [ 1, %for.body.lr.ph ], [ %inc.1, %for.body ] %lcmp.mod.not = icmp eq i32 %xtraiter, 0 br i1 %lcmp.mod.not, label %for.end, label %for.body.epil for.body.epil: ; preds = %for.end.loopexit.unr-lcssa %sub.epil = sub i32 %add, %i.07.unr %mul.epil = mul nsw i32 %r.08.unr, %sub.epil %div.epil = sdiv i32 %mul.epil, %i.07.unr br label %for.end for.end: ; preds = %for.body.epil, %for.end.loopexit.unr-lcssa, %entry %r.0.lcssa = phi i32 [ 1, %entry ], [ %div.lcssa.ph, %for.end.loopexit.unr-lcssa ], [ %div.epil, %for.body.epil ] ret i32 %r.0.lcssa } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i32 @nHr(i32 noundef %a, i32 noundef %b) local_unnamed_addr #2 { entry: %add = add nsw i32 %b, %a %cmp.not6.i = icmp slt i32 %b, 1 br i1 %cmp.not6.i, label %nCr.exit, label %for.body.i.preheader for.body.i.preheader: ; preds = %entry %xtraiter = and i32 %b, 1 %0 = icmp eq i32 %b, 1 br i1 %0, label %nCr.exit.loopexit.unr-lcssa, label %for.body.i.preheader.new for.body.i.preheader.new: ; preds = %for.body.i.preheader %unroll_iter = and i32 %b, -2 br label %for.body.i for.body.i: ; preds = %for.body.i, %for.body.i.preheader.new %r.08.i = phi i32 [ 1, %for.body.i.preheader.new ], [ %div.i.1, %for.body.i ] %i.07.i = phi i32 [ 1, %for.body.i.preheader.new ], [ %inc.i.1, %for.body.i ] %niter = phi i32 [ 0, %for.body.i.preheader.new ], [ %niter.next.1, %for.body.i ] %sub.i = sub i32 %add, %i.07.i %mul.i = mul nsw i32 %sub.i, %r.08.i %div.i = sdiv i32 %mul.i, %i.07.i %inc.i = add nuw i32 %i.07.i, 1 %sub.i.1 = sub i32 %add, %inc.i %mul.i.1 = mul nsw i32 %sub.i.1, %div.i %div.i.1 = sdiv i32 %mul.i.1, %inc.i %inc.i.1 = add nuw i32 %i.07.i, 2 %niter.next.1 = add i32 %niter, 2 %niter.ncmp.1 = icmp eq i32 %niter.next.1, %unroll_iter br i1 %niter.ncmp.1, label %nCr.exit.loopexit.unr-lcssa, label %for.body.i, !llvm.loop !7 nCr.exit.loopexit.unr-lcssa: ; preds = %for.body.i, %for.body.i.preheader %div.i.lcssa.ph = phi i32 [ undef, %for.body.i.preheader ], [ %div.i.1, %for.body.i ] %r.08.i.unr = phi i32 [ 1, %for.body.i.preheader ], [ %div.i.1, %for.body.i ] %i.07.i.unr = phi i32 [ 1, %for.body.i.preheader ], [ %inc.i.1, %for.body.i ] %lcmp.mod.not = icmp eq i32 %xtraiter, 0 br i1 %lcmp.mod.not, label %nCr.exit, label %for.body.i.epil for.body.i.epil: ; preds = %nCr.exit.loopexit.unr-lcssa %sub.i.epil = sub i32 %add, %i.07.i.unr %mul.i.epil = mul nsw i32 %sub.i.epil, %r.08.i.unr %div.i.epil = sdiv i32 %mul.i.epil, %i.07.i.unr br label %nCr.exit nCr.exit: ; preds = %for.body.i.epil, %nCr.exit.loopexit.unr-lcssa, %entry %r.0.lcssa.i = phi i32 [ 1, %entry ], [ %div.i.lcssa.ph, %nCr.exit.loopexit.unr-lcssa ], [ %div.i.epil, %for.body.i.epil ] ret i32 %r.0.lcssa.i } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i32 @fact(i32 noundef %a) local_unnamed_addr #2 { entry: %cmp.not4 = icmp slt i32 %a, 1 br i1 %cmp.not4, label %for.end, label %for.body.preheader for.body.preheader: ; preds = %entry %min.iters.check = icmp ult i32 %a, 8 br i1 %min.iters.check, label %for.body.preheader9, label %vector.ph vector.ph: ; preds = %for.body.preheader %n.vec = and i32 %a, -8 %ind.end = or i32 %n.vec, 1 br label %vector.body vector.body: ; preds = %vector.body, %vector.ph %index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ] %vec.phi = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %0, %vector.body ] %vec.phi7 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %1, %vector.body ] %vec.ind = phi <4 x i32> [ <i32 1, i32 2, i32 3, i32 4>, %vector.ph ], [ %vec.ind.next, %vector.body ] %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4> %0 = mul <4 x i32> %vec.phi, %vec.ind %1 = mul <4 x i32> %vec.phi7, %step.add %index.next = add nuw i32 %index, 8 %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8> %2 = icmp eq i32 %index.next, %n.vec br i1 %2, label %middle.block, label %vector.body, !llvm.loop !8 middle.block: ; preds = %vector.body %bin.rdx = mul <4 x i32> %1, %0 %3 = tail call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %bin.rdx) %cmp.n = icmp eq i32 %n.vec, %a br i1 %cmp.n, label %for.end, label %for.body.preheader9 for.body.preheader9: ; preds = %for.body.preheader, %middle.block %r.06.ph = phi i32 [ 1, %for.body.preheader ], [ %3, %middle.block ] %i.05.ph = phi i32 [ 1, %for.body.preheader ], [ %ind.end, %middle.block ] br label %for.body for.body: ; preds = %for.body.preheader9, %for.body %r.06 = phi i32 [ %mul, %for.body ], [ %r.06.ph, %for.body.preheader9 ] %i.05 = phi i32 [ %inc, %for.body ], [ %i.05.ph, %for.body.preheader9 ] %mul = mul nsw i32 %r.06, %i.05 %inc = add nuw i32 %i.05, 1 %exitcond.not = icmp eq i32 %i.05, %a br i1 %exitcond.not, label %for.end, label %for.body, !llvm.loop !11 for.end: ; preds = %for.body, %middle.block, %entry %r.0.lcssa = phi i32 [ 1, %entry ], [ %3, %middle.block ], [ %mul, %for.body ] ret i32 %r.0.lcssa } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i32 @pow(i32 noundef %a, i32 noundef %b) local_unnamed_addr #2 { entry: %cmp.not3 = icmp slt i32 %b, 1 br i1 %cmp.not3, label %for.end, label %for.body.preheader for.body.preheader: ; preds = %entry %min.iters.check = icmp ult i32 %b, 8 br i1 %min.iters.check, label %for.body.preheader7, label %vector.ph vector.ph: ; preds = %for.body.preheader %n.vec = and i32 %b, -8 %ind.end = or i32 %n.vec, 1 %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %a, i64 0 %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer br label %vector.body vector.body: ; preds = %vector.body, %vector.ph %index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ] %vec.phi = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %0, %vector.body ] %vec.phi6 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %1, %vector.body ] %0 = mul <4 x i32> %vec.phi, %broadcast.splat %1 = mul <4 x i32> %vec.phi6, %broadcast.splat %index.next = add nuw i32 %index, 8 %2 = icmp eq i32 %index.next, %n.vec br i1 %2, label %middle.block, label %vector.body, !llvm.loop !12 middle.block: ; preds = %vector.body %bin.rdx = mul <4 x i32> %1, %0 %3 = tail call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %bin.rdx) %cmp.n = icmp eq i32 %n.vec, %b br i1 %cmp.n, label %for.end, label %for.body.preheader7 for.body.preheader7: ; preds = %for.body.preheader, %middle.block %r.05.ph = phi i32 [ 1, %for.body.preheader ], [ %3, %middle.block ] %i.04.ph = phi i32 [ 1, %for.body.preheader ], [ %ind.end, %middle.block ] br label %for.body for.body: ; preds = %for.body.preheader7, %for.body %r.05 = phi i32 [ %mul, %for.body ], [ %r.05.ph, %for.body.preheader7 ] %i.04 = phi i32 [ %inc, %for.body ], [ %i.04.ph, %for.body.preheader7 ] %mul = mul nsw i32 %r.05, %a %inc = add nuw i32 %i.04, 1 %exitcond.not = icmp eq i32 %i.04, %b br i1 %exitcond.not, label %for.end, label %for.body, !llvm.loop !13 for.end: ; preds = %for.body, %middle.block, %entry %r.0.lcssa = phi i32 [ 1, %entry ], [ %3, %middle.block ], [ %mul, %for.body ] ret i32 %r.0.lcssa } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i32 @dsum(i32 noundef %x) local_unnamed_addr #2 { entry: %tobool.not4 = icmp eq i32 %x, 0 br i1 %tobool.not4, label %while.end, label %while.body while.body: ; preds = %entry, %while.body %r.06 = phi i32 [ %add, %while.body ], [ 0, %entry ] %x.addr.05 = phi i32 [ %div, %while.body ], [ %x, %entry ] %rem = srem i32 %x.addr.05, 10 %add = add nsw i32 %r.06, %rem %div = sdiv i32 %x.addr.05, 10 %x.addr.05.off = add i32 %x.addr.05, 9 %tobool.not = icmp ult i32 %x.addr.05.off, 19 br i1 %tobool.not, label %while.end, label %while.body, !llvm.loop !14 while.end: ; preds = %while.body, %entry %r.0.lcssa = phi i32 [ 0, %entry ], [ %add, %while.body ] ret i32 %r.0.lcssa } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i32 @dsumb(i32 noundef %x, i32 noundef %b) local_unnamed_addr #2 { entry: %tobool.not5 = icmp eq i32 %x, 0 br i1 %tobool.not5, label %while.end, label %while.body while.body: ; preds = %entry, %while.body %r.07 = phi i32 [ %add, %while.body ], [ 0, %entry ] %x.addr.06 = phi i32 [ %div, %while.body ], [ %x, %entry ] %rem = srem i32 %x.addr.06, %b %add = add nsw i32 %rem, %r.07 %div = sdiv i32 %x.addr.06, %b %tobool.not = icmp eq i32 %div, 0 br i1 %tobool.not, label %while.end, label %while.body, !llvm.loop !15 while.end: ; preds = %while.body, %entry %r.0.lcssa = phi i32 [ 0, %entry ], [ %add, %while.body ] ret i32 %r.0.lcssa } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable define dso_local i32 @sankaku(i32 noundef %x) local_unnamed_addr #1 { entry: %add = add nsw i32 %x, 1 %mul = mul nsw i32 %add, %x %div = sdiv i32 %mul, 2 ret i32 %div } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable define dso_local void @swap(ptr nocapture noundef %a, ptr nocapture noundef %b) local_unnamed_addr #4 { entry: %0 = load i32, ptr %a, align 4, !tbaa !16 %1 = load i32, ptr %b, align 4, !tbaa !16 store i32 %1, ptr %a, align 4, !tbaa !16 store i32 %0, ptr %b, align 4, !tbaa !16 ret void } ; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable define dso_local i64 @llmax(i64 noundef %a, i64 noundef %b) local_unnamed_addr #0 { entry: %a.b = tail call i64 @llvm.smax.i64(i64 %a, i64 %b) ret i64 %a.b } ; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable define dso_local i64 @llmin(i64 noundef %a, i64 noundef %b) local_unnamed_addr #0 { entry: %a.b = tail call i64 @llvm.smin.i64(i64 %a, i64 %b) ret i64 %a.b } ; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable define dso_local i64 @llzt(i64 noundef %a, i64 noundef %b) local_unnamed_addr #0 { entry: %sub5 = sub nsw i64 %a, %b %sub = tail call i64 @llvm.abs.i64(i64 %sub5, i1 true) ret i64 %sub } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable define dso_local i64 @llround(i64 noundef %a, i64 noundef %b) local_unnamed_addr #1 { entry: %rem = srem i64 %a, %b %mul = shl nsw i64 %rem, 1 %cmp.not = icmp sge i64 %mul, %b %div1 = sdiv i64 %a, %b %add = zext i1 %cmp.not to i64 %retval.0 = add nsw i64 %div1, %add ret i64 %retval.0 } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable define dso_local i64 @llceil(i64 noundef %a, i64 noundef %b) local_unnamed_addr #1 { entry: %rem = srem i64 %a, %b %cmp = icmp ne i64 %rem, 0 %div = sdiv i64 %a, %b %add = zext i1 %cmp to i64 %retval.0 = add nsw i64 %div, %add ret i64 %retval.0 } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i64 @llgcd(i64 noundef %a, i64 noundef %b) local_unnamed_addr #2 { entry: %cmp.not4 = icmp eq i64 %b, 0 br i1 %cmp.not4, label %while.end, label %while.body while.body: ; preds = %entry, %while.body %a.addr.06 = phi i64 [ %b.addr.05, %while.body ], [ %a, %entry ] %b.addr.05 = phi i64 [ %rem, %while.body ], [ %b, %entry ] %rem = srem i64 %a.addr.06, %b.addr.05 %cmp.not = icmp eq i64 %rem, 0 br i1 %cmp.not, label %while.end, label %while.body, !llvm.loop !20 while.end: ; preds = %while.body, %entry %a.addr.0.lcssa = phi i64 [ %a, %entry ], [ %b.addr.05, %while.body ] ret i64 %a.addr.0.lcssa } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i64 @lllcm(i64 noundef %a, i64 noundef %b) local_unnamed_addr #2 { entry: %cmp.not4.i = icmp eq i64 %b, 0 br i1 %cmp.not4.i, label %llgcd.exit, label %while.body.i while.body.i: ; preds = %entry, %while.body.i %a.addr.06.i = phi i64 [ %b.addr.05.i, %while.body.i ], [ %a, %entry ] %b.addr.05.i = phi i64 [ %rem.i, %while.body.i ], [ %b, %entry ] %rem.i = srem i64 %a.addr.06.i, %b.addr.05.i %cmp.not.i = icmp eq i64 %rem.i, 0 br i1 %cmp.not.i, label %llgcd.exit, label %while.body.i, !llvm.loop !20 llgcd.exit: ; preds = %while.body.i, %entry %a.addr.0.lcssa.i = phi i64 [ %a, %entry ], [ %b.addr.05.i, %while.body.i ] %div = sdiv i64 %a, %a.addr.0.lcssa.i %mul = mul nsw i64 %div, %b ret i64 %mul } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i64 @llnCr(i64 noundef %a, i64 noundef %b) local_unnamed_addr #2 { entry: %cmp.not6 = icmp slt i64 %b, 1 br i1 %cmp.not6, label %for.end, label %for.body.lr.ph for.body.lr.ph: ; preds = %entry %add = add nsw i64 %a, 1 %xtraiter = and i64 %b, 1 %0 = icmp eq i64 %b, 1 br i1 %0, label %for.end.loopexit.unr-lcssa, label %for.body.lr.ph.new for.body.lr.ph.new: ; preds = %for.body.lr.ph %unroll_iter = and i64 %b, -2 br label %for.body for.body: ; preds = %for.body, %for.body.lr.ph.new %r.08 = phi i64 [ 1, %for.body.lr.ph.new ], [ %div.1, %for.body ] %i.07 = phi i64 [ 1, %for.body.lr.ph.new ], [ %inc.1, %for.body ] %niter = phi i64 [ 0, %for.body.lr.ph.new ], [ %niter.next.1, %for.body ] %sub = sub i64 %add, %i.07 %mul = mul nsw i64 %r.08, %sub %div = sdiv i64 %mul, %i.07 %inc = add nuw i64 %i.07, 1 %sub.1 = sub i64 %add, %inc %mul.1 = mul nsw i64 %div, %sub.1 %div.1 = sdiv i64 %mul.1, %inc %inc.1 = add nuw i64 %i.07, 2 %niter.next.1 = add i64 %niter, 2 %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter br i1 %niter.ncmp.1, label %for.end.loopexit.unr-lcssa, label %for.body, !llvm.loop !21 for.end.loopexit.unr-lcssa: ; preds = %for.body, %for.body.lr.ph %div.lcssa.ph = phi i64 [ undef, %for.body.lr.ph ], [ %div.1, %for.body ] %r.08.unr = phi i64 [ 1, %for.body.lr.ph ], [ %div.1, %for.body ] %i.07.unr = phi i64 [ 1, %for.body.lr.ph ], [ %inc.1, %for.body ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %for.end, label %for.body.epil for.body.epil: ; preds = %for.end.loopexit.unr-lcssa %sub.epil = sub i64 %add, %i.07.unr %mul.epil = mul nsw i64 %r.08.unr, %sub.epil %div.epil = sdiv i64 %mul.epil, %i.07.unr br label %for.end for.end: ; preds = %for.body.epil, %for.end.loopexit.unr-lcssa, %entry %r.0.lcssa = phi i64 [ 1, %entry ], [ %div.lcssa.ph, %for.end.loopexit.unr-lcssa ], [ %div.epil, %for.body.epil ] ret i64 %r.0.lcssa } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i64 @llnHr(i64 noundef %a, i64 noundef %b) local_unnamed_addr #2 { entry: %add = add nsw i64 %b, %a %cmp.not6.i = icmp slt i64 %b, 1 br i1 %cmp.not6.i, label %llnCr.exit, label %for.body.i.preheader for.body.i.preheader: ; preds = %entry %xtraiter = and i64 %b, 1 %0 = icmp eq i64 %b, 1 br i1 %0, label %llnCr.exit.loopexit.unr-lcssa, label %for.body.i.preheader.new for.body.i.preheader.new: ; preds = %for.body.i.preheader %unroll_iter = and i64 %b, -2 br label %for.body.i for.body.i: ; preds = %for.body.i, %for.body.i.preheader.new %r.08.i = phi i64 [ 1, %for.body.i.preheader.new ], [ %div.i.1, %for.body.i ] %i.07.i = phi i64 [ 1, %for.body.i.preheader.new ], [ %inc.i.1, %for.body.i ] %niter = phi i64 [ 0, %for.body.i.preheader.new ], [ %niter.next.1, %for.body.i ] %sub.i = sub i64 %add, %i.07.i %mul.i = mul nsw i64 %sub.i, %r.08.i %div.i = sdiv i64 %mul.i, %i.07.i %inc.i = add nuw i64 %i.07.i, 1 %sub.i.1 = sub i64 %add, %inc.i %mul.i.1 = mul nsw i64 %sub.i.1, %div.i %div.i.1 = sdiv i64 %mul.i.1, %inc.i %inc.i.1 = add nuw i64 %i.07.i, 2 %niter.next.1 = add i64 %niter, 2 %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter br i1 %niter.ncmp.1, label %llnCr.exit.loopexit.unr-lcssa, label %for.body.i, !llvm.loop !21 llnCr.exit.loopexit.unr-lcssa: ; preds = %for.body.i, %for.body.i.preheader %div.i.lcssa.ph = phi i64 [ undef, %for.body.i.preheader ], [ %div.i.1, %for.body.i ] %r.08.i.unr = phi i64 [ 1, %for.body.i.preheader ], [ %div.i.1, %for.body.i ] %i.07.i.unr = phi i64 [ 1, %for.body.i.preheader ], [ %inc.i.1, %for.body.i ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %llnCr.exit, label %for.body.i.epil for.body.i.epil: ; preds = %llnCr.exit.loopexit.unr-lcssa %sub.i.epil = sub i64 %add, %i.07.i.unr %mul.i.epil = mul nsw i64 %sub.i.epil, %r.08.i.unr %div.i.epil = sdiv i64 %mul.i.epil, %i.07.i.unr br label %llnCr.exit llnCr.exit: ; preds = %for.body.i.epil, %llnCr.exit.loopexit.unr-lcssa, %entry %r.0.lcssa.i = phi i64 [ 1, %entry ], [ %div.i.lcssa.ph, %llnCr.exit.loopexit.unr-lcssa ], [ %div.i.epil, %for.body.i.epil ] ret i64 %r.0.lcssa.i } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i64 @llfact(i64 noundef %a) local_unnamed_addr #2 { entry: %cmp.not4 = icmp slt i64 %a, 1 br i1 %cmp.not4, label %for.end, label %for.body.preheader for.body.preheader: ; preds = %entry %xtraiter = and i64 %a, 7 %0 = icmp ult i64 %a, 8 br i1 %0, label %for.end.loopexit.unr-lcssa, label %for.body.preheader.new for.body.preheader.new: ; preds = %for.body.preheader %unroll_iter = and i64 %a, -8 br label %for.body for.body: ; preds = %for.body, %for.body.preheader.new %r.06 = phi i64 [ 1, %for.body.preheader.new ], [ %mul.7, %for.body ] %i.05 = phi i64 [ 1, %for.body.preheader.new ], [ %inc.7, %for.body ] %niter = phi i64 [ 0, %for.body.preheader.new ], [ %niter.next.7, %for.body ] %mul = mul nsw i64 %r.06, %i.05 %inc = add nuw nsw i64 %i.05, 1 %mul.1 = mul nsw i64 %mul, %inc %inc.1 = add nuw nsw i64 %i.05, 2 %mul.2 = mul nsw i64 %mul.1, %inc.1 %inc.2 = add nuw nsw i64 %i.05, 3 %mul.3 = mul nsw i64 %mul.2, %inc.2 %inc.3 = add nuw nsw i64 %i.05, 4 %mul.4 = mul nsw i64 %mul.3, %inc.3 %inc.4 = add nuw nsw i64 %i.05, 5 %mul.5 = mul nsw i64 %mul.4, %inc.4 %inc.5 = add nuw nsw i64 %i.05, 6 %mul.6 = mul nsw i64 %mul.5, %inc.5 %inc.6 = add nuw i64 %i.05, 7 %mul.7 = mul nsw i64 %mul.6, %inc.6 %inc.7 = add nuw i64 %i.05, 8 %niter.next.7 = add i64 %niter, 8 %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter br i1 %niter.ncmp.7, label %for.end.loopexit.unr-lcssa, label %for.body, !llvm.loop !22 for.end.loopexit.unr-lcssa: ; preds = %for.body, %for.body.preheader %mul.lcssa.ph = phi i64 [ undef, %for.body.preheader ], [ %mul.7, %for.body ] %r.06.unr = phi i64 [ 1, %for.body.preheader ], [ %mul.7, %for.body ] %i.05.unr = phi i64 [ 1, %for.body.preheader ], [ %inc.7, %for.body ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %for.end, label %for.body.epil for.body.epil: ; preds = %for.end.loopexit.unr-lcssa, %for.body.epil %r.06.epil = phi i64 [ %mul.epil, %for.body.epil ], [ %r.06.unr, %for.end.loopexit.unr-lcssa ] %i.05.epil = phi i64 [ %inc.epil, %for.body.epil ], [ %i.05.unr, %for.end.loopexit.unr-lcssa ] %epil.iter = phi i64 [ %epil.iter.next, %for.body.epil ], [ 0, %for.end.loopexit.unr-lcssa ] %mul.epil = mul nsw i64 %r.06.epil, %i.05.epil %inc.epil = add nuw i64 %i.05.epil, 1 %epil.iter.next = add i64 %epil.iter, 1 %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter br i1 %epil.iter.cmp.not, label %for.end, label %for.body.epil, !llvm.loop !23 for.end: ; preds = %for.end.loopexit.unr-lcssa, %for.body.epil, %entry %r.0.lcssa = phi i64 [ 1, %entry ], [ %mul.lcssa.ph, %for.end.loopexit.unr-lcssa ], [ %mul.epil, %for.body.epil ] ret i64 %r.0.lcssa } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i64 @llpow(i64 noundef %a, i64 noundef %b) local_unnamed_addr #2 { entry: %cmp.not3 = icmp slt i64 %b, 1 br i1 %cmp.not3, label %for.end, label %for.body.preheader for.body.preheader: ; preds = %entry %xtraiter = and i64 %b, 7 %0 = icmp ult i64 %b, 8 br i1 %0, label %for.end.loopexit.unr-lcssa, label %for.body.preheader.new for.body.preheader.new: ; preds = %for.body.preheader %unroll_iter = and i64 %b, -8 br label %for.body for.body: ; preds = %for.body, %for.body.preheader.new %r.05 = phi i64 [ 1, %for.body.preheader.new ], [ %mul.7, %for.body ] %niter = phi i64 [ 0, %for.body.preheader.new ], [ %niter.next.7, %for.body ] %mul = mul nsw i64 %r.05, %a %mul.1 = mul nsw i64 %mul, %a %mul.2 = mul nsw i64 %mul.1, %a %mul.3 = mul nsw i64 %mul.2, %a %mul.4 = mul nsw i64 %mul.3, %a %mul.5 = mul nsw i64 %mul.4, %a %mul.6 = mul nsw i64 %mul.5, %a %mul.7 = mul nsw i64 %mul.6, %a %niter.next.7 = add i64 %niter, 8 %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter br i1 %niter.ncmp.7, label %for.end.loopexit.unr-lcssa, label %for.body, !llvm.loop !25 for.end.loopexit.unr-lcssa: ; preds = %for.body, %for.body.preheader %mul.lcssa.ph = phi i64 [ undef, %for.body.preheader ], [ %mul.7, %for.body ] %r.05.unr = phi i64 [ 1, %for.body.preheader ], [ %mul.7, %for.body ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %for.end, label %for.body.epil for.body.epil: ; preds = %for.end.loopexit.unr-lcssa, %for.body.epil %r.05.epil = phi i64 [ %mul.epil, %for.body.epil ], [ %r.05.unr, %for.end.loopexit.unr-lcssa ] %epil.iter = phi i64 [ %epil.iter.next, %for.body.epil ], [ 0, %for.end.loopexit.unr-lcssa ] %mul.epil = mul nsw i64 %r.05.epil, %a %epil.iter.next = add i64 %epil.iter, 1 %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter br i1 %epil.iter.cmp.not, label %for.end, label %for.body.epil, !llvm.loop !26 for.end: ; preds = %for.end.loopexit.unr-lcssa, %for.body.epil, %entry %r.0.lcssa = phi i64 [ 1, %entry ], [ %mul.lcssa.ph, %for.end.loopexit.unr-lcssa ], [ %mul.epil, %for.body.epil ] ret i64 %r.0.lcssa } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i64 @lldsum(i64 noundef %x) local_unnamed_addr #2 { entry: %tobool.not4 = icmp eq i64 %x, 0 br i1 %tobool.not4, label %while.end, label %while.body while.body: ; preds = %entry, %while.body %r.06 = phi i64 [ %add, %while.body ], [ 0, %entry ] %x.addr.05 = phi i64 [ %div, %while.body ], [ %x, %entry ] %rem = srem i64 %x.addr.05, 10 %add = add nsw i64 %r.06, %rem %div = sdiv i64 %x.addr.05, 10 %x.addr.05.off = add i64 %x.addr.05, 9 %tobool.not = icmp ult i64 %x.addr.05.off, 19 br i1 %tobool.not, label %while.end, label %while.body, !llvm.loop !27 while.end: ; preds = %while.body, %entry %r.0.lcssa = phi i64 [ 0, %entry ], [ %add, %while.body ] ret i64 %r.0.lcssa } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i64 @lldsumb(i64 noundef %x, i64 noundef %b) local_unnamed_addr #2 { entry: %tobool.not5 = icmp eq i64 %x, 0 br i1 %tobool.not5, label %while.end, label %while.body while.body: ; preds = %entry, %while.body %r.07 = phi i64 [ %add, %while.body ], [ 0, %entry ] %x.addr.06 = phi i64 [ %div, %while.body ], [ %x, %entry ] %rem = srem i64 %x.addr.06, %b %add = add nsw i64 %rem, %r.07 %div = sdiv i64 %x.addr.06, %b %tobool.not = icmp eq i64 %div, 0 br i1 %tobool.not, label %while.end, label %while.body, !llvm.loop !28 while.end: ; preds = %while.body, %entry %r.0.lcssa = phi i64 [ 0, %entry ], [ %add, %while.body ] ret i64 %r.0.lcssa } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable define dso_local i64 @llsankaku(i64 noundef %x) local_unnamed_addr #1 { entry: %add = add nsw i64 %x, 1 %mul = mul nsw i64 %add, %x %div = sdiv i64 %mul, 2 ret i64 %div } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable define dso_local void @llswap(ptr nocapture noundef %a, ptr nocapture noundef %b) local_unnamed_addr #4 { entry: %0 = load i64, ptr %a, align 8, !tbaa !29 %1 = load i64, ptr %b, align 8, !tbaa !29 store i64 %1, ptr %a, align 8, !tbaa !29 store i64 %0, ptr %b, align 8, !tbaa !29 ret void } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable define dso_local double @dbmax(double noundef %a, double noundef %b) local_unnamed_addr #1 { entry: %cmp = fcmp ogt double %a, %b %a.b = select i1 %cmp, double %a, double %b ret double %a.b } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable define dso_local double @dbmin(double noundef %a, double noundef %b) local_unnamed_addr #1 { entry: %cmp = fcmp olt double %a, %b %a.b = select i1 %cmp, double %a, double %b ret double %a.b } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable define dso_local double @dbzt(double noundef %a, double noundef %b) local_unnamed_addr #1 { entry: %cmp.i = fcmp ogt double %a, %b %a.b.i = select i1 %cmp.i, double %a, double %b %cmp.i4 = fcmp olt double %a, %b %a.b.i5 = select i1 %cmp.i4, double %a, double %b %sub = fsub double %a.b.i, %a.b.i5 ret double %sub } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable define dso_local void @dbswap(ptr nocapture noundef %a, ptr nocapture noundef %b) local_unnamed_addr #4 { entry: %0 = load double, ptr %a, align 8, !tbaa !31 %1 = load double, ptr %b, align 8, !tbaa !31 store double %1, ptr %a, align 8, !tbaa !31 store double %0, ptr %b, align 8, !tbaa !31 ret void } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable define dso_local void @chswap(ptr nocapture noundef %a, ptr nocapture noundef %b) local_unnamed_addr #4 { entry: %0 = load i8, ptr %a, align 1, !tbaa !33 %1 = load i8, ptr %b, align 1, !tbaa !33 store i8 %1, ptr %a, align 1, !tbaa !33 store i8 %0, ptr %b, align 1, !tbaa !33 ret void } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @sortfncsj(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #5 { entry: %0 = load i32, ptr %a, align 4, !tbaa !16 %1 = load i32, ptr %b, align 4, !tbaa !16 %cmp = icmp sgt i32 %0, %1 %cmp1 = icmp ne i32 %0, %1 %. = sext i1 %cmp1 to i32 %retval.0 = select i1 %cmp, i32 1, i32 %. ret i32 %retval.0 } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @sortfnckj(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #5 { entry: %0 = load i32, ptr %a, align 4, !tbaa !16 %1 = load i32, ptr %b, align 4, !tbaa !16 %cmp = icmp slt i32 %0, %1 %cmp1 = icmp ne i32 %0, %1 %. = sext i1 %cmp1 to i32 %retval.0 = select i1 %cmp, i32 1, i32 %. ret i32 %retval.0 } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @llsortfncsj(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #5 { entry: %0 = load i64, ptr %a, align 8, !tbaa !29 %1 = load i64, ptr %b, align 8, !tbaa !29 %cmp = icmp sgt i64 %0, %1 %cmp1 = icmp ne i64 %0, %1 %. = sext i1 %cmp1 to i32 %retval.0 = select i1 %cmp, i32 1, i32 %. ret i32 %retval.0 } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @llsortfnckj(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #5 { entry: %0 = load i64, ptr %a, align 8, !tbaa !29 %1 = load i64, ptr %b, align 8, !tbaa !29 %cmp = icmp slt i64 %0, %1 %cmp1 = icmp ne i64 %0, %1 %. = sext i1 %cmp1 to i32 %retval.0 = select i1 %cmp, i32 1, i32 %. ret i32 %retval.0 } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @dbsortfncsj(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #5 { entry: %0 = load double, ptr %a, align 8, !tbaa !31 %1 = load double, ptr %b, align 8, !tbaa !31 %cmp = fcmp ogt double %0, %1 %cmp1 = fcmp une double %0, %1 %. = sext i1 %cmp1 to i32 %retval.0 = select i1 %cmp, i32 1, i32 %. ret i32 %retval.0 } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @dbsortfnckj(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #5 { entry: %0 = load double, ptr %a, align 8, !tbaa !31 %1 = load double, ptr %b, align 8, !tbaa !31 %cmp = fcmp olt double %0, %1 %cmp1 = fcmp une double %0, %1 %. = sext i1 %cmp1 to i32 %retval.0 = select i1 %cmp, i32 1, i32 %. ret i32 %retval.0 } ; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @strsortfncsj(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #6 { entry: %call = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %a, ptr noundef nonnull dereferenceable(1) %b) #16 ret i32 %call } ; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read) declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #7 ; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @strsortfnckj(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #6 { entry: %call = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %b, ptr noundef nonnull dereferenceable(1) %a) #16 ret i32 %call } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @chsortfncsj(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #5 { entry: %0 = load i8, ptr %a, align 1, !tbaa !33 %1 = load i8, ptr %b, align 1, !tbaa !33 %cmp = icmp sgt i8 %0, %1 %cmp5 = icmp ne i8 %0, %1 %. = sext i1 %cmp5 to i32 %retval.0 = select i1 %cmp, i32 1, i32 %. ret i32 %retval.0 } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @chsortfnckj(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #5 { entry: %0 = load i8, ptr %a, align 1, !tbaa !33 %1 = load i8, ptr %b, align 1, !tbaa !33 %cmp = icmp slt i8 %0, %1 %cmp5 = icmp ne i8 %0, %1 %. = sext i1 %cmp5 to i32 %retval.0 = select i1 %cmp, i32 1, i32 %. ret i32 %retval.0 } ; Function Attrs: nounwind uwtable define dso_local void @shuffledget(ptr noundef %x, i32 noundef %n) local_unnamed_addr #8 { entry: %b = alloca [524288 x i32], align 16 call void @llvm.lifetime.start.p0(i64 2097152, ptr nonnull %b) #17 %cmp40 = icmp sgt i32 %n, 0 br i1 %cmp40, label %for.body.preheader, label %for.end25 for.body.preheader: ; preds = %entry %wide.trip.count = zext i32 %n to i64 %min.iters.check = icmp ult i32 %n, 8 br i1 %min.iters.check, label %for.body.preheader57, label %vector.ph vector.ph: ; preds = %for.body.preheader %n.vec = and i64 %wide.trip.count, 4294967288 br label %vector.body vector.body: ; preds = %vector.body, %vector.ph %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ] %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4> %0 = getelementptr inbounds [524288 x i32], ptr %b, i64 0, i64 %index store <4 x i32> %vec.ind, ptr %0, align 16, !tbaa !16 %1 = getelementptr inbounds i32, ptr %0, i64 4 store <4 x i32> %step.add, ptr %1, align 16, !tbaa !16 %index.next = add nuw i64 %index, 8 %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8> %2 = icmp eq i64 %index.next, %n.vec br i1 %2, label %middle.block, label %vector.body, !llvm.loop !34 middle.block: ; preds = %vector.body %cmp.n = icmp eq i64 %n.vec, %wide.trip.count br i1 %cmp.n, label %for.cond1.preheader, label %for.body.preheader57 for.body.preheader57: ; preds = %for.body.preheader, %middle.block %indvars.iv.ph = phi i64 [ 0, %for.body.preheader ], [ %n.vec, %middle.block ] br label %for.body for.cond1.preheader: ; preds = %for.body, %middle.block br i1 %cmp40, label %for.body3.preheader, label %for.end25 for.body3.preheader: ; preds = %for.cond1.preheader %3 = zext i32 %n to i64 br label %for.body3 for.body: ; preds = %for.body.preheader57, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ %indvars.iv.ph, %for.body.preheader57 ] %arrayidx = getelementptr inbounds [524288 x i32], ptr %b, i64 0, i64 %indvars.iv %4 = trunc i64 %indvars.iv to i32 store i32 %4, ptr %arrayidx, align 4, !tbaa !16 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count br i1 %exitcond.not, label %for.cond1.preheader, label %for.body, !llvm.loop !35 for.cond15.preheader: ; preds = %for.body3 br i1 %cmp40, label %for.body17.preheader, label %for.end25 for.body17.preheader: ; preds = %for.cond15.preheader %wide.trip.count54 = zext i32 %n to i64 br label %for.body17 for.body3: ; preds = %for.body3.preheader, %for.body3 %indvars.iv47 = phi i64 [ %3, %for.body3.preheader ], [ %indvars.iv.next48, %for.body3 ] %call = tail call i32 @rand() #17 %5 = trunc i64 %indvars.iv47 to i32 %rem = srem i32 %call, %5 %indvars.iv.next48 = add nsw i64 %indvars.iv47, -1 %idxprom4 = and i64 %indvars.iv.next48, 4294967295 %arrayidx5 = getelementptr inbounds [524288 x i32], ptr %b, i64 0, i64 %idxprom4 %6 = load i32, ptr %arrayidx5, align 4, !tbaa !16 %idxprom6 = sext i32 %rem to i64 %arrayidx7 = getelementptr inbounds [524288 x i32], ptr %b, i64 0, i64 %idxprom6 %7 = load i32, ptr %arrayidx7, align 4, !tbaa !16 store i32 %7, ptr %arrayidx5, align 4, !tbaa !16 store i32 %6, ptr %arrayidx7, align 4, !tbaa !16 %cmp2 = icmp ugt i64 %indvars.iv47, 1 br i1 %cmp2, label %for.body3, label %for.cond15.preheader, !llvm.loop !36 for.body17: ; preds = %for.body17.preheader, %for.body17 %indvars.iv50 = phi i64 [ 0, %for.body17.preheader ], [ %indvars.iv.next51, %for.body17 ] %arrayidx19 = getelementptr inbounds [524288 x i32], ptr %b, i64 0, i64 %indvars.iv50 %8 = load i32, ptr %arrayidx19, align 4, !tbaa !16 %idxprom20 = sext i32 %8 to i64 %arrayidx21 = getelementptr inbounds i32, ptr %x, i64 %idxprom20 %call22 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef %arrayidx21) %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1 %exitcond55.not = icmp eq i64 %indvars.iv.next51, %wide.trip.count54 br i1 %exitcond55.not, label %for.end25, label %for.body17, !llvm.loop !37 for.end25: ; preds = %for.body17, %entry, %for.cond1.preheader, %for.cond15.preheader call void @llvm.lifetime.end.p0(i64 2097152, ptr nonnull %b) #17 ret void } ; Function Attrs: nounwind declare i32 @rand() local_unnamed_addr #9 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #10 ; Function Attrs: nofree norecurse nosync nounwind memory(argmem: read) uwtable define dso_local i32 @search(i32 noundef %x, ptr nocapture noundef readonly %a, i32 noundef %n) local_unnamed_addr #11 { entry: %cmp.not9 = icmp slt i32 %n, 1 br i1 %cmp.not9, label %while.end, label %while.body.preheader while.body.preheader: ; preds = %entry %sub = add nsw i32 %n, -1 br label %while.body while.body: ; preds = %while.body.preheader, %while.body %st.011 = phi i32 [ %st.1, %while.body ], [ 0, %while.body.preheader ] %fi.010 = phi i32 [ %fi.1, %while.body ], [ %sub, %while.body.preheader ] %add = add nsw i32 %st.011, %fi.010 %div = sdiv i32 %add, 2 %idxprom = sext i32 %div to i64 %arrayidx = getelementptr inbounds i32, ptr %a, i64 %idxprom %0 = load i32, ptr %arrayidx, align 4, !tbaa !16 %cmp1 = icmp slt i32 %0, %x %add2 = add nsw i32 %div, 1 %sub3 = add nsw i32 %div, -1 %fi.1 = select i1 %cmp1, i32 %fi.010, i32 %sub3 %st.1 = select i1 %cmp1, i32 %add2, i32 %st.011 %cmp.not = icmp sgt i32 %st.1, %fi.1 br i1 %cmp.not, label %while.end, label %while.body, !llvm.loop !38 while.end: ; preds = %while.body, %entry %st.0.lcssa = phi i32 [ 0, %entry ], [ %st.1, %while.body ] ret i32 %st.0.lcssa } ; Function Attrs: nofree nounwind uwtable define dso_local void @prarr(ptr nocapture noundef readonly %arr, i32 noundef %n) local_unnamed_addr #12 { entry: %cmp7 = icmp sgt i32 %n, 0 br i1 %cmp7, label %if.end.peel, label %for.end if.end.peel: ; preds = %entry %wide.trip.count = zext i32 %n to i64 %.pre = load i32, ptr %arr, align 4, !tbaa !16 %call1.peel = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %.pre) %exitcond.peel.not = icmp eq i32 %n, 1 br i1 %exitcond.peel.not, label %for.end, label %if.end if.end: ; preds = %if.end.peel, %if.end %indvars.iv = phi i64 [ %indvars.iv.next, %if.end ], [ 1, %if.end.peel ] %putchar6 = tail call i32 @putchar(i32 32) %arrayidx = getelementptr inbounds i32, ptr %arr, i64 %indvars.iv %0 = load i32, ptr %arrayidx, align 4, !tbaa !16 %call1 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %0) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count br i1 %exitcond.not, label %for.end, label %if.end, !llvm.loop !39 for.end: ; preds = %if.end, %if.end.peel, %entry %putchar = tail call i32 @putchar(i32 10) ret void } ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #10 ; Function Attrs: nounwind uwtable define dso_local void @getperm(ptr nocapture noundef %a, i32 noundef %n) local_unnamed_addr #8 { entry: %cmp20 = icmp sgt i32 %n, 0 br i1 %cmp20, label %for.body.preheader, label %for.end9 for.body.preheader: ; preds = %entry %wide.trip.count = zext i32 %n to i64 %min.iters.check = icmp ult i32 %n, 8 br i1 %min.iters.check, label %for.body.preheader30, label %vector.ph vector.ph: ; preds = %for.body.preheader %n.vec = and i64 %wide.trip.count, 4294967288 br label %vector.body vector.body: ; preds = %vector.body, %vector.ph %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ] %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4> %0 = getelementptr inbounds i32, ptr %a, i64 %index store <4 x i32> %vec.ind, ptr %0, align 4, !tbaa !16 %1 = getelementptr inbounds i32, ptr %0, i64 4 store <4 x i32> %step.add, ptr %1, align 4, !tbaa !16 %index.next = add nuw i64 %index, 8 %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8> %2 = icmp eq i64 %index.next, %n.vec br i1 %2, label %middle.block, label %vector.body, !llvm.loop !41 middle.block: ; preds = %vector.body %cmp.n = icmp eq i64 %n.vec, %wide.trip.count br i1 %cmp.n, label %for.cond1.preheader, label %for.body.preheader30 for.body.preheader30: ; preds = %for.body.preheader, %middle.block %indvars.iv.ph = phi i64 [ 0, %for.body.preheader ], [ %n.vec, %middle.block ] br label %for.body for.cond1.preheader: ; preds = %for.body, %middle.block %cmp222 = icmp sgt i32 %n, 1 br i1 %cmp222, label %for.body3.preheader, label %for.end9 for.body3.preheader: ; preds = %for.cond1.preheader %3 = zext i32 %n to i64 br label %for.body3 for.body: ; preds = %for.body.preheader30, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ %indvars.iv.ph, %for.body.preheader30 ] %arrayidx = getelementptr inbounds i32, ptr %a, i64 %indvars.iv %4 = trunc i64 %indvars.iv to i32 store i32 %4, ptr %arrayidx, align 4, !tbaa !16 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count br i1 %exitcond.not, label %for.cond1.preheader, label %for.body, !llvm.loop !42 for.body3: ; preds = %for.body3.preheader, %for.body3 %indvars.iv25 = phi i64 [ %3, %for.body3.preheader ], [ %indvars.iv.next26, %for.body3 ] %indvars.iv.next26 = add nsw i64 %indvars.iv25, -1 %call = tail call i32 @rand() #17 %5 = trunc i64 %indvars.iv25 to i32 %rem = srem i32 %call, %5 %idxprom4 = sext i32 %rem to i64 %arrayidx5 = getelementptr inbounds i32, ptr %a, i64 %idxprom4 %idxprom6 = and i64 %indvars.iv.next26, 4294967295 %arrayidx7 = getelementptr inbounds i32, ptr %a, i64 %idxprom6 %6 = load i32, ptr %arrayidx5, align 4, !tbaa !16 %7 = load i32, ptr %arrayidx7, align 4, !tbaa !16 store i32 %7, ptr %arrayidx5, align 4, !tbaa !16 store i32 %6, ptr %arrayidx7, align 4, !tbaa !16 %cmp2 = icmp ugt i64 %indvars.iv25, 2 br i1 %cmp2, label %for.body3, label %for.end9, !llvm.loop !43 for.end9: ; preds = %for.body3, %entry, %for.cond1.preheader ret void } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @sdsortfnc(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) #5 { entry: %0 = load i32, ptr %a, align 4, !tbaa !44 %1 = load i32, ptr %b, align 4, !tbaa !44 %cmp = icmp slt i32 %0, %1 %cmp4 = icmp sgt i32 %0, %1 %. = zext i1 %cmp4 to i32 %retval.0 = select i1 %cmp, i32 -1, i32 %. ret i32 %retval.0 } ; Function Attrs: nofree nounwind uwtable define dso_local void @coordinate_comp(ptr nocapture noundef %a, i32 noundef %n) local_unnamed_addr #12 { entry: %dat = alloca [524288 x %struct.sd], align 16 call void @llvm.lifetime.start.p0(i64 4194304, ptr nonnull %dat) #17 %cmp46 = icmp sgt i32 %n, 0 br i1 %cmp46, label %for.body.preheader, label %for.end for.body.preheader: ; preds = %entry %wide.trip.count = zext i32 %n to i64 %min.iters.check = icmp ult i32 %n, 4 br i1 %min.iters.check, label %for.body.preheader61, label %vector.ph vector.ph: ; preds = %for.body.preheader %n.vec = and i64 %wide.trip.count, 4294967292 br label %vector.body vector.body: ; preds = %vector.body, %vector.ph %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] %vec.ind = phi <2 x i32> [ <i32 0, i32 1>, %vector.ph ], [ %vec.ind.next, %vector.body ] %step.add = add <2 x i32> %vec.ind, <i32 2, i32 2> %0 = or i64 %index, 2 %1 = getelementptr inbounds i32, ptr %a, i64 %index %wide.load = load <2 x i32>, ptr %1, align 4, !tbaa !16 %2 = getelementptr inbounds i32, ptr %1, i64 2 %wide.load59 = load <2 x i32>, ptr %2, align 4, !tbaa !16 %3 = getelementptr inbounds [524288 x %struct.sd], ptr %dat, i64 0, i64 %index %4 = getelementptr inbounds [524288 x %struct.sd], ptr %dat, i64 0, i64 %0 %interleaved.vec = shufflevector <2 x i32> %wide.load, <2 x i32> %vec.ind, <4 x i32> <i32 0, i32 2, i32 1, i32 3> store <4 x i32> %interleaved.vec, ptr %3, align 16, !tbaa !16 %interleaved.vec60 = shufflevector <2 x i32> %wide.load59, <2 x i32> %step.add, <4 x i32> <i32 0, i32 2, i32 1, i32 3> store <4 x i32> %interleaved.vec60, ptr %4, align 16, !tbaa !16 %index.next = add nuw i64 %index, 4 %vec.ind.next = add <2 x i32> %vec.ind, <i32 4, i32 4> %5 = icmp eq i64 %index.next, %n.vec br i1 %5, label %middle.block, label %vector.body, !llvm.loop !46 middle.block: ; preds = %vector.body %cmp.n = icmp eq i64 %n.vec, %wide.trip.count br i1 %cmp.n, label %for.end, label %for.body.preheader61 for.body.preheader61: ; preds = %for.body.preheader, %middle.block %indvars.iv.ph = phi i64 [ 0, %for.body.preheader ], [ %n.vec, %middle.block ] br label %for.body for.body: ; preds = %for.body.preheader61, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ %indvars.iv.ph, %for.body.preheader61 ] %arrayidx = getelementptr inbounds i32, ptr %a, i64 %indvars.iv %6 = load i32, ptr %arrayidx, align 4, !tbaa !16 %arrayidx2 = getelementptr inbounds [524288 x %struct.sd], ptr %dat, i64 0, i64 %indvars.iv store i32 %6, ptr %arrayidx2, align 8, !tbaa !44 %node = getelementptr inbounds [524288 x %struct.sd], ptr %dat, i64 0, i64 %indvars.iv, i32 1 %7 = trunc i64 %indvars.iv to i32 store i32 %7, ptr %node, align 4, !tbaa !47 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count br i1 %exitcond.not, label %for.end, label %for.body, !llvm.loop !48 for.end: ; preds = %for.body, %middle.block, %entry %conv = sext i32 %n to i64 call void @qsort(ptr noundef nonnull %dat, i64 noundef %conv, i64 noundef 8, ptr noundef nonnull @sdsortfnc) #17 %node6 = getelementptr inbounds %struct.sd, ptr %dat, i64 0, i32 1 %8 = load i32, ptr %node6, align 4, !tbaa !47 %idxprom7 = sext i32 %8 to i64 %arrayidx8 = getelementptr inbounds i32, ptr %a, i64 %idxprom7 store i32 0, ptr %arrayidx8, align 4, !tbaa !16 %cmp1048 = icmp sgt i32 %n, 1 br i1 %cmp1048, label %for.body12.preheader, label %for.end29 for.body12.preheader: ; preds = %for.end %wide.trip.count56 = zext i32 %n to i64 %.pre = load i32, ptr %dat, align 16, !tbaa !44 %9 = add nsw i64 %wide.trip.count56, -1 %xtraiter = and i64 %9, 1 %10 = icmp eq i32 %n, 2 br i1 %10, label %for.end29.loopexit.unr-lcssa, label %for.body12.preheader.new for.body12.preheader.new: ; preds = %for.body12.preheader %unroll_iter = and i64 %9, -2 br label %for.body12 for.body12: ; preds = %for.body12, %for.body12.preheader.new %11 = phi i32 [ %.pre, %for.body12.preheader.new ], [ %14, %for.body12 ] %indvars.iv52 = phi i64 [ 1, %for.body12.preheader.new ], [ %indvars.iv.next53.1, %for.body12 ] %c.050 = phi i32 [ 0, %for.body12.preheader.new ], [ %spec.select.1, %for.body12 ] %niter = phi i64 [ 0, %for.body12.preheader.new ], [ %niter.next.1, %for.body12 ] %arrayidx17 = getelementptr inbounds [524288 x %struct.sd], ptr %dat, i64 0, i64 %indvars.iv52 %12 = load i32, ptr %arrayidx17, align 8, !tbaa !44 %cmp19.not = icmp ne i32 %11, %12 %inc21 = zext i1 %cmp19.not to i32 %spec.select = add nuw nsw i32 %c.050, %inc21 %node24 = getelementptr inbounds [524288 x %struct.sd], ptr %dat, i64 0, i64 %indvars.iv52, i32 1 %13 = load i32, ptr %node24, align 4, !tbaa !47 %idxprom25 = sext i32 %13 to i64 %arrayidx26 = getelementptr inbounds i32, ptr %a, i64 %idxprom25 store i32 %spec.select, ptr %arrayidx26, align 4, !tbaa !16 %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1 %arrayidx17.1 = getelementptr inbounds [524288 x %struct.sd], ptr %dat, i64 0, i64 %indvars.iv.next53 %14 = load i32, ptr %arrayidx17.1, align 8, !tbaa !44 %cmp19.not.1 = icmp ne i32 %12, %14 %inc21.1 = zext i1 %cmp19.not.1 to i32 %spec.select.1 = add nuw nsw i32 %spec.select, %inc21.1 %node24.1 = getelementptr inbounds [524288 x %struct.sd], ptr %dat, i64 0, i64 %indvars.iv.next53, i32 1 %15 = load i32, ptr %node24.1, align 4, !tbaa !47 %idxprom25.1 = sext i32 %15 to i64 %arrayidx26.1 = getelementptr inbounds i32, ptr %a, i64 %idxprom25.1 store i32 %spec.select.1, ptr %arrayidx26.1, align 4, !tbaa !16 %indvars.iv.next53.1 = add nuw nsw i64 %indvars.iv52, 2 %niter.next.1 = add i64 %niter, 2 %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter br i1 %niter.ncmp.1, label %for.end29.loopexit.unr-lcssa, label %for.body12, !llvm.loop !49 for.end29.loopexit.unr-lcssa: ; preds = %for.body12, %for.body12.preheader %.unr = phi i32 [ %.pre, %for.body12.preheader ], [ %14, %for.body12 ] %indvars.iv52.unr = phi i64 [ 1, %for.body12.preheader ], [ %indvars.iv.next53.1, %for.body12 ] %c.050.unr = phi i32 [ 0, %for.body12.preheader ], [ %spec.select.1, %for.body12 ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %for.end29, label %for.body12.epil for.body12.epil: ; preds = %for.end29.loopexit.unr-lcssa %arrayidx17.epil = getelementptr inbounds [524288 x %struct.sd], ptr %dat, i64 0, i64 %indvars.iv52.unr %16 = load i32, ptr %arrayidx17.epil, align 8, !tbaa !44 %cmp19.not.epil = icmp ne i32 %.unr, %16 %inc21.epil = zext i1 %cmp19.not.epil to i32 %spec.select.epil = add nuw nsw i32 %c.050.unr, %inc21.epil %node24.epil = getelementptr inbounds [524288 x %struct.sd], ptr %dat, i64 0, i64 %indvars.iv52.unr, i32 1 %17 = load i32, ptr %node24.epil, align 4, !tbaa !47 %idxprom25.epil = sext i32 %17 to i64 %arrayidx26.epil = getelementptr inbounds i32, ptr %a, i64 %idxprom25.epil store i32 %spec.select.epil, ptr %arrayidx26.epil, align 4, !tbaa !16 br label %for.end29 for.end29: ; preds = %for.body12.epil, %for.end29.loopexit.unr-lcssa, %for.end call void @llvm.lifetime.end.p0(i64 4194304, ptr nonnull %dat) #17 ret void } ; Function Attrs: nofree declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #13 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #12 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #17 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !16 %cmp1 = icmp slt i32 %0, 10 br i1 %cmp1, label %cleanup, label %for.inc for.inc: ; preds = %entry %cmp1.1 = icmp ult i32 %0, 20 br i1 %cmp1.1, label %land.lhs.true.1, label %for.inc.1 land.lhs.true.1: ; preds = %for.inc %1 = and i32 %0, 1 %cmp2.1 = icmp eq i32 %1, 0 br i1 %cmp2.1, label %cleanup, label %land.lhs.true.2 for.inc.1: ; preds = %for.inc %cmp1.2 = icmp ult i32 %0, 30 br i1 %cmp1.2, label %land.lhs.true.2, label %for.inc.2 land.lhs.true.2: ; preds = %land.lhs.true.1, %for.inc.1 %rem.231.lhs.trunc = trunc i32 %0 to i8 %rem.23132 = urem i8 %rem.231.lhs.trunc, 3 %cmp2.2 = icmp eq i8 %rem.23132, 0 %2 = and i32 %0, 3 %cmp2.3 = icmp eq i32 %2, 0 %or.cond = or i1 %cmp2.2, %cmp2.3 br i1 %or.cond, label %cleanup, label %land.lhs.true.4 for.inc.2: ; preds = %for.inc.1 %cmp1.3 = icmp ult i32 %0, 40 br i1 %cmp1.3, label %land.lhs.true.3, label %for.inc.3 land.lhs.true.3: ; preds = %for.inc.2 %.old = and i32 %0, 3 %cmp2.3.old = icmp eq i32 %.old, 0 br i1 %cmp2.3.old, label %cleanup, label %land.lhs.true.4 for.inc.3: ; preds = %for.inc.2 %cmp1.4 = icmp ult i32 %0, 50 br i1 %cmp1.4, label %land.lhs.true.4, label %for.inc.4 land.lhs.true.4: ; preds = %land.lhs.true.2, %land.lhs.true.3, %for.inc.3 %rem.433.lhs.trunc = trunc i32 %0 to i8 %rem.43334 = urem i8 %rem.433.lhs.trunc, 5 %cmp2.4 = icmp eq i8 %rem.43334, 0 %rem.535.lhs.trunc = trunc i32 %0 to i8 %rem.53536 = urem i8 %rem.535.lhs.trunc, 6 %cmp2.5 = icmp eq i8 %rem.53536, 0 %or.cond43 = or i1 %cmp2.4, %cmp2.5 br i1 %or.cond43, label %cleanup, label %land.lhs.true.6 for.inc.4: ; preds = %for.inc.3 %cmp1.5 = icmp ult i32 %0, 60 br i1 %cmp1.5, label %land.lhs.true.5, label %for.inc.5 land.lhs.true.5: ; preds = %for.inc.4 %rem.535.lhs.trunc.old = trunc i32 %0 to i8 %rem.53536.old = urem i8 %rem.535.lhs.trunc.old, 6 %cmp2.5.old = icmp eq i8 %rem.53536.old, 0 br i1 %cmp2.5.old, label %cleanup, label %land.lhs.true.6 for.inc.5: ; preds = %for.inc.4 %cmp1.6 = icmp ult i32 %0, 70 br i1 %cmp1.6, label %land.lhs.true.6, label %for.inc.6 land.lhs.true.6: ; preds = %land.lhs.true.4, %land.lhs.true.5, %for.inc.5 %rem.637.lhs.trunc = trunc i32 %0 to i8 %rem.63738 = urem i8 %rem.637.lhs.trunc, 7 %cmp2.6 = icmp eq i8 %rem.63738, 0 %3 = and i32 %0, 7 %cmp2.7 = icmp eq i32 %3, 0 %or.cond42 = or i1 %cmp2.6, %cmp2.7 br i1 %or.cond42, label %cleanup, label %land.lhs.true.8 for.inc.6: ; preds = %for.inc.5 %cmp1.7 = icmp ult i32 %0, 80 br i1 %cmp1.7, label %land.lhs.true.7, label %for.inc.7 land.lhs.true.7: ; preds = %for.inc.6 %.old41 = and i32 %0, 7 %cmp2.7.old = icmp eq i32 %.old41, 0 br i1 %cmp2.7.old, label %cleanup, label %land.lhs.true.8 for.inc.7: ; preds = %for.inc.6 %cmp1.8 = icmp ult i32 %0, 90 br i1 %cmp1.8, label %land.lhs.true.8, label %for.inc.8 land.lhs.true.8: ; preds = %land.lhs.true.6, %land.lhs.true.7, %for.inc.7 %rem.839.lhs.trunc = trunc i32 %0 to i8 %rem.83940 = urem i8 %rem.839.lhs.trunc, 9 %cmp2.8 = icmp eq i8 %rem.83940, 0 br i1 %cmp2.8, label %cleanup, label %for.inc.8 for.inc.8: ; preds = %land.lhs.true.8, %for.inc.7 br label %cleanup cleanup: ; preds = %land.lhs.true.1, %land.lhs.true.2, %land.lhs.true.3, %land.lhs.true.4, %land.lhs.true.5, %land.lhs.true.6, %land.lhs.true.7, %land.lhs.true.8, %entry, %for.inc.8 %str.sink = phi ptr [ @str, %for.inc.8 ], [ @str.5, %entry ], [ @str.5, %land.lhs.true.8 ], [ @str.5, %land.lhs.true.7 ], [ @str.5, %land.lhs.true.6 ], [ @str.5, %land.lhs.true.5 ], [ @str.5, %land.lhs.true.4 ], [ @str.5, %land.lhs.true.3 ], [ @str.5, %land.lhs.true.2 ], [ @str.5, %land.lhs.true.1 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #17 ret i32 0 } ; Function Attrs: nofree nounwind declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #14 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #14 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smax.i32(i32, i32) #15 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smin.i32(i32, i32) #15 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.abs.i32(i32, i1 immarg) #15 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i64 @llvm.smax.i64(i64, i64) #15 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i64 @llvm.smin.i64(i64, i64) #15 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i64 @llvm.abs.i64(i64, i1 immarg) #15 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.vector.reduce.mul.v4i32(<4 x i32>) #15 attributes #0 = { mustprogress nofree nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { nofree norecurse nosync nounwind memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #4 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #5 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #6 = { mustprogress nofree nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #7 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #8 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #9 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #10 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #11 = { nofree norecurse nosync nounwind memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #12 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #13 = { nofree "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #14 = { nofree nounwind } attributes #15 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #16 = { nounwind willreturn memory(read) } attributes #17 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = distinct !{!5, !6} !6 = !{!"llvm.loop.mustprogress"} !7 = distinct !{!7, !6} !8 = distinct !{!8, !6, !9, !10} !9 = !{!"llvm.loop.isvectorized", i32 1} !10 = !{!"llvm.loop.unroll.runtime.disable"} !11 = distinct !{!11, !6, !10, !9} !12 = distinct !{!12, !6, !9, !10} !13 = distinct !{!13, !6, !10, !9} !14 = distinct !{!14, !6} !15 = distinct !{!15, !6} !16 = !{!17, !17, i64 0} !17 = !{!"int", !18, i64 0} !18 = !{!"omnipotent char", !19, i64 0} !19 = !{!"Simple C/C++ TBAA"} !20 = distinct !{!20, !6} !21 = distinct !{!21, !6} !22 = distinct !{!22, !6} !23 = distinct !{!23, !24} !24 = !{!"llvm.loop.unroll.disable"} !25 = distinct !{!25, !6} !26 = distinct !{!26, !24} !27 = distinct !{!27, !6} !28 = distinct !{!28, !6} !29 = !{!30, !30, i64 0} !30 = !{!"long long", !18, i64 0} !31 = !{!32, !32, i64 0} !32 = !{!"double", !18, i64 0} !33 = !{!18, !18, i64 0} !34 = distinct !{!34, !6, !9, !10} !35 = distinct !{!35, !6, !10, !9} !36 = distinct !{!36, !6} !37 = distinct !{!37, !6} !38 = distinct !{!38, !6} !39 = distinct !{!39, !6, !40} !40 = !{!"llvm.loop.peeled.count", i32 1} !41 = distinct !{!41, !6, !9, !10} !42 = distinct !{!42, !6, !10, !9} !43 = distinct !{!43, !6} !44 = !{!45, !17, i64 0} !45 = !{!"", !17, i64 0, !17, i64 4} !46 = distinct !{!46, !6, !9, !10} !47 = !{!45, !17, i64 4} !48 = distinct !{!48, !6, !10, !9} !49 = distinct !{!49, !6}
#define ABS(x) x > 0 ? x : -x #include <stdio.h> int main(void) { int a1, a2, k1, k2, sum; int temp, temp_sum; scanf("%d %d %d %d %d", &a1, &a2, &k1, &k2, &sum); if (k1 > k2) { temp = k1; k1 = k2; k2 = temp; temp = a1; a1 = a2; a2 = temp; } int max = 0, min = 0; temp_sum = sum - ((a1 * k1 + a2 * k2) - (a1 + a2)); //printf("%d\n", temp_sum); min = (temp_sum <= 0 ? 0 : ((a1 + a2 - temp_sum) <= 0 ? a1 + a2 : (temp_sum))); //printf("%d %d %d\n", a1, a2, temp_sum); temp_sum = sum; while ((temp_sum - k1 >= 0) && (a1 > 0)) { temp_sum -= k1; a1--; max++; } while ((temp_sum - k2 >= 0) && (a2 > 0)) { temp_sum -= k2; a2--; max++; } printf("%d %d", min, max); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13671/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13671/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 [15 x i8] c"%d %d %d %d %d\00", align 1 @.str.1 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %a1 = alloca i32, align 4 %a2 = alloca i32, align 4 %k1 = alloca i32, align 4 %k2 = alloca i32, align 4 %sum = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a1) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a2) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %k1) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %k2) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %sum) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a1, ptr noundef nonnull %a2, ptr noundef nonnull %k1, ptr noundef nonnull %k2, ptr noundef nonnull %sum) %0 = load i32, ptr %k1, align 4, !tbaa !5 %1 = load i32, ptr %k2, align 4, !tbaa !5 %cmp = icmp sgt i32 %0, %1 %.pre = load i32, ptr %a1, align 4 %.pre57 = load i32, ptr %a2, align 4 br i1 %cmp, label %if.then, label %if.end if.then: ; preds = %entry store i32 %1, ptr %k1, align 4, !tbaa !5 store i32 %0, ptr %k2, align 4, !tbaa !5 store i32 %.pre57, ptr %a1, align 4, !tbaa !5 store i32 %.pre, ptr %a2, align 4, !tbaa !5 br label %if.end if.end: ; preds = %if.then, %entry %2 = phi i32 [ %0, %if.then ], [ %1, %entry ] %a2.promoted = phi i32 [ %.pre, %if.then ], [ %.pre57, %entry ] %3 = phi i32 [ %1, %if.then ], [ %0, %entry ] %4 = phi i32 [ %.pre57, %if.then ], [ %.pre, %entry ] %5 = load i32, ptr %sum, align 4, !tbaa !5 %sub1342 = sub nsw i32 %5, %3 %cmp1443 = icmp sgt i32 %sub1342, -1 %cmp1544 = icmp sgt i32 %4, 0 %6 = select i1 %cmp1443, i1 %cmp1544, i1 false br i1 %6, label %while.body, label %while.cond17.preheader while.cond.while.cond17.preheader_crit_edge: ; preds = %while.body store i32 %dec, ptr %a1, align 4, !tbaa !5 br label %while.cond17.preheader while.cond17.preheader: ; preds = %while.cond.while.cond17.preheader_crit_edge, %if.end %temp_sum.0.lcssa = phi i32 [ %sub1347, %while.cond.while.cond17.preheader_crit_edge ], [ %5, %if.end ] %max.0.lcssa = phi i32 [ %inc, %while.cond.while.cond17.preheader_crit_edge ], [ 0, %if.end ] %sub1850 = sub nsw i32 %temp_sum.0.lcssa, %2 %cmp1951 = icmp sgt i32 %sub1850, -1 %cmp2152 = icmp sgt i32 %a2.promoted, 0 %7 = select i1 %cmp1951, i1 %cmp2152, i1 false br i1 %7, label %while.body23, label %while.end27 while.body: ; preds = %if.end, %while.body %sub1347 = phi i32 [ %sub13, %while.body ], [ %sub1342, %if.end ] %max.046 = phi i32 [ %inc, %while.body ], [ 0, %if.end ] %dec4145 = phi i32 [ %dec, %while.body ], [ %4, %if.end ] %dec = add nsw i32 %dec4145, -1 %inc = add nuw nsw i32 %max.046, 1 %sub13 = sub nsw i32 %sub1347, %3 %cmp14 = icmp sgt i32 %sub13, -1 %cmp15 = icmp ugt i32 %dec4145, 1 %8 = select i1 %cmp14, i1 %cmp15, i1 false br i1 %8, label %while.body, label %while.cond.while.cond17.preheader_crit_edge, !llvm.loop !9 while.body23: ; preds = %while.cond17.preheader, %while.body23 %sub1855 = phi i32 [ %sub18, %while.body23 ], [ %sub1850, %while.cond17.preheader ] %max.154 = phi i32 [ %inc26, %while.body23 ], [ %max.0.lcssa, %while.cond17.preheader ] %dec254953 = phi i32 [ %dec25, %while.body23 ], [ %a2.promoted, %while.cond17.preheader ] %dec25 = add nsw i32 %dec254953, -1 %inc26 = add nuw nsw i32 %max.154, 1 %sub18 = sub nsw i32 %sub1855, %2 %cmp19 = icmp sgt i32 %sub18, -1 %cmp21 = icmp ugt i32 %dec254953, 1 %9 = select i1 %cmp19, i1 %cmp21, i1 false br i1 %9, label %while.body23, label %while.cond17.while.end27_crit_edge, !llvm.loop !11 while.cond17.while.end27_crit_edge: ; preds = %while.body23 store i32 %dec25, ptr %a2, align 4, !tbaa !5 br label %while.end27 while.end27: ; preds = %while.cond17.while.end27_crit_edge, %while.cond17.preheader %max.1.lcssa = phi i32 [ %inc26, %while.cond17.while.end27_crit_edge ], [ %max.0.lcssa, %while.cond17.preheader ] %add2 = add nsw i32 %a2.promoted, %4 %mul.neg = mul i32 %3, %4 %mul1.neg = mul i32 %2, %a2.promoted %reass.add = add i32 %mul1.neg, %mul.neg %sub.neg = add i32 %add2, %5 %sub3 = sub i32 %sub.neg, %reass.add %cond = call i32 @llvm.smin.i32(i32 %add2, i32 %sub3) %cmp4.inv = icmp sgt i32 %sub3, 0 %cond12 = select i1 %cmp4.inv, i32 %cond, i32 0 %call28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %cond12, i32 noundef %max.1.lcssa) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %sum) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %k2) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %k1) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a2) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a1) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smin.i32(i32, i32) #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10}
#include<stdio.h> #include<stdlib.h> int compare(const void* a, const void* b){ if(*(long long*)a > *(long long*)b) return -1; if(*(long long*)a < *(long long*)b) return 1; return 0; } int main(){ int N, A, B; scanf("%d%d%d", &N ,&A ,&B); long long v[N]; for(int i = 0; i < N; i++) scanf("%lld", v + i); qsort(v, N, sizeof(long long), compare); long double average = 0; for(int i = 0; i < A; i++) average += v[i]; average /= A; printf("%.7Lf\n", average); int count = 0; for(int i = 0; i < N; i++){ if(v[i] == v[A - 1]) count++; } long long binom[51][51]; for(int i = 0; i <= 50; i++){ for(int j = 0; j <= 50; j++){ if(j == 0 || j == i){ binom[i][j] = 1; }else{ binom[i][j] = 0; } } } for(int i = 1; i <= 50; i++){ for(int j = 1; j <= i; j++){ binom[i][j] = binom[i - 1][j - 1] + binom[i - 1][j]; } } if(v[0] == v[A - 1]){ long long c = 0; for(int i = A; i <= B; i++){ c += binom[count][i]; } printf("%lld\n", c); }else{ int cnt = 0; for(int i = 0; i < A; i++){ if(v[i] == v[A - 1]) cnt++; } long long c = binom[count][cnt]; printf("%lld\n", c); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136753/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136753/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 [7 x i8] c"%d%d%d\00", align 1 @.str.1 = private unnamed_addr constant [5 x i8] c"%lld\00", align 1 @.str.2 = private unnamed_addr constant [7 x i8] c"%.7Lf\0A\00", align 1 @.str.3 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1 ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @compare(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) #0 { entry: %0 = load i64, ptr %a, align 8, !tbaa !5 %1 = load i64, ptr %b, align 8, !tbaa !5 %cmp = icmp sgt i64 %0, %1 %cmp1 = icmp slt i64 %0, %1 %. = zext i1 %cmp1 to i32 %retval.0 = select i1 %cmp, i32 -1, i32 %. ret i32 %retval.0 } ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #1 { entry: %N = alloca i32, align 4 %A = alloca i32, align 4 %B = alloca i32, align 4 %binom = alloca [51 x [51 x i64]], align 16 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #7 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %A) #7 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %B) #7 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N, ptr noundef nonnull %A, ptr noundef nonnull %B) %0 = load i32, ptr %N, align 4, !tbaa !9 %1 = zext i32 %0 to i64 %2 = call ptr @llvm.stacksave.p0() %vla = alloca i64, i64 %1, align 16 %3 = load i32, ptr %N, align 4, !tbaa !9 %cmp182 = icmp sgt i32 %3, 0 br i1 %cmp182, label %for.body, label %entry.for.cond.cleanup_crit_edge entry.for.cond.cleanup_crit_edge: ; preds = %entry %.pre248 = sext i32 %3 to i64 br label %for.cond.cleanup for.cond.cleanup: ; preds = %for.body, %entry.for.cond.cleanup_crit_edge %conv.pre-phi = phi i64 [ %.pre248, %entry.for.cond.cleanup_crit_edge ], [ %7, %for.body ] call void @qsort(ptr noundef nonnull %vla, i64 noundef %conv.pre-phi, i64 noundef 8, ptr noundef nonnull @compare) #7 %4 = load i32, ptr %A, align 4, !tbaa !9 %cmp4184 = icmp sgt i32 %4, 0 br i1 %cmp4184, label %for.body7.preheader, label %for.cond.cleanup6 for.body7.preheader: ; preds = %for.cond.cleanup %wide.trip.count = zext i32 %4 to i64 %xtraiter = and i64 %wide.trip.count, 3 %5 = icmp ult i32 %4, 4 br i1 %5, label %for.cond.cleanup6.loopexit.unr-lcssa, label %for.body7.preheader.new for.body7.preheader.new: ; preds = %for.body7.preheader %unroll_iter = and i64 %wide.trip.count, 4294967292 br label %for.body7 for.body: ; preds = %entry, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ] %add.ptr = getelementptr inbounds i64, ptr %vla, i64 %indvars.iv %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %add.ptr) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %6 = load i32, ptr %N, align 4, !tbaa !9 %7 = sext i32 %6 to i64 %cmp = icmp slt i64 %indvars.iv.next, %7 br i1 %cmp, label %for.body, label %for.cond.cleanup, !llvm.loop !11 for.cond.cleanup6.loopexit.unr-lcssa: ; preds = %for.body7, %for.body7.preheader %add.lcssa.ph = phi x86_fp80 [ undef, %for.body7.preheader ], [ %add.3, %for.body7 ] %indvars.iv206.unr = phi i64 [ 0, %for.body7.preheader ], [ %indvars.iv.next207.3, %for.body7 ] %average.0185.unr = phi x86_fp80 [ 0xK00000000000000000000, %for.body7.preheader ], [ %add.3, %for.body7 ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %for.cond.cleanup6, label %for.body7.epil for.body7.epil: ; preds = %for.cond.cleanup6.loopexit.unr-lcssa, %for.body7.epil %indvars.iv206.epil = phi i64 [ %indvars.iv.next207.epil, %for.body7.epil ], [ %indvars.iv206.unr, %for.cond.cleanup6.loopexit.unr-lcssa ] %average.0185.epil = phi x86_fp80 [ %add.epil, %for.body7.epil ], [ %average.0185.unr, %for.cond.cleanup6.loopexit.unr-lcssa ] %epil.iter = phi i64 [ %epil.iter.next, %for.body7.epil ], [ 0, %for.cond.cleanup6.loopexit.unr-lcssa ] %arrayidx.epil = getelementptr inbounds i64, ptr %vla, i64 %indvars.iv206.epil %8 = load i64, ptr %arrayidx.epil, align 8, !tbaa !5 %conv8.epil = sitofp i64 %8 to x86_fp80 %add.epil = fadd x86_fp80 %average.0185.epil, %conv8.epil %indvars.iv.next207.epil = add nuw nsw i64 %indvars.iv206.epil, 1 %epil.iter.next = add i64 %epil.iter, 1 %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter br i1 %epil.iter.cmp.not, label %for.cond.cleanup6, label %for.body7.epil, !llvm.loop !13 for.cond.cleanup6: ; preds = %for.cond.cleanup6.loopexit.unr-lcssa, %for.body7.epil, %for.cond.cleanup %average.0.lcssa = phi x86_fp80 [ 0xK00000000000000000000, %for.cond.cleanup ], [ %add.lcssa.ph, %for.cond.cleanup6.loopexit.unr-lcssa ], [ %add.epil, %for.body7.epil ] %conv12 = sitofp i32 %4 to x86_fp80 %div = fdiv x86_fp80 %average.0.lcssa, %conv12 %call13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, x86_fp80 noundef %div) %9 = load i32, ptr %N, align 4, !tbaa !9 %cmp16189 = icmp sgt i32 %9, 0 br i1 %cmp16189, label %for.body19.lr.ph, label %for.cond.cleanup18 for.body19.lr.ph: ; preds = %for.cond.cleanup6 %10 = load i32, ptr %A, align 4, !tbaa !9 %sub = add nsw i32 %10, -1 %idxprom22 = sext i32 %sub to i64 %arrayidx23 = getelementptr inbounds i64, ptr %vla, i64 %idxprom22 %11 = load i64, ptr %arrayidx23, align 8, !tbaa !5 %wide.trip.count212 = zext i32 %9 to i64 %min.iters.check = icmp ult i32 %9, 4 br i1 %min.iters.check, label %for.body19.preheader, label %vector.ph vector.ph: ; preds = %for.body19.lr.ph %n.vec = and i64 %wide.trip.count212, 4294967292 %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %11, i64 0 %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer br label %vector.body vector.body: ; preds = %vector.body, %vector.ph %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] %vec.phi = phi <2 x i32> [ zeroinitializer, %vector.ph ], [ %18, %vector.body ] %vec.phi250 = phi <2 x i32> [ zeroinitializer, %vector.ph ], [ %19, %vector.body ] %12 = getelementptr inbounds i64, ptr %vla, i64 %index %wide.load = load <2 x i64>, ptr %12, align 16, !tbaa !5 %13 = getelementptr inbounds i64, ptr %12, i64 2 %wide.load251 = load <2 x i64>, ptr %13, align 16, !tbaa !5 %14 = icmp eq <2 x i64> %wide.load, %broadcast.splat %15 = icmp eq <2 x i64> %wide.load251, %broadcast.splat %16 = zext <2 x i1> %14 to <2 x i32> %17 = zext <2 x i1> %15 to <2 x i32> %18 = add <2 x i32> %vec.phi, %16 %19 = add <2 x i32> %vec.phi250, %17 %index.next = add nuw i64 %index, 4 %20 = icmp eq i64 %index.next, %n.vec br i1 %20, label %middle.block, label %vector.body, !llvm.loop !15 middle.block: ; preds = %vector.body %bin.rdx = add <2 x i32> %19, %18 %21 = call i32 @llvm.vector.reduce.add.v2i32(<2 x i32> %bin.rdx) %cmp.n = icmp eq i64 %n.vec, %wide.trip.count212 br i1 %cmp.n, label %for.cond.cleanup18.loopexit, label %for.body19.preheader for.body19.preheader: ; preds = %for.body19.lr.ph, %middle.block %indvars.iv209.ph = phi i64 [ 0, %for.body19.lr.ph ], [ %n.vec, %middle.block ] %count.0190.ph = phi i32 [ 0, %for.body19.lr.ph ], [ %21, %middle.block ] br label %for.body19 for.body7: ; preds = %for.body7, %for.body7.preheader.new %indvars.iv206 = phi i64 [ 0, %for.body7.preheader.new ], [ %indvars.iv.next207.3, %for.body7 ] %average.0185 = phi x86_fp80 [ 0xK00000000000000000000, %for.body7.preheader.new ], [ %add.3, %for.body7 ] %niter = phi i64 [ 0, %for.body7.preheader.new ], [ %niter.next.3, %for.body7 ] %arrayidx = getelementptr inbounds i64, ptr %vla, i64 %indvars.iv206 %22 = load i64, ptr %arrayidx, align 16, !tbaa !5 %conv8 = sitofp i64 %22 to x86_fp80 %add = fadd x86_fp80 %average.0185, %conv8 %indvars.iv.next207 = or i64 %indvars.iv206, 1 %arrayidx.1 = getelementptr inbounds i64, ptr %vla, i64 %indvars.iv.next207 %23 = load i64, ptr %arrayidx.1, align 8, !tbaa !5 %conv8.1 = sitofp i64 %23 to x86_fp80 %add.1 = fadd x86_fp80 %add, %conv8.1 %indvars.iv.next207.1 = or i64 %indvars.iv206, 2 %arrayidx.2 = getelementptr inbounds i64, ptr %vla, i64 %indvars.iv.next207.1 %24 = load i64, ptr %arrayidx.2, align 16, !tbaa !5 %conv8.2 = sitofp i64 %24 to x86_fp80 %add.2 = fadd x86_fp80 %add.1, %conv8.2 %indvars.iv.next207.2 = or i64 %indvars.iv206, 3 %arrayidx.3 = getelementptr inbounds i64, ptr %vla, i64 %indvars.iv.next207.2 %25 = load i64, ptr %arrayidx.3, align 8, !tbaa !5 %conv8.3 = sitofp i64 %25 to x86_fp80 %add.3 = fadd x86_fp80 %add.2, %conv8.3 %indvars.iv.next207.3 = add nuw nsw i64 %indvars.iv206, 4 %niter.next.3 = add i64 %niter, 4 %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter br i1 %niter.ncmp.3, label %for.cond.cleanup6.loopexit.unr-lcssa, label %for.body7, !llvm.loop !18 for.cond.cleanup18.loopexit: ; preds = %for.body19, %middle.block %spec.select.lcssa = phi i32 [ %21, %middle.block ], [ %spec.select, %for.body19 ] %26 = zext i32 %spec.select.lcssa to i64 br label %for.cond.cleanup18 for.cond.cleanup18: ; preds = %for.cond.cleanup18.loopexit, %for.cond.cleanup6 %count.0.lcssa = phi i64 [ 0, %for.cond.cleanup6 ], [ %26, %for.cond.cleanup18.loopexit ] call void @llvm.lifetime.start.p0(i64 20808, ptr nonnull %binom) #7 br label %for.cond36.preheader for.body19: ; preds = %for.body19.preheader, %for.body19 %indvars.iv209 = phi i64 [ %indvars.iv.next210, %for.body19 ], [ %indvars.iv209.ph, %for.body19.preheader ] %count.0190 = phi i32 [ %spec.select, %for.body19 ], [ %count.0190.ph, %for.body19.preheader ] %arrayidx21 = getelementptr inbounds i64, ptr %vla, i64 %indvars.iv209 %27 = load i64, ptr %arrayidx21, align 8, !tbaa !5 %cmp24 = icmp eq i64 %27, %11 %inc26 = zext i1 %cmp24 to i32 %spec.select = add nuw nsw i32 %count.0190, %inc26 %indvars.iv.next210 = add nuw nsw i64 %indvars.iv209, 1 %exitcond213.not = icmp eq i64 %indvars.iv.next210, %wide.trip.count212 br i1 %exitcond213.not, label %for.cond.cleanup18.loopexit, label %for.body19, !llvm.loop !19 for.cond36.preheader: ; preds = %for.cond.cleanup18, %for.cond.cleanup39 %indvars.iv218 = phi i64 [ 0, %for.cond.cleanup18 ], [ %indvars.iv.next219, %for.cond.cleanup39 ] br label %for.body40 for.cond.cleanup39: ; preds = %for.body40 %indvars.iv.next219 = add nuw nsw i64 %indvars.iv218, 1 %exitcond221.not = icmp eq i64 %indvars.iv.next219, 51 br i1 %exitcond221.not, label %for.cond68.preheader, label %for.cond36.preheader, !llvm.loop !20 for.body40: ; preds = %for.body40, %for.cond36.preheader %indvars.iv214 = phi i64 [ 0, %for.cond36.preheader ], [ %indvars.iv.next215.2, %for.body40 ] %cmp41 = icmp eq i64 %indvars.iv214, 0 %cmp43 = icmp eq i64 %indvars.iv214, %indvars.iv218 %or.cond = or i1 %cmp41, %cmp43 %spec.select249 = zext i1 %or.cond to i64 %28 = getelementptr inbounds [51 x [51 x i64]], ptr %binom, i64 0, i64 %indvars.iv218, i64 %indvars.iv214 store i64 %spec.select249, ptr %28, align 8 %indvars.iv.next215 = add nuw nsw i64 %indvars.iv214, 1 %cmp43.1 = icmp eq i64 %indvars.iv.next215, %indvars.iv218 %spec.select249.1 = zext i1 %cmp43.1 to i64 %29 = getelementptr inbounds [51 x [51 x i64]], ptr %binom, i64 0, i64 %indvars.iv218, i64 %indvars.iv.next215 store i64 %spec.select249.1, ptr %29, align 8 %indvars.iv.next215.1 = add nuw nsw i64 %indvars.iv214, 2 %cmp43.2 = icmp eq i64 %indvars.iv.next215.1, %indvars.iv218 %spec.select249.2 = zext i1 %cmp43.2 to i64 %30 = getelementptr inbounds [51 x [51 x i64]], ptr %binom, i64 0, i64 %indvars.iv218, i64 %indvars.iv.next215.1 store i64 %spec.select249.2, ptr %30, align 8 %indvars.iv.next215.2 = add nuw nsw i64 %indvars.iv214, 3 %exitcond217.not.2 = icmp eq i64 %indvars.iv.next215.2, 51 br i1 %exitcond217.not.2, label %for.cond.cleanup39, label %for.body40, !llvm.loop !21 for.cond68.preheader: ; preds = %for.cond.cleanup39, %for.cond.cleanup71 %indvars.iv232 = phi i64 [ %indvars.iv.next233, %for.cond.cleanup71 ], [ 1, %for.cond.cleanup39 ] %indvars.iv230 = phi i64 [ %indvars.iv.next231, %for.cond.cleanup71 ], [ 2, %for.cond.cleanup39 ] %31 = add nsw i64 %indvars.iv232, -1 %arrayidx78.phi.trans.insert = getelementptr inbounds [51 x [51 x i64]], ptr %binom, i64 0, i64 %31, i64 0 %.pre = load i64, ptr %arrayidx78.phi.trans.insert, align 8, !tbaa !5 %min.iters.check254 = icmp ult i64 %indvars.iv232, 2 br i1 %min.iters.check254, label %for.body72.preheader, label %vector.ph255 vector.ph255: ; preds = %for.cond68.preheader %n.vec257 = and i64 %indvars.iv232, 9223372036854775806 %ind.end = or i64 %indvars.iv232, 1 %vector.recur.init = insertelement <2 x i64> poison, i64 %.pre, i64 1 br label %vector.body260 vector.body260: ; preds = %vector.body260, %vector.ph255 %index261 = phi i64 [ 0, %vector.ph255 ], [ %index.next263, %vector.body260 ] %vector.recur = phi <2 x i64> [ %vector.recur.init, %vector.ph255 ], [ %wide.load262, %vector.body260 ] %offset.idx = or i64 %index261, 1 %32 = getelementptr inbounds [51 x [51 x i64]], ptr %binom, i64 0, i64 %31, i64 %offset.idx %wide.load262 = load <2 x i64>, ptr %32, align 8, !tbaa !5 %33 = shufflevector <2 x i64> %vector.recur, <2 x i64> %wide.load262, <2 x i32> <i32 1, i32 2> %34 = add nsw <2 x i64> %wide.load262, %33 %35 = getelementptr inbounds [51 x [51 x i64]], ptr %binom, i64 0, i64 %indvars.iv232, i64 %offset.idx store <2 x i64> %34, ptr %35, align 8, !tbaa !5 %index.next263 = add nuw i64 %index261, 2 %36 = icmp eq i64 %index.next263, %n.vec257 br i1 %36, label %middle.block252, label %vector.body260, !llvm.loop !22 middle.block252: ; preds = %vector.body260 %cmp.n259 = icmp eq i64 %indvars.iv232, %n.vec257 %vector.recur.extract = extractelement <2 x i64> %wide.load262, i64 1 br i1 %cmp.n259, label %for.cond.cleanup71, label %for.body72.preheader for.body72.preheader: ; preds = %for.cond68.preheader, %middle.block252 %scalar.recur.ph = phi i64 [ %vector.recur.extract, %middle.block252 ], [ %.pre, %for.cond68.preheader ] %indvars.iv222.ph = phi i64 [ %ind.end, %middle.block252 ], [ 1, %for.cond68.preheader ] br label %for.body72 for.cond.cleanup65: ; preds = %for.cond.cleanup71 %37 = load i64, ptr %vla, align 16, !tbaa !5 %38 = load i32, ptr %A, align 4, !tbaa !9 %sub96 = add nsw i32 %38, -1 %idxprom97 = sext i32 %sub96 to i64 %arrayidx98 = getelementptr inbounds i64, ptr %vla, i64 %idxprom97 %39 = load i64, ptr %arrayidx98, align 8, !tbaa !5 %cmp99 = icmp eq i64 %37, %39 br i1 %cmp99, label %for.cond103.preheader, label %for.cond119.preheader for.cond119.preheader: ; preds = %for.cond.cleanup65 %cmp120197 = icmp sgt i32 %38, 0 br i1 %cmp120197, label %for.body123.preheader, label %for.cond.cleanup122 for.body123.preheader: ; preds = %for.cond119.preheader %wide.trip.count242 = zext i32 %38 to i64 %min.iters.check266 = icmp ult i32 %38, 4 br i1 %min.iters.check266, label %for.body123.preheader303, label %vector.ph267 vector.ph267: ; preds = %for.body123.preheader %n.vec269 = and i64 %wide.trip.count242, 4294967292 %broadcast.splatinsert278 = insertelement <2 x i64> poison, i64 %39, i64 0 %broadcast.splat279 = shufflevector <2 x i64> %broadcast.splatinsert278, <2 x i64> poison, <2 x i32> zeroinitializer br label %vector.body272 vector.body272: ; preds = %vector.body272, %vector.ph267 %index273 = phi i64 [ 0, %vector.ph267 ], [ %index.next280, %vector.body272 ] %vec.phi274 = phi <2 x i32> [ zeroinitializer, %vector.ph267 ], [ %46, %vector.body272 ] %vec.phi275 = phi <2 x i32> [ zeroinitializer, %vector.ph267 ], [ %47, %vector.body272 ] %40 = getelementptr inbounds i64, ptr %vla, i64 %index273 %wide.load276 = load <2 x i64>, ptr %40, align 16, !tbaa !5 %41 = getelementptr inbounds i64, ptr %40, i64 2 %wide.load277 = load <2 x i64>, ptr %41, align 16, !tbaa !5 %42 = icmp eq <2 x i64> %wide.load276, %broadcast.splat279 %43 = icmp eq <2 x i64> %wide.load277, %broadcast.splat279 %44 = zext <2 x i1> %42 to <2 x i32> %45 = zext <2 x i1> %43 to <2 x i32> %46 = add <2 x i32> %vec.phi274, %44 %47 = add <2 x i32> %vec.phi275, %45 %index.next280 = add nuw i64 %index273, 4 %48 = icmp eq i64 %index.next280, %n.vec269 br i1 %48, label %middle.block264, label %vector.body272, !llvm.loop !23 middle.block264: ; preds = %vector.body272 %bin.rdx281 = add <2 x i32> %47, %46 %49 = call i32 @llvm.vector.reduce.add.v2i32(<2 x i32> %bin.rdx281) %cmp.n271 = icmp eq i64 %n.vec269, %wide.trip.count242 br i1 %cmp.n271, label %for.cond.cleanup122.loopexit, label %for.body123.preheader303 for.body123.preheader303: ; preds = %for.body123.preheader, %middle.block264 %indvars.iv239.ph = phi i64 [ 0, %for.body123.preheader ], [ %n.vec269, %middle.block264 ] %cnt.0198.ph = phi i32 [ 0, %for.body123.preheader ], [ %49, %middle.block264 ] br label %for.body123 for.cond103.preheader: ; preds = %for.cond.cleanup65 %50 = load i32, ptr %B, align 4, !tbaa !9 %cmp104.not201 = icmp sgt i32 %38, %50 br i1 %cmp104.not201, label %if.end143, label %for.body107.lr.ph for.body107.lr.ph: ; preds = %for.cond103.preheader %51 = sext i32 %38 to i64 %52 = add i32 %50, 1 %53 = sub i32 %50, %38 %54 = zext i32 %53 to i64 %55 = add nuw nsw i64 %54, 1 %min.iters.check285 = icmp ult i32 %53, 3 br i1 %min.iters.check285, label %for.body107.preheader, label %vector.ph286 vector.ph286: ; preds = %for.body107.lr.ph %n.vec288 = and i64 %55, 8589934588 %ind.end289 = add nsw i64 %n.vec288, %51 br label %vector.body292 vector.body292: ; preds = %vector.body292, %vector.ph286 %index293 = phi i64 [ 0, %vector.ph286 ], [ %index.next299, %vector.body292 ] %vec.phi294 = phi <2 x i64> [ zeroinitializer, %vector.ph286 ], [ %58, %vector.body292 ] %vec.phi295 = phi <2 x i64> [ zeroinitializer, %vector.ph286 ], [ %59, %vector.body292 ] %offset.idx296 = add i64 %index293, %51 %56 = getelementptr inbounds [51 x [51 x i64]], ptr %binom, i64 0, i64 %count.0.lcssa, i64 %offset.idx296 %wide.load297 = load <2 x i64>, ptr %56, align 8, !tbaa !5 %57 = getelementptr inbounds i64, ptr %56, i64 2 %wide.load298 = load <2 x i64>, ptr %57, align 8, !tbaa !5 %58 = add <2 x i64> %wide.load297, %vec.phi294 %59 = add <2 x i64> %wide.load298, %vec.phi295 %index.next299 = add nuw i64 %index293, 4 %60 = icmp eq i64 %index.next299, %n.vec288 br i1 %60, label %middle.block283, label %vector.body292, !llvm.loop !24 middle.block283: ; preds = %vector.body292 %bin.rdx300 = add <2 x i64> %59, %58 %61 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx300) %cmp.n291 = icmp eq i64 %55, %n.vec288 br i1 %cmp.n291, label %if.end143, label %for.body107.preheader for.body107.preheader: ; preds = %for.body107.lr.ph, %middle.block283 %indvars.iv244.ph = phi i64 [ %51, %for.body107.lr.ph ], [ %ind.end289, %middle.block283 ] %c.0202.ph = phi i64 [ 0, %for.body107.lr.ph ], [ %61, %middle.block283 ] br label %for.body107 for.cond.cleanup71: ; preds = %for.body72, %middle.block252 %indvars.iv.next233 = add nuw nsw i64 %indvars.iv232, 1 %indvars.iv.next231 = add nuw nsw i64 %indvars.iv230, 1 %exitcond238.not = icmp eq i64 %indvars.iv.next233, 51 br i1 %exitcond238.not, label %for.cond.cleanup65, label %for.cond68.preheader, !llvm.loop !25 for.body72: ; preds = %for.body72.preheader, %for.body72 %scalar.recur = phi i64 [ %62, %for.body72 ], [ %scalar.recur.ph, %for.body72.preheader ] %indvars.iv222 = phi i64 [ %indvars.iv.next223, %for.body72 ], [ %indvars.iv222.ph, %for.body72.preheader ] %arrayidx83 = getelementptr inbounds [51 x [51 x i64]], ptr %binom, i64 0, i64 %31, i64 %indvars.iv222 %62 = load i64, ptr %arrayidx83, align 8, !tbaa !5 %add84 = add nsw i64 %62, %scalar.recur %arrayidx88 = getelementptr inbounds [51 x [51 x i64]], ptr %binom, i64 0, i64 %indvars.iv232, i64 %indvars.iv222 store i64 %add84, ptr %arrayidx88, align 8, !tbaa !5 %indvars.iv.next223 = add nuw nsw i64 %indvars.iv222, 1 %exitcond229.not = icmp eq i64 %indvars.iv.next223, %indvars.iv230 br i1 %exitcond229.not, label %for.cond.cleanup71, label %for.body72, !llvm.loop !26 for.body107: ; preds = %for.body107.preheader, %for.body107 %indvars.iv244 = phi i64 [ %indvars.iv.next245, %for.body107 ], [ %indvars.iv244.ph, %for.body107.preheader ] %c.0202 = phi i64 [ %add112, %for.body107 ], [ %c.0202.ph, %for.body107.preheader ] %arrayidx111 = getelementptr inbounds [51 x [51 x i64]], ptr %binom, i64 0, i64 %count.0.lcssa, i64 %indvars.iv244 %63 = load i64, ptr %arrayidx111, align 8, !tbaa !5 %add112 = add nsw i64 %63, %c.0202 %indvars.iv.next245 = add nsw i64 %indvars.iv244, 1 %lftr.wideiv = trunc i64 %indvars.iv.next245 to i32 %exitcond247.not = icmp eq i32 %52, %lftr.wideiv br i1 %exitcond247.not, label %if.end143, label %for.body107, !llvm.loop !27 for.cond.cleanup122.loopexit: ; preds = %for.body123, %middle.block264 %spec.select180.lcssa = phi i32 [ %49, %middle.block264 ], [ %spec.select180, %for.body123 ] %64 = zext i32 %spec.select180.lcssa to i64 br label %for.cond.cleanup122 for.cond.cleanup122: ; preds = %for.cond.cleanup122.loopexit, %for.cond119.preheader %cnt.0.lcssa = phi i64 [ 0, %for.cond119.preheader ], [ %64, %for.cond.cleanup122.loopexit ] %arrayidx141 = getelementptr inbounds [51 x [51 x i64]], ptr %binom, i64 0, i64 %count.0.lcssa, i64 %cnt.0.lcssa %65 = load i64, ptr %arrayidx141, align 8, !tbaa !5 br label %if.end143 for.body123: ; preds = %for.body123.preheader303, %for.body123 %indvars.iv239 = phi i64 [ %indvars.iv.next240, %for.body123 ], [ %indvars.iv239.ph, %for.body123.preheader303 ] %cnt.0198 = phi i32 [ %spec.select180, %for.body123 ], [ %cnt.0198.ph, %for.body123.preheader303 ] %arrayidx125 = getelementptr inbounds i64, ptr %vla, i64 %indvars.iv239 %66 = load i64, ptr %arrayidx125, align 8, !tbaa !5 %cmp129 = icmp eq i64 %66, %39 %inc132 = zext i1 %cmp129 to i32 %spec.select180 = add nuw nsw i32 %cnt.0198, %inc132 %indvars.iv.next240 = add nuw nsw i64 %indvars.iv239, 1 %exitcond243.not = icmp eq i64 %indvars.iv.next240, %wide.trip.count242 br i1 %exitcond243.not, label %for.cond.cleanup122.loopexit, label %for.body123, !llvm.loop !28 if.end143: ; preds = %for.body107, %middle.block283, %for.cond103.preheader, %for.cond.cleanup122 %.sink = phi i64 [ %65, %for.cond.cleanup122 ], [ 0, %for.cond103.preheader ], [ %61, %middle.block283 ], [ %add112, %for.body107 ] %call142 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %.sink) call void @llvm.lifetime.end.p0(i64 20808, ptr nonnull %binom) #7 call void @llvm.stackrestore.p0(ptr %2) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %B) #7 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %A) #7 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #7 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare ptr @llvm.stacksave.p0() #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: nofree declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #5 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare void @llvm.stackrestore.p0(ptr) #4 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.vector.reduce.add.v2i32(<2 x i32>) #6 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #6 attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn } attributes #5 = { nofree "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #7 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"long long", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = !{!10, !10, i64 0} !10 = !{!"int", !7, i64 0} !11 = distinct !{!11, !12} !12 = !{!"llvm.loop.mustprogress"} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.unroll.disable"} !15 = distinct !{!15, !12, !16, !17} !16 = !{!"llvm.loop.isvectorized", i32 1} !17 = !{!"llvm.loop.unroll.runtime.disable"} !18 = distinct !{!18, !12} !19 = distinct !{!19, !12, !17, !16} !20 = distinct !{!20, !12} !21 = distinct !{!21, !12} !22 = distinct !{!22, !12, !16, !17} !23 = distinct !{!23, !12, !16, !17} !24 = distinct !{!24, !12, !16, !17} !25 = distinct !{!25, !12} !26 = distinct !{!26, !12, !17, !16} !27 = distinct !{!27, !12, !17, !16} !28 = distinct !{!28, !12, !17, !16}
#include<stdio.h> #include<string.h> int main() { char a[10], b[10], c[10]; scanf("%s %s %s", &a, &b, &c); int lenA = strlen(a); int lenB = strlen(b); if (a[lenA-1] == b[0] && b[lenB-1] == c[0]){ printf("YES\n"); } else printf("NO\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136797/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136797/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 [9 x i8] c"%s %s %s\00", align 1 @str = private unnamed_addr constant [3 x i8] c"NO\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"YES\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %a = alloca [10 x i8], align 1 %b = alloca [10 x i8], align 1 %c = alloca [10 x i8], align 1 call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %a) #5 call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %b) #5 call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %c) #5 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c) %call1 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %a) #6 %sub = shl i64 %call1, 32 %sext = add i64 %sub, -4294967296 %idxprom = ashr exact i64 %sext, 32 %arrayidx = getelementptr inbounds [10 x i8], ptr %a, i64 0, i64 %idxprom %0 = load i8, ptr %arrayidx, align 1, !tbaa !5 %1 = load i8, ptr %b, align 1, !tbaa !5 %cmp = icmp eq i8 %0, %1 br i1 %cmp, label %land.lhs.true, label %if.else land.lhs.true: ; preds = %entry %call3 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %b) #6 %sub9 = shl i64 %call3, 32 %sext19 = add i64 %sub9, -4294967296 %idxprom10 = ashr exact i64 %sext19, 32 %arrayidx11 = getelementptr inbounds [10 x i8], ptr %b, i64 0, i64 %idxprom10 %2 = load i8, ptr %arrayidx11, align 1, !tbaa !5 %3 = load i8, ptr %c, align 1, !tbaa !5 %cmp15 = icmp eq i8 %2, %3 br i1 %cmp15, label %if.end, label %if.else if.else: ; preds = %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %land.lhs.true ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %c) #5 call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %b) #5 call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %a) #5 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read) declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #4 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { nofree nounwind } attributes #5 = { nounwind } attributes #6 = { nounwind willreturn memory(read) } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> #include<math.h> int main() { int N,M,K,p,q; scanf("%d",&N); scanf("%d",&M); scanf("%d",&K); int t=(N*M)/K; t=(int)sqrt(t); p=M/t; q=K/p; q=4*(t+p+q); printf("%d",q); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13684/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13684/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 [3 x i8] c"%d\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %N = alloca i32, align 4 %M = alloca i32, align 4 %K = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %M) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %K) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N) %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %M) %call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %K) %0 = load i32, ptr %N, align 4, !tbaa !5 %1 = load i32, ptr %M, align 4, !tbaa !5 %mul = mul nsw i32 %1, %0 %2 = load i32, ptr %K, align 4, !tbaa !5 %div = sdiv i32 %mul, %2 %conv = sitofp i32 %div to double %call3 = call double @sqrt(double noundef %conv) #4 %conv4 = fptosi double %call3 to i32 %3 = load i32, ptr %M, align 4, !tbaa !5 %div5 = sdiv i32 %3, %conv4 %4 = load i32, ptr %K, align 4, !tbaa !5 %div6 = sdiv i32 %4, %div5 %add = add nsw i32 %div5, %conv4 %add7 = add nsw i32 %add, %div6 %mul8 = shl nsw i32 %add7, 2 %call9 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %mul8) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %K) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %M) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nofree nounwind willreturn memory(write) declare double @sqrt(double noundef) local_unnamed_addr #3 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> char a[100],b[100],c[100]; int main() { int i,j,s1,s2; scanf("%s[^\t]",a); scanf("%s[^\t]",b); scanf("%s[^\t]",c); for(s1=0;a[s1]!='\0';s1++); for(s2=0;b[s2]!='\0';s2++); if(a[s1-1]==b[0] && b[s2-1]==c[0]) { printf("YES\n"); } else { printf("NO\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136883/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136883/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 [7 x i8] c"%s[^\09]\00", align 1 @a = dso_local global [100 x i8] zeroinitializer, align 16 @b = dso_local global [100 x i8] zeroinitializer, align 16 @c = dso_local global [100 x i8] zeroinitializer, align 16 @str = private unnamed_addr constant [3 x i8] c"NO\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"YES\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %call = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @a) %call1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @b) %call2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @c) br label %for.cond for.cond: ; preds = %for.cond, %entry %indvars.iv = phi i64 [ %indvars.iv.next, %for.cond ], [ 0, %entry ] %arrayidx = getelementptr inbounds [100 x i8], ptr @a, i64 0, i64 %indvars.iv %0 = load i8, ptr %arrayidx, align 1, !tbaa !5 %cmp.not = icmp eq i8 %0, 0 %indvars.iv.next = add nuw i64 %indvars.iv, 1 br i1 %cmp.not, label %for.cond4, label %for.cond, !llvm.loop !8 for.cond4: ; preds = %for.cond, %for.cond4 %indvars.iv35 = phi i64 [ %indvars.iv.next36, %for.cond4 ], [ 0, %for.cond ] %arrayidx6 = getelementptr inbounds [100 x i8], ptr @b, i64 0, i64 %indvars.iv35 %1 = load i8, ptr %arrayidx6, align 1, !tbaa !5 %cmp8.not = icmp eq i8 %1, 0 %indvars.iv.next36 = add nuw i64 %indvars.iv35, 1 br i1 %cmp8.not, label %for.end13, label %for.cond4, !llvm.loop !10 for.end13: ; preds = %for.cond4 %sub = shl i64 %indvars.iv, 32 %sext = add i64 %sub, -4294967296 %idxprom14 = ashr exact i64 %sext, 32 %arrayidx15 = getelementptr inbounds [100 x i8], ptr @a, i64 0, i64 %idxprom14 %2 = load i8, ptr %arrayidx15, align 1, !tbaa !5 %3 = load i8, ptr @b, align 16, !tbaa !5 %cmp18 = icmp eq i8 %2, %3 br i1 %cmp18, label %land.lhs.true, label %if.else land.lhs.true: ; preds = %for.end13 %sub20 = shl i64 %indvars.iv35, 32 %sext38 = add i64 %sub20, -4294967296 %idxprom21 = ashr exact i64 %sext38, 32 %arrayidx22 = getelementptr inbounds [100 x i8], ptr @b, i64 0, i64 %idxprom21 %4 = load i8, ptr %arrayidx22, align 1, !tbaa !5 %5 = load i8, ptr @c, align 16, !tbaa !5 %cmp25 = icmp eq i8 %4, %5 br i1 %cmp25, label %if.end, label %if.else if.else: ; preds = %land.lhs.true, %for.end13 br label %if.end if.end: ; preds = %land.lhs.true, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %land.lhs.true ] %puts = tail call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) ret i32 0 } ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #2 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { nofree nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C/C++ TBAA"} !8 = distinct !{!8, !9} !9 = !{!"llvm.loop.mustprogress"} !10 = distinct !{!10, !9}
#include <stdio.h> #include <string.h> int main(void) { int aa,bb; char a[11],b[11],c[11]; scanf("%s %s %s",a,b,c); aa=strlen(a);bb=strlen(b); if(a[aa-1]==b[0]&&b[bb-1]==c[0]) printf("YES"); else printf("NO"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136926/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136926/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 [9 x i8] c"%s %s %s\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"YES\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"NO\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %a = alloca [11 x i8], align 1 %b = alloca [11 x i8], align 1 %c = alloca [11 x i8], align 1 call void @llvm.lifetime.start.p0(i64 11, ptr nonnull %a) #4 call void @llvm.lifetime.start.p0(i64 11, ptr nonnull %b) #4 call void @llvm.lifetime.start.p0(i64 11, ptr nonnull %c) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c) %call4 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %a) #5 %sub = shl i64 %call4, 32 %sext = add i64 %sub, -4294967296 %idxprom = ashr exact i64 %sext, 32 %arrayidx = getelementptr inbounds [11 x i8], ptr %a, i64 0, i64 %idxprom %0 = load i8, ptr %arrayidx, align 1, !tbaa !5 %1 = load i8, ptr %b, align 1, !tbaa !5 %cmp = icmp eq i8 %0, %1 br i1 %cmp, label %land.lhs.true, label %if.else land.lhs.true: ; preds = %entry %call6 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %b) #5 %sub12 = shl i64 %call6, 32 %sext22 = add i64 %sub12, -4294967296 %idxprom13 = ashr exact i64 %sext22, 32 %arrayidx14 = getelementptr inbounds [11 x i8], ptr %b, i64 0, i64 %idxprom13 %2 = load i8, ptr %arrayidx14, align 1, !tbaa !5 %3 = load i8, ptr %c, align 1, !tbaa !5 %cmp18 = icmp eq i8 %2, %3 br i1 %cmp18, label %if.end, label %if.else if.else: ; preds = %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true, %if.else %.str.2.sink = phi ptr [ @.str.2, %if.else ], [ @.str.1, %land.lhs.true ] %call21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink) call void @llvm.lifetime.end.p0(i64 11, ptr nonnull %c) #4 call void @llvm.lifetime.end.p0(i64 11, ptr nonnull %b) #4 call void @llvm.lifetime.end.p0(i64 11, ptr nonnull %a) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read) declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { nounwind } attributes #5 = { nounwind willreturn memory(read) } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> #include<math.h> int main() { int ab,bc,ca,a,b,c,s; scanf("%d%d%d",&ab,&bc,&ca); a=sqrt((ab*ca)/bc); b=ab/a; c=ca/a; s=4*(a+b+c); printf("%d",s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13697/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13697/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 [7 x i8] c"%d%d%d\00", align 1 @.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %ab = alloca i32, align 4 %bc = alloca i32, align 4 %ca = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %ab) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %bc) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %ca) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %ab, ptr noundef nonnull %bc, ptr noundef nonnull %ca) %0 = load i32, ptr %ab, align 4, !tbaa !5 %1 = load i32, ptr %ca, align 4, !tbaa !5 %mul = mul nsw i32 %1, %0 %2 = load i32, ptr %bc, align 4, !tbaa !5 %div = sdiv i32 %mul, %2 %conv = sitofp i32 %div to double %call1 = call double @sqrt(double noundef %conv) #4 %conv2 = fptosi double %call1 to i32 %3 = load i32, ptr %ab, align 4, !tbaa !5 %div3 = sdiv i32 %3, %conv2 %4 = load i32, ptr %ca, align 4, !tbaa !5 %div4 = sdiv i32 %4, %conv2 %add = add nsw i32 %div3, %conv2 %add5 = add nsw i32 %add, %div4 %mul6 = shl nsw i32 %add5, 2 %call7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul6) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %ca) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %bc) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %ab) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nofree nounwind willreturn memory(write) declare double @sqrt(double noundef) local_unnamed_addr #3 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> #include<string.h> int main() { char a[100]; char b[100]; char c[100]; scanf("%s %s %s",a,b,c); int la=strlen(a); int lb=strlen(b); int lc=strlen(c); if((a[la-1]==b[0])&&(b[lb-1]==c[0])) { printf("YES\n"); } else { printf("NO\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137011/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137011/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 [9 x i8] c"%s %s %s\00", align 1 @str = private unnamed_addr constant [3 x i8] c"NO\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"YES\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %a = alloca [100 x i8], align 16 %b = alloca [100 x i8], align 16 %c = alloca [100 x i8], align 16 call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %a) #5 call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %b) #5 call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %c) #5 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c) %call4 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %a) #6 %sub = shl i64 %call4, 32 %sext = add i64 %sub, -4294967296 %idxprom = ashr exact i64 %sext, 32 %arrayidx = getelementptr inbounds [100 x i8], ptr %a, i64 0, i64 %idxprom %0 = load i8, ptr %arrayidx, align 1, !tbaa !5 %1 = load i8, ptr %b, align 16, !tbaa !5 %cmp = icmp eq i8 %0, %1 br i1 %cmp, label %land.lhs.true, label %if.else land.lhs.true: ; preds = %entry %call6 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %b) #6 %sub15 = shl i64 %call6, 32 %sext25 = add i64 %sub15, -4294967296 %idxprom16 = ashr exact i64 %sext25, 32 %arrayidx17 = getelementptr inbounds [100 x i8], ptr %b, i64 0, i64 %idxprom16 %2 = load i8, ptr %arrayidx17, align 1, !tbaa !5 %3 = load i8, ptr %c, align 16, !tbaa !5 %cmp21 = icmp eq i8 %2, %3 br i1 %cmp21, label %if.end, label %if.else if.else: ; preds = %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %land.lhs.true ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %c) #5 call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %b) #5 call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %a) #5 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read) declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #4 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { nofree nounwind } attributes #5 = { nounwind } attributes #6 = { nounwind willreturn memory(read) } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define BIG 2000000007 #define MOD 1000000007 typedef unsigned long long ull; typedef signed long long sll; typedef struct { int a; int b; } hw; #define N_MAX 100000 #define M_MAX 100000 ull n, m, k; ull h, w; ull va, vb, vc, vd; // ull a[N_MAX]; // sll a[N_MAX]; // ull b[N_MAX]; // ull dp[N_MAX][M_MAX + 1]; // char s[N_MAX + 1]; // char t[N_MAX + 1]; // hw arr[N_MAX]; void swap_adj(ull *a, ull *b){ ull tmp = *b; *b = *a; *a = tmp; return; } ull divide(ull a, ull b){ ull x = MOD - 2; ull ans = 1; while (x) { if (x & 1) ans = (ans * b) % MOD; b = (b * b) % MOD; x /= 2; } return (a * ans) % MOD; } int digits(ull x){ int i = 1; while (x >= 10) { x /= 10; i++; } return i; } int min(ull x, ull y){ return (x < y) ? x : y; } ull gcd(ull x, ull y){ if (x < y) { return gcd(y, x); } else if (y == 0) { return x; } else { return gcd(y, x % y); } } ull bitpow(ull a, ull x){ ull result = 1; while (x) { if (x & 1) { result *= a; result %= MOD; } x /= 2; a = (a * a) % MOD; } return result; } int comp(const void *left, const void *right){ if ((*(int*)left) < (*(int*)right)) { return -1; } else if ((*(int*)left) > (*(int*)right)) { return +1; } else { return 0; } } // int nextroute(int arr[]){ // int i = n - 1; // int j, x; // while (arr[i - 1] > arr[i]) i--; // x = n; // for (j = i; j < n; j++) { // if (arr[j] < arr[i - 1]) continue; // if (x == n || arr[x] > arr[j]) x = j; // } // arr[i - 1] ^= arr[x]; // arr[x] ^= arr[i - 1]; // arr[i - 1] ^= arr[x]; // qsort(&arr[i], n - i, sizeof(int), comp); // return 0; // } ull solve(){ int i, j; return 0; } int main(void){ int i, j; const int x[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}; char s[11], t[11], u[11]; scanf("%s%s%s", s, t, u); // solve(); if (s[strlen(s) - 1] == t[0] && t[strlen(t) - 1] == u[0]) { puts("YES"); } else { puts("NO"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137055/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137055/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 [7 x i8] c"%s%s%s\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"YES\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"NO\00", align 1 @n = dso_local local_unnamed_addr global i64 0, align 8 @m = dso_local local_unnamed_addr global i64 0, align 8 @k = dso_local local_unnamed_addr global i64 0, align 8 @h = dso_local local_unnamed_addr global i64 0, align 8 @w = dso_local local_unnamed_addr global i64 0, align 8 @va = dso_local local_unnamed_addr global i64 0, align 8 @vb = dso_local local_unnamed_addr global i64 0, align 8 @vc = dso_local local_unnamed_addr global i64 0, align 8 @vd = dso_local local_unnamed_addr global i64 0, align 8 ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable define dso_local void @swap_adj(ptr nocapture noundef %a, ptr nocapture noundef %b) local_unnamed_addr #0 { entry: %0 = load i64, ptr %b, align 8, !tbaa !5 %1 = load i64, ptr %a, align 8, !tbaa !5 store i64 %1, ptr %b, align 8, !tbaa !5 store i64 %0, ptr %a, align 8, !tbaa !5 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i64 @divide(i64 noundef %a, i64 noundef %b) local_unnamed_addr #2 { entry: br label %while.body while.body: ; preds = %entry, %if.end %ans.014 = phi i64 [ 1, %entry ], [ %ans.1, %if.end ] %x.013 = phi i64 [ 1000000005, %entry ], [ %div11, %if.end ] %b.addr.012 = phi i64 [ %b, %entry ], [ %rem3, %if.end ] %and = and i64 %x.013, 1 %tobool1.not = icmp eq i64 %and, 0 br i1 %tobool1.not, label %if.end, label %if.then if.then: ; preds = %while.body %mul = mul i64 %ans.014, %b.addr.012 %rem = urem i64 %mul, 1000000007 br label %if.end if.end: ; preds = %if.then, %while.body %ans.1 = phi i64 [ %rem, %if.then ], [ %ans.014, %while.body ] %mul2 = mul i64 %b.addr.012, %b.addr.012 %rem3 = urem i64 %mul2, 1000000007 %div11 = lshr i64 %x.013, 1 %tobool.not = icmp ult i64 %x.013, 2 br i1 %tobool.not, label %while.end, label %while.body, !llvm.loop !9 while.end: ; preds = %if.end %mul4 = mul i64 %ans.1, %a %rem5 = urem i64 %mul4, 1000000007 ret i64 %rem5 } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i32 @digits(i64 noundef %x) local_unnamed_addr #2 { entry: %cmp3 = icmp ugt i64 %x, 9 br i1 %cmp3, label %while.body, label %while.end while.body: ; preds = %entry, %while.body %i.05 = phi i32 [ %inc, %while.body ], [ 1, %entry ] %x.addr.04 = phi i64 [ %div, %while.body ], [ %x, %entry ] %div = udiv i64 %x.addr.04, 10 %inc = add nuw nsw i32 %i.05, 1 %cmp = icmp ugt i64 %x.addr.04, 99 br i1 %cmp, label %while.body, label %while.end, !llvm.loop !11 while.end: ; preds = %while.body, %entry %i.0.lcssa = phi i32 [ 1, %entry ], [ %inc, %while.body ] ret i32 %i.0.lcssa } ; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable define dso_local i32 @min(i64 noundef %x, i64 noundef %y) local_unnamed_addr #3 { entry: %cond = tail call i64 @llvm.umin.i64(i64 %x, i64 %y) %conv = trunc i64 %cond to i32 ret i32 %conv } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i64 @gcd(i64 noundef %x, i64 noundef %y) local_unnamed_addr #2 { entry: br label %tailrecurse tailrecurse: ; preds = %tailrecurse.backedge, %entry %x.tr = phi i64 [ %x, %entry ], [ %y.tr, %tailrecurse.backedge ] %y.tr = phi i64 [ %y, %entry ], [ %y.tr.be, %tailrecurse.backedge ] %cmp = icmp ult i64 %x.tr, %y.tr br i1 %cmp, label %tailrecurse.backedge, label %if.else if.else: ; preds = %tailrecurse %cmp1 = icmp eq i64 %y.tr, 0 br i1 %cmp1, label %return, label %if.else3 if.else3: ; preds = %if.else %rem = urem i64 %x.tr, %y.tr br label %tailrecurse.backedge tailrecurse.backedge: ; preds = %if.else3, %tailrecurse %y.tr.be = phi i64 [ %rem, %if.else3 ], [ %x.tr, %tailrecurse ] br label %tailrecurse return: ; preds = %if.else ret i64 %x.tr } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i64 @bitpow(i64 noundef %a, i64 noundef %x) local_unnamed_addr #2 { entry: %tobool.not11 = icmp eq i64 %x, 0 br i1 %tobool.not11, label %while.end, label %while.body while.body: ; preds = %entry, %if.end %result.014 = phi i64 [ %result.1, %if.end ], [ 1, %entry ] %x.addr.013 = phi i64 [ %div10, %if.end ], [ %x, %entry ] %a.addr.012 = phi i64 [ %rem3, %if.end ], [ %a, %entry ] %and = and i64 %x.addr.013, 1 %tobool1.not = icmp eq i64 %and, 0 br i1 %tobool1.not, label %if.end, label %if.then if.then: ; preds = %while.body %mul = mul i64 %result.014, %a.addr.012 %rem = urem i64 %mul, 1000000007 br label %if.end if.end: ; preds = %if.then, %while.body %result.1 = phi i64 [ %rem, %if.then ], [ %result.014, %while.body ] %div10 = lshr i64 %x.addr.013, 1 %mul2 = mul i64 %a.addr.012, %a.addr.012 %rem3 = urem i64 %mul2, 1000000007 %tobool.not = icmp ult i64 %x.addr.013, 2 br i1 %tobool.not, label %while.end, label %while.body, !llvm.loop !12 while.end: ; preds = %if.end, %entry %result.0.lcssa = phi i64 [ 1, %entry ], [ %result.1, %if.end ] ret i64 %result.0.lcssa } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @comp(ptr nocapture noundef readonly %left, ptr nocapture noundef readonly %right) local_unnamed_addr #4 { entry: %0 = load i32, ptr %left, align 4, !tbaa !13 %1 = load i32, ptr %right, align 4, !tbaa !13 %cmp = icmp slt i32 %0, %1 %cmp1 = icmp sgt i32 %0, %1 %. = zext i1 %cmp1 to i32 %retval.0 = select i1 %cmp, i32 -1, i32 %. ret i32 %retval.0 } ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable define dso_local i64 @solve() local_unnamed_addr #5 { entry: ret i64 0 } ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #6 { entry: %s = alloca [11 x i8], align 1 %t = alloca [11 x i8], align 1 %u = alloca [11 x i8], align 1 call void @llvm.lifetime.start.p0(i64 11, ptr nonnull %s) #10 call void @llvm.lifetime.start.p0(i64 11, ptr nonnull %t) #10 call void @llvm.lifetime.start.p0(i64 11, ptr nonnull %u) #10 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %s, ptr noundef nonnull %t, ptr noundef nonnull %u) %call4 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %s) #11 %sub = add i64 %call4, -1 %arrayidx = getelementptr inbounds [11 x i8], ptr %s, i64 0, i64 %sub %0 = load i8, ptr %arrayidx, align 1, !tbaa !15 %1 = load i8, ptr %t, align 1, !tbaa !15 %cmp = icmp eq i8 %0, %1 br i1 %cmp, label %land.lhs.true, label %if.else land.lhs.true: ; preds = %entry %call9 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %t) #11 %sub10 = add i64 %call9, -1 %arrayidx11 = getelementptr inbounds [11 x i8], ptr %t, i64 0, i64 %sub10 %2 = load i8, ptr %arrayidx11, align 1, !tbaa !15 %3 = load i8, ptr %u, align 1, !tbaa !15 %cmp15 = icmp eq i8 %2, %3 br i1 %cmp15, label %if.end, label %if.else if.else: ; preds = %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true, %if.else %.str.2.sink = phi ptr [ @.str.2, %if.else ], [ @.str.1, %land.lhs.true ] %call18 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.2.sink) call void @llvm.lifetime.end.p0(i64 11, ptr nonnull %u) #10 call void @llvm.lifetime.end.p0(i64 11, ptr nonnull %t) #10 call void @llvm.lifetime.end.p0(i64 11, ptr nonnull %s) #10 ret i32 0 } ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #7 ; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read) declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #8 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #7 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i64 @llvm.umin.i64(i64, i64) #9 attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree norecurse nosync nounwind memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nofree nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #5 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #6 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #7 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #8 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #10 = { nounwind } attributes #11 = { nounwind willreturn memory(read) } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"long long", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10} !12 = distinct !{!12, !10} !13 = !{!14, !14, i64 0} !14 = !{!"int", !7, i64 0} !15 = !{!7, !7, i64 0}
#include<stdio.h> int main(){ char strA[10],strB[10],strC[10]; scanf("%10s %10s %10s",strA,strB,strC); int i,j; for (i=0;strA[i] != '\0';i++); if(strA[i-1]==strB[0]){ for (i = 0;strB[i] != '\0';i++); if(strB[i-1]==strC[0]){ printf("YES"); }else{ printf("NO"); } }else{ printf("NO"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137105/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137105/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 [15 x i8] c"%10s %10s %10s\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"YES\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"NO\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %strA = alloca [10 x i8], align 1 %strB = alloca [10 x i8], align 1 %strC = alloca [10 x i8], align 1 call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %strA) #3 call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %strB) #3 call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %strC) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %strA, ptr noundef nonnull %strB, ptr noundef nonnull %strC) br label %for.cond for.cond: ; preds = %for.cond, %entry %indvars.iv = phi i64 [ %indvars.iv.next, %for.cond ], [ 0, %entry ] %arrayidx = getelementptr inbounds [10 x i8], ptr %strA, i64 0, i64 %indvars.iv %0 = load i8, ptr %arrayidx, align 1, !tbaa !5 %cmp.not = icmp eq i8 %0, 0 %indvars.iv.next = add nuw i64 %indvars.iv, 1 br i1 %cmp.not, label %for.end, label %for.cond, !llvm.loop !8 for.end: ; preds = %for.cond %sub = shl i64 %indvars.iv, 32 %sext = add i64 %sub, -4294967296 %idxprom4 = ashr exact i64 %sext, 32 %arrayidx5 = getelementptr inbounds [10 x i8], ptr %strA, i64 0, i64 %idxprom4 %1 = load i8, ptr %arrayidx5, align 1, !tbaa !5 %2 = load i8, ptr %strB, align 1, !tbaa !5 %cmp9 = icmp eq i8 %1, %2 br i1 %cmp9, label %for.cond11, label %if.end34 for.cond11: ; preds = %for.end, %for.cond11 %indvars.iv41 = phi i64 [ %indvars.iv.next42, %for.cond11 ], [ 0, %for.end ] %arrayidx13 = getelementptr inbounds [10 x i8], ptr %strB, i64 0, i64 %indvars.iv41 %3 = load i8, ptr %arrayidx13, align 1, !tbaa !5 %cmp15.not = icmp eq i8 %3, 0 %indvars.iv.next42 = add nuw i64 %indvars.iv41, 1 br i1 %cmp15.not, label %for.end20, label %for.cond11, !llvm.loop !10 for.end20: ; preds = %for.cond11 %sub21 = shl i64 %indvars.iv41, 32 %sext44 = add i64 %sub21, -4294967296 %idxprom22 = ashr exact i64 %sext44, 32 %arrayidx23 = getelementptr inbounds [10 x i8], ptr %strB, i64 0, i64 %idxprom22 %4 = load i8, ptr %arrayidx23, align 1, !tbaa !5 %5 = load i8, ptr %strC, align 1, !tbaa !5 %cmp27 = icmp eq i8 %4, %5 %.str.1..str.2 = select i1 %cmp27, ptr @.str.1, ptr @.str.2 br label %if.end34 if.end34: ; preds = %for.end, %for.end20 %.str.1.sink = phi ptr [ %.str.1..str.2, %for.end20 ], [ @.str.2, %for.end ] %call30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1.sink) call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %strC) #3 call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %strB) #3 call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %strA) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C/C++ TBAA"} !8 = distinct !{!8, !9} !9 = !{!"llvm.loop.mustprogress"} !10 = distinct !{!10, !9}
#include <stdio.h> #include <string.h> typedef unsigned int uint; #define BUF_SIZE (20) int main(void) { char strA[BUF_SIZE]; char strB[BUF_SIZE]; char strC[BUF_SIZE]; int lengthA; int lengthB; int lengthC; char strA_End; char strB_Begin; char strB_End; char strC_Begin; scanf("%s %s %s", strA, strB, strC); lengthA = strlen(strA); lengthB = strlen(strB); lengthC = strlen(strC); strA_End = strA[lengthA - 1]; strB_Begin = strB[0]; strB_End = strB[lengthB - 1]; strC_Begin = strC[0]; if((strA_End == strB_Begin) && (strB_End == strC_Begin)){ printf("YES\n"); } else { printf("NO\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137149/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137149/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 [9 x i8] c"%s %s %s\00", align 1 @str = private unnamed_addr constant [3 x i8] c"NO\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"YES\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %strA = alloca [20 x i8], align 16 %strB = alloca [20 x i8], align 16 %strC = alloca [20 x i8], align 16 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %strA) #5 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %strB) #5 call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %strC) #5 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %strA, ptr noundef nonnull %strB, ptr noundef nonnull %strC) %call4 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %strA) #6 %sub = shl i64 %call4, 32 %sext = add i64 %sub, -4294967296 %idxprom = ashr exact i64 %sext, 32 %arrayidx = getelementptr inbounds [20 x i8], ptr %strA, i64 0, i64 %idxprom %0 = load i8, ptr %arrayidx, align 1, !tbaa !5 %1 = load i8, ptr %strB, align 16, !tbaa !5 %cmp = icmp eq i8 %0, %1 br i1 %cmp, label %land.lhs.true, label %if.else land.lhs.true: ; preds = %entry %2 = load i8, ptr %strC, align 16, !tbaa !5 %call6 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %strB) #6 %sub12 = shl i64 %call6, 32 %sext25 = add i64 %sub12, -4294967296 %idxprom13 = ashr exact i64 %sext25, 32 %arrayidx14 = getelementptr inbounds [20 x i8], ptr %strB, i64 0, i64 %idxprom13 %3 = load i8, ptr %arrayidx14, align 1, !tbaa !5 %cmp21 = icmp eq i8 %3, %2 br i1 %cmp21, label %if.end, label %if.else if.else: ; preds = %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %land.lhs.true ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %strC) #5 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %strB) #5 call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %strA) #5 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read) declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #4 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { nofree nounwind } attributes #5 = { nounwind } attributes #6 = { nounwind willreturn memory(read) } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> #include <stdlib.h> int main() { int a,i,h=0; scanf("%d",&a); if(a>2) { printf("%d\n",a/3); } else printf("0\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137235/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137235/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 @str = private unnamed_addr constant [2 x i8] c"0\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %a = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a) %0 = load i32, ptr %a, align 4, !tbaa !5 %cmp = icmp sgt i32 %0, 2 br i1 %cmp, label %if.then, label %if.else if.then: ; preds = %entry %div = udiv i32 %0, 3 %call1 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %div) br label %if.end if.else: ; preds = %entry %puts = call i32 @puts(ptr nonnull dereferenceable(1) @str) br label %if.end if.end: ; preds = %if.else, %if.then call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main() { int n,tot=0; scanf("%d",&n); while(n>=3) { tot++; n=n-3; } printf("%d",tot); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137372/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137372/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 [3 x i8] c"%d\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %.pr = load i32, ptr %n, align 4, !tbaa !5 %cmp3 = icmp sgt i32 %.pr, 2 br i1 %cmp3, label %while.body.preheader, label %while.end while.body.preheader: ; preds = %entry %0 = add nuw i32 %.pr, 2 %smin = call i32 @llvm.smin.i32(i32 %.pr, i32 5) %1 = sub nuw i32 %0, %smin %2 = udiv i32 %1, 3 %3 = add nuw nsw i32 %2, 1 %.neg = mul nsw i32 %2, -3 %4 = add nsw i32 %.pr, -3 %5 = add nsw i32 %.neg, %4 store i32 %5, ptr %n, align 4, !tbaa !5 br label %while.end while.end: ; preds = %while.body.preheader, %entry %tot.0.lcssa = phi i32 [ %3, %while.body.preheader ], [ 0, %entry ] %call1 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %tot.0.lcssa) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smin.i32(i32, i32) #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); printf("%d",a-b+1); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137516/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137516/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 [6 x i8] c"%d %d\00", align 1 @.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %a = alloca i32, align 4 %b = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b) %0 = load i32, ptr %a, align 4, !tbaa !5 %1 = load i32, ptr %b, align 4, !tbaa !5 %sub = add i32 %0, 1 %add = sub i32 %sub, %1 %call1 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %add) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int a[50][50]; int main() { int flag,n,i,j,k,l; scanf("%d",&n); for (i = 0; i < n; i++) for (j = 0; j < n; j++) scanf("%d",&a[i][j]); for (i = 0; i < n; i++) for (j = 0; j < n; j++) { flag = 0; if (a[i][j] != 1) { for (k = 0; k < n; k++) { if (k == i) continue; for (l = 0; l < n; l++) if (a[i][j] == a[k][j] + a[i][l]) { flag = 1; break; } if (flag) break; } if (!flag) { printf("No\n"); return 0; } } } printf("Yes\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13756/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13756/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 [3 x i8] c"%d\00", align 1 @a = dso_local global [50 x [50 x i32]] zeroinitializer, align 16 @str = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @str.3 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %cmp93 = icmp sgt i32 %0, 0 br i1 %cmp93, label %for.cond1.preheader, label %cleanup for.cond1.preheader: ; preds = %entry, %for.inc7 %1 = phi i32 [ %7, %for.inc7 ], [ %0, %entry ] %indvars.iv123 = phi i64 [ %indvars.iv.next124, %for.inc7 ], [ 0, %entry ] %cmp291 = icmp sgt i32 %1, 0 br i1 %cmp291, label %for.body3, label %for.cond1.preheader.for.inc7_crit_edge for.cond1.preheader.for.inc7_crit_edge: ; preds = %for.cond1.preheader %.pre = sext i32 %1 to i64 br label %for.inc7 for.cond10.preheader: ; preds = %for.inc7 %cmp11106 = icmp sgt i32 %7, 0 br i1 %cmp11106, label %for.cond13.preheader.us.preheader, label %cleanup for.cond13.preheader.us.preheader: ; preds = %for.cond10.preheader %wide.trip.count142 = zext i32 %7 to i64 br label %for.cond13.preheader.us for.cond13.preheader.us: ; preds = %for.cond13.preheader.us.preheader, %for.cond13.for.inc60_crit_edge.split.us.us %indvars.iv139 = phi i64 [ 0, %for.cond13.preheader.us.preheader ], [ %indvars.iv.next140, %for.cond13.for.inc60_crit_edge.split.us.us ] br label %for.body15.us.us for.body15.us.us: ; preds = %for.inc57.us.us, %for.cond13.preheader.us %indvars.iv134 = phi i64 [ %indvars.iv.next135, %for.inc57.us.us ], [ 0, %for.cond13.preheader.us ] %arrayidx19.us.us = getelementptr inbounds [50 x [50 x i32]], ptr @a, i64 0, i64 %indvars.iv139, i64 %indvars.iv134 %2 = load i32, ptr %arrayidx19.us.us, align 4, !tbaa !5 %cmp20.not.us.us = icmp eq i32 %2, 1 br i1 %cmp20.not.us.us, label %for.inc57.us.us, label %for.body23.us.us.us for.inc57.us.us: ; preds = %for.body28.us.us.us, %for.body15.us.us %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1 %exitcond138.not = icmp eq i64 %indvars.iv.next135, %wide.trip.count142 br i1 %exitcond138.not, label %for.cond13.for.inc60_crit_edge.split.us.us, label %for.body15.us.us, !llvm.loop !9 for.body23.us.us.us: ; preds = %for.body15.us.us, %for.inc49.us.us.us %indvars.iv129 = phi i64 [ %indvars.iv.next130, %for.inc49.us.us.us ], [ 0, %for.body15.us.us ] %cmp24.us.us.us = icmp eq i64 %indvars.iv129, %indvars.iv139 br i1 %cmp24.us.us.us, label %for.inc49.us.us.us, label %for.cond26.preheader.us.us.us for.cond26.us.us.us: ; preds = %for.body28.us.us.us %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1 %exitcond.not = icmp eq i64 %indvars.iv.next127, %wide.trip.count142 br i1 %exitcond.not, label %for.inc49.us.us.us, label %for.body28.us.us.us, !llvm.loop !11 for.body28.us.us.us: ; preds = %for.cond26.preheader.us.us.us, %for.cond26.us.us.us %indvars.iv126 = phi i64 [ 0, %for.cond26.preheader.us.us.us ], [ %indvars.iv.next127, %for.cond26.us.us.us ] %arrayidx40.us.us.us = getelementptr inbounds [50 x [50 x i32]], ptr @a, i64 0, i64 %indvars.iv139, i64 %indvars.iv126 %3 = load i32, ptr %arrayidx40.us.us.us, align 4, !tbaa !5 %add.us.us.us = add nsw i32 %3, %4 %cmp41.us.us.us = icmp eq i32 %2, %add.us.us.us br i1 %cmp41.us.us.us, label %for.inc57.us.us, label %for.cond26.us.us.us for.inc49.us.us.us: ; preds = %for.cond26.us.us.us, %for.body23.us.us.us %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1 %exitcond133.not = icmp eq i64 %indvars.iv.next130, %wide.trip.count142 br i1 %exitcond133.not, label %cleanup, label %for.body23.us.us.us, !llvm.loop !12 for.cond26.preheader.us.us.us: ; preds = %for.body23.us.us.us %arrayidx36.us.us.us = getelementptr inbounds [50 x [50 x i32]], ptr @a, i64 0, i64 %indvars.iv129, i64 %indvars.iv134 %4 = load i32, ptr %arrayidx36.us.us.us, align 4, !tbaa !5 br label %for.body28.us.us.us for.cond13.for.inc60_crit_edge.split.us.us: ; preds = %for.inc57.us.us %indvars.iv.next140 = add nuw nsw i64 %indvars.iv139, 1 %exitcond143.not = icmp eq i64 %indvars.iv.next140, %wide.trip.count142 br i1 %exitcond143.not, label %cleanup, label %for.cond13.preheader.us, !llvm.loop !13 for.body3: ; preds = %for.cond1.preheader, %for.body3 %indvars.iv = phi i64 [ %indvars.iv.next, %for.body3 ], [ 0, %for.cond1.preheader ] %arrayidx5 = getelementptr inbounds [50 x [50 x i32]], ptr @a, i64 0, i64 %indvars.iv123, i64 %indvars.iv %call6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx5) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %5 = load i32, ptr %n, align 4, !tbaa !5 %6 = sext i32 %5 to i64 %cmp2 = icmp slt i64 %indvars.iv.next, %6 br i1 %cmp2, label %for.body3, label %for.inc7, !llvm.loop !14 for.inc7: ; preds = %for.body3, %for.cond1.preheader.for.inc7_crit_edge %.pre-phi = phi i64 [ %.pre, %for.cond1.preheader.for.inc7_crit_edge ], [ %6, %for.body3 ] %7 = phi i32 [ %1, %for.cond1.preheader.for.inc7_crit_edge ], [ %5, %for.body3 ] %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1 %cmp = icmp slt i64 %indvars.iv.next124, %.pre-phi br i1 %cmp, label %for.cond1.preheader, label %for.cond10.preheader, !llvm.loop !15 cleanup: ; preds = %for.cond13.for.inc60_crit_edge.split.us.us, %for.inc49.us.us.us, %for.cond10.preheader, %entry %str.sink = phi ptr [ @str, %entry ], [ @str, %for.cond10.preheader ], [ @str.3, %for.inc49.us.us.us ], [ @str, %for.cond13.for.inc60_crit_edge.split.us.us ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10} !12 = distinct !{!12, !10} !13 = distinct !{!13, !10} !14 = distinct !{!14, !10} !15 = distinct !{!15, !10, !16} !16 = !{!"llvm.loop.unswitch.partial.disable"}
#include <stdio.h> int main(){ int n,i; scanf("%d %d",&n,&i); printf("%d",n-i+1); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137602/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137602/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 [6 x i8] c"%d %d\00", align 1 @.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 %i = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %i) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %i) %0 = load i32, ptr %n, align 4, !tbaa !5 %1 = load i32, ptr %i, align 4, !tbaa !5 %sub = add i32 %0, 1 %add = sub i32 %sub, %1 %call1 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %add) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %i) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(void){ int N,i; scanf("%d%d",&N,&i); printf("%d\n",N-i+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137646/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137646/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 [5 x i8] c"%d%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %N = alloca i32, align 4 %i = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %i) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N, ptr noundef nonnull %i) %0 = load i32, ptr %N, align 4, !tbaa !5 %1 = load i32, ptr %i, align 4, !tbaa !5 %sub = add i32 %0, 1 %add = sub i32 %sub, %1 %call1 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %add) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %i) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(void){ int N,i; scanf("%d %d",&N,&i); printf("%d",N-i+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137697/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137697/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 [6 x i8] c"%d %d\00", align 1 @.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %N = alloca i32, align 4 %i = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %i) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N, ptr noundef nonnull %i) %0 = load i32, ptr %N, align 4, !tbaa !5 %1 = load i32, ptr %i, align 4, !tbaa !5 %sub = add i32 %0, 1 %add = sub i32 %sub, %1 %call1 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %add) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %i) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> #define mod 1000000007 int main() { long long int n,a,p,q; scanf("%I64d%I64d",&p,&q); scanf("%I64d",&n); a=n%6; if(a==0) printf("%I64d",(p-q+2*mod)%mod); else if(a==1) printf("%I64d",(p+2*mod)%mod); else if(a==2) printf("%I64d",(q+2*mod)%mod); else if(a==3) printf("%I64d",(q-p+2*mod)%mod); else if(a==4) printf("%I64d",(-1*p+2*mod)%mod); else if(a==5) printf("%I64d",(-1*q+2*mod)%mod); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13774/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13774/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 [11 x i8] c"%I64d%I64d\00", align 1 @.str.1 = private unnamed_addr constant [6 x i8] c"%I64d\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i64, align 8 %p = alloca i64, align 8 %q = alloca i64, align 8 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %n) #3 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %p) #3 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %q) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %p, ptr noundef nonnull %q) %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %n) %0 = load i64, ptr %n, align 8, !tbaa !5 %rem = srem i64 %0, 6 switch i64 %rem, label %if.end39 [ i64 0, label %if.then i64 1, label %if.then5 i64 2, label %if.then11 i64 3, label %if.then17 i64 4, label %if.then24 i64 5, label %if.then30 ] if.then: ; preds = %entry %1 = load i64, ptr %p, align 8, !tbaa !5 %2 = load i64, ptr %q, align 8, !tbaa !5 %sub = add i64 %1, 2000000014 %add = sub i64 %sub, %2 br label %if.end39.sink.split if.then5: ; preds = %entry %3 = load i64, ptr %p, align 8, !tbaa !5 %add6 = add nsw i64 %3, 2000000014 br label %if.end39.sink.split if.then11: ; preds = %entry %4 = load i64, ptr %q, align 8, !tbaa !5 %add12 = add nsw i64 %4, 2000000014 br label %if.end39.sink.split if.then17: ; preds = %entry %5 = load i64, ptr %q, align 8, !tbaa !5 %6 = load i64, ptr %p, align 8, !tbaa !5 %sub18 = add i64 %5, 2000000014 %add19 = sub i64 %sub18, %6 br label %if.end39.sink.split if.then24: ; preds = %entry %7 = load i64, ptr %p, align 8, !tbaa !5 %add25 = sub i64 2000000014, %7 br label %if.end39.sink.split if.then30: ; preds = %entry %8 = load i64, ptr %q, align 8, !tbaa !5 %add32 = sub i64 2000000014, %8 br label %if.end39.sink.split if.end39.sink.split: ; preds = %if.then, %if.then11, %if.then24, %if.then30, %if.then17, %if.then5 %add6.sink = phi i64 [ %add6, %if.then5 ], [ %add19, %if.then17 ], [ %add32, %if.then30 ], [ %add25, %if.then24 ], [ %add12, %if.then11 ], [ %add, %if.then ] %rem7 = srem i64 %add6.sink, 1000000007 %call8 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %rem7) br label %if.end39 if.end39: ; preds = %if.end39.sink.split, %entry call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %q) #3 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %p) #3 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %n) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"long long", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(void){ int N; int i; scanf("%d %d",&N,&i); printf("%d\n",N - i + 1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137783/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137783/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 [6 x i8] c"%d %d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %N = alloca i32, align 4 %i = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %i) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N, ptr noundef nonnull %i) %0 = load i32, ptr %N, align 4, !tbaa !5 %1 = load i32, ptr %i, align 4, !tbaa !5 %sub = add i32 %0, 1 %add = sub i32 %sub, %1 %call1 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %add) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %i) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <ctype.h> #include <stdint.h> #include <string.h> #include <wchar.h> #include <math.h> #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define ABSS(a, b) ((a) > (b) ? (a) - (b) : (b) - (a)) int compare_f(const void *a, const void *b) { return *((size_t *)a) > *((size_t *)b) ? -1 : 1; } static size_t comb(const size_t n, const size_t r) { size_t result = 1; for (size_t i = 0; i < r; i++) { result *= n - i; result /= i + 1; } return result; } static size_t countDivisors(const size_t n) { size_t count = 1; for (size_t i = 2; i <= n; i++) { if (n%i == 0) { count++; } } return count; } int main(void) { size_t N, i; scanf("%zu %zu", &N, &i); printf("%zu\n", N - i + 1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137826/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137826/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 [8 x i8] c"%zu %zu\00", align 1 @.str.1 = private unnamed_addr constant [5 x i8] c"%zu\0A\00", align 1 ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @compare_f(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #0 { entry: %0 = load i64, ptr %a, align 8, !tbaa !5 %1 = load i64, ptr %b, align 8, !tbaa !5 %cmp = icmp ugt i64 %0, %1 %cond = select i1 %cmp, i32 -1, i32 1 ret i32 %cond } ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #1 { entry: %N = alloca i64, align 8 %i = alloca i64, align 8 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %N) #4 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %i) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N, ptr noundef nonnull %i) %0 = load i64, ptr %N, align 8, !tbaa !5 %1 = load i64, ptr %i, align 8, !tbaa !5 %sub = add i64 %0, 1 %add = sub i64 %sub, %1 %call1 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %add) call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %i) #4 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %N) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"long", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
# include <stdio.h> # define max 1000000007 int main() { int r,l,x,y,i,j, t[10]; scanf("%d%d", &x,&y); scanf("%d", &r); t[1] = x % max; t[2] = y % max; t[3] = (y - x) % max; t[4] = (-x) % max; t[5] = (-y) % max; t[0] = (x - y) % max; l = t[r % 6]; if(l < 0)l = max + l; printf("%d\n", l); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13787/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13787/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 [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 [4 x i8] c"%d\0A\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %r = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %t = alloca [10 x i32], align 16 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #3 call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %t) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x, ptr noundef nonnull %y) %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %r) %0 = load i32, ptr %x, align 4, !tbaa !5 %rem = srem i32 %0, 1000000007 %arrayidx = getelementptr inbounds [10 x i32], ptr %t, i64 0, i64 1 store i32 %rem, ptr %arrayidx, align 4, !tbaa !5 %1 = load i32, ptr %y, align 4, !tbaa !5 %rem2 = srem i32 %1, 1000000007 %arrayidx3 = getelementptr inbounds [10 x i32], ptr %t, i64 0, i64 2 store i32 %rem2, ptr %arrayidx3, align 8, !tbaa !5 %sub = sub nsw i32 %1, %0 %rem4 = srem i32 %sub, 1000000007 %arrayidx5 = getelementptr inbounds [10 x i32], ptr %t, i64 0, i64 3 store i32 %rem4, ptr %arrayidx5, align 4, !tbaa !5 %rem7 = sub nsw i32 0, %rem %arrayidx8 = getelementptr inbounds [10 x i32], ptr %t, i64 0, i64 4 store i32 %rem7, ptr %arrayidx8, align 16, !tbaa !5 %rem10 = sub nsw i32 0, %rem2 %arrayidx11 = getelementptr inbounds [10 x i32], ptr %t, i64 0, i64 5 store i32 %rem10, ptr %arrayidx11, align 4, !tbaa !5 %sub12 = sub nsw i32 %0, %1 %rem13 = srem i32 %sub12, 1000000007 store i32 %rem13, ptr %t, align 16, !tbaa !5 %2 = load i32, ptr %r, align 4, !tbaa !5 %rem15 = srem i32 %2, 6 %idxprom = sext i32 %rem15 to i64 %arrayidx16 = getelementptr inbounds [10 x i32], ptr %t, i64 0, i64 %idxprom %3 = load i32, ptr %arrayidx16, align 4, !tbaa !5 %cmp = icmp slt i32 %3, 0 %add = add nsw i32 %3, 1000000007 %spec.select = select i1 %cmp, i32 %add, i32 %3 %call17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %spec.select) call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %t) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(void) { int n, i; char a[100]; char b[100]; char c[100]; int count = 0; scanf("%d", &n); scanf("%s", a); scanf("%s", b); scanf("%s", c); for (i = 0; i < n; i++) { if (a[i] == b[i] && b[i] == c[i]); else if (a[i] != b[i] && b[i] != c[i] && c[i] != a[i]) count += 2; else count++; } printf("%d\n", count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137912/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137912/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1 @.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 %a = alloca [100 x i8], align 16 %b = alloca [100 x i8], align 16 %c = alloca [100 x i8], align 16 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4 call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %a) #4 call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %b) #4 call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %c) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %a) %call3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %b) %call5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %c) %0 = load i32, ptr %n, align 4, !tbaa !5 %cmp63 = icmp sgt i32 %0, 0 br i1 %cmp63, label %for.body.preheader, label %for.end for.body.preheader: ; preds = %entry %wide.trip.count = zext i32 %0 to i64 %min.iters.check = icmp ult i32 %0, 8 br i1 %min.iters.check, label %for.body.preheader76, label %vector.ph vector.ph: ; preds = %for.body.preheader %n.vec = and i64 %wide.trip.count, 4294967288 br label %vector.body vector.body: ; preds = %vector.body, %vector.ph %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %predphi74, %vector.body ] %vec.phi67 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %predphi75, %vector.body ] %1 = getelementptr inbounds [100 x i8], ptr %a, i64 0, i64 %index %wide.load = load <4 x i8>, ptr %1, align 8, !tbaa !9 %2 = getelementptr inbounds i8, ptr %1, i64 4 %wide.load68 = load <4 x i8>, ptr %2, align 4, !tbaa !9 %3 = getelementptr inbounds [100 x i8], ptr %b, i64 0, i64 %index %wide.load69 = load <4 x i8>, ptr %3, align 8, !tbaa !9 %4 = getelementptr inbounds i8, ptr %3, i64 4 %wide.load70 = load <4 x i8>, ptr %4, align 4, !tbaa !9 %5 = icmp eq <4 x i8> %wide.load, %wide.load69 %6 = icmp eq <4 x i8> %wide.load68, %wide.load70 %7 = getelementptr inbounds [100 x i8], ptr %c, i64 0, i64 %index %wide.load71 = load <4 x i8>, ptr %7, align 8, !tbaa !9 %8 = getelementptr inbounds i8, ptr %7, i64 4 %wide.load72 = load <4 x i8>, ptr %8, align 4, !tbaa !9 %9 = icmp eq <4 x i8> %wide.load69, %wide.load71 %10 = icmp eq <4 x i8> %wide.load70, %wide.load72 %11 = icmp eq <4 x i8> %wide.load71, %wide.load %12 = icmp eq <4 x i8> %wide.load72, %wide.load68 %13 = or <4 x i1> %9, %11 %14 = or <4 x i1> %10, %12 %15 = add <4 x i32> %vec.phi, <i32 2, i32 2, i32 2, i32 2> %16 = add <4 x i32> %vec.phi67, <i32 2, i32 2, i32 2, i32 2> %17 = icmp ne <4 x i8> %wide.load, %wide.load71 %18 = icmp ne <4 x i8> %wide.load68, %wide.load72 %19 = add <4 x i32> %vec.phi, <i32 1, i32 1, i32 1, i32 1> %20 = add <4 x i32> %vec.phi67, <i32 1, i32 1, i32 1, i32 1> %21 = xor <4 x i1> %5, <i1 true, i1 true, i1 true, i1 true> %22 = xor <4 x i1> %6, <i1 true, i1 true, i1 true, i1 true> %23 = select <4 x i1> %5, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i1> %13 %24 = select <4 x i1> %6, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i1> %14 %25 = select <4 x i1> %5, <4 x i1> %17, <4 x i1> zeroinitializer %26 = select <4 x i1> %6, <4 x i1> %18, <4 x i1> zeroinitializer %27 = select <4 x i1> %21, <4 x i1> %13, <4 x i1> zeroinitializer %28 = select <4 x i1> %22, <4 x i1> %14, <4 x i1> zeroinitializer %29 = or <4 x i1> %25, %27 %30 = or <4 x i1> %26, %28 %predphi = select <4 x i1> %23, <4 x i32> %vec.phi, <4 x i32> %15 %predphi73 = select <4 x i1> %24, <4 x i32> %vec.phi67, <4 x i32> %16 %predphi74 = select <4 x i1> %29, <4 x i32> %19, <4 x i32> %predphi %predphi75 = select <4 x i1> %30, <4 x i32> %20, <4 x i32> %predphi73 %index.next = add nuw i64 %index, 8 %31 = icmp eq i64 %index.next, %n.vec br i1 %31, label %middle.block, label %vector.body, !llvm.loop !10 middle.block: ; preds = %vector.body %bin.rdx = add <4 x i32> %predphi75, %predphi74 %32 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx) %cmp.n = icmp eq i64 %n.vec, %wide.trip.count br i1 %cmp.n, label %for.end, label %for.body.preheader76 for.body.preheader76: ; preds = %for.body.preheader, %middle.block %indvars.iv.ph = phi i64 [ 0, %for.body.preheader ], [ %n.vec, %middle.block ] %count.065.ph = phi i32 [ 0, %for.body.preheader ], [ %32, %middle.block ] br label %for.body for.body: ; preds = %for.body.preheader76, %for.inc %indvars.iv = phi i64 [ %indvars.iv.next, %for.inc ], [ %indvars.iv.ph, %for.body.preheader76 ] %count.065 = phi i32 [ %count.1, %for.inc ], [ %count.065.ph, %for.body.preheader76 ] %arrayidx = getelementptr inbounds [100 x i8], ptr %a, i64 0, i64 %indvars.iv %33 = load i8, ptr %arrayidx, align 1, !tbaa !9 %arrayidx7 = getelementptr inbounds [100 x i8], ptr %b, i64 0, i64 %indvars.iv %34 = load i8, ptr %arrayidx7, align 1, !tbaa !9 %cmp9 = icmp eq i8 %33, %34 %arrayidx15 = getelementptr inbounds [100 x i8], ptr %c, i64 0, i64 %indvars.iv %35 = load i8, ptr %arrayidx15, align 1, !tbaa !9 br i1 %cmp9, label %land.lhs.true, label %land.lhs.true27 land.lhs.true: ; preds = %for.body %cmp17 = icmp eq i8 %33, %35 br i1 %cmp17, label %for.inc, label %if.else46 land.lhs.true27: ; preds = %for.body %cmp34.not = icmp eq i8 %34, %35 %cmp43.not = icmp eq i8 %35, %33 %or.cond = or i1 %cmp34.not, %cmp43.not br i1 %or.cond, label %if.else46, label %if.then45 if.then45: ; preds = %land.lhs.true27 %add = add nsw i32 %count.065, 2 br label %for.inc if.else46: ; preds = %land.lhs.true, %land.lhs.true27 %inc = add nsw i32 %count.065, 1 br label %for.inc for.inc: ; preds = %land.lhs.true, %if.else46, %if.then45 %count.1 = phi i32 [ %count.065, %land.lhs.true ], [ %add, %if.then45 ], [ %inc, %if.else46 ] %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count br i1 %exitcond.not, label %for.end, label %for.body, !llvm.loop !14 for.end: ; preds = %for.inc, %middle.block, %entry %count.0.lcssa = phi i32 [ 0, %entry ], [ %32, %middle.block ], [ %count.1, %for.inc ] %call49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %count.0.lcssa) call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %c) #4 call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %b) #4 call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %a) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = !{!7, !7, i64 0} !10 = distinct !{!10, !11, !12, !13} !11 = !{!"llvm.loop.mustprogress"} !12 = !{!"llvm.loop.isvectorized", i32 1} !13 = !{!"llvm.loop.unroll.runtime.disable"} !14 = distinct !{!14, !11, !13, !12}
#include <stdio.h> #include <stdlib.h> #include <string.h> int compare_double(const void *a, const void *b) { return *(double *)a - *(double *)b; } int main(void) { double ans = 0; int n; scanf("%d", &n); double v[n]; for (int i = 0; i < n; i++) scanf("%lf", &v[i]); qsort(v, n, sizeof(double), compare_double); ans = (v[0] + v[1]) / 2; for (int i = 2; i < n; i++) ans = (ans + v[i]) / 2; printf("%f\n", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_137956/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_137956/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1 @.str.2 = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1 ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @compare_double(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) #0 { entry: %0 = load double, ptr %a, align 8, !tbaa !5 %1 = load double, ptr %b, align 8, !tbaa !5 %sub = fsub double %0, %1 %conv = fptosi double %sub to i32 ret i32 %conv } ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #1 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #6 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !9 %1 = zext i32 %0 to i64 %2 = call ptr @llvm.stacksave.p0() %vla = alloca double, i64 %1, align 16 %3 = load i32, ptr %n, align 4, !tbaa !9 %cmp23 = icmp sgt i32 %3, 0 br i1 %cmp23, label %for.body, label %entry.for.cond.cleanup_crit_edge entry.for.cond.cleanup_crit_edge: ; preds = %entry %.pre = sext i32 %3 to i64 br label %for.cond.cleanup for.cond.cleanup: ; preds = %for.body, %entry.for.cond.cleanup_crit_edge %conv.pre-phi = phi i64 [ %.pre, %entry.for.cond.cleanup_crit_edge ], [ %11, %for.body ] call void @qsort(ptr noundef nonnull %vla, i64 noundef %conv.pre-phi, i64 noundef 8, ptr noundef nonnull @compare_double) #6 %4 = load double, ptr %vla, align 16, !tbaa !5 %arrayidx3 = getelementptr inbounds double, ptr %vla, i64 1 %5 = load double, ptr %arrayidx3, align 8, !tbaa !5 %add = fadd double %4, %5 %6 = load i32, ptr %n, align 4, !tbaa !9 %ans.025 = fmul double %add, 5.000000e-01 %cmp626 = icmp sgt i32 %6, 2 br i1 %cmp626, label %for.body9.preheader, label %for.cond.cleanup8 for.body9.preheader: ; preds = %for.cond.cleanup %wide.trip.count = zext i32 %6 to i64 %7 = add nsw i64 %wide.trip.count, -2 %8 = add nsw i64 %wide.trip.count, -3 %xtraiter = and i64 %7, 3 %9 = icmp ult i64 %8, 3 br i1 %9, label %for.cond.cleanup8.loopexit.unr-lcssa, label %for.body9.preheader.new for.body9.preheader.new: ; preds = %for.body9.preheader %unroll_iter = and i64 %7, -4 %invariant.gep = getelementptr double, ptr %vla, i64 2 %invariant.gep40 = getelementptr double, ptr %vla, i64 3 br label %for.body9 for.body: ; preds = %entry, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ] %arrayidx = getelementptr inbounds double, ptr %vla, i64 %indvars.iv %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %10 = load i32, ptr %n, align 4, !tbaa !9 %11 = sext i32 %10 to i64 %cmp = icmp slt i64 %indvars.iv.next, %11 br i1 %cmp, label %for.body, label %for.cond.cleanup, !llvm.loop !11 for.cond.cleanup8.loopexit.unr-lcssa: ; preds = %for.body9, %for.body9.preheader %ans.0.lcssa38.ph = phi double [ undef, %for.body9.preheader ], [ %ans.0.3, %for.body9 ] %indvars.iv33.unr = phi i64 [ 2, %for.body9.preheader ], [ %indvars.iv.next34.3, %for.body9 ] %ans.028.unr = phi double [ %ans.025, %for.body9.preheader ], [ %ans.0.3, %for.body9 ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %for.cond.cleanup8, label %for.body9.epil for.body9.epil: ; preds = %for.cond.cleanup8.loopexit.unr-lcssa, %for.body9.epil %indvars.iv33.epil = phi i64 [ %indvars.iv.next34.epil, %for.body9.epil ], [ %indvars.iv33.unr, %for.cond.cleanup8.loopexit.unr-lcssa ] %ans.028.epil = phi double [ %ans.0.epil, %for.body9.epil ], [ %ans.028.unr, %for.cond.cleanup8.loopexit.unr-lcssa ] %epil.iter = phi i64 [ %epil.iter.next, %for.body9.epil ], [ 0, %for.cond.cleanup8.loopexit.unr-lcssa ] %arrayidx11.epil = getelementptr inbounds double, ptr %vla, i64 %indvars.iv33.epil %12 = load double, ptr %arrayidx11.epil, align 8, !tbaa !5 %add12.epil = fadd double %ans.028.epil, %12 %indvars.iv.next34.epil = add nuw nsw i64 %indvars.iv33.epil, 1 %ans.0.epil = fmul double %add12.epil, 5.000000e-01 %epil.iter.next = add i64 %epil.iter, 1 %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter br i1 %epil.iter.cmp.not, label %for.cond.cleanup8, label %for.body9.epil, !llvm.loop !13 for.cond.cleanup8: ; preds = %for.cond.cleanup8.loopexit.unr-lcssa, %for.body9.epil, %for.cond.cleanup %ans.0.lcssa = phi double [ %ans.025, %for.cond.cleanup ], [ %ans.0.lcssa38.ph, %for.cond.cleanup8.loopexit.unr-lcssa ], [ %ans.0.epil, %for.body9.epil ] %call17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %ans.0.lcssa) call void @llvm.stackrestore.p0(ptr %2) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #6 ret i32 0 for.body9: ; preds = %for.body9, %for.body9.preheader.new %indvars.iv33 = phi i64 [ 2, %for.body9.preheader.new ], [ %indvars.iv.next34.3, %for.body9 ] %ans.028 = phi double [ %ans.025, %for.body9.preheader.new ], [ %ans.0.3, %for.body9 ] %niter = phi i64 [ 0, %for.body9.preheader.new ], [ %niter.next.3, %for.body9 ] %arrayidx11 = getelementptr inbounds double, ptr %vla, i64 %indvars.iv33 %13 = load double, ptr %arrayidx11, align 16, !tbaa !5 %add12 = fadd double %ans.028, %13 %indvars.iv.next34 = or i64 %indvars.iv33, 1 %ans.0 = fmul double %add12, 5.000000e-01 %arrayidx11.1 = getelementptr inbounds double, ptr %vla, i64 %indvars.iv.next34 %14 = load double, ptr %arrayidx11.1, align 8, !tbaa !5 %add12.1 = fadd double %ans.0, %14 %ans.0.1 = fmul double %add12.1, 5.000000e-01 %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv33 %15 = load double, ptr %gep, align 16, !tbaa !5 %add12.2 = fadd double %ans.0.1, %15 %ans.0.2 = fmul double %add12.2, 5.000000e-01 %gep41 = getelementptr double, ptr %invariant.gep40, i64 %indvars.iv33 %16 = load double, ptr %gep41, align 8, !tbaa !5 %add12.3 = fadd double %ans.0.2, %16 %indvars.iv.next34.3 = add nuw nsw i64 %indvars.iv33, 4 %ans.0.3 = fmul double %add12.3, 5.000000e-01 %niter.next.3 = add i64 %niter, 4 %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter br i1 %niter.ncmp.3, label %for.cond.cleanup8.loopexit.unr-lcssa, label %for.body9, !llvm.loop !15 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare ptr @llvm.stacksave.p0() #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: nofree declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #5 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare void @llvm.stackrestore.p0(ptr) #4 attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn } attributes #5 = { nofree "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #6 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"double", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = !{!10, !10, i64 0} !10 = !{!"int", !7, i64 0} !11 = distinct !{!11, !12} !12 = !{!"llvm.loop.mustprogress"} !13 = distinct !{!13, !14} !14 = !{!"llvm.loop.unroll.disable"} !15 = distinct !{!15, !12}
#include<stdio.h> #include<stdlib.h> int comparing(const void *a, const void *b){ return *(double*)a - *(double*)b; } int main(){ int n = 0; double v[50] = {}; int i = 0; double sum = 0; scanf("%d",&n); for(i = 0;i < n;i++){ scanf("%lf",&v[i]); } qsort(v,n,sizeof(double),comparing); sum = v[0]; for(i = 1;i < n;i++){ sum = (sum + v[i])/2; } printf("%lf",sum); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138005/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138005/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1 ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @comparing(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) #0 { entry: %0 = load double, ptr %a, align 8, !tbaa !5 %1 = load double, ptr %b, align 8, !tbaa !5 %sub = fsub double %0, %1 %conv = fptosi double %sub to i32 ret i32 %conv } ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #1 { entry: %n = alloca i32, align 4 %v = alloca [50 x double], align 16 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #6 store i32 0, ptr %n, align 4, !tbaa !9 call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %v) #6 call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400) %v, i8 0, i64 400, i1 false) %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !9 %cmp19 = icmp sgt i32 %0, 0 br i1 %cmp19, label %for.body, label %entry.for.end_crit_edge entry.for.end_crit_edge: ; preds = %entry %.pre = sext i32 %0 to i64 br label %for.end for.body: ; preds = %entry, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ] %arrayidx = getelementptr inbounds [50 x double], ptr %v, i64 0, i64 %indvars.iv %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %1 = load i32, ptr %n, align 4, !tbaa !9 %2 = sext i32 %1 to i64 %cmp = icmp slt i64 %indvars.iv.next, %2 br i1 %cmp, label %for.body, label %for.end, !llvm.loop !11 for.end: ; preds = %for.body, %entry.for.end_crit_edge %conv.pre-phi = phi i64 [ %.pre, %entry.for.end_crit_edge ], [ %2, %for.body ] call void @qsort(ptr noundef nonnull %v, i64 noundef %conv.pre-phi, i64 noundef 8, ptr noundef nonnull @comparing) #6 %3 = load double, ptr %v, align 16, !tbaa !5 %4 = load i32, ptr %n, align 4, !tbaa !9 %cmp421 = icmp sgt i32 %4, 1 br i1 %cmp421, label %for.body6.preheader, label %for.end11 for.body6.preheader: ; preds = %for.end %wide.trip.count = zext i32 %4 to i64 %5 = add nsw i64 %wide.trip.count, -1 %6 = add nsw i64 %wide.trip.count, -2 %xtraiter = and i64 %5, 3 %7 = icmp ult i64 %6, 3 br i1 %7, label %for.end11.loopexit.unr-lcssa, label %for.body6.preheader.new for.body6.preheader.new: ; preds = %for.body6.preheader %unroll_iter = and i64 %5, -4 br label %for.body6 for.body6: ; preds = %for.body6, %for.body6.preheader.new %indvars.iv27 = phi i64 [ 1, %for.body6.preheader.new ], [ %indvars.iv.next28.3, %for.body6 ] %sum.023 = phi double [ %3, %for.body6.preheader.new ], [ %div.3, %for.body6 ] %niter = phi i64 [ 0, %for.body6.preheader.new ], [ %niter.next.3, %for.body6 ] %arrayidx8 = getelementptr inbounds [50 x double], ptr %v, i64 0, i64 %indvars.iv27 %8 = load double, ptr %arrayidx8, align 8, !tbaa !5 %add = fadd double %sum.023, %8 %div = fmul double %add, 5.000000e-01 %indvars.iv.next28 = add nuw nsw i64 %indvars.iv27, 1 %arrayidx8.1 = getelementptr inbounds [50 x double], ptr %v, i64 0, i64 %indvars.iv.next28 %9 = load double, ptr %arrayidx8.1, align 8, !tbaa !5 %add.1 = fadd double %div, %9 %div.1 = fmul double %add.1, 5.000000e-01 %indvars.iv.next28.1 = add nuw nsw i64 %indvars.iv27, 2 %arrayidx8.2 = getelementptr inbounds [50 x double], ptr %v, i64 0, i64 %indvars.iv.next28.1 %10 = load double, ptr %arrayidx8.2, align 8, !tbaa !5 %add.2 = fadd double %div.1, %10 %div.2 = fmul double %add.2, 5.000000e-01 %indvars.iv.next28.2 = add nuw nsw i64 %indvars.iv27, 3 %arrayidx8.3 = getelementptr inbounds [50 x double], ptr %v, i64 0, i64 %indvars.iv.next28.2 %11 = load double, ptr %arrayidx8.3, align 8, !tbaa !5 %add.3 = fadd double %div.2, %11 %div.3 = fmul double %add.3, 5.000000e-01 %indvars.iv.next28.3 = add nuw nsw i64 %indvars.iv27, 4 %niter.next.3 = add i64 %niter, 4 %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter br i1 %niter.ncmp.3, label %for.end11.loopexit.unr-lcssa, label %for.body6, !llvm.loop !13 for.end11.loopexit.unr-lcssa: ; preds = %for.body6, %for.body6.preheader %div.lcssa.ph = phi double [ undef, %for.body6.preheader ], [ %div.3, %for.body6 ] %indvars.iv27.unr = phi i64 [ 1, %for.body6.preheader ], [ %indvars.iv.next28.3, %for.body6 ] %sum.023.unr = phi double [ %3, %for.body6.preheader ], [ %div.3, %for.body6 ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %for.end11, label %for.body6.epil for.body6.epil: ; preds = %for.end11.loopexit.unr-lcssa, %for.body6.epil %indvars.iv27.epil = phi i64 [ %indvars.iv.next28.epil, %for.body6.epil ], [ %indvars.iv27.unr, %for.end11.loopexit.unr-lcssa ] %sum.023.epil = phi double [ %div.epil, %for.body6.epil ], [ %sum.023.unr, %for.end11.loopexit.unr-lcssa ] %epil.iter = phi i64 [ %epil.iter.next, %for.body6.epil ], [ 0, %for.end11.loopexit.unr-lcssa ] %arrayidx8.epil = getelementptr inbounds [50 x double], ptr %v, i64 0, i64 %indvars.iv27.epil %12 = load double, ptr %arrayidx8.epil, align 8, !tbaa !5 %add.epil = fadd double %sum.023.epil, %12 %div.epil = fmul double %add.epil, 5.000000e-01 %indvars.iv.next28.epil = add nuw nsw i64 %indvars.iv27.epil, 1 %epil.iter.next = add i64 %epil.iter, 1 %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter br i1 %epil.iter.cmp.not, label %for.end11, label %for.body6.epil, !llvm.loop !14 for.end11: ; preds = %for.end11.loopexit.unr-lcssa, %for.body6.epil, %for.end %sum.0.lcssa = phi double [ %3, %for.end ], [ %div.lcssa.ph, %for.end11.loopexit.unr-lcssa ], [ %div.epil, %for.body6.epil ] %call12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %sum.0.lcssa) call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %v) #6 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #6 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4 ; Function Attrs: nofree declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #5 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #5 = { nofree "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #6 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"double", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = !{!10, !10, i64 0} !10 = !{!"int", !7, i64 0} !11 = distinct !{!11, !12} !12 = !{!"llvm.loop.mustprogress"} !13 = distinct !{!13, !12} !14 = distinct !{!14, !15} !15 = !{!"llvm.loop.unroll.disable"}
#include <stdio.h> int main(){ double gu[100]; int N,i; scanf("%d",&N); for(i = 0; i < N; i++){ scanf("%lf",&gu[i]); } int t,j; double min,tmp; for(t=0;t<N;t++){ min = gu[t]; for(j=t+1;j<N;j++){ if(gu[j] < min){ tmp = gu[t]; gu[t] = gu[j]; gu[j] = tmp; min = gu[t]; } } } /*for(int i = 0; i < N; i++){ printf("%lf",gu[i]); }*/ int k = 0; for(k = 0; k < N-1; k++){ gu[k+1] = (gu[k] + gu[k+1])/2; } printf("%lf",gu[N-1]); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138049/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138049/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %gu = alloca [100 x double], align 16 %N = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %gu) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N) %0 = load i32, ptr %N, align 4, !tbaa !5 %cmp64 = icmp sgt i32 %0, 0 br i1 %cmp64, label %for.body, label %for.cond29.preheader.thread for.cond2.preheader: ; preds = %for.body %cmp369 = icmp sgt i32 %2, 0 br i1 %cmp369, label %for.body4.preheader, label %for.cond29.preheader.thread for.body4.preheader: ; preds = %for.cond2.preheader %1 = zext i32 %2 to i64 %wide.trip.count84 = zext i32 %2 to i64 br label %for.body4 for.body: ; preds = %entry, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ] %arrayidx = getelementptr inbounds [100 x double], ptr %gu, i64 0, i64 %indvars.iv %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %2 = load i32, ptr %N, align 4, !tbaa !5 %3 = sext i32 %2 to i64 %cmp = icmp slt i64 %indvars.iv.next, %3 br i1 %cmp, label %for.body, label %for.cond2.preheader, !llvm.loop !9 for.cond2.loopexit: ; preds = %for.inc23, %for.body4 %indvars.iv.next77 = add nuw nsw i64 %indvars.iv76, 1 %exitcond85.not = icmp eq i64 %indvars.iv.next82, %wide.trip.count84 br i1 %exitcond85.not, label %for.cond29.preheader, label %for.body4, !llvm.loop !11 for.cond29.preheader.thread: ; preds = %for.cond2.preheader, %entry %.lcssa93.ph = phi i32 [ %2, %for.cond2.preheader ], [ %0, %entry ] %sub95 = add i32 %.lcssa93.ph, -1 br label %for.end43 for.cond29.preheader: ; preds = %for.cond2.loopexit %sub = add i32 %2, -1 %cmp3071 = icmp sgt i32 %2, 1 br i1 %cmp3071, label %for.body31.preheader, label %for.end43 for.body31.preheader: ; preds = %for.cond29.preheader %wide.trip.count89 = zext i32 %sub to i64 %.pre = load double, ptr %gu, align 16, !tbaa !12 %4 = add nsw i64 %wide.trip.count89, -1 %xtraiter = and i64 %wide.trip.count89, 3 %5 = icmp ult i64 %4, 3 br i1 %5, label %for.end43.loopexit.unr-lcssa, label %for.body31.preheader.new for.body31.preheader.new: ; preds = %for.body31.preheader %unroll_iter = and i64 %wide.trip.count89, 4294967292 br label %for.body31 for.body4: ; preds = %for.body4.preheader, %for.cond2.loopexit %indvars.iv81 = phi i64 [ 0, %for.body4.preheader ], [ %indvars.iv.next82, %for.cond2.loopexit ] %indvars.iv76 = phi i64 [ 1, %for.body4.preheader ], [ %indvars.iv.next77, %for.cond2.loopexit ] %arrayidx6 = getelementptr inbounds [100 x double], ptr %gu, i64 0, i64 %indvars.iv81 %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1 %cmp866 = icmp ult i64 %indvars.iv.next82, %1 br i1 %cmp866, label %for.body9.preheader, label %for.cond2.loopexit for.body9.preheader: ; preds = %for.body4 %6 = load double, ptr %arrayidx6, align 8, !tbaa !12 br label %for.body9 for.body9: ; preds = %for.body9.preheader, %for.inc23 %indvars.iv78 = phi i64 [ %indvars.iv76, %for.body9.preheader ], [ %indvars.iv.next79, %for.inc23 ] %7 = phi double [ %6, %for.body9.preheader ], [ %min.1, %for.inc23 ] %arrayidx11 = getelementptr inbounds [100 x double], ptr %gu, i64 0, i64 %indvars.iv78 %8 = load double, ptr %arrayidx11, align 8, !tbaa !12 %cmp12 = fcmp olt double %8, %7 br i1 %cmp12, label %if.then, label %for.inc23 if.then: ; preds = %for.body9 store double %8, ptr %arrayidx6, align 8, !tbaa !12 store double %7, ptr %arrayidx11, align 8, !tbaa !12 %9 = load double, ptr %arrayidx6, align 8, !tbaa !12 br label %for.inc23 for.inc23: ; preds = %for.body9, %if.then %min.1 = phi double [ %9, %if.then ], [ %7, %for.body9 ] %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1 %exitcond.not = icmp eq i64 %indvars.iv.next79, %wide.trip.count84 br i1 %exitcond.not, label %for.cond2.loopexit, label %for.body9, !llvm.loop !14 for.body31: ; preds = %for.body31, %for.body31.preheader.new %10 = phi double [ %.pre, %for.body31.preheader.new ], [ %div.3, %for.body31 ] %indvars.iv86 = phi i64 [ 0, %for.body31.preheader.new ], [ %indvars.iv.next87.3, %for.body31 ] %niter = phi i64 [ 0, %for.body31.preheader.new ], [ %niter.next.3, %for.body31 ] %indvars.iv.next87 = or i64 %indvars.iv86, 1 %arrayidx36 = getelementptr inbounds [100 x double], ptr %gu, i64 0, i64 %indvars.iv.next87 %11 = load double, ptr %arrayidx36, align 8, !tbaa !12 %add37 = fadd double %10, %11 %div = fmul double %add37, 5.000000e-01 store double %div, ptr %arrayidx36, align 8, !tbaa !12 %indvars.iv.next87.1 = or i64 %indvars.iv86, 2 %arrayidx36.1 = getelementptr inbounds [100 x double], ptr %gu, i64 0, i64 %indvars.iv.next87.1 %12 = load double, ptr %arrayidx36.1, align 16, !tbaa !12 %add37.1 = fadd double %div, %12 %div.1 = fmul double %add37.1, 5.000000e-01 store double %div.1, ptr %arrayidx36.1, align 16, !tbaa !12 %indvars.iv.next87.2 = or i64 %indvars.iv86, 3 %arrayidx36.2 = getelementptr inbounds [100 x double], ptr %gu, i64 0, i64 %indvars.iv.next87.2 %13 = load double, ptr %arrayidx36.2, align 8, !tbaa !12 %add37.2 = fadd double %div.1, %13 %div.2 = fmul double %add37.2, 5.000000e-01 store double %div.2, ptr %arrayidx36.2, align 8, !tbaa !12 %indvars.iv.next87.3 = add nuw nsw i64 %indvars.iv86, 4 %arrayidx36.3 = getelementptr inbounds [100 x double], ptr %gu, i64 0, i64 %indvars.iv.next87.3 %14 = load double, ptr %arrayidx36.3, align 16, !tbaa !12 %add37.3 = fadd double %div.2, %14 %div.3 = fmul double %add37.3, 5.000000e-01 store double %div.3, ptr %arrayidx36.3, align 16, !tbaa !12 %niter.next.3 = add i64 %niter, 4 %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter br i1 %niter.ncmp.3, label %for.end43.loopexit.unr-lcssa, label %for.body31, !llvm.loop !15 for.end43.loopexit.unr-lcssa: ; preds = %for.body31, %for.body31.preheader %.unr = phi double [ %.pre, %for.body31.preheader ], [ %div.3, %for.body31 ] %indvars.iv86.unr = phi i64 [ 0, %for.body31.preheader ], [ %indvars.iv.next87.3, %for.body31 ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %for.end43, label %for.body31.epil for.body31.epil: ; preds = %for.end43.loopexit.unr-lcssa, %for.body31.epil %15 = phi double [ %div.epil, %for.body31.epil ], [ %.unr, %for.end43.loopexit.unr-lcssa ] %indvars.iv86.epil = phi i64 [ %indvars.iv.next87.epil, %for.body31.epil ], [ %indvars.iv86.unr, %for.end43.loopexit.unr-lcssa ] %epil.iter = phi i64 [ %epil.iter.next, %for.body31.epil ], [ 0, %for.end43.loopexit.unr-lcssa ] %indvars.iv.next87.epil = add nuw nsw i64 %indvars.iv86.epil, 1 %arrayidx36.epil = getelementptr inbounds [100 x double], ptr %gu, i64 0, i64 %indvars.iv.next87.epil %16 = load double, ptr %arrayidx36.epil, align 8, !tbaa !12 %add37.epil = fadd double %15, %16 %div.epil = fmul double %add37.epil, 5.000000e-01 store double %div.epil, ptr %arrayidx36.epil, align 8, !tbaa !12 %epil.iter.next = add i64 %epil.iter, 1 %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter br i1 %epil.iter.cmp.not, label %for.end43, label %for.body31.epil, !llvm.loop !16 for.end43: ; preds = %for.end43.loopexit.unr-lcssa, %for.body31.epil, %for.cond29.preheader.thread, %for.cond29.preheader %sub97 = phi i32 [ %sub95, %for.cond29.preheader.thread ], [ %sub, %for.cond29.preheader ], [ %sub, %for.body31.epil ], [ %sub, %for.end43.loopexit.unr-lcssa ] %idxprom45 = sext i32 %sub97 to i64 %arrayidx46 = getelementptr inbounds [100 x double], ptr %gu, i64 0, i64 %idxprom45 %17 = load double, ptr %arrayidx46, align 8, !tbaa !12 %call47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %17) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #3 call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %gu) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10} !12 = !{!13, !13, i64 0} !13 = !{!"double", !7, i64 0} !14 = distinct !{!14, !10} !15 = distinct !{!15, !10} !16 = distinct !{!16, !17} !17 = !{!"llvm.loop.unroll.disable"}
#include<stdio.h> #include<string.h> #include<math.h> #define FOR(n) for(int i=0;i<n;i++) #define PRN(n) printf("%d\n",n) #define PRS(s) printf("%s\n",s) #define PRC(c) printf("%c",c) int main(void){ int n; double ans=0; scanf("%d",&n); double a[n]; FOR(n)scanf("%lf",&a[i]); FOR(n-1){ for(int j=0;j<n-1;j++){ if(a[j]>a[j+1]){ double t=a[j]; a[j]=a[j+1]; a[j+1]=t; } } } FOR(n)if(i)a[i]=(a[i-1]+a[i])/2.0; printf("%.10lf\n",a[n-1]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138092/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138092/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1 @.str.2 = private unnamed_addr constant [8 x i8] c"%.10lf\0A\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %1 = zext i32 %0 to i64 %2 = call ptr @llvm.stacksave.p0() %vla = alloca double, i64 %1, align 16 %3 = load i32, ptr %n, align 4, !tbaa !5 %cmp72 = icmp sgt i32 %3, 0 br i1 %cmp72, label %for.body, label %for.cond34.preheader.thread for.cond34.preheader.thread: ; preds = %entry %sub95 = add i32 %3, -1 br label %for.cond.cleanup36 for.cond3.preheader: ; preds = %for.body %sub = add i32 %11, -1 %cmp476 = icmp sgt i32 %11, 1 br i1 %cmp476, label %for.cond7.preheader.us.preheader, label %for.cond34.preheader for.cond7.preheader.us.preheader: ; preds = %for.cond3.preheader %wide.trip.count = zext i32 %sub to i64 %xtraiter = and i64 %wide.trip.count, 1 %4 = icmp eq i32 %sub, 1 %unroll_iter = and i64 %wide.trip.count, 4294967294 %lcmp.mod.not = icmp eq i64 %xtraiter, 0 %invariant.gep = getelementptr double, ptr %vla, i64 1 br label %for.cond7.preheader.us for.cond7.preheader.us: ; preds = %for.cond7.preheader.us.preheader, %for.cond7.for.cond.cleanup10_crit_edge.us %i2.077.us = phi i32 [ %inc31.us, %for.cond7.for.cond.cleanup10_crit_edge.us ], [ 0, %for.cond7.preheader.us.preheader ] %.pre = load double, ptr %vla, align 16, !tbaa !9 br i1 %4, label %for.cond7.for.cond.cleanup10_crit_edge.us.unr-lcssa, label %for.body11.us for.body11.us: ; preds = %for.cond7.preheader.us, %for.inc27.us.1 %5 = phi double [ %9, %for.inc27.us.1 ], [ %.pre, %for.cond7.preheader.us ] %indvars.iv83 = phi i64 [ %indvars.iv.next84.1, %for.inc27.us.1 ], [ 0, %for.cond7.preheader.us ] %niter = phi i64 [ %niter.next.1, %for.inc27.us.1 ], [ 0, %for.cond7.preheader.us ] %indvars.iv.next84 = or i64 %indvars.iv83, 1 %arrayidx15.us = getelementptr inbounds double, ptr %vla, i64 %indvars.iv.next84 %6 = load double, ptr %arrayidx15.us, align 8, !tbaa !9 %cmp16.us = fcmp ogt double %5, %6 br i1 %cmp16.us, label %if.then.us, label %for.inc27.us if.then.us: ; preds = %for.body11.us %arrayidx13.us = getelementptr inbounds double, ptr %vla, i64 %indvars.iv83 store double %6, ptr %arrayidx13.us, align 16, !tbaa !9 store double %5, ptr %arrayidx15.us, align 8, !tbaa !9 br label %for.inc27.us for.inc27.us: ; preds = %if.then.us, %for.body11.us %7 = phi double [ %5, %if.then.us ], [ %6, %for.body11.us ] %indvars.iv.next84.1 = add nuw nsw i64 %indvars.iv83, 2 %arrayidx15.us.1 = getelementptr inbounds double, ptr %vla, i64 %indvars.iv.next84.1 %8 = load double, ptr %arrayidx15.us.1, align 16, !tbaa !9 %cmp16.us.1 = fcmp ogt double %7, %8 br i1 %cmp16.us.1, label %if.then.us.1, label %for.inc27.us.1 if.then.us.1: ; preds = %for.inc27.us %arrayidx13.us.1 = getelementptr inbounds double, ptr %vla, i64 %indvars.iv.next84 store double %8, ptr %arrayidx13.us.1, align 8, !tbaa !9 store double %7, ptr %arrayidx15.us.1, align 16, !tbaa !9 br label %for.inc27.us.1 for.inc27.us.1: ; preds = %if.then.us.1, %for.inc27.us %9 = phi double [ %7, %if.then.us.1 ], [ %8, %for.inc27.us ] %niter.next.1 = add i64 %niter, 2 %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter br i1 %niter.ncmp.1, label %for.cond7.for.cond.cleanup10_crit_edge.us.unr-lcssa, label %for.body11.us, !llvm.loop !11 for.cond7.for.cond.cleanup10_crit_edge.us.unr-lcssa: ; preds = %for.inc27.us.1, %for.cond7.preheader.us %.unr = phi double [ %.pre, %for.cond7.preheader.us ], [ %9, %for.inc27.us.1 ] %indvars.iv83.unr = phi i64 [ 0, %for.cond7.preheader.us ], [ %indvars.iv.next84.1, %for.inc27.us.1 ] br i1 %lcmp.mod.not, label %for.cond7.for.cond.cleanup10_crit_edge.us, label %for.body11.us.epil for.body11.us.epil: ; preds = %for.cond7.for.cond.cleanup10_crit_edge.us.unr-lcssa %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv83.unr %10 = load double, ptr %gep, align 8, !tbaa !9 %cmp16.us.epil = fcmp ogt double %.unr, %10 br i1 %cmp16.us.epil, label %if.then.us.epil, label %for.cond7.for.cond.cleanup10_crit_edge.us if.then.us.epil: ; preds = %for.body11.us.epil %arrayidx13.us.epil = getelementptr inbounds double, ptr %vla, i64 %indvars.iv83.unr store double %10, ptr %arrayidx13.us.epil, align 8, !tbaa !9 store double %.unr, ptr %gep, align 8, !tbaa !9 br label %for.cond7.for.cond.cleanup10_crit_edge.us for.cond7.for.cond.cleanup10_crit_edge.us: ; preds = %for.body11.us.epil, %if.then.us.epil, %for.cond7.for.cond.cleanup10_crit_edge.us.unr-lcssa %inc31.us = add nuw nsw i32 %i2.077.us, 1 %exitcond86.not = icmp eq i32 %inc31.us, %sub br i1 %exitcond86.not, label %for.cond34.preheader, label %for.cond7.preheader.us, !llvm.loop !13 for.body: ; preds = %entry, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ] %arrayidx = getelementptr inbounds double, ptr %vla, i64 %indvars.iv %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %11 = load i32, ptr %n, align 4, !tbaa !5 %12 = sext i32 %11 to i64 %cmp = icmp slt i64 %indvars.iv.next, %12 br i1 %cmp, label %for.body, label %for.cond3.preheader, !llvm.loop !14 for.cond34.preheader: ; preds = %for.cond7.for.cond.cleanup10_crit_edge.us, %for.cond3.preheader %cmp3579 = icmp sgt i32 %11, 0 br i1 %cmp3579, label %for.inc48.peel, label %for.cond.cleanup36 for.inc48.peel: ; preds = %for.cond34.preheader %exitcond92.peel.not = icmp eq i32 %11, 1 br i1 %exitcond92.peel.not, label %for.cond.cleanup36, label %for.body37.peel.next for.body37.peel.next: ; preds = %for.inc48.peel %wide.trip.count91 = zext i32 %11 to i64 %load_initial = load double, ptr %vla, align 16 %13 = add nsw i64 %wide.trip.count91, -1 %14 = add nsw i64 %wide.trip.count91, -2 %xtraiter103 = and i64 %13, 3 %15 = icmp ult i64 %14, 3 br i1 %15, label %for.cond.cleanup36.loopexit.unr-lcssa, label %for.body37.peel.next.new for.body37.peel.next.new: ; preds = %for.body37.peel.next %unroll_iter105 = and i64 %13, -4 %invariant.gep108 = getelementptr double, ptr %vla, i64 1 %invariant.gep110 = getelementptr double, ptr %vla, i64 2 %invariant.gep112 = getelementptr double, ptr %vla, i64 3 br label %for.inc48 for.cond.cleanup36.loopexit.unr-lcssa: ; preds = %for.inc48, %for.body37.peel.next %store_forwarded.unr = phi double [ %load_initial, %for.body37.peel.next ], [ %div.3, %for.inc48 ] %indvars.iv87.unr = phi i64 [ 1, %for.body37.peel.next ], [ %indvars.iv.next88.3, %for.inc48 ] %lcmp.mod104.not = icmp eq i64 %xtraiter103, 0 br i1 %lcmp.mod104.not, label %for.cond.cleanup36, label %for.inc48.epil for.inc48.epil: ; preds = %for.cond.cleanup36.loopexit.unr-lcssa, %for.inc48.epil %store_forwarded.epil = phi double [ %div.epil, %for.inc48.epil ], [ %store_forwarded.unr, %for.cond.cleanup36.loopexit.unr-lcssa ] %indvars.iv87.epil = phi i64 [ %indvars.iv.next88.epil, %for.inc48.epil ], [ %indvars.iv87.unr, %for.cond.cleanup36.loopexit.unr-lcssa ] %epil.iter = phi i64 [ %epil.iter.next, %for.inc48.epil ], [ 0, %for.cond.cleanup36.loopexit.unr-lcssa ] %arrayidx43.epil = getelementptr inbounds double, ptr %vla, i64 %indvars.iv87.epil %16 = load double, ptr %arrayidx43.epil, align 8, !tbaa !9 %add44.epil = fadd double %store_forwarded.epil, %16 %div.epil = fmul double %add44.epil, 5.000000e-01 store double %div.epil, ptr %arrayidx43.epil, align 8, !tbaa !9 %indvars.iv.next88.epil = add nuw nsw i64 %indvars.iv87.epil, 1 %epil.iter.next = add i64 %epil.iter, 1 %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter103 br i1 %epil.iter.cmp.not, label %for.cond.cleanup36, label %for.inc48.epil, !llvm.loop !15 for.cond.cleanup36: ; preds = %for.cond.cleanup36.loopexit.unr-lcssa, %for.inc48.epil, %for.inc48.peel, %for.cond34.preheader.thread, %for.cond34.preheader %sub98102 = phi i32 [ %sub95, %for.cond34.preheader.thread ], [ %sub, %for.cond34.preheader ], [ 0, %for.inc48.peel ], [ %sub, %for.inc48.epil ], [ %sub, %for.cond.cleanup36.loopexit.unr-lcssa ] %idxprom52 = sext i32 %sub98102 to i64 %arrayidx53 = getelementptr inbounds double, ptr %vla, i64 %idxprom52 %17 = load double, ptr %arrayidx53, align 8, !tbaa !9 %call54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %17) call void @llvm.stackrestore.p0(ptr %2) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4 ret i32 0 for.inc48: ; preds = %for.inc48, %for.body37.peel.next.new %store_forwarded = phi double [ %load_initial, %for.body37.peel.next.new ], [ %div.3, %for.inc48 ] %indvars.iv87 = phi i64 [ 1, %for.body37.peel.next.new ], [ %indvars.iv.next88.3, %for.inc48 ] %niter106 = phi i64 [ 0, %for.body37.peel.next.new ], [ %niter106.next.3, %for.inc48 ] %arrayidx43 = getelementptr inbounds double, ptr %vla, i64 %indvars.iv87 %18 = load double, ptr %arrayidx43, align 8, !tbaa !9 %add44 = fadd double %store_forwarded, %18 %div = fmul double %add44, 5.000000e-01 store double %div, ptr %arrayidx43, align 8, !tbaa !9 %gep109 = getelementptr double, ptr %invariant.gep108, i64 %indvars.iv87 %19 = load double, ptr %gep109, align 8, !tbaa !9 %add44.1 = fadd double %div, %19 %div.1 = fmul double %add44.1, 5.000000e-01 store double %div.1, ptr %gep109, align 8, !tbaa !9 %gep111 = getelementptr double, ptr %invariant.gep110, i64 %indvars.iv87 %20 = load double, ptr %gep111, align 8, !tbaa !9 %add44.2 = fadd double %div.1, %20 %div.2 = fmul double %add44.2, 5.000000e-01 store double %div.2, ptr %gep111, align 8, !tbaa !9 %gep113 = getelementptr double, ptr %invariant.gep112, i64 %indvars.iv87 %21 = load double, ptr %gep113, align 8, !tbaa !9 %add44.3 = fadd double %div.2, %21 %div.3 = fmul double %add44.3, 5.000000e-01 store double %div.3, ptr %gep113, align 8, !tbaa !9 %indvars.iv.next88.3 = add nuw nsw i64 %indvars.iv87, 4 %niter106.next.3 = add i64 %niter106, 4 %niter106.ncmp.3 = icmp eq i64 %niter106.next.3, %unroll_iter105 br i1 %niter106.ncmp.3, label %for.cond.cleanup36.loopexit.unr-lcssa, label %for.inc48, !llvm.loop !17 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare ptr @llvm.stacksave.p0() #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare void @llvm.stackrestore.p0(ptr) #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = !{!10, !10, i64 0} !10 = !{!"double", !7, i64 0} !11 = distinct !{!11, !12} !12 = !{!"llvm.loop.mustprogress"} !13 = distinct !{!13, !12} !14 = distinct !{!14, !12} !15 = distinct !{!15, !16} !16 = !{!"llvm.loop.unroll.disable"} !17 = distinct !{!17, !12, !18} !18 = !{!"llvm.loop.peeled.count", i32 1}
#include <stdio.h> int main(void){ int n,i,j,tmp; scanf("%d",&n ); float set=0.0; int v[n]; for(i=0;i<n;i++){ scanf("%d",&v[i] ); } for(i=0;i<n;i++){ for(j=0;j<n-1;j++){ if(v[j] > v[j+1]){ tmp = v[j]; v[j] = v[j+1]; v[j+1] = tmp; } } } set = v[0]; for(i=1;i<n;i++){ set += v[i]; set /= 2; } printf("%f\n",set ); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138135/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138135/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %1 = zext i32 %0 to i64 %2 = call ptr @llvm.stacksave.p0() %vla = alloca i32, i64 %1, align 16 %3 = load i32, ptr %n, align 4, !tbaa !5 %cmp60 = icmp sgt i32 %3, 0 br i1 %cmp60, label %for.body, label %for.end28.thread for.cond2.preheader: ; preds = %for.body %or.cond = icmp slt i32 %11, 2 br i1 %or.cond, label %for.end28.thread, label %for.cond5.preheader.us.preheader for.cond5.preheader.us.preheader: ; preds = %for.cond2.preheader %sub = add i32 %11, -1 %wide.trip.count = zext i32 %sub to i64 %xtraiter = and i64 %wide.trip.count, 1 %4 = icmp eq i32 %sub, 1 %unroll_iter = and i64 %wide.trip.count, 4294967294 %lcmp.mod.not = icmp eq i64 %xtraiter, 0 %invariant.gep = getelementptr i32, ptr %vla, i64 1 br label %for.cond5.preheader.us for.cond5.preheader.us: ; preds = %for.cond5.preheader.us.preheader, %for.cond5.for.inc26_crit_edge.us %i.165.us = phi i32 [ %inc27.us, %for.cond5.for.inc26_crit_edge.us ], [ 0, %for.cond5.preheader.us.preheader ] %.pre = load i32, ptr %vla, align 16, !tbaa !5 br i1 %4, label %for.cond5.for.inc26_crit_edge.us.unr-lcssa, label %for.body7.us for.body7.us: ; preds = %for.cond5.preheader.us, %for.inc23.us.1 %5 = phi i32 [ %9, %for.inc23.us.1 ], [ %.pre, %for.cond5.preheader.us ] %indvars.iv73 = phi i64 [ %indvars.iv.next74.1, %for.inc23.us.1 ], [ 0, %for.cond5.preheader.us ] %niter = phi i64 [ %niter.next.1, %for.inc23.us.1 ], [ 0, %for.cond5.preheader.us ] %indvars.iv.next74 = or i64 %indvars.iv73, 1 %arrayidx11.us = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv.next74 %6 = load i32, ptr %arrayidx11.us, align 4, !tbaa !5 %cmp12.us = icmp sgt i32 %5, %6 br i1 %cmp12.us, label %if.then.us, label %for.inc23.us if.then.us: ; preds = %for.body7.us %arrayidx9.us = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv73 store i32 %6, ptr %arrayidx9.us, align 8, !tbaa !5 store i32 %5, ptr %arrayidx11.us, align 4, !tbaa !5 br label %for.inc23.us for.inc23.us: ; preds = %if.then.us, %for.body7.us %7 = phi i32 [ %5, %if.then.us ], [ %6, %for.body7.us ] %indvars.iv.next74.1 = add nuw nsw i64 %indvars.iv73, 2 %arrayidx11.us.1 = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv.next74.1 %8 = load i32, ptr %arrayidx11.us.1, align 8, !tbaa !5 %cmp12.us.1 = icmp sgt i32 %7, %8 br i1 %cmp12.us.1, label %if.then.us.1, label %for.inc23.us.1 if.then.us.1: ; preds = %for.inc23.us %arrayidx9.us.1 = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv.next74 store i32 %8, ptr %arrayidx9.us.1, align 4, !tbaa !5 store i32 %7, ptr %arrayidx11.us.1, align 8, !tbaa !5 br label %for.inc23.us.1 for.inc23.us.1: ; preds = %if.then.us.1, %for.inc23.us %9 = phi i32 [ %7, %if.then.us.1 ], [ %8, %for.inc23.us ] %niter.next.1 = add i64 %niter, 2 %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter br i1 %niter.ncmp.1, label %for.cond5.for.inc26_crit_edge.us.unr-lcssa, label %for.body7.us, !llvm.loop !9 for.cond5.for.inc26_crit_edge.us.unr-lcssa: ; preds = %for.inc23.us.1, %for.cond5.preheader.us %.unr = phi i32 [ %.pre, %for.cond5.preheader.us ], [ %9, %for.inc23.us.1 ] %indvars.iv73.unr = phi i64 [ 0, %for.cond5.preheader.us ], [ %indvars.iv.next74.1, %for.inc23.us.1 ] br i1 %lcmp.mod.not, label %for.cond5.for.inc26_crit_edge.us, label %for.body7.us.epil for.body7.us.epil: ; preds = %for.cond5.for.inc26_crit_edge.us.unr-lcssa %gep = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv73.unr %10 = load i32, ptr %gep, align 4, !tbaa !5 %cmp12.us.epil = icmp sgt i32 %.unr, %10 br i1 %cmp12.us.epil, label %if.then.us.epil, label %for.cond5.for.inc26_crit_edge.us if.then.us.epil: ; preds = %for.body7.us.epil %arrayidx9.us.epil = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv73.unr store i32 %10, ptr %arrayidx9.us.epil, align 4, !tbaa !5 store i32 %.unr, ptr %gep, align 4, !tbaa !5 br label %for.cond5.for.inc26_crit_edge.us for.cond5.for.inc26_crit_edge.us: ; preds = %for.body7.us.epil, %if.then.us.epil, %for.cond5.for.inc26_crit_edge.us.unr-lcssa %inc27.us = add nuw nsw i32 %i.165.us, 1 %exitcond76.not = icmp eq i32 %inc27.us, %11 br i1 %exitcond76.not, label %for.end28, label %for.cond5.preheader.us, !llvm.loop !11 for.body: ; preds = %entry, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ] %arrayidx = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %11 = load i32, ptr %n, align 4, !tbaa !5 %12 = sext i32 %11 to i64 %cmp = icmp slt i64 %indvars.iv.next, %12 br i1 %cmp, label %for.body, label %for.cond2.preheader, !llvm.loop !12 for.end28.thread: ; preds = %for.cond2.preheader, %entry %13 = load i32, ptr %vla, align 16, !tbaa !5 %conv86 = sitofp i32 %13 to float br label %for.end40 for.end28: ; preds = %for.cond5.for.inc26_crit_edge.us %14 = load i32, ptr %vla, align 16, !tbaa !5 %conv = sitofp i32 %14 to float %cmp3166 = icmp sgt i32 %11, 1 br i1 %cmp3166, label %for.body33.preheader, label %for.end40 for.body33.preheader: ; preds = %for.end28 %wide.trip.count80 = zext i32 %11 to i64 %15 = add nsw i64 %wide.trip.count80, -1 %16 = add nsw i64 %wide.trip.count80, -2 %xtraiter88 = and i64 %15, 3 %17 = icmp ult i64 %16, 3 br i1 %17, label %for.end40.loopexit.unr-lcssa, label %for.body33.preheader.new for.body33.preheader.new: ; preds = %for.body33.preheader %unroll_iter91 = and i64 %15, -4 %invariant.gep94 = getelementptr i32, ptr %vla, i64 1 %invariant.gep96 = getelementptr i32, ptr %vla, i64 2 %invariant.gep98 = getelementptr i32, ptr %vla, i64 3 br label %for.body33 for.body33: ; preds = %for.body33, %for.body33.preheader.new %indvars.iv77 = phi i64 [ 1, %for.body33.preheader.new ], [ %indvars.iv.next78.3, %for.body33 ] %set.067 = phi float [ %conv, %for.body33.preheader.new ], [ %div.3, %for.body33 ] %niter92 = phi i64 [ 0, %for.body33.preheader.new ], [ %niter92.next.3, %for.body33 ] %arrayidx35 = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv77 %18 = load i32, ptr %arrayidx35, align 4, !tbaa !5 %conv36 = sitofp i32 %18 to float %add37 = fadd float %set.067, %conv36 %div = fmul float %add37, 5.000000e-01 %gep95 = getelementptr i32, ptr %invariant.gep94, i64 %indvars.iv77 %19 = load i32, ptr %gep95, align 4, !tbaa !5 %conv36.1 = sitofp i32 %19 to float %add37.1 = fadd float %div, %conv36.1 %div.1 = fmul float %add37.1, 5.000000e-01 %gep97 = getelementptr i32, ptr %invariant.gep96, i64 %indvars.iv77 %20 = load i32, ptr %gep97, align 4, !tbaa !5 %conv36.2 = sitofp i32 %20 to float %add37.2 = fadd float %div.1, %conv36.2 %div.2 = fmul float %add37.2, 5.000000e-01 %gep99 = getelementptr i32, ptr %invariant.gep98, i64 %indvars.iv77 %21 = load i32, ptr %gep99, align 4, !tbaa !5 %conv36.3 = sitofp i32 %21 to float %add37.3 = fadd float %div.2, %conv36.3 %div.3 = fmul float %add37.3, 5.000000e-01 %indvars.iv.next78.3 = add nuw nsw i64 %indvars.iv77, 4 %niter92.next.3 = add i64 %niter92, 4 %niter92.ncmp.3 = icmp eq i64 %niter92.next.3, %unroll_iter91 br i1 %niter92.ncmp.3, label %for.end40.loopexit.unr-lcssa, label %for.body33, !llvm.loop !13 for.end40.loopexit.unr-lcssa: ; preds = %for.body33, %for.body33.preheader %div.lcssa.ph = phi float [ undef, %for.body33.preheader ], [ %div.3, %for.body33 ] %indvars.iv77.unr = phi i64 [ 1, %for.body33.preheader ], [ %indvars.iv.next78.3, %for.body33 ] %set.067.unr = phi float [ %conv, %for.body33.preheader ], [ %div.3, %for.body33 ] %lcmp.mod89.not = icmp eq i64 %xtraiter88, 0 br i1 %lcmp.mod89.not, label %for.end40, label %for.body33.epil for.body33.epil: ; preds = %for.end40.loopexit.unr-lcssa, %for.body33.epil %indvars.iv77.epil = phi i64 [ %indvars.iv.next78.epil, %for.body33.epil ], [ %indvars.iv77.unr, %for.end40.loopexit.unr-lcssa ] %set.067.epil = phi float [ %div.epil, %for.body33.epil ], [ %set.067.unr, %for.end40.loopexit.unr-lcssa ] %epil.iter = phi i64 [ %epil.iter.next, %for.body33.epil ], [ 0, %for.end40.loopexit.unr-lcssa ] %arrayidx35.epil = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv77.epil %22 = load i32, ptr %arrayidx35.epil, align 4, !tbaa !5 %conv36.epil = sitofp i32 %22 to float %add37.epil = fadd float %set.067.epil, %conv36.epil %div.epil = fmul float %add37.epil, 5.000000e-01 %indvars.iv.next78.epil = add nuw nsw i64 %indvars.iv77.epil, 1 %epil.iter.next = add i64 %epil.iter, 1 %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter88 br i1 %epil.iter.cmp.not, label %for.end40, label %for.body33.epil, !llvm.loop !14 for.end40: ; preds = %for.end40.loopexit.unr-lcssa, %for.body33.epil, %for.end28.thread, %for.end28 %set.0.lcssa = phi float [ %conv, %for.end28 ], [ %conv86, %for.end28.thread ], [ %div.lcssa.ph, %for.end40.loopexit.unr-lcssa ], [ %div.epil, %for.body33.epil ] %conv41 = fpext float %set.0.lcssa to double %call42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %conv41) call void @llvm.stackrestore.p0(ptr %2) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare ptr @llvm.stacksave.p0() #3 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare void @llvm.stackrestore.p0(ptr) #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10} !12 = distinct !{!12, !10} !13 = distinct !{!13, !10} !14 = distinct !{!14, !15} !15 = !{!"llvm.loop.unroll.disable"}
#include <stdio.h> #include <stdlib.h> int asc(const void *a,const void *b){ return *(int *)a-*(int *)b; } int main(void){ int i; int n; scanf("%d",&n); int v[n]; for(i=0;i<n;i++){ scanf("%d",&v[i]); } qsort(v,n,sizeof(int),asc); double ans=v[0]; for(i=1;i<n;i++){ ans=(ans+v[i])/2; } printf("%lf\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138179/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138179/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [5 x i8] c"%lf\0A\00", align 1 ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable define dso_local i32 @asc(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) #0 { entry: %0 = load i32, ptr %a, align 4, !tbaa !5 %1 = load i32, ptr %b, align 4, !tbaa !5 %sub = sub nsw i32 %0, %1 ret i32 %sub } ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #1 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #6 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %1 = zext i32 %0 to i64 %2 = call ptr @llvm.stacksave.p0() %vla = alloca i32, i64 %1, align 16 %3 = load i32, ptr %n, align 4, !tbaa !5 %cmp21 = icmp sgt i32 %3, 0 br i1 %cmp21, label %for.body, label %entry.for.end_crit_edge entry.for.end_crit_edge: ; preds = %entry %.pre = sext i32 %3 to i64 br label %for.end for.body: ; preds = %entry, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ] %arrayidx = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %4 = load i32, ptr %n, align 4, !tbaa !5 %5 = sext i32 %4 to i64 %cmp = icmp slt i64 %indvars.iv.next, %5 br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9 for.end: ; preds = %for.body, %entry.for.end_crit_edge %conv.pre-phi = phi i64 [ %.pre, %entry.for.end_crit_edge ], [ %5, %for.body ] call void @qsort(ptr noundef nonnull %vla, i64 noundef %conv.pre-phi, i64 noundef 4, ptr noundef nonnull @asc) #6 %6 = load i32, ptr %vla, align 16, !tbaa !5 %conv3 = sitofp i32 %6 to double %7 = load i32, ptr %n, align 4, !tbaa !5 %cmp523 = icmp sgt i32 %7, 1 br i1 %cmp523, label %for.body7.preheader, label %for.end13 for.body7.preheader: ; preds = %for.end %wide.trip.count = zext i32 %7 to i64 %8 = add nsw i64 %wide.trip.count, -1 %9 = add nsw i64 %wide.trip.count, -2 %xtraiter = and i64 %8, 3 %10 = icmp ult i64 %9, 3 br i1 %10, label %for.end13.loopexit.unr-lcssa, label %for.body7.preheader.new for.body7.preheader.new: ; preds = %for.body7.preheader %unroll_iter = and i64 %8, -4 %invariant.gep = getelementptr i32, ptr %vla, i64 1 %invariant.gep33 = getelementptr i32, ptr %vla, i64 2 %invariant.gep35 = getelementptr i32, ptr %vla, i64 3 br label %for.body7 for.body7: ; preds = %for.body7, %for.body7.preheader.new %indvars.iv29 = phi i64 [ 1, %for.body7.preheader.new ], [ %indvars.iv.next30.3, %for.body7 ] %ans.025 = phi double [ %conv3, %for.body7.preheader.new ], [ %div.3, %for.body7 ] %niter = phi i64 [ 0, %for.body7.preheader.new ], [ %niter.next.3, %for.body7 ] %arrayidx9 = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv29 %11 = load i32, ptr %arrayidx9, align 4, !tbaa !5 %conv10 = sitofp i32 %11 to double %add = fadd double %ans.025, %conv10 %div = fmul double %add, 5.000000e-01 %gep = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv29 %12 = load i32, ptr %gep, align 4, !tbaa !5 %conv10.1 = sitofp i32 %12 to double %add.1 = fadd double %div, %conv10.1 %div.1 = fmul double %add.1, 5.000000e-01 %gep34 = getelementptr i32, ptr %invariant.gep33, i64 %indvars.iv29 %13 = load i32, ptr %gep34, align 4, !tbaa !5 %conv10.2 = sitofp i32 %13 to double %add.2 = fadd double %div.1, %conv10.2 %div.2 = fmul double %add.2, 5.000000e-01 %gep36 = getelementptr i32, ptr %invariant.gep35, i64 %indvars.iv29 %14 = load i32, ptr %gep36, align 4, !tbaa !5 %conv10.3 = sitofp i32 %14 to double %add.3 = fadd double %div.2, %conv10.3 %div.3 = fmul double %add.3, 5.000000e-01 %indvars.iv.next30.3 = add nuw nsw i64 %indvars.iv29, 4 %niter.next.3 = add i64 %niter, 4 %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter br i1 %niter.ncmp.3, label %for.end13.loopexit.unr-lcssa, label %for.body7, !llvm.loop !11 for.end13.loopexit.unr-lcssa: ; preds = %for.body7, %for.body7.preheader %div.lcssa.ph = phi double [ undef, %for.body7.preheader ], [ %div.3, %for.body7 ] %indvars.iv29.unr = phi i64 [ 1, %for.body7.preheader ], [ %indvars.iv.next30.3, %for.body7 ] %ans.025.unr = phi double [ %conv3, %for.body7.preheader ], [ %div.3, %for.body7 ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %for.end13, label %for.body7.epil for.body7.epil: ; preds = %for.end13.loopexit.unr-lcssa, %for.body7.epil %indvars.iv29.epil = phi i64 [ %indvars.iv.next30.epil, %for.body7.epil ], [ %indvars.iv29.unr, %for.end13.loopexit.unr-lcssa ] %ans.025.epil = phi double [ %div.epil, %for.body7.epil ], [ %ans.025.unr, %for.end13.loopexit.unr-lcssa ] %epil.iter = phi i64 [ %epil.iter.next, %for.body7.epil ], [ 0, %for.end13.loopexit.unr-lcssa ] %arrayidx9.epil = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv29.epil %15 = load i32, ptr %arrayidx9.epil, align 4, !tbaa !5 %conv10.epil = sitofp i32 %15 to double %add.epil = fadd double %ans.025.epil, %conv10.epil %div.epil = fmul double %add.epil, 5.000000e-01 %indvars.iv.next30.epil = add nuw nsw i64 %indvars.iv29.epil, 1 %epil.iter.next = add i64 %epil.iter, 1 %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter br i1 %epil.iter.cmp.not, label %for.end13, label %for.body7.epil, !llvm.loop !12 for.end13: ; preds = %for.end13.loopexit.unr-lcssa, %for.body7.epil, %for.end %ans.0.lcssa = phi double [ %conv3, %for.end ], [ %div.lcssa.ph, %for.end13.loopexit.unr-lcssa ], [ %div.epil, %for.body7.epil ] %call14 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %ans.0.lcssa) call void @llvm.stackrestore.p0(ptr %2) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #6 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare ptr @llvm.stacksave.p0() #4 ; Function Attrs: nofree declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #5 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare void @llvm.stackrestore.p0(ptr) #4 attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn } attributes #5 = { nofree "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #6 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10} !12 = distinct !{!12, !13} !13 = !{!"llvm.loop.unroll.disable"}
#include <stdio.h> #include <stdlib.h> int main(void){ int n,m; scanf("%d %d", &n, &m); long a[n]; long b[n]; for (int i = 0; i < n; i++) { scanf("%ld %ld", &a[i], &b[i]); } long c[m]; long d[m]; for (int i = 0; i < m; i++) { scanf("%ld %ld", &c[i], &d[i]); } long distance; long min; int point; for (int i = 0; i < n; i++) { min = -1; for (int j = 0; j < m; j++) { distance = labs(a[i]-c[j])+labs(b[i]-d[j]); if (min == -1 || distance < min) { min = distance; point = j+1; } } printf("%d\n", point); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138221/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138221/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 [6 x i8] c"%d %d\00", align 1 @.str.1 = private unnamed_addr constant [8 x i8] c"%ld %ld\00", align 1 @.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 %m = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #5 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #5 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %m) %0 = load i32, ptr %n, align 4, !tbaa !5 %1 = zext i32 %0 to i64 %2 = call ptr @llvm.stacksave.p0() %vla = alloca i64, i64 %1, align 16 %3 = load i32, ptr %n, align 4, !tbaa !5 %4 = zext i32 %3 to i64 %vla1 = alloca i64, i64 %4, align 16 %cmp63 = icmp sgt i32 %3, 0 br i1 %cmp63, label %for.body, label %for.cond.cleanup for.cond.cleanup: ; preds = %for.body, %entry %5 = phi i32 [ %3, %entry ], [ %8, %for.body ] %6 = load i32, ptr %m, align 4, !tbaa !5 %7 = zext i32 %6 to i64 %vla5 = alloca i64, i64 %7, align 16 %vla6 = alloca i64, i64 %7, align 16 %cmp965 = icmp sgt i32 %6, 0 br i1 %cmp965, label %for.body11, label %for.cond21.preheader for.body: ; preds = %entry, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ] %arrayidx = getelementptr inbounds i64, ptr %vla, i64 %indvars.iv %arrayidx3 = getelementptr inbounds i64, ptr %vla1, i64 %indvars.iv %call4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx, ptr noundef nonnull %arrayidx3) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %8 = load i32, ptr %n, align 4, !tbaa !5 %9 = sext i32 %8 to i64 %cmp = icmp slt i64 %indvars.iv.next, %9 br i1 %cmp, label %for.body, label %for.cond.cleanup, !llvm.loop !9 for.cond21.preheader.loopexit: ; preds = %for.body11 %.pre = load i32, ptr %n, align 4, !tbaa !5 br label %for.cond21.preheader for.cond21.preheader: ; preds = %for.cond21.preheader.loopexit, %for.cond.cleanup %10 = phi i32 [ %.pre, %for.cond21.preheader.loopexit ], [ %5, %for.cond.cleanup ] %cmp2271 = icmp sgt i32 %10, 0 br i1 %cmp2271, label %for.cond25.preheader, label %for.cond.cleanup23 for.body11: ; preds = %for.cond.cleanup, %for.body11 %indvars.iv75 = phi i64 [ %indvars.iv.next76, %for.body11 ], [ 0, %for.cond.cleanup ] %arrayidx13 = getelementptr inbounds i64, ptr %vla5, i64 %indvars.iv75 %arrayidx15 = getelementptr inbounds i64, ptr %vla6, i64 %indvars.iv75 %call16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx13, ptr noundef nonnull %arrayidx15) %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1 %11 = load i32, ptr %m, align 4, !tbaa !5 %12 = sext i32 %11 to i64 %cmp9 = icmp slt i64 %indvars.iv.next76, %12 br i1 %cmp9, label %for.body11, label %for.cond21.preheader.loopexit, !llvm.loop !11 for.cond25.preheader: ; preds = %for.cond21.preheader, %for.cond.cleanup27 %indvars.iv81 = phi i64 [ %indvars.iv.next82, %for.cond.cleanup27 ], [ 0, %for.cond21.preheader ] %point.072 = phi i32 [ %point.1.lcssa, %for.cond.cleanup27 ], [ undef, %for.cond21.preheader ] %13 = load i32, ptr %m, align 4, !tbaa !5 %cmp2667 = icmp sgt i32 %13, 0 br i1 %cmp2667, label %for.body28.lr.ph, label %for.cond.cleanup27 for.body28.lr.ph: ; preds = %for.cond25.preheader %arrayidx30 = getelementptr inbounds i64, ptr %vla, i64 %indvars.iv81 %14 = load i64, ptr %arrayidx30, align 8, !tbaa !12 %arrayidx34 = getelementptr inbounds i64, ptr %vla1, i64 %indvars.iv81 %15 = load i64, ptr %arrayidx34, align 8, !tbaa !12 %wide.trip.count = zext i32 %13 to i64 br label %for.body28 for.cond.cleanup23: ; preds = %for.cond.cleanup27, %for.cond21.preheader call void @llvm.stackrestore.p0(ptr %2) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %m) #5 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #5 ret i32 0 for.cond.cleanup27: ; preds = %for.body28, %for.cond25.preheader %point.1.lcssa = phi i32 [ %point.072, %for.cond25.preheader ], [ %point.2, %for.body28 ] %call44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %point.1.lcssa) %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1 %16 = load i32, ptr %n, align 4, !tbaa !5 %17 = sext i32 %16 to i64 %cmp22 = icmp slt i64 %indvars.iv.next82, %17 br i1 %cmp22, label %for.cond25.preheader, label %for.cond.cleanup23, !llvm.loop !14 for.body28: ; preds = %for.body28.lr.ph, %for.body28 %indvars.iv78 = phi i64 [ 0, %for.body28.lr.ph ], [ %indvars.iv.next79, %for.body28 ] %point.169 = phi i32 [ %point.072, %for.body28.lr.ph ], [ %point.2, %for.body28 ] %min.068 = phi i64 [ -1, %for.body28.lr.ph ], [ %min.1, %for.body28 ] %arrayidx32 = getelementptr inbounds i64, ptr %vla5, i64 %indvars.iv78 %18 = load i64, ptr %arrayidx32, align 8, !tbaa !12 %sub = sub nsw i64 %14, %18 %19 = call i64 @llvm.abs.i64(i64 %sub, i1 true) %arrayidx36 = getelementptr inbounds i64, ptr %vla6, i64 %indvars.iv78 %20 = load i64, ptr %arrayidx36, align 8, !tbaa !12 %sub37 = sub nsw i64 %15, %20 %21 = call i64 @llvm.abs.i64(i64 %sub37, i1 true) %add = add nuw nsw i64 %21, %19 %cmp38 = icmp eq i64 %min.068, -1 %cmp39 = icmp slt i64 %add, %min.068 %or.cond = select i1 %cmp38, i1 true, i1 %cmp39 %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1 %min.1 = select i1 %or.cond, i64 %add, i64 %min.068 %22 = trunc i64 %indvars.iv.next79 to i32 %point.2 = select i1 %or.cond, i32 %22, i32 %point.169 %exitcond.not = icmp eq i64 %indvars.iv.next79, %wide.trip.count br i1 %exitcond.not, label %for.cond.cleanup27, label %for.body28, !llvm.loop !15 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare ptr @llvm.stacksave.p0() #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i64 @llvm.abs.i64(i64, i1 immarg) #4 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare void @llvm.stackrestore.p0(ptr) #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn } attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #5 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10} !12 = !{!13, !13, i64 0} !13 = !{!"long", !7, i64 0} !14 = distinct !{!14, !10} !15 = distinct !{!15, !10}
#include <stdio.h> #include <stdlib.h> struct point { int x, y; }; int dist(struct point a, struct point b); int main() { int n, m; struct point stu[50]; struct point cp[50]; scanf("%d %d", &n, &m); for (int i = 0; i < n; i++) { scanf("%d %d", &stu[i].x, &stu[i].y); } for (int i = 0; i < m; i++ ) { scanf("%d %d", &cp[i].x, &cp[i].y); } for (int i = 0; i < n; i++) { int min_pos = 0; for (int j = 1; j < m; j++) { if (dist(stu[i], cp[min_pos]) > dist(stu[i], cp[j])) { min_pos = j; } } printf("%d\n", min_pos + 1); } } int dist(struct point a, struct point b) { return abs(a.x - b.x) + abs(a.y - b.y); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138272/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138272/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" %struct.point = type { i32, i32 } @.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 %m = alloca i32, align 4 %stu = alloca [50 x %struct.point], align 16 %cp = alloca [50 x %struct.point], align 16 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #5 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #5 call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %stu) #5 call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %cp) #5 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %m) %0 = load i32, ptr %n, align 4, !tbaa !5 %cmp68 = icmp sgt i32 %0, 0 br i1 %cmp68, label %for.body, label %for.cond5.preheader for.cond5.preheader: ; preds = %for.body, %entry %1 = phi i32 [ %0, %entry ], [ %3, %for.body ] %2 = load i32, ptr %m, align 4, !tbaa !5 %cmp670 = icmp sgt i32 %2, 0 br i1 %cmp670, label %for.body8, label %for.cond20.preheader for.body: ; preds = %entry, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ] %arrayidx = getelementptr inbounds [50 x %struct.point], ptr %stu, i64 0, i64 %indvars.iv %y = getelementptr inbounds [50 x %struct.point], ptr %stu, i64 0, i64 %indvars.iv, i32 1 %call3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx, ptr noundef nonnull %y) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %3 = load i32, ptr %n, align 4, !tbaa !5 %4 = sext i32 %3 to i64 %cmp = icmp slt i64 %indvars.iv.next, %4 br i1 %cmp, label %for.body, label %for.cond5.preheader, !llvm.loop !9 for.cond20.preheader.loopexit: ; preds = %for.body8 %.pre = load i32, ptr %n, align 4, !tbaa !5 br label %for.cond20.preheader for.cond20.preheader: ; preds = %for.cond20.preheader.loopexit, %for.cond5.preheader %5 = phi i32 [ %.pre, %for.cond20.preheader.loopexit ], [ %1, %for.cond5.preheader ] %cmp2175 = icmp sgt i32 %5, 0 br i1 %cmp2175, label %for.cond24.preheader, label %for.cond.cleanup22 for.body8: ; preds = %for.cond5.preheader, %for.body8 %indvars.iv78 = phi i64 [ %indvars.iv.next79, %for.body8 ], [ 0, %for.cond5.preheader ] %arrayidx10 = getelementptr inbounds [50 x %struct.point], ptr %cp, i64 0, i64 %indvars.iv78 %y14 = getelementptr inbounds [50 x %struct.point], ptr %cp, i64 0, i64 %indvars.iv78, i32 1 %call15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx10, ptr noundef nonnull %y14) %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1 %6 = load i32, ptr %m, align 4, !tbaa !5 %7 = sext i32 %6 to i64 %cmp6 = icmp slt i64 %indvars.iv.next79, %7 br i1 %cmp6, label %for.body8, label %for.cond20.preheader.loopexit, !llvm.loop !11 for.cond24.preheader: ; preds = %for.cond20.preheader, %for.cond.cleanup26 %indvars.iv84 = phi i64 [ %indvars.iv.next85, %for.cond.cleanup26 ], [ 0, %for.cond20.preheader ] %8 = load i32, ptr %m, align 4, !tbaa !5 %cmp2572 = icmp sgt i32 %8, 1 br i1 %cmp2572, label %for.body27.lr.ph, label %for.cond.cleanup26 for.body27.lr.ph: ; preds = %for.cond24.preheader %arrayidx29 = getelementptr inbounds [50 x %struct.point], ptr %stu, i64 0, i64 %indvars.iv84 %9 = load i64, ptr %arrayidx29, align 8 %a.sroa.0.0.extract.trunc.i = trunc i64 %9 to i32 %a.sroa.2.0.extract.shift.i = lshr i64 %9, 32 %a.sroa.2.0.extract.trunc.i = trunc i64 %a.sroa.2.0.extract.shift.i to i32 %wide.trip.count = zext i32 %8 to i64 br label %for.body27 for.cond.cleanup22: ; preds = %for.cond.cleanup26, %for.cond20.preheader call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %cp) #5 call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %stu) #5 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %m) #5 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #5 ret i32 0 for.cond.cleanup26: ; preds = %for.body27, %for.cond24.preheader %min_pos.0.lcssa = phi i32 [ 0, %for.cond24.preheader ], [ %spec.select, %for.body27 ] %add = add nsw i32 %min_pos.0.lcssa, 1 %call42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %add) %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1 %10 = load i32, ptr %n, align 4, !tbaa !5 %11 = sext i32 %10 to i64 %cmp21 = icmp slt i64 %indvars.iv.next85, %11 br i1 %cmp21, label %for.cond24.preheader, label %for.cond.cleanup22, !llvm.loop !12 for.body27: ; preds = %for.body27.lr.ph, %for.body27 %indvars.iv81 = phi i64 [ 1, %for.body27.lr.ph ], [ %indvars.iv.next82, %for.body27 ] %min_pos.073 = phi i32 [ 0, %for.body27.lr.ph ], [ %spec.select, %for.body27 ] %idxprom30 = sext i32 %min_pos.073 to i64 %arrayidx31 = getelementptr inbounds [50 x %struct.point], ptr %cp, i64 0, i64 %idxprom30 %12 = load i64, ptr %arrayidx31, align 8 %b.sroa.0.0.extract.trunc.i = trunc i64 %12 to i32 %b.sroa.2.0.extract.shift.i = lshr i64 %12, 32 %b.sroa.2.0.extract.trunc.i = trunc i64 %b.sroa.2.0.extract.shift.i to i32 %sub.i = sub nsw i32 %a.sroa.0.0.extract.trunc.i, %b.sroa.0.0.extract.trunc.i %13 = call i32 @llvm.abs.i32(i32 %sub.i, i1 true) %sub3.i = sub nsw i32 %a.sroa.2.0.extract.trunc.i, %b.sroa.2.0.extract.trunc.i %14 = call i32 @llvm.abs.i32(i32 %sub3.i, i1 true) %add.i = add nuw nsw i32 %14, %13 %arrayidx36 = getelementptr inbounds [50 x %struct.point], ptr %cp, i64 0, i64 %indvars.iv81 %15 = load i64, ptr %arrayidx36, align 8 %b.sroa.0.0.extract.trunc.i62 = trunc i64 %15 to i32 %b.sroa.2.0.extract.shift.i63 = lshr i64 %15, 32 %b.sroa.2.0.extract.trunc.i64 = trunc i64 %b.sroa.2.0.extract.shift.i63 to i32 %sub.i65 = sub nsw i32 %a.sroa.0.0.extract.trunc.i, %b.sroa.0.0.extract.trunc.i62 %16 = call i32 @llvm.abs.i32(i32 %sub.i65, i1 true) %sub3.i66 = sub nsw i32 %a.sroa.2.0.extract.trunc.i, %b.sroa.2.0.extract.trunc.i64 %17 = call i32 @llvm.abs.i32(i32 %sub3.i66, i1 true) %add.i67 = add nuw nsw i32 %17, %16 %cmp38 = icmp ugt i32 %add.i, %add.i67 %18 = trunc i64 %indvars.iv81 to i32 %spec.select = select i1 %cmp38, i32 %18, i32 %min_pos.073 %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1 %exitcond.not = icmp eq i64 %indvars.iv.next82, %wide.trip.count br i1 %exitcond.not, label %for.cond.cleanup26, label %for.body27, !llvm.loop !13 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable define dso_local i32 @dist(i64 %a.coerce, i64 %b.coerce) local_unnamed_addr #3 { entry: %a.sroa.0.0.extract.trunc = trunc i64 %a.coerce to i32 %a.sroa.2.0.extract.shift = lshr i64 %a.coerce, 32 %a.sroa.2.0.extract.trunc = trunc i64 %a.sroa.2.0.extract.shift to i32 %b.sroa.0.0.extract.trunc = trunc i64 %b.coerce to i32 %b.sroa.2.0.extract.shift = lshr i64 %b.coerce, 32 %b.sroa.2.0.extract.trunc = trunc i64 %b.sroa.2.0.extract.shift to i32 %sub = sub nsw i32 %a.sroa.0.0.extract.trunc, %b.sroa.0.0.extract.trunc %0 = tail call i32 @llvm.abs.i32(i32 %sub, i1 true) %sub3 = sub nsw i32 %a.sroa.2.0.extract.trunc, %b.sroa.2.0.extract.trunc %1 = tail call i32 @llvm.abs.i32(i32 %sub3, i1 true) %add = add nuw nsw i32 %1, %0 ret i32 %add } ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.abs.i32(i32, i1 immarg) #4 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nofree nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #5 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10} !12 = distinct !{!12, !10} !13 = distinct !{!13, !10}
#include <stdio.h> #include <stdlib.h> #define inf 1000000000 typedef struct{ long x,y; }point; int min(long a,long b){ if(a<b)return a; else return b; } int main(void){ //生徒とチェックポイント point s[50]; point c[50]; int n,m,i,j; long t,ans,minimum; //nは生徒数,mはポイント数 scanf("%d %d",&n,&m); for(i=0;i<n;i++){ scanf("%ld %ld",&s[i].x,&s[i].y); } for(j=0;j<m;j++){ scanf("%ld %ld",&c[j].x,&c[j].y); } for(i=0;i<n;i++){ minimum=inf; for(j=0;j<m;j++){ t=labs(s[i].x-c[j].x)+labs(s[i].y-c[j].y); if(minimum>t){ ans=j; minimum=t; } } printf("%ld\n",ans+1); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138315/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138315/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" %struct.point = type { i64, i64 } @.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1 @.str.1 = private unnamed_addr constant [8 x i8] c"%ld %ld\00", align 1 @.str.2 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1 ; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable define dso_local i32 @min(i64 noundef %a, i64 noundef %b) local_unnamed_addr #0 { entry: %a.b = tail call i64 @llvm.smin.i64(i64 %a, i64 %b) %retval.0 = trunc i64 %a.b to i32 ret i32 %retval.0 } ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #1 { entry: %s = alloca [50 x %struct.point], align 16 %c = alloca [50 x %struct.point], align 16 %n = alloca i32, align 4 %m = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %s) #6 call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %c) #6 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #6 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #6 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %m) %0 = load i32, ptr %n, align 4, !tbaa !5 %cmp62 = icmp sgt i32 %0, 0 br i1 %cmp62, label %for.body, label %for.cond4.preheader for.cond4.preheader: ; preds = %for.body, %entry %1 = phi i32 [ %0, %entry ], [ %3, %for.body ] %2 = load i32, ptr %m, align 4, !tbaa !5 %cmp564 = icmp sgt i32 %2, 0 br i1 %cmp564, label %for.body6, label %for.cond17.preheader for.body: ; preds = %entry, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ] %arrayidx = getelementptr inbounds [50 x %struct.point], ptr %s, i64 0, i64 %indvars.iv %y = getelementptr inbounds [50 x %struct.point], ptr %s, i64 0, i64 %indvars.iv, i32 1 %call3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx, ptr noundef nonnull %y) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %3 = load i32, ptr %n, align 4, !tbaa !5 %4 = sext i32 %3 to i64 %cmp = icmp slt i64 %indvars.iv.next, %4 br i1 %cmp, label %for.body, label %for.cond4.preheader, !llvm.loop !9 for.cond17.preheader.loopexit: ; preds = %for.body6 %.pre = load i32, ptr %n, align 4, !tbaa !5 br label %for.cond17.preheader for.cond17.preheader: ; preds = %for.cond17.preheader.loopexit, %for.cond4.preheader %5 = phi i32 [ %.pre, %for.cond17.preheader.loopexit ], [ %1, %for.cond4.preheader ] %cmp1870 = icmp sgt i32 %5, 0 br i1 %cmp1870, label %for.cond20.preheader, label %for.end44 for.body6: ; preds = %for.cond4.preheader, %for.body6 %indvars.iv74 = phi i64 [ %indvars.iv.next75, %for.body6 ], [ 0, %for.cond4.preheader ] %arrayidx8 = getelementptr inbounds [50 x %struct.point], ptr %c, i64 0, i64 %indvars.iv74 %y12 = getelementptr inbounds [50 x %struct.point], ptr %c, i64 0, i64 %indvars.iv74, i32 1 %call13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx8, ptr noundef nonnull %y12) %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1 %6 = load i32, ptr %m, align 4, !tbaa !5 %7 = sext i32 %6 to i64 %cmp5 = icmp slt i64 %indvars.iv.next75, %7 br i1 %cmp5, label %for.body6, label %for.cond17.preheader.loopexit, !llvm.loop !11 for.cond20.preheader: ; preds = %for.cond17.preheader, %for.end39 %indvars.iv80 = phi i64 [ %indvars.iv.next81, %for.end39 ], [ 0, %for.cond17.preheader ] %ans.072 = phi i64 [ %ans.1.lcssa, %for.end39 ], [ undef, %for.cond17.preheader ] %8 = load i32, ptr %m, align 4, !tbaa !5 %cmp2166 = icmp sgt i32 %8, 0 br i1 %cmp2166, label %for.body22.lr.ph, label %for.end39 for.body22.lr.ph: ; preds = %for.cond20.preheader %arrayidx24 = getelementptr inbounds [50 x %struct.point], ptr %s, i64 0, i64 %indvars.iv80 %9 = load i64, ptr %arrayidx24, align 16, !tbaa !12 %y31 = getelementptr inbounds [50 x %struct.point], ptr %s, i64 0, i64 %indvars.iv80, i32 1 %10 = load i64, ptr %y31, align 8, !tbaa !15 %wide.trip.count = zext i32 %8 to i64 br label %for.body22 for.body22: ; preds = %for.body22.lr.ph, %for.body22 %indvars.iv77 = phi i64 [ 0, %for.body22.lr.ph ], [ %indvars.iv.next78, %for.body22 ] %minimum.069 = phi i64 [ 1000000000, %for.body22.lr.ph ], [ %spec.select61, %for.body22 ] %ans.168 = phi i64 [ %ans.072, %for.body22.lr.ph ], [ %spec.select, %for.body22 ] %arrayidx27 = getelementptr inbounds [50 x %struct.point], ptr %c, i64 0, i64 %indvars.iv77 %11 = load i64, ptr %arrayidx27, align 16, !tbaa !12 %sub = sub nsw i64 %9, %11 %12 = call i64 @llvm.abs.i64(i64 %sub, i1 true) %y34 = getelementptr inbounds [50 x %struct.point], ptr %c, i64 0, i64 %indvars.iv77, i32 1 %13 = load i64, ptr %y34, align 8, !tbaa !15 %sub35 = sub nsw i64 %10, %13 %14 = call i64 @llvm.abs.i64(i64 %sub35, i1 true) %add = add nuw nsw i64 %14, %12 %cmp36 = icmp sgt i64 %minimum.069, %add %spec.select = select i1 %cmp36, i64 %indvars.iv77, i64 %ans.168 %spec.select61 = call i64 @llvm.smin.i64(i64 %minimum.069, i64 %add) %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1 %exitcond.not = icmp eq i64 %indvars.iv.next78, %wide.trip.count br i1 %exitcond.not, label %for.end39, label %for.body22, !llvm.loop !16 for.end39: ; preds = %for.body22, %for.cond20.preheader %ans.1.lcssa = phi i64 [ %ans.072, %for.cond20.preheader ], [ %spec.select, %for.body22 ] %add40 = add nsw i64 %ans.1.lcssa, 1 %call41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %add40) %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1 %15 = load i32, ptr %n, align 4, !tbaa !5 %16 = sext i32 %15 to i64 %cmp18 = icmp slt i64 %indvars.iv.next81, %16 br i1 %cmp18, label %for.cond20.preheader, label %for.end44, !llvm.loop !17 for.end44: ; preds = %for.end39, %for.cond17.preheader call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %m) #6 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #6 call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %c) #6 call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %s) #6 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i64 @llvm.abs.i64(i64, i1 immarg) #4 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i64 @llvm.smin.i64(i64, i64) #5 attributes #0 = { mustprogress nofree nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #6 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10} !12 = !{!13, !14, i64 0} !13 = !{!"", !14, i64 0, !14, i64 8} !14 = !{!"long", !7, i64 0} !15 = !{!13, !14, i64 8} !16 = distinct !{!16, !10} !17 = distinct !{!17, !10}
#include <stdio.h> #include <stdlib.h> int mmath(long long a,long long b,long long c,long long d){ return llabs(a - c) + llabs(b - d); } int ssearch(long long s[],int m) { long long min = s[0]; int ss = 0; int i = 0; while(i < m){ if(min > s[i]){ min = s[i]; ss = i; } i++; } return ss + 1; } /*long long lsearch(long long s[],int m) { long long min = s[0]; int ss = 0; int i = 0; while(i < m){ if(min > s[i]){ min = s[i]; ss = i; } i++; } return min; }*/ int main(void) { int i,j; int n,m; long long a[60] = {0}, b[60] = {0}, c[60] = {0}, d[60] = {0}; long long man[60][60] = {0}; scanf("%d %d",&n,&m); for(i=0;i<n;i++){ scanf("%lld %lld",&a[i],&b[i]); } for(i=0;i<m;i++){ scanf("%lld %lld",&c[i],&d[i]); } for(i=0;i<n;i++){ for(j=0;j<m;j++){ man[i][j] = mmath(a[i],b[i],c[j],d[j]); } } for(i=0;i<n;i++){ printf("%d\n",ssearch(man[i],m)); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138359/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138359/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 [6 x i8] c"%d %d\00", align 1 @.str.1 = private unnamed_addr constant [10 x i8] c"%lld %lld\00", align 1 @.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 ; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable define dso_local i32 @mmath(i64 noundef %a, i64 noundef %b, i64 noundef %c, i64 noundef %d) local_unnamed_addr #0 { entry: %sub = sub nsw i64 %a, %c %0 = tail call i64 @llvm.abs.i64(i64 %sub, i1 true) %sub1 = sub nsw i64 %b, %d %1 = tail call i64 @llvm.abs.i64(i64 %sub1, i1 true) %add = add nuw nsw i64 %1, %0 %conv = trunc i64 %add to i32 ret i32 %conv } ; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i64 @llvm.abs.i64(i64, i1 immarg) #1 ; Function Attrs: nofree nosync nounwind memory(argmem: read) uwtable define dso_local i32 @ssearch(ptr nocapture noundef readonly %s, i32 noundef %m) local_unnamed_addr #2 { entry: %cmp12 = icmp sgt i32 %m, 0 br i1 %cmp12, label %while.body.preheader, label %while.end while.body.preheader: ; preds = %entry %0 = load i64, ptr %s, align 8, !tbaa !5 %wide.trip.count = zext i32 %m to i64 %xtraiter = and i64 %wide.trip.count, 3 %1 = icmp ult i32 %m, 4 br i1 %1, label %while.end.loopexit.unr-lcssa, label %while.body.preheader.new while.body.preheader.new: ; preds = %while.body.preheader %unroll_iter = and i64 %wide.trip.count, 4294967292 br label %while.body while.body: ; preds = %while.body, %while.body.preheader.new %indvars.iv = phi i64 [ 0, %while.body.preheader.new ], [ %indvars.iv.next.3, %while.body ] %ss.014 = phi i32 [ 0, %while.body.preheader.new ], [ %spec.select11.3, %while.body ] %min.013 = phi i64 [ %0, %while.body.preheader.new ], [ %spec.select.3, %while.body ] %niter = phi i64 [ 0, %while.body.preheader.new ], [ %niter.next.3, %while.body ] %arrayidx1 = getelementptr inbounds i64, ptr %s, i64 %indvars.iv %2 = load i64, ptr %arrayidx1, align 8, !tbaa !5 %cmp2 = icmp sgt i64 %min.013, %2 %spec.select = tail call i64 @llvm.smin.i64(i64 %min.013, i64 %2) %3 = trunc i64 %indvars.iv to i32 %spec.select11 = select i1 %cmp2, i32 %3, i32 %ss.014 %indvars.iv.next = or i64 %indvars.iv, 1 %arrayidx1.1 = getelementptr inbounds i64, ptr %s, i64 %indvars.iv.next %4 = load i64, ptr %arrayidx1.1, align 8, !tbaa !5 %cmp2.1 = icmp sgt i64 %spec.select, %4 %spec.select.1 = tail call i64 @llvm.smin.i64(i64 %spec.select, i64 %4) %5 = trunc i64 %indvars.iv.next to i32 %spec.select11.1 = select i1 %cmp2.1, i32 %5, i32 %spec.select11 %indvars.iv.next.1 = or i64 %indvars.iv, 2 %arrayidx1.2 = getelementptr inbounds i64, ptr %s, i64 %indvars.iv.next.1 %6 = load i64, ptr %arrayidx1.2, align 8, !tbaa !5 %cmp2.2 = icmp sgt i64 %spec.select.1, %6 %spec.select.2 = tail call i64 @llvm.smin.i64(i64 %spec.select.1, i64 %6) %7 = trunc i64 %indvars.iv.next.1 to i32 %spec.select11.2 = select i1 %cmp2.2, i32 %7, i32 %spec.select11.1 %indvars.iv.next.2 = or i64 %indvars.iv, 3 %arrayidx1.3 = getelementptr inbounds i64, ptr %s, i64 %indvars.iv.next.2 %8 = load i64, ptr %arrayidx1.3, align 8, !tbaa !5 %cmp2.3 = icmp sgt i64 %spec.select.2, %8 %spec.select.3 = tail call i64 @llvm.smin.i64(i64 %spec.select.2, i64 %8) %9 = trunc i64 %indvars.iv.next.2 to i32 %spec.select11.3 = select i1 %cmp2.3, i32 %9, i32 %spec.select11.2 %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4 %niter.next.3 = add i64 %niter, 4 %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter br i1 %niter.ncmp.3, label %while.end.loopexit.unr-lcssa, label %while.body, !llvm.loop !9 while.end.loopexit.unr-lcssa: ; preds = %while.body, %while.body.preheader %spec.select11.lcssa.ph = phi i32 [ undef, %while.body.preheader ], [ %spec.select11.3, %while.body ] %indvars.iv.unr = phi i64 [ 0, %while.body.preheader ], [ %indvars.iv.next.3, %while.body ] %ss.014.unr = phi i32 [ 0, %while.body.preheader ], [ %spec.select11.3, %while.body ] %min.013.unr = phi i64 [ %0, %while.body.preheader ], [ %spec.select.3, %while.body ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %while.end.loopexit, label %while.body.epil while.body.epil: ; preds = %while.end.loopexit.unr-lcssa, %while.body.epil %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %while.body.epil ], [ %indvars.iv.unr, %while.end.loopexit.unr-lcssa ] %ss.014.epil = phi i32 [ %spec.select11.epil, %while.body.epil ], [ %ss.014.unr, %while.end.loopexit.unr-lcssa ] %min.013.epil = phi i64 [ %spec.select.epil, %while.body.epil ], [ %min.013.unr, %while.end.loopexit.unr-lcssa ] %epil.iter = phi i64 [ %epil.iter.next, %while.body.epil ], [ 0, %while.end.loopexit.unr-lcssa ] %arrayidx1.epil = getelementptr inbounds i64, ptr %s, i64 %indvars.iv.epil %10 = load i64, ptr %arrayidx1.epil, align 8, !tbaa !5 %cmp2.epil = icmp sgt i64 %min.013.epil, %10 %spec.select.epil = tail call i64 @llvm.smin.i64(i64 %min.013.epil, i64 %10) %11 = trunc i64 %indvars.iv.epil to i32 %spec.select11.epil = select i1 %cmp2.epil, i32 %11, i32 %ss.014.epil %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1 %epil.iter.next = add i64 %epil.iter, 1 %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter br i1 %epil.iter.cmp.not, label %while.end.loopexit, label %while.body.epil, !llvm.loop !11 while.end.loopexit: ; preds = %while.body.epil, %while.end.loopexit.unr-lcssa %spec.select11.lcssa = phi i32 [ %spec.select11.lcssa.ph, %while.end.loopexit.unr-lcssa ], [ %spec.select11.epil, %while.body.epil ] %12 = add nsw i32 %spec.select11.lcssa, 1 br label %while.end while.end: ; preds = %while.end.loopexit, %entry %ss.0.lcssa = phi i32 [ 1, %entry ], [ %12, %while.end.loopexit ] ret i32 %ss.0.lcssa } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #4 { entry: %n = alloca i32, align 4 %m = alloca i32, align 4 %a = alloca [60 x i64], align 16 %b = alloca [60 x i64], align 16 %c = alloca [60 x i64], align 16 %d = alloca [60 x i64], align 16 %man = alloca [60 x [60 x i64]], align 16 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #8 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #8 call void @llvm.lifetime.start.p0(i64 480, ptr nonnull %a) #8 call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(480) %a, i8 0, i64 480, i1 false) call void @llvm.lifetime.start.p0(i64 480, ptr nonnull %b) #8 call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(480) %b, i8 0, i64 480, i1 false) call void @llvm.lifetime.start.p0(i64 480, ptr nonnull %c) #8 call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(480) %c, i8 0, i64 480, i1 false) call void @llvm.lifetime.start.p0(i64 480, ptr nonnull %d) #8 call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(480) %d, i8 0, i64 480, i1 false) call void @llvm.lifetime.start.p0(i64 28800, ptr nonnull %man) #8 call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(28800) %man, i8 0, i64 28800, i1 false) %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %m) %0 = load i32, ptr %n, align 4, !tbaa !13 %cmp70 = icmp sgt i32 %0, 0 br i1 %cmp70, label %for.body, label %for.cond4.preheader for.cond4.preheader: ; preds = %for.body, %entry %1 = phi i32 [ %0, %entry ], [ %3, %for.body ] %2 = load i32, ptr %m, align 4, !tbaa !13 %cmp572 = icmp sgt i32 %2, 0 br i1 %cmp572, label %for.body6, label %for.cond15.preheader for.body: ; preds = %entry, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ] %arrayidx = getelementptr inbounds [60 x i64], ptr %a, i64 0, i64 %indvars.iv %arrayidx2 = getelementptr inbounds [60 x i64], ptr %b, i64 0, i64 %indvars.iv %call3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx, ptr noundef nonnull %arrayidx2) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %3 = load i32, ptr %n, align 4, !tbaa !13 %4 = sext i32 %3 to i64 %cmp = icmp slt i64 %indvars.iv.next, %4 br i1 %cmp, label %for.body, label %for.cond4.preheader, !llvm.loop !15 for.cond15.preheader.loopexit: ; preds = %for.body6 %.pre = load i32, ptr %n, align 4, !tbaa !13 br label %for.cond15.preheader for.cond15.preheader: ; preds = %for.cond15.preheader.loopexit, %for.cond4.preheader %5 = phi i32 [ %1, %for.cond4.preheader ], [ %.pre, %for.cond15.preheader.loopexit ] %.lcssa = phi i32 [ %2, %for.cond4.preheader ], [ %33, %for.cond15.preheader.loopexit ] %cmp1676 = icmp sgt i32 %5, 0 br i1 %cmp1676, label %for.cond18.preheader.lr.ph, label %for.end50 for.cond18.preheader.lr.ph: ; preds = %for.cond15.preheader %cmp1974 = icmp sgt i32 %.lcssa, 0 br i1 %cmp1974, label %for.cond18.preheader.us.preheader, label %for.body43.preheader for.cond18.preheader.us.preheader: ; preds = %for.cond18.preheader.lr.ph %wide.trip.count92 = zext i32 %5 to i64 %wide.trip.count = zext i32 %.lcssa to i64 %min.iters.check = icmp ult i32 %.lcssa, 4 %n.vec = and i64 %wide.trip.count, 4294967292 %cmp.n = icmp eq i64 %n.vec, %wide.trip.count br label %for.cond18.preheader.us for.cond18.preheader.us: ; preds = %for.cond18.preheader.us.preheader, %for.cond18.for.inc37_crit_edge.us %indvars.iv89 = phi i64 [ 0, %for.cond18.preheader.us.preheader ], [ %indvars.iv.next90, %for.cond18.for.inc37_crit_edge.us ] %arrayidx22.us = getelementptr inbounds [60 x i64], ptr %a, i64 0, i64 %indvars.iv89 %6 = load i64, ptr %arrayidx22.us, align 8, !tbaa !5 %arrayidx24.us = getelementptr inbounds [60 x i64], ptr %b, i64 0, i64 %indvars.iv89 %7 = load i64, ptr %arrayidx24.us, align 8, !tbaa !5 br i1 %min.iters.check, label %for.body20.us.preheader, label %vector.ph vector.ph: ; preds = %for.cond18.preheader.us %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %6, i64 0 %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer %broadcast.splatinsert105 = insertelement <2 x i64> poison, i64 %7, i64 0 %broadcast.splat106 = shufflevector <2 x i64> %broadcast.splatinsert105, <2 x i64> poison, <2 x i32> zeroinitializer br label %vector.body vector.body: ; preds = %vector.body, %vector.ph %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] %8 = getelementptr inbounds [60 x i64], ptr %c, i64 0, i64 %index %wide.load = load <2 x i64>, ptr %8, align 16, !tbaa !5 %9 = getelementptr inbounds i64, ptr %8, i64 2 %wide.load102 = load <2 x i64>, ptr %9, align 16, !tbaa !5 %10 = getelementptr inbounds [60 x i64], ptr %d, i64 0, i64 %index %wide.load103 = load <2 x i64>, ptr %10, align 16, !tbaa !5 %11 = getelementptr inbounds i64, ptr %10, i64 2 %wide.load104 = load <2 x i64>, ptr %11, align 16, !tbaa !5 %12 = sub nsw <2 x i64> %broadcast.splat, %wide.load %13 = sub nsw <2 x i64> %broadcast.splat, %wide.load102 %14 = call <2 x i64> @llvm.abs.v2i64(<2 x i64> %12, i1 true) %15 = call <2 x i64> @llvm.abs.v2i64(<2 x i64> %13, i1 true) %16 = sub nsw <2 x i64> %broadcast.splat106, %wide.load103 %17 = sub nsw <2 x i64> %broadcast.splat106, %wide.load104 %18 = call <2 x i64> @llvm.abs.v2i64(<2 x i64> %16, i1 true) %19 = call <2 x i64> @llvm.abs.v2i64(<2 x i64> %17, i1 true) %20 = add nuw nsw <2 x i64> %18, %14 %21 = add nuw nsw <2 x i64> %19, %15 %22 = shl <2 x i64> %20, <i64 32, i64 32> %23 = shl <2 x i64> %21, <i64 32, i64 32> %24 = ashr exact <2 x i64> %22, <i64 32, i64 32> %25 = ashr exact <2 x i64> %23, <i64 32, i64 32> %26 = getelementptr inbounds [60 x [60 x i64]], ptr %man, i64 0, i64 %indvars.iv89, i64 %index store <2 x i64> %24, ptr %26, align 16, !tbaa !5 %27 = getelementptr inbounds i64, ptr %26, i64 2 store <2 x i64> %25, ptr %27, align 16, !tbaa !5 %index.next = add nuw i64 %index, 4 %28 = icmp eq i64 %index.next, %n.vec br i1 %28, label %middle.block, label %vector.body, !llvm.loop !16 middle.block: ; preds = %vector.body br i1 %cmp.n, label %for.cond18.for.inc37_crit_edge.us, label %for.body20.us.preheader for.body20.us.preheader: ; preds = %for.cond18.preheader.us, %middle.block %indvars.iv86.ph = phi i64 [ 0, %for.cond18.preheader.us ], [ %n.vec, %middle.block ] br label %for.body20.us for.body20.us: ; preds = %for.body20.us.preheader, %for.body20.us %indvars.iv86 = phi i64 [ %indvars.iv.next87, %for.body20.us ], [ %indvars.iv86.ph, %for.body20.us.preheader ] %arrayidx26.us = getelementptr inbounds [60 x i64], ptr %c, i64 0, i64 %indvars.iv86 %29 = load i64, ptr %arrayidx26.us, align 8, !tbaa !5 %arrayidx28.us = getelementptr inbounds [60 x i64], ptr %d, i64 0, i64 %indvars.iv86 %30 = load i64, ptr %arrayidx28.us, align 8, !tbaa !5 %sub.i.us = sub nsw i64 %6, %29 %31 = call i64 @llvm.abs.i64(i64 %sub.i.us, i1 true) %sub1.i.us = sub nsw i64 %7, %30 %32 = call i64 @llvm.abs.i64(i64 %sub1.i.us, i1 true) %add.i.us = add nuw nsw i64 %32, %31 %sext.us = shl i64 %add.i.us, 32 %conv.us = ashr exact i64 %sext.us, 32 %arrayidx33.us = getelementptr inbounds [60 x [60 x i64]], ptr %man, i64 0, i64 %indvars.iv89, i64 %indvars.iv86 store i64 %conv.us, ptr %arrayidx33.us, align 8, !tbaa !5 %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1 %exitcond.not = icmp eq i64 %indvars.iv.next87, %wide.trip.count br i1 %exitcond.not, label %for.cond18.for.inc37_crit_edge.us, label %for.body20.us, !llvm.loop !19 for.cond18.for.inc37_crit_edge.us: ; preds = %for.body20.us, %middle.block %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1 %exitcond93.not = icmp eq i64 %indvars.iv.next90, %wide.trip.count92 br i1 %exitcond93.not, label %for.cond40.preheader, label %for.cond18.preheader.us, !llvm.loop !20 for.body6: ; preds = %for.cond4.preheader, %for.body6 %indvars.iv83 = phi i64 [ %indvars.iv.next84, %for.body6 ], [ 0, %for.cond4.preheader ] %arrayidx8 = getelementptr inbounds [60 x i64], ptr %c, i64 0, i64 %indvars.iv83 %arrayidx10 = getelementptr inbounds [60 x i64], ptr %d, i64 0, i64 %indvars.iv83 %call11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx8, ptr noundef nonnull %arrayidx10) %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1 %33 = load i32, ptr %m, align 4, !tbaa !13 %34 = sext i32 %33 to i64 %cmp5 = icmp slt i64 %indvars.iv.next84, %34 br i1 %cmp5, label %for.body6, label %for.cond15.preheader.loopexit, !llvm.loop !21 for.cond40.preheader: ; preds = %for.cond18.for.inc37_crit_edge.us br i1 %cmp1676, label %for.body43.preheader, label %for.end50 for.body43.preheader: ; preds = %for.cond18.preheader.lr.ph, %for.cond40.preheader br label %for.body43 for.body43: ; preds = %for.body43.preheader, %ssearch.exit %indvars.iv94 = phi i64 [ %indvars.iv.next95, %ssearch.exit ], [ 0, %for.body43.preheader ] %arrayidx45 = getelementptr inbounds [60 x [60 x i64]], ptr %man, i64 0, i64 %indvars.iv94 %35 = load i32, ptr %m, align 4, !tbaa !13 %cmp12.i = icmp sgt i32 %35, 0 br i1 %cmp12.i, label %while.body.preheader.i, label %ssearch.exit while.body.preheader.i: ; preds = %for.body43 %36 = load i64, ptr %arrayidx45, align 16, !tbaa !5 %wide.trip.count.i = zext i32 %35 to i64 %xtraiter = and i64 %wide.trip.count.i, 3 %37 = icmp ult i32 %35, 4 br i1 %37, label %while.end.loopexit.i.unr-lcssa, label %while.body.preheader.i.new while.body.preheader.i.new: ; preds = %while.body.preheader.i %unroll_iter = and i64 %wide.trip.count.i, 4294967292 br label %while.body.i while.body.i: ; preds = %while.body.i, %while.body.preheader.i.new %indvars.iv.i = phi i64 [ 0, %while.body.preheader.i.new ], [ %indvars.iv.next.i.3, %while.body.i ] %ss.014.i = phi i32 [ 0, %while.body.preheader.i.new ], [ %spec.select11.i.3, %while.body.i ] %min.013.i = phi i64 [ %36, %while.body.preheader.i.new ], [ %spec.select.i.3, %while.body.i ] %niter = phi i64 [ 0, %while.body.preheader.i.new ], [ %niter.next.3, %while.body.i ] %arrayidx1.i = getelementptr inbounds i64, ptr %arrayidx45, i64 %indvars.iv.i %38 = load i64, ptr %arrayidx1.i, align 16, !tbaa !5 %cmp2.i = icmp sgt i64 %min.013.i, %38 %spec.select.i = call i64 @llvm.smin.i64(i64 %min.013.i, i64 %38) %39 = trunc i64 %indvars.iv.i to i32 %spec.select11.i = select i1 %cmp2.i, i32 %39, i32 %ss.014.i %indvars.iv.next.i = or i64 %indvars.iv.i, 1 %arrayidx1.i.1 = getelementptr inbounds i64, ptr %arrayidx45, i64 %indvars.iv.next.i %40 = load i64, ptr %arrayidx1.i.1, align 8, !tbaa !5 %cmp2.i.1 = icmp sgt i64 %spec.select.i, %40 %spec.select.i.1 = call i64 @llvm.smin.i64(i64 %spec.select.i, i64 %40) %41 = trunc i64 %indvars.iv.next.i to i32 %spec.select11.i.1 = select i1 %cmp2.i.1, i32 %41, i32 %spec.select11.i %indvars.iv.next.i.1 = or i64 %indvars.iv.i, 2 %arrayidx1.i.2 = getelementptr inbounds i64, ptr %arrayidx45, i64 %indvars.iv.next.i.1 %42 = load i64, ptr %arrayidx1.i.2, align 16, !tbaa !5 %cmp2.i.2 = icmp sgt i64 %spec.select.i.1, %42 %spec.select.i.2 = call i64 @llvm.smin.i64(i64 %spec.select.i.1, i64 %42) %43 = trunc i64 %indvars.iv.next.i.1 to i32 %spec.select11.i.2 = select i1 %cmp2.i.2, i32 %43, i32 %spec.select11.i.1 %indvars.iv.next.i.2 = or i64 %indvars.iv.i, 3 %arrayidx1.i.3 = getelementptr inbounds i64, ptr %arrayidx45, i64 %indvars.iv.next.i.2 %44 = load i64, ptr %arrayidx1.i.3, align 8, !tbaa !5 %cmp2.i.3 = icmp sgt i64 %spec.select.i.2, %44 %spec.select.i.3 = call i64 @llvm.smin.i64(i64 %spec.select.i.2, i64 %44) %45 = trunc i64 %indvars.iv.next.i.2 to i32 %spec.select11.i.3 = select i1 %cmp2.i.3, i32 %45, i32 %spec.select11.i.2 %indvars.iv.next.i.3 = add nuw nsw i64 %indvars.iv.i, 4 %niter.next.3 = add i64 %niter, 4 %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter br i1 %niter.ncmp.3, label %while.end.loopexit.i.unr-lcssa, label %while.body.i, !llvm.loop !9 while.end.loopexit.i.unr-lcssa: ; preds = %while.body.i, %while.body.preheader.i %spec.select11.i.lcssa.ph = phi i32 [ undef, %while.body.preheader.i ], [ %spec.select11.i.3, %while.body.i ] %indvars.iv.i.unr = phi i64 [ 0, %while.body.preheader.i ], [ %indvars.iv.next.i.3, %while.body.i ] %ss.014.i.unr = phi i32 [ 0, %while.body.preheader.i ], [ %spec.select11.i.3, %while.body.i ] %min.013.i.unr = phi i64 [ %36, %while.body.preheader.i ], [ %spec.select.i.3, %while.body.i ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %while.end.loopexit.i, label %while.body.i.epil while.body.i.epil: ; preds = %while.end.loopexit.i.unr-lcssa, %while.body.i.epil %indvars.iv.i.epil = phi i64 [ %indvars.iv.next.i.epil, %while.body.i.epil ], [ %indvars.iv.i.unr, %while.end.loopexit.i.unr-lcssa ] %ss.014.i.epil = phi i32 [ %spec.select11.i.epil, %while.body.i.epil ], [ %ss.014.i.unr, %while.end.loopexit.i.unr-lcssa ] %min.013.i.epil = phi i64 [ %spec.select.i.epil, %while.body.i.epil ], [ %min.013.i.unr, %while.end.loopexit.i.unr-lcssa ] %epil.iter = phi i64 [ %epil.iter.next, %while.body.i.epil ], [ 0, %while.end.loopexit.i.unr-lcssa ] %arrayidx1.i.epil = getelementptr inbounds i64, ptr %arrayidx45, i64 %indvars.iv.i.epil %46 = load i64, ptr %arrayidx1.i.epil, align 8, !tbaa !5 %cmp2.i.epil = icmp sgt i64 %min.013.i.epil, %46 %spec.select.i.epil = call i64 @llvm.smin.i64(i64 %min.013.i.epil, i64 %46) %47 = trunc i64 %indvars.iv.i.epil to i32 %spec.select11.i.epil = select i1 %cmp2.i.epil, i32 %47, i32 %ss.014.i.epil %indvars.iv.next.i.epil = add nuw nsw i64 %indvars.iv.i.epil, 1 %epil.iter.next = add i64 %epil.iter, 1 %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter br i1 %epil.iter.cmp.not, label %while.end.loopexit.i, label %while.body.i.epil, !llvm.loop !22 while.end.loopexit.i: ; preds = %while.body.i.epil, %while.end.loopexit.i.unr-lcssa %spec.select11.i.lcssa = phi i32 [ %spec.select11.i.lcssa.ph, %while.end.loopexit.i.unr-lcssa ], [ %spec.select11.i.epil, %while.body.i.epil ] %48 = add nsw i32 %spec.select11.i.lcssa, 1 br label %ssearch.exit ssearch.exit: ; preds = %for.body43, %while.end.loopexit.i %ss.0.lcssa.i = phi i32 [ 1, %for.body43 ], [ %48, %while.end.loopexit.i ] %call47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %ss.0.lcssa.i) %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1 %49 = load i32, ptr %n, align 4, !tbaa !13 %50 = sext i32 %49 to i64 %cmp41 = icmp slt i64 %indvars.iv.next95, %50 br i1 %cmp41, label %for.body43, label %for.end50, !llvm.loop !23 for.end50: ; preds = %ssearch.exit, %for.cond15.preheader, %for.cond40.preheader call void @llvm.lifetime.end.p0(i64 28800, ptr nonnull %man) #8 call void @llvm.lifetime.end.p0(i64 480, ptr nonnull %d) #8 call void @llvm.lifetime.end.p0(i64 480, ptr nonnull %c) #8 call void @llvm.lifetime.end.p0(i64 480, ptr nonnull %b) #8 call void @llvm.lifetime.end.p0(i64 480, ptr nonnull %a) #8 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %m) #8 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #8 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write) declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #6 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #6 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i64 @llvm.smin.i64(i64, i64) #7 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare <2 x i64> @llvm.abs.v2i64(<2 x i64>, i1 immarg) #7 attributes #0 = { mustprogress nofree nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #2 = { nofree nosync nounwind memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #4 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) } attributes #6 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #8 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"long long", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !12} !12 = !{!"llvm.loop.unroll.disable"} !13 = !{!14, !14, i64 0} !14 = !{!"int", !7, i64 0} !15 = distinct !{!15, !10} !16 = distinct !{!16, !10, !17, !18} !17 = !{!"llvm.loop.isvectorized", i32 1} !18 = !{!"llvm.loop.unroll.runtime.disable"} !19 = distinct !{!19, !10, !18, !17} !20 = distinct !{!20, !10} !21 = distinct !{!21, !10} !22 = distinct !{!22, !12} !23 = distinct !{!23, !10}
#include <stdio.h> int main() { int a, b, c, d; scanf("%d %d %d %d", &a, &b, &c, &d); while (a > 0 && c > 0) { c = c - b; if (c > 0) a = a - d; } if (c <= 0) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138401/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138401/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 [12 x i8] c"%d %d %d %d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %a = alloca i32, align 4 %b = alloca i32, align 4 %c = alloca i32, align 4 %d = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %d) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c, ptr noundef nonnull %d) %a.promoted = load i32, ptr %a, align 4, !tbaa !5 %c.promoted = load i32, ptr %c, align 4 %cmp13 = icmp sgt i32 %a.promoted, 0 %cmp114 = icmp sgt i32 %c.promoted, 0 %0 = select i1 %cmp13, i1 %cmp114, i1 false br i1 %0, label %while.body.lr.ph, label %while.end while.body.lr.ph: ; preds = %entry %1 = load i32, ptr %b, align 4, !tbaa !5 %2 = load i32, ptr %d, align 4 br label %while.body while.body: ; preds = %while.body.lr.ph, %if.end %sub31116 = phi i32 [ %a.promoted, %while.body.lr.ph ], [ %sub3, %if.end ] %sub1215 = phi i32 [ %c.promoted, %while.body.lr.ph ], [ %sub, %if.end ] %sub = sub nsw i32 %sub1215, %1 %cmp2 = icmp sgt i32 %sub, 0 br i1 %cmp2, label %if.end, label %while.cond.while.end_crit_edge if.end: ; preds = %while.body %sub3 = sub nsw i32 %sub31116, %2 store i32 %sub3, ptr %a, align 4, !tbaa !5 %cmp = icmp sgt i32 %sub3, 0 %3 = and i1 %cmp, %cmp2 br i1 %3, label %while.body, label %while.cond.while.end_crit_edge, !llvm.loop !9 while.cond.while.end_crit_edge: ; preds = %while.body, %if.end store i32 %sub, ptr %c, align 4, !tbaa !5 br label %while.end while.end: ; preds = %while.cond.while.end_crit_edge, %entry %.lcssa = phi i32 [ %sub, %while.cond.while.end_crit_edge ], [ %c.promoted, %entry ] %cmp4 = icmp slt i32 %.lcssa, 1 %str.3.str = select i1 %cmp4, ptr @str.3, ptr @str %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.3.str) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %d) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"}
#include<stdio.h> int main(void) { int a, b, c, d; scanf("%d %d %d %d", &a, &b, &c, &d); while (1) { c = c - b; if (c <= 0) { printf("Yes"); return 0; } a = a - d; if (a <= 0) { printf("No"); return 0; } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138445/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138445/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 [12 x i8] c"%d %d %d %d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %a = alloca i32, align 4 %b = alloca i32, align 4 %c = alloca i32, align 4 %d = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %d) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c, ptr noundef nonnull %d) %0 = load i32, ptr %b, align 4, !tbaa !5 %c.promoted = load i32, ptr %c, align 4, !tbaa !5 %a.promoted = load i32, ptr %a, align 4, !tbaa !5 %1 = load i32, ptr %d, align 4 br label %while.cond while.cond: ; preds = %if.end, %entry %sub212 = phi i32 [ %sub2, %if.end ], [ %a.promoted, %entry ] %sub10 = phi i32 [ %sub, %if.end ], [ %c.promoted, %entry ] %sub = sub nsw i32 %sub10, %0 %cmp = icmp slt i32 %sub, 1 br i1 %cmp, label %cleanup, label %if.end if.end: ; preds = %while.cond %sub2 = sub nsw i32 %sub212, %1 store i32 %sub2, ptr %a, align 4, !tbaa !5 %cmp3 = icmp slt i32 %sub2, 1 br i1 %cmp3, label %cleanup, label %while.cond cleanup: ; preds = %if.end, %while.cond %.str.2.sink = phi ptr [ @.str.1, %while.cond ], [ @.str.2, %if.end ] store i32 %sub, ptr %c, align 4, !tbaa !5 %call5 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %d) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(void) { int A; int B; int C; int D; scanf("%d%d%d%d", &A, &B, &C, &D); while (1) { C = C - B; if (C <= 0) { printf("Yes\n"); return 0; } A = A - D; if (A <= 0) { printf("No\n"); return 0; } } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138489/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138489/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 [9 x i8] c"%d%d%d%d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %A = alloca i32, align 4 %B = alloca i32, align 4 %C = alloca i32, align 4 %D = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %A) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %B) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %C) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %D) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %A, ptr noundef nonnull %B, ptr noundef nonnull %C, ptr noundef nonnull %D) %0 = load i32, ptr %B, align 4, !tbaa !5 %C.promoted = load i32, ptr %C, align 4, !tbaa !5 %A.promoted = load i32, ptr %A, align 4, !tbaa !5 %1 = load i32, ptr %D, align 4 br label %while.cond while.cond: ; preds = %if.end, %entry %sub213 = phi i32 [ %sub2, %if.end ], [ %A.promoted, %entry ] %sub11 = phi i32 [ %sub, %if.end ], [ %C.promoted, %entry ] %sub = sub nsw i32 %sub11, %0 %cmp = icmp slt i32 %sub, 1 br i1 %cmp, label %cleanup, label %if.end if.end: ; preds = %while.cond %sub2 = sub nsw i32 %sub213, %1 store i32 %sub2, ptr %A, align 4, !tbaa !5 %cmp3 = icmp slt i32 %sub2, 1 br i1 %cmp3, label %cleanup, label %while.cond cleanup: ; preds = %if.end, %while.cond %str.sink = phi ptr [ @str.3, %while.cond ], [ @str, %if.end ] store i32 %sub, ptr %C, align 4, !tbaa !5 %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %D) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %C) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %B) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %A) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(void){ int a, b, c, d; scanf("%d%d%d%d", &a, &b, &c, &d); while(1){ c -= b; if(c <= 0){ printf("Yes\n"); break; } a -= d; if(a <= 0){ printf("No\n"); break; } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138539/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138539/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 [9 x i8] c"%d%d%d%d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %a = alloca i32, align 4 %b = alloca i32, align 4 %c = alloca i32, align 4 %d = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %d) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c, ptr noundef nonnull %d) %0 = load i32, ptr %b, align 4, !tbaa !5 %c.promoted = load i32, ptr %c, align 4, !tbaa !5 %a.promoted = load i32, ptr %a, align 4, !tbaa !5 %1 = load i32, ptr %d, align 4 br label %while.cond while.cond: ; preds = %if.end, %entry %sub210 = phi i32 [ %sub2, %if.end ], [ %a.promoted, %entry ] %sub8 = phi i32 [ %sub, %if.end ], [ %c.promoted, %entry ] %sub = sub nsw i32 %sub8, %0 %cmp = icmp slt i32 %sub, 1 br i1 %cmp, label %while.end, label %if.end if.end: ; preds = %while.cond %sub2 = sub nsw i32 %sub210, %1 store i32 %sub2, ptr %a, align 4, !tbaa !5 %cmp3 = icmp slt i32 %sub2, 1 br i1 %cmp3, label %while.end, label %while.cond while.end: ; preds = %if.end, %while.cond %str.sink = phi ptr [ @str.3, %while.cond ], [ @str, %if.end ] store i32 %sub, ptr %c, align 4, !tbaa !5 %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %d) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(void){ int th, ta, ah, aa; scanf("%d %d %d %d", &th, &ta, &ah, &aa); int turnt, turna; turnt = th / aa; if(th % aa != 0){ turnt++; } turna = ah / ta; if(ah % ta != 0){ turna++; } if(turna > turnt){ printf("No\n"); }else{ printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138582/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138582/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 [12 x i8] c"%d %d %d %d\00", align 1 @str = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @str.3 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %th = alloca i32, align 4 %ta = alloca i32, align 4 %ah = alloca i32, align 4 %aa = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %th) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %ta) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %ah) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %aa) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %th, ptr noundef nonnull %ta, ptr noundef nonnull %ah, ptr noundef nonnull %aa) %0 = load i32, ptr %th, align 4, !tbaa !5 %1 = load i32, ptr %aa, align 4, !tbaa !5 %div = sdiv i32 %0, %1 %rem = srem i32 %0, %1 %cmp.not = icmp ne i32 %rem, 0 %inc = zext i1 %cmp.not to i32 %spec.select = add nsw i32 %div, %inc %2 = load i32, ptr %ah, align 4, !tbaa !5 %3 = load i32, ptr %ta, align 4, !tbaa !5 %div1 = sdiv i32 %2, %3 %rem2 = srem i32 %2, %3 %cmp3.not = icmp ne i32 %rem2, 0 %inc5 = zext i1 %cmp3.not to i32 %turna.0 = add nsw i32 %div1, %inc5 %cmp7 = icmp sgt i32 %turna.0, %spec.select %str.3.str = select i1 %cmp7, ptr @str.3, ptr @str %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.3.str) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %aa) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %ah) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %ta) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %th) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> int main(void){ int th,ta,ah,aa; scanf("%d %d %d %d",&th,&ta,&ah,&aa); int p= th/aa>=ah/ta ? th/aa : ah/ta; int th2=th-aa*p; int ah2=ah-ta*p; if((th2>0 && ah2>0 && ah2-ta<=0) || (ah2<=0)){ printf("Yes"); }else{ printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138632/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138632/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 [12 x i8] c"%d %d %d %d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %th = alloca i32, align 4 %ta = alloca i32, align 4 %ah = alloca i32, align 4 %aa = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %th) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %ta) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %ah) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %aa) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %th, ptr noundef nonnull %ta, ptr noundef nonnull %ah, ptr noundef nonnull %aa) %0 = load i32, ptr %th, align 4, !tbaa !5 %1 = load i32, ptr %aa, align 4, !tbaa !5 %div = sdiv i32 %0, %1 %2 = load i32, ptr %ah, align 4, !tbaa !5 %3 = load i32, ptr %ta, align 4, !tbaa !5 %div1 = sdiv i32 %2, %3 %div1.div = call i32 @llvm.smax.i32(i32 %div, i32 %div1) %mul = mul nsw i32 %div1.div, %1 %mul4 = mul nsw i32 %div1.div, %3 %sub5 = sub nsw i32 %2, %mul4 %cmp6 = icmp sgt i32 %0, %mul %cmp7 = icmp sgt i32 %sub5, 0 %or.cond = select i1 %cmp6, i1 %cmp7, i1 false br i1 %or.cond, label %land.lhs.true8, label %lor.lhs.false land.lhs.true8: ; preds = %entry %cmp10.not = icmp sgt i32 %sub5, %3 br i1 %cmp10.not, label %if.else, label %if.end lor.lhs.false: ; preds = %entry %cmp11.old = icmp slt i32 %sub5, 1 br i1 %cmp11.old, label %if.end, label %if.else if.else: ; preds = %land.lhs.true8, %lor.lhs.false br label %if.end if.end: ; preds = %land.lhs.true8, %lor.lhs.false, %if.else %.str.2.sink = phi ptr [ @.str.2, %if.else ], [ @.str.1, %lor.lhs.false ], [ @.str.1, %land.lhs.true8 ] %call13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %aa) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %ah) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %ta) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %th) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.smax.i32(i32, i32) #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> void main(){ int a,b,c,d; int i; scanf("%d %d %d %d",&a,&b,&c,&d); while(a>0 || c>0) { c-=b; if(c<=0){i=0; break;} a-=d; if(a<=0){i=1; break;} } if(i==0)printf("Yes\n"); if(i==1)printf("No\n"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138676/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138676/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 [12 x i8] c"%d %d %d %d\00", align 1 @str = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @str.3 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local void @main() local_unnamed_addr #0 { entry: %a = alloca i32, align 4 %b = alloca i32, align 4 %c = alloca i32, align 4 %d = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %d) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c, ptr noundef nonnull %d) %a.promoted = load i32, ptr %a, align 4, !tbaa !5 %c.promoted = load i32, ptr %c, align 4 %0 = load i32, ptr %b, align 4 %1 = load i32, ptr %d, align 4 br label %while.cond while.cond: ; preds = %if.end, %entry %sub23 = phi i32 [ %sub, %if.end ], [ %c.promoted, %entry ] %sub322 = phi i32 [ %sub3, %if.end ], [ %a.promoted, %entry ] %cmp = icmp sgt i32 %sub322, 0 %cmp1 = icmp sgt i32 %sub23, 0 %2 = select i1 %cmp, i1 true, i1 %cmp1 br i1 %2, label %while.body, label %if.end14 while.body: ; preds = %while.cond %sub = sub nsw i32 %sub23, %0 store i32 %sub, ptr %c, align 4, !tbaa !5 %cmp2 = icmp slt i32 %sub, 1 br i1 %cmp2, label %if.end14.sink.split, label %if.end if.end: ; preds = %while.body %sub3 = sub nsw i32 %sub322, %1 store i32 %sub3, ptr %a, align 4, !tbaa !5 %cmp4 = icmp slt i32 %sub3, 1 br i1 %cmp4, label %if.end14.sink.split, label %while.cond, !llvm.loop !9 if.end14.sink.split: ; preds = %if.end, %while.body %str.sink = phi ptr [ @str, %while.body ], [ @str.3, %if.end ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) br label %if.end14 if.end14: ; preds = %while.cond, %if.end14.sink.split call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %d) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4 ret void } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"}
#include<stdio.h> int sum(int x, int y){ if(x%y==0){ return x/y; } else{ return x/y+1; } } int main(void){ int a, b, c, d; scanf("%d%d%d%d",&a,&b,&c,&d); if(sum(c,b)<=sum(a,d)){ printf("Yes"); } else{ printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138719/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138719/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 [9 x i8] c"%d%d%d%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable define dso_local i32 @sum(i32 noundef %x, i32 noundef %y) local_unnamed_addr #0 { entry: %rem = srem i32 %x, %y %cmp = icmp ne i32 %rem, 0 %div = sdiv i32 %x, %y %add = zext i1 %cmp to i32 %retval.0 = add nsw i32 %div, %add ret i32 %retval.0 } ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #1 { entry: %a = alloca i32, align 4 %b = alloca i32, align 4 %c = alloca i32, align 4 %d = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %d) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c, ptr noundef nonnull %d) %0 = load i32, ptr %c, align 4, !tbaa !5 %1 = load i32, ptr %b, align 4, !tbaa !5 %rem.i = srem i32 %0, %1 %cmp.i = icmp ne i32 %rem.i, 0 %div.i = sdiv i32 %0, %1 %add.i = zext i1 %cmp.i to i32 %retval.0.i = add nsw i32 %div.i, %add.i %2 = load i32, ptr %a, align 4, !tbaa !5 %3 = load i32, ptr %d, align 4, !tbaa !5 %rem.i5 = srem i32 %2, %3 %cmp.i6 = icmp ne i32 %rem.i5, 0 %div.i7 = sdiv i32 %2, %3 %add.i8 = zext i1 %cmp.i6 to i32 %retval.0.i9 = add nsw i32 %div.i7, %add.i8 %cmp.not = icmp sgt i32 %retval.0.i, %retval.0.i9 %.str.2..str.1 = select i1 %cmp.not, ptr @.str.2, ptr @.str.1 %call4 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2..str.1) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %d) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> int main(void){ int A, B, C, D, cntt, cnta; scanf("%d %d %d %d", &A, &B, &C, &D); for(cntt = 0; A > 0 ;){ A = A - D; cntt++; } for(cnta = 0; C > 0 ;){ C = C - B; cnta++; } if(cntt >= cnta) printf("Yes"); else printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138762/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138762/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 [12 x i8] c"%d %d %d %d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %A = alloca i32, align 4 %B = alloca i32, align 4 %C = alloca i32, align 4 %D = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %A) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %B) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %C) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %D) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %A, ptr noundef nonnull %B, ptr noundef nonnull %C, ptr noundef nonnull %D) %.pr = load i32, ptr %A, align 4, !tbaa !5 %cmp14 = icmp sgt i32 %.pr, 0 br i1 %cmp14, label %for.body.lr.ph, label %for.cond1thread-pre-split for.body.lr.ph: ; preds = %entry %0 = load i32, ptr %D, align 4, !tbaa !5 br label %for.body for.body: ; preds = %for.body.lr.ph, %for.body %cntt.015 = phi i32 [ 0, %for.body.lr.ph ], [ %inc, %for.body ] %1 = phi i32 [ %.pr, %for.body.lr.ph ], [ %sub, %for.body ] %sub = sub nsw i32 %1, %0 %inc = add nuw nsw i32 %cntt.015, 1 %cmp = icmp sgt i32 %sub, 0 br i1 %cmp, label %for.body, label %for.cond.for.cond1thread-pre-split_crit_edge, !llvm.loop !9 for.cond.for.cond1thread-pre-split_crit_edge: ; preds = %for.body store i32 %sub, ptr %A, align 4, !tbaa !5 br label %for.cond1thread-pre-split for.cond1thread-pre-split: ; preds = %for.cond.for.cond1thread-pre-split_crit_edge, %entry %cntt.0.lcssa = phi i32 [ %inc, %for.cond.for.cond1thread-pre-split_crit_edge ], [ 0, %entry ] %.pr13 = load i32, ptr %C, align 4, !tbaa !5 %cmp216 = icmp sgt i32 %.pr13, 0 br i1 %cmp216, label %for.body3.lr.ph, label %for.end6 for.body3.lr.ph: ; preds = %for.cond1thread-pre-split %2 = load i32, ptr %B, align 4, !tbaa !5 br label %for.body3 for.body3: ; preds = %for.body3.lr.ph, %for.body3 %cnta.017 = phi i32 [ 0, %for.body3.lr.ph ], [ %inc5, %for.body3 ] %3 = phi i32 [ %.pr13, %for.body3.lr.ph ], [ %sub4, %for.body3 ] %sub4 = sub nsw i32 %3, %2 %inc5 = add nuw nsw i32 %cnta.017, 1 %cmp2 = icmp sgt i32 %sub4, 0 br i1 %cmp2, label %for.body3, label %for.cond1.for.end6_crit_edge, !llvm.loop !11 for.cond1.for.end6_crit_edge: ; preds = %for.body3 store i32 %sub4, ptr %C, align 4, !tbaa !5 br label %for.end6 for.end6: ; preds = %for.cond1.for.end6_crit_edge, %for.cond1thread-pre-split %cnta.0.lcssa = phi i32 [ %inc5, %for.cond1.for.end6_crit_edge ], [ 0, %for.cond1thread-pre-split ] %cmp7.not = icmp ult i32 %cntt.0.lcssa, %cnta.0.lcssa %.str.2..str.1 = select i1 %cmp7.not, ptr @.str.2, ptr @.str.1 %call9 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2..str.1) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %D) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %C) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %B) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %A) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10}
#include<stdio.h> #include<math.h> int main() { int a,b,c,d,i; scanf("%d %d %d %d",&a,&b,&c,&d); for(;;) { c=c-b; if(c<=0) { i=0; break; } a=a-d; if(a<=0) { i=1; break; } } if(i==0) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138805/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138805/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 [12 x i8] c"%d %d %d %d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %a = alloca i32, align 4 %b = alloca i32, align 4 %c = alloca i32, align 4 %d = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %d) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c, ptr noundef nonnull %d) %0 = load i32, ptr %b, align 4, !tbaa !5 %c.promoted = load i32, ptr %c, align 4, !tbaa !5 %a.promoted = load i32, ptr %a, align 4, !tbaa !5 %1 = load i32, ptr %d, align 4 br label %for.cond for.cond: ; preds = %if.end, %entry %sub113 = phi i32 [ %sub1, %if.end ], [ %a.promoted, %entry ] %sub11 = phi i32 [ %sub, %if.end ], [ %c.promoted, %entry ] %sub = sub nsw i32 %sub11, %0 %cmp = icmp slt i32 %sub, 1 br i1 %cmp, label %if.end9, label %if.end if.end: ; preds = %for.cond %sub1 = sub nsw i32 %sub113, %1 store i32 %sub1, ptr %a, align 4, !tbaa !5 %cmp2 = icmp slt i32 %sub1, 1 br i1 %cmp2, label %if.end9, label %for.cond if.end9: ; preds = %if.end, %for.cond %str.sink = phi ptr [ @str.3, %for.cond ], [ @str, %if.end ] store i32 %sub, ptr %c, align 4, !tbaa !5 %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %d) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(void){ int a,b,c,d; scanf("%d %d %d %d",&a,&b,&c,&d); while(a>0 && c>0){ c-=b; a-=d; } if(c<=0) printf("Yes"); else printf("No"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138849/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138849/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 [12 x i8] c"%d %d %d %d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %a = alloca i32, align 4 %b = alloca i32, align 4 %c = alloca i32, align 4 %d = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %d) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c, ptr noundef nonnull %d) %.pr = load i32, ptr %c, align 4 %a.promoted = load i32, ptr %a, align 4, !tbaa !5 %cmp7 = icmp sgt i32 %a.promoted, 0 %cmp18 = icmp sgt i32 %.pr, 0 %0 = select i1 %cmp7, i1 %cmp18, i1 false br i1 %0, label %while.body.lr.ph, label %while.end while.body.lr.ph: ; preds = %entry %1 = load i32, ptr %b, align 4, !tbaa !5 %2 = load i32, ptr %d, align 4, !tbaa !5 br label %while.body while.body: ; preds = %while.body.lr.ph, %while.body %3 = phi i32 [ %.pr, %while.body.lr.ph ], [ %sub, %while.body ] %sub269 = phi i32 [ %a.promoted, %while.body.lr.ph ], [ %sub2, %while.body ] %sub = sub nsw i32 %3, %1 %sub2 = sub nsw i32 %sub269, %2 %cmp = icmp sgt i32 %sub2, 0 %cmp1 = icmp sgt i32 %sub, 0 %4 = select i1 %cmp, i1 %cmp1, i1 false br i1 %4, label %while.body, label %while.cond.while.end_crit_edge, !llvm.loop !9 while.cond.while.end_crit_edge: ; preds = %while.body store i32 %sub, ptr %c, align 4, !tbaa !5 store i32 %sub2, ptr %a, align 4, !tbaa !5 br label %while.end while.end: ; preds = %while.cond.while.end_crit_edge, %entry %.lcssa = phi i32 [ %sub, %while.cond.while.end_crit_edge ], [ %.pr, %entry ] %cmp3 = icmp slt i32 %.lcssa, 1 %.str.1..str.2 = select i1 %cmp3, ptr @.str.1, ptr @.str.2 %call5 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1..str.2) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %d) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"}
#include<stdio.h> int main(void) { int a, b, c, d,flg = 0; scanf("%d%d%d%d", &a, &b, &c, &d); while (a > 0 && c > 0) { // 0なら高橋が攻撃 if (flg == 0) { c -= b; flg++; } else { a -= d; flg--; } } if (a <= 0) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138892/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138892/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 [9 x i8] c"%d%d%d%d\00", align 1 @str = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @str.3 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %a = alloca i32, align 4 %b = alloca i32, align 4 %c = alloca i32, align 4 %d = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %d) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c, ptr noundef nonnull %d) %a.promoted = load i32, ptr %a, align 4, !tbaa !5 %c.promoted = load i32, ptr %c, align 4 %cmp18 = icmp sgt i32 %a.promoted, 0 %cmp119 = icmp sgt i32 %c.promoted, 0 %0 = select i1 %cmp18, i1 %cmp119, i1 false br i1 %0, label %while.body.lr.ph, label %while.end while.body.lr.ph: ; preds = %entry %1 = load i32, ptr %d, align 4 %2 = load i32, ptr %b, align 4 br label %while.body while.body: ; preds = %while.body.lr.ph, %if.end %flg.022 = phi i32 [ 0, %while.body.lr.ph ], [ %flg.1, %if.end ] %sub31521 = phi i32 [ %a.promoted, %while.body.lr.ph ], [ %sub314, %if.end ] %sub1720 = phi i32 [ %c.promoted, %while.body.lr.ph ], [ %sub16, %if.end ] %cmp2 = icmp eq i32 %flg.022, 0 br i1 %cmp2, label %if.then, label %if.else if.then: ; preds = %while.body %sub = sub nsw i32 %sub1720, %2 store i32 %sub, ptr %c, align 4, !tbaa !5 br label %if.end if.else: ; preds = %while.body %sub3 = sub nsw i32 %sub31521, %1 store i32 %sub3, ptr %a, align 4, !tbaa !5 br label %if.end if.end: ; preds = %if.else, %if.then %sub16 = phi i32 [ %sub, %if.then ], [ %sub1720, %if.else ] %sub314 = phi i32 [ %sub31521, %if.then ], [ %sub3, %if.else ] %flg.1 = phi i32 [ 1, %if.then ], [ 0, %if.else ] %cmp = icmp sgt i32 %sub314, 0 %cmp1 = icmp sgt i32 %sub16, 0 %3 = select i1 %cmp, i1 %cmp1, i1 false br i1 %3, label %while.body, label %while.end, !llvm.loop !9 while.end: ; preds = %if.end, %entry %.lcssa = phi i32 [ %a.promoted, %entry ], [ %sub314, %if.end ] %cmp4 = icmp slt i32 %.lcssa, 1 %str.3.str = select i1 %cmp4, ptr @str.3, ptr @str %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.3.str) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %d) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"}
#include <stdio.h> int main() { int A=0,B=0,C=0,D=0; scanf("%d %d %d %d",&A,&B,&C,&D ); while(1){ C -= B; if(C<=0) break; A -= D; if(A<=0) break; } if(A<=0) printf("No\n"); if(C<=0) printf("Yes\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138942/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138942/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 [12 x i8] c"%d %d %d %d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %A = alloca i32, align 4 %B = alloca i32, align 4 %C = alloca i32, align 4 %D = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %A) #4 store i32 0, ptr %A, align 4, !tbaa !5 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %B) #4 store i32 0, ptr %B, align 4, !tbaa !5 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %C) #4 store i32 0, ptr %C, align 4, !tbaa !5 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %D) #4 store i32 0, ptr %D, align 4, !tbaa !5 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %A, ptr noundef nonnull %B, ptr noundef nonnull %C, ptr noundef nonnull %D) %0 = load i32, ptr %B, align 4, !tbaa !5 %C.promoted = load i32, ptr %C, align 4, !tbaa !5 %A.promoted = load i32, ptr %A, align 4, !tbaa !5 %1 = load i32, ptr %D, align 4 br label %while.cond while.cond: ; preds = %if.end, %entry %.pr = phi i32 [ %sub1, %if.end ], [ %A.promoted, %entry ] %sub17 = phi i32 [ %sub, %if.end ], [ %C.promoted, %entry ] %sub = sub nsw i32 %sub17, %0 %cmp = icmp slt i32 %sub, 1 br i1 %cmp, label %while.end, label %if.end if.end: ; preds = %while.cond %sub1 = sub nsw i32 %.pr, %1 store i32 %sub1, ptr %A, align 4, !tbaa !5 %cmp2 = icmp slt i32 %sub1, 1 br i1 %cmp2, label %if.end8.loopexit, label %while.cond while.end: ; preds = %while.cond store i32 %sub, ptr %C, align 4, !tbaa !5 %cmp5 = icmp slt i32 %.pr, 1 br i1 %cmp5, label %if.end8, label %if.then10 if.end8.loopexit: ; preds = %if.end store i32 %sub, ptr %C, align 4, !tbaa !5 br label %if.end8 if.end8: ; preds = %if.end8.loopexit, %while.end %puts = call i32 @puts(ptr nonnull dereferenceable(1) @str) %.pr15 = load i32, ptr %C, align 4, !tbaa !5 %cmp9 = icmp slt i32 %.pr15, 1 br i1 %cmp9, label %if.then10, label %if.end12 if.then10: ; preds = %while.end, %if.end8 %puts13 = call i32 @puts(ptr nonnull dereferenceable(1) @str.3) br label %if.end12 if.end12: ; preds = %if.then10, %if.end8 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %D) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %C) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %B) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %A) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> int main(){ int a,b,c,d; scanf("%d%d%d%d",&a,&b,&c,&d); while(a!=0&&c!=0){ c-=b; if(c<=0){break;} a-=d; if(a<=0){break;} } if(a>0){printf("Yes\n");} else{printf("No\n");} return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_138986/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_138986/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 [9 x i8] c"%d%d%d%d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %a = alloca i32, align 4 %b = alloca i32, align 4 %c = alloca i32, align 4 %d = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %d) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c, ptr noundef nonnull %d) %a.promoted = load i32, ptr %a, align 4, !tbaa !5 %c.promoted = load i32, ptr %c, align 4 %0 = load i32, ptr %b, align 4 %1 = load i32, ptr %d, align 4 br label %while.cond while.cond: ; preds = %if.end, %entry %sub17 = phi i32 [ %sub, %if.end ], [ %c.promoted, %entry ] %.pr = phi i32 [ %sub3, %if.end ], [ %a.promoted, %entry ] %cmp = icmp ne i32 %.pr, 0 %cmp1 = icmp ne i32 %sub17, 0 %2 = select i1 %cmp, i1 %cmp1, i1 false br i1 %2, label %while.body, label %while.end while.body: ; preds = %while.cond %sub = sub nsw i32 %sub17, %0 store i32 %sub, ptr %c, align 4, !tbaa !5 %cmp2 = icmp slt i32 %sub, 1 br i1 %cmp2, label %while.end, label %if.end if.end: ; preds = %while.body %sub3 = sub nsw i32 %.pr, %1 store i32 %sub3, ptr %a, align 4, !tbaa !5 %cmp4 = icmp slt i32 %sub3, 1 br i1 %cmp4, label %if.else, label %while.cond, !llvm.loop !9 while.end: ; preds = %while.cond, %while.body %cmp7 = icmp sgt i32 %.pr, 0 br i1 %cmp7, label %if.end11, label %if.else if.else: ; preds = %if.end, %while.end br label %if.end11 if.end11: ; preds = %while.end, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %while.end ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %d) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"}
#include<stdio.h> const int mod = 1e9 + 7; void swap(long long* a, long long* b){ *a ^= *b; *b ^= *a; *a ^= *b; } long long inverse(long long x){ long long m = mod, u = 1, v = 0; while(m){ long long t = x / m; x -= t * m; swap(&x, &m); u -= t * v; swap(&u, &v); } u %= mod; if(u < 0) u += mod; return u; } int main(){ long long H, W, A, B; scanf("%lld%lld%lld%lld", &H, &W, &A, &B); long long fact[H + W + 1]; fact[0] = 1; for(int k = 1; k <= H + W; k++){ fact[k] = fact[k - 1] * k % mod; } long long move = 0; for(long long j = B; j < W; j++){ move += fact[H - A - 1 + j] * inverse(fact[j] * fact[H - A - 1] % mod) % mod * fact[W - j + A - 2] % mod * inverse(fact[W - j - 1] * fact[A - 1] % mod) % mod; move %= mod; } printf("%lld\n", move); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139028/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139028/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" @mod = dso_local local_unnamed_addr constant i32 1000000007, align 4 @.str = private unnamed_addr constant [17 x i8] c"%lld%lld%lld%lld\00", align 1 @.str.1 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1 ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable define dso_local void @swap(ptr nocapture noundef %a, ptr nocapture noundef %b) local_unnamed_addr #0 { entry: %0 = load i64, ptr %b, align 8, !tbaa !5 %1 = load i64, ptr %a, align 8, !tbaa !5 %xor = xor i64 %1, %0 store i64 %xor, ptr %a, align 8, !tbaa !5 %2 = load i64, ptr %b, align 8, !tbaa !5 %xor1 = xor i64 %2, %xor store i64 %xor1, ptr %b, align 8, !tbaa !5 %3 = load i64, ptr %a, align 8, !tbaa !5 %xor2 = xor i64 %3, %xor1 store i64 %xor2, ptr %a, align 8, !tbaa !5 ret void } ; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable define dso_local i64 @inverse(i64 noundef %x) local_unnamed_addr #1 { entry: br label %while.body while.body: ; preds = %entry, %while.body %v.019 = phi i64 [ 0, %entry ], [ %sub2, %while.body ] %u.018 = phi i64 [ 1, %entry ], [ %v.019, %while.body ] %m.017 = phi i64 [ 1000000007, %entry ], [ %sub.recomposed, %while.body ] %x.addr.016 = phi i64 [ %x, %entry ], [ %m.017, %while.body ] %div = sdiv i64 %x.addr.016, %m.017 %mul = mul nsw i64 %div, %m.017 %sub.recomposed = srem i64 %x.addr.016, %m.017 %mul1 = mul nsw i64 %div, %v.019 %sub2 = sub nsw i64 %u.018, %mul1 %tobool.not = icmp eq i64 %sub.recomposed, 0 br i1 %tobool.not, label %while.end, label %while.body, !llvm.loop !9 while.end: ; preds = %while.body %rem = srem i64 %v.019, 1000000007 %cmp = icmp slt i64 %rem, 0 %add = add nsw i64 %rem, 1000000007 %spec.select = select i1 %cmp, i64 %add, i64 %rem ret i64 %spec.select } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #3 { entry: %H = alloca i64, align 8 %W = alloca i64, align 8 %A = alloca i64, align 8 %B = alloca i64, align 8 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %H) #6 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %W) #6 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %A) #6 call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %B) #6 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %H, ptr noundef nonnull %W, ptr noundef nonnull %A, ptr noundef nonnull %B) %0 = load i64, ptr %H, align 8, !tbaa !5 %1 = load i64, ptr %W, align 8, !tbaa !5 %add = add i64 %0, 1 %add1 = add i64 %add, %1 %2 = call ptr @llvm.stacksave.p0() %vla = alloca i64, i64 %add1, align 16 store i64 1, ptr %vla, align 16, !tbaa !5 %3 = load i64, ptr %H, align 8, !tbaa !5 %4 = load i64, ptr %W, align 8, !tbaa !5 %add2 = add i64 %4, %3 %cmp.not76 = icmp slt i64 %add2, 1 br i1 %cmp.not76, label %for.cond.cleanup, label %for.body.preheader for.body.preheader: ; preds = %entry %5 = add i64 %4, %3 %xtraiter = and i64 %add2, 1 %6 = icmp eq i64 %5, 1 br i1 %6, label %for.cond.cleanup.loopexit.unr-lcssa, label %for.body.preheader.new for.body.preheader.new: ; preds = %for.body.preheader %unroll_iter = and i64 %add2, -2 br label %for.body for.cond.cleanup.loopexit.unr-lcssa: ; preds = %for.body, %for.body.preheader %.unr = phi i64 [ 1, %for.body.preheader ], [ %rem.1, %for.body ] %indvars.iv.unr = phi i64 [ 1, %for.body.preheader ], [ %indvars.iv.next.1, %for.body ] %lcmp.mod.not = icmp eq i64 %xtraiter, 0 br i1 %lcmp.mod.not, label %for.cond.cleanup, label %for.body.epil for.body.epil: ; preds = %for.cond.cleanup.loopexit.unr-lcssa %mul.epil = mul nsw i64 %.unr, %indvars.iv.unr %rem.epil = srem i64 %mul.epil, 1000000007 %arrayidx7.epil = getelementptr inbounds i64, ptr %vla, i64 %indvars.iv.unr store i64 %rem.epil, ptr %arrayidx7.epil, align 8, !tbaa !5 br label %for.cond.cleanup for.cond.cleanup: ; preds = %for.body.epil, %for.cond.cleanup.loopexit.unr-lcssa, %entry %7 = load i64, ptr %B, align 8, !tbaa !5 %cmp980 = icmp slt i64 %7, %4 br i1 %cmp980, label %for.body12.lr.ph, label %for.cond.cleanup11 for.body12.lr.ph: ; preds = %for.cond.cleanup %invariant.gep = getelementptr i64, ptr %vla, i64 -1 %8 = load i64, ptr %A, align 8, !tbaa !5 %9 = xor i64 %8, -1 %10 = getelementptr i64, ptr %vla, i64 %3 %11 = getelementptr i64, ptr %10, i64 %9 %12 = load i64, ptr %11, align 8, !tbaa !5 %gep = getelementptr i64, ptr %invariant.gep, i64 %8 %13 = load i64, ptr %gep, align 8, !tbaa !5 br label %for.body12 for.body: ; preds = %for.body, %for.body.preheader.new %14 = phi i64 [ 1, %for.body.preheader.new ], [ %rem.1, %for.body ] %indvars.iv = phi i64 [ 1, %for.body.preheader.new ], [ %indvars.iv.next.1, %for.body ] %niter = phi i64 [ 0, %for.body.preheader.new ], [ %niter.next.1, %for.body ] %mul = mul nsw i64 %14, %indvars.iv %rem = srem i64 %mul, 1000000007 %arrayidx7 = getelementptr inbounds i64, ptr %vla, i64 %indvars.iv store i64 %rem, ptr %arrayidx7, align 8, !tbaa !5 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %mul.1 = mul nsw i64 %rem, %indvars.iv.next %rem.1 = srem i64 %mul.1, 1000000007 %arrayidx7.1 = getelementptr inbounds i64, ptr %vla, i64 %indvars.iv.next store i64 %rem.1, ptr %arrayidx7.1, align 8, !tbaa !5 %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2 %niter.next.1 = add i64 %niter, 2 %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter br i1 %niter.ncmp.1, label %for.cond.cleanup.loopexit.unr-lcssa, label %for.body, !llvm.loop !11 for.cond.cleanup11: ; preds = %inverse.exit74, %for.cond.cleanup %move.0.lcssa = phi i64 [ 0, %for.cond.cleanup ], [ %rem43, %inverse.exit74 ] %call47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %move.0.lcssa) call void @llvm.stackrestore.p0(ptr %2) call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %B) #6 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %A) #6 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %W) #6 call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %H) #6 ret i32 0 for.body12: ; preds = %for.body12.lr.ph, %inverse.exit74 %j.082 = phi i64 [ %7, %for.body12.lr.ph ], [ %inc45, %inverse.exit74 ] %move.081 = phi i64 [ 0, %for.body12.lr.ph ], [ %rem43, %inverse.exit74 ] %arrayidx16 = getelementptr i64, ptr %11, i64 %j.082 %15 = load i64, ptr %arrayidx16, align 8, !tbaa !5 %arrayidx17 = getelementptr inbounds i64, ptr %vla, i64 %j.082 %16 = load i64, ptr %arrayidx17, align 8, !tbaa !5 %mul21 = mul nsw i64 %12, %16 %rem22 = srem i64 %mul21, 1000000007 br label %while.body.i while.body.i: ; preds = %while.body.i, %for.body12 %v.019.i = phi i64 [ 0, %for.body12 ], [ %sub2.i, %while.body.i ] %u.018.i = phi i64 [ 1, %for.body12 ], [ %v.019.i, %while.body.i ] %m.017.i = phi i64 [ 1000000007, %for.body12 ], [ %sub.i.recomposed, %while.body.i ] %x.addr.016.i = phi i64 [ %rem22, %for.body12 ], [ %m.017.i, %while.body.i ] %div.i = sdiv i64 %x.addr.016.i, %m.017.i %mul.i = mul nsw i64 %div.i, %m.017.i %sub.i.recomposed = srem i64 %x.addr.016.i, %m.017.i %mul1.i = mul nsw i64 %div.i, %v.019.i %sub2.i = sub nsw i64 %u.018.i, %mul1.i %tobool.not.i = icmp eq i64 %sub.i.recomposed, 0 br i1 %tobool.not.i, label %inverse.exit, label %while.body.i, !llvm.loop !9 inverse.exit: ; preds = %while.body.i %rem.i = srem i64 %v.019.i, 1000000007 %cmp.i = icmp slt i64 %rem.i, 0 %add.i = add nsw i64 %rem.i, 1000000007 %spec.select.i = select i1 %cmp.i, i64 %add.i, i64 %rem.i %mul24 = mul nsw i64 %spec.select.i, %15 %rem25 = srem i64 %mul24, 1000000007 %sub26 = sub nsw i64 %4, %j.082 %17 = getelementptr i64, ptr %vla, i64 %sub26 %18 = getelementptr i64, ptr %17, i64 %8 %arrayidx29 = getelementptr i64, ptr %18, i64 -2 %19 = load i64, ptr %arrayidx29, align 8, !tbaa !5 %mul30 = mul nsw i64 %19, %rem25 %arrayidx34 = getelementptr i64, ptr %17, i64 -1 %20 = load i64, ptr %arrayidx34, align 8, !tbaa !5 %mul37 = mul nsw i64 %13, %20 %rem38 = srem i64 %mul37, 1000000007 br label %while.body.i59 while.body.i59: ; preds = %while.body.i59, %inverse.exit %v.019.i60 = phi i64 [ 0, %inverse.exit ], [ %sub2.i68, %while.body.i59 ] %u.018.i61 = phi i64 [ 1, %inverse.exit ], [ %v.019.i60, %while.body.i59 ] %m.017.i62 = phi i64 [ 1000000007, %inverse.exit ], [ %sub.i66.recomposed, %while.body.i59 ] %x.addr.016.i63 = phi i64 [ %rem38, %inverse.exit ], [ %m.017.i62, %while.body.i59 ] %div.i64 = sdiv i64 %x.addr.016.i63, %m.017.i62 %mul.i65 = mul nsw i64 %div.i64, %m.017.i62 %sub.i66.recomposed = srem i64 %x.addr.016.i63, %m.017.i62 %mul1.i67 = mul nsw i64 %div.i64, %v.019.i60 %sub2.i68 = sub nsw i64 %u.018.i61, %mul1.i67 %tobool.not.i69 = icmp eq i64 %sub.i66.recomposed, 0 br i1 %tobool.not.i69, label %inverse.exit74, label %while.body.i59, !llvm.loop !9 inverse.exit74: ; preds = %while.body.i59 %rem31 = srem i64 %mul30, 1000000007 %rem.i70 = srem i64 %v.019.i60, 1000000007 %cmp.i71 = icmp slt i64 %rem.i70, 0 %add.i72 = add nsw i64 %rem.i70, 1000000007 %spec.select.i73 = select i1 %cmp.i71, i64 %add.i72, i64 %rem.i70 %mul40 = mul nsw i64 %spec.select.i73, %rem31 %rem41 = srem i64 %mul40, 1000000007 %add42 = add nsw i64 %rem41, %move.081 %rem43 = srem i64 %add42, 1000000007 %inc45 = add nsw i64 %j.082, 1 %exitcond86.not = icmp eq i64 %inc45, %4 br i1 %exitcond86.not, label %for.cond.cleanup11, label %for.body12, !llvm.loop !12 } ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare ptr @llvm.stacksave.p0() #5 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn declare void @llvm.stackrestore.p0(ptr) #5 attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nofree norecurse nosync nounwind memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #3 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #5 = { mustprogress nocallback nofree nosync nounwind willreturn } attributes #6 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"long long", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"} !11 = distinct !{!11, !10} !12 = distinct !{!12, !10}
#include <stdio.h> int main(void){ int n,a,i,f=0; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%d",&a); f |= a%2==1; } printf(f?"first":"second"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139071/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139071/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [6 x i8] c"first\00", align 1 @.str.2 = private unnamed_addr constant [7 x i8] c"second\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 %a = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %cmp.not6 = icmp slt i32 %0, 1 br i1 %cmp.not6, label %for.end, label %for.body for.body: ; preds = %entry, %for.body %f.08 = phi i32 [ %or, %for.body ], [ 0, %entry ] %i.07 = phi i32 [ %inc, %for.body ], [ 1, %entry ] %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a) %1 = load i32, ptr %a, align 4, !tbaa !5 %2 = and i32 %1, -2147483647 %cmp2 = icmp eq i32 %2, 1 %conv = zext i1 %cmp2 to i32 %or = or i32 %f.08, %conv %inc = add nuw nsw i32 %i.07, 1 %3 = load i32, ptr %n, align 4, !tbaa !5 %cmp.not.not = icmp slt i32 %i.07, %3 br i1 %cmp.not.not, label %for.body, label %for.end.loopexit, !llvm.loop !9 for.end.loopexit: ; preds = %for.body %4 = icmp eq i32 %or, 0 %5 = select i1 %4, ptr @.str.2, ptr @.str.1 br label %for.end for.end: ; preds = %for.end.loopexit, %entry %f.0.lcssa = phi ptr [ @.str.2, %entry ], [ %5, %for.end.loopexit ] %call3 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %f.0.lcssa) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"}
#include <stdio.h> int main() { char N[4]; scanf("%s", N); if (N[0] == '7' || N[1] == '7' || N[2] == '7') { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139114/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139114/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 [3 x i8] c"%s\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %N = alloca [4 x i8], align 1 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N) %0 = load i8, ptr %N, align 1, !tbaa !5 %cmp = icmp eq i8 %0, 55 %arrayidx2 = getelementptr inbounds [4 x i8], ptr %N, i64 0, i64 1 %1 = load i8, ptr %arrayidx2, align 1 %cmp4 = icmp eq i8 %1, 55 %or.cond = select i1 %cmp, i1 true, i1 %cmp4 %arrayidx7 = getelementptr inbounds [4 x i8], ptr %N, i64 0, i64 2 %2 = load i8, ptr %arrayidx7, align 1 %cmp9 = icmp eq i8 %2, 55 %or.cond13 = select i1 %or.cond, i1 true, i1 %cmp9 %str.3.str = select i1 %or.cond13, ptr @str.3, ptr @str %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.3.str) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main() { int slot; scanf("%d", &slot); int rat, pul, sat; rat = slot/100; pul = (slot - rat*100)/10; sat = slot - (pul*10 + rat*100); if(rat == 7 || pul == 7 || sat == 7){ printf("Yes"); }else{ puts("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139158/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139158/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %slot = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %slot) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %slot) %0 = load i32, ptr %slot, align 4, !tbaa !5 %.fr = freeze i32 %0 %1 = srem i32 %.fr, 100 %.lhs.trunc = trunc i32 %1 to i8 %2 = srem i8 %.lhs.trunc, 10 %.off = add i32 %.fr, -700 %cmp = icmp ult i32 %.off, 100 %.off14 = add nsw i32 %1, -70 %cmp5 = icmp ult i32 %.off14, 10 %or.cond = select i1 %cmp, i1 true, i1 %cmp5 %cmp7 = icmp eq i8 %2, 7 %or.cond10 = or i1 %or.cond, %cmp7 br i1 %or.cond10, label %if.then, label %if.else if.then: ; preds = %entry %call8 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1) br label %if.end if.else: ; preds = %entry %call9 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2) br label %if.end if.end: ; preds = %if.else, %if.then call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %slot) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> int main(){ int n,k1,k2,k3; int flag=0; scanf("%d",&n); k1=n%10; k2=n-k1; k2=k2%100; k2=k2/10; k3=n-(k2*10)-k1; k3=k3/100; if(k1==7) flag=1; if(k2==7) flag=1; if(k3==7) flag=1; if(flag==1) printf("Yes"); else if(flag==0) printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139200/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139200/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %rem = srem i32 %0, 10 %sub = sub nsw i32 %0, %rem %sub.fr = freeze i32 %sub %rem1 = srem i32 %sub.fr, 100 %.lhs.trunc = trunc i32 %rem1 to i8 %1 = srem i8 %.lhs.trunc, 10 %.sext = sext i8 %1 to i32 %cmp = icmp eq i32 %rem, 7 %rem1.off = add nsw i32 %rem1, -70 %cmp5 = icmp ult i32 %rem1.off, 10 %narrow = or i1 %cmp, %cmp5 %.neg = add i32 %0, -700 %2 = add nsw i32 %rem, %rem1 %sub3 = sub i32 %.neg, %2 %sub3.off = add i32 %sub3, %.sext %cmp8 = icmp ult i32 %sub3.off, 100 %narrow26 = select i1 %cmp8, i1 true, i1 %narrow %.str.1..str.2 = select i1 %narrow26, ptr @.str.1, ptr @.str.2 %call16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1..str.2) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(void) { int N; scanf("%d", &N); int shou1; int amari; int shou2; shou1 = N / 100; amari = N % 100; shou2 = amari / 10; amari = amari % 10; if (shou1 == 7 || shou2 == 7 || amari == 7) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139244/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139244/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 [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %N = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N) %0 = load i32, ptr %N, align 4, !tbaa !5 %rem = srem i32 %0, 100 %rem2.lhs.trunc = trunc i32 %rem to i8 %rem212 = srem i8 %rem2.lhs.trunc, 10 %.off = add i32 %0, -700 %cmp = icmp ult i32 %.off, 100 %rem.off = add nsw i32 %rem, -70 %cmp3 = icmp ult i32 %rem.off, 10 %or.cond = select i1 %cmp, i1 true, i1 %cmp3 %cmp5 = icmp eq i8 %rem212, 7 %or.cond8 = or i1 %or.cond, %cmp5 %str.3.str = select i1 %or.cond8, ptr @str.3, ptr @str %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.3.str) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(void){ int n,a,b,c; scanf("%d",&n); a=n/100; n=n%100; b=n/10; n=n%10; c=n; if(a==7||b==7||c==7) printf("Yes"); else printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139288/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139288/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %rem = srem i32 %0, 100 %rem2.lhs.trunc = trunc i32 %rem to i8 %rem29 = srem i8 %rem2.lhs.trunc, 10 %rem2.sext = sext i8 %rem29 to i32 store i32 %rem2.sext, ptr %n, align 4, !tbaa !5 %.off = add i32 %0, -700 %cmp = icmp ult i32 %.off, 100 %rem.off = add nsw i32 %rem, -70 %cmp3 = icmp ult i32 %rem.off, 10 %or.cond = select i1 %cmp, i1 true, i1 %cmp3 %cmp5 = icmp eq i8 %rem29, 7 %or.cond8 = or i1 %or.cond, %cmp5 %.str.1..str.2 = select i1 %or.cond8, ptr @.str.1, ptr @.str.2 %call7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1..str.2) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> int main(){ char n[4]; scanf("%s", n); int r=0; for (int i=0; i<3; ++i){ if (n[i]=='7'){ r=10; } } if (r==10){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139330/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139330/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 [3 x i8] c"%s\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca [4 x i8], align 1 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i8, ptr %n, align 1, !tbaa !5 %cmp1 = icmp eq i8 %0, 55 %arrayidx.1 = getelementptr inbounds [4 x i8], ptr %n, i64 0, i64 1 %1 = load i8, ptr %arrayidx.1, align 1, !tbaa !5 %cmp1.1 = icmp eq i8 %1, 55 %arrayidx.2 = getelementptr inbounds [4 x i8], ptr %n, i64 0, i64 2 %2 = load i8, ptr %arrayidx.2, align 1, !tbaa !5 %cmp1.2 = icmp eq i8 %2, 55 %3 = select i1 %cmp1.2, i1 true, i1 %cmp1.1 %4 = select i1 %3, i1 true, i1 %cmp1 %str.3.str = select i1 %4, ptr @str.3, ptr @str %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.3.str) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> int main() { int c=0,i; char s[4]; scanf ("%s",s); for (i=0;i<4;i++) { if (s[i]=='7') { c++; } } if (c>0) { printf ("Yes\n"); } else { printf ("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139381/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139381/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 [3 x i8] c"%s\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %s = alloca [4 x i8], align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %s) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %s) %0 = load <4 x i8>, ptr %s, align 4, !tbaa !5 %1 = icmp eq <4 x i8> %0, <i8 55, i8 55, i8 55, i8 55> %2 = extractelement <4 x i1> %1, i64 0 %inc = zext i1 %2 to i32 %3 = extractelement <4 x i1> %1, i64 1 %inc.1 = zext i1 %3 to i32 %spec.select.1 = add nuw nsw i32 %inc, %inc.1 %4 = extractelement <4 x i1> %1, i64 2 %inc.2 = zext i1 %4 to i32 %spec.select.2 = add nuw nsw i32 %spec.select.1, %inc.2 %5 = extractelement <4 x i1> %1, i64 3 %inc.3.neg = sext i1 %5 to i32 %cmp4.not = icmp eq i32 %spec.select.2, %inc.3.neg %str.str.3 = select i1 %cmp4.not, ptr @str, ptr @str.3 %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.str.3) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %s) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int n; int main() { scanf("%d",&n); if(n/100 == 7 || (n/10)%10 == 7 || n % 10 == 7) printf("Yes"); else printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139424/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139424/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 [3 x i8] c"%d\00", align 1 @n = dso_local global i32 0, align 4 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %call = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n) %0 = load i32, ptr @n, align 4, !tbaa !5 %.off = add i32 %0, -700 %cmp = icmp ult i32 %.off, 100 br i1 %cmp, label %if.end, label %lor.lhs.false lor.lhs.false: ; preds = %entry %div1 = sdiv i32 %0, 10 %rem = srem i32 %div1, 10 %cmp2 = icmp eq i32 %rem, 7 %rem4 = srem i32 %0, 10 %cmp5 = icmp eq i32 %rem4, 7 %or.cond = or i1 %cmp5, %cmp2 %spec.select = select i1 %or.cond, ptr @.str.1, ptr @.str.2 br label %if.end if.end: ; preds = %lor.lhs.false, %entry %.str.2.sink = phi ptr [ @.str.1, %entry ], [ %spec.select, %lor.lhs.false ] %call7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink) ret i32 0 } ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(){ int N; int pro1 , pro2 , pro3; scanf("%d" , &N); pro3 = N % 10; pro2 = (N % 100 - pro3)/10; pro1 = (N - pro2)/100; if ((pro1==7)||(pro2==7)||(pro3==7)) printf("Yes\n"); else printf("No\n"); return 0 ; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139468/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139468/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 [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %N = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N) %0 = load i32, ptr %N, align 4, !tbaa !5 %rem = srem i32 %0, 10 %rem1 = srem i32 %0, 100 %sub = sub nsw i32 %rem1, %rem %div.neg.lhs.trunc = trunc i32 %sub to i8 %div.neg13 = sdiv i8 %div.neg.lhs.trunc, -10 %div.neg.sext = sext i8 %div.neg13 to i32 %sub2 = add i32 %0, -700 %sub2.off = add i32 %sub2, %div.neg.sext %cmp = icmp ult i32 %sub2.off, 100 %sub.off = add nsw i32 %sub, -70 %cmp4 = icmp ult i32 %sub.off, 10 %or.cond = select i1 %cmp, i1 true, i1 %cmp4 %cmp6 = icmp eq i32 %rem, 7 %or.cond9 = or i1 %cmp6, %or.cond %str.3.str = select i1 %or.cond9, ptr @str.3, ptr @str %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.3.str) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> void judge(int x){ while(x > 0){ if(x%10 == 7){ printf("Yes\n"); break; } x /= 10; if(x == 0){ printf("No\n"); } } return ; } int main(void){ int num; scanf("%d",&num); judge(num); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139510/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139510/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.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local void @judge(i32 noundef %x) local_unnamed_addr #0 { entry: %cmp10 = icmp sgt i32 %x, 0 br i1 %cmp10, label %while.body, label %while.end while.body: ; preds = %entry, %if.end %x.addr.011 = phi i32 [ %div, %if.end ], [ %x, %entry ] %rem = urem i32 %x.addr.011, 10 %div = udiv i32 %x.addr.011, 10 %cmp1 = icmp eq i32 %rem, 7 br i1 %cmp1, label %while.end.sink.split, label %if.end if.end: ; preds = %while.body %cmp2 = icmp ult i32 %x.addr.011, 10 br i1 %cmp2, label %while.end.sink.split, label %while.body, !llvm.loop !5 while.end.sink.split: ; preds = %if.end, %while.body %str.sink = phi ptr [ @str.3, %while.body ], [ @str, %if.end ] %puts = tail call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) br label %while.end while.end: ; preds = %while.end.sink.split, %entry ret void } ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %num = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %num) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %num) %0 = load i32, ptr %num, align 4, !tbaa !7 %cmp10.i = icmp sgt i32 %0, 0 br i1 %cmp10.i, label %while.body.i, label %judge.exit while.body.i: ; preds = %entry, %if.end.i %x.addr.011.i = phi i32 [ %div.i, %if.end.i ], [ %0, %entry ] %rem.i = urem i32 %x.addr.011.i, 10 %div.i = udiv i32 %x.addr.011.i, 10 %cmp1.i = icmp eq i32 %rem.i, 7 br i1 %cmp1.i, label %while.end.sink.split.i, label %if.end.i if.end.i: ; preds = %while.body.i %cmp2.i = icmp ult i32 %x.addr.011.i, 10 br i1 %cmp2.i, label %while.end.sink.split.i, label %while.body.i, !llvm.loop !5 while.end.sink.split.i: ; preds = %if.end.i, %while.body.i %str.sink.i = phi ptr [ @str.3, %while.body.i ], [ @str, %if.end.i ] %puts.i = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink.i) br label %judge.exit judge.exit: ; preds = %entry, %while.end.sink.split.i call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %num) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = distinct !{!5, !6} !6 = !{!"llvm.loop.mustprogress"} !7 = !{!8, !8, i64 0} !8 = !{!"int", !9, i64 0} !9 = !{!"omnipotent char", !10, i64 0} !10 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> int main() { int n,r,flag; scanf("%d",&n); flag=0; while(n>0) { r=n%10; if(r==7) { printf("Yes\n"); flag=1; break; } n/=10; } if(flag!=1) { printf("No\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139554/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139554/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 [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @str.3 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %.pr = load i32, ptr %n, align 4, !tbaa !5 %cmp8 = icmp sgt i32 %.pr, 0 br i1 %cmp8, label %while.body, label %if.end6 while.body: ; preds = %entry, %if.end %0 = phi i32 [ %div, %if.end ], [ %.pr, %entry ] %rem = urem i32 %0, 10 %div = udiv i32 %0, 10 %cmp1 = icmp eq i32 %rem, 7 br i1 %cmp1, label %if.end6, label %if.end if.end: ; preds = %while.body store i32 %div, ptr %n, align 4, !tbaa !5 %cmp.not = icmp ult i32 %0, 10 br i1 %cmp.not, label %if.end6, label %while.body, !llvm.loop !9 if.end6: ; preds = %if.end, %while.body, %entry %str.sink = phi ptr [ @str.3, %entry ], [ @str, %while.body ], [ @str.3, %if.end ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"}
#include<stdio.h> int main(void) { int N,a,b,c; //read scanf("%d",&N); //check a = N/100; b = (N-a*100)/10; c = N%10; //write //printf("%d,%d,%d,%d",N,a,b,c); if(a-7==0||b-7==0||c-7==0) { printf("Yes"); }else{ printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139598/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139598/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %N = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N) %0 = load i32, ptr %N, align 4, !tbaa !5 %.fr = freeze i32 %0 %.off = add i32 %.fr, -700 %cmp = icmp ult i32 %.off, 100 br i1 %cmp, label %if.end, label %lor.lhs.false lor.lhs.false: ; preds = %entry %rem = srem i32 %.fr, 10 %1 = srem i32 %.fr, 100 %.off11 = add nsw i32 %1, -70 %cmp4 = icmp ult i32 %.off11, 10 %cmp7 = icmp eq i32 %rem, 7 %or.cond = or i1 %cmp7, %cmp4 %spec.select = select i1 %or.cond, ptr @.str.1, ptr @.str.2 br label %if.end if.end: ; preds = %lor.lhs.false, %entry %.str.2.sink = phi ptr [ @.str.1, %entry ], [ %spec.select, %lor.lhs.false ] %call9 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include<stdio.h> int main(void){ int N,t; t=0; scanf("%d", &N); if (N % 10 == 7) t=1; if (N/10%10 == 7) t=1; if (N/100%10 == 7) t=1; if(t == 1) printf("Yes"); else printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139648/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139648/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %N = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N) %0 = load i32, ptr %N, align 4, !tbaa !5 %rem = srem i32 %0, 10 %cmp = icmp eq i32 %rem, 7 %div = sdiv i32 %0, 10 %rem1 = srem i32 %div, 10 %cmp2 = icmp eq i32 %rem1, 7 %narrow = or i1 %cmp, %cmp2 %div5 = sdiv i32 %0, 100 %rem6 = srem i32 %div5, 10 %cmp7 = icmp eq i32 %rem6, 7 %narrow15 = or i1 %cmp7, %narrow %.str.1..str.2 = select i1 %narrow15, ptr @.str.1, ptr @.str.2 %call13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1..str.2) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main (void) { int n, x, y, z; scanf("%d", &n); x = n / 100; y = (n - 100 * x) / 10; z = n - 100 * x - 10 * y; if ( x == 7 || y == 7 || z == 7) { printf("Yes"); } else{ printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139691/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139691/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 [3 x i8] c"%d\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %.fr = freeze i32 %0 %1 = srem i32 %.fr, 100 %.lhs.trunc = trunc i32 %1 to i8 %2 = srem i8 %.lhs.trunc, 10 %.off = add i32 %.fr, -700 %cmp = icmp ult i32 %.off, 100 %.off15 = add nsw i32 %1, -70 %cmp6 = icmp ult i32 %.off15, 10 %or.cond = select i1 %cmp, i1 true, i1 %cmp6 %cmp8 = icmp eq i8 %2, 7 %or.cond11 = or i1 %or.cond, %cmp8 %.str.1..str.2 = select i1 %or.cond11, ptr @.str.1, ptr @.str.2 %call10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1..str.2) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main(void){ int n; int f=0; scanf("%d",&n); while(n>0){ if(n%10==7){ f=1; } n/=10; } if(f==1){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139734/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139734/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 [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %.pr = load i32, ptr %n, align 4, !tbaa !5 %cmp9 = icmp sgt i32 %.pr, 0 br i1 %cmp9, label %while.body, label %if.else while.body: ; preds = %entry, %while.body %f.010 = phi i32 [ %spec.select, %while.body ], [ 0, %entry ] %0 = phi i32 [ %div8, %while.body ], [ %.pr, %entry ] %rem = urem i32 %0, 10 %cmp1 = icmp eq i32 %rem, 7 %spec.select = select i1 %cmp1, i32 1, i32 %f.010 %div8 = udiv i32 %0, 10 %cmp.not = icmp ult i32 %0, 10 br i1 %cmp.not, label %while.end, label %while.body, !llvm.loop !9 while.end: ; preds = %while.body store i32 %div8, ptr %n, align 4, !tbaa !5 %1 = icmp eq i32 %spec.select, 1 br i1 %1, label %if.end6, label %if.else if.else: ; preds = %entry, %while.end br label %if.end6 if.end6: ; preds = %while.end, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %while.end ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"} !9 = distinct !{!9, !10} !10 = !{!"llvm.loop.mustprogress"}
#include<stdio.h> int main() { int n,f=0; scanf("%d",&n); if(n%10==7) { f++; } n=n/10; if(n%10==7) { f++; } n=n/10; if(n%10==7) { f++; } if(f>0) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139778/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139778/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 [3 x i8] c"%d\00", align 1 @str = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %n = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n) %0 = load i32, ptr %n, align 4, !tbaa !5 %rem = srem i32 %0, 10 %cmp = icmp ne i32 %rem, 7 %div = sdiv i32 %0, 10 %rem1 = srem i32 %div, 10 %cmp2 = icmp ne i32 %rem1, 7 %div6 = sdiv i32 %0, 100 store i32 %div6, ptr %n, align 4, !tbaa !5 %rem7 = srem i32 %div6, 10 %cmp8 = icmp ne i32 %rem7, 7 %.not = and i1 %cmp, %cmp8 %cmp12.not = and i1 %cmp2, %.not %str.str.3 = select i1 %cmp12.not, ptr @str, ptr @str.3 %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.str.3) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nofree nounwind } attributes #4 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"int", !7, i64 0} !7 = !{!"omnipotent char", !8, i64 0} !8 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> int main() { char a[3]; scanf("%s", a); for (int i=0; i<3; i++) { if (a[i] == '7') { printf("Yes"); return 0; } } printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139820/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139820/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 [3 x i8] c"%s\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %a = alloca [3 x i8], align 1 call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %a) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a) %0 = load i8, ptr %a, align 1, !tbaa !5 %cmp1 = icmp eq i8 %0, 55 %arrayidx.1 = getelementptr inbounds [3 x i8], ptr %a, i64 0, i64 1 %1 = load i8, ptr %arrayidx.1, align 1 %cmp1.1 = icmp eq i8 %1, 55 %or.cond = select i1 %cmp1, i1 true, i1 %cmp1.1 %arrayidx.2 = getelementptr inbounds [3 x i8], ptr %a, i64 0, i64 2 %2 = load i8, ptr %arrayidx.2, align 1 %cmp1.2 = icmp eq i8 %2, 55 %or.cond10 = select i1 %or.cond, i1 true, i1 %cmp1.2 %.str.1..str.2 = select i1 %or.cond10, ptr @.str.1, ptr @.str.2 %call3 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1..str.2) call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %a) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C/C++ TBAA"}
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> int main(void) { char str[4] = { 0, }; scanf("%s", str); if (str[0] == '7' || str[1] == '7' || str[2] == '7') printf("Yes"); else printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_139871/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_139871/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 [3 x i8] c"%s\00", align 1 @.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1 ; Function Attrs: nofree nounwind uwtable define dso_local i32 @main() local_unnamed_addr #0 { entry: %str = alloca [4 x i8], align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %str) #3 store i32 0, ptr %str, align 4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %str) %0 = load i8, ptr %str, align 4, !tbaa !5 %cmp = icmp eq i8 %0, 55 %arrayidx2 = getelementptr inbounds [4 x i8], ptr %str, i64 0, i64 1 %1 = load i8, ptr %arrayidx2, align 1 %cmp4 = icmp eq i8 %1, 55 %or.cond = select i1 %cmp, i1 true, i1 %cmp4 %arrayidx7 = getelementptr inbounds [4 x i8], ptr %str, i64 0, i64 2 %2 = load i8, ptr %arrayidx7, align 2 %cmp9 = icmp eq i8 %2, 55 %or.cond13 = select i1 %or.cond, i1 true, i1 %cmp9 %.str.1..str.2 = select i1 %or.cond13, ptr @.str.1, ptr @.str.2 %call12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1..str.2) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %str) #3 ret i32 0 } ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1 ; Function Attrs: nofree nounwind declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: nofree nounwind declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2 ; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1 attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { nounwind } !llvm.module.flags = !{!0, !1, !2, !3} !llvm.ident = !{!4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"} !5 = !{!6, !6, i64 0} !6 = !{!"omnipotent char", !7, i64 0} !7 = !{!"Simple C/C++ TBAA"}