Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
#include<math.h>
int main()
{
int n,m,a[20],c[20]={0},i,x;
scanf("%d %d",&n,&m);
for(i=1;i<=n;i++)
{
scanf("%d",&a[i]);
}
for(i=1;i<=m;i++)
{
scanf("%d",&x);
c[x]=1;
}
for(i=1;i<=n;i++)
{
if(c[a[i]]==1)
{
printf("%d ",a[i]);
}
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17163/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17163/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 \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
%a = alloca [20 x i32], align 16
%c = alloca [20 x i32], align 16
%x = 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 80, ptr nonnull %a) #4
call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %c) #4
call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80) %c, i8 0, i64 80, i1 false)
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #4
%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
%cmp.not33 = icmp slt i32 %0, 1
br i1 %cmp.not33, label %for.cond2.preheader, label %for.body
for.cond2.preheader: ; preds = %for.body, %entry
%1 = phi i32 [ %0, %entry ], [ %3, %for.body ]
%2 = load i32, ptr %m, align 4, !tbaa !5
%cmp3.not35 = icmp slt i32 %2, 1
br i1 %cmp3.not35, label %for.cond11.preheader, label %for.body4
for.body: ; preds = %entry, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 1, %entry ]
%arrayidx = getelementptr inbounds [20 x i32], ptr %a, 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
%3 = load i32, ptr %n, align 4, !tbaa !5
%4 = sext i32 %3 to i64
%cmp.not.not = icmp slt i64 %indvars.iv, %4
br i1 %cmp.not.not, label %for.body, label %for.cond2.preheader, !llvm.loop !9
for.cond11.preheader.loopexit: ; preds = %for.body4
%.pre = load i32, ptr %n, align 4, !tbaa !5
br label %for.cond11.preheader
for.cond11.preheader: ; preds = %for.cond11.preheader.loopexit, %for.cond2.preheader
%5 = phi i32 [ %.pre, %for.cond11.preheader.loopexit ], [ %1, %for.cond2.preheader ]
%cmp12.not37 = icmp slt i32 %5, 1
br i1 %cmp12.not37, label %for.end24, label %for.body13
for.body4: ; preds = %for.cond2.preheader, %for.body4
%i.136 = phi i32 [ %inc9, %for.body4 ], [ 1, %for.cond2.preheader ]
%call5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %x)
%6 = load i32, ptr %x, align 4, !tbaa !5
%idxprom6 = sext i32 %6 to i64
%arrayidx7 = getelementptr inbounds [20 x i32], ptr %c, i64 0, i64 %idxprom6
store i32 1, ptr %arrayidx7, align 4, !tbaa !5
%inc9 = add nuw nsw i32 %i.136, 1
%7 = load i32, ptr %m, align 4, !tbaa !5
%cmp3.not.not = icmp slt i32 %i.136, %7
br i1 %cmp3.not.not, label %for.body4, label %for.cond11.preheader.loopexit, !llvm.loop !11
for.body13: ; preds = %for.cond11.preheader, %for.inc22
%8 = phi i32 [ %11, %for.inc22 ], [ %5, %for.cond11.preheader ]
%indvars.iv40 = phi i64 [ %indvars.iv.next41, %for.inc22 ], [ 1, %for.cond11.preheader ]
%arrayidx15 = getelementptr inbounds [20 x i32], ptr %a, i64 0, i64 %indvars.iv40
%9 = load i32, ptr %arrayidx15, align 4, !tbaa !5
%idxprom16 = sext i32 %9 to i64
%arrayidx17 = getelementptr inbounds [20 x i32], ptr %c, i64 0, i64 %idxprom16
%10 = load i32, ptr %arrayidx17, align 4, !tbaa !5
%cmp18 = icmp eq i32 %10, 1
br i1 %cmp18, label %if.then, label %for.inc22
if.then: ; preds = %for.body13
%call21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %9)
%.pre43 = load i32, ptr %n, align 4, !tbaa !5
br label %for.inc22
for.inc22: ; preds = %for.body13, %if.then
%11 = phi i32 [ %8, %for.body13 ], [ %.pre43, %if.then ]
%indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
%12 = sext i32 %11 to i64
%cmp12.not.not = icmp slt i64 %indvars.iv40, %12
br i1 %cmp12.not.not, label %for.body13, label %for.end24, !llvm.loop !12
for.end24: ; preds = %for.inc22, %for.cond11.preheader
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #4
call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %c) #4
call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %a) #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: 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: 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) #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 = { 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 <math.h>
#define PI 3.14159265358979323846264338327950L
int main(void) {
int a, b, h, m;
scanf("%d%d%d%d", &a, &b, &h, &m);
long double rad = PI * 2 * (
(long double)h / 12.0 + ((long double)m / 60.0) / 12.0 - (long
double)m / 60.0);
long double rsq = (long double)(a * a + b * b) - (long double)(2 * a *b) * cosl(rad);
printf("%20.20Lf\n", sqrtl(rsq));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171673/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171673/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 [10 x i8] c"%20.20Lf\0A\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
%h = alloca i32, align 4
%m = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %h) #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 %a, ptr noundef nonnull %b, ptr noundef nonnull %h, ptr noundef nonnull %m)
%0 = load i32, ptr %h, align 4, !tbaa !5
%conv = sitofp i32 %0 to x86_fp80
%div = fdiv x86_fp80 %conv, 0xK4002C000000000000000
%1 = load i32, ptr %m, align 4, !tbaa !5
%conv1 = sitofp i32 %1 to x86_fp80
%div2 = fdiv x86_fp80 %conv1, 0xK4004F000000000000000
%div3 = fdiv x86_fp80 %div2, 0xK4002C000000000000000
%add = fadd x86_fp80 %div, %div3
%sub = fsub x86_fp80 %add, %div2
%mul = fmul x86_fp80 %sub, 0xK4001C90FDAA22168C235
%2 = load i32, ptr %a, align 4, !tbaa !5
%mul6 = mul nsw i32 %2, %2
%3 = load i32, ptr %b, align 4, !tbaa !5
%mul7 = mul nsw i32 %3, %3
%add8 = add nuw nsw i32 %mul7, %mul6
%conv9 = sitofp i32 %add8 to x86_fp80
%mul10 = shl nsw i32 %2, 1
%mul11 = mul nsw i32 %mul10, %3
%conv12 = sitofp i32 %mul11 to x86_fp80
%call13 = call x86_fp80 @cosl(x86_fp80 noundef %mul) #5
%neg = fneg x86_fp80 %conv12
%4 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %neg, x86_fp80 %call13, x86_fp80 %conv9)
%call15 = call x86_fp80 @sqrtl(x86_fp80 noundef %4) #5
%call16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, x86_fp80 noundef %call15)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %m) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %h) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #5
call void @llvm.lifetime.end.p0(i64 4, 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(write)
declare x86_fp80 @cosl(x86_fp80 noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #4
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare x86_fp80 @sqrtl(x86_fp80 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
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 = { 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"}
|
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int max(int a,int b){
if(a > b) return a;
else return b;
}
int min(int a, int b){
if(a < b) return a;
else return b;
}
#define PI 3.14159265358979323846264338327950
int main(){
int a,b,h,m;
scanf("%d%d%d%d",&a, &b, &h, &m);
/* double angle = abs( ((double)h + (double)m/60.0) * 30.0 - (double)m * 6.0 );
double rad = (angle /180.0)* PI;*/
double rad = (( ((double)h + (double)m/60.0) * 30.0 - (double)m * 6.0 ) / 180.0) * M_PI;
//printf("%.10f ",h);
double ans = sqrt((double)a*a + (double)b*b -(double)2*a*b*cos(rad));
printf("%.11f",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171716/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171716/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 [6 x i8] c"%.11f\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: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #1 {
entry:
%a = alloca i32, align 4
%b = alloca i32, align 4
%h = alloca i32, align 4
%m = alloca i32, align 4
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 void @llvm.lifetime.start.p0(i64 4, ptr nonnull %h) #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 %a, ptr noundef nonnull %b, ptr noundef nonnull %h, ptr noundef nonnull %m)
%0 = load i32, ptr %h, align 4, !tbaa !5
%conv = sitofp i32 %0 to double
%1 = load i32, ptr %m, align 4, !tbaa !5
%conv1 = sitofp i32 %1 to double
%div = fdiv double %conv1, 6.000000e+01
%add = fadd double %div, %conv
%neg = fmul double %conv1, -6.000000e+00
%2 = call double @llvm.fmuladd.f64(double %add, double 3.000000e+01, double %neg)
%div4 = fdiv double %2, 1.800000e+02
%mul = fmul double %div4, 0x400921FB54442D18
%3 = load i32, ptr %a, align 4, !tbaa !5
%conv5 = sitofp i32 %3 to double
%4 = load i32, ptr %b, align 4, !tbaa !5
%conv8 = sitofp i32 %4 to double
%mul10 = fmul double %conv8, %conv8
%5 = call double @llvm.fmuladd.f64(double %conv5, double %conv5, double %mul10)
%call15 = call double @cos(double noundef %mul) #7
%6 = fmul double %conv5, -2.000000e+00
%neg17 = fmul double %6, %conv8
%7 = call double @llvm.fmuladd.f64(double %neg17, double %call15, double %5)
%call18 = call double @sqrt(double noundef %7) #7
%call19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %call18)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %m) #7
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %h) #7
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #7
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #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 speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4
; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #5
; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #6
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #6
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 = { 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 #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"}
|
#include<stdio.h>
int main()
{
int n,m;
int a[100];
int b[100];
int i;
scanf("%d%d",&n,&m);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(int j=0;j<m;j++)
{
scanf("%d",&b[j]);
}
for(i=0;i<n;i++)
{
for(int j=m-1;j>=0;j--)
{
if(b[j]==a[i])
{
printf("%d ",a[i]);
}
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17176/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17176/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 \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
%a = alloca [100 x i32], align 16
%b = alloca [100 x i32], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #3
call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %a) #3
call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %b) #3
%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
%cmp42 = icmp sgt i32 %0, 0
br i1 %cmp42, label %for.body, label %for.cond2.preheader
for.cond2.preheader: ; preds = %for.body, %entry
%1 = load i32, ptr %m, align 4, !tbaa !5
%cmp344 = icmp sgt i32 %1, 0
br i1 %cmp344, label %for.body4, label %for.end31
for.body: ; preds = %entry, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [100 x i32], ptr %a, 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.cond11.preheader: ; preds = %for.body4
%.pre = load i32, ptr %n, align 4, !tbaa !5
%4 = icmp slt i32 %5, 1
%cmp1249 = icmp slt i32 %.pre, 1
%brmerge = or i1 %cmp1249, %4
br i1 %brmerge, label %for.end31, label %for.body13
for.body4: ; preds = %for.cond2.preheader, %for.body4
%indvars.iv53 = phi i64 [ %indvars.iv.next54, %for.body4 ], [ 0, %for.cond2.preheader ]
%arrayidx6 = getelementptr inbounds [100 x i32], ptr %b, i64 0, i64 %indvars.iv53
%call7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx6)
%indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
%5 = load i32, ptr %m, align 4, !tbaa !5
%6 = sext i32 %5 to i64
%cmp3 = icmp slt i64 %indvars.iv.next54, %6
br i1 %cmp3, label %for.body4, label %for.cond11.preheader, !llvm.loop !11
for.body13: ; preds = %for.cond11.preheader, %for.cond.cleanup17
%7 = phi i32 [ %10, %for.cond.cleanup17 ], [ %.pre, %for.cond11.preheader ]
%indvars.iv59 = phi i64 [ %indvars.iv.next60, %for.cond.cleanup17 ], [ 0, %for.cond11.preheader ]
%8 = load i32, ptr %m, align 4, !tbaa !5
%cmp1647 = icmp sgt i32 %8, 0
br i1 %cmp1647, label %for.body18.lr.ph, label %for.cond.cleanup17
for.body18.lr.ph: ; preds = %for.body13
%arrayidx22 = getelementptr inbounds [100 x i32], ptr %a, i64 0, i64 %indvars.iv59
%9 = zext i32 %8 to i64
br label %for.body18
for.cond.cleanup17.loopexit: ; preds = %for.inc27
%.pre63 = load i32, ptr %n, align 4, !tbaa !5
br label %for.cond.cleanup17
for.cond.cleanup17: ; preds = %for.cond.cleanup17.loopexit, %for.body13
%10 = phi i32 [ %.pre63, %for.cond.cleanup17.loopexit ], [ %7, %for.body13 ]
%indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
%11 = sext i32 %10 to i64
%cmp12 = icmp slt i64 %indvars.iv.next60, %11
br i1 %cmp12, label %for.body13, label %for.end31, !llvm.loop !12
for.body18: ; preds = %for.body18.lr.ph, %for.inc27
%indvars.iv56 = phi i64 [ %9, %for.body18.lr.ph ], [ %indvars.iv.next57, %for.inc27 ]
%indvars.iv.next57 = add nsw i64 %indvars.iv56, -1
%idxprom19 = and i64 %indvars.iv.next57, 4294967295
%arrayidx20 = getelementptr inbounds [100 x i32], ptr %b, i64 0, i64 %idxprom19
%12 = load i32, ptr %arrayidx20, align 4, !tbaa !5
%13 = load i32, ptr %arrayidx22, align 4, !tbaa !5
%cmp23 = icmp eq i32 %12, %13
br i1 %cmp23, label %if.then, label %for.inc27
if.then: ; preds = %for.body18
%call26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %12)
br label %for.inc27
for.inc27: ; preds = %for.body18, %if.then
%cmp16 = icmp ugt i64 %indvars.iv56, 1
br i1 %cmp16, label %for.body18, label %for.cond.cleanup17.loopexit, !llvm.loop !14
for.end31: ; preds = %for.cond.cleanup17, %for.cond11.preheader, %for.cond2.preheader
call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %b) #3
call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %a) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %m) #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: 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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10, !13}
!13 = !{!"llvm.loop.unswitch.partial.disable"}
!14 = distinct !{!14, !10}
|
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#define PI 3.141592653589793
#define MOD 1000000007
//qsort用、昇順
int compare_int(const void *a, const void *b)
{
return *(int*)a-*(int*)b;
}
//qsort(data, 10, sizeof(int), compare_int)
int main(){
double a, b, h, m;
scanf("%lf%lf%lf%lf", &a, &b, &h, &m);
double theta = fabs(11*m-60*h);
//printf("%f\n", theta);
double cosx = cos(theta*PI/360);
//printf("%f\n", cosx);
//printf("%f, %f, %f\n", a*a, b*b, 2*a*b*cosx);
double ans = sqrt(a*a - 2*a*b*cosx + b*b);
printf("%10.10lf\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171802/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171802/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 [13 x i8] c"%lf%lf%lf%lf\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%10.10lf\0A\00", align 1
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define dso_local i32 @compare_int(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
%sub = sub nsw i32 %0, %1
ret i32 %sub
}
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #1 {
entry:
%a = alloca double, align 8
%b = alloca double, align 8
%h = alloca double, align 8
%m = alloca double, align 8
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 void @llvm.lifetime.start.p0(i64 8, ptr nonnull %h) #6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %m) #6
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %h, ptr noundef nonnull %m)
%0 = load double, ptr %m, align 8, !tbaa !9
%1 = load double, ptr %h, align 8, !tbaa !9
%neg = fmul double %1, -6.000000e+01
%2 = call double @llvm.fmuladd.f64(double %0, double 1.100000e+01, double %neg)
%3 = call double @llvm.fabs.f64(double %2)
%mul = fmul double %3, 0x400921FB54442D18
%div = fdiv double %mul, 3.600000e+02
%call2 = call double @cos(double noundef %div) #6
%4 = load double, ptr %a, align 8, !tbaa !9
%5 = load double, ptr %b, align 8, !tbaa !9
%6 = fmul double %4, -2.000000e+00
%7 = fmul double %6, %5
%neg7 = fmul double %call2, %7
%8 = call double @llvm.fmuladd.f64(double %4, double %4, double %neg7)
%9 = call double @llvm.fmuladd.f64(double %5, double %5, double %8)
%call9 = call double @sqrt(double noundef %9) #6
%call10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %call9)
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %m) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %h) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %b) #6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %a) #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 double @llvm.fmuladd.f64(double, double, double) #4
; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #4
; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #5
; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double 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
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 speculatable willreturn memory(none) }
attributes #5 = { 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 #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 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
|
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
#include<math.h>
int main(){
double pai=3.14159265358;
int A,B,H,M;
scanf("%d %d %d %d",&A,&B,&H,&M);
double Aw,Bw,Ar,Br;
Aw=(2*pai)/(12*60);
Bw=(2*pai)/60;
Ar=Aw*((H*60)+M);
Br=Bw*M;
double C;
C=pow(A,2)+pow(B,2)-2*A*B*cos(Ar-Br);
C=pow(C,0.5);
printf("%.9f\n",C);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171846/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171846/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 [6 x i8] c"%.9f\0A\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
%H = alloca i32, align 4
%M = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %A) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %B) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %H) #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 %A, ptr noundef nonnull %B, ptr noundef nonnull %H, ptr noundef nonnull %M)
%0 = load i32, ptr %H, align 4, !tbaa !5
%mul3 = mul nsw i32 %0, 60
%1 = load i32, ptr %M, align 4, !tbaa !5
%add = add nsw i32 %mul3, %1
%conv = sitofp i32 %add to double
%mul4 = fmul double %conv, 0x3F81DF46A2525FF7
%conv5 = sitofp i32 %1 to double
%mul6 = fmul double %conv5, 0x3FBACEE9F37B8FF3
%2 = load i32, ptr %A, align 4, !tbaa !5
%conv7 = sitofp i32 %2 to double
%square = fmul double %conv7, %conv7
%3 = load i32, ptr %B, align 4, !tbaa !5
%conv9 = sitofp i32 %3 to double
%square21 = fmul double %conv9, %conv9
%add11 = fadd double %square, %square21
%mul12 = shl nsw i32 %2, 1
%mul13 = mul nsw i32 %mul12, %3
%conv14 = sitofp i32 %mul13 to double
%sub = fsub double %mul4, %mul6
%call15 = call double @cos(double noundef %sub) #5
%neg = fneg double %conv14
%4 = call double @llvm.fmuladd.f64(double %neg, double %call15, double %add11)
%call17 = call double @pow(double noundef %4, double noundef 5.000000e-01) #5
%call18 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %call17)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %M) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %H) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %B) #5
call void @llvm.lifetime.end.p0(i64 4, 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(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 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 = { 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"}
|
#include<stdio.h>
int main()
{
int n,m,i,j;
scanf("%d %d",&n,&m);
int ara1[n],ara2[m];
for(i=0;i<n;i++)
{
scanf("%d",&ara1[i]);
}
for(i=0;i<m;i++)
{
scanf("%d",&ara2[i]);
}
for(i=0;i<n;i++)
{
for(j=0;j<m;j++)
{
if(ara1[i]==ara2[j])
{
printf("%d ",ara1[i]);
}
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17189/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17189/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 \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) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #4
%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 i32, i64 %1, align 16
%3 = load i32, ptr %m, align 4, !tbaa !5
%4 = zext i32 %3 to i64
%vla1 = alloca i32, i64 %4, align 16
%5 = load i32, ptr %n, align 4, !tbaa !5
%cmp43 = icmp sgt i32 %5, 0
br i1 %cmp43, label %for.body, label %for.cond3.preheader
for.cond3.preheader.loopexit: ; preds = %for.body
%.pre = load i32, ptr %m, align 4, !tbaa !5
br label %for.cond3.preheader
for.cond3.preheader: ; preds = %for.cond3.preheader.loopexit, %entry
%6 = phi i32 [ %8, %for.cond3.preheader.loopexit ], [ %5, %entry ]
%7 = phi i32 [ %.pre, %for.cond3.preheader.loopexit ], [ %3, %entry ]
%cmp445 = icmp sgt i32 %7, 0
br i1 %cmp445, label %for.body5, label %for.cond12.preheader
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
%call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx)
%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.cond3.preheader.loopexit, !llvm.loop !9
for.cond12.preheader.loopexit: ; preds = %for.body5
%.pre62 = load i32, ptr %n, align 4, !tbaa !5
br label %for.cond12.preheader
for.cond12.preheader: ; preds = %for.cond12.preheader.loopexit, %for.cond3.preheader
%10 = phi i32 [ %13, %for.cond12.preheader.loopexit ], [ %7, %for.cond3.preheader ]
%11 = phi i32 [ %.pre62, %for.cond12.preheader.loopexit ], [ %6, %for.cond3.preheader ]
%cmp1349 = icmp sgt i32 %11, 0
%12 = icmp sgt i32 %10, 0
%or.cond = and i1 %cmp1349, %12
br i1 %or.cond, label %for.cond15.preheader, label %for.end31
for.body5: ; preds = %for.cond3.preheader, %for.body5
%indvars.iv53 = phi i64 [ %indvars.iv.next54, %for.body5 ], [ 0, %for.cond3.preheader ]
%arrayidx7 = getelementptr inbounds i32, ptr %vla1, i64 %indvars.iv53
%call8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx7)
%indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
%13 = load i32, ptr %m, align 4, !tbaa !5
%14 = sext i32 %13 to i64
%cmp4 = icmp slt i64 %indvars.iv.next54, %14
br i1 %cmp4, label %for.body5, label %for.cond12.preheader.loopexit, !llvm.loop !11
for.cond15.preheader: ; preds = %for.cond12.preheader, %for.inc29
%15 = phi i32 [ %23, %for.inc29 ], [ %11, %for.cond12.preheader ]
%16 = phi i32 [ %24, %for.inc29 ], [ %10, %for.cond12.preheader ]
%17 = phi i32 [ %25, %for.inc29 ], [ %10, %for.cond12.preheader ]
%indvars.iv59 = phi i64 [ %indvars.iv.next60, %for.inc29 ], [ 0, %for.cond12.preheader ]
%cmp1647 = icmp sgt i32 %17, 0
br i1 %cmp1647, label %for.body17.lr.ph, label %for.inc29
for.body17.lr.ph: ; preds = %for.cond15.preheader
%arrayidx19 = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv59
br label %for.body17
for.body17: ; preds = %for.body17.lr.ph, %for.inc26
%18 = phi i32 [ %16, %for.body17.lr.ph ], [ %21, %for.inc26 ]
%indvars.iv56 = phi i64 [ 0, %for.body17.lr.ph ], [ %indvars.iv.next57, %for.inc26 ]
%19 = load i32, ptr %arrayidx19, align 4, !tbaa !5
%arrayidx21 = getelementptr inbounds i32, ptr %vla1, i64 %indvars.iv56
%20 = load i32, ptr %arrayidx21, align 4, !tbaa !5
%cmp22 = icmp eq i32 %19, %20
br i1 %cmp22, label %if.then, label %for.inc26
if.then: ; preds = %for.body17
%call25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %19)
%.pre63 = load i32, ptr %m, align 4, !tbaa !5
br label %for.inc26
for.inc26: ; preds = %for.body17, %if.then
%21 = phi i32 [ %18, %for.body17 ], [ %.pre63, %if.then ]
%indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
%22 = sext i32 %21 to i64
%cmp16 = icmp slt i64 %indvars.iv.next57, %22
br i1 %cmp16, label %for.body17, label %for.inc29.loopexit, !llvm.loop !12
for.inc29.loopexit: ; preds = %for.inc26
%.pre64 = load i32, ptr %n, align 4, !tbaa !5
br label %for.inc29
for.inc29: ; preds = %for.inc29.loopexit, %for.cond15.preheader
%23 = phi i32 [ %.pre64, %for.inc29.loopexit ], [ %15, %for.cond15.preheader ]
%24 = phi i32 [ %21, %for.inc29.loopexit ], [ %16, %for.cond15.preheader ]
%25 = phi i32 [ %21, %for.inc29.loopexit ], [ %17, %for.cond15.preheader ]
%indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
%26 = sext i32 %23 to i64
%cmp13 = icmp slt i64 %indvars.iv.next60, %26
br i1 %cmp13, label %for.cond15.preheader, label %for.end31, !llvm.loop !13
for.end31: ; preds = %for.inc29, %for.cond12.preheader
call void @llvm.stackrestore.p0(ptr %2)
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 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}
!14 = !{!"llvm.loop.unswitch.partial.disable"}
|
#include <stdio.h>
#include<string.h>
int main(void){
char c[40];
int a;
scanf("%s",&c);
for(a=strlen(c)-1; a>= 0;a--){
printf("%c",c[a]);
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171947/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171947/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
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%c = alloca [40 x i8], align 16
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %c) #5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %c)
%call1 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %c) #6
%0 = trunc i64 %call1 to i32
%a.09 = add i32 %0, -1
%cmp10 = icmp sgt i32 %a.09, -1
br i1 %cmp10, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%a.011 = phi i32 [ %a.0, %for.body ], [ %a.09, %entry ]
%idxprom = zext i32 %a.011 to i64
%arrayidx = getelementptr inbounds [40 x i8], ptr %c, i64 0, i64 %idxprom
%1 = load i8, ptr %arrayidx, align 1, !tbaa !5
%conv3 = sext i8 %1 to i32
%putchar8 = call i32 @putchar(i32 %conv3)
%a.0 = add nsw i32 %a.011, -1
%cmp.not = icmp eq i32 %a.011, 0
br i1 %cmp.not, label %for.end, label %for.body, !llvm.loop !8
for.end: ; preds = %for.body, %entry
%putchar = call i32 @putchar(i32 10)
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %c) #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 @putchar(i32 noundef) 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"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
|
#include<stdio.h>
#include<string.h>
int main(){
int i;
char s[30];
scanf("%s",s);
for(i=strlen(s)-1;i>-1;i--)printf("%c",s[i]);
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171990/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171990/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
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%s = alloca [30 x i8], align 16
call void @llvm.lifetime.start.p0(i64 30, ptr nonnull %s) #5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %s)
%call2 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %s) #6
%0 = trunc i64 %call2 to i32
%i.010 = add i32 %0, -1
%cmp11 = icmp sgt i32 %i.010, -1
br i1 %cmp11, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%i.012 = phi i32 [ %i.0, %for.body ], [ %i.010, %entry ]
%idxprom = zext i32 %i.012 to i64
%arrayidx = getelementptr inbounds [30 x i8], ptr %s, i64 0, i64 %idxprom
%1 = load i8, ptr %arrayidx, align 1, !tbaa !5
%conv4 = sext i8 %1 to i32
%putchar9 = call i32 @putchar(i32 %conv4)
%i.0 = add nsw i32 %i.012, -1
%cmp.not = icmp eq i32 %i.012, 0
br i1 %cmp.not, label %for.end, label %for.body, !llvm.loop !8
for.end: ; preds = %for.body, %entry
%putchar = call i32 @putchar(i32 10)
call void @llvm.lifetime.end.p0(i64 30, ptr nonnull %s) #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 @putchar(i32 noundef) 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"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
|
#include<stdio.h>
int main()
{
int n,m;
scanf("%d %d",&n,&m);
int i,j,k;
int arr[n];
int brr[n];
int crr[m];
for(i=0;i<n;i++)
{
scanf("%d",&arr[i]);
brr[i]=0;
}
for(i=0;i<m;i++)
{
scanf("%d",&crr[i]);
for(j=0;j<n;j++)
{
if(arr[j]==crr[i])
{
brr[j]=1;
break;
}
}
}
for(i=0;i<n;i++)
{
if(brr[i]==1)
printf("%d ",arr[i]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17204/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17204/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 \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) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #4
%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 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
%5 = load i32, ptr %m, align 4, !tbaa !5
%6 = zext i32 %5 to i64
%vla2 = alloca i32, i64 %6, align 16
%cmp56 = icmp sgt i32 %3, 0
br i1 %cmp56, label %for.body, label %for.cond6.preheader
for.cond6.preheader.loopexit: ; preds = %for.body
%.pre = load i32, ptr %m, align 4, !tbaa !5
br label %for.cond6.preheader
for.cond6.preheader: ; preds = %for.cond6.preheader.loopexit, %entry
%7 = phi i32 [ %9, %for.cond6.preheader.loopexit ], [ %3, %entry ]
%8 = phi i32 [ %.pre, %for.cond6.preheader.loopexit ], [ %5, %entry ]
%cmp760 = icmp sgt i32 %8, 0
br i1 %cmp760, label %for.body8, label %for.cond28.preheader
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
%call3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx)
%arrayidx5 = getelementptr inbounds i32, ptr %vla1, i64 %indvars.iv
store i32 0, ptr %arrayidx5, align 4, !tbaa !5
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%9 = load i32, ptr %n, align 4, !tbaa !5
%10 = sext i32 %9 to i64
%cmp = icmp slt i64 %indvars.iv.next, %10
br i1 %cmp, label %for.body, label %for.cond6.preheader.loopexit, !llvm.loop !9
for.cond28.preheader: ; preds = %for.inc25, %for.cond6.preheader
%11 = phi i32 [ %7, %for.cond6.preheader ], [ %12, %for.inc25 ]
%cmp2962 = icmp sgt i32 %11, 0
br i1 %cmp2962, label %for.body30, label %for.end41
for.body8: ; preds = %for.cond6.preheader, %for.inc25
%indvars.iv69 = phi i64 [ %indvars.iv.next70, %for.inc25 ], [ 0, %for.cond6.preheader ]
%arrayidx10 = getelementptr inbounds i32, ptr %vla2, i64 %indvars.iv69
%call11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx10)
%12 = load i32, ptr %n, align 4, !tbaa !5
%cmp1358 = icmp sgt i32 %12, 0
br i1 %cmp1358, label %for.body14.lr.ph, label %for.inc25
for.body14.lr.ph: ; preds = %for.body8
%13 = load i32, ptr %arrayidx10, align 4, !tbaa !5
%wide.trip.count = zext i32 %12 to i64
br label %for.body14
for.cond12: ; preds = %for.body14
%indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
%exitcond.not = icmp eq i64 %indvars.iv.next67, %wide.trip.count
br i1 %exitcond.not, label %for.inc25, label %for.body14, !llvm.loop !11
for.body14: ; preds = %for.body14.lr.ph, %for.cond12
%indvars.iv66 = phi i64 [ 0, %for.body14.lr.ph ], [ %indvars.iv.next67, %for.cond12 ]
%arrayidx16 = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv66
%14 = load i32, ptr %arrayidx16, align 4, !tbaa !5
%cmp19 = icmp eq i32 %14, %13
br i1 %cmp19, label %if.then, label %for.cond12
if.then: ; preds = %for.body14
%arrayidx21 = getelementptr inbounds i32, ptr %vla1, i64 %indvars.iv66
store i32 1, ptr %arrayidx21, align 4, !tbaa !5
br label %for.inc25
for.inc25: ; preds = %for.cond12, %for.body8, %if.then
%indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
%15 = load i32, ptr %m, align 4, !tbaa !5
%16 = sext i32 %15 to i64
%cmp7 = icmp slt i64 %indvars.iv.next70, %16
br i1 %cmp7, label %for.body8, label %for.cond28.preheader, !llvm.loop !12
for.body30: ; preds = %for.cond28.preheader, %for.inc39
%17 = phi i32 [ %20, %for.inc39 ], [ %11, %for.cond28.preheader ]
%indvars.iv72 = phi i64 [ %indvars.iv.next73, %for.inc39 ], [ 0, %for.cond28.preheader ]
%arrayidx32 = getelementptr inbounds i32, ptr %vla1, i64 %indvars.iv72
%18 = load i32, ptr %arrayidx32, align 4, !tbaa !5
%cmp33 = icmp eq i32 %18, 1
br i1 %cmp33, label %if.then34, label %for.inc39
if.then34: ; preds = %for.body30
%arrayidx36 = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv72
%19 = load i32, ptr %arrayidx36, align 4, !tbaa !5
%call37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %19)
%.pre75 = load i32, ptr %n, align 4, !tbaa !5
br label %for.inc39
for.inc39: ; preds = %for.body30, %if.then34
%20 = phi i32 [ %17, %for.body30 ], [ %.pre75, %if.then34 ]
%indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
%21 = sext i32 %20 to i64
%cmp29 = icmp slt i64 %indvars.iv.next73, %21
br i1 %cmp29, label %for.body30, label %for.end41, !llvm.loop !13
for.end41: ; preds = %for.inc39, %for.cond28.preheader
call void @llvm.stackrestore.p0(ptr %2)
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 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}
|
#include<stdio.h>
int main(void)
{
char str[100];
int i;
scanf("%s",str);
i=0;
while(str[i]!='\0')
{
i++;
}
i--;
while(i>=0)
{
putchar(str[i]);
i--;
}
putchar('\n');
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172083/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172083/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
@stdout = external local_unnamed_addr global ptr, align 8
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%str = alloca [100 x i8], align 16
call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %str) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %str)
br label %while.cond
while.cond: ; preds = %while.cond, %entry
%indvars.iv = phi i64 [ %indvars.iv.next, %while.cond ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [100 x i8], ptr %str, 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 %while.cond2.preheader, label %while.cond, !llvm.loop !8
while.cond2.preheader: ; preds = %while.cond
%1 = and i64 %indvars.iv, 4294967295
%cmp319.not = icmp eq i64 %1, 0
br i1 %cmp319.not, label %while.end11, label %while.body5
while.body5: ; preds = %while.cond2.preheader, %while.body5
%indvars.iv22 = phi i64 [ %indvars.iv.next23, %while.body5 ], [ %indvars.iv, %while.cond2.preheader ]
%indvars.iv.next23 = add nsw i64 %indvars.iv22, -1
%idxprom6 = and i64 %indvars.iv.next23, 4294967295
%arrayidx7 = getelementptr inbounds [100 x i8], ptr %str, i64 0, i64 %idxprom6
%2 = load i8, ptr %arrayidx7, align 1, !tbaa !5
%conv8 = sext i8 %2 to i32
%3 = load ptr, ptr @stdout, align 8, !tbaa !10
%call.i = call i32 @putc(i32 noundef %conv8, ptr noundef %3)
%4 = icmp sgt i64 %indvars.iv22, 1
br i1 %4, label %while.body5, label %while.end11, !llvm.loop !12
while.end11: ; preds = %while.body5, %while.cond2.preheader
%5 = load ptr, ptr @stdout, align 8, !tbaa !10
%call.i18 = call i32 @putc(i32 noundef 10, ptr noundef %5)
call void @llvm.lifetime.end.p0(i64 100, 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: 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 @putc(i32 noundef, ptr nocapture noundef) 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !6, i64 0}
!12 = distinct !{!12, !9}
|
//1521159
//AOJ0006
#include<stdio.h>
#include<string.h>
#define MAX 1000
int main()
{
int i,len;
char str[MAX];
while (1)
{
scanf("%s", &str);
len = strlen(str);
if (0 <= len && len <= 20){
break;
}
}
for (i=len-1; i >= 0; i--){
printf("%c", str[i]);
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172126/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172126/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
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%str = alloca [1000 x i8], align 16
call void @llvm.lifetime.start.p0(i64 1000, ptr nonnull %str) #5
br label %while.cond
while.cond: ; preds = %while.cond, %entry
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %str)
%call1 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %str) #6
%conv = trunc i64 %call1 to i32
%or.cond = icmp ult i32 %conv, 21
br i1 %or.cond, label %for.cond.preheader, label %while.cond
for.cond.preheader: ; preds = %while.cond
%cmp515.not = icmp eq i32 %conv, 0
br i1 %cmp515.not, label %for.end, label %for.body.preheader
for.body.preheader: ; preds = %for.cond.preheader
%0 = and i64 %call1, 4294967295
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 ]
%indvars.iv.next = add nsw i64 %indvars.iv, -1
%idxprom = and i64 %indvars.iv.next, 4294967295
%arrayidx = getelementptr inbounds [1000 x i8], ptr %str, i64 0, i64 %idxprom
%1 = load i8, ptr %arrayidx, align 1, !tbaa !5
%conv7 = sext i8 %1 to i32
%putchar14 = call i32 @putchar(i32 %conv7)
%2 = trunc i64 %indvars.iv to i32
%cmp5 = icmp sgt i32 %2, 1
br i1 %cmp5, label %for.body, label %for.end, !llvm.loop !8
for.end: ; preds = %for.body, %for.cond.preheader
%putchar = call i32 @putchar(i32 10)
call void @llvm.lifetime.end.p0(i64 1000, ptr nonnull %str) #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 @putchar(i32 noundef) 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"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
int main(void)
{
int i;
int qty;
char str[21];
for(i=0;i<21;i++)
{
str[i] = 'm';
}
//gets(str);
fgets(str,21,stdin);
for(i=0;i<21;i++)
{
if(str[i] == '\0')
{
qty = i;
}
}
for(i=(qty-1);i>=0;i--)
{
printf("%c",str[i]);
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172177/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172177/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"
@stdin = external local_unnamed_addr global ptr, align 8
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%str = alloca [21 x i8], align 16
call void @llvm.lifetime.start.p0(i64 21, ptr nonnull %str) #5
call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(21) %str, i8 109, i64 21, i1 false), !tbaa !5
%0 = load ptr, ptr @stdin, align 8, !tbaa !8
%call = call ptr @fgets(ptr noundef nonnull %str, i32 noundef 21, ptr noundef %0)
%arrayidx5.1 = getelementptr inbounds [21 x i8], ptr %str, i64 0, i64 1
%1 = load i8, ptr %arrayidx5.1, align 1, !tbaa !5
%cmp6.1 = icmp eq i8 %1, 0
%spec.select.1 = zext i1 %cmp6.1 to i32
%arrayidx5.2 = getelementptr inbounds [21 x i8], ptr %str, i64 0, i64 2
%2 = load i8, ptr %arrayidx5.2, align 2, !tbaa !5
%cmp6.2 = icmp eq i8 %2, 0
%spec.select.2 = select i1 %cmp6.2, i32 2, i32 %spec.select.1
%arrayidx5.3 = getelementptr inbounds [21 x i8], ptr %str, i64 0, i64 3
%3 = load i8, ptr %arrayidx5.3, align 1, !tbaa !5
%cmp6.3 = icmp eq i8 %3, 0
%spec.select.3 = select i1 %cmp6.3, i32 3, i32 %spec.select.2
%arrayidx5.4 = getelementptr inbounds [21 x i8], ptr %str, i64 0, i64 4
%4 = load i8, ptr %arrayidx5.4, align 4, !tbaa !5
%cmp6.4 = icmp eq i8 %4, 0
%spec.select.4 = select i1 %cmp6.4, i32 4, i32 %spec.select.3
%arrayidx5.5 = getelementptr inbounds [21 x i8], ptr %str, i64 0, i64 5
%5 = load <16 x i8>, ptr %arrayidx5.5, align 1, !tbaa !5
%6 = icmp eq <16 x i8> %5, zeroinitializer
%7 = extractelement <16 x i1> %6, i64 0
%spec.select.5 = select i1 %7, i32 5, i32 %spec.select.4
%8 = extractelement <16 x i1> %6, i64 1
%spec.select.6 = select i1 %8, i32 6, i32 %spec.select.5
%9 = extractelement <16 x i1> %6, i64 2
%spec.select.7 = select i1 %9, i32 7, i32 %spec.select.6
%10 = extractelement <16 x i1> %6, i64 3
%spec.select.8 = select i1 %10, i32 8, i32 %spec.select.7
%11 = extractelement <16 x i1> %6, i64 4
%spec.select.9 = select i1 %11, i32 9, i32 %spec.select.8
%12 = extractelement <16 x i1> %6, i64 5
%spec.select.10 = select i1 %12, i32 10, i32 %spec.select.9
%13 = extractelement <16 x i1> %6, i64 6
%spec.select.11 = select i1 %13, i32 11, i32 %spec.select.10
%14 = extractelement <16 x i1> %6, i64 7
%spec.select.12 = select i1 %14, i32 12, i32 %spec.select.11
%15 = extractelement <16 x i1> %6, i64 8
%spec.select.13 = select i1 %15, i32 13, i32 %spec.select.12
%16 = extractelement <16 x i1> %6, i64 9
%spec.select.14 = select i1 %16, i32 14, i32 %spec.select.13
%17 = extractelement <16 x i1> %6, i64 10
%spec.select.15 = select i1 %17, i32 15, i32 %spec.select.14
%18 = extractelement <16 x i1> %6, i64 11
%spec.select.16 = select i1 %18, i32 16, i32 %spec.select.15
%19 = extractelement <16 x i1> %6, i64 12
%spec.select.17 = select i1 %19, i32 17, i32 %spec.select.16
%20 = extractelement <16 x i1> %6, i64 13
%spec.select.18 = select i1 %20, i32 18, i32 %spec.select.17
%21 = extractelement <16 x i1> %6, i64 14
%spec.select.19 = select i1 %21, i32 19, i32 %spec.select.18
%22 = extractelement <16 x i1> %6, i64 15
%spec.select.20 = select i1 %22, i32 20, i32 %spec.select.19
%cmp1235.not = icmp eq i32 %spec.select.20, 0
br i1 %cmp1235.not, label %for.end20, label %for.body14.preheader
for.body14.preheader: ; preds = %entry
%23 = zext i32 %spec.select.20 to i64
br label %for.body14
for.body14: ; preds = %for.body14.preheader, %for.body14
%indvars.iv = phi i64 [ %23, %for.body14.preheader ], [ %indvars.iv.next, %for.body14 ]
%indvars.iv.next = add nsw i64 %indvars.iv, -1
%idxprom15 = and i64 %indvars.iv.next, 4294967295
%arrayidx16 = getelementptr inbounds [21 x i8], ptr %str, i64 0, i64 %idxprom15
%24 = load i8, ptr %arrayidx16, align 1, !tbaa !5
%conv17 = sext i8 %24 to i32
%putchar31 = call i32 @putchar(i32 %conv17)
%cmp12 = icmp ugt i64 %indvars.iv, 1
br i1 %cmp12, label %for.body14, label %for.end20, !llvm.loop !10
for.end20: ; preds = %for.body14, %entry
%putchar = call i32 @putchar(i32 10)
call void @llvm.lifetime.end.p0(i64 21, ptr nonnull %str) #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 ptr @fgets(ptr noundef, i32 noundef, ptr nocapture 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: nofree nounwind
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #3
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, 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 = { nofree nounwind }
attributes #4 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
int main(void)
{
char str[21];
int i;
scanf("%s", str);
i = 0;
while(str[i] != '\0'){
i++;
}
while(i != 0){
printf("%c", str[i-1]);
i--;
}
printf("\n");
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172285/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172285/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
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%str = alloca [21 x i8], align 16
call void @llvm.lifetime.start.p0(i64 21, ptr nonnull %str) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %str)
br label %while.cond
while.cond: ; preds = %while.cond, %entry
%indvars.iv = phi i64 [ %indvars.iv.next, %while.cond ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [21 x i8], ptr %str, 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 %while.cond2.preheader, label %while.cond, !llvm.loop !8
while.cond2.preheader: ; preds = %while.cond
%1 = and i64 %indvars.iv, 4294967295
%cmp3.not17 = icmp eq i64 %1, 0
br i1 %cmp3.not17, label %while.end10, label %while.body5
while.body5: ; preds = %while.cond2.preheader, %while.body5
%indvars.iv20 = phi i64 [ %indvars.iv.next21, %while.body5 ], [ %indvars.iv, %while.cond2.preheader ]
%indvars.iv.next21 = add nsw i64 %indvars.iv20, -1
%arrayidx7 = getelementptr inbounds [21 x i8], ptr %str, i64 0, i64 %indvars.iv.next21
%2 = load i8, ptr %arrayidx7, align 1, !tbaa !5
%conv8 = sext i8 %2 to i32
%putchar16 = call i32 @putchar(i32 %conv8)
%3 = icmp eq i64 %indvars.iv.next21, 0
br i1 %3, label %while.end10, label %while.body5, !llvm.loop !10
while.end10: ; preds = %while.body5, %while.cond2.preheader
%putchar = call i32 @putchar(i32 10)
call void @llvm.lifetime.end.p0(i64 21, ptr nonnull %str) #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 @putchar(i32 noundef) 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"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
|
#include <stdio.h>
#include <string.h>
int main(void)
{
int i;
char t[25],s[25];
sscanf(fgets(t,sizeof(t),stdin),"%s",s);
i = strlen(s) - 1;
while(i >= 0){
printf("%c",s[i--]);
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172335/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172335/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"
@stdin = external local_unnamed_addr global ptr, align 8
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%t = alloca [25 x i8], align 16
%s = alloca [25 x i8], align 16
call void @llvm.lifetime.start.p0(i64 25, ptr nonnull %t) #5
call void @llvm.lifetime.start.p0(i64 25, ptr nonnull %s) #5
%0 = load ptr, ptr @stdin, align 8, !tbaa !5
%call = call ptr @fgets(ptr noundef nonnull %t, i32 noundef 25, ptr noundef %0)
%call2 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %call, ptr noundef nonnull @.str, ptr noundef nonnull %s) #5
%call4 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %s) #6
%1 = trunc i64 %call4 to i32
%i.011 = add i32 %1, -1
%cmp12 = icmp sgt i32 %i.011, -1
br i1 %cmp12, label %while.body, label %while.end
while.body: ; preds = %entry, %while.body
%i.013 = phi i32 [ %i.0, %while.body ], [ %i.011, %entry ]
%idxprom = zext i32 %i.013 to i64
%arrayidx = getelementptr inbounds [25 x i8], ptr %s, i64 0, i64 %idxprom
%2 = load i8, ptr %arrayidx, align 1, !tbaa !9
%conv6 = sext i8 %2 to i32
%putchar10 = call i32 @putchar(i32 %conv6)
%i.0 = add nsw i32 %i.013, -1
%cmp.not = icmp eq i32 %i.013, 0
br i1 %cmp.not, label %while.end, label %while.body, !llvm.loop !10
while.end: ; preds = %while.body, %entry
%putchar = call i32 @putchar(i32 10)
call void @llvm.lifetime.end.p0(i64 25, ptr nonnull %s) #5
call void @llvm.lifetime.end.p0(i64 25, ptr nonnull %t) #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_sscanf(ptr nocapture noundef readonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) 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 @putchar(i32 noundef) 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 = !{!"any pointer", !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"}
|
#include <stdio.h>
#include <string.h>
int main(void){
char str[20],i,j,tmp;
scanf("%s",str);
i=0;
j=strlen(str)-1;
while(i<j){
tmp=str[i];
str[i]=str[j];
str[j]=tmp;
i++;
j--;
}
printf("%s\n",str);
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172379/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172379/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
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%str = alloca [20 x i8], align 16
call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %str) #5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %str)
%call2 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %str) #6
%0 = trunc i64 %call2 to i8
%j.020 = add i8 %0, -1
%cmp21 = icmp sgt i8 %j.020, 0
br i1 %cmp21, label %while.body.preheader, label %while.end
while.body.preheader: ; preds = %entry
%1 = zext i8 %j.020 to i64
br label %while.body
while.body: ; preds = %while.body.preheader, %while.body
%indvars.iv24 = phi i64 [ 0, %while.body.preheader ], [ %indvars.iv.next25, %while.body ]
%indvars.iv = phi i64 [ %1, %while.body.preheader ], [ %indvars.iv.next, %while.body ]
%arrayidx = getelementptr inbounds [20 x i8], ptr %str, i64 0, i64 %indvars.iv24
%2 = load i8, ptr %arrayidx, align 1, !tbaa !5
%arrayidx7 = getelementptr inbounds [20 x i8], ptr %str, i64 0, i64 %indvars.iv
%3 = load i8, ptr %arrayidx7, align 1, !tbaa !5
store i8 %3, ptr %arrayidx, align 1, !tbaa !5
store i8 %2, ptr %arrayidx7, align 1, !tbaa !5
%indvars.iv.next25 = add nuw nsw i64 %indvars.iv24, 1
%indvars.iv.next = add nsw i64 %indvars.iv, -1
%cmp = icmp slt i64 %indvars.iv.next25, %indvars.iv.next
br i1 %cmp, label %while.body, label %while.end, !llvm.loop !8
while.end: ; preds = %while.body, %entry
%puts = call i32 @puts(ptr nonnull dereferenceable(1) %str)
call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %str) #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"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
#include <string.h>
int main(){
char str[20];
char c;
int i = 0;
memset(str, '\n', 20);
while((c = getchar()) != '\n'){
str[i++] = c;
}
while(i--){
printf("%c", str[i]);
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172443/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172443/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"
@stdin = external local_unnamed_addr global ptr, align 8
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%str = alloca [20 x i8], align 16
call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %str) #5
call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %str, i8 10, i64 20, i1 false)
%0 = load ptr, ptr @stdin, align 8, !tbaa !5
%call.i14 = tail call i32 @getc(ptr noundef %0)
%sext.mask15 = and i32 %call.i14, 255
%cmp.not16 = icmp eq i32 %sext.mask15, 10
br i1 %cmp.not16, label %while.end9, label %while.body
while.cond3.preheader: ; preds = %while.body
%1 = and i64 %indvars.iv.next, 4294967295
%tobool.not19 = icmp eq i64 %1, 0
br i1 %tobool.not19, label %while.end9, label %while.body4.preheader
while.body4.preheader: ; preds = %while.cond3.preheader
%sext = shl i64 %indvars.iv.next, 32
%2 = ashr exact i64 %sext, 32
br label %while.body4
while.body: ; preds = %entry, %while.body
%indvars.iv = phi i64 [ %indvars.iv.next, %while.body ], [ 0, %entry ]
%call.i18 = phi i32 [ %call.i, %while.body ], [ %call.i14, %entry ]
%conv = trunc i32 %call.i18 to i8
%indvars.iv.next = add nuw i64 %indvars.iv, 1
%arrayidx = getelementptr inbounds [20 x i8], ptr %str, i64 0, i64 %indvars.iv
store i8 %conv, ptr %arrayidx, align 1, !tbaa !9
%3 = load ptr, ptr @stdin, align 8, !tbaa !5
%call.i = tail call i32 @getc(ptr noundef %3)
%sext.mask = and i32 %call.i, 255
%cmp.not = icmp eq i32 %sext.mask, 10
br i1 %cmp.not, label %while.cond3.preheader, label %while.body, !llvm.loop !10
while.body4: ; preds = %while.body4.preheader, %while.body4
%indvars.iv22 = phi i64 [ %2, %while.body4.preheader ], [ %indvars.iv.next23, %while.body4 ]
%indvars.iv.next23 = add nsw i64 %indvars.iv22, -1
%arrayidx6 = getelementptr inbounds [20 x i8], ptr %str, i64 0, i64 %indvars.iv.next23
%4 = load i8, ptr %arrayidx6, align 1, !tbaa !9
%conv7 = sext i8 %4 to i32
%putchar13 = tail call i32 @putchar(i32 %conv7)
%5 = and i64 %indvars.iv.next23, 4294967295
%tobool.not = icmp eq i64 %5, 0
br i1 %tobool.not, label %while.end9, label %while.body4, !llvm.loop !12
while.end9: ; preds = %while.body4, %entry, %while.cond3.preheader
%putchar = tail call i32 @putchar(i32 10)
call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %str) #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: 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 @getc(ptr nocapture noundef) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @putchar(i32 noundef) 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 = { 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 = { nofree nounwind }
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 = !{!"any pointer", !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}
|
#include <stdio.h>
#include <string.h>
int main( void ) {
char str[ 21 ];
int i;
scanf( "%s", str );
for ( i = strlen( str ); i--; putchar( str[ i ] ) ) ;
putchar( '\n' );
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172494/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172494/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
@stdout = external local_unnamed_addr global ptr, align 8
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%str = alloca [21 x i8], align 16
call void @llvm.lifetime.start.p0(i64 21, ptr nonnull %str) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %str)
%call2 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %str) #5
%0 = and i64 %call2, 4294967295
%tobool.not8 = icmp eq i64 %0, 0
br i1 %tobool.not8, label %for.end, label %for.inc.preheader
for.inc.preheader: ; preds = %entry
%sext = shl i64 %call2, 32
%1 = ashr exact i64 %sext, 32
br label %for.inc
for.inc: ; preds = %for.inc.preheader, %for.inc
%indvars.iv = phi i64 [ %1, %for.inc.preheader ], [ %indvars.iv.next, %for.inc ]
%indvars.iv.next = add nsw i64 %indvars.iv, -1
%arrayidx = getelementptr inbounds [21 x i8], ptr %str, i64 0, i64 %indvars.iv.next
%2 = load i8, ptr %arrayidx, align 1, !tbaa !5
%conv3 = sext i8 %2 to i32
%3 = load ptr, ptr @stdout, align 8, !tbaa !8
%call.i = call i32 @putc(i32 noundef %conv3, ptr noundef %3)
%4 = and i64 %indvars.iv.next, 4294967295
%tobool.not = icmp eq i64 %4, 0
br i1 %tobool.not, label %for.end, label %for.inc, !llvm.loop !10
for.end: ; preds = %for.inc, %entry
%5 = load ptr, ptr @stdout, align 8, !tbaa !8
%call.i7 = call i32 @putc(i32 noundef 10, ptr noundef %5)
call void @llvm.lifetime.end.p0(i64 21, ptr nonnull %str) #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: 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 @putc(i32 noundef, ptr nocapture noundef) 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 = { 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"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
#include <string.h>
int main(int argc, const char * argv[])
{
char str[21];
scanf("%s",str);
int i;
int len = strlen(str) - 1;
for(i = len;i >= 0;i--){
printf("%c",str[i]);
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172537/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172537/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
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main(i32 noundef %argc, ptr nocapture noundef readnone %argv) local_unnamed_addr #0 {
entry:
%str = alloca [21 x i8], align 16
call void @llvm.lifetime.start.p0(i64 21, ptr nonnull %str) #5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %str)
%call2 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %str) #6
%0 = trunc i64 %call2 to i32
%i.010 = add i32 %0, -1
%cmp11 = icmp sgt i32 %i.010, -1
br i1 %cmp11, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%i.012 = phi i32 [ %i.0, %for.body ], [ %i.010, %entry ]
%idxprom = zext i32 %i.012 to i64
%arrayidx = getelementptr inbounds [21 x i8], ptr %str, i64 0, i64 %idxprom
%1 = load i8, ptr %arrayidx, align 1, !tbaa !5
%conv4 = sext i8 %1 to i32
%putchar9 = call i32 @putchar(i32 %conv4)
%i.0 = add nsw i32 %i.012, -1
%cmp.not = icmp eq i32 %i.012, 0
br i1 %cmp.not, label %for.end, label %for.body, !llvm.loop !8
for.end: ; preds = %for.body, %entry
%putchar = call i32 @putchar(i32 10)
call void @llvm.lifetime.end.p0(i64 21, ptr nonnull %str) #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 @putchar(i32 noundef) 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"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
#include <string.h>
int main(void) {
int i,n;
char t;
char buff[30];
scanf("%s", buff);
n = strlen(buff);
for(i=0;i<n/2;i++) {
t = buff[i];
buff[i] = buff[n-i-1];
buff[n-i-1] = t;
}
printf("%s\n", buff);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172580/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172580/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
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%buff = alloca [30 x i8], align 16
call void @llvm.lifetime.start.p0(i64 30, ptr nonnull %buff) #5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %buff)
%call2 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %buff) #6
%conv = trunc i64 %call2 to i32
%cmp22 = icmp sgt i32 %conv, 1
br i1 %cmp22, label %for.body.preheader, label %for.end
for.body.preheader: ; preds = %entry
%div2526 = lshr i64 %call2, 1
%wide.trip.count = and i64 %div2526, 2147483647
%xtraiter = and i64 %div2526, 1
%0 = icmp eq i64 %wide.trip.count, 1
br i1 %0, label %for.end.loopexit.unr-lcssa, label %for.body.preheader.new
for.body.preheader.new: ; preds = %for.body.preheader
%unroll_iter = sub nsw i64 %wide.trip.count, %xtraiter
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 ]
%niter = phi i64 [ 0, %for.body.preheader.new ], [ %niter.next.1, %for.body ]
%arrayidx = getelementptr inbounds [30 x i8], ptr %buff, i64 0, i64 %indvars.iv
%1 = load i8, ptr %arrayidx, align 2, !tbaa !5
%2 = xor i64 %indvars.iv, -1
%sub4 = add i64 %call2, %2
%sext = shl i64 %sub4, 32
%idxprom5 = ashr exact i64 %sext, 32
%arrayidx6 = getelementptr inbounds [30 x i8], ptr %buff, i64 0, i64 %idxprom5
%3 = load i8, ptr %arrayidx6, align 1, !tbaa !5
store i8 %3, ptr %arrayidx, align 2, !tbaa !5
store i8 %1, ptr %arrayidx6, align 1, !tbaa !5
%indvars.iv.next = or i64 %indvars.iv, 1
%arrayidx.1 = getelementptr inbounds [30 x i8], ptr %buff, i64 0, i64 %indvars.iv.next
%4 = load i8, ptr %arrayidx.1, align 1, !tbaa !5
%5 = xor i64 %indvars.iv, 4294967294
%sub4.1 = add i64 %call2, %5
%sext.1 = shl i64 %sub4.1, 32
%idxprom5.1 = ashr exact i64 %sext.1, 32
%arrayidx6.1 = getelementptr inbounds [30 x i8], ptr %buff, i64 0, i64 %idxprom5.1
%6 = load i8, ptr %arrayidx6.1, align 1, !tbaa !5
store i8 %6, ptr %arrayidx.1, align 1, !tbaa !5
store i8 %4, ptr %arrayidx6.1, align 1, !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.end.loopexit.unr-lcssa, label %for.body, !llvm.loop !8
for.end.loopexit.unr-lcssa: ; preds = %for.body, %for.body.preheader
%indvars.iv.unr = phi i64 [ 0, %for.body.preheader ], [ %indvars.iv.next.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
%arrayidx.epil = getelementptr inbounds [30 x i8], ptr %buff, i64 0, i64 %indvars.iv.unr
%7 = load i8, ptr %arrayidx.epil, align 1, !tbaa !5
%8 = xor i64 %indvars.iv.unr, -1
%sub4.epil = add i64 %call2, %8
%sext.epil = shl i64 %sub4.epil, 32
%idxprom5.epil = ashr exact i64 %sext.epil, 32
%arrayidx6.epil = getelementptr inbounds [30 x i8], ptr %buff, i64 0, i64 %idxprom5.epil
%9 = load i8, ptr %arrayidx6.epil, align 1, !tbaa !5
store i8 %9, ptr %arrayidx.epil, align 1, !tbaa !5
store i8 %7, ptr %arrayidx6.epil, align 1, !tbaa !5
br label %for.end
for.end: ; preds = %for.body.epil, %for.end.loopexit.unr-lcssa, %entry
%puts = call i32 @puts(ptr nonnull dereferenceable(1) %buff)
call void @llvm.lifetime.end.p0(i64 30, ptr nonnull %buff) #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"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
|
#include<stdio.h>
#include<string.h>
int main(){
int i,n;
char a[21];
scanf("%s",a);
n=strlen(a);
for(i=n-1;i>=0;i--)printf("%c",a[i]);
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172630/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172630/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
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca [21 x i8], align 16
call void @llvm.lifetime.start.p0(i64 21, ptr nonnull %a) #5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%call2 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %a) #6
%conv = trunc i64 %call2 to i32
%cmp10 = icmp sgt i32 %conv, 0
br i1 %cmp10, label %for.body.preheader, label %for.end
for.body.preheader: ; preds = %entry
%0 = and i64 %call2, 4294967295
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 ]
%indvars.iv.next = add nsw i64 %indvars.iv, -1
%idxprom = and i64 %indvars.iv.next, 4294967295
%arrayidx = getelementptr inbounds [21 x i8], ptr %a, i64 0, i64 %idxprom
%1 = load i8, ptr %arrayidx, align 1, !tbaa !5
%conv4 = sext i8 %1 to i32
%putchar9 = call i32 @putchar(i32 %conv4)
%cmp = icmp ugt i64 %indvars.iv, 1
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !8
for.end: ; preds = %for.body, %entry
%putchar = call i32 @putchar(i32 10)
call void @llvm.lifetime.end.p0(i64 21, 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 @putchar(i32 noundef) 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"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
|
#include<stdio.h>
int main(void)
{
int n = 0, s = 0,i = 0, j = 0;
int a0 = 0, a1 = 0, a2 = 0, a3 = 0, a4 = 0,
a5 = 0, a6 = 0, a7 = 0, a8 = 0;
int a[10][10];
int sum = 0;
int count = 0;
while(1)
{
scanf("%d %d", &n, &s);
if(n == 0 && s == 0)
{
break;
}
for(i = 0; i < 10; i++)
{
for(j = 0 ; j < 10 ; j++)
{
a[i][j] = 0;
}
}
for(i = 0; i < 10; i++)
{
for(j = 0; j < 10; j++)
{
a[i][j] = j;
}
}
if(n == 1)
{
for(a0 = 0; a0 < 10; a0++)
{
sum = a[0][a0];
if(sum == s)
{
count++;
}
sum = 0;
}
}
else if(n == 2)
{
for(a0 = 0; a0 < 10; a0++)
{
for(a1 = a0+1; a1 < 10; a1++)
{
sum = a[0][a0] + a[1][a1];
if(sum == s)
{
count++;
}
sum = 0;
}}
}
else if(n == 3)
{
for(a0 = 0; a0 < 10; a0++)
{
for(a1 = a0+1; a1 < 10; a1++)
{
for(a2 = a1+1; a2 < 10; a2++)
{
sum = a[0][a0] + a[1][a1] + a[2][a2];
if(sum == s)
{
count++;
}
sum = 0;
}}}
}
else if(n == 4)
{
for(a0 = 0; a0 < 10; a0++)
{
for(a1 = a0+1; a1 < 10; a1++)
{
for(a2 = a1+1; a2 < 10; a2++)
{
for(a3 = a2+1; a3 < 10; a3++)
{
sum = a[0][a0] + a[1][a1] + a[2][a2] + a[3][a3];
if(sum == s)
{
count++;
}
sum = 0;
}}}}
}
else if(n == 5)
{
for(a0 = 0; a0 < 10; a0++)
{
for(a1 = a0+1; a1 < 10; a1++)
{
for(a2 = a1+1; a2 < 10; a2++)
{
for(a3 = a2+1; a3 < 10; a3++)
{
for(a4 = a3+1; a4 < 10; a4++)
{
sum = a[0][a0] + a[1][a1] + a[2][a2] + a[3][a3] + a[4][a4];
if(sum == s)
{
count++;
}
sum = 0;
}}}}}
}
else if(n == 6)
{
for(a0 = 0; a0 < 10; a0++)
{
for(a1 = a0+1; a1 < 10; a1++)
{
for(a2 = a1+1; a2 < 10; a2++)
{
for(a3 = a2+1; a3 < 10; a3++)
{
for(a4 = a3+1; a4 < 10; a4++)
{
for(a5 = a4+1; a5 < 10; a5++)
{
sum = a[0][a0] + a[1][a1] + a[2][a2] + a[3][a3] + a[4][a4]
+ a[5][a5];
if(sum == s)
{
count++;
}
sum = 0;
}}}}}}
}
else if(n == 7)
{
for(a0 = 0; a0 < 10; a0++)
{
for(a1 = a0+1; a1 < 10; a1++)
{
for(a2 = a1+1; a2 < 10; a2++)
{
for(a3 = a2+1; a3 < 10; a3++)
{
for(a4 = a3+1; a4 < 10; a4++)
{
for(a5 = a4+1; a5 < 10; a5++)
{
for(a6 = a5+1; a6 < 10; a6++)
{
sum = a[0][a0] + a[1][a1] + a[2][a2] + a[3][a3] + a[4][a4]
+ a[5][a5] + a[6][a6];
if(sum == s)
{
count++;
}
sum = 0;
}}}}}}}
}
else if(n == 8)
{
for(a0 = 0; a0 < 10; a0++)
{
for(a1 = a0+1; a1 < 10; a1++)
{
for(a2 = a1+1; a2 < 10; a2++)
{
for(a3 = a2+1; a3 < 10; a3++)
{
for(a4 = a3+1; a4 < 10; a4++)
{
for(a5 = a4+1; a5 < 10; a5++)
{
for(a6 = a5+1; a6 < 10; a6++)
{
for(a7 = a6+1; a7 < 10; a7++)
{
sum = a[0][a0] + a[1][a1] + a[2][a2] + a[3][a3] + a[4][a4]
+ a[5][a5] + a[6][a6] + a[7][a7];
if(sum == s)
{
count++;
}
sum = 0;
}}}}}}}}
}
else if(n == 9)
{
for(a0 = 0; a0 < 10; a0++)
{
for(a1 = a0+1; a1 < 10; a1++)
{
for(a2 = a1+1; a2 < 10; a2++)
{
for(a3 = a2+1; a3 < 10; a3++)
{
for(a4 = a3+1; a4 < 10; a4++)
{
for(a5 = a4+1; a5 < 10; a5++)
{
for(a6 = a5+1; a6 < 10; a6++)
{
for(a7 = a6+1; a7 < 10; a7++)
{
for(a8 = a7+1; a8 < 10; a8++)
{
sum = a[0][a0] + a[1][a1] + a[2][a2] + a[3][a3] + a[4][a4]
+ a[5][a5] + a[6][a6] + a[7][a7] + a[8][a8];
if(sum == s)
{
count++;
}
sum = 0;
}}}}}}}}}
}
printf("%d\n", count);
count=0;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172689/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172689/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
%s = alloca i32, align 4
%a = alloca [10 x [10 x i32]], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #5
store i32 0, ptr %n, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %s) #5
store i32 0, ptr %s, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %a) #5
%call945 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %s)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp946 = icmp eq i32 %0, 0
%1 = load i32, ptr %s, align 4
%cmp1947 = icmp eq i32 %1, 0
%or.cond948 = select i1 %cmp946, i1 %cmp1947, i1 false
br i1 %or.cond948, label %while.end, label %for.cond.preheader.preheader
for.cond.preheader.preheader: ; preds = %entry
%arrayidx20.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 0, i64 1
%arrayidx20.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 0, i64 2
%arrayidx20.3 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 0, i64 3
%arrayidx20.4 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 0, i64 4
%arrayidx20.5 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 0, i64 5
%arrayidx20.6 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 0, i64 6
%arrayidx20.7 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 0, i64 7
%arrayidx20.8 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 0, i64 8
%arrayidx20.9 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 0, i64 9
%arrayidx20.1.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 1, i64 1
%arrayidx20.2.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 1, i64 2
%arrayidx20.3.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 1, i64 3
%arrayidx20.4.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 1, i64 4
%arrayidx20.5.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 1, i64 5
%arrayidx20.6.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 1, i64 6
%arrayidx20.7.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 1, i64 7
%arrayidx20.8.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 1, i64 8
%arrayidx20.9.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 1, i64 9
%arrayidx20.1.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 2, i64 1
%arrayidx20.2.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 2, i64 2
%arrayidx20.3.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 2, i64 3
%arrayidx20.4.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 2, i64 4
%arrayidx20.5.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 2, i64 5
%arrayidx20.6.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 2, i64 6
%arrayidx20.7.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 2, i64 7
%arrayidx20.8.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 2, i64 8
%arrayidx20.9.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 2, i64 9
%arrayidx20.1.3 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 1
%arrayidx20.5.3 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 5
%arrayidx20.9.3 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 9
%arrayidx20.1.4 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 1
%arrayidx20.5.4 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 5
%arrayidx20.9.4 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 9
%arrayidx20.1.5 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 1
%arrayidx20.5.5 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 5
%arrayidx20.9.5 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 9
%arrayidx20.1.6 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 6, i64 1
%arrayidx20.5.6 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 6, i64 5
%arrayidx20.9.6 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 6, i64 9
%arrayidx20.1.7 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 7, i64 1
%arrayidx20.5.7 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 7, i64 5
%arrayidx20.9.7 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 7, i64 9
%arrayidx20.1.8 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 8, i64 1
%arrayidx20.5.8 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 8, i64 5
%arrayidx20.9.8 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 8, i64 9
%arrayidx20.3.9 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 9, i64 3
%arrayidx20.7.9 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 9, i64 7
%arrayidx20.8.9 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 9, i64 8
%arrayidx20.9.9 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 9, i64 9
%2 = insertelement <2 x i32> poison, i32 %1, i64 0
%3 = insertelement <2 x i32> %2, i32 %0, i64 1
br label %for.cond.preheader
for.cond.preheader: ; preds = %for.cond.preheader.preheader, %if.end572
%4 = phi <2 x i32> [ %566, %if.end572 ], [ %3, %for.cond.preheader.preheader ]
call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400) %a, i8 0, i64 400, i1 false)
store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, ptr %arrayidx20.1, align 4, !tbaa !5
store <4 x i32> <i32 5, i32 6, i32 7, i32 8>, ptr %arrayidx20.5, align 4, !tbaa !5
store i32 9, ptr %arrayidx20.9, align 4, !tbaa !5
store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, ptr %arrayidx20.1.1, align 4, !tbaa !5
store <4 x i32> <i32 5, i32 6, i32 7, i32 8>, ptr %arrayidx20.5.1, align 4, !tbaa !5
store i32 9, ptr %arrayidx20.9.1, align 4, !tbaa !5
store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, ptr %arrayidx20.1.2, align 4, !tbaa !5
store <4 x i32> <i32 5, i32 6, i32 7, i32 8>, ptr %arrayidx20.5.2, align 4, !tbaa !5
store i32 9, ptr %arrayidx20.9.2, align 4, !tbaa !5
store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, ptr %arrayidx20.1.3, align 4, !tbaa !5
store <4 x i32> <i32 5, i32 6, i32 7, i32 8>, ptr %arrayidx20.5.3, align 4, !tbaa !5
store i32 9, ptr %arrayidx20.9.3, align 4, !tbaa !5
store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, ptr %arrayidx20.1.4, align 4, !tbaa !5
store <4 x i32> <i32 5, i32 6, i32 7, i32 8>, ptr %arrayidx20.5.4, align 4, !tbaa !5
store i32 9, ptr %arrayidx20.9.4, align 4, !tbaa !5
store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, ptr %arrayidx20.1.5, align 4, !tbaa !5
store <4 x i32> <i32 5, i32 6, i32 7, i32 8>, ptr %arrayidx20.5.5, align 4, !tbaa !5
store i32 9, ptr %arrayidx20.9.5, align 4, !tbaa !5
store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, ptr %arrayidx20.1.6, align 4, !tbaa !5
store <4 x i32> <i32 5, i32 6, i32 7, i32 8>, ptr %arrayidx20.5.6, align 4, !tbaa !5
store i32 9, ptr %arrayidx20.9.6, align 4, !tbaa !5
store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, ptr %arrayidx20.1.7, align 4, !tbaa !5
store <4 x i32> <i32 5, i32 6, i32 7, i32 8>, ptr %arrayidx20.5.7, align 4, !tbaa !5
store i32 9, ptr %arrayidx20.9.7, align 4, !tbaa !5
store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, ptr %arrayidx20.1.8, align 4, !tbaa !5
store <4 x i32> <i32 5, i32 6, i32 7, i32 8>, ptr %arrayidx20.5.8, align 4, !tbaa !5
store <4 x i32> <i32 9, i32 0, i32 1, i32 2>, ptr %arrayidx20.9.8, align 4, !tbaa !5
store <4 x i32> <i32 3, i32 4, i32 5, i32 6>, ptr %arrayidx20.3.9, align 4, !tbaa !5
store i32 7, ptr %arrayidx20.7.9, align 4, !tbaa !5
store i32 8, ptr %arrayidx20.8.9, align 8, !tbaa !5
store i32 9, ptr %arrayidx20.9.9, align 4, !tbaa !5
%5 = extractelement <2 x i32> %4, i64 1
switch i32 %5, label %if.end572 [
i32 1, label %for.body31.preheader
i32 2, label %for.cond44.loopexit.9
i32 3, label %for.cond70.loopexit.9
i32 4, label %for.body110.preheader
i32 5, label %for.body159.preheader
i32 6, label %for.body219.preheader
i32 7, label %for.body290.preheader
i32 8, label %for.body372.preheader
i32 9, label %for.body465.preheader
]
for.body465.preheader: ; preds = %for.cond.preheader
%6 = extractelement <2 x i32> %4, i64 0
br label %for.body465
for.body372.preheader: ; preds = %for.cond.preheader
%7 = extractelement <2 x i32> %4, i64 0
br label %for.body372
for.body290.preheader: ; preds = %for.cond.preheader
%8 = extractelement <2 x i32> %4, i64 0
%9 = extractelement <2 x i32> %4, i64 0
%10 = extractelement <2 x i32> %4, i64 0
%11 = extractelement <2 x i32> %4, i64 0
%12 = extractelement <2 x i32> %4, i64 0
%13 = extractelement <2 x i32> %4, i64 0
br label %for.body290
for.body219.preheader: ; preds = %for.cond.preheader
%14 = extractelement <2 x i32> %4, i64 0
%15 = extractelement <2 x i32> %4, i64 0
%16 = extractelement <2 x i32> %4, i64 0
%17 = extractelement <2 x i32> %4, i64 0
%18 = extractelement <2 x i32> %4, i64 0
%19 = extractelement <2 x i32> %4, i64 0
%20 = extractelement <2 x i32> %4, i64 0
br label %for.body219
for.body159.preheader: ; preds = %for.cond.preheader
%21 = extractelement <2 x i32> %4, i64 0
br label %for.body159
for.body110.preheader: ; preds = %for.cond.preheader
%22 = extractelement <2 x i32> %4, i64 0
br label %for.body110
for.body31.preheader: ; preds = %for.cond.preheader
%23 = load <8 x i32>, ptr %a, align 16, !tbaa !5
%24 = shufflevector <2 x i32> %4, <2 x i32> poison, <8 x i32> zeroinitializer
%25 = icmp eq <8 x i32> %23, %24
%26 = load i32, ptr %arrayidx20.8, align 16, !tbaa !5
%27 = extractelement <2 x i32> %4, i64 0
%cmp35.8 = icmp eq i32 %26, %27
%inc37.8 = zext i1 %cmp35.8 to i32
%28 = load i32, ptr %arrayidx20.9, align 4, !tbaa !5
%cmp35.9 = icmp eq i32 %28, %27
%inc37.9 = zext i1 %cmp35.9 to i32
%29 = bitcast <8 x i1> %25 to i8
%30 = call i8 @llvm.ctpop.i8(i8 %29), !range !9
%31 = zext i8 %30 to i32
%op.rdx = add nuw nsw i32 %31, %inc37.8
%op.rdx1789 = add nuw nsw i32 %op.rdx, %inc37.9
br label %if.end572
for.cond44.loopexit.9: ; preds = %for.cond.preheader
%32 = load <8 x i32>, ptr %arrayidx20.1.1, align 4, !tbaa !5
%33 = load <8 x i32>, ptr %arrayidx20.2.1, align 16, !tbaa !5
%34 = load <2 x i32>, ptr %a, align 16, !tbaa !5
%35 = shufflevector <2 x i32> %34, <2 x i32> poison, <16 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1>
%36 = shufflevector <8 x i32> %32, <8 x i32> poison, <16 x i32> <i32 1, i32 0, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%37 = shufflevector <8 x i32> %33, <8 x i32> poison, <16 x i32> <i32 7, i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%38 = shufflevector <16 x i32> %36, <16 x i32> %37, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23>
%39 = add nsw <16 x i32> %38, %35
%40 = shufflevector <2 x i32> %4, <2 x i32> poison, <16 x i32> zeroinitializer
%41 = icmp eq <16 x i32> %39, %40
%42 = load <4 x i32>, ptr %arrayidx20.9.1, align 4
%43 = load <4 x i32>, ptr %arrayidx20.3.1, align 4, !tbaa !5
%44 = load i32, ptr %arrayidx20.7.1, align 4, !tbaa !5
%45 = load <2 x i32>, ptr %arrayidx20.8.1, align 8, !tbaa !5
%46 = load <4 x i32>, ptr %arrayidx20.2, align 8
%47 = load <4 x i32>, ptr %arrayidx20.4.1, align 8, !tbaa !5
%48 = load <2 x i32>, ptr %arrayidx20.5.1, align 4, !tbaa !5
%49 = shufflevector <4 x i32> %42, <4 x i32> %43, <16 x i32> <i32 0, i32 4, i32 5, i32 6, i32 7, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%50 = insertelement <16 x i32> %49, i32 %44, i64 5
%51 = shufflevector <2 x i32> %45, <2 x i32> poison, <16 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%52 = shufflevector <16 x i32> %50, <16 x i32> %51, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 16, i32 17, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%53 = shufflevector <4 x i32> %47, <4 x i32> poison, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%54 = shufflevector <16 x i32> %52, <16 x i32> %53, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 16, i32 17, i32 18, i32 19, i32 poison, i32 poison, i32 poison, i32 poison>
%55 = shufflevector <2 x i32> %45, <2 x i32> poison, <16 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%56 = shufflevector <16 x i32> %54, <16 x i32> %55, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 16, i32 17, i32 poison, i32 poison>
%57 = shufflevector <2 x i32> %48, <2 x i32> poison, <16 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%58 = shufflevector <16 x i32> %56, <16 x i32> %57, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 16, i32 17>
%59 = shufflevector <2 x i32> %34, <2 x i32> poison, <4 x i32> <i32 1, i32 poison, i32 poison, i32 poison>
%60 = shufflevector <4 x i32> %59, <4 x i32> %46, <4 x i32> <i32 0, i32 4, i32 5, i32 poison>
%61 = load i32, ptr %arrayidx20.7.1, align 4, !tbaa !5
%62 = load <2 x i32>, ptr %arrayidx20.4, align 16, !tbaa !5
%63 = shufflevector <2 x i32> %62, <2 x i32> poison, <4 x i32> <i32 0, i32 poison, i32 poison, i32 poison>
%64 = shufflevector <4 x i32> %60, <4 x i32> %63, <4 x i32> <i32 0, i32 1, i32 2, i32 4>
%65 = shufflevector <4 x i32> %64, <4 x i32> poison, <16 x i32> <i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 3, i32 3>
%66 = add nsw <16 x i32> %58, %65
%67 = icmp eq <16 x i32> %66, %40
%68 = extractelement <2 x i32> %62, i64 0
%add56.4.2 = add nsw i32 %61, %68
%69 = extractelement <2 x i32> %4, i64 0
%cmp57.4.2 = icmp eq i32 %add56.4.2, %69
%inc59.4.2 = zext i1 %cmp57.4.2 to i32
%70 = load <4 x i32>, ptr %arrayidx20.6.1, align 16, !tbaa !5
%71 = load <2 x i32>, ptr %arrayidx20.8.1, align 8, !tbaa !5
%72 = load <2 x i32>, ptr %arrayidx20.7.1, align 4, !tbaa !5
%73 = shufflevector <4 x i32> %70, <4 x i32> poison, <8 x i32> <i32 2, i32 3, i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison>
%74 = shufflevector <2 x i32> %71, <2 x i32> poison, <8 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%75 = shufflevector <8 x i32> %73, <8 x i32> %74, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 8, i32 9, i32 poison, i32 poison>
%76 = shufflevector <2 x i32> %72, <2 x i32> poison, <8 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%77 = shufflevector <8 x i32> %75, <8 x i32> %76, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 8, i32 9>
%78 = shufflevector <2 x i32> %62, <2 x i32> poison, <8 x i32> <i32 0, i32 poison, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%79 = shufflevector <2 x i32> %4, <2 x i32> poison, <8 x i32> zeroinitializer
%80 = load <2 x i32>, ptr %arrayidx20.6, align 8, !tbaa !5
%81 = shufflevector <2 x i32> %80, <2 x i32> poison, <8 x i32> <i32 0, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%82 = shufflevector <8 x i32> %78, <8 x i32> %81, <8 x i32> <i32 0, i32 poison, i32 2, i32 poison, i32 poison, i32 poison, i32 8, i32 poison>
%83 = shufflevector <8 x i32> %82, <8 x i32> poison, <8 x i32> <i32 0, i32 0, i32 2, i32 2, i32 2, i32 2, i32 6, i32 6>
%84 = add nsw <8 x i32> %77, %83
%85 = icmp eq <8 x i32> %84, %79
%86 = load <2 x i32>, ptr %arrayidx20.8.1, align 8, !tbaa !5
%87 = shufflevector <2 x i32> %86, <2 x i32> poison, <2 x i32> <i32 1, i32 0>
%88 = add nsw <2 x i32> %87, %80
%89 = shufflevector <2 x i32> %4, <2 x i32> poison, <2 x i32> zeroinitializer
%90 = icmp eq <2 x i32> %88, %89
%91 = zext <2 x i1> %90 to <2 x i32>
%92 = load i32, ptr %arrayidx20.9.1, align 4, !tbaa !5
%93 = extractelement <2 x i32> %80, i64 1
%add56.7.1 = add nsw i32 %92, %93
%cmp57.7.1 = icmp eq i32 %add56.7.1, %69
%inc59.7.1 = zext i1 %cmp57.7.1 to i32
%94 = load i32, ptr %arrayidx20.8, align 16, !tbaa !5
%add56.8 = add nsw i32 %92, %94
%cmp57.8 = icmp eq i32 %add56.8, %69
%inc59.8 = zext i1 %cmp57.8 to i32
%95 = bitcast <16 x i1> %41 to i16
%96 = call i16 @llvm.ctpop.i16(i16 %95), !range !10
%97 = bitcast <16 x i1> %67 to i16
%98 = call i16 @llvm.ctpop.i16(i16 %97), !range !10
%narrow = add nuw nsw i16 %96, %98
%op.rdx1790 = zext i16 %narrow to i32
%99 = bitcast <8 x i1> %85 to i8
%100 = call i8 @llvm.ctpop.i8(i8 %99), !range !9
%101 = zext i8 %100 to i32
%op.rdx1791 = add nuw nsw i32 %op.rdx1790, %101
%op.rdx1792 = add nuw nsw i32 %op.rdx1791, %inc59.4.2
%shift = shufflevector <2 x i32> %91, <2 x i32> poison, <2 x i32> <i32 1, i32 poison>
%102 = add <2 x i32> %shift, %91
%op.rdx1793 = extractelement <2 x i32> %102, i64 0
%op.rdx1794 = add nuw nsw i32 %inc59.7.1, %inc59.8
%op.rdx1795 = add nuw nsw i32 %op.rdx1792, %op.rdx1793
%op.rdx1796 = add nuw nsw i32 %op.rdx1795, %op.rdx1794
br label %if.end572
for.cond70.loopexit.9: ; preds = %for.cond.preheader
%103 = load <4 x i32>, ptr %a, align 16
%104 = shufflevector <4 x i32> %103, <4 x i32> poison, <16 x i32> <i32 0, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%105 = load <8 x i32>, ptr %arrayidx20.2.2, align 8, !tbaa !5
%106 = load i32, ptr %a, align 16, !tbaa !5
%107 = load <4 x i32>, ptr %arrayidx20.3.2, align 4, !tbaa !5
%108 = load i32, ptr %arrayidx20.7.2, align 4, !tbaa !5
%109 = load <2 x i32>, ptr %arrayidx20.8.2, align 16, !tbaa !5
%110 = load <4 x i32>, ptr %arrayidx20.4.2, align 16, !tbaa !5
%111 = load <4 x i32>, ptr %arrayidx20.5.2, align 4, !tbaa !5
%112 = load <4 x i32>, ptr %arrayidx20.6.2, align 8, !tbaa !5
%113 = load i32, ptr %arrayidx20.9.2, align 4, !tbaa !5
%114 = load i32, ptr %a, align 16, !tbaa !5
%115 = load i32, ptr %arrayidx20.7.2, align 4, !tbaa !5
%116 = load <2 x i32>, ptr %arrayidx20.8.2, align 16, !tbaa !5
%117 = load <8 x i32>, ptr %arrayidx20.1.1, align 4, !tbaa !5
%118 = load <2 x i32>, ptr %a, align 16, !tbaa !5
%119 = load <4 x i32>, ptr %arrayidx20.3.2, align 4, !tbaa !5
%120 = load i32, ptr %arrayidx20.1, align 4, !tbaa !5
%121 = load <4 x i32>, ptr %arrayidx20.4.2, align 16, !tbaa !5
%122 = load <4 x i32>, ptr %arrayidx20.5.2, align 4, !tbaa !5
%123 = load <4 x i32>, ptr %arrayidx20.2.1, align 16, !tbaa !5
%124 = load <4 x i32>, ptr %arrayidx20.6.2, align 8, !tbaa !5
%125 = load i32, ptr %arrayidx20.9.2, align 4, !tbaa !5
%126 = load i32, ptr %arrayidx20.7.2, align 4, !tbaa !5
%127 = load <2 x i32>, ptr %arrayidx20.8.2, align 16, !tbaa !5
%128 = load i32, ptr %arrayidx20.1, align 4, !tbaa !5
%129 = load <2 x i32>, ptr %arrayidx20.6.1, align 16, !tbaa !5
%130 = load i32, ptr %arrayidx20.8.1, align 8, !tbaa !5
%131 = shufflevector <8 x i32> %117, <8 x i32> poison, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%132 = shufflevector <4 x i32> %123, <4 x i32> poison, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%133 = shufflevector <16 x i32> %131, <16 x i32> %132, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 16, i32 17, i32 18, i32 19, i32 poison, i32 poison, i32 poison, i32 poison>
%134 = shufflevector <2 x i32> %129, <2 x i32> poison, <16 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%135 = shufflevector <16 x i32> %133, <16 x i32> %134, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 16, i32 17, i32 poison, i32 poison>
%136 = insertelement <16 x i32> %135, i32 %128, i64 14
%137 = insertelement <16 x i32> %104, i32 %106, i64 1
%138 = insertelement <16 x i32> %137, i32 %106, i64 2
%139 = insertelement <16 x i32> %138, i32 %106, i64 3
%140 = insertelement <16 x i32> %139, i32 %106, i64 4
%141 = insertelement <16 x i32> %140, i32 %114, i64 5
%142 = insertelement <16 x i32> %141, i32 %114, i64 6
%143 = shufflevector <2 x i32> %118, <2 x i32> poison, <16 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%144 = shufflevector <16 x i32> %142, <16 x i32> %143, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 16, i32 17, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%145 = insertelement <16 x i32> %144, i32 %120, i64 9
%146 = insertelement <16 x i32> %145, i32 %120, i64 10
%147 = insertelement <16 x i32> %146, i32 %120, i64 11
%148 = insertelement <16 x i32> %147, i32 %120, i64 12
%149 = insertelement <16 x i32> %148, i32 %128, i64 13
%150 = insertelement <16 x i32> %149, i32 %130, i64 14
%151 = add nsw <16 x i32> %136, %150
%152 = shufflevector <16 x i32> %151, <16 x i32> poison, <64 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 3, i32 3, i32 3, i32 3, i32 3, i32 4, i32 4, i32 4, i32 4, i32 5, i32 5, i32 5, i32 6, i32 6, i32 7, i32 8, i32 8, i32 8, i32 8, i32 8, i32 8, i32 8, i32 9, i32 9, i32 9, i32 9, i32 9, i32 9, i32 10, i32 10, i32 10, i32 10, i32 10, i32 11, i32 11, i32 11, i32 11, i32 12, i32 12, i32 12, i32 13, i32 13, i32 14>
%153 = shufflevector <8 x i32> %105, <8 x i32> poison, <64 x i32> <i32 1, i32 0, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%154 = shufflevector <4 x i32> %107, <4 x i32> poison, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%155 = shufflevector <64 x i32> %153, <64 x i32> %154, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 64, i32 65, i32 66, i32 67, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%156 = insertelement <64 x i32> %155, i32 %108, i64 12
%157 = shufflevector <2 x i32> %109, <2 x i32> poison, <64 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%158 = shufflevector <64 x i32> %156, <64 x i32> %157, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 64, i32 65, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%159 = shufflevector <4 x i32> %110, <4 x i32> poison, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%160 = shufflevector <64 x i32> %158, <64 x i32> %159, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 64, i32 65, i32 66, i32 67, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%161 = shufflevector <2 x i32> %109, <2 x i32> poison, <64 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%162 = shufflevector <64 x i32> %160, <64 x i32> %161, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 64, i32 65, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%163 = shufflevector <4 x i32> %111, <4 x i32> poison, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%164 = shufflevector <64 x i32> %162, <64 x i32> %163, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 64, i32 65, i32 66, i32 67, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%165 = shufflevector <4 x i32> %112, <4 x i32> poison, <64 x i32> <i32 3, i32 0, i32 1, i32 2, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%166 = shufflevector <64 x i32> %164, <64 x i32> %165, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 64, i32 65, i32 66, i32 67, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%167 = insertelement <64 x i32> %166, i32 %113, i64 29
%168 = insertelement <64 x i32> %167, i32 %115, i64 30
%169 = shufflevector <2 x i32> %116, <2 x i32> poison, <64 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%170 = shufflevector <64 x i32> %168, <64 x i32> %169, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 64, i32 65, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%171 = shufflevector <2 x i32> %116, <2 x i32> poison, <64 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%172 = shufflevector <64 x i32> %170, <64 x i32> %171, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 64, i32 65, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%173 = insertelement <64 x i32> %172, i32 %113, i64 35
%174 = shufflevector <4 x i32> %119, <4 x i32> poison, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%175 = shufflevector <64 x i32> %173, <64 x i32> %174, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 64, i32 65, i32 66, i32 67, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%176 = insertelement <64 x i32> %175, i32 %115, i64 40
%177 = shufflevector <2 x i32> %116, <2 x i32> poison, <64 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%178 = shufflevector <64 x i32> %176, <64 x i32> %177, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 64, i32 65, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%179 = shufflevector <4 x i32> %121, <4 x i32> poison, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%180 = shufflevector <64 x i32> %178, <64 x i32> %179, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 64, i32 65, i32 66, i32 67, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%181 = shufflevector <2 x i32> %116, <2 x i32> poison, <64 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%182 = shufflevector <64 x i32> %180, <64 x i32> %181, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 64, i32 65, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%183 = shufflevector <4 x i32> %122, <4 x i32> poison, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%184 = shufflevector <64 x i32> %182, <64 x i32> %183, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 47, i32 48, i32 64, i32 65, i32 66, i32 67, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%185 = shufflevector <4 x i32> %124, <4 x i32> poison, <64 x i32> <i32 3, i32 0, i32 1, i32 2, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%186 = shufflevector <64 x i32> %184, <64 x i32> %185, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 47, i32 48, i32 49, i32 50, i32 51, i32 52, i32 64, i32 65, i32 66, i32 67, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%187 = insertelement <64 x i32> %186, i32 %125, i64 57
%188 = insertelement <64 x i32> %187, i32 %126, i64 58
%189 = shufflevector <2 x i32> %127, <2 x i32> poison, <64 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%190 = shufflevector <64 x i32> %188, <64 x i32> %189, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 47, i32 48, i32 49, i32 50, i32 51, i32 52, i32 53, i32 54, i32 55, i32 56, i32 57, i32 58, i32 64, i32 65, i32 poison, i32 poison, i32 poison>
%191 = shufflevector <2 x i32> %127, <2 x i32> poison, <64 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%192 = shufflevector <64 x i32> %190, <64 x i32> %191, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 47, i32 48, i32 49, i32 50, i32 51, i32 52, i32 53, i32 54, i32 55, i32 56, i32 57, i32 58, i32 59, i32 60, i32 64, i32 65, i32 poison>
%193 = insertelement <64 x i32> %192, i32 %125, i64 63
%194 = add nsw <64 x i32> %152, %193
%195 = shufflevector <2 x i32> %4, <2 x i32> poison, <64 x i32> zeroinitializer
%196 = icmp eq <64 x i32> %194, %195
%197 = load <4 x i32>, ptr %arrayidx20.2, align 8
%198 = load <4 x i32>, ptr %arrayidx20.4.2, align 16, !tbaa !5
%199 = load <2 x i32>, ptr %arrayidx20.8.2, align 16, !tbaa !5
%200 = load i32, ptr %arrayidx20.2, align 8, !tbaa !5
%201 = load <4 x i32>, ptr %arrayidx20.5.2, align 4, !tbaa !5
%202 = load <4 x i32>, ptr %arrayidx20.6.2, align 8, !tbaa !5
%203 = load i32, ptr %arrayidx20.9.2, align 4, !tbaa !5
%204 = load i32, ptr %arrayidx20.7.2, align 4, !tbaa !5
%205 = load <4 x i32>, ptr %arrayidx20.3.1, align 4, !tbaa !5
%206 = insertelement <4 x i32> %197, i32 %200, i64 1
%207 = insertelement <4 x i32> %206, i32 %200, i64 2
%208 = insertelement <4 x i32> %207, i32 %200, i64 3
%209 = add nsw <4 x i32> %205, %208
%210 = shufflevector <4 x i32> %209, <4 x i32> poison, <16 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 2, i32 2, i32 2, i32 2, i32 3>
%211 = shufflevector <4 x i32> %198, <4 x i32> poison, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%212 = shufflevector <2 x i32> %199, <2 x i32> poison, <16 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%213 = shufflevector <16 x i32> %211, <16 x i32> %212, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 16, i32 17, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%214 = shufflevector <4 x i32> %201, <4 x i32> poison, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%215 = shufflevector <16 x i32> %213, <16 x i32> %214, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 16, i32 17, i32 18, i32 19, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%216 = shufflevector <4 x i32> %202, <4 x i32> poison, <16 x i32> <i32 3, i32 0, i32 1, i32 2, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%217 = shufflevector <16 x i32> %215, <16 x i32> %216, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 16, i32 17, i32 18, i32 19, i32 poison, i32 poison>
%218 = insertelement <16 x i32> %217, i32 %203, i64 14
%219 = insertelement <16 x i32> %218, i32 %204, i64 15
%220 = add nsw <16 x i32> %210, %219
%221 = shufflevector <2 x i32> %4, <2 x i32> poison, <16 x i32> zeroinitializer
%222 = icmp eq <16 x i32> %220, %221
%223 = load <2 x i32>, ptr %arrayidx20.8.2, align 16, !tbaa !5
%224 = load <4 x i32>, ptr %arrayidx20.2, align 8
%225 = load <4 x i32>, ptr %arrayidx20.7.1, align 4
%226 = load i32, ptr %arrayidx20.9.2, align 4, !tbaa !5
%227 = load <4 x i32>, ptr %arrayidx20.5.2, align 4, !tbaa !5
%228 = load i32, ptr %arrayidx20.3, align 4, !tbaa !5
%229 = load <4 x i32>, ptr %arrayidx20.4.1, align 8
%230 = shufflevector <4 x i32> %225, <4 x i32> %229, <4 x i32> <i32 0, i32 1, i32 4, i32 5>
%231 = shufflevector <4 x i32> %224, <4 x i32> poison, <4 x i32> <i32 0, i32 0, i32 1, i32 poison>
%232 = insertelement <4 x i32> %231, i32 %228, i64 3
%233 = add nsw <4 x i32> %230, %232
%234 = load <4 x i32>, ptr %arrayidx20.6.2, align 8, !tbaa !5
%235 = load i32, ptr %arrayidx20.9.2, align 4, !tbaa !5
%236 = load i32, ptr %arrayidx20.3, align 4, !tbaa !5
%237 = load i32, ptr %arrayidx20.6.1, align 16, !tbaa !5
%add87.3.2 = add nsw i32 %237, %236
%238 = load <2 x i32>, ptr %arrayidx20.7.2, align 4, !tbaa !5
%239 = shufflevector <4 x i32> %209, <4 x i32> poison, <16 x i32> <i32 3, i32 3, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%240 = shufflevector <4 x i32> %233, <4 x i32> poison, <16 x i32> <i32 0, i32 poison, i32 1, i32 2, i32 poison, i32 poison, i32 poison, i32 poison, i32 3, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%241 = shufflevector <16 x i32> %239, <16 x i32> %240, <16 x i32> <i32 0, i32 1, i32 16, i32 poison, i32 18, i32 19, i32 poison, i32 poison, i32 poison, i32 poison, i32 24, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%242 = insertelement <16 x i32> %241, i32 %add87.3.2, i64 14
%243 = shufflevector <16 x i32> %242, <16 x i32> poison, <16 x i32> <i32 0, i32 1, i32 2, i32 2, i32 4, i32 5, i32 5, i32 5, i32 5, i32 5, i32 10, i32 10, i32 10, i32 10, i32 14, i32 14>
%244 = shufflevector <2 x i32> %223, <2 x i32> poison, <16 x i32> <i32 0, i32 1, i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%245 = insertelement <16 x i32> %244, i32 %226, i64 4
%246 = shufflevector <4 x i32> %227, <4 x i32> poison, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%247 = shufflevector <16 x i32> %245, <16 x i32> %246, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 16, i32 17, i32 18, i32 19, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%248 = shufflevector <4 x i32> %234, <4 x i32> poison, <16 x i32> <i32 3, i32 0, i32 1, i32 2, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%249 = shufflevector <16 x i32> %247, <16 x i32> %248, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 16, i32 17, i32 18, i32 19, i32 poison, i32 poison, i32 poison>
%250 = insertelement <16 x i32> %249, i32 %235, i64 13
%251 = shufflevector <2 x i32> %238, <2 x i32> poison, <16 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%252 = shufflevector <16 x i32> %250, <16 x i32> %251, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 16, i32 17>
%253 = add nsw <16 x i32> %243, %252
%254 = icmp eq <16 x i32> %253, %221
%255 = load i32, ptr %arrayidx20.9.2, align 4, !tbaa !5
%add91.3.2.2 = add nsw i32 %add87.3.2, %255
%256 = extractelement <2 x i32> %4, i64 0
%cmp92.3.2.2 = icmp eq i32 %add91.3.2.2, %256
%inc94.3.2.2 = zext i1 %cmp92.3.2.2 to i32
%257 = load i32, ptr %arrayidx20.3, align 4, !tbaa !5
%258 = load i32, ptr %arrayidx20.7.1, align 4, !tbaa !5
%add87.3.3 = add nsw i32 %258, %257
%259 = load i32, ptr %arrayidx20.8.2, align 16, !tbaa !5
%add91.3.3 = add nsw i32 %add87.3.3, %259
%cmp92.3.3 = icmp eq i32 %add91.3.3, %256
%inc94.3.3 = zext i1 %cmp92.3.3 to i32
%260 = load i32, ptr %arrayidx20.9.2, align 4, !tbaa !5
%add91.3.3.1 = add nsw i32 %add87.3.3, %260
%cmp92.3.3.1 = icmp eq i32 %add91.3.3.1, %256
%inc94.3.3.1 = zext i1 %cmp92.3.3.1 to i32
%261 = load <2 x i32>, ptr %arrayidx20.3, align 4, !tbaa !5
%262 = load <4 x i32>, ptr %arrayidx20.6.2, align 8, !tbaa !5
%263 = load i32, ptr %arrayidx20.4, align 16, !tbaa !5
%264 = load i32, ptr %arrayidx20.7.2, align 4, !tbaa !5
%265 = load <2 x i32>, ptr %arrayidx20.8.2, align 16, !tbaa !5
%266 = load <4 x i32>, ptr %arrayidx20.5.1, align 4, !tbaa !5
%267 = load i32, ptr %arrayidx20.8.1, align 8, !tbaa !5
%268 = load i32, ptr %arrayidx20.9.2, align 4, !tbaa !5
%269 = load <2 x i32>, ptr %arrayidx20.4, align 16, !tbaa !5
%270 = load i32, ptr %arrayidx20.6.1, align 16, !tbaa !5
%271 = load i32, ptr %arrayidx20.7.2, align 4, !tbaa !5
%272 = load <2 x i32>, ptr %arrayidx20.8.2, align 16, !tbaa !5
%273 = load i32, ptr %arrayidx20.5, align 4, !tbaa !5
%274 = load i32, ptr %arrayidx20.7.1, align 4, !tbaa !5
%275 = shufflevector <4 x i32> %266, <4 x i32> poison, <8 x i32> <i32 3, i32 0, i32 1, i32 2, i32 poison, i32 poison, i32 poison, i32 poison>
%276 = insertelement <8 x i32> %275, i32 %267, i64 4
%277 = insertelement <8 x i32> %276, i32 %270, i64 5
%278 = insertelement <8 x i32> %277, i32 %273, i64 6
%279 = shufflevector <2 x i32> %261, <2 x i32> poison, <8 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%280 = insertelement <8 x i32> %279, i32 %263, i64 2
%281 = insertelement <8 x i32> %280, i32 %263, i64 3
%282 = shufflevector <2 x i32> %269, <2 x i32> poison, <8 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%283 = shufflevector <8 x i32> %281, <8 x i32> %282, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 8, i32 9, i32 poison, i32 poison>
%284 = insertelement <8 x i32> %283, i32 %274, i64 6
%285 = add nsw <8 x i32> %278, %284
%286 = shufflevector <8 x i32> %285, <8 x i32> poison, <16 x i32> <i32 0, i32 1, i32 1, i32 1, i32 1, i32 2, i32 2, i32 2, i32 3, i32 3, i32 4, i32 5, i32 5, i32 5, i32 6, i32 6>
%287 = shufflevector <4 x i32> %262, <4 x i32> poison, <16 x i32> <i32 3, i32 0, i32 1, i32 2, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%288 = insertelement <16 x i32> %287, i32 %260, i64 4
%289 = insertelement <16 x i32> %288, i32 %264, i64 5
%290 = shufflevector <2 x i32> %265, <2 x i32> poison, <16 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%291 = shufflevector <16 x i32> %289, <16 x i32> %290, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 16, i32 17, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%292 = shufflevector <2 x i32> %265, <2 x i32> poison, <16 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%293 = shufflevector <16 x i32> %291, <16 x i32> %292, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 16, i32 17, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%294 = insertelement <16 x i32> %293, i32 %268, i64 10
%295 = insertelement <16 x i32> %294, i32 %271, i64 11
%296 = shufflevector <2 x i32> %272, <2 x i32> poison, <16 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%297 = shufflevector <16 x i32> %295, <16 x i32> %296, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 16, i32 17, i32 poison, i32 poison>
%298 = shufflevector <2 x i32> %272, <2 x i32> poison, <16 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
%299 = shufflevector <16 x i32> %297, <16 x i32> %298, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 16, i32 17>
%300 = add nsw <16 x i32> %286, %299
%301 = icmp eq <16 x i32> %300, %221
%302 = load <4 x i32>, ptr %arrayidx20.9.2, align 4
%303 = load <4 x i32>, ptr %arrayidx20.5, align 4
%304 = load <2 x i32>, ptr %arrayidx20.7.1, align 4, !tbaa !5
%305 = load <4 x i32>, ptr %arrayidx20.8.2, align 16
%306 = load i32, ptr %arrayidx20.6, align 8, !tbaa !5
%307 = load i32, ptr %arrayidx20.8.1, align 8, !tbaa !5
%308 = load i32, ptr %arrayidx20.9.2, align 4, !tbaa !5
%309 = shufflevector <2 x i32> %304, <2 x i32> poison, <4 x i32> <i32 0, i32 poison, i32 poison, i32 poison>
%310 = shufflevector <4 x i32> %303, <4 x i32> %309, <4 x i32> <i32 0, i32 1, i32 4, i32 poison>
%311 = insertelement <4 x i32> %310, i32 %307, i64 3
%312 = shufflevector <2 x i32> %304, <2 x i32> poison, <4 x i32> <i32 1, i32 0, i32 poison, i32 poison>
%313 = shufflevector <4 x i32> %312, <4 x i32> %303, <4 x i32> <i32 0, i32 1, i32 5, i32 poison>
%314 = insertelement <4 x i32> %313, i32 %306, i64 3
%315 = add nsw <4 x i32> %311, %314
%316 = shufflevector <4 x i32> %302, <4 x i32> %305, <4 x i32> <i32 0, i32 4, i32 5, i32 poison>
%317 = insertelement <4 x i32> %316, i32 %308, i64 3
%318 = add nsw <4 x i32> %315, %317
%319 = shufflevector <2 x i32> %4, <2 x i32> poison, <4 x i32> zeroinitializer
%320 = icmp eq <4 x i32> %318, %319
%321 = load i32, ptr %arrayidx20.7, align 4, !tbaa !5
%322 = load i32, ptr %arrayidx20.8.1, align 8, !tbaa !5
%add87.7 = add nsw i32 %322, %321
%323 = load i32, ptr %arrayidx20.9.2, align 4, !tbaa !5
%add91.7 = add nsw i32 %add87.7, %323
%cmp92.7 = icmp eq i32 %add91.7, %256
%inc94.7 = zext i1 %cmp92.7 to i32
%324 = bitcast <64 x i1> %196 to i64
%325 = call i64 @llvm.ctpop.i64(i64 %324), !range !11
%326 = trunc i64 %325 to i32
%327 = bitcast <16 x i1> %222 to i16
%328 = call i16 @llvm.ctpop.i16(i16 %327), !range !10
%329 = zext i16 %328 to i32
%op.rdx1797 = add nuw nsw i32 %326, %329
%330 = bitcast <16 x i1> %254 to i16
%331 = call i16 @llvm.ctpop.i16(i16 %330), !range !10
%332 = zext i16 %331 to i32
%op.rdx1798 = add nuw nsw i32 %op.rdx1797, %332
%333 = bitcast <16 x i1> %301 to i16
%334 = call i16 @llvm.ctpop.i16(i16 %333), !range !10
%335 = zext i16 %334 to i32
%op.rdx1799 = add nuw nsw i32 %op.rdx1798, %335
%336 = bitcast <4 x i1> %320 to i4
%337 = call i4 @llvm.ctpop.i4(i4 %336), !range !12
%338 = zext i4 %337 to i32
%op.rdx1800 = add nuw nsw i32 %op.rdx1799, %338
%op.rdx1801 = add nuw nsw i32 %op.rdx1800, %inc94.3.2.2
%op.rdx1802 = add nuw nsw i32 %inc94.3.3, %inc94.3.3.1
%op.rdx1803 = add i32 %op.rdx1801, %op.rdx1802
%op.rdx1804 = add i32 %op.rdx1803, %inc94.7
br label %if.end572
for.cond108.loopexit: ; preds = %for.cond112.loopexit, %for.body110
%count.11.lcssa = phi i32 [ %count.10926, %for.body110 ], [ %count.12.lcssa, %for.cond112.loopexit ]
%indvars.iv.next1303 = add nuw nsw i64 %indvars.iv1302, 1
%indvars.iv.next1312 = add nuw nsw i64 %indvars.iv1311, 1
%indvars.iv.next1319 = add nuw nsw i64 %indvars.iv1318, 1
%exitcond1327.not = icmp eq i64 %indvars.iv.next1325, 10
br i1 %exitcond1327.not, label %if.end572, label %for.body110, !llvm.loop !13
for.body110: ; preds = %for.body110.preheader, %for.cond108.loopexit
%indvars.iv1324 = phi i64 [ %indvars.iv.next1325, %for.cond108.loopexit ], [ 0, %for.body110.preheader ]
%indvars.iv1318 = phi i64 [ %indvars.iv.next1319, %for.cond108.loopexit ], [ 1, %for.body110.preheader ]
%indvars.iv1311 = phi i64 [ %indvars.iv.next1312, %for.cond108.loopexit ], [ 2, %for.body110.preheader ]
%indvars.iv1302 = phi i64 [ %indvars.iv.next1303, %for.cond108.loopexit ], [ 3, %for.body110.preheader ]
%count.10926 = phi i32 [ %count.11.lcssa, %for.cond108.loopexit ], [ 0, %for.body110.preheader ]
%indvars.iv.next1325 = add nuw nsw i64 %indvars.iv1324, 1
%cmp113921 = icmp ult i64 %indvars.iv1324, 9
br i1 %cmp113921, label %for.body114.lr.ph, label %for.cond108.loopexit
for.body114.lr.ph: ; preds = %for.body110
%arrayidx125 = getelementptr inbounds [10 x i32], ptr %a, i64 0, i64 %indvars.iv1324
br label %for.body114
for.cond112.loopexit: ; preds = %for.body118, %for.cond116.loopexit, %for.body114
%count.12.lcssa = phi i32 [ %count.11923, %for.body114 ], [ %count.12919, %for.body118 ], [ %spec.select766.lcssa, %for.cond116.loopexit ]
%indvars.iv.next1305 = add nuw nsw i64 %indvars.iv1304, 1
%indvars.iv.next1314 = add nuw nsw i64 %indvars.iv1313, 1
%exitcond1323.not = icmp eq i64 %indvars.iv.next1321, 10
br i1 %exitcond1323.not, label %for.cond108.loopexit, label %for.body114, !llvm.loop !15
for.body114: ; preds = %for.body114.lr.ph, %for.cond112.loopexit
%indvars.iv1320 = phi i64 [ %indvars.iv1318, %for.body114.lr.ph ], [ %indvars.iv.next1321, %for.cond112.loopexit ]
%indvars.iv1313 = phi i64 [ %indvars.iv1311, %for.body114.lr.ph ], [ %indvars.iv.next1314, %for.cond112.loopexit ]
%indvars.iv1304 = phi i64 [ %indvars.iv1302, %for.body114.lr.ph ], [ %indvars.iv.next1305, %for.cond112.loopexit ]
%count.11923 = phi i32 [ %count.10926, %for.body114.lr.ph ], [ %count.12.lcssa, %for.cond112.loopexit ]
%indvars.iv.next1321 = add nuw nsw i64 %indvars.iv1320, 1
%cmp117917 = icmp ult i64 %indvars.iv1320, 9
br i1 %cmp117917, label %for.body118.lr.ph, label %for.cond112.loopexit
for.body118.lr.ph: ; preds = %for.body114
%arrayidx128 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 1, i64 %indvars.iv1320
br label %for.body118
for.cond116.loopexit: ; preds = %for.body122.6, %for.body122.5, %for.body122.4, %for.body122.3, %for.body122.2, %for.body122.1, %for.body122.lr.ph
%spec.select766.lcssa = phi i32 [ %spec.select766, %for.body122.lr.ph ], [ %spec.select766.1, %for.body122.1 ], [ %spec.select766.2, %for.body122.2 ], [ %spec.select766.3, %for.body122.3 ], [ %spec.select766.4, %for.body122.4 ], [ %spec.select766.5, %for.body122.5 ], [ %spec.select766.6, %for.body122.6 ]
%indvars.iv.next1307 = add nuw nsw i64 %indvars.iv1306, 1
br i1 %cmp121913, label %for.body118, label %for.cond112.loopexit, !llvm.loop !16
for.body118: ; preds = %for.body118.lr.ph, %for.cond116.loopexit
%indvars.iv1315 = phi i64 [ %indvars.iv1313, %for.body118.lr.ph ], [ %indvars.iv.next1316, %for.cond116.loopexit ]
%indvars.iv1306 = phi i64 [ %indvars.iv1304, %for.body118.lr.ph ], [ %indvars.iv.next1307, %for.cond116.loopexit ]
%count.12919 = phi i32 [ %count.11923, %for.body118.lr.ph ], [ %spec.select766.lcssa, %for.cond116.loopexit ]
%indvars.iv.next1316 = add nuw nsw i64 %indvars.iv1315, 1
%cmp121913 = icmp ult i64 %indvars.iv1315, 9
br i1 %cmp121913, label %for.body122.lr.ph, label %for.cond112.loopexit
for.body122.lr.ph: ; preds = %for.body118
%339 = load i32, ptr %arrayidx125, align 4, !tbaa !5
%340 = load i32, ptr %arrayidx128, align 4, !tbaa !5
%add129 = add nsw i32 %340, %339
%arrayidx132 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 2, i64 %indvars.iv1315
%341 = load i32, ptr %arrayidx132, align 4, !tbaa !5
%add133 = add nsw i32 %add129, %341
%arrayidx136 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv1306
%342 = load i32, ptr %arrayidx136, align 4, !tbaa !5
%add137 = add nsw i32 %add133, %342
%cmp138 = icmp eq i32 %add137, %22
%inc140 = zext i1 %cmp138 to i32
%spec.select766 = add nsw i32 %count.12919, %inc140
%cmp121 = icmp ult i64 %indvars.iv1306, 9
br i1 %cmp121, label %for.body122.1, label %for.cond116.loopexit, !llvm.loop !17
for.body122.1: ; preds = %for.body122.lr.ph
%indvars.iv.next1309 = add nuw nsw i64 %indvars.iv1306, 1
%arrayidx136.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv.next1309
%343 = load i32, ptr %arrayidx136.1, align 4, !tbaa !5
%add137.1 = add nsw i32 %add133, %343
%cmp138.1 = icmp eq i32 %add137.1, %22
%inc140.1 = zext i1 %cmp138.1 to i32
%spec.select766.1 = add nsw i32 %spec.select766, %inc140.1
%cmp121.1.not = icmp eq i64 %indvars.iv1306, 8
br i1 %cmp121.1.not, label %for.cond116.loopexit, label %for.body122.2, !llvm.loop !17
for.body122.2: ; preds = %for.body122.1
%indvars.iv.next1309.1 = add nuw nsw i64 %indvars.iv1306, 2
%arrayidx136.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv.next1309.1
%344 = load i32, ptr %arrayidx136.2, align 4, !tbaa !5
%add137.2 = add nsw i32 %add133, %344
%cmp138.2 = icmp eq i32 %add137.2, %22
%inc140.2 = zext i1 %cmp138.2 to i32
%spec.select766.2 = add nsw i32 %spec.select766.1, %inc140.2
%cmp121.2 = icmp ult i64 %indvars.iv1306, 7
br i1 %cmp121.2, label %for.body122.3, label %for.cond116.loopexit, !llvm.loop !17
for.body122.3: ; preds = %for.body122.2
%indvars.iv.next1309.2 = add nuw nsw i64 %indvars.iv1306, 3
%arrayidx136.3 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv.next1309.2
%345 = load i32, ptr %arrayidx136.3, align 4, !tbaa !5
%add137.3 = add nsw i32 %add133, %345
%cmp138.3 = icmp eq i32 %add137.3, %22
%inc140.3 = zext i1 %cmp138.3 to i32
%spec.select766.3 = add nsw i32 %spec.select766.2, %inc140.3
%cmp121.3.not = icmp eq i64 %indvars.iv1306, 6
br i1 %cmp121.3.not, label %for.cond116.loopexit, label %for.body122.4, !llvm.loop !17
for.body122.4: ; preds = %for.body122.3
%indvars.iv.next1309.3 = add nuw nsw i64 %indvars.iv1306, 4
%arrayidx136.4 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv.next1309.3
%346 = load i32, ptr %arrayidx136.4, align 4, !tbaa !5
%add137.4 = add nsw i32 %add133, %346
%cmp138.4 = icmp eq i32 %add137.4, %22
%inc140.4 = zext i1 %cmp138.4 to i32
%spec.select766.4 = add nsw i32 %spec.select766.3, %inc140.4
%cmp121.4 = icmp ult i64 %indvars.iv1306, 5
br i1 %cmp121.4, label %for.body122.5, label %for.cond116.loopexit, !llvm.loop !17
for.body122.5: ; preds = %for.body122.4
%indvars.iv.next1309.4 = add nuw nsw i64 %indvars.iv1306, 5
%arrayidx136.5 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv.next1309.4
%347 = load i32, ptr %arrayidx136.5, align 4, !tbaa !5
%add137.5 = add nsw i32 %add133, %347
%cmp138.5 = icmp eq i32 %add137.5, %22
%inc140.5 = zext i1 %cmp138.5 to i32
%spec.select766.5 = add nsw i32 %spec.select766.4, %inc140.5
%cmp121.5.not = icmp eq i64 %indvars.iv1306, 4
br i1 %cmp121.5.not, label %for.cond116.loopexit, label %for.body122.6, !llvm.loop !17
for.body122.6: ; preds = %for.body122.5
%indvars.iv.next1309.5 = add nuw nsw i64 %indvars.iv1306, 6
%arrayidx136.6 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv.next1309.5
%348 = load i32, ptr %arrayidx136.6, align 4, !tbaa !5
%add137.6 = add nsw i32 %add133, %348
%cmp138.6 = icmp eq i32 %add137.6, %22
%inc140.6 = zext i1 %cmp138.6 to i32
%spec.select766.6 = add nsw i32 %spec.select766.5, %inc140.6
br label %for.cond116.loopexit
for.cond157.loopexit: ; preds = %for.cond161.loopexit, %for.body159
%count.16.lcssa = phi i32 [ %count.15912, %for.body159 ], [ %count.17.lcssa, %for.cond161.loopexit ]
%indvars.iv.next1266 = add nuw nsw i64 %indvars.iv1265, 1
%indvars.iv.next1277 = add nuw nsw i64 %indvars.iv1276, 1
%indvars.iv.next1286 = add nuw nsw i64 %indvars.iv1285, 1
%indvars.iv.next1293 = add nuw nsw i64 %indvars.iv1292, 1
%exitcond1301.not = icmp eq i64 %indvars.iv.next1299, 10
br i1 %exitcond1301.not, label %if.end572, label %for.body159, !llvm.loop !18
for.body159: ; preds = %for.body159.preheader, %for.cond157.loopexit
%indvars.iv1298 = phi i64 [ %indvars.iv.next1299, %for.cond157.loopexit ], [ 0, %for.body159.preheader ]
%indvars.iv1292 = phi i64 [ %indvars.iv.next1293, %for.cond157.loopexit ], [ 1, %for.body159.preheader ]
%indvars.iv1285 = phi i64 [ %indvars.iv.next1286, %for.cond157.loopexit ], [ 2, %for.body159.preheader ]
%indvars.iv1276 = phi i64 [ %indvars.iv.next1277, %for.cond157.loopexit ], [ 3, %for.body159.preheader ]
%indvars.iv1265 = phi i64 [ %indvars.iv.next1266, %for.cond157.loopexit ], [ 4, %for.body159.preheader ]
%count.15912 = phi i32 [ %count.16.lcssa, %for.cond157.loopexit ], [ 0, %for.body159.preheader ]
%indvars.iv.next1299 = add nuw nsw i64 %indvars.iv1298, 1
%cmp162907 = icmp ult i64 %indvars.iv1298, 9
br i1 %cmp162907, label %for.body163.lr.ph, label %for.cond157.loopexit
for.body163.lr.ph: ; preds = %for.body159
%arrayidx178 = getelementptr inbounds [10 x i32], ptr %a, i64 0, i64 %indvars.iv1298
br label %for.body163
for.cond161.loopexit: ; preds = %for.body167, %for.cond165.loopexit, %for.body163
%count.17.lcssa = phi i32 [ %count.16909, %for.body163 ], [ %count.17905, %for.body167 ], [ %count.18.lcssa, %for.cond165.loopexit ]
%indvars.iv.next1268 = add nuw nsw i64 %indvars.iv1267, 1
%indvars.iv.next1279 = add nuw nsw i64 %indvars.iv1278, 1
%indvars.iv.next1288 = add nuw nsw i64 %indvars.iv1287, 1
%exitcond1297.not = icmp eq i64 %indvars.iv.next1295, 10
br i1 %exitcond1297.not, label %for.cond157.loopexit, label %for.body163, !llvm.loop !19
for.body163: ; preds = %for.body163.lr.ph, %for.cond161.loopexit
%indvars.iv1294 = phi i64 [ %indvars.iv1292, %for.body163.lr.ph ], [ %indvars.iv.next1295, %for.cond161.loopexit ]
%indvars.iv1287 = phi i64 [ %indvars.iv1285, %for.body163.lr.ph ], [ %indvars.iv.next1288, %for.cond161.loopexit ]
%indvars.iv1278 = phi i64 [ %indvars.iv1276, %for.body163.lr.ph ], [ %indvars.iv.next1279, %for.cond161.loopexit ]
%indvars.iv1267 = phi i64 [ %indvars.iv1265, %for.body163.lr.ph ], [ %indvars.iv.next1268, %for.cond161.loopexit ]
%count.16909 = phi i32 [ %count.15912, %for.body163.lr.ph ], [ %count.17.lcssa, %for.cond161.loopexit ]
%indvars.iv.next1295 = add nuw nsw i64 %indvars.iv1294, 1
%cmp166903 = icmp ult i64 %indvars.iv1294, 9
br i1 %cmp166903, label %for.body167.lr.ph, label %for.cond161.loopexit
for.body167.lr.ph: ; preds = %for.body163
%arrayidx181 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 1, i64 %indvars.iv1294
br label %for.body167
for.cond165.loopexit: ; preds = %for.body171, %for.cond169.loopexit
%count.18.lcssa = phi i32 [ %spec.select767.lcssa, %for.cond169.loopexit ], [ %count.18901, %for.body171 ]
%indvars.iv.next1270 = add nuw nsw i64 %indvars.iv1269, 1
%indvars.iv.next1281 = add nuw nsw i64 %indvars.iv1280, 1
br i1 %cmp170899, label %for.body167, label %for.cond161.loopexit, !llvm.loop !20
for.body167: ; preds = %for.body167.lr.ph, %for.cond165.loopexit
%indvars.iv1289 = phi i64 [ %indvars.iv1287, %for.body167.lr.ph ], [ %indvars.iv.next1290, %for.cond165.loopexit ]
%indvars.iv1280 = phi i64 [ %indvars.iv1278, %for.body167.lr.ph ], [ %indvars.iv.next1281, %for.cond165.loopexit ]
%indvars.iv1269 = phi i64 [ %indvars.iv1267, %for.body167.lr.ph ], [ %indvars.iv.next1270, %for.cond165.loopexit ]
%count.17905 = phi i32 [ %count.16909, %for.body167.lr.ph ], [ %count.18.lcssa, %for.cond165.loopexit ]
%indvars.iv.next1290 = add nuw nsw i64 %indvars.iv1289, 1
%cmp170899 = icmp ult i64 %indvars.iv1289, 9
br i1 %cmp170899, label %for.body171.lr.ph, label %for.cond161.loopexit
for.body171.lr.ph: ; preds = %for.body167
%arrayidx185 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 2, i64 %indvars.iv1289
br label %for.body171
for.cond169.loopexit: ; preds = %for.body175.5, %for.body175.4, %for.body175.3, %for.body175.2, %for.body175.1, %for.body175.lr.ph
%spec.select767.lcssa = phi i32 [ %spec.select767, %for.body175.lr.ph ], [ %spec.select767.1, %for.body175.1 ], [ %spec.select767.2, %for.body175.2 ], [ %spec.select767.3, %for.body175.3 ], [ %spec.select767.4, %for.body175.4 ], [ %spec.select767.5, %for.body175.5 ]
%indvars.iv.next1272 = add nuw nsw i64 %indvars.iv1271, 1
br i1 %cmp174895, label %for.body171, label %for.cond165.loopexit, !llvm.loop !21
for.body171: ; preds = %for.body171.lr.ph, %for.cond169.loopexit
%indvars.iv1282 = phi i64 [ %indvars.iv1280, %for.body171.lr.ph ], [ %indvars.iv.next1283, %for.cond169.loopexit ]
%indvars.iv1271 = phi i64 [ %indvars.iv1269, %for.body171.lr.ph ], [ %indvars.iv.next1272, %for.cond169.loopexit ]
%count.18901 = phi i32 [ %count.17905, %for.body171.lr.ph ], [ %spec.select767.lcssa, %for.cond169.loopexit ]
%indvars.iv.next1283 = add nuw nsw i64 %indvars.iv1282, 1
%cmp174895 = icmp ult i64 %indvars.iv1282, 9
br i1 %cmp174895, label %for.body175.lr.ph, label %for.cond165.loopexit
for.body175.lr.ph: ; preds = %for.body171
%349 = load i32, ptr %arrayidx178, align 4, !tbaa !5
%350 = load i32, ptr %arrayidx181, align 4, !tbaa !5
%add182 = add nsw i32 %350, %349
%351 = load i32, ptr %arrayidx185, align 4, !tbaa !5
%add186 = add nsw i32 %add182, %351
%arrayidx189 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv1282
%352 = load i32, ptr %arrayidx189, align 4, !tbaa !5
%add190 = add nsw i32 %add186, %352
%arrayidx193 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv1271
%353 = load i32, ptr %arrayidx193, align 4, !tbaa !5
%add194 = add nsw i32 %add190, %353
%cmp195 = icmp eq i32 %add194, %21
%inc197 = zext i1 %cmp195 to i32
%spec.select767 = add nsw i32 %count.18901, %inc197
%cmp174 = icmp ult i64 %indvars.iv1271, 9
br i1 %cmp174, label %for.body175.1, label %for.cond169.loopexit, !llvm.loop !22
for.body175.1: ; preds = %for.body175.lr.ph
%indvars.iv.next1274 = add nuw nsw i64 %indvars.iv1271, 1
%arrayidx193.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv.next1274
%354 = load i32, ptr %arrayidx193.1, align 4, !tbaa !5
%add194.1 = add nsw i32 %add190, %354
%cmp195.1 = icmp eq i32 %add194.1, %21
%inc197.1 = zext i1 %cmp195.1 to i32
%spec.select767.1 = add nsw i32 %spec.select767, %inc197.1
%cmp174.1.not = icmp eq i64 %indvars.iv1271, 8
br i1 %cmp174.1.not, label %for.cond169.loopexit, label %for.body175.2, !llvm.loop !22
for.body175.2: ; preds = %for.body175.1
%indvars.iv.next1274.1 = add nuw nsw i64 %indvars.iv1271, 2
%arrayidx193.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv.next1274.1
%355 = load i32, ptr %arrayidx193.2, align 4, !tbaa !5
%add194.2 = add nsw i32 %add190, %355
%cmp195.2 = icmp eq i32 %add194.2, %21
%inc197.2 = zext i1 %cmp195.2 to i32
%spec.select767.2 = add nsw i32 %spec.select767.1, %inc197.2
%cmp174.2 = icmp ult i64 %indvars.iv1271, 7
br i1 %cmp174.2, label %for.body175.3, label %for.cond169.loopexit, !llvm.loop !22
for.body175.3: ; preds = %for.body175.2
%indvars.iv.next1274.2 = add nuw nsw i64 %indvars.iv1271, 3
%arrayidx193.3 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv.next1274.2
%356 = load i32, ptr %arrayidx193.3, align 4, !tbaa !5
%add194.3 = add nsw i32 %add190, %356
%cmp195.3 = icmp eq i32 %add194.3, %21
%inc197.3 = zext i1 %cmp195.3 to i32
%spec.select767.3 = add nsw i32 %spec.select767.2, %inc197.3
%cmp174.3.not = icmp eq i64 %indvars.iv1271, 6
br i1 %cmp174.3.not, label %for.cond169.loopexit, label %for.body175.4, !llvm.loop !22
for.body175.4: ; preds = %for.body175.3
%indvars.iv.next1274.3 = add nuw nsw i64 %indvars.iv1271, 4
%arrayidx193.4 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv.next1274.3
%357 = load i32, ptr %arrayidx193.4, align 4, !tbaa !5
%add194.4 = add nsw i32 %add190, %357
%cmp195.4 = icmp eq i32 %add194.4, %21
%inc197.4 = zext i1 %cmp195.4 to i32
%spec.select767.4 = add nsw i32 %spec.select767.3, %inc197.4
%cmp174.4 = icmp ult i64 %indvars.iv1271, 5
br i1 %cmp174.4, label %for.body175.5, label %for.cond169.loopexit, !llvm.loop !22
for.body175.5: ; preds = %for.body175.4
%indvars.iv.next1274.4 = add nuw nsw i64 %indvars.iv1271, 5
%arrayidx193.5 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv.next1274.4
%358 = load i32, ptr %arrayidx193.5, align 4, !tbaa !5
%add194.5 = add nsw i32 %add190, %358
%cmp195.5 = icmp eq i32 %add194.5, %21
%inc197.5 = zext i1 %cmp195.5 to i32
%spec.select767.5 = add nsw i32 %spec.select767.4, %inc197.5
br label %for.cond169.loopexit
for.cond217.loopexit: ; preds = %for.cond221.loopexit, %for.body219
%count.22.lcssa = phi i32 [ %count.21894, %for.body219 ], [ %count.23.lcssa, %for.cond221.loopexit ]
%359 = add nuw nsw <2 x i64> %360, <i64 1, i64 1>
%indvars.iv.next1240 = add nuw nsw i64 %indvars.iv1239, 1
%indvars.iv.next1249 = add nuw nsw i64 %indvars.iv1248, 1
%indvars.iv.next1256 = add nuw nsw i64 %indvars.iv1255, 1
%exitcond1264.not = icmp eq i64 %indvars.iv.next1262, 10
br i1 %exitcond1264.not, label %if.end572, label %for.body219, !llvm.loop !23
for.body219: ; preds = %for.body219.preheader, %for.cond217.loopexit
%indvars.iv1261 = phi i64 [ %indvars.iv.next1262, %for.cond217.loopexit ], [ 0, %for.body219.preheader ]
%indvars.iv1255 = phi i64 [ %indvars.iv.next1256, %for.cond217.loopexit ], [ 1, %for.body219.preheader ]
%indvars.iv1248 = phi i64 [ %indvars.iv.next1249, %for.cond217.loopexit ], [ 2, %for.body219.preheader ]
%indvars.iv1239 = phi i64 [ %indvars.iv.next1240, %for.cond217.loopexit ], [ 3, %for.body219.preheader ]
%count.21894 = phi i32 [ %count.22.lcssa, %for.cond217.loopexit ], [ 0, %for.body219.preheader ]
%360 = phi <2 x i64> [ %359, %for.cond217.loopexit ], [ <i64 4, i64 5>, %for.body219.preheader ]
%indvars.iv.next1262 = add nuw nsw i64 %indvars.iv1261, 1
%cmp222889 = icmp ult i64 %indvars.iv1261, 9
br i1 %cmp222889, label %for.body223.lr.ph, label %for.cond217.loopexit
for.body223.lr.ph: ; preds = %for.body219
%arrayidx242 = getelementptr inbounds [10 x i32], ptr %a, i64 0, i64 %indvars.iv1261
br label %for.body223
for.cond221.loopexit: ; preds = %for.body227, %for.cond225.loopexit, %for.body223
%count.23.lcssa = phi i32 [ %count.22891, %for.body223 ], [ %count.23887, %for.body227 ], [ %count.24.lcssa, %for.cond225.loopexit ]
%361 = add nuw nsw <2 x i64> %362, <i64 1, i64 1>
%indvars.iv.next1242 = add nuw nsw i64 %indvars.iv1241, 1
%indvars.iv.next1251 = add nuw nsw i64 %indvars.iv1250, 1
%exitcond1260.not = icmp eq i64 %indvars.iv.next1258, 10
br i1 %exitcond1260.not, label %for.cond217.loopexit, label %for.body223, !llvm.loop !24
for.body223: ; preds = %for.body223.lr.ph, %for.cond221.loopexit
%indvars.iv1257 = phi i64 [ %indvars.iv1255, %for.body223.lr.ph ], [ %indvars.iv.next1258, %for.cond221.loopexit ]
%indvars.iv1250 = phi i64 [ %indvars.iv1248, %for.body223.lr.ph ], [ %indvars.iv.next1251, %for.cond221.loopexit ]
%indvars.iv1241 = phi i64 [ %indvars.iv1239, %for.body223.lr.ph ], [ %indvars.iv.next1242, %for.cond221.loopexit ]
%count.22891 = phi i32 [ %count.21894, %for.body223.lr.ph ], [ %count.23.lcssa, %for.cond221.loopexit ]
%362 = phi <2 x i64> [ %360, %for.body223.lr.ph ], [ %361, %for.cond221.loopexit ]
%indvars.iv.next1258 = add nuw nsw i64 %indvars.iv1257, 1
%cmp226885 = icmp ult i64 %indvars.iv1257, 9
br i1 %cmp226885, label %for.body227.lr.ph, label %for.cond221.loopexit
for.body227.lr.ph: ; preds = %for.body223
%arrayidx245 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 1, i64 %indvars.iv1257
br label %for.body227
for.cond225.loopexit: ; preds = %for.body235.6, %for.cond233.loopexit.6, %for.cond229.loopexit.5, %for.body231.5, %for.cond229.loopexit.4, %for.body231.4, %for.cond229.loopexit.3, %for.body231.3, %for.cond229.loopexit.2, %for.body231.2, %for.cond229.loopexit.1, %for.body231.1, %for.body231.lr.ph, %for.cond229.loopexit
%count.24.lcssa = phi i32 [ %count.25.lcssa, %for.cond229.loopexit ], [ %count.23887, %for.body231.lr.ph ], [ %count.25.lcssa, %for.body231.1 ], [ %count.25.lcssa.1, %for.cond229.loopexit.1 ], [ %count.25.lcssa.1, %for.body231.2 ], [ %count.25.lcssa.2, %for.cond229.loopexit.2 ], [ %count.25.lcssa.2, %for.body231.3 ], [ %count.25.lcssa.3, %for.cond229.loopexit.3 ], [ %count.25.lcssa.3, %for.body231.4 ], [ %count.25.lcssa.4, %for.cond229.loopexit.4 ], [ %count.25.lcssa.4, %for.body231.5 ], [ %count.25.lcssa.5, %for.cond229.loopexit.5 ], [ %spec.select768.6, %for.cond233.loopexit.6 ], [ %count.25879.6, %for.body235.6 ]
%363 = add nuw nsw <2 x i64> %364, <i64 1, i64 1>
%indvars.iv.next1244 = add nuw nsw i64 %indvars.iv1243, 1
br i1 %cmp230881, label %for.body227, label %for.cond221.loopexit, !llvm.loop !25
for.body227: ; preds = %for.body227.lr.ph, %for.cond225.loopexit
%indvars.iv1252 = phi i64 [ %indvars.iv1250, %for.body227.lr.ph ], [ %indvars.iv.next1253, %for.cond225.loopexit ]
%indvars.iv1243 = phi i64 [ %indvars.iv1241, %for.body227.lr.ph ], [ %indvars.iv.next1244, %for.cond225.loopexit ]
%count.23887 = phi i32 [ %count.22891, %for.body227.lr.ph ], [ %count.24.lcssa, %for.cond225.loopexit ]
%364 = phi <2 x i64> [ %362, %for.body227.lr.ph ], [ %363, %for.cond225.loopexit ]
%indvars.iv.next1253 = add nuw nsw i64 %indvars.iv1252, 1
%cmp230881 = icmp ult i64 %indvars.iv1252, 9
br i1 %cmp230881, label %for.body231.lr.ph, label %for.cond221.loopexit
for.body231.lr.ph: ; preds = %for.body227
%arrayidx249 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 2, i64 %indvars.iv1252
%indvars.iv.next1246 = add nuw nsw i64 %indvars.iv1243, 1
%cmp234877 = icmp ult i64 %indvars.iv1243, 9
br i1 %cmp234877, label %for.body235.lr.ph, label %for.cond225.loopexit
for.cond229.loopexit: ; preds = %for.body235, %for.cond233.loopexit
%count.25.lcssa = phi i32 [ %spec.select768, %for.cond233.loopexit ], [ %count.25879, %for.body235 ]
%365 = add nuw nsw <2 x i64> %364, <i64 1, i64 1>
br i1 %cmp234877, label %for.body231.1, label %for.cond225.loopexit, !llvm.loop !26
for.body231.1: ; preds = %for.cond229.loopexit
%indvars.iv.next1246.1 = add nuw nsw i64 %indvars.iv1243, 2
%cmp234877.1.not = icmp eq i64 %indvars.iv1243, 8
br i1 %cmp234877.1.not, label %for.cond225.loopexit, label %for.body235.lr.ph.1
for.body235.lr.ph.1: ; preds = %for.body231.1
%arrayidx253.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv.next1246
%366 = extractelement <2 x i64> %365, i64 0
%367 = extractelement <2 x i64> %365, i64 1
br label %for.body235.1
for.body235.1: ; preds = %for.cond233.loopexit.1, %for.body235.lr.ph.1
%indvars.iv1236.1 = phi i64 [ %366, %for.body235.lr.ph.1 ], [ %indvars.iv.next1237.1, %for.cond233.loopexit.1 ]
%indvars.iv1223.1 = phi i64 [ %367, %for.body235.lr.ph.1 ], [ %indvars.iv.next1224.1, %for.cond233.loopexit.1 ]
%count.25879.1 = phi i32 [ %count.25.lcssa, %for.body235.lr.ph.1 ], [ %spec.select768.1, %for.cond233.loopexit.1 ]
%indvars.iv.next1237.1 = add nuw nsw i64 %indvars.iv1236.1, 1
%cmp238873.1 = icmp ult i64 %indvars.iv1236.1, 9
br i1 %cmp238873.1, label %for.body239.lr.ph.1, label %for.cond229.loopexit.1
for.body239.lr.ph.1: ; preds = %for.body235.1
%368 = load i32, ptr %arrayidx242, align 4, !tbaa !5
%369 = load i32, ptr %arrayidx245, align 4, !tbaa !5
%add246.1 = add nsw i32 %369, %368
%370 = load i32, ptr %arrayidx249, align 4, !tbaa !5
%add250.1 = add nsw i32 %add246.1, %370
%371 = load i32, ptr %arrayidx253.1, align 4, !tbaa !5
%add254.1 = add nsw i32 %add250.1, %371
%arrayidx257.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv1236.1
%372 = load i32, ptr %arrayidx257.1, align 4, !tbaa !5
%add258.1 = add nsw i32 %add254.1, %372
br label %for.body239.1
for.body239.1: ; preds = %for.body239.1, %for.body239.lr.ph.1
%indvars.iv1225.1 = phi i64 [ %indvars.iv1223.1, %for.body239.lr.ph.1 ], [ %indvars.iv.next1226.1, %for.body239.1 ]
%count.26875.1 = phi i32 [ %count.25879.1, %for.body239.lr.ph.1 ], [ %spec.select768.1, %for.body239.1 ]
%arrayidx261.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 %indvars.iv1225.1
%373 = load i32, ptr %arrayidx261.1, align 4, !tbaa !5
%add262.1 = add nsw i32 %add258.1, %373
%cmp263.1 = icmp eq i32 %add262.1, %15
%inc265.1 = zext i1 %cmp263.1 to i32
%spec.select768.1 = add nsw i32 %count.26875.1, %inc265.1
%indvars.iv.next1226.1 = add nuw nsw i64 %indvars.iv1225.1, 1
%cmp238.1 = icmp ult i64 %indvars.iv1225.1, 9
br i1 %cmp238.1, label %for.body239.1, label %for.cond233.loopexit.1, !llvm.loop !27
for.cond233.loopexit.1: ; preds = %for.body239.1
%indvars.iv.next1224.1 = add nuw nsw i64 %indvars.iv1223.1, 1
br i1 %cmp238873.1, label %for.body235.1, label %for.cond229.loopexit.1, !llvm.loop !28
for.cond229.loopexit.1: ; preds = %for.cond233.loopexit.1, %for.body235.1
%count.25.lcssa.1 = phi i32 [ %spec.select768.1, %for.cond233.loopexit.1 ], [ %count.25879.1, %for.body235.1 ]
%374 = add nuw nsw <2 x i64> %364, <i64 2, i64 2>
br i1 %cmp234877.1.not, label %for.cond225.loopexit, label %for.body231.2, !llvm.loop !26
for.body231.2: ; preds = %for.cond229.loopexit.1
%indvars.iv.next1246.2 = add nuw nsw i64 %indvars.iv1243, 3
%cmp234877.2 = icmp ult i64 %indvars.iv1243, 7
br i1 %cmp234877.2, label %for.body235.lr.ph.2, label %for.cond225.loopexit
for.body235.lr.ph.2: ; preds = %for.body231.2
%arrayidx253.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv.next1246.1
%375 = extractelement <2 x i64> %374, i64 0
%376 = extractelement <2 x i64> %374, i64 1
br label %for.body235.2
for.body235.2: ; preds = %for.cond233.loopexit.2, %for.body235.lr.ph.2
%indvars.iv1236.2 = phi i64 [ %375, %for.body235.lr.ph.2 ], [ %indvars.iv.next1237.2, %for.cond233.loopexit.2 ]
%indvars.iv1223.2 = phi i64 [ %376, %for.body235.lr.ph.2 ], [ %indvars.iv.next1224.2, %for.cond233.loopexit.2 ]
%count.25879.2 = phi i32 [ %count.25.lcssa.1, %for.body235.lr.ph.2 ], [ %spec.select768.2, %for.cond233.loopexit.2 ]
%indvars.iv.next1237.2 = add nuw nsw i64 %indvars.iv1236.2, 1
%cmp238873.2 = icmp ult i64 %indvars.iv1236.2, 9
br i1 %cmp238873.2, label %for.body239.lr.ph.2, label %for.cond229.loopexit.2
for.body239.lr.ph.2: ; preds = %for.body235.2
%377 = load i32, ptr %arrayidx242, align 4, !tbaa !5
%378 = load i32, ptr %arrayidx245, align 4, !tbaa !5
%add246.2 = add nsw i32 %378, %377
%379 = load i32, ptr %arrayidx249, align 4, !tbaa !5
%add250.2 = add nsw i32 %add246.2, %379
%380 = load i32, ptr %arrayidx253.2, align 4, !tbaa !5
%add254.2 = add nsw i32 %add250.2, %380
%arrayidx257.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv1236.2
%381 = load i32, ptr %arrayidx257.2, align 4, !tbaa !5
%add258.2 = add nsw i32 %add254.2, %381
br label %for.body239.2
for.body239.2: ; preds = %for.body239.2, %for.body239.lr.ph.2
%indvars.iv1225.2 = phi i64 [ %indvars.iv1223.2, %for.body239.lr.ph.2 ], [ %indvars.iv.next1226.2, %for.body239.2 ]
%count.26875.2 = phi i32 [ %count.25879.2, %for.body239.lr.ph.2 ], [ %spec.select768.2, %for.body239.2 ]
%arrayidx261.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 %indvars.iv1225.2
%382 = load i32, ptr %arrayidx261.2, align 4, !tbaa !5
%add262.2 = add nsw i32 %add258.2, %382
%cmp263.2 = icmp eq i32 %add262.2, %16
%inc265.2 = zext i1 %cmp263.2 to i32
%spec.select768.2 = add nsw i32 %count.26875.2, %inc265.2
%indvars.iv.next1226.2 = add nuw nsw i64 %indvars.iv1225.2, 1
%cmp238.2 = icmp ult i64 %indvars.iv1225.2, 9
br i1 %cmp238.2, label %for.body239.2, label %for.cond233.loopexit.2, !llvm.loop !27
for.cond233.loopexit.2: ; preds = %for.body239.2
%indvars.iv.next1224.2 = add nuw nsw i64 %indvars.iv1223.2, 1
br i1 %cmp238873.2, label %for.body235.2, label %for.cond229.loopexit.2, !llvm.loop !28
for.cond229.loopexit.2: ; preds = %for.cond233.loopexit.2, %for.body235.2
%count.25.lcssa.2 = phi i32 [ %spec.select768.2, %for.cond233.loopexit.2 ], [ %count.25879.2, %for.body235.2 ]
%383 = add nuw nsw <2 x i64> %364, <i64 3, i64 3>
br i1 %cmp234877.2, label %for.body231.3, label %for.cond225.loopexit, !llvm.loop !26
for.body231.3: ; preds = %for.cond229.loopexit.2
%indvars.iv.next1246.3 = add nuw nsw i64 %indvars.iv1243, 4
%cmp234877.3.not = icmp eq i64 %indvars.iv1243, 6
br i1 %cmp234877.3.not, label %for.cond225.loopexit, label %for.body235.lr.ph.3
for.body235.lr.ph.3: ; preds = %for.body231.3
%arrayidx253.3 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv.next1246.2
%384 = extractelement <2 x i64> %383, i64 0
%385 = extractelement <2 x i64> %383, i64 1
br label %for.body235.3
for.body235.3: ; preds = %for.cond233.loopexit.3, %for.body235.lr.ph.3
%indvars.iv1236.3 = phi i64 [ %384, %for.body235.lr.ph.3 ], [ %indvars.iv.next1237.3, %for.cond233.loopexit.3 ]
%indvars.iv1223.3 = phi i64 [ %385, %for.body235.lr.ph.3 ], [ %indvars.iv.next1224.3, %for.cond233.loopexit.3 ]
%count.25879.3 = phi i32 [ %count.25.lcssa.2, %for.body235.lr.ph.3 ], [ %spec.select768.3, %for.cond233.loopexit.3 ]
%indvars.iv.next1237.3 = add nuw nsw i64 %indvars.iv1236.3, 1
%cmp238873.3 = icmp ult i64 %indvars.iv1236.3, 9
br i1 %cmp238873.3, label %for.body239.lr.ph.3, label %for.cond229.loopexit.3
for.body239.lr.ph.3: ; preds = %for.body235.3
%386 = load i32, ptr %arrayidx242, align 4, !tbaa !5
%387 = load i32, ptr %arrayidx245, align 4, !tbaa !5
%add246.3 = add nsw i32 %387, %386
%388 = load i32, ptr %arrayidx249, align 4, !tbaa !5
%add250.3 = add nsw i32 %add246.3, %388
%389 = load i32, ptr %arrayidx253.3, align 4, !tbaa !5
%add254.3 = add nsw i32 %add250.3, %389
%arrayidx257.3 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv1236.3
%390 = load i32, ptr %arrayidx257.3, align 4, !tbaa !5
%add258.3 = add nsw i32 %add254.3, %390
br label %for.body239.3
for.body239.3: ; preds = %for.body239.3, %for.body239.lr.ph.3
%indvars.iv1225.3 = phi i64 [ %indvars.iv1223.3, %for.body239.lr.ph.3 ], [ %indvars.iv.next1226.3, %for.body239.3 ]
%count.26875.3 = phi i32 [ %count.25879.3, %for.body239.lr.ph.3 ], [ %spec.select768.3, %for.body239.3 ]
%arrayidx261.3 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 %indvars.iv1225.3
%391 = load i32, ptr %arrayidx261.3, align 4, !tbaa !5
%add262.3 = add nsw i32 %add258.3, %391
%cmp263.3 = icmp eq i32 %add262.3, %17
%inc265.3 = zext i1 %cmp263.3 to i32
%spec.select768.3 = add nsw i32 %count.26875.3, %inc265.3
%indvars.iv.next1226.3 = add nuw nsw i64 %indvars.iv1225.3, 1
%cmp238.3 = icmp ult i64 %indvars.iv1225.3, 9
br i1 %cmp238.3, label %for.body239.3, label %for.cond233.loopexit.3, !llvm.loop !27
for.cond233.loopexit.3: ; preds = %for.body239.3
%indvars.iv.next1224.3 = add nuw nsw i64 %indvars.iv1223.3, 1
br i1 %cmp238873.3, label %for.body235.3, label %for.cond229.loopexit.3, !llvm.loop !28
for.cond229.loopexit.3: ; preds = %for.cond233.loopexit.3, %for.body235.3
%count.25.lcssa.3 = phi i32 [ %spec.select768.3, %for.cond233.loopexit.3 ], [ %count.25879.3, %for.body235.3 ]
%392 = add nuw nsw <2 x i64> %364, <i64 4, i64 4>
br i1 %cmp234877.3.not, label %for.cond225.loopexit, label %for.body231.4, !llvm.loop !26
for.body231.4: ; preds = %for.cond229.loopexit.3
%indvars.iv.next1246.4 = add nuw nsw i64 %indvars.iv1243, 5
%cmp234877.4 = icmp ult i64 %indvars.iv1243, 5
br i1 %cmp234877.4, label %for.body235.lr.ph.4, label %for.cond225.loopexit
for.body235.lr.ph.4: ; preds = %for.body231.4
%arrayidx253.4 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv.next1246.3
%393 = extractelement <2 x i64> %392, i64 0
%394 = extractelement <2 x i64> %392, i64 1
br label %for.body235.4
for.body235.4: ; preds = %for.cond233.loopexit.4, %for.body235.lr.ph.4
%indvars.iv1236.4 = phi i64 [ %393, %for.body235.lr.ph.4 ], [ %indvars.iv.next1237.4, %for.cond233.loopexit.4 ]
%indvars.iv1223.4 = phi i64 [ %394, %for.body235.lr.ph.4 ], [ %indvars.iv.next1224.4, %for.cond233.loopexit.4 ]
%count.25879.4 = phi i32 [ %count.25.lcssa.3, %for.body235.lr.ph.4 ], [ %spec.select768.4, %for.cond233.loopexit.4 ]
%indvars.iv.next1237.4 = add nuw nsw i64 %indvars.iv1236.4, 1
%cmp238873.4 = icmp ult i64 %indvars.iv1236.4, 9
br i1 %cmp238873.4, label %for.body239.lr.ph.4, label %for.cond229.loopexit.4
for.body239.lr.ph.4: ; preds = %for.body235.4
%395 = load i32, ptr %arrayidx242, align 4, !tbaa !5
%396 = load i32, ptr %arrayidx245, align 4, !tbaa !5
%add246.4 = add nsw i32 %396, %395
%397 = load i32, ptr %arrayidx249, align 4, !tbaa !5
%add250.4 = add nsw i32 %add246.4, %397
%398 = load i32, ptr %arrayidx253.4, align 4, !tbaa !5
%add254.4 = add nsw i32 %add250.4, %398
%arrayidx257.4 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv1236.4
%399 = load i32, ptr %arrayidx257.4, align 4, !tbaa !5
%add258.4 = add nsw i32 %add254.4, %399
br label %for.body239.4
for.body239.4: ; preds = %for.body239.4, %for.body239.lr.ph.4
%indvars.iv1225.4 = phi i64 [ %indvars.iv1223.4, %for.body239.lr.ph.4 ], [ %indvars.iv.next1226.4, %for.body239.4 ]
%count.26875.4 = phi i32 [ %count.25879.4, %for.body239.lr.ph.4 ], [ %spec.select768.4, %for.body239.4 ]
%arrayidx261.4 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 %indvars.iv1225.4
%400 = load i32, ptr %arrayidx261.4, align 4, !tbaa !5
%add262.4 = add nsw i32 %add258.4, %400
%cmp263.4 = icmp eq i32 %add262.4, %18
%inc265.4 = zext i1 %cmp263.4 to i32
%spec.select768.4 = add nsw i32 %count.26875.4, %inc265.4
%indvars.iv.next1226.4 = add nuw nsw i64 %indvars.iv1225.4, 1
%cmp238.4 = icmp ult i64 %indvars.iv1225.4, 9
br i1 %cmp238.4, label %for.body239.4, label %for.cond233.loopexit.4, !llvm.loop !27
for.cond233.loopexit.4: ; preds = %for.body239.4
%indvars.iv.next1224.4 = add nuw nsw i64 %indvars.iv1223.4, 1
br i1 %cmp238873.4, label %for.body235.4, label %for.cond229.loopexit.4, !llvm.loop !28
for.cond229.loopexit.4: ; preds = %for.cond233.loopexit.4, %for.body235.4
%count.25.lcssa.4 = phi i32 [ %spec.select768.4, %for.cond233.loopexit.4 ], [ %count.25879.4, %for.body235.4 ]
%401 = add nuw nsw <2 x i64> %364, <i64 5, i64 5>
br i1 %cmp234877.4, label %for.body231.5, label %for.cond225.loopexit, !llvm.loop !26
for.body231.5: ; preds = %for.cond229.loopexit.4
%indvars.iv.next1246.5 = add nuw nsw i64 %indvars.iv1243, 6
%cmp234877.5.not = icmp eq i64 %indvars.iv1243, 4
br i1 %cmp234877.5.not, label %for.cond225.loopexit, label %for.body235.lr.ph.5
for.body235.lr.ph.5: ; preds = %for.body231.5
%arrayidx253.5 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv.next1246.4
%402 = extractelement <2 x i64> %401, i64 0
%403 = extractelement <2 x i64> %401, i64 1
br label %for.body235.5
for.body235.5: ; preds = %for.cond233.loopexit.5, %for.body235.lr.ph.5
%indvars.iv1236.5 = phi i64 [ %402, %for.body235.lr.ph.5 ], [ %indvars.iv.next1237.5, %for.cond233.loopexit.5 ]
%indvars.iv1223.5 = phi i64 [ %403, %for.body235.lr.ph.5 ], [ %indvars.iv.next1224.5, %for.cond233.loopexit.5 ]
%count.25879.5 = phi i32 [ %count.25.lcssa.4, %for.body235.lr.ph.5 ], [ %spec.select768.5, %for.cond233.loopexit.5 ]
%indvars.iv.next1237.5 = add nuw nsw i64 %indvars.iv1236.5, 1
%cmp238873.5 = icmp ult i64 %indvars.iv1236.5, 9
br i1 %cmp238873.5, label %for.body239.lr.ph.5, label %for.cond229.loopexit.5
for.body239.lr.ph.5: ; preds = %for.body235.5
%404 = load i32, ptr %arrayidx242, align 4, !tbaa !5
%405 = load i32, ptr %arrayidx245, align 4, !tbaa !5
%add246.5 = add nsw i32 %405, %404
%406 = load i32, ptr %arrayidx249, align 4, !tbaa !5
%add250.5 = add nsw i32 %add246.5, %406
%407 = load i32, ptr %arrayidx253.5, align 4, !tbaa !5
%add254.5 = add nsw i32 %add250.5, %407
%arrayidx257.5 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv1236.5
%408 = load i32, ptr %arrayidx257.5, align 4, !tbaa !5
%add258.5 = add nsw i32 %add254.5, %408
br label %for.body239.5
for.body239.5: ; preds = %for.body239.5, %for.body239.lr.ph.5
%indvars.iv1225.5 = phi i64 [ %indvars.iv1223.5, %for.body239.lr.ph.5 ], [ %indvars.iv.next1226.5, %for.body239.5 ]
%count.26875.5 = phi i32 [ %count.25879.5, %for.body239.lr.ph.5 ], [ %spec.select768.5, %for.body239.5 ]
%arrayidx261.5 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 %indvars.iv1225.5
%409 = load i32, ptr %arrayidx261.5, align 4, !tbaa !5
%add262.5 = add nsw i32 %add258.5, %409
%cmp263.5 = icmp eq i32 %add262.5, %19
%inc265.5 = zext i1 %cmp263.5 to i32
%spec.select768.5 = add nsw i32 %count.26875.5, %inc265.5
%indvars.iv.next1226.5 = add nuw nsw i64 %indvars.iv1225.5, 1
%cmp238.5 = icmp ult i64 %indvars.iv1225.5, 9
br i1 %cmp238.5, label %for.body239.5, label %for.cond233.loopexit.5, !llvm.loop !27
for.cond233.loopexit.5: ; preds = %for.body239.5
%indvars.iv.next1224.5 = add nuw nsw i64 %indvars.iv1223.5, 1
br i1 %cmp238873.5, label %for.body235.5, label %for.cond229.loopexit.5, !llvm.loop !28
for.cond229.loopexit.5: ; preds = %for.cond233.loopexit.5, %for.body235.5
%count.25.lcssa.5 = phi i32 [ %spec.select768.5, %for.cond233.loopexit.5 ], [ %count.25879.5, %for.body235.5 ]
%410 = add nuw nsw <2 x i64> %364, <i64 6, i64 6>
%cmp234877.5.not.not = xor i1 %cmp234877.5.not, true
%cmp234877.6 = icmp ult i64 %indvars.iv1243, 3
%or.cond1810 = and i1 %cmp234877.5.not.not, %cmp234877.6
br i1 %or.cond1810, label %for.body235.lr.ph.6, label %for.cond225.loopexit, !llvm.loop !26
for.body235.lr.ph.6: ; preds = %for.cond229.loopexit.5
%arrayidx253.6 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv.next1246.5
%411 = extractelement <2 x i64> %410, i64 0
%412 = extractelement <2 x i64> %410, i64 1
br label %for.body235.6
for.body235.6: ; preds = %for.cond233.loopexit.6, %for.body235.lr.ph.6
%indvars.iv1236.6 = phi i64 [ %411, %for.body235.lr.ph.6 ], [ %indvars.iv.next1237.6, %for.cond233.loopexit.6 ]
%indvars.iv1223.6 = phi i64 [ %412, %for.body235.lr.ph.6 ], [ %indvars.iv.next1224.6, %for.cond233.loopexit.6 ]
%count.25879.6 = phi i32 [ %count.25.lcssa.5, %for.body235.lr.ph.6 ], [ %spec.select768.6, %for.cond233.loopexit.6 ]
%indvars.iv.next1237.6 = add nuw nsw i64 %indvars.iv1236.6, 1
%cmp238873.6 = icmp ult i64 %indvars.iv1236.6, 9
br i1 %cmp238873.6, label %for.body239.lr.ph.6, label %for.cond225.loopexit
for.body239.lr.ph.6: ; preds = %for.body235.6
%413 = load i32, ptr %arrayidx242, align 4, !tbaa !5
%414 = load i32, ptr %arrayidx245, align 4, !tbaa !5
%add246.6 = add nsw i32 %414, %413
%415 = load i32, ptr %arrayidx249, align 4, !tbaa !5
%add250.6 = add nsw i32 %add246.6, %415
%416 = load i32, ptr %arrayidx253.6, align 4, !tbaa !5
%add254.6 = add nsw i32 %add250.6, %416
%arrayidx257.6 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv1236.6
%417 = load i32, ptr %arrayidx257.6, align 4, !tbaa !5
%add258.6 = add nsw i32 %add254.6, %417
br label %for.body239.6
for.body239.6: ; preds = %for.body239.6, %for.body239.lr.ph.6
%indvars.iv1225.6 = phi i64 [ %indvars.iv1223.6, %for.body239.lr.ph.6 ], [ %indvars.iv.next1226.6, %for.body239.6 ]
%count.26875.6 = phi i32 [ %count.25879.6, %for.body239.lr.ph.6 ], [ %spec.select768.6, %for.body239.6 ]
%arrayidx261.6 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 %indvars.iv1225.6
%418 = load i32, ptr %arrayidx261.6, align 4, !tbaa !5
%add262.6 = add nsw i32 %add258.6, %418
%cmp263.6 = icmp eq i32 %add262.6, %20
%inc265.6 = zext i1 %cmp263.6 to i32
%spec.select768.6 = add nsw i32 %count.26875.6, %inc265.6
%indvars.iv.next1226.6 = add nuw nsw i64 %indvars.iv1225.6, 1
%cmp238.6 = icmp ult i64 %indvars.iv1225.6, 9
br i1 %cmp238.6, label %for.body239.6, label %for.cond233.loopexit.6, !llvm.loop !27
for.cond233.loopexit.6: ; preds = %for.body239.6
%indvars.iv.next1224.6 = add nuw nsw i64 %indvars.iv1223.6, 1
br i1 %cmp238873.6, label %for.body235.6, label %for.cond225.loopexit, !llvm.loop !28
for.body235.lr.ph: ; preds = %for.body231.lr.ph
%arrayidx253 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv1243
%419 = extractelement <2 x i64> %364, i64 0
%420 = extractelement <2 x i64> %364, i64 1
br label %for.body235
for.cond233.loopexit: ; preds = %for.body239
%indvars.iv.next1224 = add nuw nsw i64 %indvars.iv1223, 1
br i1 %cmp238873, label %for.body235, label %for.cond229.loopexit, !llvm.loop !28
for.body235: ; preds = %for.body235.lr.ph, %for.cond233.loopexit
%indvars.iv1236 = phi i64 [ %419, %for.body235.lr.ph ], [ %indvars.iv.next1237, %for.cond233.loopexit ]
%indvars.iv1223 = phi i64 [ %420, %for.body235.lr.ph ], [ %indvars.iv.next1224, %for.cond233.loopexit ]
%count.25879 = phi i32 [ %count.23887, %for.body235.lr.ph ], [ %spec.select768, %for.cond233.loopexit ]
%indvars.iv.next1237 = add nuw nsw i64 %indvars.iv1236, 1
%cmp238873 = icmp ult i64 %indvars.iv1236, 9
br i1 %cmp238873, label %for.body239.lr.ph, label %for.cond229.loopexit
for.body239.lr.ph: ; preds = %for.body235
%421 = load i32, ptr %arrayidx242, align 4, !tbaa !5
%422 = load i32, ptr %arrayidx245, align 4, !tbaa !5
%add246 = add nsw i32 %422, %421
%423 = load i32, ptr %arrayidx249, align 4, !tbaa !5
%add250 = add nsw i32 %add246, %423
%424 = load i32, ptr %arrayidx253, align 4, !tbaa !5
%add254 = add nsw i32 %add250, %424
%arrayidx257 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv1236
%425 = load i32, ptr %arrayidx257, align 4, !tbaa !5
%add258 = add nsw i32 %add254, %425
br label %for.body239
for.body239: ; preds = %for.body239.lr.ph, %for.body239
%indvars.iv1225 = phi i64 [ %indvars.iv1223, %for.body239.lr.ph ], [ %indvars.iv.next1226, %for.body239 ]
%count.26875 = phi i32 [ %count.25879, %for.body239.lr.ph ], [ %spec.select768, %for.body239 ]
%arrayidx261 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 %indvars.iv1225
%426 = load i32, ptr %arrayidx261, align 4, !tbaa !5
%add262 = add nsw i32 %add258, %426
%cmp263 = icmp eq i32 %add262, %14
%inc265 = zext i1 %cmp263 to i32
%spec.select768 = add nsw i32 %count.26875, %inc265
%indvars.iv.next1226 = add nuw nsw i64 %indvars.iv1225, 1
%cmp238 = icmp ult i64 %indvars.iv1225, 9
br i1 %cmp238, label %for.body239, label %for.cond233.loopexit, !llvm.loop !27
for.cond288.loopexit: ; preds = %for.cond292.loopexit, %for.body290
%count.29.lcssa = phi i32 [ %count.28872, %for.body290 ], [ %count.30.lcssa, %for.cond292.loopexit ]
%427 = add nuw nsw <2 x i64> %428, <i64 1, i64 1>
%indvars.iv.next1179 = add nuw nsw i64 %indvars.iv1178, 1
%indvars.iv.next1190 = add nuw nsw i64 %indvars.iv1189, 1
%indvars.iv.next1199 = add nuw nsw i64 %indvars.iv1198, 1
%indvars.iv.next1206 = add nuw nsw i64 %indvars.iv1205, 1
%exitcond1214.not = icmp eq i64 %indvars.iv.next1212, 10
br i1 %exitcond1214.not, label %if.end572, label %for.body290, !llvm.loop !29
for.body290: ; preds = %for.body290.preheader, %for.cond288.loopexit
%indvars.iv1211 = phi i64 [ %indvars.iv.next1212, %for.cond288.loopexit ], [ 0, %for.body290.preheader ]
%indvars.iv1205 = phi i64 [ %indvars.iv.next1206, %for.cond288.loopexit ], [ 1, %for.body290.preheader ]
%indvars.iv1198 = phi i64 [ %indvars.iv.next1199, %for.cond288.loopexit ], [ 2, %for.body290.preheader ]
%indvars.iv1189 = phi i64 [ %indvars.iv.next1190, %for.cond288.loopexit ], [ 3, %for.body290.preheader ]
%indvars.iv1178 = phi i64 [ %indvars.iv.next1179, %for.cond288.loopexit ], [ 4, %for.body290.preheader ]
%count.28872 = phi i32 [ %count.29.lcssa, %for.cond288.loopexit ], [ 0, %for.body290.preheader ]
%428 = phi <2 x i64> [ %427, %for.cond288.loopexit ], [ <i64 5, i64 6>, %for.body290.preheader ]
%indvars.iv.next1212 = add nuw nsw i64 %indvars.iv1211, 1
%cmp293867 = icmp ult i64 %indvars.iv1211, 9
br i1 %cmp293867, label %for.body294.lr.ph, label %for.cond288.loopexit
for.body294.lr.ph: ; preds = %for.body290
%arrayidx317 = getelementptr inbounds [10 x i32], ptr %a, i64 0, i64 %indvars.iv1211
br label %for.body294
for.cond292.loopexit: ; preds = %for.body298, %for.cond296.loopexit, %for.body294
%count.30.lcssa = phi i32 [ %count.29869, %for.body294 ], [ %count.30865, %for.body298 ], [ %count.31.lcssa, %for.cond296.loopexit ]
%429 = add nuw nsw <2 x i64> %430, <i64 1, i64 1>
%indvars.iv.next1181 = add nuw nsw i64 %indvars.iv1180, 1
%indvars.iv.next1192 = add nuw nsw i64 %indvars.iv1191, 1
%indvars.iv.next1201 = add nuw nsw i64 %indvars.iv1200, 1
%exitcond1210.not = icmp eq i64 %indvars.iv.next1208, 10
br i1 %exitcond1210.not, label %for.cond288.loopexit, label %for.body294, !llvm.loop !30
for.body294: ; preds = %for.body294.lr.ph, %for.cond292.loopexit
%indvars.iv1207 = phi i64 [ %indvars.iv1205, %for.body294.lr.ph ], [ %indvars.iv.next1208, %for.cond292.loopexit ]
%indvars.iv1200 = phi i64 [ %indvars.iv1198, %for.body294.lr.ph ], [ %indvars.iv.next1201, %for.cond292.loopexit ]
%indvars.iv1191 = phi i64 [ %indvars.iv1189, %for.body294.lr.ph ], [ %indvars.iv.next1192, %for.cond292.loopexit ]
%indvars.iv1180 = phi i64 [ %indvars.iv1178, %for.body294.lr.ph ], [ %indvars.iv.next1181, %for.cond292.loopexit ]
%count.29869 = phi i32 [ %count.28872, %for.body294.lr.ph ], [ %count.30.lcssa, %for.cond292.loopexit ]
%430 = phi <2 x i64> [ %428, %for.body294.lr.ph ], [ %429, %for.cond292.loopexit ]
%indvars.iv.next1208 = add nuw nsw i64 %indvars.iv1207, 1
%cmp297863 = icmp ult i64 %indvars.iv1207, 9
br i1 %cmp297863, label %for.body298.lr.ph, label %for.cond292.loopexit
for.body298.lr.ph: ; preds = %for.body294
%arrayidx320 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 1, i64 %indvars.iv1207
br label %for.body298
for.cond296.loopexit: ; preds = %for.body302, %for.cond300.loopexit
%count.31.lcssa = phi i32 [ %count.32.lcssa, %for.cond300.loopexit ], [ %count.31861, %for.body302 ]
%431 = add nuw nsw <2 x i64> %432, <i64 1, i64 1>
%indvars.iv.next1183 = add nuw nsw i64 %indvars.iv1182, 1
%indvars.iv.next1194 = add nuw nsw i64 %indvars.iv1193, 1
br i1 %cmp301859, label %for.body298, label %for.cond292.loopexit, !llvm.loop !31
for.body298: ; preds = %for.body298.lr.ph, %for.cond296.loopexit
%indvars.iv1202 = phi i64 [ %indvars.iv1200, %for.body298.lr.ph ], [ %indvars.iv.next1203, %for.cond296.loopexit ]
%indvars.iv1193 = phi i64 [ %indvars.iv1191, %for.body298.lr.ph ], [ %indvars.iv.next1194, %for.cond296.loopexit ]
%indvars.iv1182 = phi i64 [ %indvars.iv1180, %for.body298.lr.ph ], [ %indvars.iv.next1183, %for.cond296.loopexit ]
%count.30865 = phi i32 [ %count.29869, %for.body298.lr.ph ], [ %count.31.lcssa, %for.cond296.loopexit ]
%432 = phi <2 x i64> [ %430, %for.body298.lr.ph ], [ %431, %for.cond296.loopexit ]
%indvars.iv.next1203 = add nuw nsw i64 %indvars.iv1202, 1
%cmp301859 = icmp ult i64 %indvars.iv1202, 9
br i1 %cmp301859, label %for.body302.lr.ph, label %for.cond292.loopexit
for.body302.lr.ph: ; preds = %for.body298
%arrayidx324 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 2, i64 %indvars.iv1202
br label %for.body302
for.cond300.loopexit: ; preds = %for.body310.5, %for.cond308.loopexit.5, %for.cond304.loopexit.4, %for.body306.4, %for.cond304.loopexit.3, %for.body306.3, %for.cond304.loopexit.2, %for.body306.2, %for.cond304.loopexit.1, %for.body306.1, %for.body306.lr.ph, %for.cond304.loopexit
%count.32.lcssa = phi i32 [ %count.33.lcssa, %for.cond304.loopexit ], [ %count.31861, %for.body306.lr.ph ], [ %count.33.lcssa, %for.body306.1 ], [ %count.33.lcssa.1, %for.cond304.loopexit.1 ], [ %count.33.lcssa.1, %for.body306.2 ], [ %count.33.lcssa.2, %for.cond304.loopexit.2 ], [ %count.33.lcssa.2, %for.body306.3 ], [ %count.33.lcssa.3, %for.cond304.loopexit.3 ], [ %count.33.lcssa.3, %for.body306.4 ], [ %count.33.lcssa.4, %for.cond304.loopexit.4 ], [ %spec.select769.5, %for.cond308.loopexit.5 ], [ %count.33853.5, %for.body310.5 ]
%433 = add nuw nsw <2 x i64> %434, <i64 1, i64 1>
%indvars.iv.next1185 = add nuw nsw i64 %indvars.iv1184, 1
br i1 %cmp305855, label %for.body302, label %for.cond296.loopexit, !llvm.loop !32
for.body302: ; preds = %for.body302.lr.ph, %for.cond300.loopexit
%indvars.iv1195 = phi i64 [ %indvars.iv1193, %for.body302.lr.ph ], [ %indvars.iv.next1196, %for.cond300.loopexit ]
%indvars.iv1184 = phi i64 [ %indvars.iv1182, %for.body302.lr.ph ], [ %indvars.iv.next1185, %for.cond300.loopexit ]
%count.31861 = phi i32 [ %count.30865, %for.body302.lr.ph ], [ %count.32.lcssa, %for.cond300.loopexit ]
%434 = phi <2 x i64> [ %432, %for.body302.lr.ph ], [ %433, %for.cond300.loopexit ]
%indvars.iv.next1196 = add nuw nsw i64 %indvars.iv1195, 1
%cmp305855 = icmp ult i64 %indvars.iv1195, 9
br i1 %cmp305855, label %for.body306.lr.ph, label %for.cond296.loopexit
for.body306.lr.ph: ; preds = %for.body302
%arrayidx328 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv1195
%indvars.iv.next1187 = add nuw nsw i64 %indvars.iv1184, 1
%cmp309851 = icmp ult i64 %indvars.iv1184, 9
br i1 %cmp309851, label %for.body310.lr.ph, label %for.cond300.loopexit
for.cond304.loopexit: ; preds = %for.body310, %for.cond308.loopexit
%count.33.lcssa = phi i32 [ %spec.select769, %for.cond308.loopexit ], [ %count.33853, %for.body310 ]
%435 = add nuw nsw <2 x i64> %434, <i64 1, i64 1>
br i1 %cmp309851, label %for.body306.1, label %for.cond300.loopexit, !llvm.loop !33
for.body306.1: ; preds = %for.cond304.loopexit
%indvars.iv.next1187.1 = add nuw nsw i64 %indvars.iv1184, 2
%cmp309851.1.not = icmp eq i64 %indvars.iv1184, 8
br i1 %cmp309851.1.not, label %for.cond300.loopexit, label %for.body310.lr.ph.1
for.body310.lr.ph.1: ; preds = %for.body306.1
%arrayidx332.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv.next1187
%436 = extractelement <2 x i64> %435, i64 0
%437 = extractelement <2 x i64> %435, i64 1
br label %for.body310.1
for.body310.1: ; preds = %for.cond308.loopexit.1, %for.body310.lr.ph.1
%indvars.iv1175.1 = phi i64 [ %436, %for.body310.lr.ph.1 ], [ %indvars.iv.next1176.1, %for.cond308.loopexit.1 ]
%indvars.iv1160.1 = phi i64 [ %437, %for.body310.lr.ph.1 ], [ %indvars.iv.next1161.1, %for.cond308.loopexit.1 ]
%count.33853.1 = phi i32 [ %count.33.lcssa, %for.body310.lr.ph.1 ], [ %spec.select769.1, %for.cond308.loopexit.1 ]
%indvars.iv.next1176.1 = add nuw nsw i64 %indvars.iv1175.1, 1
%cmp313847.1 = icmp ult i64 %indvars.iv1175.1, 9
br i1 %cmp313847.1, label %for.body314.lr.ph.1, label %for.cond304.loopexit.1
for.body314.lr.ph.1: ; preds = %for.body310.1
%438 = load i32, ptr %arrayidx317, align 4, !tbaa !5
%439 = load i32, ptr %arrayidx320, align 4, !tbaa !5
%add321.1 = add nsw i32 %439, %438
%440 = load i32, ptr %arrayidx324, align 4, !tbaa !5
%add325.1 = add nsw i32 %add321.1, %440
%441 = load i32, ptr %arrayidx328, align 4, !tbaa !5
%add329.1 = add nsw i32 %add325.1, %441
%442 = load i32, ptr %arrayidx332.1, align 4, !tbaa !5
%add333.1 = add nsw i32 %add329.1, %442
%arrayidx336.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 %indvars.iv1175.1
%443 = load i32, ptr %arrayidx336.1, align 4, !tbaa !5
%add337.1 = add nsw i32 %add333.1, %443
br label %for.body314.1
for.body314.1: ; preds = %for.body314.1, %for.body314.lr.ph.1
%indvars.iv1162.1 = phi i64 [ %indvars.iv1160.1, %for.body314.lr.ph.1 ], [ %indvars.iv.next1163.1, %for.body314.1 ]
%count.34849.1 = phi i32 [ %count.33853.1, %for.body314.lr.ph.1 ], [ %spec.select769.1, %for.body314.1 ]
%arrayidx340.1 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 6, i64 %indvars.iv1162.1
%444 = load i32, ptr %arrayidx340.1, align 4, !tbaa !5
%add341.1 = add nsw i32 %add337.1, %444
%cmp342.1 = icmp eq i32 %add341.1, %9
%inc344.1 = zext i1 %cmp342.1 to i32
%spec.select769.1 = add nsw i32 %count.34849.1, %inc344.1
%indvars.iv.next1163.1 = add nuw nsw i64 %indvars.iv1162.1, 1
%cmp313.1 = icmp ult i64 %indvars.iv1162.1, 9
br i1 %cmp313.1, label %for.body314.1, label %for.cond308.loopexit.1, !llvm.loop !34
for.cond308.loopexit.1: ; preds = %for.body314.1
%indvars.iv.next1161.1 = add nuw nsw i64 %indvars.iv1160.1, 1
br i1 %cmp313847.1, label %for.body310.1, label %for.cond304.loopexit.1, !llvm.loop !35
for.cond304.loopexit.1: ; preds = %for.cond308.loopexit.1, %for.body310.1
%count.33.lcssa.1 = phi i32 [ %spec.select769.1, %for.cond308.loopexit.1 ], [ %count.33853.1, %for.body310.1 ]
%445 = add nuw nsw <2 x i64> %434, <i64 2, i64 2>
br i1 %cmp309851.1.not, label %for.cond300.loopexit, label %for.body306.2, !llvm.loop !33
for.body306.2: ; preds = %for.cond304.loopexit.1
%indvars.iv.next1187.2 = add nuw nsw i64 %indvars.iv1184, 3
%cmp309851.2 = icmp ult i64 %indvars.iv1184, 7
br i1 %cmp309851.2, label %for.body310.lr.ph.2, label %for.cond300.loopexit
for.body310.lr.ph.2: ; preds = %for.body306.2
%arrayidx332.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv.next1187.1
%446 = extractelement <2 x i64> %445, i64 0
%447 = extractelement <2 x i64> %445, i64 1
br label %for.body310.2
for.body310.2: ; preds = %for.cond308.loopexit.2, %for.body310.lr.ph.2
%indvars.iv1175.2 = phi i64 [ %446, %for.body310.lr.ph.2 ], [ %indvars.iv.next1176.2, %for.cond308.loopexit.2 ]
%indvars.iv1160.2 = phi i64 [ %447, %for.body310.lr.ph.2 ], [ %indvars.iv.next1161.2, %for.cond308.loopexit.2 ]
%count.33853.2 = phi i32 [ %count.33.lcssa.1, %for.body310.lr.ph.2 ], [ %spec.select769.2, %for.cond308.loopexit.2 ]
%indvars.iv.next1176.2 = add nuw nsw i64 %indvars.iv1175.2, 1
%cmp313847.2 = icmp ult i64 %indvars.iv1175.2, 9
br i1 %cmp313847.2, label %for.body314.lr.ph.2, label %for.cond304.loopexit.2
for.body314.lr.ph.2: ; preds = %for.body310.2
%448 = load i32, ptr %arrayidx317, align 4, !tbaa !5
%449 = load i32, ptr %arrayidx320, align 4, !tbaa !5
%add321.2 = add nsw i32 %449, %448
%450 = load i32, ptr %arrayidx324, align 4, !tbaa !5
%add325.2 = add nsw i32 %add321.2, %450
%451 = load i32, ptr %arrayidx328, align 4, !tbaa !5
%add329.2 = add nsw i32 %add325.2, %451
%452 = load i32, ptr %arrayidx332.2, align 4, !tbaa !5
%add333.2 = add nsw i32 %add329.2, %452
%arrayidx336.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 %indvars.iv1175.2
%453 = load i32, ptr %arrayidx336.2, align 4, !tbaa !5
%add337.2 = add nsw i32 %add333.2, %453
br label %for.body314.2
for.body314.2: ; preds = %for.body314.2, %for.body314.lr.ph.2
%indvars.iv1162.2 = phi i64 [ %indvars.iv1160.2, %for.body314.lr.ph.2 ], [ %indvars.iv.next1163.2, %for.body314.2 ]
%count.34849.2 = phi i32 [ %count.33853.2, %for.body314.lr.ph.2 ], [ %spec.select769.2, %for.body314.2 ]
%arrayidx340.2 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 6, i64 %indvars.iv1162.2
%454 = load i32, ptr %arrayidx340.2, align 4, !tbaa !5
%add341.2 = add nsw i32 %add337.2, %454
%cmp342.2 = icmp eq i32 %add341.2, %10
%inc344.2 = zext i1 %cmp342.2 to i32
%spec.select769.2 = add nsw i32 %count.34849.2, %inc344.2
%indvars.iv.next1163.2 = add nuw nsw i64 %indvars.iv1162.2, 1
%cmp313.2 = icmp ult i64 %indvars.iv1162.2, 9
br i1 %cmp313.2, label %for.body314.2, label %for.cond308.loopexit.2, !llvm.loop !34
for.cond308.loopexit.2: ; preds = %for.body314.2
%indvars.iv.next1161.2 = add nuw nsw i64 %indvars.iv1160.2, 1
br i1 %cmp313847.2, label %for.body310.2, label %for.cond304.loopexit.2, !llvm.loop !35
for.cond304.loopexit.2: ; preds = %for.cond308.loopexit.2, %for.body310.2
%count.33.lcssa.2 = phi i32 [ %spec.select769.2, %for.cond308.loopexit.2 ], [ %count.33853.2, %for.body310.2 ]
%455 = add nuw nsw <2 x i64> %434, <i64 3, i64 3>
br i1 %cmp309851.2, label %for.body306.3, label %for.cond300.loopexit, !llvm.loop !33
for.body306.3: ; preds = %for.cond304.loopexit.2
%indvars.iv.next1187.3 = add nuw nsw i64 %indvars.iv1184, 4
%cmp309851.3.not = icmp eq i64 %indvars.iv1184, 6
br i1 %cmp309851.3.not, label %for.cond300.loopexit, label %for.body310.lr.ph.3
for.body310.lr.ph.3: ; preds = %for.body306.3
%arrayidx332.3 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv.next1187.2
%456 = extractelement <2 x i64> %455, i64 0
%457 = extractelement <2 x i64> %455, i64 1
br label %for.body310.3
for.body310.3: ; preds = %for.cond308.loopexit.3, %for.body310.lr.ph.3
%indvars.iv1175.3 = phi i64 [ %456, %for.body310.lr.ph.3 ], [ %indvars.iv.next1176.3, %for.cond308.loopexit.3 ]
%indvars.iv1160.3 = phi i64 [ %457, %for.body310.lr.ph.3 ], [ %indvars.iv.next1161.3, %for.cond308.loopexit.3 ]
%count.33853.3 = phi i32 [ %count.33.lcssa.2, %for.body310.lr.ph.3 ], [ %spec.select769.3, %for.cond308.loopexit.3 ]
%indvars.iv.next1176.3 = add nuw nsw i64 %indvars.iv1175.3, 1
%cmp313847.3 = icmp ult i64 %indvars.iv1175.3, 9
br i1 %cmp313847.3, label %for.body314.lr.ph.3, label %for.cond304.loopexit.3
for.body314.lr.ph.3: ; preds = %for.body310.3
%458 = load i32, ptr %arrayidx317, align 4, !tbaa !5
%459 = load i32, ptr %arrayidx320, align 4, !tbaa !5
%add321.3 = add nsw i32 %459, %458
%460 = load i32, ptr %arrayidx324, align 4, !tbaa !5
%add325.3 = add nsw i32 %add321.3, %460
%461 = load i32, ptr %arrayidx328, align 4, !tbaa !5
%add329.3 = add nsw i32 %add325.3, %461
%462 = load i32, ptr %arrayidx332.3, align 4, !tbaa !5
%add333.3 = add nsw i32 %add329.3, %462
%arrayidx336.3 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 %indvars.iv1175.3
%463 = load i32, ptr %arrayidx336.3, align 4, !tbaa !5
%add337.3 = add nsw i32 %add333.3, %463
br label %for.body314.3
for.body314.3: ; preds = %for.body314.3, %for.body314.lr.ph.3
%indvars.iv1162.3 = phi i64 [ %indvars.iv1160.3, %for.body314.lr.ph.3 ], [ %indvars.iv.next1163.3, %for.body314.3 ]
%count.34849.3 = phi i32 [ %count.33853.3, %for.body314.lr.ph.3 ], [ %spec.select769.3, %for.body314.3 ]
%arrayidx340.3 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 6, i64 %indvars.iv1162.3
%464 = load i32, ptr %arrayidx340.3, align 4, !tbaa !5
%add341.3 = add nsw i32 %add337.3, %464
%cmp342.3 = icmp eq i32 %add341.3, %11
%inc344.3 = zext i1 %cmp342.3 to i32
%spec.select769.3 = add nsw i32 %count.34849.3, %inc344.3
%indvars.iv.next1163.3 = add nuw nsw i64 %indvars.iv1162.3, 1
%cmp313.3 = icmp ult i64 %indvars.iv1162.3, 9
br i1 %cmp313.3, label %for.body314.3, label %for.cond308.loopexit.3, !llvm.loop !34
for.cond308.loopexit.3: ; preds = %for.body314.3
%indvars.iv.next1161.3 = add nuw nsw i64 %indvars.iv1160.3, 1
br i1 %cmp313847.3, label %for.body310.3, label %for.cond304.loopexit.3, !llvm.loop !35
for.cond304.loopexit.3: ; preds = %for.cond308.loopexit.3, %for.body310.3
%count.33.lcssa.3 = phi i32 [ %spec.select769.3, %for.cond308.loopexit.3 ], [ %count.33853.3, %for.body310.3 ]
%465 = add nuw nsw <2 x i64> %434, <i64 4, i64 4>
br i1 %cmp309851.3.not, label %for.cond300.loopexit, label %for.body306.4, !llvm.loop !33
for.body306.4: ; preds = %for.cond304.loopexit.3
%indvars.iv.next1187.4 = add nuw nsw i64 %indvars.iv1184, 5
%cmp309851.4 = icmp ult i64 %indvars.iv1184, 5
br i1 %cmp309851.4, label %for.body310.lr.ph.4, label %for.cond300.loopexit
for.body310.lr.ph.4: ; preds = %for.body306.4
%arrayidx332.4 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv.next1187.3
%466 = extractelement <2 x i64> %465, i64 0
%467 = extractelement <2 x i64> %465, i64 1
br label %for.body310.4
for.body310.4: ; preds = %for.cond308.loopexit.4, %for.body310.lr.ph.4
%indvars.iv1175.4 = phi i64 [ %466, %for.body310.lr.ph.4 ], [ %indvars.iv.next1176.4, %for.cond308.loopexit.4 ]
%indvars.iv1160.4 = phi i64 [ %467, %for.body310.lr.ph.4 ], [ %indvars.iv.next1161.4, %for.cond308.loopexit.4 ]
%count.33853.4 = phi i32 [ %count.33.lcssa.3, %for.body310.lr.ph.4 ], [ %spec.select769.4, %for.cond308.loopexit.4 ]
%indvars.iv.next1176.4 = add nuw nsw i64 %indvars.iv1175.4, 1
%cmp313847.4 = icmp ult i64 %indvars.iv1175.4, 9
br i1 %cmp313847.4, label %for.body314.lr.ph.4, label %for.cond304.loopexit.4
for.body314.lr.ph.4: ; preds = %for.body310.4
%468 = load i32, ptr %arrayidx317, align 4, !tbaa !5
%469 = load i32, ptr %arrayidx320, align 4, !tbaa !5
%add321.4 = add nsw i32 %469, %468
%470 = load i32, ptr %arrayidx324, align 4, !tbaa !5
%add325.4 = add nsw i32 %add321.4, %470
%471 = load i32, ptr %arrayidx328, align 4, !tbaa !5
%add329.4 = add nsw i32 %add325.4, %471
%472 = load i32, ptr %arrayidx332.4, align 4, !tbaa !5
%add333.4 = add nsw i32 %add329.4, %472
%arrayidx336.4 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 %indvars.iv1175.4
%473 = load i32, ptr %arrayidx336.4, align 4, !tbaa !5
%add337.4 = add nsw i32 %add333.4, %473
br label %for.body314.4
for.body314.4: ; preds = %for.body314.4, %for.body314.lr.ph.4
%indvars.iv1162.4 = phi i64 [ %indvars.iv1160.4, %for.body314.lr.ph.4 ], [ %indvars.iv.next1163.4, %for.body314.4 ]
%count.34849.4 = phi i32 [ %count.33853.4, %for.body314.lr.ph.4 ], [ %spec.select769.4, %for.body314.4 ]
%arrayidx340.4 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 6, i64 %indvars.iv1162.4
%474 = load i32, ptr %arrayidx340.4, align 4, !tbaa !5
%add341.4 = add nsw i32 %add337.4, %474
%cmp342.4 = icmp eq i32 %add341.4, %12
%inc344.4 = zext i1 %cmp342.4 to i32
%spec.select769.4 = add nsw i32 %count.34849.4, %inc344.4
%indvars.iv.next1163.4 = add nuw nsw i64 %indvars.iv1162.4, 1
%cmp313.4 = icmp ult i64 %indvars.iv1162.4, 9
br i1 %cmp313.4, label %for.body314.4, label %for.cond308.loopexit.4, !llvm.loop !34
for.cond308.loopexit.4: ; preds = %for.body314.4
%indvars.iv.next1161.4 = add nuw nsw i64 %indvars.iv1160.4, 1
br i1 %cmp313847.4, label %for.body310.4, label %for.cond304.loopexit.4, !llvm.loop !35
for.cond304.loopexit.4: ; preds = %for.cond308.loopexit.4, %for.body310.4
%count.33.lcssa.4 = phi i32 [ %spec.select769.4, %for.cond308.loopexit.4 ], [ %count.33853.4, %for.body310.4 ]
%475 = add nuw nsw <2 x i64> %434, <i64 5, i64 5>
%cmp309851.4.not = xor i1 %cmp309851.4, true
%cmp309851.5.not = icmp eq i64 %indvars.iv1184, 4
%or.cond1811 = or i1 %cmp309851.4.not, %cmp309851.5.not
br i1 %or.cond1811, label %for.cond300.loopexit, label %for.body310.lr.ph.5, !llvm.loop !33
for.body310.lr.ph.5: ; preds = %for.cond304.loopexit.4
%arrayidx332.5 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv.next1187.4
%476 = extractelement <2 x i64> %475, i64 0
%477 = extractelement <2 x i64> %475, i64 1
br label %for.body310.5
for.body310.5: ; preds = %for.cond308.loopexit.5, %for.body310.lr.ph.5
%indvars.iv1175.5 = phi i64 [ %476, %for.body310.lr.ph.5 ], [ %indvars.iv.next1176.5, %for.cond308.loopexit.5 ]
%indvars.iv1160.5 = phi i64 [ %477, %for.body310.lr.ph.5 ], [ %indvars.iv.next1161.5, %for.cond308.loopexit.5 ]
%count.33853.5 = phi i32 [ %count.33.lcssa.4, %for.body310.lr.ph.5 ], [ %spec.select769.5, %for.cond308.loopexit.5 ]
%indvars.iv.next1176.5 = add nuw nsw i64 %indvars.iv1175.5, 1
%cmp313847.5 = icmp ult i64 %indvars.iv1175.5, 9
br i1 %cmp313847.5, label %for.body314.lr.ph.5, label %for.cond300.loopexit
for.body314.lr.ph.5: ; preds = %for.body310.5
%478 = load i32, ptr %arrayidx317, align 4, !tbaa !5
%479 = load i32, ptr %arrayidx320, align 4, !tbaa !5
%add321.5 = add nsw i32 %479, %478
%480 = load i32, ptr %arrayidx324, align 4, !tbaa !5
%add325.5 = add nsw i32 %add321.5, %480
%481 = load i32, ptr %arrayidx328, align 4, !tbaa !5
%add329.5 = add nsw i32 %add325.5, %481
%482 = load i32, ptr %arrayidx332.5, align 4, !tbaa !5
%add333.5 = add nsw i32 %add329.5, %482
%arrayidx336.5 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 %indvars.iv1175.5
%483 = load i32, ptr %arrayidx336.5, align 4, !tbaa !5
%add337.5 = add nsw i32 %add333.5, %483
br label %for.body314.5
for.body314.5: ; preds = %for.body314.5, %for.body314.lr.ph.5
%indvars.iv1162.5 = phi i64 [ %indvars.iv1160.5, %for.body314.lr.ph.5 ], [ %indvars.iv.next1163.5, %for.body314.5 ]
%count.34849.5 = phi i32 [ %count.33853.5, %for.body314.lr.ph.5 ], [ %spec.select769.5, %for.body314.5 ]
%arrayidx340.5 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 6, i64 %indvars.iv1162.5
%484 = load i32, ptr %arrayidx340.5, align 4, !tbaa !5
%add341.5 = add nsw i32 %add337.5, %484
%cmp342.5 = icmp eq i32 %add341.5, %13
%inc344.5 = zext i1 %cmp342.5 to i32
%spec.select769.5 = add nsw i32 %count.34849.5, %inc344.5
%indvars.iv.next1163.5 = add nuw nsw i64 %indvars.iv1162.5, 1
%cmp313.5 = icmp ult i64 %indvars.iv1162.5, 9
br i1 %cmp313.5, label %for.body314.5, label %for.cond308.loopexit.5, !llvm.loop !34
for.cond308.loopexit.5: ; preds = %for.body314.5
%indvars.iv.next1161.5 = add nuw nsw i64 %indvars.iv1160.5, 1
br i1 %cmp313847.5, label %for.body310.5, label %for.cond300.loopexit, !llvm.loop !35
for.body310.lr.ph: ; preds = %for.body306.lr.ph
%arrayidx332 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv1184
%485 = extractelement <2 x i64> %434, i64 0
%486 = extractelement <2 x i64> %434, i64 1
br label %for.body310
for.cond308.loopexit: ; preds = %for.body314
%indvars.iv.next1161 = add nuw nsw i64 %indvars.iv1160, 1
br i1 %cmp313847, label %for.body310, label %for.cond304.loopexit, !llvm.loop !35
for.body310: ; preds = %for.body310.lr.ph, %for.cond308.loopexit
%indvars.iv1175 = phi i64 [ %485, %for.body310.lr.ph ], [ %indvars.iv.next1176, %for.cond308.loopexit ]
%indvars.iv1160 = phi i64 [ %486, %for.body310.lr.ph ], [ %indvars.iv.next1161, %for.cond308.loopexit ]
%count.33853 = phi i32 [ %count.31861, %for.body310.lr.ph ], [ %spec.select769, %for.cond308.loopexit ]
%indvars.iv.next1176 = add nuw nsw i64 %indvars.iv1175, 1
%cmp313847 = icmp ult i64 %indvars.iv1175, 9
br i1 %cmp313847, label %for.body314.lr.ph, label %for.cond304.loopexit
for.body314.lr.ph: ; preds = %for.body310
%487 = load i32, ptr %arrayidx317, align 4, !tbaa !5
%488 = load i32, ptr %arrayidx320, align 4, !tbaa !5
%add321 = add nsw i32 %488, %487
%489 = load i32, ptr %arrayidx324, align 4, !tbaa !5
%add325 = add nsw i32 %add321, %489
%490 = load i32, ptr %arrayidx328, align 4, !tbaa !5
%add329 = add nsw i32 %add325, %490
%491 = load i32, ptr %arrayidx332, align 4, !tbaa !5
%add333 = add nsw i32 %add329, %491
%arrayidx336 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 %indvars.iv1175
%492 = load i32, ptr %arrayidx336, align 4, !tbaa !5
%add337 = add nsw i32 %add333, %492
br label %for.body314
for.body314: ; preds = %for.body314.lr.ph, %for.body314
%indvars.iv1162 = phi i64 [ %indvars.iv1160, %for.body314.lr.ph ], [ %indvars.iv.next1163, %for.body314 ]
%count.34849 = phi i32 [ %count.33853, %for.body314.lr.ph ], [ %spec.select769, %for.body314 ]
%arrayidx340 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 6, i64 %indvars.iv1162
%493 = load i32, ptr %arrayidx340, align 4, !tbaa !5
%add341 = add nsw i32 %add337, %493
%cmp342 = icmp eq i32 %add341, %8
%inc344 = zext i1 %cmp342 to i32
%spec.select769 = add nsw i32 %count.34849, %inc344
%indvars.iv.next1163 = add nuw nsw i64 %indvars.iv1162, 1
%cmp313 = icmp ult i64 %indvars.iv1162, 9
br i1 %cmp313, label %for.body314, label %for.cond308.loopexit, !llvm.loop !34
for.cond370.loopexit: ; preds = %for.cond374.loopexit, %for.body372
%count.37.lcssa = phi i32 [ %count.36846, %for.body372 ], [ %count.38.lcssa, %for.cond374.loopexit ]
%494 = add nuw nsw <2 x i64> %496, <i64 1, i64 1>
%495 = add nuw nsw <2 x i64> %497, <i64 1, i64 1>
%indvars.iv.next1125 = add nuw nsw i64 %indvars.iv1124, 1
%indvars.iv.next1134 = add nuw nsw i64 %indvars.iv1133, 1
%indvars.iv.next1141 = add nuw nsw i64 %indvars.iv1140, 1
%exitcond1149.not = icmp eq i64 %indvars.iv.next1147, 10
br i1 %exitcond1149.not, label %if.end572, label %for.body372, !llvm.loop !36
for.body372: ; preds = %for.body372.preheader, %for.cond370.loopexit
%indvars.iv1146 = phi i64 [ %indvars.iv.next1147, %for.cond370.loopexit ], [ 0, %for.body372.preheader ]
%indvars.iv1140 = phi i64 [ %indvars.iv.next1141, %for.cond370.loopexit ], [ 1, %for.body372.preheader ]
%indvars.iv1133 = phi i64 [ %indvars.iv.next1134, %for.cond370.loopexit ], [ 2, %for.body372.preheader ]
%indvars.iv1124 = phi i64 [ %indvars.iv.next1125, %for.cond370.loopexit ], [ 3, %for.body372.preheader ]
%count.36846 = phi i32 [ %count.37.lcssa, %for.cond370.loopexit ], [ 0, %for.body372.preheader ]
%496 = phi <2 x i64> [ %494, %for.cond370.loopexit ], [ <i64 6, i64 7>, %for.body372.preheader ]
%497 = phi <2 x i64> [ %495, %for.cond370.loopexit ], [ <i64 4, i64 5>, %for.body372.preheader ]
%indvars.iv.next1147 = add nuw nsw i64 %indvars.iv1146, 1
%cmp375841 = icmp ult i64 %indvars.iv1146, 9
br i1 %cmp375841, label %for.body376.lr.ph, label %for.cond370.loopexit
for.body376.lr.ph: ; preds = %for.body372
%arrayidx403 = getelementptr inbounds [10 x i32], ptr %a, i64 0, i64 %indvars.iv1146
br label %for.body376
for.cond374.loopexit: ; preds = %for.body380, %for.cond378.loopexit, %for.body376
%count.38.lcssa = phi i32 [ %count.37843, %for.body376 ], [ %count.38839, %for.body380 ], [ %count.39.lcssa, %for.cond378.loopexit ]
%498 = add nuw nsw <2 x i64> %500, <i64 1, i64 1>
%499 = add nuw nsw <2 x i64> %501, <i64 1, i64 1>
%indvars.iv.next1127 = add nuw nsw i64 %indvars.iv1126, 1
%indvars.iv.next1136 = add nuw nsw i64 %indvars.iv1135, 1
%exitcond1145.not = icmp eq i64 %indvars.iv.next1143, 10
br i1 %exitcond1145.not, label %for.cond370.loopexit, label %for.body376, !llvm.loop !37
for.body376: ; preds = %for.body376.lr.ph, %for.cond374.loopexit
%indvars.iv1142 = phi i64 [ %indvars.iv1140, %for.body376.lr.ph ], [ %indvars.iv.next1143, %for.cond374.loopexit ]
%indvars.iv1135 = phi i64 [ %indvars.iv1133, %for.body376.lr.ph ], [ %indvars.iv.next1136, %for.cond374.loopexit ]
%indvars.iv1126 = phi i64 [ %indvars.iv1124, %for.body376.lr.ph ], [ %indvars.iv.next1127, %for.cond374.loopexit ]
%count.37843 = phi i32 [ %count.36846, %for.body376.lr.ph ], [ %count.38.lcssa, %for.cond374.loopexit ]
%500 = phi <2 x i64> [ %496, %for.body376.lr.ph ], [ %498, %for.cond374.loopexit ]
%501 = phi <2 x i64> [ %497, %for.body376.lr.ph ], [ %499, %for.cond374.loopexit ]
%indvars.iv.next1143 = add nuw nsw i64 %indvars.iv1142, 1
%cmp379837 = icmp ult i64 %indvars.iv1142, 9
br i1 %cmp379837, label %for.body380.lr.ph, label %for.cond374.loopexit
for.body380.lr.ph: ; preds = %for.body376
%arrayidx406 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 1, i64 %indvars.iv1142
br label %for.body380
for.cond378.loopexit: ; preds = %for.body384, %for.cond382.loopexit
%count.39.lcssa = phi i32 [ %count.40.lcssa, %for.cond382.loopexit ], [ %count.39835, %for.body384 ]
%502 = add nuw nsw <2 x i64> %504, <i64 1, i64 1>
%503 = add nuw nsw <2 x i64> %505, <i64 1, i64 1>
%indvars.iv.next1129 = add nuw nsw i64 %indvars.iv1128, 1
br i1 %cmp383833, label %for.body380, label %for.cond374.loopexit, !llvm.loop !38
for.body380: ; preds = %for.body380.lr.ph, %for.cond378.loopexit
%indvars.iv1137 = phi i64 [ %indvars.iv1135, %for.body380.lr.ph ], [ %indvars.iv.next1138, %for.cond378.loopexit ]
%indvars.iv1128 = phi i64 [ %indvars.iv1126, %for.body380.lr.ph ], [ %indvars.iv.next1129, %for.cond378.loopexit ]
%count.38839 = phi i32 [ %count.37843, %for.body380.lr.ph ], [ %count.39.lcssa, %for.cond378.loopexit ]
%504 = phi <2 x i64> [ %500, %for.body380.lr.ph ], [ %502, %for.cond378.loopexit ]
%505 = phi <2 x i64> [ %501, %for.body380.lr.ph ], [ %503, %for.cond378.loopexit ]
%indvars.iv.next1138 = add nuw nsw i64 %indvars.iv1137, 1
%cmp383833 = icmp ult i64 %indvars.iv1137, 9
br i1 %cmp383833, label %for.body384.lr.ph, label %for.cond374.loopexit
for.body384.lr.ph: ; preds = %for.body380
%arrayidx410 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 2, i64 %indvars.iv1137
br label %for.body384
for.cond382.loopexit: ; preds = %for.body388, %for.cond386.loopexit
%count.40.lcssa = phi i32 [ %count.41.lcssa, %for.cond386.loopexit ], [ %count.40831, %for.body388 ]
%506 = add nuw nsw <2 x i64> %508, <i64 1, i64 1>
%507 = add nuw nsw <2 x i64> %509, <i64 1, i64 1>
br i1 %cmp387829, label %for.body384, label %for.cond378.loopexit, !llvm.loop !39
for.body384: ; preds = %for.body384.lr.ph, %for.cond382.loopexit
%indvars.iv1130 = phi i64 [ %indvars.iv1128, %for.body384.lr.ph ], [ %indvars.iv.next1131, %for.cond382.loopexit ]
%count.39835 = phi i32 [ %count.38839, %for.body384.lr.ph ], [ %count.40.lcssa, %for.cond382.loopexit ]
%508 = phi <2 x i64> [ %504, %for.body384.lr.ph ], [ %506, %for.cond382.loopexit ]
%509 = phi <2 x i64> [ %505, %for.body384.lr.ph ], [ %507, %for.cond382.loopexit ]
%indvars.iv.next1131 = add nuw nsw i64 %indvars.iv1130, 1
%cmp387829 = icmp ult i64 %indvars.iv1130, 9
br i1 %cmp387829, label %for.body388.lr.ph, label %for.cond378.loopexit
for.body388.lr.ph: ; preds = %for.body384
%arrayidx414 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv1130
%510 = extractelement <2 x i64> %509, i64 0
%511 = extractelement <2 x i64> %509, i64 1
br label %for.body388
for.cond386.loopexit: ; preds = %for.body392, %for.cond390.loopexit
%count.41.lcssa = phi i32 [ %count.42.lcssa, %for.cond390.loopexit ], [ %count.41827, %for.body392 ]
%512 = add nuw nsw <2 x i64> %513, <i64 1, i64 1>
%indvars.iv.next1109 = add nuw nsw i64 %indvars.iv1108, 1
br i1 %cmp391825, label %for.body388, label %for.cond382.loopexit, !llvm.loop !40
for.body388: ; preds = %for.body388.lr.ph, %for.cond386.loopexit
%indvars.iv1121 = phi i64 [ %510, %for.body388.lr.ph ], [ %indvars.iv.next1122, %for.cond386.loopexit ]
%indvars.iv1108 = phi i64 [ %511, %for.body388.lr.ph ], [ %indvars.iv.next1109, %for.cond386.loopexit ]
%count.40831 = phi i32 [ %count.39835, %for.body388.lr.ph ], [ %count.41.lcssa, %for.cond386.loopexit ]
%513 = phi <2 x i64> [ %508, %for.body388.lr.ph ], [ %512, %for.cond386.loopexit ]
%indvars.iv.next1122 = add nuw nsw i64 %indvars.iv1121, 1
%cmp391825 = icmp ult i64 %indvars.iv1121, 9
br i1 %cmp391825, label %for.body392.lr.ph, label %for.cond382.loopexit
for.body392.lr.ph: ; preds = %for.body388
%arrayidx418 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv1121
br label %for.body392
for.cond390.loopexit: ; preds = %for.body396, %for.cond394.loopexit
%count.42.lcssa = phi i32 [ %spec.select770, %for.cond394.loopexit ], [ %count.42823, %for.body396 ]
%514 = add nuw nsw <2 x i64> %515, <i64 1, i64 1>
br i1 %cmp395821, label %for.body392, label %for.cond386.loopexit, !llvm.loop !41
for.body392: ; preds = %for.body392.lr.ph, %for.cond390.loopexit
%indvars.iv1110 = phi i64 [ %indvars.iv1108, %for.body392.lr.ph ], [ %indvars.iv.next1111, %for.cond390.loopexit ]
%count.41827 = phi i32 [ %count.40831, %for.body392.lr.ph ], [ %count.42.lcssa, %for.cond390.loopexit ]
%515 = phi <2 x i64> [ %513, %for.body392.lr.ph ], [ %514, %for.cond390.loopexit ]
%indvars.iv.next1111 = add nuw nsw i64 %indvars.iv1110, 1
%cmp395821 = icmp ult i64 %indvars.iv1110, 9
br i1 %cmp395821, label %for.body396.lr.ph, label %for.cond386.loopexit
for.body396.lr.ph: ; preds = %for.body392
%arrayidx422 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 %indvars.iv1110
%516 = extractelement <2 x i64> %515, i64 0
%517 = extractelement <2 x i64> %515, i64 1
br label %for.body396
for.cond394.loopexit: ; preds = %for.body400
%indvars.iv.next1081 = add nuw nsw i64 %indvars.iv1080, 1
br i1 %cmp399817, label %for.body396, label %for.cond390.loopexit, !llvm.loop !42
for.body396: ; preds = %for.body396.lr.ph, %for.cond394.loopexit
%indvars.iv1097 = phi i64 [ %516, %for.body396.lr.ph ], [ %indvars.iv.next1098, %for.cond394.loopexit ]
%indvars.iv1080 = phi i64 [ %517, %for.body396.lr.ph ], [ %indvars.iv.next1081, %for.cond394.loopexit ]
%count.42823 = phi i32 [ %count.41827, %for.body396.lr.ph ], [ %spec.select770, %for.cond394.loopexit ]
%indvars.iv.next1098 = add nuw nsw i64 %indvars.iv1097, 1
%cmp399817 = icmp ult i64 %indvars.iv1097, 9
br i1 %cmp399817, label %for.body400.lr.ph, label %for.cond390.loopexit
for.body400.lr.ph: ; preds = %for.body396
%518 = load i32, ptr %arrayidx403, align 4, !tbaa !5
%519 = load i32, ptr %arrayidx406, align 4, !tbaa !5
%add407 = add nsw i32 %519, %518
%520 = load i32, ptr %arrayidx410, align 4, !tbaa !5
%add411 = add nsw i32 %add407, %520
%521 = load i32, ptr %arrayidx414, align 4, !tbaa !5
%add415 = add nsw i32 %add411, %521
%522 = load i32, ptr %arrayidx418, align 4, !tbaa !5
%add419 = add nsw i32 %add415, %522
%523 = load i32, ptr %arrayidx422, align 4, !tbaa !5
%add423 = add nsw i32 %add419, %523
%arrayidx426 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 6, i64 %indvars.iv1097
%524 = load i32, ptr %arrayidx426, align 4, !tbaa !5
%add427 = add nsw i32 %add423, %524
br label %for.body400
for.body400: ; preds = %for.body400.lr.ph, %for.body400
%indvars.iv1082 = phi i64 [ %indvars.iv1080, %for.body400.lr.ph ], [ %indvars.iv.next1083, %for.body400 ]
%count.43819 = phi i32 [ %count.42823, %for.body400.lr.ph ], [ %spec.select770, %for.body400 ]
%arrayidx430 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 7, i64 %indvars.iv1082
%525 = load i32, ptr %arrayidx430, align 4, !tbaa !5
%add431 = add nsw i32 %add427, %525
%cmp432 = icmp eq i32 %add431, %7
%inc434 = zext i1 %cmp432 to i32
%spec.select770 = add nsw i32 %count.43819, %inc434
%indvars.iv.next1083 = add nuw nsw i64 %indvars.iv1082, 1
%cmp399 = icmp ult i64 %indvars.iv1082, 9
br i1 %cmp399, label %for.body400, label %for.cond394.loopexit, !llvm.loop !43
for.cond463.loopexit: ; preds = %for.cond467.loopexit, %for.body465
%count.46.lcssa = phi i32 [ %count.45816, %for.body465 ], [ %count.47.lcssa, %for.cond467.loopexit ]
%526 = add nuw nsw <2 x i64> %528, <i64 1, i64 1>
%527 = add nuw nsw <2 x i64> %529, <i64 1, i64 1>
%indvars.iv.next1033 = add nuw nsw i64 %indvars.iv1032, 1
%indvars.iv.next1044 = add nuw nsw i64 %indvars.iv1043, 1
%indvars.iv.next1053 = add nuw nsw i64 %indvars.iv1052, 1
%indvars.iv.next1060 = add nuw nsw i64 %indvars.iv1059, 1
%exitcond1067.not = icmp eq i64 %indvars.iv.next1065, 10
br i1 %exitcond1067.not, label %if.end572, label %for.body465, !llvm.loop !44
for.body465: ; preds = %for.body465.preheader, %for.cond463.loopexit
%indvars.iv1064 = phi i64 [ %indvars.iv.next1065, %for.cond463.loopexit ], [ 0, %for.body465.preheader ]
%indvars.iv1059 = phi i64 [ %indvars.iv.next1060, %for.cond463.loopexit ], [ 1, %for.body465.preheader ]
%indvars.iv1052 = phi i64 [ %indvars.iv.next1053, %for.cond463.loopexit ], [ 2, %for.body465.preheader ]
%indvars.iv1043 = phi i64 [ %indvars.iv.next1044, %for.cond463.loopexit ], [ 3, %for.body465.preheader ]
%indvars.iv1032 = phi i64 [ %indvars.iv.next1033, %for.cond463.loopexit ], [ 4, %for.body465.preheader ]
%count.45816 = phi i32 [ %count.46.lcssa, %for.cond463.loopexit ], [ 0, %for.body465.preheader ]
%528 = phi <2 x i64> [ %526, %for.cond463.loopexit ], [ <i64 7, i64 8>, %for.body465.preheader ]
%529 = phi <2 x i64> [ %527, %for.cond463.loopexit ], [ <i64 5, i64 6>, %for.body465.preheader ]
%indvars.iv.next1065 = add nuw nsw i64 %indvars.iv1064, 1
%cmp468811 = icmp ult i64 %indvars.iv1064, 9
br i1 %cmp468811, label %for.body469.lr.ph, label %for.cond463.loopexit
for.body469.lr.ph: ; preds = %for.body465
%arrayidx500 = getelementptr inbounds [10 x i32], ptr %a, i64 0, i64 %indvars.iv1064
br label %for.body469
for.cond467.loopexit: ; preds = %for.body473, %for.cond471.loopexit, %for.body469
%count.47.lcssa = phi i32 [ %count.46813, %for.body469 ], [ %count.47809, %for.body473 ], [ %count.48.lcssa, %for.cond471.loopexit ]
%530 = add nuw nsw <2 x i64> %532, <i64 1, i64 1>
%531 = add nuw nsw <2 x i64> %533, <i64 1, i64 1>
%indvars.iv.next1035 = add nuw nsw i64 %indvars.iv1034, 1
%indvars.iv.next1046 = add nuw nsw i64 %indvars.iv1045, 1
%indvars.iv.next1055 = add nuw nsw i64 %indvars.iv1054, 1
%exitcond.not = icmp eq i64 %indvars.iv.next1062, 10
br i1 %exitcond.not, label %for.cond463.loopexit, label %for.body469, !llvm.loop !45
for.body469: ; preds = %for.body469.lr.ph, %for.cond467.loopexit
%indvars.iv1061 = phi i64 [ %indvars.iv1059, %for.body469.lr.ph ], [ %indvars.iv.next1062, %for.cond467.loopexit ]
%indvars.iv1054 = phi i64 [ %indvars.iv1052, %for.body469.lr.ph ], [ %indvars.iv.next1055, %for.cond467.loopexit ]
%indvars.iv1045 = phi i64 [ %indvars.iv1043, %for.body469.lr.ph ], [ %indvars.iv.next1046, %for.cond467.loopexit ]
%indvars.iv1034 = phi i64 [ %indvars.iv1032, %for.body469.lr.ph ], [ %indvars.iv.next1035, %for.cond467.loopexit ]
%count.46813 = phi i32 [ %count.45816, %for.body469.lr.ph ], [ %count.47.lcssa, %for.cond467.loopexit ]
%532 = phi <2 x i64> [ %528, %for.body469.lr.ph ], [ %530, %for.cond467.loopexit ]
%533 = phi <2 x i64> [ %529, %for.body469.lr.ph ], [ %531, %for.cond467.loopexit ]
%indvars.iv.next1062 = add nuw nsw i64 %indvars.iv1061, 1
%cmp472807 = icmp ult i64 %indvars.iv1061, 9
br i1 %cmp472807, label %for.body473.lr.ph, label %for.cond467.loopexit
for.body473.lr.ph: ; preds = %for.body469
%arrayidx503 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 1, i64 %indvars.iv1061
br label %for.body473
for.cond471.loopexit: ; preds = %for.body477, %for.cond475.loopexit
%count.48.lcssa = phi i32 [ %count.49.lcssa, %for.cond475.loopexit ], [ %count.48805, %for.body477 ]
%534 = add nuw nsw <2 x i64> %536, <i64 1, i64 1>
%535 = add nuw nsw <2 x i64> %537, <i64 1, i64 1>
%indvars.iv.next1037 = add nuw nsw i64 %indvars.iv1036, 1
%indvars.iv.next1048 = add nuw nsw i64 %indvars.iv1047, 1
br i1 %cmp476803, label %for.body473, label %for.cond467.loopexit, !llvm.loop !46
for.body473: ; preds = %for.body473.lr.ph, %for.cond471.loopexit
%indvars.iv1056 = phi i64 [ %indvars.iv1054, %for.body473.lr.ph ], [ %indvars.iv.next1057, %for.cond471.loopexit ]
%indvars.iv1047 = phi i64 [ %indvars.iv1045, %for.body473.lr.ph ], [ %indvars.iv.next1048, %for.cond471.loopexit ]
%indvars.iv1036 = phi i64 [ %indvars.iv1034, %for.body473.lr.ph ], [ %indvars.iv.next1037, %for.cond471.loopexit ]
%count.47809 = phi i32 [ %count.46813, %for.body473.lr.ph ], [ %count.48.lcssa, %for.cond471.loopexit ]
%536 = phi <2 x i64> [ %532, %for.body473.lr.ph ], [ %534, %for.cond471.loopexit ]
%537 = phi <2 x i64> [ %533, %for.body473.lr.ph ], [ %535, %for.cond471.loopexit ]
%indvars.iv.next1057 = add nuw nsw i64 %indvars.iv1056, 1
%cmp476803 = icmp ult i64 %indvars.iv1056, 9
br i1 %cmp476803, label %for.body477.lr.ph, label %for.cond467.loopexit
for.body477.lr.ph: ; preds = %for.body473
%arrayidx507 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 2, i64 %indvars.iv1056
br label %for.body477
for.cond475.loopexit: ; preds = %for.body481, %for.cond479.loopexit
%count.49.lcssa = phi i32 [ %count.50.lcssa, %for.cond479.loopexit ], [ %count.49801, %for.body481 ]
%538 = add nuw nsw <2 x i64> %540, <i64 1, i64 1>
%539 = add nuw nsw <2 x i64> %541, <i64 1, i64 1>
%indvars.iv.next1039 = add nuw nsw i64 %indvars.iv1038, 1
br i1 %cmp480799, label %for.body477, label %for.cond471.loopexit, !llvm.loop !47
for.body477: ; preds = %for.body477.lr.ph, %for.cond475.loopexit
%indvars.iv1049 = phi i64 [ %indvars.iv1047, %for.body477.lr.ph ], [ %indvars.iv.next1050, %for.cond475.loopexit ]
%indvars.iv1038 = phi i64 [ %indvars.iv1036, %for.body477.lr.ph ], [ %indvars.iv.next1039, %for.cond475.loopexit ]
%count.48805 = phi i32 [ %count.47809, %for.body477.lr.ph ], [ %count.49.lcssa, %for.cond475.loopexit ]
%540 = phi <2 x i64> [ %536, %for.body477.lr.ph ], [ %538, %for.cond475.loopexit ]
%541 = phi <2 x i64> [ %537, %for.body477.lr.ph ], [ %539, %for.cond475.loopexit ]
%indvars.iv.next1050 = add nuw nsw i64 %indvars.iv1049, 1
%cmp480799 = icmp ult i64 %indvars.iv1049, 9
br i1 %cmp480799, label %for.body481.lr.ph, label %for.cond471.loopexit
for.body481.lr.ph: ; preds = %for.body477
%arrayidx511 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 3, i64 %indvars.iv1049
br label %for.body481
for.cond479.loopexit: ; preds = %for.body485, %for.cond483.loopexit
%count.50.lcssa = phi i32 [ %count.51.lcssa, %for.cond483.loopexit ], [ %count.50797, %for.body485 ]
%542 = add nuw nsw <2 x i64> %544, <i64 1, i64 1>
%543 = add nuw nsw <2 x i64> %545, <i64 1, i64 1>
br i1 %cmp484795, label %for.body481, label %for.cond475.loopexit, !llvm.loop !48
for.body481: ; preds = %for.body481.lr.ph, %for.cond479.loopexit
%indvars.iv1040 = phi i64 [ %indvars.iv1038, %for.body481.lr.ph ], [ %indvars.iv.next1041, %for.cond479.loopexit ]
%count.49801 = phi i32 [ %count.48805, %for.body481.lr.ph ], [ %count.50.lcssa, %for.cond479.loopexit ]
%544 = phi <2 x i64> [ %540, %for.body481.lr.ph ], [ %542, %for.cond479.loopexit ]
%545 = phi <2 x i64> [ %541, %for.body481.lr.ph ], [ %543, %for.cond479.loopexit ]
%indvars.iv.next1041 = add nuw nsw i64 %indvars.iv1040, 1
%cmp484795 = icmp ult i64 %indvars.iv1040, 9
br i1 %cmp484795, label %for.body485.lr.ph, label %for.cond475.loopexit
for.body485.lr.ph: ; preds = %for.body481
%arrayidx515 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 4, i64 %indvars.iv1040
%546 = extractelement <2 x i64> %545, i64 0
%547 = extractelement <2 x i64> %545, i64 1
br label %for.body485
for.cond483.loopexit: ; preds = %for.body489, %for.cond487.loopexit
%count.51.lcssa = phi i32 [ %count.52.lcssa, %for.cond487.loopexit ], [ %count.51793, %for.body489 ]
%548 = add nuw nsw <2 x i64> %549, <i64 1, i64 1>
%indvars.iv.next1015 = add nuw nsw i64 %indvars.iv1014, 1
br i1 %cmp488791, label %for.body485, label %for.cond479.loopexit, !llvm.loop !49
for.body485: ; preds = %for.body485.lr.ph, %for.cond483.loopexit
%indvars.iv1029 = phi i64 [ %546, %for.body485.lr.ph ], [ %indvars.iv.next1030, %for.cond483.loopexit ]
%indvars.iv1014 = phi i64 [ %547, %for.body485.lr.ph ], [ %indvars.iv.next1015, %for.cond483.loopexit ]
%count.50797 = phi i32 [ %count.49801, %for.body485.lr.ph ], [ %count.51.lcssa, %for.cond483.loopexit ]
%549 = phi <2 x i64> [ %544, %for.body485.lr.ph ], [ %548, %for.cond483.loopexit ]
%indvars.iv.next1030 = add nuw nsw i64 %indvars.iv1029, 1
%cmp488791 = icmp ult i64 %indvars.iv1029, 9
br i1 %cmp488791, label %for.body489.lr.ph, label %for.cond479.loopexit
for.body489.lr.ph: ; preds = %for.body485
%arrayidx519 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 5, i64 %indvars.iv1029
br label %for.body489
for.cond487.loopexit: ; preds = %for.body493, %for.cond491.loopexit
%count.52.lcssa = phi i32 [ %spec.select771, %for.cond491.loopexit ], [ %count.52789, %for.body493 ]
%550 = add nuw nsw <2 x i64> %551, <i64 1, i64 1>
br i1 %cmp492787, label %for.body489, label %for.cond483.loopexit, !llvm.loop !50
for.body489: ; preds = %for.body489.lr.ph, %for.cond487.loopexit
%indvars.iv1016 = phi i64 [ %indvars.iv1014, %for.body489.lr.ph ], [ %indvars.iv.next1017, %for.cond487.loopexit ]
%count.51793 = phi i32 [ %count.50797, %for.body489.lr.ph ], [ %count.52.lcssa, %for.cond487.loopexit ]
%551 = phi <2 x i64> [ %549, %for.body489.lr.ph ], [ %550, %for.cond487.loopexit ]
%indvars.iv.next1017 = add nuw nsw i64 %indvars.iv1016, 1
%cmp492787 = icmp ult i64 %indvars.iv1016, 9
br i1 %cmp492787, label %for.body493.lr.ph, label %for.cond483.loopexit
for.body493.lr.ph: ; preds = %for.body489
%arrayidx523 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 6, i64 %indvars.iv1016
%552 = extractelement <2 x i64> %551, i64 0
%553 = extractelement <2 x i64> %551, i64 1
br label %for.body493
for.cond491.loopexit: ; preds = %for.body497
%indvars.iv.next983 = add nuw nsw i64 %indvars.iv982, 1
br i1 %cmp496784, label %for.body493, label %for.cond487.loopexit, !llvm.loop !51
for.body493: ; preds = %for.body493.lr.ph, %for.cond491.loopexit
%indvars.iv1001 = phi i64 [ %552, %for.body493.lr.ph ], [ %indvars.iv.next1002, %for.cond491.loopexit ]
%indvars.iv982 = phi i64 [ %553, %for.body493.lr.ph ], [ %indvars.iv.next983, %for.cond491.loopexit ]
%count.52789 = phi i32 [ %count.51793, %for.body493.lr.ph ], [ %spec.select771, %for.cond491.loopexit ]
%indvars.iv.next1002 = add nuw nsw i64 %indvars.iv1001, 1
%cmp496784 = icmp ult i64 %indvars.iv1001, 9
br i1 %cmp496784, label %for.body497.lr.ph, label %for.cond487.loopexit
for.body497.lr.ph: ; preds = %for.body493
%554 = load i32, ptr %arrayidx500, align 4, !tbaa !5
%555 = load i32, ptr %arrayidx503, align 4, !tbaa !5
%add504 = add nsw i32 %555, %554
%556 = load i32, ptr %arrayidx507, align 4, !tbaa !5
%add508 = add nsw i32 %add504, %556
%557 = load i32, ptr %arrayidx511, align 4, !tbaa !5
%add512 = add nsw i32 %add508, %557
%558 = load i32, ptr %arrayidx515, align 4, !tbaa !5
%add516 = add nsw i32 %add512, %558
%559 = load i32, ptr %arrayidx519, align 4, !tbaa !5
%add520 = add nsw i32 %add516, %559
%560 = load i32, ptr %arrayidx523, align 4, !tbaa !5
%add524 = add nsw i32 %add520, %560
%arrayidx527 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 7, i64 %indvars.iv1001
%561 = load i32, ptr %arrayidx527, align 4, !tbaa !5
%add528 = add nsw i32 %add524, %561
br label %for.body497
for.body497: ; preds = %for.body497.lr.ph, %for.body497
%indvars.iv984 = phi i64 [ %indvars.iv982, %for.body497.lr.ph ], [ %indvars.iv.next985, %for.body497 ]
%count.53786 = phi i32 [ %count.52789, %for.body497.lr.ph ], [ %spec.select771, %for.body497 ]
%arrayidx531 = getelementptr inbounds [10 x [10 x i32]], ptr %a, i64 0, i64 8, i64 %indvars.iv984
%562 = load i32, ptr %arrayidx531, align 4, !tbaa !5
%add532 = add nsw i32 %add528, %562
%cmp533 = icmp eq i32 %add532, %6
%inc535 = zext i1 %cmp533 to i32
%spec.select771 = add nsw i32 %count.53786, %inc535
%indvars.iv.next985 = add nuw nsw i64 %indvars.iv984, 1
%cmp496 = icmp ult i64 %indvars.iv984, 9
br i1 %cmp496, label %for.body497, label %for.cond491.loopexit, !llvm.loop !52
if.end572: ; preds = %for.cond463.loopexit, %for.cond370.loopexit, %for.cond288.loopexit, %for.cond217.loopexit, %for.cond157.loopexit, %for.cond108.loopexit, %for.cond70.loopexit.9, %for.cond44.loopexit.9, %for.body31.preheader, %for.cond.preheader
%count.55 = phi i32 [ 0, %for.cond.preheader ], [ %op.rdx1789, %for.body31.preheader ], [ %op.rdx1796, %for.cond44.loopexit.9 ], [ %op.rdx1804, %for.cond70.loopexit.9 ], [ %count.11.lcssa, %for.cond108.loopexit ], [ %count.16.lcssa, %for.cond157.loopexit ], [ %count.22.lcssa, %for.cond217.loopexit ], [ %count.29.lcssa, %for.cond288.loopexit ], [ %count.37.lcssa, %for.cond370.loopexit ], [ %count.46.lcssa, %for.cond463.loopexit ]
%call573 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %count.55)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %s)
%563 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp eq i32 %563, 0
%564 = load i32, ptr %s, align 4
%cmp1 = icmp eq i32 %564, 0
%or.cond = select i1 %cmp, i1 %cmp1, i1 false
%565 = insertelement <2 x i32> poison, i32 %564, i64 0
%566 = insertelement <2 x i32> %565, i32 %563, i64 1
br i1 %or.cond, label %while.end, label %for.cond.preheader
while.end: ; preds = %if.end572, %entry
call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %a) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %s) #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: 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.ctpop.i64(i64) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.ctpop.i16(i16) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i4 @llvm.ctpop.i4(i4) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.ctpop.i8(i8) #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 = !{i8 0, i8 9}
!10 = !{i16 0, i16 17}
!11 = !{i64 0, i64 65}
!12 = !{i4 0, i4 5}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !14}
!29 = distinct !{!29, !14}
!30 = distinct !{!30, !14}
!31 = distinct !{!31, !14}
!32 = distinct !{!32, !14}
!33 = distinct !{!33, !14}
!34 = distinct !{!34, !14}
!35 = distinct !{!35, !14}
!36 = distinct !{!36, !14}
!37 = distinct !{!37, !14}
!38 = distinct !{!38, !14}
!39 = distinct !{!39, !14}
!40 = distinct !{!40, !14}
!41 = distinct !{!41, !14}
!42 = distinct !{!42, !14}
!43 = distinct !{!43, !14}
!44 = distinct !{!44, !14}
!45 = distinct !{!45, !14}
!46 = distinct !{!46, !14}
!47 = distinct !{!47, !14}
!48 = distinct !{!48, !14}
!49 = distinct !{!49, !14}
!50 = distinct !{!50, !14}
!51 = distinct !{!51, !14}
!52 = distinct !{!52, !14}
|
// AOJ Volume 0 Problem 0030
#include <stdio.h>
#include <string.h>
int cnt;
void comb(int useflag[], int n, int s)
{
int i;
if (s < 0){
return;
}
if (n == 1){
if (s > 9){
return;
}
if (useflag[s] == 0){
#if 0
printf("<");
for (i = 0; i <= 9; i++){
if (useflag[i] == 1){
printf("%d ", i);
}
}
printf("%d>\n", s);
#endif
cnt++;
}
return;
}
for (i = 0; i <= 9; i++){
if (useflag[i] == 0){
useflag[i] = 1;
comb(useflag, n - 1, s - i);
useflag[i] = 0;
}
}
}
int main(void)
{
int n, s;
int useflag[10];
while (1){
scanf("%d%d", &n, &s);
if (n == 0 && s == 0){
break;
}
memset(useflag, 0, sizeof(useflag));
cnt = 0;
comb(useflag, n, s);
for (; n > 1; n--){
cnt /= n;
}
printf("%d\n", cnt);
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172746/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172746/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"
@cnt = dso_local local_unnamed_addr global i32 0, align 4
@.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 nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @comb(ptr nocapture noundef %useflag, i32 noundef %n, i32 noundef %s) local_unnamed_addr #0 {
entry:
%cmp = icmp slt i32 %s, 0
br i1 %cmp, label %common.ret, label %if.end
if.end: ; preds = %entry
%cmp1 = icmp eq i32 %n, 1
br i1 %cmp1, label %if.then2, label %for.cond.preheader
for.cond.preheader: ; preds = %if.end
%sub = add nsw i32 %n, -1
%0 = load i32, ptr %useflag, align 4, !tbaa !5
%cmp13 = icmp eq i32 %0, 0
br i1 %cmp13, label %if.then14, label %for.inc
if.then2: ; preds = %if.end
%cmp3 = icmp ugt i32 %s, 9
br i1 %cmp3, label %common.ret, label %if.end5
if.end5: ; preds = %if.then2
%idxprom = zext i32 %s to i64
%arrayidx = getelementptr inbounds i32, ptr %useflag, i64 %idxprom
%1 = load i32, ptr %arrayidx, align 4, !tbaa !5
%cmp6 = icmp eq i32 %1, 0
br i1 %cmp6, label %if.then7, label %common.ret
if.then7: ; preds = %if.end5
%2 = load i32, ptr @cnt, align 4, !tbaa !5
%inc = add nsw i32 %2, 1
store i32 %inc, ptr @cnt, align 4, !tbaa !5
br label %common.ret
if.then14: ; preds = %for.cond.preheader
store i32 1, ptr %useflag, align 4, !tbaa !5
tail call void @comb(ptr noundef nonnull %useflag, i32 noundef %sub, i32 noundef %s)
store i32 0, ptr %useflag, align 4, !tbaa !5
br label %for.inc
for.inc: ; preds = %for.cond.preheader, %if.then14
%arrayidx12.1 = getelementptr inbounds i32, ptr %useflag, i64 1
%3 = load i32, ptr %arrayidx12.1, align 4, !tbaa !5
%cmp13.1 = icmp eq i32 %3, 0
br i1 %cmp13.1, label %if.then14.1, label %for.inc.1
if.then14.1: ; preds = %for.inc
store i32 1, ptr %arrayidx12.1, align 4, !tbaa !5
%sub17.1 = add nsw i32 %s, -1
tail call void @comb(ptr noundef nonnull %useflag, i32 noundef %sub, i32 noundef %sub17.1)
store i32 0, ptr %arrayidx12.1, align 4, !tbaa !5
br label %for.inc.1
for.inc.1: ; preds = %if.then14.1, %for.inc
%arrayidx12.2 = getelementptr inbounds i32, ptr %useflag, i64 2
%4 = load i32, ptr %arrayidx12.2, align 4, !tbaa !5
%cmp13.2 = icmp eq i32 %4, 0
br i1 %cmp13.2, label %if.then14.2, label %for.inc.2
if.then14.2: ; preds = %for.inc.1
store i32 1, ptr %arrayidx12.2, align 4, !tbaa !5
%sub17.2 = add nsw i32 %s, -2
tail call void @comb(ptr noundef nonnull %useflag, i32 noundef %sub, i32 noundef %sub17.2)
store i32 0, ptr %arrayidx12.2, align 4, !tbaa !5
br label %for.inc.2
for.inc.2: ; preds = %if.then14.2, %for.inc.1
%arrayidx12.3 = getelementptr inbounds i32, ptr %useflag, i64 3
%5 = load i32, ptr %arrayidx12.3, align 4, !tbaa !5
%cmp13.3 = icmp eq i32 %5, 0
br i1 %cmp13.3, label %if.then14.3, label %for.inc.3
if.then14.3: ; preds = %for.inc.2
store i32 1, ptr %arrayidx12.3, align 4, !tbaa !5
%sub17.3 = add nsw i32 %s, -3
tail call void @comb(ptr noundef nonnull %useflag, i32 noundef %sub, i32 noundef %sub17.3)
store i32 0, ptr %arrayidx12.3, align 4, !tbaa !5
br label %for.inc.3
for.inc.3: ; preds = %if.then14.3, %for.inc.2
%arrayidx12.4 = getelementptr inbounds i32, ptr %useflag, i64 4
%6 = load i32, ptr %arrayidx12.4, align 4, !tbaa !5
%cmp13.4 = icmp eq i32 %6, 0
br i1 %cmp13.4, label %if.then14.4, label %for.inc.4
if.then14.4: ; preds = %for.inc.3
store i32 1, ptr %arrayidx12.4, align 4, !tbaa !5
%sub17.4 = add nsw i32 %s, -4
tail call void @comb(ptr noundef nonnull %useflag, i32 noundef %sub, i32 noundef %sub17.4)
store i32 0, ptr %arrayidx12.4, align 4, !tbaa !5
br label %for.inc.4
for.inc.4: ; preds = %if.then14.4, %for.inc.3
%arrayidx12.5 = getelementptr inbounds i32, ptr %useflag, i64 5
%7 = load i32, ptr %arrayidx12.5, align 4, !tbaa !5
%cmp13.5 = icmp eq i32 %7, 0
br i1 %cmp13.5, label %if.then14.5, label %for.inc.5
if.then14.5: ; preds = %for.inc.4
store i32 1, ptr %arrayidx12.5, align 4, !tbaa !5
%sub17.5 = add nsw i32 %s, -5
tail call void @comb(ptr noundef nonnull %useflag, i32 noundef %sub, i32 noundef %sub17.5)
store i32 0, ptr %arrayidx12.5, align 4, !tbaa !5
br label %for.inc.5
for.inc.5: ; preds = %if.then14.5, %for.inc.4
%arrayidx12.6 = getelementptr inbounds i32, ptr %useflag, i64 6
%8 = load i32, ptr %arrayidx12.6, align 4, !tbaa !5
%cmp13.6 = icmp eq i32 %8, 0
br i1 %cmp13.6, label %if.then14.6, label %for.inc.6
if.then14.6: ; preds = %for.inc.5
store i32 1, ptr %arrayidx12.6, align 4, !tbaa !5
%sub17.6 = add nsw i32 %s, -6
tail call void @comb(ptr noundef nonnull %useflag, i32 noundef %sub, i32 noundef %sub17.6)
store i32 0, ptr %arrayidx12.6, align 4, !tbaa !5
br label %for.inc.6
for.inc.6: ; preds = %if.then14.6, %for.inc.5
%arrayidx12.7 = getelementptr inbounds i32, ptr %useflag, i64 7
%9 = load i32, ptr %arrayidx12.7, align 4, !tbaa !5
%cmp13.7 = icmp eq i32 %9, 0
br i1 %cmp13.7, label %if.then14.7, label %for.inc.7
if.then14.7: ; preds = %for.inc.6
store i32 1, ptr %arrayidx12.7, align 4, !tbaa !5
%sub17.7 = add nsw i32 %s, -7
tail call void @comb(ptr noundef nonnull %useflag, i32 noundef %sub, i32 noundef %sub17.7)
store i32 0, ptr %arrayidx12.7, align 4, !tbaa !5
br label %for.inc.7
for.inc.7: ; preds = %if.then14.7, %for.inc.6
%arrayidx12.8 = getelementptr inbounds i32, ptr %useflag, i64 8
%10 = load i32, ptr %arrayidx12.8, align 4, !tbaa !5
%cmp13.8 = icmp eq i32 %10, 0
br i1 %cmp13.8, label %if.then14.8, label %for.inc.8
if.then14.8: ; preds = %for.inc.7
store i32 1, ptr %arrayidx12.8, align 4, !tbaa !5
%sub17.8 = add nsw i32 %s, -8
tail call void @comb(ptr noundef nonnull %useflag, i32 noundef %sub, i32 noundef %sub17.8)
store i32 0, ptr %arrayidx12.8, align 4, !tbaa !5
br label %for.inc.8
for.inc.8: ; preds = %if.then14.8, %for.inc.7
%arrayidx12.9 = getelementptr inbounds i32, ptr %useflag, i64 9
%11 = load i32, ptr %arrayidx12.9, align 4, !tbaa !5
%cmp13.9 = icmp eq i32 %11, 0
br i1 %cmp13.9, label %if.then14.9, label %common.ret
common.ret: ; preds = %entry, %if.then2, %if.then7, %if.end5, %for.inc.8, %if.then14.9
ret void
if.then14.9: ; preds = %for.inc.8
store i32 1, ptr %arrayidx12.9, align 4, !tbaa !5
%sub17.9 = add nsw i32 %s, -9
tail call void @comb(ptr noundef nonnull %useflag, i32 noundef %sub, i32 noundef %sub17.9)
store i32 0, ptr %arrayidx12.9, align 4, !tbaa !5
br label %common.ret
}
; 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:
%n = alloca i32, align 4
%s = alloca i32, align 4
%useflag = alloca [10 x i32], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %s) #5
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %useflag) #5
%call8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %s)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp9 = icmp eq i32 %0, 0
%1 = load i32, ptr %s, align 4
%cmp110 = icmp eq i32 %1, 0
%or.cond11 = select i1 %cmp9, i1 %cmp110, i1 false
br i1 %or.cond11, label %while.end, label %if.end
if.end: ; preds = %entry, %for.end
%2 = phi i32 [ %7, %for.end ], [ %1, %entry ]
%3 = phi i32 [ %6, %for.end ], [ %0, %entry ]
call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %useflag, i8 0, i64 40, i1 false)
store i32 0, ptr @cnt, align 4, !tbaa !5
call void @comb(ptr noundef nonnull %useflag, i32 noundef %3, i32 noundef %2)
%.pr = load i32, ptr %n, align 4, !tbaa !5
%cnt.promoted = load i32, ptr @cnt, align 4, !tbaa !5
%cmp36 = icmp sgt i32 %.pr, 1
br i1 %cmp36, label %for.body, label %for.end
for.body: ; preds = %if.end, %for.body
%4 = phi i32 [ %dec, %for.body ], [ %.pr, %if.end ]
%div57 = phi i32 [ %div, %for.body ], [ %cnt.promoted, %if.end ]
%div = sdiv i32 %div57, %4
%dec = add nsw i32 %4, -1
%cmp3 = icmp ugt i32 %4, 2
br i1 %cmp3, label %for.body, label %for.cond.for.end_crit_edge, !llvm.loop !9
for.cond.for.end_crit_edge: ; preds = %for.body
store i32 %div, ptr @cnt, align 4, !tbaa !5
store i32 1, ptr %n, align 4, !tbaa !5
br label %for.end
for.end: ; preds = %for.cond.for.end_crit_edge, %if.end
%5 = phi i32 [ %div, %for.cond.for.end_crit_edge ], [ %cnt.promoted, %if.end ]
%call4 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %5)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %s)
%6 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp eq i32 %6, 0
%7 = load i32, ptr %s, align 4
%cmp1 = icmp eq i32 %7, 0
%or.cond = select i1 %cmp, i1 %cmp1, i1 false
br i1 %or.cond, label %while.end, label %if.end
while.end: ; preds = %for.end, %entry
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %useflag) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %s) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #5
ret i32 0
}
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3
attributes #0 = { nofree nosync nounwind memory(readwrite, 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 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"}
|
#include <stdio.h>
#include <stdlib.h>
int main(void){
int num1,num2,cnt,i,j,k,l,m,n,o,p,q;
while(1){
cnt = 0;
scanf("%d %d",&num1,&num2);
if (num1 == 0 && num2 == 0){
break;
}
for(i = 0; i <= (10 - num1);i++){
if (num1 == 1){
if (i == num2){
cnt++;
}
}
for(j = i + 1;j <= (11 - num1);j++){
if (num1 == 2){
if ((i + j) == num2){
cnt++;
}
}
for(k = j + 1;k <= (12 - num1);k++){
if (num1 == 3){
if ((i + j + k) == num2){
cnt++;
}
}
for(l = k + 1;l <= (13 - num1);l++){
if (num1 == 4){
if((i + j + k + l) == num2){
cnt++;
}
}
for(m = l + 1;m <= (14 - num1);m++){
if (num1 == 5){
if ((i + j + k + l + m) == num2){
cnt++;
}
}
for(n = m + 1;n <= (15 - num1);n++){
if (num1 == 6){
if((i + j + k + l + m + n) == num2){
cnt++;
}
}
for(o = n + 1;o <= (16 - num1);o++){
if (num1 == 7){
if((i + j + k + l + m + n + o) == num2){
cnt++;
}
}
for(p = o + 1;p <= (17 - num1);p++){
if (num1 == 8){
if((i + j + k + l + m + n + o + p) == num2){
cnt++;
}
}
for(q = p + 1;q <= (18 - num1);q++){
if (num1 == 9){
if((i + j + k + l + m + n + o + p + q) == num2){
cnt++;
}
}
}
}
}
}
}
}
}
}
}
printf("%d\n",cnt);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172803/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172803/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:
%num1 = alloca i32, align 4
%num2 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %num1) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %num2) #4
%call1812 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %num1, ptr noundef nonnull %num2)
%0 = load i32, ptr %num1, align 4, !tbaa !5
%cmp1813 = icmp eq i32 %0, 0
%1 = load i32, ptr %num2, align 4
%cmp11814 = icmp eq i32 %1, 0
%or.cond1815 = select i1 %cmp1813, i1 %cmp11814, i1 false
br i1 %or.cond1815, label %while.end, label %for.cond.preheader.preheader
for.cond.preheader.preheader: ; preds = %entry
%2 = insertelement <2 x i32> poison, i32 %1, i64 0
%3 = insertelement <2 x i32> %2, i32 %0, i64 1
br label %for.cond.preheader
for.cond.preheader: ; preds = %for.cond.preheader.preheader, %for.end164
%4 = phi <2 x i32> [ %276, %for.end164 ], [ %3, %for.cond.preheader.preheader ]
%.fr2440 = freeze <2 x i32> %4
%5 = extractelement <2 x i32> %.fr2440, i64 1
%sub = sub i32 10, %5
%cmp2.not1170 = icmp sgt i32 %5, 10
br i1 %cmp2.not1170, label %for.end164, label %for.body.lr.ph
for.body.lr.ph: ; preds = %for.cond.preheader
%cmp3 = icmp eq i32 %5, 1
%sub10 = sub i32 11, %5
%cmp13 = icmp eq i32 %5, 2
%sub23 = sub i32 12, %5
%cmp26 = icmp eq i32 %5, 3
%sub37 = sub nsw i32 13, %5
%cmp40 = icmp eq i32 %5, 4
%sub52 = sub nsw i32 14, %5
%cmp55 = icmp eq i32 %5, 5
%sub68 = sub nsw i32 15, %5
%cmp71 = icmp eq i32 %5, 6
%sub85 = sub nsw i32 16, %5
%cmp88 = icmp eq i32 %5, 7
%sub103 = sub nsw i32 17, %5
%cmp106 = icmp eq i32 %5, 8
%sub122 = sub nsw i32 18, %5
%cmp125 = icmp eq i32 %5, 9
br i1 %cmp125, label %for.body.us.preheader, label %for.body.lr.ph.split
for.body.us.preheader: ; preds = %for.body.lr.ph
%6 = extractelement <2 x i32> %.fr2440, i64 0
%broadcast.splat2321 = shufflevector <2 x i32> %.fr2440, <2 x i32> poison, <4 x i32> zeroinitializer
%broadcast.splat2284 = shufflevector <2 x i32> %.fr2440, <2 x i32> poison, <4 x i32> zeroinitializer
%broadcast.splat2247 = shufflevector <2 x i32> %.fr2440, <2 x i32> poison, <4 x i32> zeroinitializer
%broadcast.splat2206 = shufflevector <2 x i32> %.fr2440, <2 x i32> poison, <4 x i32> zeroinitializer
%broadcast.splat2167 = shufflevector <2 x i32> %.fr2440, <2 x i32> poison, <4 x i32> zeroinitializer
%broadcast.splat2128 = shufflevector <2 x i32> %.fr2440, <2 x i32> poison, <4 x i32> zeroinitializer
%broadcast.splat2087 = shufflevector <2 x i32> %.fr2440, <2 x i32> poison, <4 x i32> zeroinitializer
%broadcast.splat2050 = shufflevector <2 x i32> %.fr2440, <2 x i32> poison, <4 x i32> zeroinitializer
%broadcast.splat2011 = shufflevector <2 x i32> %.fr2440, <2 x i32> poison, <4 x i32> zeroinitializer
%broadcast.splat1972 = shufflevector <2 x i32> %.fr2440, <2 x i32> poison, <4 x i32> zeroinitializer
%broadcast.splat1938 = shufflevector <2 x i32> %.fr2440, <2 x i32> poison, <4 x i32> zeroinitializer
br label %for.body.us
for.body.us: ; preds = %for.body.us.preheader, %for.cond.loopexit.us
%i.01172.us = phi i32 [ %add.us, %for.cond.loopexit.us ], [ 0, %for.body.us.preheader ]
%cnt.01171.us = phi i32 [ %cnt.2.lcssa.us, %for.cond.loopexit.us ], [ 0, %for.body.us.preheader ]
%cmp5.us = icmp eq i32 %i.01172.us, %6
%or.cond237.us = and i1 %cmp3, %cmp5.us
%inc.us = zext i1 %or.cond237.us to i32
%cnt.1.us = add nsw i32 %cnt.01171.us, %inc.us
%add.us = add nuw i32 %i.01172.us, 1
%cmp11.not818.us.not = icmp slt i32 %i.01172.us, %sub10
br i1 %cmp11.not818.us.not, label %for.body12.lr.ph.us, label %for.cond.loopexit.us
for.cond.loopexit.us: ; preds = %for.cond9.loopexit.us.us, %for.cond9.loopexit.us.us.us1679, %for.cond9.loopexit.us.us.us, %for.body.us
%cnt.2.lcssa.us = phi i32 [ %cnt.1.us, %for.body.us ], [ %cnt.4.lcssa.us.us.us, %for.cond9.loopexit.us.us.us ], [ %cnt.4.lcssa.us.us.us1680, %for.cond9.loopexit.us.us.us1679 ], [ %cnt.4.lcssa.us.us, %for.cond9.loopexit.us.us ]
%exitcond1896.not = icmp eq i32 %i.01172.us, %sub
br i1 %exitcond1896.not, label %for.end164, label %for.body.us, !llvm.loop !9
for.body12.lr.ph.us: ; preds = %for.body.us
br i1 %cmp106, label %for.body12.us.us.us, label %for.body12.lr.ph.split.us.us.split
for.body12.us.us.us: ; preds = %for.body12.lr.ph.us, %for.cond9.loopexit.us.us.us
%indvar = phi i32 [ %indvar.next, %for.cond9.loopexit.us.us.us ], [ 0, %for.body12.lr.ph.us ]
%j.0820.us.us.us = phi i32 [ %add21.us.us.us, %for.cond9.loopexit.us.us.us ], [ %add.us, %for.body12.lr.ph.us ]
%cnt.2819.us.us.us = phi i32 [ %cnt.4.lcssa.us.us.us, %for.cond9.loopexit.us.us.us ], [ %cnt.1.us, %for.body12.lr.ph.us ]
%7 = add i32 %i.01172.us, %indvar
%8 = add i32 %i.01172.us, %indvar
%9 = add i32 %i.01172.us, %indvar
%10 = add i32 %i.01172.us, %indvar
%11 = add i32 %i.01172.us, %indvar
%add15.us.us.us = add nuw nsw i32 %j.0820.us.us.us, %i.01172.us
%cmp16.us.us.us = icmp eq i32 %add15.us.us.us, %6
%narrow.us.us.us = select i1 %cmp13, i1 %cmp16.us.us.us, i1 false
%spec.select.us.us.us = zext i1 %narrow.us.us.us to i32
%cnt.3.us.us.us = add nsw i32 %cnt.2819.us.us.us, %spec.select.us.us.us
%add21.us.us.us = add i32 %j.0820.us.us.us, 1
%cmp24.not647.us.us.us.not = icmp slt i32 %j.0820.us.us.us, %sub23
br i1 %cmp24.not647.us.us.us.not, label %for.body25.lr.ph.us.us.us, label %for.cond9.loopexit.us.us.us
for.cond9.loopexit.us.us.us: ; preds = %for.cond22.loopexit.us.us.us.us.us, %for.cond22.loopexit.us.us.us.us.us.us1800, %for.cond22.loopexit.us.us.us.us.us.us, %for.body12.us.us.us
%cnt.4.lcssa.us.us.us = phi i32 [ %cnt.3.us.us.us, %for.body12.us.us.us ], [ %cnt.6.lcssa.us.us.us.us.us.us, %for.cond22.loopexit.us.us.us.us.us.us ], [ %cnt.6.lcssa.us.us.us.us.us.us1801, %for.cond22.loopexit.us.us.us.us.us.us1800 ], [ %cnt.6.lcssa.us.us.us.us.us, %for.cond22.loopexit.us.us.us.us.us ]
%exitcond1894.not = icmp eq i32 %add21.us.us.us, %sub23
%indvar.next = add i32 %indvar, 1
br i1 %exitcond1894.not, label %for.cond.loopexit.us, label %for.body12.us.us.us, !llvm.loop !11
for.body25.lr.ph.us.us.us: ; preds = %for.body12.us.us.us
br i1 %cmp88, label %for.body25.us.us.us.us.us.us, label %for.body25.lr.ph.split.us.us.split.us.us.us.split
for.body25.us.us.us.us.us.us: ; preds = %for.body25.lr.ph.us.us.us, %for.cond22.loopexit.us.us.us.us.us.us
%indvar1923 = phi i32 [ %indvar.next1924, %for.cond22.loopexit.us.us.us.us.us.us ], [ 0, %for.body25.lr.ph.us.us.us ]
%k.0649.us.us.us.us.us.us = phi i32 [ %add35.us.us.us.us.us.us, %for.cond22.loopexit.us.us.us.us.us.us ], [ %add21.us.us.us, %for.body25.lr.ph.us.us.us ]
%cnt.4648.us.us.us.us.us.us = phi i32 [ %cnt.6.lcssa.us.us.us.us.us.us, %for.cond22.loopexit.us.us.us.us.us.us ], [ %cnt.3.us.us.us, %for.body25.lr.ph.us.us.us ]
%12 = add i32 %10, %indvar1923
%13 = add i32 %11, %indvar1923
%add29.us.us.us.us.us.us = add nuw nsw i32 %add15.us.us.us, %k.0649.us.us.us.us.us.us
%cmp30.us.us.us.us.us.us = icmp eq i32 %add29.us.us.us.us.us.us, %6
%narrow1854 = select i1 %cmp26, i1 %cmp30.us.us.us.us.us.us, i1 false
%spec.select238.us.us.us.us.us.us = zext i1 %narrow1854 to i32
%cnt.5.us.us.us.us.us.us = add nsw i32 %cnt.4648.us.us.us.us.us.us, %spec.select238.us.us.us.us.us.us
%add35.us.us.us.us.us.us = add nuw nsw i32 %k.0649.us.us.us.us.us.us, 1
%cmp38.not479.us.us.us.us.us.us.not = icmp slt i32 %k.0649.us.us.us.us.us.us, %sub37
br i1 %cmp38.not479.us.us.us.us.us.us.not, label %for.body39.lr.ph.us.us.us.us.us.us, label %for.cond22.loopexit.us.us.us.us.us.us
for.cond22.loopexit.us.us.us.us.us.us: ; preds = %for.cond36.loopexit.us.us.us.us.us.us.us.us.us, %for.cond36.loopexit.us.us.us.us.us.us.us.us.us.us, %for.body25.us.us.us.us.us.us
%cnt.6.lcssa.us.us.us.us.us.us = phi i32 [ %cnt.5.us.us.us.us.us.us, %for.body25.us.us.us.us.us.us ], [ %cnt.8.lcssa.us.us.us.us.us.us.us.us.us.us, %for.cond36.loopexit.us.us.us.us.us.us.us.us.us.us ], [ %cnt.8.lcssa.us.us.us.us.us.us.us.us.us, %for.cond36.loopexit.us.us.us.us.us.us.us.us.us ]
%cmp24.not.us.us.us.us.us.us.not = icmp slt i32 %k.0649.us.us.us.us.us.us, %sub23
%indvar.next1924 = add i32 %indvar1923, 1
br i1 %cmp24.not.us.us.us.us.us.us.not, label %for.body25.us.us.us.us.us.us, label %for.cond9.loopexit.us.us.us, !llvm.loop !12
for.body39.lr.ph.us.us.us.us.us.us: ; preds = %for.body25.us.us.us.us.us.us
br i1 %cmp71, label %for.body39.us.us.us.us.us.us.us.us.us.us, label %for.body39.us.us.us.us.us.us.us.us.us
for.body39.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body39.lr.ph.us.us.us.us.us.us, %for.cond36.loopexit.us.us.us.us.us.us.us.us.us.us
%indvar1925 = phi i32 [ %indvar.next1926, %for.cond36.loopexit.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body39.lr.ph.us.us.us.us.us.us ]
%l.0481.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add50.us.us.us.us.us.us.us.us.us.us, %for.cond36.loopexit.us.us.us.us.us.us.us.us.us.us ], [ %add35.us.us.us.us.us.us, %for.body39.lr.ph.us.us.us.us.us.us ]
%cnt.6480.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.8.lcssa.us.us.us.us.us.us.us.us.us.us, %for.cond36.loopexit.us.us.us.us.us.us.us.us.us.us ], [ %cnt.5.us.us.us.us.us.us, %for.body39.lr.ph.us.us.us.us.us.us ]
%14 = add i32 %13, %indvar1925
%add44.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add29.us.us.us.us.us.us, %l.0481.us.us.us.us.us.us.us.us.us.us
%cmp45.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add44.us.us.us.us.us.us.us.us.us.us, %6
%narrow1857 = select i1 %cmp40, i1 %cmp45.us.us.us.us.us.us.us.us.us.us, i1 false
%spec.select239.us.us.us.us.us.us.us.us.us.us = zext i1 %narrow1857 to i32
%cnt.7.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.6480.us.us.us.us.us.us.us.us.us.us, %spec.select239.us.us.us.us.us.us.us.us.us.us
%add50.us.us.us.us.us.us.us.us.us.us = add nsw i32 %l.0481.us.us.us.us.us.us.us.us.us.us, 1
%cmp53.not365.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %l.0481.us.us.us.us.us.us.us.us.us.us, %sub52
br i1 %cmp53.not365.us.us.us.us.us.us.us.us.us.us.not, label %for.body54.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond36.loopexit.us.us.us.us.us.us.us.us.us.us
for.cond36.loopexit.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond51.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body39.us.us.us.us.us.us.us.us.us.us
%cnt.8.lcssa.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.7.us.us.us.us.us.us.us.us.us.us, %for.body39.us.us.us.us.us.us.us.us.us.us ], [ %cnt.10.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond51.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp38.not.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %l.0481.us.us.us.us.us.us.us.us.us.us, %sub37
%indvar.next1926 = add i32 %indvar1925, 1
br i1 %cmp38.not.us.us.us.us.us.us.us.us.us.us.not, label %for.body39.us.us.us.us.us.us.us.us.us.us, label %for.cond22.loopexit.us.us.us.us.us.us, !llvm.loop !13
for.body54.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body39.us.us.us.us.us.us.us.us.us.us, %for.cond51.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%indvar1927 = phi i32 [ %indvar.next1928, %for.cond51.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body39.us.us.us.us.us.us.us.us.us.us ]
%m.0367.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add66.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond51.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %add50.us.us.us.us.us.us.us.us.us.us, %for.body39.us.us.us.us.us.us.us.us.us.us ]
%cnt.8366.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.10.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond51.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.7.us.us.us.us.us.us.us.us.us.us, %for.body39.us.us.us.us.us.us.us.us.us.us ]
%15 = add i32 %14, %indvar1927
%add60.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add44.us.us.us.us.us.us.us.us.us.us, %m.0367.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cmp61.us.us.us.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add60.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %6
%narrow1858 = select i1 %cmp55, i1 %cmp61.us.us.us.us.us.us.us.us.us.us.us.us.us.us, i1 false
%spec.select240.us.us.us.us.us.us.us.us.us.us.us.us.us.us = zext i1 %narrow1858 to i32
%cnt.9.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.8366.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %spec.select240.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%add66.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %m.0367.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp69.not318.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %m.0367.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub68
br i1 %cmp69.not318.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body70.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond51.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.cond51.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body54.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cnt.10.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.9.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body54.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.12.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp53.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %m.0367.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub52
%indvar.next1928 = add i32 %indvar1927, 1
br i1 %cmp53.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body54.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond36.loopexit.us.us.us.us.us.us.us.us.us.us, !llvm.loop !14
for.body70.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body54.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%indvar1929 = phi i32 [ %indvar.next1930, %for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body54.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%n.0320.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add83.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %add66.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body54.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cnt.10319.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.12.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.9.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body54.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%16 = add i32 %15, %indvar1929
%add77.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add60.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %n.0320.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cmp78.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add77.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %6
%inc80.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp78.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select241.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.10319.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %inc80.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%add83.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %n.0320.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp86.not269.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %n.0320.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub85
br i1 %cmp86.not269.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body70.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cnt.12.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select241.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body70.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.14.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp69.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %n.0320.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub68
%indvar.next1930 = add i32 %indvar1929, 1
br i1 %cmp69.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body70.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond51.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !15
for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body70.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%indvar1931 = phi i32 [ %indvar.next1932, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body70.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add101.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %add83.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body70.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cnt.12270.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.14.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %spec.select241.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body70.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%17 = add i32 %16, %indvar1931
%add95.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add77.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cmp96.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add95.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %6
%inc98.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp96.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select242.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.12270.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %inc98.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%add101.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp104.not248.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub103
br i1 %cmp104.not248.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cnt.14.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select242.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.16.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp86.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub85
%indvar.next1932 = add i32 %indvar1931, 1
br i1 %cmp86.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !16
for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%indvar1933 = phi i32 [ %indvar.next1934, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %add101.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cnt.14249.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.16.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %spec.select242.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%18 = add i32 %17, %indvar1933
%19 = sub i32 %sub10, %18
%add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add95.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cmp115.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %6
%inc117.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp115.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.14249.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %inc117.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp123.not245.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub122
br i1 %cmp123.not245.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader, label %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader: ; preds = %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%min.iters.check = icmp ult i32 %19, 8
br i1 %min.iters.check, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2441, label %vector.ph
vector.ph: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader
%n.vec = and i32 %19, -8
%ind.end = add i32 %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %n.vec
%.splatinsert = insertelement <4 x i32> poison, i32 %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%.splat = shufflevector <4 x i32> %.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
%induction = add <4 x i32> %.splat, <i32 0, i32 1, i32 2, i32 3>
%20 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%broadcast.splatinsert = insertelement <4 x i32> poison, i32 %add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 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.ind = phi <4 x i32> [ %induction, %vector.ph ], [ %vec.ind.next, %vector.body ]
%vec.phi = phi <4 x i32> [ %20, %vector.ph ], [ %27, %vector.body ]
%vec.phi1936 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %28, %vector.body ]
%step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
%21 = add nsw <4 x i32> %broadcast.splat, %vec.ind
%22 = add nsw <4 x i32> %broadcast.splat, %step.add
%23 = icmp eq <4 x i32> %21, %broadcast.splat1938
%24 = icmp eq <4 x i32> %22, %broadcast.splat1938
%25 = zext <4 x i1> %23 to <4 x i32>
%26 = zext <4 x i1> %24 to <4 x i32>
%27 = add <4 x i32> %vec.phi, %25
%28 = add <4 x i32> %vec.phi1936, %26
%index.next = add nuw i32 %index, 8
%vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
%29 = icmp eq i32 %index.next, %n.vec
br i1 %29, label %middle.block, label %vector.body, !llvm.loop !17
middle.block: ; preds = %vector.body
%bin.rdx = add <4 x i32> %28, %27
%30 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
%cmp.n = icmp eq i32 %19, %n.vec
br i1 %cmp.n, label %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2441
for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2441: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader, %middle.block
%q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph = phi i32 [ %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader ], [ %ind.end, %middle.block ]
%cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph = phi i32 [ %spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader ], [ %30, %middle.block ]
br label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %middle.block, %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cnt.16.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %30, %middle.block ], [ %spec.select244.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp104.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub103
%indvar.next1934 = add i32 %indvar1933, 1
br i1 %cmp104.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !20
for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2441, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %inc140.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2441 ]
%cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select244.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2441 ]
%add134.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cmp135.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add134.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %6
%inc137.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp135.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select244.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %inc137.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%inc140.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp123.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub122
br i1 %cmp123.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !21
for.body39.us.us.us.us.us.us.us.us.us: ; preds = %for.body39.lr.ph.us.us.us.us.us.us, %for.cond36.loopexit.us.us.us.us.us.us.us.us.us
%indvar1939 = phi i32 [ %indvar.next1940, %for.cond36.loopexit.us.us.us.us.us.us.us.us.us ], [ 0, %for.body39.lr.ph.us.us.us.us.us.us ]
%l.0481.us.us.us.us.us.us.us.us.us = phi i32 [ %add50.us.us.us.us.us.us.us.us.us, %for.cond36.loopexit.us.us.us.us.us.us.us.us.us ], [ %add35.us.us.us.us.us.us, %for.body39.lr.ph.us.us.us.us.us.us ]
%cnt.6480.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.8.lcssa.us.us.us.us.us.us.us.us.us, %for.cond36.loopexit.us.us.us.us.us.us.us.us.us ], [ %cnt.5.us.us.us.us.us.us, %for.body39.lr.ph.us.us.us.us.us.us ]
%31 = add i32 %12, %indvar1939
%add44.us.us.us.us.us.us.us.us.us = add nsw i32 %add29.us.us.us.us.us.us, %l.0481.us.us.us.us.us.us.us.us.us
%cmp45.us.us.us.us.us.us.us.us.us = icmp eq i32 %add44.us.us.us.us.us.us.us.us.us, %6
%narrow1855 = select i1 %cmp40, i1 %cmp45.us.us.us.us.us.us.us.us.us, i1 false
%spec.select239.us.us.us.us.us.us.us.us.us = zext i1 %narrow1855 to i32
%cnt.7.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.6480.us.us.us.us.us.us.us.us.us, %spec.select239.us.us.us.us.us.us.us.us.us
%add50.us.us.us.us.us.us.us.us.us = add nsw i32 %l.0481.us.us.us.us.us.us.us.us.us, 1
%cmp53.not365.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %l.0481.us.us.us.us.us.us.us.us.us, %sub52
br i1 %cmp53.not365.us.us.us.us.us.us.us.us.us.not, label %for.body54.us.us.us.us.us.us.us915.us.us.us.us.us, label %for.cond36.loopexit.us.us.us.us.us.us.us.us.us
for.cond36.loopexit.us.us.us.us.us.us.us.us.us: ; preds = %for.cond51.loopexit.us.us.us.us.us.us.us927.us.us.us.us.us, %for.body39.us.us.us.us.us.us.us.us.us
%cnt.8.lcssa.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.7.us.us.us.us.us.us.us.us.us, %for.body39.us.us.us.us.us.us.us.us.us ], [ %cnt.10.lcssa.us.us.us.us.us.us.us928.us.us.us.us.us, %for.cond51.loopexit.us.us.us.us.us.us.us927.us.us.us.us.us ]
%cmp38.not.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %l.0481.us.us.us.us.us.us.us.us.us, %sub37
%indvar.next1940 = add i32 %indvar1939, 1
br i1 %cmp38.not.us.us.us.us.us.us.us.us.us.not, label %for.body39.us.us.us.us.us.us.us.us.us, label %for.cond22.loopexit.us.us.us.us.us.us, !llvm.loop !13
for.body54.us.us.us.us.us.us.us915.us.us.us.us.us: ; preds = %for.body39.us.us.us.us.us.us.us.us.us, %for.cond51.loopexit.us.us.us.us.us.us.us927.us.us.us.us.us
%indvar1941 = phi i32 [ %indvar.next1942, %for.cond51.loopexit.us.us.us.us.us.us.us927.us.us.us.us.us ], [ 0, %for.body39.us.us.us.us.us.us.us.us.us ]
%m.0367.us.us.us.us.us.us.us916.us.us.us.us.us = phi i32 [ %add66.us.us.us.us.us.us.us925.us.us.us.us.us, %for.cond51.loopexit.us.us.us.us.us.us.us927.us.us.us.us.us ], [ %add50.us.us.us.us.us.us.us.us.us, %for.body39.us.us.us.us.us.us.us.us.us ]
%cnt.8366.us.us.us.us.us.us.us917.us.us.us.us.us = phi i32 [ %cnt.10.lcssa.us.us.us.us.us.us.us928.us.us.us.us.us, %for.cond51.loopexit.us.us.us.us.us.us.us927.us.us.us.us.us ], [ %cnt.7.us.us.us.us.us.us.us.us.us, %for.body39.us.us.us.us.us.us.us.us.us ]
%32 = add i32 %31, %indvar1941
%add60.us.us.us.us.us.us.us919.us.us.us.us.us = add nsw i32 %add44.us.us.us.us.us.us.us.us.us, %m.0367.us.us.us.us.us.us.us916.us.us.us.us.us
%cmp61.us.us.us.us.us.us.us920.us.us.us.us.us = icmp eq i32 %add60.us.us.us.us.us.us.us919.us.us.us.us.us, %6
%narrow1856 = select i1 %cmp55, i1 %cmp61.us.us.us.us.us.us.us920.us.us.us.us.us, i1 false
%spec.select240.us.us.us.us.us.us.us922.us.us.us.us.us = zext i1 %narrow1856 to i32
%cnt.9.us.us.us.us.us.us.us924.us.us.us.us.us = add nsw i32 %cnt.8366.us.us.us.us.us.us.us917.us.us.us.us.us, %spec.select240.us.us.us.us.us.us.us922.us.us.us.us.us
%add66.us.us.us.us.us.us.us925.us.us.us.us.us = add nsw i32 %m.0367.us.us.us.us.us.us.us916.us.us.us.us.us, 1
%cmp69.not318.us.us.us.us.us.us.us926.us.us.us.us.us.not = icmp slt i32 %m.0367.us.us.us.us.us.us.us916.us.us.us.us.us, %sub68
br i1 %cmp69.not318.us.us.us.us.us.us.us926.us.us.us.us.us.not, label %for.body70.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond51.loopexit.us.us.us.us.us.us.us927.us.us.us.us.us
for.cond51.loopexit.us.us.us.us.us.us.us927.us.us.us.us.us: ; preds = %for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body54.us.us.us.us.us.us.us915.us.us.us.us.us
%cnt.10.lcssa.us.us.us.us.us.us.us928.us.us.us.us.us = phi i32 [ %cnt.9.us.us.us.us.us.us.us924.us.us.us.us.us, %for.body54.us.us.us.us.us.us.us915.us.us.us.us.us ], [ %cnt.12.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp53.not.us.us.us.us.us.us.us929.us.us.us.us.us.not = icmp slt i32 %m.0367.us.us.us.us.us.us.us916.us.us.us.us.us, %sub52
%indvar.next1942 = add i32 %indvar1941, 1
br i1 %cmp53.not.us.us.us.us.us.us.us929.us.us.us.us.us.not, label %for.body54.us.us.us.us.us.us.us915.us.us.us.us.us, label %for.cond36.loopexit.us.us.us.us.us.us.us.us.us, !llvm.loop !14
for.body70.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body54.us.us.us.us.us.us.us915.us.us.us.us.us, %for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%indvar1943 = phi i32 [ %indvar.next1944, %for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body54.us.us.us.us.us.us.us915.us.us.us.us.us ]
%n.0320.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add83.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %add66.us.us.us.us.us.us.us925.us.us.us.us.us, %for.body54.us.us.us.us.us.us.us915.us.us.us.us.us ]
%cnt.10319.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.12.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.9.us.us.us.us.us.us.us924.us.us.us.us.us, %for.body54.us.us.us.us.us.us.us915.us.us.us.us.us ]
%33 = add i32 %32, %indvar1943
%add83.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %n.0320.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp86.not269.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %n.0320.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub85
br i1 %cmp86.not269.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body87.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body70.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cnt.12.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.10319.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body70.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.14.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp69.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %n.0320.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub68
%indvar.next1944 = add i32 %indvar1943, 1
br i1 %cmp69.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body70.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond51.loopexit.us.us.us.us.us.us.us927.us.us.us.us.us, !llvm.loop !15
for.body87.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body70.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%add94.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add60.us.us.us.us.us.us.us919.us.us.us.us.us, %n.0320.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
br label %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%indvar1945 = phi i32 [ %indvar.next1946, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body87.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add101.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %add83.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cnt.12270.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.14.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.10319.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%34 = add i32 %33, %indvar1945
%add95.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add94.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cmp96.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add95.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %6
%inc98.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp96.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select242.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.12270.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %inc98.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%add101.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp104.not248.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub103
br i1 %cmp104.not248.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cnt.14.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select242.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.16.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp86.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub85
%indvar.next1946 = add i32 %indvar1945, 1
br i1 %cmp86.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond67.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !16
for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%indvar1947 = phi i32 [ %indvar.next1948, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %add101.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cnt.14249.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.16.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %spec.select242.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%35 = add i32 %34, %indvar1947
%36 = sub i32 %sub10, %35
%add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add95.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cmp115.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %6
%inc117.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp115.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.14249.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %inc117.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp123.not245.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub122
br i1 %cmp123.not245.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader, label %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader: ; preds = %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%min.iters.check1951 = icmp ult i32 %36, 8
br i1 %min.iters.check1951, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2442, label %vector.ph1952
vector.ph1952: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader
%n.vec1954 = and i32 %36, -8
%ind.end1955 = add i32 %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %n.vec1954
%.splatinsert1960 = insertelement <4 x i32> poison, i32 %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%.splat1961 = shufflevector <4 x i32> %.splatinsert1960, <4 x i32> poison, <4 x i32> zeroinitializer
%induction1962 = add <4 x i32> %.splat1961, <i32 0, i32 1, i32 2, i32 3>
%37 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%broadcast.splatinsert1969 = insertelement <4 x i32> poison, i32 %add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%broadcast.splat1970 = shufflevector <4 x i32> %broadcast.splatinsert1969, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body1958
vector.body1958: ; preds = %vector.body1958, %vector.ph1952
%index1959 = phi i32 [ 0, %vector.ph1952 ], [ %index.next1973, %vector.body1958 ]
%vec.ind1963 = phi <4 x i32> [ %induction1962, %vector.ph1952 ], [ %vec.ind.next1966, %vector.body1958 ]
%vec.phi1967 = phi <4 x i32> [ %37, %vector.ph1952 ], [ %44, %vector.body1958 ]
%vec.phi1968 = phi <4 x i32> [ zeroinitializer, %vector.ph1952 ], [ %45, %vector.body1958 ]
%step.add1964 = add <4 x i32> %vec.ind1963, <i32 4, i32 4, i32 4, i32 4>
%38 = add nsw <4 x i32> %broadcast.splat1970, %vec.ind1963
%39 = add nsw <4 x i32> %broadcast.splat1970, %step.add1964
%40 = icmp eq <4 x i32> %38, %broadcast.splat1972
%41 = icmp eq <4 x i32> %39, %broadcast.splat1972
%42 = zext <4 x i1> %40 to <4 x i32>
%43 = zext <4 x i1> %41 to <4 x i32>
%44 = add <4 x i32> %vec.phi1967, %42
%45 = add <4 x i32> %vec.phi1968, %43
%index.next1973 = add nuw i32 %index1959, 8
%vec.ind.next1966 = add <4 x i32> %vec.ind1963, <i32 8, i32 8, i32 8, i32 8>
%46 = icmp eq i32 %index.next1973, %n.vec1954
br i1 %46, label %middle.block1949, label %vector.body1958, !llvm.loop !22
middle.block1949: ; preds = %vector.body1958
%bin.rdx1974 = add <4 x i32> %45, %44
%47 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx1974)
%cmp.n1957 = icmp eq i32 %36, %n.vec1954
br i1 %cmp.n1957, label %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2442
for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2442: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader, %middle.block1949
%q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph = phi i32 [ %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader ], [ %ind.end1955, %middle.block1949 ]
%cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph = phi i32 [ %spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader ], [ %47, %middle.block1949 ]
br label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %middle.block1949, %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cnt.16.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %47, %middle.block1949 ], [ %spec.select244.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp104.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub103
%indvar.next1948 = add i32 %indvar1947, 1
br i1 %cmp104.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !20
for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2442, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %inc140.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2442 ]
%cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select244.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2442 ]
%add134.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cmp135.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add134.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %6
%inc137.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp135.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select244.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %inc137.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%inc140.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp123.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub122
br i1 %cmp123.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !23
for.body25.lr.ph.split.us.us.split.us.us.us.split: ; preds = %for.body25.lr.ph.us.us.us
br i1 %cmp71, label %for.body25.us.us.us.us.us.us1788, label %for.body25.us.us.us.us.us
for.body25.us.us.us.us.us.us1788: ; preds = %for.body25.lr.ph.split.us.us.split.us.us.us.split, %for.cond22.loopexit.us.us.us.us.us.us1800
%indvar1976 = phi i32 [ %indvar.next1977, %for.cond22.loopexit.us.us.us.us.us.us1800 ], [ 0, %for.body25.lr.ph.split.us.us.split.us.us.us.split ]
%k.0649.us.us.us.us.us.us1789 = phi i32 [ %add35.us.us.us.us.us.us1798, %for.cond22.loopexit.us.us.us.us.us.us1800 ], [ %add21.us.us.us, %for.body25.lr.ph.split.us.us.split.us.us.us.split ]
%cnt.4648.us.us.us.us.us.us1790 = phi i32 [ %cnt.6.lcssa.us.us.us.us.us.us1801, %for.cond22.loopexit.us.us.us.us.us.us1800 ], [ %cnt.3.us.us.us, %for.body25.lr.ph.split.us.us.split.us.us.us.split ]
%48 = add i32 %9, %indvar1976
%add29.us.us.us.us.us.us1792 = add nuw nsw i32 %add15.us.us.us, %k.0649.us.us.us.us.us.us1789
%cmp30.us.us.us.us.us.us1793 = icmp eq i32 %add29.us.us.us.us.us.us1792, %6
%narrow1851 = select i1 %cmp26, i1 %cmp30.us.us.us.us.us.us1793, i1 false
%spec.select238.us.us.us.us.us.us1795 = zext i1 %narrow1851 to i32
%cnt.5.us.us.us.us.us.us1797 = add nsw i32 %cnt.4648.us.us.us.us.us.us1790, %spec.select238.us.us.us.us.us.us1795
%add35.us.us.us.us.us.us1798 = add nuw nsw i32 %k.0649.us.us.us.us.us.us1789, 1
%cmp38.not479.us.us.us.us.us.us1799.not = icmp slt i32 %k.0649.us.us.us.us.us.us1789, %sub37
br i1 %cmp38.not479.us.us.us.us.us.us1799.not, label %for.body39.us.us.us.us.us.us1148.us.us.us, label %for.cond22.loopexit.us.us.us.us.us.us1800
for.cond22.loopexit.us.us.us.us.us.us1800: ; preds = %for.cond36.loopexit.us.us.us.us.us.us1160.us.us.us, %for.body25.us.us.us.us.us.us1788
%cnt.6.lcssa.us.us.us.us.us.us1801 = phi i32 [ %cnt.5.us.us.us.us.us.us1797, %for.body25.us.us.us.us.us.us1788 ], [ %cnt.8.lcssa.us.us.us.us.us.us1161.us.us.us, %for.cond36.loopexit.us.us.us.us.us.us1160.us.us.us ]
%cmp24.not.us.us.us.us.us.us1802.not = icmp slt i32 %k.0649.us.us.us.us.us.us1789, %sub23
%indvar.next1977 = add i32 %indvar1976, 1
br i1 %cmp24.not.us.us.us.us.us.us1802.not, label %for.body25.us.us.us.us.us.us1788, label %for.cond9.loopexit.us.us.us, !llvm.loop !12
for.body39.us.us.us.us.us.us1148.us.us.us: ; preds = %for.body25.us.us.us.us.us.us1788, %for.cond36.loopexit.us.us.us.us.us.us1160.us.us.us
%indvar1978 = phi i32 [ %indvar.next1979, %for.cond36.loopexit.us.us.us.us.us.us1160.us.us.us ], [ 0, %for.body25.us.us.us.us.us.us1788 ]
%l.0481.us.us.us.us.us.us1149.us.us.us = phi i32 [ %add50.us.us.us.us.us.us1158.us.us.us, %for.cond36.loopexit.us.us.us.us.us.us1160.us.us.us ], [ %add35.us.us.us.us.us.us1798, %for.body25.us.us.us.us.us.us1788 ]
%cnt.6480.us.us.us.us.us.us1150.us.us.us = phi i32 [ %cnt.8.lcssa.us.us.us.us.us.us1161.us.us.us, %for.cond36.loopexit.us.us.us.us.us.us1160.us.us.us ], [ %cnt.5.us.us.us.us.us.us1797, %for.body25.us.us.us.us.us.us1788 ]
%49 = add i32 %48, %indvar1978
%add44.us.us.us.us.us.us1152.us.us.us = add nsw i32 %add29.us.us.us.us.us.us1792, %l.0481.us.us.us.us.us.us1149.us.us.us
%cmp45.us.us.us.us.us.us1153.us.us.us = icmp eq i32 %add44.us.us.us.us.us.us1152.us.us.us, %6
%narrow1852 = select i1 %cmp40, i1 %cmp45.us.us.us.us.us.us1153.us.us.us, i1 false
%spec.select239.us.us.us.us.us.us1155.us.us.us = zext i1 %narrow1852 to i32
%cnt.7.us.us.us.us.us.us1157.us.us.us = add nsw i32 %cnt.6480.us.us.us.us.us.us1150.us.us.us, %spec.select239.us.us.us.us.us.us1155.us.us.us
%add50.us.us.us.us.us.us1158.us.us.us = add nsw i32 %l.0481.us.us.us.us.us.us1149.us.us.us, 1
%cmp53.not365.us.us.us.us.us.us1159.us.us.us.not = icmp slt i32 %l.0481.us.us.us.us.us.us1149.us.us.us, %sub52
br i1 %cmp53.not365.us.us.us.us.us.us1159.us.us.us.not, label %for.body54.us.us.us.us.us.us892.us.us.us.us.us.us, label %for.cond36.loopexit.us.us.us.us.us.us1160.us.us.us
for.cond36.loopexit.us.us.us.us.us.us1160.us.us.us: ; preds = %for.cond51.loopexit.us.us.us.us.us.us904.us.us.us.us.us.us, %for.body39.us.us.us.us.us.us1148.us.us.us
%cnt.8.lcssa.us.us.us.us.us.us1161.us.us.us = phi i32 [ %cnt.7.us.us.us.us.us.us1157.us.us.us, %for.body39.us.us.us.us.us.us1148.us.us.us ], [ %cnt.10.lcssa.us.us.us.us.us.us905.us.us.us.us.us.us, %for.cond51.loopexit.us.us.us.us.us.us904.us.us.us.us.us.us ]
%cmp38.not.us.us.us.us.us.us1162.us.us.us.not = icmp slt i32 %l.0481.us.us.us.us.us.us1149.us.us.us, %sub37
%indvar.next1979 = add i32 %indvar1978, 1
br i1 %cmp38.not.us.us.us.us.us.us1162.us.us.us.not, label %for.body39.us.us.us.us.us.us1148.us.us.us, label %for.cond22.loopexit.us.us.us.us.us.us1800, !llvm.loop !13
for.body54.us.us.us.us.us.us892.us.us.us.us.us.us: ; preds = %for.body39.us.us.us.us.us.us1148.us.us.us, %for.cond51.loopexit.us.us.us.us.us.us904.us.us.us.us.us.us
%indvar1980 = phi i32 [ %indvar.next1981, %for.cond51.loopexit.us.us.us.us.us.us904.us.us.us.us.us.us ], [ 0, %for.body39.us.us.us.us.us.us1148.us.us.us ]
%m.0367.us.us.us.us.us.us893.us.us.us.us.us.us = phi i32 [ %add66.us.us.us.us.us.us902.us.us.us.us.us.us, %for.cond51.loopexit.us.us.us.us.us.us904.us.us.us.us.us.us ], [ %add50.us.us.us.us.us.us1158.us.us.us, %for.body39.us.us.us.us.us.us1148.us.us.us ]
%cnt.8366.us.us.us.us.us.us894.us.us.us.us.us.us = phi i32 [ %cnt.10.lcssa.us.us.us.us.us.us905.us.us.us.us.us.us, %for.cond51.loopexit.us.us.us.us.us.us904.us.us.us.us.us.us ], [ %cnt.7.us.us.us.us.us.us1157.us.us.us, %for.body39.us.us.us.us.us.us1148.us.us.us ]
%50 = add i32 %49, %indvar1980
%add60.us.us.us.us.us.us896.us.us.us.us.us.us = add nsw i32 %add44.us.us.us.us.us.us1152.us.us.us, %m.0367.us.us.us.us.us.us893.us.us.us.us.us.us
%cmp61.us.us.us.us.us.us897.us.us.us.us.us.us = icmp eq i32 %add60.us.us.us.us.us.us896.us.us.us.us.us.us, %6
%narrow1853 = select i1 %cmp55, i1 %cmp61.us.us.us.us.us.us897.us.us.us.us.us.us, i1 false
%spec.select240.us.us.us.us.us.us899.us.us.us.us.us.us = zext i1 %narrow1853 to i32
%cnt.9.us.us.us.us.us.us901.us.us.us.us.us.us = add nsw i32 %cnt.8366.us.us.us.us.us.us894.us.us.us.us.us.us, %spec.select240.us.us.us.us.us.us899.us.us.us.us.us.us
%add66.us.us.us.us.us.us902.us.us.us.us.us.us = add nsw i32 %m.0367.us.us.us.us.us.us893.us.us.us.us.us.us, 1
%cmp69.not318.us.us.us.us.us.us903.us.us.us.us.us.us.not = icmp slt i32 %m.0367.us.us.us.us.us.us893.us.us.us.us.us.us, %sub68
br i1 %cmp69.not318.us.us.us.us.us.us903.us.us.us.us.us.us.not, label %for.body70.us.us.us.us503.us.us.us.us.us.us.us.us.us.us.us, label %for.cond51.loopexit.us.us.us.us.us.us904.us.us.us.us.us.us
for.cond51.loopexit.us.us.us.us.us.us904.us.us.us.us.us.us: ; preds = %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us.us.us, %for.body54.us.us.us.us.us.us892.us.us.us.us.us.us
%cnt.10.lcssa.us.us.us.us.us.us905.us.us.us.us.us.us = phi i32 [ %cnt.9.us.us.us.us.us.us901.us.us.us.us.us.us, %for.body54.us.us.us.us.us.us892.us.us.us.us.us.us ], [ %cnt.12.lcssa.us.us.us.us516.us.us.us.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us.us.us ]
%cmp53.not.us.us.us.us.us.us906.us.us.us.us.us.us.not = icmp slt i32 %m.0367.us.us.us.us.us.us893.us.us.us.us.us.us, %sub52
%indvar.next1981 = add i32 %indvar1980, 1
br i1 %cmp53.not.us.us.us.us.us.us906.us.us.us.us.us.us.not, label %for.body54.us.us.us.us.us.us892.us.us.us.us.us.us, label %for.cond36.loopexit.us.us.us.us.us.us1160.us.us.us, !llvm.loop !14
for.body70.us.us.us.us503.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body54.us.us.us.us.us.us892.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us.us.us
%indvar1982 = phi i32 [ %indvar.next1983, %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body54.us.us.us.us.us.us892.us.us.us.us.us.us ]
%n.0320.us.us.us.us504.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add83.us.us.us.us513.us.us.us.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us.us.us ], [ %add66.us.us.us.us.us.us902.us.us.us.us.us.us, %for.body54.us.us.us.us.us.us892.us.us.us.us.us.us ]
%cnt.10319.us.us.us.us505.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.12.lcssa.us.us.us.us516.us.us.us.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.9.us.us.us.us.us.us901.us.us.us.us.us.us, %for.body54.us.us.us.us.us.us892.us.us.us.us.us.us ]
%51 = add i32 %50, %indvar1982
%add77.us.us.us.us507.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add60.us.us.us.us.us.us896.us.us.us.us.us.us, %n.0320.us.us.us.us504.us.us.us.us.us.us.us.us.us.us.us
%cmp78.us.us.us.us508.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add77.us.us.us.us507.us.us.us.us.us.us.us.us.us.us.us, %6
%inc80.us.us.us.us509.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp78.us.us.us.us508.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select241.us.us.us.us510.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.10319.us.us.us.us505.us.us.us.us.us.us.us.us.us.us.us, %inc80.us.us.us.us509.us.us.us.us.us.us.us.us.us.us.us
%add83.us.us.us.us513.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %n.0320.us.us.us.us504.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp86.not269.us.us.us.us514.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %n.0320.us.us.us.us504.us.us.us.us.us.us.us.us.us.us.us, %sub85
br i1 %cmp86.not269.us.us.us.us514.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us1082.us.us.us.us, label %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us.us.us
for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us1087.us.us.us.us, %for.body70.us.us.us.us503.us.us.us.us.us.us.us.us.us.us.us
%cnt.12.lcssa.us.us.us.us516.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select241.us.us.us.us510.us.us.us.us.us.us.us.us.us.us.us, %for.body70.us.us.us.us503.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.14.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us1088.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us1087.us.us.us.us ]
%cmp69.not.us.us.us.us517.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %n.0320.us.us.us.us504.us.us.us.us.us.us.us.us.us.us.us, %sub68
%indvar.next1983 = add i32 %indvar1982, 1
br i1 %cmp69.not.us.us.us.us517.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body70.us.us.us.us503.us.us.us.us.us.us.us.us.us.us.us, label %for.cond51.loopexit.us.us.us.us.us.us904.us.us.us.us.us.us, !llvm.loop !15
for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us1082.us.us.us.us: ; preds = %for.body70.us.us.us.us503.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us1087.us.us.us.us
%indvar1984 = phi i32 [ %indvar.next1985, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us1087.us.us.us.us ], [ 0, %for.body70.us.us.us.us503.us.us.us.us.us.us.us.us.us.us.us ]
%o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us1083.us.us.us.us = phi i32 [ %add101.us.us.us.us.us.us.us.us.us.us.us.us.us1085.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us1087.us.us.us.us ], [ %add83.us.us.us.us513.us.us.us.us.us.us.us.us.us.us.us, %for.body70.us.us.us.us503.us.us.us.us.us.us.us.us.us.us.us ]
%cnt.12270.us.us.us.us.us.us.us.us.us.us.us.us.us1084.us.us.us.us = phi i32 [ %cnt.14.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us1088.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us1087.us.us.us.us ], [ %spec.select241.us.us.us.us510.us.us.us.us.us.us.us.us.us.us.us, %for.body70.us.us.us.us503.us.us.us.us.us.us.us.us.us.us.us ]
%52 = add i32 %51, %indvar1984
%add101.us.us.us.us.us.us.us.us.us.us.us.us.us1085.us.us.us.us = add nsw i32 %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us1083.us.us.us.us, 1
%cmp104.not248.us.us.us.us.us.us.us.us.us.us.us.us.us1086.us.us.us.us.not = icmp slt i32 %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us1083.us.us.us.us, %sub103
br i1 %cmp104.not248.us.us.us.us.us.us.us.us.us.us.us.us.us1086.us.us.us.us.not, label %for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us1090.us.us.us.us, label %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us1087.us.us.us.us
for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us1087.us.us.us.us: ; preds = %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1102.us.us.us.us, %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us1082.us.us.us.us
%cnt.14.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us1088.us.us.us.us = phi i32 [ %cnt.12270.us.us.us.us.us.us.us.us.us.us.us.us.us1084.us.us.us.us, %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us1082.us.us.us.us ], [ %cnt.16.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1103.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1102.us.us.us.us ]
%cmp86.not.us.us.us.us.us.us.us.us.us.us.us.us.us1089.us.us.us.us.not = icmp slt i32 %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us1083.us.us.us.us, %sub85
%indvar.next1985 = add i32 %indvar1984, 1
br i1 %cmp86.not.us.us.us.us.us.us.us.us.us.us.us.us.us1089.us.us.us.us.not, label %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us1082.us.us.us.us, label %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !16
for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us1090.us.us.us.us: ; preds = %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us1082.us.us.us.us
%add113.us.us.us.us.us.us.us.us.us.us.us.us.us1091.us.us.us.us = add nsw i32 %add77.us.us.us.us507.us.us.us.us.us.us.us.us.us.us.us, %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us1083.us.us.us.us
br label %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1093.us.us.us.us
for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1093.us.us.us.us: ; preds = %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1102.us.us.us.us, %for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us1090.us.us.us.us
%indvar1986 = phi i32 [ %indvar.next1987, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1102.us.us.us.us ], [ 0, %for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us1090.us.us.us.us ]
%p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1094.us.us.us.us = phi i32 [ %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1100.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1102.us.us.us.us ], [ %add101.us.us.us.us.us.us.us.us.us.us.us.us.us1085.us.us.us.us, %for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us1090.us.us.us.us ]
%cnt.14249.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1095.us.us.us.us = phi i32 [ %cnt.16.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1103.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1102.us.us.us.us ], [ %cnt.12270.us.us.us.us.us.us.us.us.us.us.us.us.us1084.us.us.us.us, %for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us1090.us.us.us.us ]
%53 = add i32 %52, %indvar1986
%54 = sub i32 %sub10, %53
%add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1096.us.us.us.us = add nsw i32 %add113.us.us.us.us.us.us.us.us.us.us.us.us.us1091.us.us.us.us, %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1094.us.us.us.us
%cmp115.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1097.us.us.us.us = icmp eq i32 %add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1096.us.us.us.us, %6
%inc117.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1098.us.us.us.us = zext i1 %cmp115.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1097.us.us.us.us to i32
%spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1099.us.us.us.us = add nsw i32 %cnt.14249.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1095.us.us.us.us, %inc117.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1098.us.us.us.us
%add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1100.us.us.us.us = add nsw i32 %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1094.us.us.us.us, 1
%cmp123.not245.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1101.us.us.us.us.not = icmp slt i32 %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1094.us.us.us.us, %sub122
br i1 %cmp123.not245.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1101.us.us.us.us.not, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us.preheader, label %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1102.us.us.us.us
for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us.preheader: ; preds = %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1093.us.us.us.us
%min.iters.check1990 = icmp ult i32 %54, 8
br i1 %min.iters.check1990, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us.preheader2443, label %vector.ph1991
vector.ph1991: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us.preheader
%n.vec1993 = and i32 %54, -8
%ind.end1994 = add i32 %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1100.us.us.us.us, %n.vec1993
%.splatinsert1999 = insertelement <4 x i32> poison, i32 %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1100.us.us.us.us, i64 0
%.splat2000 = shufflevector <4 x i32> %.splatinsert1999, <4 x i32> poison, <4 x i32> zeroinitializer
%induction2001 = add <4 x i32> %.splat2000, <i32 0, i32 1, i32 2, i32 3>
%55 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1099.us.us.us.us, i64 0
%broadcast.splatinsert2008 = insertelement <4 x i32> poison, i32 %add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1096.us.us.us.us, i64 0
%broadcast.splat2009 = shufflevector <4 x i32> %broadcast.splatinsert2008, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body1997
vector.body1997: ; preds = %vector.body1997, %vector.ph1991
%index1998 = phi i32 [ 0, %vector.ph1991 ], [ %index.next2012, %vector.body1997 ]
%vec.ind2002 = phi <4 x i32> [ %induction2001, %vector.ph1991 ], [ %vec.ind.next2005, %vector.body1997 ]
%vec.phi2006 = phi <4 x i32> [ %55, %vector.ph1991 ], [ %62, %vector.body1997 ]
%vec.phi2007 = phi <4 x i32> [ zeroinitializer, %vector.ph1991 ], [ %63, %vector.body1997 ]
%step.add2003 = add <4 x i32> %vec.ind2002, <i32 4, i32 4, i32 4, i32 4>
%56 = add nsw <4 x i32> %broadcast.splat2009, %vec.ind2002
%57 = add nsw <4 x i32> %broadcast.splat2009, %step.add2003
%58 = icmp eq <4 x i32> %56, %broadcast.splat2011
%59 = icmp eq <4 x i32> %57, %broadcast.splat2011
%60 = zext <4 x i1> %58 to <4 x i32>
%61 = zext <4 x i1> %59 to <4 x i32>
%62 = add <4 x i32> %vec.phi2006, %60
%63 = add <4 x i32> %vec.phi2007, %61
%index.next2012 = add nuw i32 %index1998, 8
%vec.ind.next2005 = add <4 x i32> %vec.ind2002, <i32 8, i32 8, i32 8, i32 8>
%64 = icmp eq i32 %index.next2012, %n.vec1993
br i1 %64, label %middle.block1988, label %vector.body1997, !llvm.loop !24
middle.block1988: ; preds = %vector.body1997
%bin.rdx2013 = add <4 x i32> %63, %62
%65 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx2013)
%cmp.n1996 = icmp eq i32 %54, %n.vec1993
br i1 %cmp.n1996, label %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1102.us.us.us.us, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us.preheader2443
for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us.preheader2443: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us.preheader, %middle.block1988
%q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1108.us.us.us.us.ph = phi i32 [ %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1100.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us.preheader ], [ %ind.end1994, %middle.block1988 ]
%cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1109.us.us.us.us.ph = phi i32 [ %spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1099.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us.preheader ], [ %65, %middle.block1988 ]
br label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us
for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1102.us.us.us.us: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us, %middle.block1988, %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1093.us.us.us.us
%cnt.16.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1103.us.us.us.us = phi i32 [ %spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1099.us.us.us.us, %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1093.us.us.us.us ], [ %65, %middle.block1988 ], [ %spec.select244.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1113.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us ]
%cmp104.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1104.us.us.us.us.not = icmp slt i32 %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1094.us.us.us.us, %sub103
%indvar.next1987 = add i32 %indvar1986, 1
br i1 %cmp104.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1104.us.us.us.us.not, label %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1093.us.us.us.us, label %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us1087.us.us.us.us, !llvm.loop !20
for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us.preheader2443, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us
%q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1108.us.us.us.us = phi i32 [ %inc140.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1114.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us ], [ %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1108.us.us.us.us.ph, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us.preheader2443 ]
%cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1109.us.us.us.us = phi i32 [ %spec.select244.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1113.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us ], [ %cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1109.us.us.us.us.ph, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us.preheader2443 ]
%add134.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1110.us.us.us.us = add nsw i32 %add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1096.us.us.us.us, %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1108.us.us.us.us
%cmp135.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1111.us.us.us.us = icmp eq i32 %add134.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1110.us.us.us.us, %6
%inc137.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1112.us.us.us.us = zext i1 %cmp135.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1111.us.us.us.us to i32
%spec.select244.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1113.us.us.us.us = add nsw i32 %cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1109.us.us.us.us, %inc137.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1112.us.us.us.us
%inc140.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1114.us.us.us.us = add nsw i32 %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1108.us.us.us.us, 1
%cmp123.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1115.us.us.us.us.not = icmp slt i32 %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1108.us.us.us.us, %sub122
br i1 %cmp123.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1115.us.us.us.us.not, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1107.us.us.us.us, label %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us1102.us.us.us.us, !llvm.loop !25
for.body25.us.us.us.us.us: ; preds = %for.body25.lr.ph.split.us.us.split.us.us.us.split, %for.cond22.loopexit.us.us.us.us.us
%indvar2015 = phi i32 [ %indvar.next2016, %for.cond22.loopexit.us.us.us.us.us ], [ 0, %for.body25.lr.ph.split.us.us.split.us.us.us.split ]
%k.0649.us.us.us.us.us = phi i32 [ %add35.us.us.us.us.us, %for.cond22.loopexit.us.us.us.us.us ], [ %add21.us.us.us, %for.body25.lr.ph.split.us.us.split.us.us.us.split ]
%cnt.4648.us.us.us.us.us = phi i32 [ %cnt.6.lcssa.us.us.us.us.us, %for.cond22.loopexit.us.us.us.us.us ], [ %cnt.3.us.us.us, %for.body25.lr.ph.split.us.us.split.us.us.us.split ]
%66 = add i32 %7, %indvar2015
%67 = add i32 %8, %indvar2015
%add29.us.us.us.us.us = add nuw nsw i32 %add15.us.us.us, %k.0649.us.us.us.us.us
%cmp30.us.us.us.us.us = icmp eq i32 %add29.us.us.us.us.us, %6
%narrow1848 = select i1 %cmp26, i1 %cmp30.us.us.us.us.us, i1 false
%spec.select238.us.us.us.us.us = zext i1 %narrow1848 to i32
%cnt.5.us.us.us.us.us = add nsw i32 %cnt.4648.us.us.us.us.us, %spec.select238.us.us.us.us.us
%add35.us.us.us.us.us = add nuw nsw i32 %k.0649.us.us.us.us.us, 1
%cmp38.not479.us.us.us.us.us.not = icmp slt i32 %k.0649.us.us.us.us.us, %sub37
br i1 %cmp38.not479.us.us.us.us.us.not, label %for.body39.lr.ph.us.us.us.us.us, label %for.cond22.loopexit.us.us.us.us.us
for.cond22.loopexit.us.us.us.us.us: ; preds = %for.cond36.loopexit.us.us.us.us.us.us1295.us1646, %for.cond36.loopexit.us.us.us.us.us.us1295.us.us, %for.body25.us.us.us.us.us
%cnt.6.lcssa.us.us.us.us.us = phi i32 [ %cnt.5.us.us.us.us.us, %for.body25.us.us.us.us.us ], [ %cnt.8.lcssa.us.us.us.us.us.us1296.us.us, %for.cond36.loopexit.us.us.us.us.us.us1295.us.us ], [ %cnt.8.lcssa.us.us.us.us.us.us1296.us1647, %for.cond36.loopexit.us.us.us.us.us.us1295.us1646 ]
%cmp24.not.us.us.us.us.us.not = icmp slt i32 %k.0649.us.us.us.us.us, %sub23
%indvar.next2016 = add i32 %indvar2015, 1
br i1 %cmp24.not.us.us.us.us.us.not, label %for.body25.us.us.us.us.us, label %for.cond9.loopexit.us.us.us, !llvm.loop !12
for.body39.lr.ph.us.us.us.us.us: ; preds = %for.body25.us.us.us.us.us
br i1 %cmp55, label %for.body39.us.us.us.us.us.us1283.us.us, label %for.body39.us.us.us.us.us.us1283.us1634
for.body39.us.us.us.us.us.us1283.us1634: ; preds = %for.body39.lr.ph.us.us.us.us.us, %for.cond36.loopexit.us.us.us.us.us.us1295.us1646
%indvar2054 = phi i32 [ %indvar.next2055, %for.cond36.loopexit.us.us.us.us.us.us1295.us1646 ], [ 0, %for.body39.lr.ph.us.us.us.us.us ]
%l.0481.us.us.us.us.us.us1284.us1635 = phi i32 [ %add50.us.us.us.us.us.us1293.us1644, %for.cond36.loopexit.us.us.us.us.us.us1295.us1646 ], [ %add35.us.us.us.us.us, %for.body39.lr.ph.us.us.us.us.us ]
%cnt.6480.us.us.us.us.us.us1285.us1636 = phi i32 [ %cnt.8.lcssa.us.us.us.us.us.us1296.us1647, %for.cond36.loopexit.us.us.us.us.us.us1295.us1646 ], [ %cnt.5.us.us.us.us.us, %for.body39.lr.ph.us.us.us.us.us ]
%68 = add i32 %66, %indvar2054
%add44.us.us.us.us.us.us1287.us1638 = add nsw i32 %add29.us.us.us.us.us, %l.0481.us.us.us.us.us.us1284.us1635
%cmp45.us.us.us.us.us.us1288.us1639 = icmp eq i32 %add44.us.us.us.us.us.us1287.us1638, %6
%narrow1849 = select i1 %cmp40, i1 %cmp45.us.us.us.us.us.us1288.us1639, i1 false
%spec.select239.us.us.us.us.us.us1290.us1641 = zext i1 %narrow1849 to i32
%cnt.7.us.us.us.us.us.us1292.us1643 = add nsw i32 %cnt.6480.us.us.us.us.us.us1285.us1636, %spec.select239.us.us.us.us.us.us1290.us1641
%add50.us.us.us.us.us.us1293.us1644 = add nsw i32 %l.0481.us.us.us.us.us.us1284.us1635, 1
%cmp53.not365.us.us.us.us.us.us1294.us1645.not = icmp slt i32 %l.0481.us.us.us.us.us.us1284.us1635, %sub52
br i1 %cmp53.not365.us.us.us.us.us.us1294.us1645.not, label %for.body54.us.us.us.us.us.us892.us1060.us.us, label %for.cond36.loopexit.us.us.us.us.us.us1295.us1646
for.cond36.loopexit.us.us.us.us.us.us1295.us1646: ; preds = %for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us, %for.body39.us.us.us.us.us.us1283.us1634
%cnt.8.lcssa.us.us.us.us.us.us1296.us1647 = phi i32 [ %cnt.7.us.us.us.us.us.us1292.us1643, %for.body39.us.us.us.us.us.us1283.us1634 ], [ %cnt.10.lcssa.us.us.us.us.us.us905.us1073.us.us, %for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us ]
%cmp38.not.us.us.us.us.us.us1297.us1648.not = icmp slt i32 %l.0481.us.us.us.us.us.us1284.us1635, %sub37
%indvar.next2055 = add i32 %indvar2054, 1
br i1 %cmp38.not.us.us.us.us.us.us1297.us1648.not, label %for.body39.us.us.us.us.us.us1283.us1634, label %for.cond22.loopexit.us.us.us.us.us, !llvm.loop !13
for.body54.us.us.us.us.us.us892.us1060.us.us: ; preds = %for.body39.us.us.us.us.us.us1283.us1634, %for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us
%indvar2056 = phi i32 [ %indvar.next2057, %for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us ], [ 0, %for.body39.us.us.us.us.us.us1283.us1634 ]
%m.0367.us.us.us.us.us.us893.us1061.us.us = phi i32 [ %add66.us.us.us.us.us.us902.us1070.us.us, %for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us ], [ %add50.us.us.us.us.us.us1293.us1644, %for.body39.us.us.us.us.us.us1283.us1634 ]
%cnt.8366.us.us.us.us.us.us894.us1062.us.us = phi i32 [ %cnt.10.lcssa.us.us.us.us.us.us905.us1073.us.us, %for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us ], [ %cnt.7.us.us.us.us.us.us1292.us1643, %for.body39.us.us.us.us.us.us1283.us1634 ]
%69 = add i32 %68, %indvar2056
%add66.us.us.us.us.us.us902.us1070.us.us = add nsw i32 %m.0367.us.us.us.us.us.us893.us1061.us.us, 1
%cmp69.not318.us.us.us.us.us.us903.us1071.us.us.not = icmp slt i32 %m.0367.us.us.us.us.us.us893.us1061.us.us, %sub68
br i1 %cmp69.not318.us.us.us.us.us.us903.us1071.us.us.not, label %for.body70.lr.ph.us.us.us.us.us.us907.us1075.us.us, label %for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us
for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us: ; preds = %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us, %for.body54.us.us.us.us.us.us892.us1060.us.us
%cnt.10.lcssa.us.us.us.us.us.us905.us1073.us.us = phi i32 [ %cnt.8366.us.us.us.us.us.us894.us1062.us.us, %for.body54.us.us.us.us.us.us892.us1060.us.us ], [ %cnt.12.lcssa.us.us.us.us516.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us ]
%cmp53.not.us.us.us.us.us.us906.us1074.us.us.not = icmp slt i32 %m.0367.us.us.us.us.us.us893.us1061.us.us, %sub52
%indvar.next2057 = add i32 %indvar2056, 1
br i1 %cmp53.not.us.us.us.us.us.us906.us1074.us.us.not, label %for.body54.us.us.us.us.us.us892.us1060.us.us, label %for.cond36.loopexit.us.us.us.us.us.us1295.us1646, !llvm.loop !14
for.body70.lr.ph.us.us.us.us.us.us907.us1075.us.us: ; preds = %for.body54.us.us.us.us.us.us892.us1060.us.us
%add111.us.us.us.us.us.us908.us1076.us.us = add nsw i32 %add44.us.us.us.us.us.us1287.us1638, %m.0367.us.us.us.us.us.us893.us1061.us.us
br label %for.body70.us.us.us.us503.us.us.us.us.us.us.us
for.body70.us.us.us.us503.us.us.us.us.us.us.us: ; preds = %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us, %for.body70.lr.ph.us.us.us.us.us.us907.us1075.us.us
%indvar2058 = phi i32 [ %indvar.next2059, %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us ], [ 0, %for.body70.lr.ph.us.us.us.us.us.us907.us1075.us.us ]
%n.0320.us.us.us.us504.us.us.us.us.us.us.us = phi i32 [ %add83.us.us.us.us513.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us ], [ %add66.us.us.us.us.us.us902.us1070.us.us, %for.body70.lr.ph.us.us.us.us.us.us907.us1075.us.us ]
%cnt.10319.us.us.us.us505.us.us.us.us.us.us.us = phi i32 [ %cnt.12.lcssa.us.us.us.us516.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us ], [ %cnt.8366.us.us.us.us.us.us894.us1062.us.us, %for.body70.lr.ph.us.us.us.us.us.us907.us1075.us.us ]
%70 = add i32 %69, %indvar2058
%add83.us.us.us.us513.us.us.us.us.us.us.us = add nsw i32 %n.0320.us.us.us.us504.us.us.us.us.us.us.us, 1
%cmp86.not269.us.us.us.us514.us.us.us.us.us.us.us.not = icmp slt i32 %n.0320.us.us.us.us504.us.us.us.us.us.us.us, %sub85
br i1 %cmp86.not269.us.us.us.us514.us.us.us.us.us.us.us.not, label %for.body87.lr.ph.us.us.us.us518.us.us.us.us.us.us.us, label %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us
for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us: ; preds = %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body70.us.us.us.us503.us.us.us.us.us.us.us
%cnt.12.lcssa.us.us.us.us516.us.us.us.us.us.us.us = phi i32 [ %cnt.10319.us.us.us.us505.us.us.us.us.us.us.us, %for.body70.us.us.us.us503.us.us.us.us.us.us.us ], [ %cnt.14.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp69.not.us.us.us.us517.us.us.us.us.us.us.us.not = icmp slt i32 %n.0320.us.us.us.us504.us.us.us.us.us.us.us, %sub68
%indvar.next2059 = add i32 %indvar2058, 1
br i1 %cmp69.not.us.us.us.us517.us.us.us.us.us.us.us.not, label %for.body70.us.us.us.us503.us.us.us.us.us.us.us, label %for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us, !llvm.loop !15
for.body87.lr.ph.us.us.us.us518.us.us.us.us.us.us.us: ; preds = %for.body70.us.us.us.us503.us.us.us.us.us.us.us
%add112.us.us.us.us519.us.us.us.us.us.us.us = add nsw i32 %add111.us.us.us.us.us.us908.us1076.us.us, %n.0320.us.us.us.us504.us.us.us.us.us.us.us
br label %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us
for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.lr.ph.us.us.us.us518.us.us.us.us.us.us.us
%indvar2060 = phi i32 [ %indvar.next2061, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body87.lr.ph.us.us.us.us518.us.us.us.us.us.us.us ]
%o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add101.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %add83.us.us.us.us513.us.us.us.us.us.us.us, %for.body87.lr.ph.us.us.us.us518.us.us.us.us.us.us.us ]
%cnt.12270.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.14.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.10319.us.us.us.us505.us.us.us.us.us.us.us, %for.body87.lr.ph.us.us.us.us518.us.us.us.us.us.us.us ]
%71 = add i32 %70, %indvar2060
%add101.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp104.not248.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub103
br i1 %cmp104.not248.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us
for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us
%cnt.14.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.12270.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.16.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp86.not.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub85
%indvar.next2061 = add i32 %indvar2060, 1
br i1 %cmp86.not.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us, !llvm.loop !16
for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us
%add113.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add112.us.us.us.us519.us.us.us.us.us.us.us, %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us
br label %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us
%indvar2062 = phi i32 [ %indvar.next2063, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %add101.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cnt.14249.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.16.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.12270.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%72 = add i32 %71, %indvar2062
%73 = sub i32 %sub10, %72
%add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add113.us.us.us.us.us.us.us.us.us.us.us.us.us, %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cmp115.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %6
%inc117.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp115.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.14249.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %inc117.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp123.not245.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub122
br i1 %cmp123.not245.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader, label %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader: ; preds = %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%min.iters.check2066 = icmp ult i32 %73, 8
br i1 %min.iters.check2066, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2445, label %vector.ph2067
vector.ph2067: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader
%n.vec2069 = and i32 %73, -8
%ind.end2070 = add i32 %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %n.vec2069
%.splatinsert2075 = insertelement <4 x i32> poison, i32 %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%.splat2076 = shufflevector <4 x i32> %.splatinsert2075, <4 x i32> poison, <4 x i32> zeroinitializer
%induction2077 = add <4 x i32> %.splat2076, <i32 0, i32 1, i32 2, i32 3>
%74 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%broadcast.splatinsert2084 = insertelement <4 x i32> poison, i32 %add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%broadcast.splat2085 = shufflevector <4 x i32> %broadcast.splatinsert2084, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body2073
vector.body2073: ; preds = %vector.body2073, %vector.ph2067
%index2074 = phi i32 [ 0, %vector.ph2067 ], [ %index.next2088, %vector.body2073 ]
%vec.ind2078 = phi <4 x i32> [ %induction2077, %vector.ph2067 ], [ %vec.ind.next2081, %vector.body2073 ]
%vec.phi2082 = phi <4 x i32> [ %74, %vector.ph2067 ], [ %81, %vector.body2073 ]
%vec.phi2083 = phi <4 x i32> [ zeroinitializer, %vector.ph2067 ], [ %82, %vector.body2073 ]
%step.add2079 = add <4 x i32> %vec.ind2078, <i32 4, i32 4, i32 4, i32 4>
%75 = add nsw <4 x i32> %broadcast.splat2085, %vec.ind2078
%76 = add nsw <4 x i32> %broadcast.splat2085, %step.add2079
%77 = icmp eq <4 x i32> %75, %broadcast.splat2087
%78 = icmp eq <4 x i32> %76, %broadcast.splat2087
%79 = zext <4 x i1> %77 to <4 x i32>
%80 = zext <4 x i1> %78 to <4 x i32>
%81 = add <4 x i32> %vec.phi2082, %79
%82 = add <4 x i32> %vec.phi2083, %80
%index.next2088 = add nuw i32 %index2074, 8
%vec.ind.next2081 = add <4 x i32> %vec.ind2078, <i32 8, i32 8, i32 8, i32 8>
%83 = icmp eq i32 %index.next2088, %n.vec2069
br i1 %83, label %middle.block2064, label %vector.body2073, !llvm.loop !26
middle.block2064: ; preds = %vector.body2073
%bin.rdx2089 = add <4 x i32> %82, %81
%84 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx2089)
%cmp.n2072 = icmp eq i32 %73, %n.vec2069
br i1 %cmp.n2072, label %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2445
for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2445: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader, %middle.block2064
%q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph = phi i32 [ %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader ], [ %ind.end2070, %middle.block2064 ]
%cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph = phi i32 [ %spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader ], [ %84, %middle.block2064 ]
br label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %middle.block2064, %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cnt.16.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %84, %middle.block2064 ], [ %spec.select244.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp104.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub103
%indvar.next2063 = add i32 %indvar2062, 1
br i1 %cmp104.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !20
for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2445, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %inc140.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2445 ]
%cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select244.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2445 ]
%add134.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cmp135.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add134.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %6
%inc137.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp135.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select244.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %inc137.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%inc140.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp123.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub122
br i1 %cmp123.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !27
for.body39.us.us.us.us.us.us1283.us.us: ; preds = %for.body39.lr.ph.us.us.us.us.us, %for.cond36.loopexit.us.us.us.us.us.us1295.us.us
%indvar2017 = phi i32 [ %indvar.next2018, %for.cond36.loopexit.us.us.us.us.us.us1295.us.us ], [ 0, %for.body39.lr.ph.us.us.us.us.us ]
%l.0481.us.us.us.us.us.us1284.us.us = phi i32 [ %add50.us.us.us.us.us.us1293.us.us, %for.cond36.loopexit.us.us.us.us.us.us1295.us.us ], [ %add35.us.us.us.us.us, %for.body39.lr.ph.us.us.us.us.us ]
%cnt.6480.us.us.us.us.us.us1285.us.us = phi i32 [ %cnt.8.lcssa.us.us.us.us.us.us1296.us.us, %for.cond36.loopexit.us.us.us.us.us.us1295.us.us ], [ %cnt.5.us.us.us.us.us, %for.body39.lr.ph.us.us.us.us.us ]
%85 = add i32 %67, %indvar2017
%add44.us.us.us.us.us.us1287.us.us = add nsw i32 %add29.us.us.us.us.us, %l.0481.us.us.us.us.us.us1284.us.us
%cmp45.us.us.us.us.us.us1288.us.us = icmp eq i32 %add44.us.us.us.us.us.us1287.us.us, %6
%narrow1850 = select i1 %cmp40, i1 %cmp45.us.us.us.us.us.us1288.us.us, i1 false
%spec.select239.us.us.us.us.us.us1290.us.us = zext i1 %narrow1850 to i32
%cnt.7.us.us.us.us.us.us1292.us.us = add nsw i32 %cnt.6480.us.us.us.us.us.us1285.us.us, %spec.select239.us.us.us.us.us.us1290.us.us
%add50.us.us.us.us.us.us1293.us.us = add nsw i32 %l.0481.us.us.us.us.us.us1284.us.us, 1
%cmp53.not365.us.us.us.us.us.us1294.us.us.not = icmp slt i32 %l.0481.us.us.us.us.us.us1284.us.us, %sub52
br i1 %cmp53.not365.us.us.us.us.us.us1294.us.us.not, label %for.body54.us.us.us.us.us.us892.us1060.us.us.us.us, label %for.cond36.loopexit.us.us.us.us.us.us1295.us.us
for.cond36.loopexit.us.us.us.us.us.us1295.us.us: ; preds = %for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us.us.us, %for.body39.us.us.us.us.us.us1283.us.us
%cnt.8.lcssa.us.us.us.us.us.us1296.us.us = phi i32 [ %cnt.7.us.us.us.us.us.us1292.us.us, %for.body39.us.us.us.us.us.us1283.us.us ], [ %cnt.10.lcssa.us.us.us.us.us.us905.us1073.us.us.us.us, %for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us.us.us ]
%cmp38.not.us.us.us.us.us.us1297.us.us.not = icmp slt i32 %l.0481.us.us.us.us.us.us1284.us.us, %sub37
%indvar.next2018 = add i32 %indvar2017, 1
br i1 %cmp38.not.us.us.us.us.us.us1297.us.us.not, label %for.body39.us.us.us.us.us.us1283.us.us, label %for.cond22.loopexit.us.us.us.us.us, !llvm.loop !13
for.body54.us.us.us.us.us.us892.us1060.us.us.us.us: ; preds = %for.body39.us.us.us.us.us.us1283.us.us, %for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us.us.us
%indvar2019 = phi i32 [ %indvar.next2020, %for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us.us.us ], [ 0, %for.body39.us.us.us.us.us.us1283.us.us ]
%m.0367.us.us.us.us.us.us893.us1061.us.us.us.us = phi i32 [ %add66.us.us.us.us.us.us902.us1070.us.us.us.us, %for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us.us.us ], [ %add50.us.us.us.us.us.us1293.us.us, %for.body39.us.us.us.us.us.us1283.us.us ]
%cnt.8366.us.us.us.us.us.us894.us1062.us.us.us.us = phi i32 [ %cnt.10.lcssa.us.us.us.us.us.us905.us1073.us.us.us.us, %for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us.us.us ], [ %cnt.7.us.us.us.us.us.us1292.us.us, %for.body39.us.us.us.us.us.us1283.us.us ]
%86 = add i32 %85, %indvar2019
%add60.us.us.us.us.us.us896.us1064.us.us.us.us = add nsw i32 %add44.us.us.us.us.us.us1287.us.us, %m.0367.us.us.us.us.us.us893.us1061.us.us.us.us
%cmp61.us.us.us.us.us.us897.us1065.us.us.us.us = icmp eq i32 %add60.us.us.us.us.us.us896.us1064.us.us.us.us, %6
%inc63.us.us.us.us.us.us898.us1066.us.us.us.us = zext i1 %cmp61.us.us.us.us.us.us897.us1065.us.us.us.us to i32
%spec.select240.us.us.us.us.us.us899.us1067.us.us.us.us = add nsw i32 %cnt.8366.us.us.us.us.us.us894.us1062.us.us.us.us, %inc63.us.us.us.us.us.us898.us1066.us.us.us.us
%add66.us.us.us.us.us.us902.us1070.us.us.us.us = add nsw i32 %m.0367.us.us.us.us.us.us893.us1061.us.us.us.us, 1
%cmp69.not318.us.us.us.us.us.us903.us1071.us.us.us.us.not = icmp slt i32 %m.0367.us.us.us.us.us.us893.us1061.us.us.us.us, %sub68
br i1 %cmp69.not318.us.us.us.us.us.us903.us1071.us.us.us.us.not, label %for.body70.us.us.us.us503.us.us.us.us.us.us.us.us.us1655, label %for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us.us.us
for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us.us.us: ; preds = %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us1660, %for.body54.us.us.us.us.us.us892.us1060.us.us.us.us
%cnt.10.lcssa.us.us.us.us.us.us905.us1073.us.us.us.us = phi i32 [ %spec.select240.us.us.us.us.us.us899.us1067.us.us.us.us, %for.body54.us.us.us.us.us.us892.us1060.us.us.us.us ], [ %cnt.12.lcssa.us.us.us.us516.us.us.us.us.us.us.us.us.us1661, %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us1660 ]
%cmp53.not.us.us.us.us.us.us906.us1074.us.us.us.us.not = icmp slt i32 %m.0367.us.us.us.us.us.us893.us1061.us.us.us.us, %sub52
%indvar.next2020 = add i32 %indvar2019, 1
br i1 %cmp53.not.us.us.us.us.us.us906.us1074.us.us.us.us.not, label %for.body54.us.us.us.us.us.us892.us1060.us.us.us.us, label %for.cond36.loopexit.us.us.us.us.us.us1295.us.us, !llvm.loop !14
for.body70.us.us.us.us503.us.us.us.us.us.us.us.us.us1655: ; preds = %for.body54.us.us.us.us.us.us892.us1060.us.us.us.us, %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us1660
%indvar2021 = phi i32 [ %indvar.next2022, %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us1660 ], [ 0, %for.body54.us.us.us.us.us.us892.us1060.us.us.us.us ]
%n.0320.us.us.us.us504.us.us.us.us.us.us.us.us.us1656 = phi i32 [ %add83.us.us.us.us513.us.us.us.us.us.us.us.us.us1658, %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us1660 ], [ %add66.us.us.us.us.us.us902.us1070.us.us.us.us, %for.body54.us.us.us.us.us.us892.us1060.us.us.us.us ]
%cnt.10319.us.us.us.us505.us.us.us.us.us.us.us.us.us1657 = phi i32 [ %cnt.12.lcssa.us.us.us.us516.us.us.us.us.us.us.us.us.us1661, %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us1660 ], [ %spec.select240.us.us.us.us.us.us899.us1067.us.us.us.us, %for.body54.us.us.us.us.us.us892.us1060.us.us.us.us ]
%87 = add i32 %86, %indvar2021
%add83.us.us.us.us513.us.us.us.us.us.us.us.us.us1658 = add nsw i32 %n.0320.us.us.us.us504.us.us.us.us.us.us.us.us.us1656, 1
%cmp86.not269.us.us.us.us514.us.us.us.us.us.us.us.us.us1659.not = icmp slt i32 %n.0320.us.us.us.us504.us.us.us.us.us.us.us.us.us1656, %sub85
br i1 %cmp86.not269.us.us.us.us514.us.us.us.us.us.us.us.us.us1659.not, label %for.body87.lr.ph.us.us.us.us518.us.us.us.us.us.us.us.us.us1663, label %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us1660
for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us1660: ; preds = %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body70.us.us.us.us503.us.us.us.us.us.us.us.us.us1655
%cnt.12.lcssa.us.us.us.us516.us.us.us.us.us.us.us.us.us1661 = phi i32 [ %cnt.10319.us.us.us.us505.us.us.us.us.us.us.us.us.us1657, %for.body70.us.us.us.us503.us.us.us.us.us.us.us.us.us1655 ], [ %cnt.14.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp69.not.us.us.us.us517.us.us.us.us.us.us.us.us.us1662.not = icmp slt i32 %n.0320.us.us.us.us504.us.us.us.us.us.us.us.us.us1656, %sub68
%indvar.next2022 = add i32 %indvar2021, 1
br i1 %cmp69.not.us.us.us.us517.us.us.us.us.us.us.us.us.us1662.not, label %for.body70.us.us.us.us503.us.us.us.us.us.us.us.us.us1655, label %for.cond51.loopexit.us.us.us.us.us.us904.us1072.us.us.us.us, !llvm.loop !15
for.body87.lr.ph.us.us.us.us518.us.us.us.us.us.us.us.us.us1663: ; preds = %for.body70.us.us.us.us503.us.us.us.us.us.us.us.us.us1655
%add112.us.us.us.us519.us.us.us.us.us.us.us.us.us1664 = add nsw i32 %add60.us.us.us.us.us.us896.us1064.us.us.us.us, %n.0320.us.us.us.us504.us.us.us.us.us.us.us.us.us1656
br label %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.lr.ph.us.us.us.us518.us.us.us.us.us.us.us.us.us1663
%indvar2023 = phi i32 [ %indvar.next2024, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body87.lr.ph.us.us.us.us518.us.us.us.us.us.us.us.us.us1663 ]
%o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add101.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %add83.us.us.us.us513.us.us.us.us.us.us.us.us.us1658, %for.body87.lr.ph.us.us.us.us518.us.us.us.us.us.us.us.us.us1663 ]
%cnt.12270.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.14.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.10319.us.us.us.us505.us.us.us.us.us.us.us.us.us1657, %for.body87.lr.ph.us.us.us.us518.us.us.us.us.us.us.us.us.us1663 ]
%88 = add i32 %87, %indvar2023
%add101.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp104.not248.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub103
br i1 %cmp104.not248.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cnt.14.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.12270.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.16.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp86.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub85
%indvar.next2024 = add i32 %indvar2023, 1
br i1 %cmp86.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond67.loopexit.us.us.us.us515.us.us.us.us.us.us.us.us.us1660, !llvm.loop !16
for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body87.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%add113.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add112.us.us.us.us519.us.us.us.us.us.us.us.us.us1664, %o.0271.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
br label %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%indvar2025 = phi i32 [ %indvar.next2026, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %add101.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cnt.14249.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.16.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.12270.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body105.lr.ph.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%89 = add i32 %88, %indvar2025
%90 = sub i32 %sub10, %89
%add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add113.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cmp115.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %6
%inc117.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp115.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.14249.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %inc117.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp123.not245.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub122
br i1 %cmp123.not245.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader, label %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader: ; preds = %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%min.iters.check2029 = icmp ult i32 %90, 8
br i1 %min.iters.check2029, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2444, label %vector.ph2030
vector.ph2030: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader
%n.vec2032 = and i32 %90, -8
%ind.end2033 = add i32 %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %n.vec2032
%.splatinsert2038 = insertelement <4 x i32> poison, i32 %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%.splat2039 = shufflevector <4 x i32> %.splatinsert2038, <4 x i32> poison, <4 x i32> zeroinitializer
%induction2040 = add <4 x i32> %.splat2039, <i32 0, i32 1, i32 2, i32 3>
%91 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%broadcast.splatinsert2047 = insertelement <4 x i32> poison, i32 %add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%broadcast.splat2048 = shufflevector <4 x i32> %broadcast.splatinsert2047, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body2036
vector.body2036: ; preds = %vector.body2036, %vector.ph2030
%index2037 = phi i32 [ 0, %vector.ph2030 ], [ %index.next2051, %vector.body2036 ]
%vec.ind2041 = phi <4 x i32> [ %induction2040, %vector.ph2030 ], [ %vec.ind.next2044, %vector.body2036 ]
%vec.phi2045 = phi <4 x i32> [ %91, %vector.ph2030 ], [ %98, %vector.body2036 ]
%vec.phi2046 = phi <4 x i32> [ zeroinitializer, %vector.ph2030 ], [ %99, %vector.body2036 ]
%step.add2042 = add <4 x i32> %vec.ind2041, <i32 4, i32 4, i32 4, i32 4>
%92 = add nsw <4 x i32> %broadcast.splat2048, %vec.ind2041
%93 = add nsw <4 x i32> %broadcast.splat2048, %step.add2042
%94 = icmp eq <4 x i32> %92, %broadcast.splat2050
%95 = icmp eq <4 x i32> %93, %broadcast.splat2050
%96 = zext <4 x i1> %94 to <4 x i32>
%97 = zext <4 x i1> %95 to <4 x i32>
%98 = add <4 x i32> %vec.phi2045, %96
%99 = add <4 x i32> %vec.phi2046, %97
%index.next2051 = add nuw i32 %index2037, 8
%vec.ind.next2044 = add <4 x i32> %vec.ind2041, <i32 8, i32 8, i32 8, i32 8>
%100 = icmp eq i32 %index.next2051, %n.vec2032
br i1 %100, label %middle.block2027, label %vector.body2036, !llvm.loop !28
middle.block2027: ; preds = %vector.body2036
%bin.rdx2052 = add <4 x i32> %99, %98
%101 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx2052)
%cmp.n2035 = icmp eq i32 %90, %n.vec2032
br i1 %cmp.n2035, label %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2444
for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2444: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader, %middle.block2027
%q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph = phi i32 [ %add120.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader ], [ %ind.end2033, %middle.block2027 ]
%cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph = phi i32 [ %spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader ], [ %101, %middle.block2027 ]
br label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %middle.block2027, %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cnt.16.lcssa.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select243.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %101, %middle.block2027 ], [ %spec.select244.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp104.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %p.0250.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub103
%indvar.next2026 = add i32 %indvar2025, 1
br i1 %cmp104.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body105.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond84.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !20
for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2444, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %inc140.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2444 ]
%cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select244.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph, %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader2444 ]
%add134.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add114.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cmp135.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add134.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %6
%inc137.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp135.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select244.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.16246.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %inc137.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%inc140.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp123.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %q.0247.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub122
br i1 %cmp123.not.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body124.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond102.loopexit.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !29
for.body12.lr.ph.split.us.us.split: ; preds = %for.body12.lr.ph.us
br i1 %cmp88, label %for.body12.us.us.us1669, label %for.body12.us.us
for.body12.us.us.us1669: ; preds = %for.body12.lr.ph.split.us.us.split, %for.cond9.loopexit.us.us.us1679
%indvar2091 = phi i32 [ %indvar.next2092, %for.cond9.loopexit.us.us.us1679 ], [ 0, %for.body12.lr.ph.split.us.us.split ]
%j.0820.us.us.us1670 = phi i32 [ %add21.us.us.us1677, %for.cond9.loopexit.us.us.us1679 ], [ %add.us, %for.body12.lr.ph.split.us.us.split ]
%cnt.2819.us.us.us1671 = phi i32 [ %cnt.4.lcssa.us.us.us1680, %for.cond9.loopexit.us.us.us1679 ], [ %cnt.1.us, %for.body12.lr.ph.split.us.us.split ]
%102 = add i32 %i.01172.us, %indvar2091
%103 = add i32 %i.01172.us, %indvar2091
%104 = add i32 %i.01172.us, %indvar2091
%add15.us.us.us1672 = add nuw nsw i32 %j.0820.us.us.us1670, %i.01172.us
%cmp16.us.us.us1673 = icmp eq i32 %add15.us.us.us1672, %6
%narrow.us.us.us1674 = select i1 %cmp13, i1 %cmp16.us.us.us1673, i1 false
%spec.select.us.us.us1675 = zext i1 %narrow.us.us.us1674 to i32
%cnt.3.us.us.us1676 = add nsw i32 %cnt.2819.us.us.us1671, %spec.select.us.us.us1675
%add21.us.us.us1677 = add i32 %j.0820.us.us.us1670, 1
%cmp24.not647.us.us.us1678.not = icmp slt i32 %j.0820.us.us.us1670, %sub23
br i1 %cmp24.not647.us.us.us1678.not, label %for.body25.lr.ph.us.us.us1682, label %for.cond9.loopexit.us.us.us1679
for.cond9.loopexit.us.us.us1679: ; preds = %for.cond22.loopexit.us.us.us1135.us.us, %for.cond22.loopexit.us.us.us1135.us.us.us1777, %for.cond22.loopexit.us.us.us1135.us.us.us, %for.body12.us.us.us1669
%cnt.4.lcssa.us.us.us1680 = phi i32 [ %cnt.3.us.us.us1676, %for.body12.us.us.us1669 ], [ %cnt.6.lcssa.us.us.us1136.us.us.us, %for.cond22.loopexit.us.us.us1135.us.us.us ], [ %cnt.6.lcssa.us.us.us1136.us.us.us1778, %for.cond22.loopexit.us.us.us1135.us.us.us1777 ], [ %cnt.6.lcssa.us.us.us1136.us.us, %for.cond22.loopexit.us.us.us1135.us.us ]
%exitcond1893.not = icmp eq i32 %add21.us.us.us1677, %sub23
%indvar.next2092 = add i32 %indvar2091, 1
br i1 %exitcond1893.not, label %for.cond.loopexit.us, label %for.body12.us.us.us1669, !llvm.loop !11
for.body25.lr.ph.us.us.us1682: ; preds = %for.body12.us.us.us1669
br i1 %cmp71, label %for.body25.us.us.us1123.us.us.us, label %for.body25.lr.ph.split.us.us.split.split.us.us.us.split
for.body25.us.us.us1123.us.us.us: ; preds = %for.body25.lr.ph.us.us.us1682, %for.cond22.loopexit.us.us.us1135.us.us.us
%indvar2093 = phi i32 [ %indvar.next2094, %for.cond22.loopexit.us.us.us1135.us.us.us ], [ 0, %for.body25.lr.ph.us.us.us1682 ]
%k.0649.us.us.us1124.us.us.us = phi i32 [ %add35.us.us.us1133.us.us.us, %for.cond22.loopexit.us.us.us1135.us.us.us ], [ %add21.us.us.us1677, %for.body25.lr.ph.us.us.us1682 ]
%cnt.4648.us.us.us1125.us.us.us = phi i32 [ %cnt.6.lcssa.us.us.us1136.us.us.us, %for.cond22.loopexit.us.us.us1135.us.us.us ], [ %cnt.3.us.us.us1676, %for.body25.lr.ph.us.us.us1682 ]
%105 = add i32 %104, %indvar2093
%add29.us.us.us1127.us.us.us = add nuw nsw i32 %add15.us.us.us1672, %k.0649.us.us.us1124.us.us.us
%cmp30.us.us.us1128.us.us.us = icmp eq i32 %add29.us.us.us1127.us.us.us, %6
%narrow1845 = select i1 %cmp26, i1 %cmp30.us.us.us1128.us.us.us, i1 false
%spec.select238.us.us.us1130.us.us.us = zext i1 %narrow1845 to i32
%cnt.5.us.us.us1132.us.us.us = add nsw i32 %cnt.4648.us.us.us1125.us.us.us, %spec.select238.us.us.us1130.us.us.us
%add35.us.us.us1133.us.us.us = add nuw nsw i32 %k.0649.us.us.us1124.us.us.us, 1
%cmp38.not479.us.us.us1134.us.us.us.not = icmp slt i32 %k.0649.us.us.us1124.us.us.us, %sub37
br i1 %cmp38.not479.us.us.us1134.us.us.us.not, label %for.body39.us.us.us792.us.us.us.us.us.us, label %for.cond22.loopexit.us.us.us1135.us.us.us
for.cond22.loopexit.us.us.us1135.us.us.us: ; preds = %for.cond36.loopexit.us.us.us804.us.us.us.us.us.us, %for.body25.us.us.us1123.us.us.us
%cnt.6.lcssa.us.us.us1136.us.us.us = phi i32 [ %cnt.5.us.us.us1132.us.us.us, %for.body25.us.us.us1123.us.us.us ], [ %cnt.8.lcssa.us.us.us805.us.us.us.us.us.us, %for.cond36.loopexit.us.us.us804.us.us.us.us.us.us ]
%cmp24.not.us.us.us1137.us.us.us.not = icmp slt i32 %k.0649.us.us.us1124.us.us.us, %sub23
%indvar.next2094 = add i32 %indvar2093, 1
br i1 %cmp24.not.us.us.us1137.us.us.us.not, label %for.body25.us.us.us1123.us.us.us, label %for.cond9.loopexit.us.us.us1679, !llvm.loop !12
for.body39.us.us.us792.us.us.us.us.us.us: ; preds = %for.body25.us.us.us1123.us.us.us, %for.cond36.loopexit.us.us.us804.us.us.us.us.us.us
%indvar2095 = phi i32 [ %indvar.next2096, %for.cond36.loopexit.us.us.us804.us.us.us.us.us.us ], [ 0, %for.body25.us.us.us1123.us.us.us ]
%l.0481.us.us.us793.us.us.us.us.us.us = phi i32 [ %add50.us.us.us802.us.us.us.us.us.us, %for.cond36.loopexit.us.us.us804.us.us.us.us.us.us ], [ %add35.us.us.us1133.us.us.us, %for.body25.us.us.us1123.us.us.us ]
%cnt.6480.us.us.us794.us.us.us.us.us.us = phi i32 [ %cnt.8.lcssa.us.us.us805.us.us.us.us.us.us, %for.cond36.loopexit.us.us.us804.us.us.us.us.us.us ], [ %cnt.5.us.us.us1132.us.us.us, %for.body25.us.us.us1123.us.us.us ]
%106 = add i32 %105, %indvar2095
%add44.us.us.us796.us.us.us.us.us.us = add nsw i32 %add29.us.us.us1127.us.us.us, %l.0481.us.us.us793.us.us.us.us.us.us
%cmp45.us.us.us797.us.us.us.us.us.us = icmp eq i32 %add44.us.us.us796.us.us.us.us.us.us, %6
%narrow1846 = select i1 %cmp40, i1 %cmp45.us.us.us797.us.us.us.us.us.us, i1 false
%spec.select239.us.us.us799.us.us.us.us.us.us = zext i1 %narrow1846 to i32
%cnt.7.us.us.us801.us.us.us.us.us.us = add nsw i32 %cnt.6480.us.us.us794.us.us.us.us.us.us, %spec.select239.us.us.us799.us.us.us.us.us.us
%add50.us.us.us802.us.us.us.us.us.us = add nsw i32 %l.0481.us.us.us793.us.us.us.us.us.us, 1
%cmp53.not365.us.us.us803.us.us.us.us.us.us.not = icmp slt i32 %l.0481.us.us.us793.us.us.us.us.us.us, %sub52
br i1 %cmp53.not365.us.us.us803.us.us.us.us.us.us.not, label %for.body54.us.us.us623.us.us.us.us.us.us.us.us.us, label %for.cond36.loopexit.us.us.us804.us.us.us.us.us.us
for.cond36.loopexit.us.us.us804.us.us.us.us.us.us: ; preds = %for.cond51.loopexit.us.us.us635.us.us.us.us.us.us.us.us.us, %for.body39.us.us.us792.us.us.us.us.us.us
%cnt.8.lcssa.us.us.us805.us.us.us.us.us.us = phi i32 [ %cnt.7.us.us.us801.us.us.us.us.us.us, %for.body39.us.us.us792.us.us.us.us.us.us ], [ %cnt.10.lcssa.us.us.us636.us.us.us.us.us.us.us.us.us, %for.cond51.loopexit.us.us.us635.us.us.us.us.us.us.us.us.us ]
%cmp38.not.us.us.us806.us.us.us.us.us.us.not = icmp slt i32 %l.0481.us.us.us793.us.us.us.us.us.us, %sub37
%indvar.next2096 = add i32 %indvar2095, 1
br i1 %cmp38.not.us.us.us806.us.us.us.us.us.us.not, label %for.body39.us.us.us792.us.us.us.us.us.us, label %for.cond22.loopexit.us.us.us1135.us.us.us, !llvm.loop !13
for.body54.us.us.us623.us.us.us.us.us.us.us.us.us: ; preds = %for.body39.us.us.us792.us.us.us.us.us.us, %for.cond51.loopexit.us.us.us635.us.us.us.us.us.us.us.us.us
%indvar2097 = phi i32 [ %indvar.next2098, %for.cond51.loopexit.us.us.us635.us.us.us.us.us.us.us.us.us ], [ 0, %for.body39.us.us.us792.us.us.us.us.us.us ]
%m.0367.us.us.us624.us.us.us.us.us.us.us.us.us = phi i32 [ %add66.us.us.us633.us.us.us.us.us.us.us.us.us, %for.cond51.loopexit.us.us.us635.us.us.us.us.us.us.us.us.us ], [ %add50.us.us.us802.us.us.us.us.us.us, %for.body39.us.us.us792.us.us.us.us.us.us ]
%cnt.8366.us.us.us625.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.10.lcssa.us.us.us636.us.us.us.us.us.us.us.us.us, %for.cond51.loopexit.us.us.us635.us.us.us.us.us.us.us.us.us ], [ %cnt.7.us.us.us801.us.us.us.us.us.us, %for.body39.us.us.us792.us.us.us.us.us.us ]
%107 = add i32 %106, %indvar2097
%add60.us.us.us627.us.us.us.us.us.us.us.us.us = add nsw i32 %add44.us.us.us796.us.us.us.us.us.us, %m.0367.us.us.us624.us.us.us.us.us.us.us.us.us
%cmp61.us.us.us628.us.us.us.us.us.us.us.us.us = icmp eq i32 %add60.us.us.us627.us.us.us.us.us.us.us.us.us, %6
%narrow1847 = select i1 %cmp55, i1 %cmp61.us.us.us628.us.us.us.us.us.us.us.us.us, i1 false
%spec.select240.us.us.us630.us.us.us.us.us.us.us.us.us = zext i1 %narrow1847 to i32
%cnt.9.us.us.us632.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.8366.us.us.us625.us.us.us.us.us.us.us.us.us, %spec.select240.us.us.us630.us.us.us.us.us.us.us.us.us
%add66.us.us.us633.us.us.us.us.us.us.us.us.us = add nsw i32 %m.0367.us.us.us624.us.us.us.us.us.us.us.us.us, 1
%cmp69.not318.us.us.us634.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %m.0367.us.us.us624.us.us.us.us.us.us.us.us.us, %sub68
br i1 %cmp69.not318.us.us.us634.us.us.us.us.us.us.us.us.us.not, label %for.body70.us.us.us455.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond51.loopexit.us.us.us635.us.us.us.us.us.us.us.us.us
for.cond51.loopexit.us.us.us635.us.us.us.us.us.us.us.us.us: ; preds = %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us.us.us, %for.body54.us.us.us623.us.us.us.us.us.us.us.us.us
%cnt.10.lcssa.us.us.us636.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.9.us.us.us632.us.us.us.us.us.us.us.us.us, %for.body54.us.us.us623.us.us.us.us.us.us.us.us.us ], [ %cnt.12.lcssa.us.us.us468.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp53.not.us.us.us637.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %m.0367.us.us.us624.us.us.us.us.us.us.us.us.us, %sub52
%indvar.next2098 = add i32 %indvar2097, 1
br i1 %cmp53.not.us.us.us637.us.us.us.us.us.us.us.us.us.not, label %for.body54.us.us.us623.us.us.us.us.us.us.us.us.us, label %for.cond36.loopexit.us.us.us804.us.us.us.us.us.us, !llvm.loop !14
for.body70.us.us.us455.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body54.us.us.us623.us.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us.us.us
%indvar2099 = phi i32 [ %indvar.next2100, %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body54.us.us.us623.us.us.us.us.us.us.us.us.us ]
%n.0320.us.us.us456.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add83.us.us.us465.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us.us.us ], [ %add66.us.us.us633.us.us.us.us.us.us.us.us.us, %for.body54.us.us.us623.us.us.us.us.us.us.us.us.us ]
%cnt.10319.us.us.us457.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.12.lcssa.us.us.us468.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.9.us.us.us632.us.us.us.us.us.us.us.us.us, %for.body54.us.us.us623.us.us.us.us.us.us.us.us.us ]
%108 = add i32 %107, %indvar2099
%add77.us.us.us459.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add60.us.us.us627.us.us.us.us.us.us.us.us.us, %n.0320.us.us.us456.us.us.us.us.us.us.us.us.us.us.us.us
%cmp78.us.us.us460.us.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add77.us.us.us459.us.us.us.us.us.us.us.us.us.us.us.us, %6
%inc80.us.us.us461.us.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp78.us.us.us460.us.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select241.us.us.us462.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.10319.us.us.us457.us.us.us.us.us.us.us.us.us.us.us.us, %inc80.us.us.us461.us.us.us.us.us.us.us.us.us.us.us.us
%add83.us.us.us465.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %n.0320.us.us.us456.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp86.not269.us.us.us466.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %n.0320.us.us.us456.us.us.us.us.us.us.us.us.us.us.us.us, %sub85
br i1 %cmp86.not269.us.us.us466.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us.us.us
for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body70.us.us.us455.us.us.us.us.us.us.us.us.us.us.us.us
%cnt.12.lcssa.us.us.us468.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select241.us.us.us462.us.us.us.us.us.us.us.us.us.us.us.us, %for.body70.us.us.us455.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.14.lcssa.us.us335.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp69.not.us.us.us469.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %n.0320.us.us.us456.us.us.us.us.us.us.us.us.us.us.us.us, %sub68
%indvar.next2100 = add i32 %indvar2099, 1
br i1 %cmp69.not.us.us.us469.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body70.us.us.us455.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond51.loopexit.us.us.us635.us.us.us.us.us.us.us.us.us, !llvm.loop !15
for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body70.us.us.us455.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%indvar2101 = phi i32 [ %indvar.next2102, %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body70.us.us.us455.us.us.us.us.us.us.us.us.us.us.us.us ]
%o.0271.us.us323.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add101.us.us332.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %add83.us.us.us465.us.us.us.us.us.us.us.us.us.us.us.us, %for.body70.us.us.us455.us.us.us.us.us.us.us.us.us.us.us.us ]
%cnt.12270.us.us324.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.14.lcssa.us.us335.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %spec.select241.us.us.us462.us.us.us.us.us.us.us.us.us.us.us.us, %for.body70.us.us.us455.us.us.us.us.us.us.us.us.us.us.us.us ]
%109 = add i32 %108, %indvar2101
%add95.us.us326.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add77.us.us.us459.us.us.us.us.us.us.us.us.us.us.us.us, %o.0271.us.us323.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cmp96.us.us327.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add95.us.us326.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %6
%inc98.us.us328.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp96.us.us327.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select242.us.us329.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.12270.us.us324.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %inc98.us.us328.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%add101.us.us332.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %o.0271.us.us323.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp104.not248.us.us333.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %o.0271.us.us323.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub103
br i1 %cmp104.not248.us.us333.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cnt.14.lcssa.us.us335.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select242.us.us329.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.16.lcssa.us.us278.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp86.not.us.us336.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %o.0271.us.us323.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub85
%indvar.next2102 = add i32 %indvar2101, 1
br i1 %cmp86.not.us.us336.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !16
for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%indvar2103 = phi i32 [ %indvar.next2104, %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%p.0250.us.us273.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add120.us.us275.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %add101.us.us332.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cnt.14249.us.us274.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.16.lcssa.us.us278.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %spec.select242.us.us329.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%110 = add i32 %109, %indvar2103
%111 = sub i32 %sub10, %110
%add120.us.us275.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %p.0250.us.us273.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp123.not245.us.us276.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %p.0250.us.us273.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub122
br i1 %cmp123.not245.us.us276.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %middle.block2105, %for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cnt.16.lcssa.us.us278.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.14249.us.us274.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %122, %middle.block2105 ], [ %spec.select244.us.us.us288.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp104.not.us.us279.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %p.0250.us.us273.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub103
%indvar.next2104 = add i32 %indvar2103, 1
br i1 %cmp104.not.us.us279.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !20
for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%add133.us.us281.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add95.us.us326.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %p.0250.us.us273.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%min.iters.check2107 = icmp ult i32 %111, 8
br i1 %min.iters.check2107, label %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader, label %vector.ph2108
vector.ph2108: ; preds = %for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%n.vec2110 = and i32 %111, -8
%ind.end2111 = add i32 %add120.us.us275.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %n.vec2110
%.splatinsert2116 = insertelement <4 x i32> poison, i32 %add120.us.us275.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%.splat2117 = shufflevector <4 x i32> %.splatinsert2116, <4 x i32> poison, <4 x i32> zeroinitializer
%induction2118 = add <4 x i32> %.splat2117, <i32 0, i32 1, i32 2, i32 3>
%112 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %cnt.14249.us.us274.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%broadcast.splatinsert2125 = insertelement <4 x i32> poison, i32 %add133.us.us281.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%broadcast.splat2126 = shufflevector <4 x i32> %broadcast.splatinsert2125, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body2114
vector.body2114: ; preds = %vector.body2114, %vector.ph2108
%index2115 = phi i32 [ 0, %vector.ph2108 ], [ %index.next2129, %vector.body2114 ]
%vec.ind2119 = phi <4 x i32> [ %induction2118, %vector.ph2108 ], [ %vec.ind.next2122, %vector.body2114 ]
%vec.phi2123 = phi <4 x i32> [ %112, %vector.ph2108 ], [ %119, %vector.body2114 ]
%vec.phi2124 = phi <4 x i32> [ zeroinitializer, %vector.ph2108 ], [ %120, %vector.body2114 ]
%step.add2120 = add <4 x i32> %vec.ind2119, <i32 4, i32 4, i32 4, i32 4>
%113 = add nsw <4 x i32> %broadcast.splat2126, %vec.ind2119
%114 = add nsw <4 x i32> %broadcast.splat2126, %step.add2120
%115 = icmp eq <4 x i32> %113, %broadcast.splat2128
%116 = icmp eq <4 x i32> %114, %broadcast.splat2128
%117 = zext <4 x i1> %115 to <4 x i32>
%118 = zext <4 x i1> %116 to <4 x i32>
%119 = add <4 x i32> %vec.phi2123, %117
%120 = add <4 x i32> %vec.phi2124, %118
%index.next2129 = add nuw i32 %index2115, 8
%vec.ind.next2122 = add <4 x i32> %vec.ind2119, <i32 8, i32 8, i32 8, i32 8>
%121 = icmp eq i32 %index.next2129, %n.vec2110
br i1 %121, label %middle.block2105, label %vector.body2114, !llvm.loop !30
middle.block2105: ; preds = %vector.body2114
%bin.rdx2130 = add <4 x i32> %120, %119
%122 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx2130)
%cmp.n2113 = icmp eq i32 %111, %n.vec2110
br i1 %cmp.n2113, label %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader
for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader: ; preds = %for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %middle.block2105
%q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph = phi i32 [ %add120.us.us275.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %ind.end2111, %middle.block2105 ]
%cnt.16246.us.us.us284.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph = phi i32 [ %cnt.14249.us.us274.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %122, %middle.block2105 ]
br label %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %inc140.us.us.us289.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader ]
%cnt.16246.us.us.us284.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select244.us.us.us288.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.16246.us.us.us284.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.ph, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.preheader ]
%add134.us.us.us285.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add133.us.us281.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%cmp135.us.us.us286.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add134.us.us.us285.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %6
%inc137.us.us.us287.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp135.us.us.us286.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select244.us.us.us288.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.16246.us.us.us284.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %inc137.us.us.us287.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us
%inc140.us.us.us289.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp123.not.us.us.us290.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, %sub122
br i1 %cmp123.not.us.us.us290.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !31
for.body25.lr.ph.split.us.us.split.split.us.us.us.split: ; preds = %for.body25.lr.ph.us.us.us1682
br i1 %cmp55, label %for.body25.us.us.us1123.us.us.us1765, label %for.body25.us.us.us1123.us.us
for.body25.us.us.us1123.us.us.us1765: ; preds = %for.body25.lr.ph.split.us.us.split.split.us.us.us.split, %for.cond22.loopexit.us.us.us1135.us.us.us1777
%indvar2132 = phi i32 [ %indvar.next2133, %for.cond22.loopexit.us.us.us1135.us.us.us1777 ], [ 0, %for.body25.lr.ph.split.us.us.split.split.us.us.us.split ]
%k.0649.us.us.us1124.us.us.us1766 = phi i32 [ %add35.us.us.us1133.us.us.us1775, %for.cond22.loopexit.us.us.us1135.us.us.us1777 ], [ %add21.us.us.us1677, %for.body25.lr.ph.split.us.us.split.split.us.us.us.split ]
%cnt.4648.us.us.us1125.us.us.us1767 = phi i32 [ %cnt.6.lcssa.us.us.us1136.us.us.us1778, %for.cond22.loopexit.us.us.us1135.us.us.us1777 ], [ %cnt.3.us.us.us1676, %for.body25.lr.ph.split.us.us.split.split.us.us.us.split ]
%123 = add i32 %103, %indvar2132
%add29.us.us.us1127.us.us.us1769 = add nuw nsw i32 %add15.us.us.us1672, %k.0649.us.us.us1124.us.us.us1766
%cmp30.us.us.us1128.us.us.us1770 = icmp eq i32 %add29.us.us.us1127.us.us.us1769, %6
%narrow1843 = select i1 %cmp26, i1 %cmp30.us.us.us1128.us.us.us1770, i1 false
%spec.select238.us.us.us1130.us.us.us1772 = zext i1 %narrow1843 to i32
%cnt.5.us.us.us1132.us.us.us1774 = add nsw i32 %cnt.4648.us.us.us1125.us.us.us1767, %spec.select238.us.us.us1130.us.us.us1772
%add35.us.us.us1133.us.us.us1775 = add nuw nsw i32 %k.0649.us.us.us1124.us.us.us1766, 1
%cmp38.not479.us.us.us1134.us.us.us1776.not = icmp slt i32 %k.0649.us.us.us1124.us.us.us1766, %sub37
br i1 %cmp38.not479.us.us.us1134.us.us.us1776.not, label %for.body39.us.us.us792.us.us.us1306.us.us.us, label %for.cond22.loopexit.us.us.us1135.us.us.us1777
for.cond22.loopexit.us.us.us1135.us.us.us1777: ; preds = %for.cond36.loopexit.us.us.us804.us.us.us1318.us.us.us, %for.body25.us.us.us1123.us.us.us1765
%cnt.6.lcssa.us.us.us1136.us.us.us1778 = phi i32 [ %cnt.5.us.us.us1132.us.us.us1774, %for.body25.us.us.us1123.us.us.us1765 ], [ %cnt.8.lcssa.us.us.us805.us.us.us1319.us.us.us, %for.cond36.loopexit.us.us.us804.us.us.us1318.us.us.us ]
%cmp24.not.us.us.us1137.us.us.us1779.not = icmp slt i32 %k.0649.us.us.us1124.us.us.us1766, %sub23
%indvar.next2133 = add i32 %indvar2132, 1
br i1 %cmp24.not.us.us.us1137.us.us.us1779.not, label %for.body25.us.us.us1123.us.us.us1765, label %for.cond9.loopexit.us.us.us1679, !llvm.loop !12
for.body39.us.us.us792.us.us.us1306.us.us.us: ; preds = %for.body25.us.us.us1123.us.us.us1765, %for.cond36.loopexit.us.us.us804.us.us.us1318.us.us.us
%indvar2134 = phi i32 [ %indvar.next2135, %for.cond36.loopexit.us.us.us804.us.us.us1318.us.us.us ], [ 0, %for.body25.us.us.us1123.us.us.us1765 ]
%l.0481.us.us.us793.us.us.us1307.us.us.us = phi i32 [ %add50.us.us.us802.us.us.us1316.us.us.us, %for.cond36.loopexit.us.us.us804.us.us.us1318.us.us.us ], [ %add35.us.us.us1133.us.us.us1775, %for.body25.us.us.us1123.us.us.us1765 ]
%cnt.6480.us.us.us794.us.us.us1308.us.us.us = phi i32 [ %cnt.8.lcssa.us.us.us805.us.us.us1319.us.us.us, %for.cond36.loopexit.us.us.us804.us.us.us1318.us.us.us ], [ %cnt.5.us.us.us1132.us.us.us1774, %for.body25.us.us.us1123.us.us.us1765 ]
%124 = add i32 %123, %indvar2134
%add44.us.us.us796.us.us.us1310.us.us.us = add nsw i32 %add29.us.us.us1127.us.us.us1769, %l.0481.us.us.us793.us.us.us1307.us.us.us
%cmp45.us.us.us797.us.us.us1311.us.us.us = icmp eq i32 %add44.us.us.us796.us.us.us1310.us.us.us, %6
%narrow1844 = select i1 %cmp40, i1 %cmp45.us.us.us797.us.us.us1311.us.us.us, i1 false
%spec.select239.us.us.us799.us.us.us1313.us.us.us = zext i1 %narrow1844 to i32
%cnt.7.us.us.us801.us.us.us1315.us.us.us = add nsw i32 %cnt.6480.us.us.us794.us.us.us1308.us.us.us, %spec.select239.us.us.us799.us.us.us1313.us.us.us
%add50.us.us.us802.us.us.us1316.us.us.us = add nsw i32 %l.0481.us.us.us793.us.us.us1307.us.us.us, 1
%cmp53.not365.us.us.us803.us.us.us1317.us.us.us.not = icmp slt i32 %l.0481.us.us.us793.us.us.us1307.us.us.us, %sub52
br i1 %cmp53.not365.us.us.us803.us.us.us1317.us.us.us.not, label %for.body54.us.us.us623.us674.us.us.us.us.us.us.us.us, label %for.cond36.loopexit.us.us.us804.us.us.us1318.us.us.us
for.cond36.loopexit.us.us.us804.us.us.us1318.us.us.us: ; preds = %for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us.us.us.us, %for.body39.us.us.us792.us.us.us1306.us.us.us
%cnt.8.lcssa.us.us.us805.us.us.us1319.us.us.us = phi i32 [ %cnt.7.us.us.us801.us.us.us1315.us.us.us, %for.body39.us.us.us792.us.us.us1306.us.us.us ], [ %cnt.10.lcssa.us.us.us636.us687.us.us.us.us.us.us.us.us, %for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us.us.us.us ]
%cmp38.not.us.us.us806.us.us.us1320.us.us.us.not = icmp slt i32 %l.0481.us.us.us793.us.us.us1307.us.us.us, %sub37
%indvar.next2135 = add i32 %indvar2134, 1
br i1 %cmp38.not.us.us.us806.us.us.us1320.us.us.us.not, label %for.body39.us.us.us792.us.us.us1306.us.us.us, label %for.cond22.loopexit.us.us.us1135.us.us.us1777, !llvm.loop !13
for.body54.us.us.us623.us674.us.us.us.us.us.us.us.us: ; preds = %for.body39.us.us.us792.us.us.us1306.us.us.us, %for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us.us.us.us
%indvar2136 = phi i32 [ %indvar.next2137, %for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us.us.us.us ], [ 0, %for.body39.us.us.us792.us.us.us1306.us.us.us ]
%m.0367.us.us.us624.us675.us.us.us.us.us.us.us.us = phi i32 [ %add66.us.us.us633.us684.us.us.us.us.us.us.us.us, %for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us.us.us.us ], [ %add50.us.us.us802.us.us.us1316.us.us.us, %for.body39.us.us.us792.us.us.us1306.us.us.us ]
%cnt.8366.us.us.us625.us676.us.us.us.us.us.us.us.us = phi i32 [ %cnt.10.lcssa.us.us.us636.us687.us.us.us.us.us.us.us.us, %for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us.us.us.us ], [ %cnt.7.us.us.us801.us.us.us1315.us.us.us, %for.body39.us.us.us792.us.us.us1306.us.us.us ]
%125 = add i32 %124, %indvar2136
%add60.us.us.us627.us678.us.us.us.us.us.us.us.us = add nsw i32 %add44.us.us.us796.us.us.us1310.us.us.us, %m.0367.us.us.us624.us675.us.us.us.us.us.us.us.us
%cmp61.us.us.us628.us679.us.us.us.us.us.us.us.us = icmp eq i32 %add60.us.us.us627.us678.us.us.us.us.us.us.us.us, %6
%inc63.us.us.us629.us680.us.us.us.us.us.us.us.us = zext i1 %cmp61.us.us.us628.us679.us.us.us.us.us.us.us.us to i32
%spec.select240.us.us.us630.us681.us.us.us.us.us.us.us.us = add nsw i32 %cnt.8366.us.us.us625.us676.us.us.us.us.us.us.us.us, %inc63.us.us.us629.us680.us.us.us.us.us.us.us.us
%add66.us.us.us633.us684.us.us.us.us.us.us.us.us = add nsw i32 %m.0367.us.us.us624.us675.us.us.us.us.us.us.us.us, 1
%cmp69.not318.us.us.us634.us685.us.us.us.us.us.us.us.us.not = icmp slt i32 %m.0367.us.us.us624.us675.us.us.us.us.us.us.us.us, %sub68
br i1 %cmp69.not318.us.us.us634.us685.us.us.us.us.us.us.us.us.not, label %for.body70.us.us.us455.us.us.us.us.us.us.us.us.us.us1710.us, label %for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us.us.us.us
for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us.us.us.us: ; preds = %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us1715.us, %for.body54.us.us.us623.us674.us.us.us.us.us.us.us.us
%cnt.10.lcssa.us.us.us636.us687.us.us.us.us.us.us.us.us = phi i32 [ %spec.select240.us.us.us630.us681.us.us.us.us.us.us.us.us, %for.body54.us.us.us623.us674.us.us.us.us.us.us.us.us ], [ %cnt.12.lcssa.us.us.us468.us.us.us.us.us.us.us.us.us.us1716.us, %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us1715.us ]
%cmp53.not.us.us.us637.us688.us.us.us.us.us.us.us.us.not = icmp slt i32 %m.0367.us.us.us624.us675.us.us.us.us.us.us.us.us, %sub52
%indvar.next2137 = add i32 %indvar2136, 1
br i1 %cmp53.not.us.us.us637.us688.us.us.us.us.us.us.us.us.not, label %for.body54.us.us.us623.us674.us.us.us.us.us.us.us.us, label %for.cond36.loopexit.us.us.us804.us.us.us1318.us.us.us, !llvm.loop !14
for.body70.us.us.us455.us.us.us.us.us.us.us.us.us.us1710.us: ; preds = %for.body54.us.us.us623.us674.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us1715.us
%indvar2138 = phi i32 [ %indvar.next2139, %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us1715.us ], [ 0, %for.body54.us.us.us623.us674.us.us.us.us.us.us.us.us ]
%n.0320.us.us.us456.us.us.us.us.us.us.us.us.us.us1711.us = phi i32 [ %add83.us.us.us465.us.us.us.us.us.us.us.us.us.us1713.us, %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us1715.us ], [ %add66.us.us.us633.us684.us.us.us.us.us.us.us.us, %for.body54.us.us.us623.us674.us.us.us.us.us.us.us.us ]
%cnt.10319.us.us.us457.us.us.us.us.us.us.us.us.us.us1712.us = phi i32 [ %cnt.12.lcssa.us.us.us468.us.us.us.us.us.us.us.us.us.us1716.us, %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us1715.us ], [ %spec.select240.us.us.us630.us681.us.us.us.us.us.us.us.us, %for.body54.us.us.us623.us674.us.us.us.us.us.us.us.us ]
%126 = add i32 %125, %indvar2138
%add83.us.us.us465.us.us.us.us.us.us.us.us.us.us1713.us = add nsw i32 %n.0320.us.us.us456.us.us.us.us.us.us.us.us.us.us1711.us, 1
%cmp86.not269.us.us.us466.us.us.us.us.us.us.us.us.us.us1714.us.not = icmp slt i32 %n.0320.us.us.us456.us.us.us.us.us.us.us.us.us.us1711.us, %sub85
br i1 %cmp86.not269.us.us.us466.us.us.us.us.us.us.us.us.us.us1714.us.not, label %for.body87.lr.ph.us.us.us470.us.us.us.us.us.us.us.us.us.us1718.us, label %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us1715.us
for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us1715.us: ; preds = %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us1730.us, %for.body70.us.us.us455.us.us.us.us.us.us.us.us.us.us1710.us
%cnt.12.lcssa.us.us.us468.us.us.us.us.us.us.us.us.us.us1716.us = phi i32 [ %cnt.10319.us.us.us457.us.us.us.us.us.us.us.us.us.us1712.us, %for.body70.us.us.us455.us.us.us.us.us.us.us.us.us.us1710.us ], [ %cnt.14.lcssa.us.us335.us.us.us.us.us.us.us.us.us.us.us.us.us1731.us, %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us1730.us ]
%cmp69.not.us.us.us469.us.us.us.us.us.us.us.us.us.us1717.us.not = icmp slt i32 %n.0320.us.us.us456.us.us.us.us.us.us.us.us.us.us1711.us, %sub68
%indvar.next2139 = add i32 %indvar2138, 1
br i1 %cmp69.not.us.us.us469.us.us.us.us.us.us.us.us.us.us1717.us.not, label %for.body70.us.us.us455.us.us.us.us.us.us.us.us.us.us1710.us, label %for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us.us.us.us, !llvm.loop !15
for.body87.lr.ph.us.us.us470.us.us.us.us.us.us.us.us.us.us1718.us: ; preds = %for.body70.us.us.us455.us.us.us.us.us.us.us.us.us.us1710.us
%add94.us.us.us471.us.us.us.us.us.us.us.us.us.us1719.us = add nsw i32 %add60.us.us.us627.us678.us.us.us.us.us.us.us.us, %n.0320.us.us.us456.us.us.us.us.us.us.us.us.us.us1711.us
br label %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us1721.us
for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us1721.us: ; preds = %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us1730.us, %for.body87.lr.ph.us.us.us470.us.us.us.us.us.us.us.us.us.us1718.us
%indvar2140 = phi i32 [ %indvar.next2141, %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us1730.us ], [ 0, %for.body87.lr.ph.us.us.us470.us.us.us.us.us.us.us.us.us.us1718.us ]
%o.0271.us.us323.us.us.us.us.us.us.us.us.us.us.us.us.us1722.us = phi i32 [ %add101.us.us332.us.us.us.us.us.us.us.us.us.us.us.us.us1728.us, %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us1730.us ], [ %add83.us.us.us465.us.us.us.us.us.us.us.us.us.us1713.us, %for.body87.lr.ph.us.us.us470.us.us.us.us.us.us.us.us.us.us1718.us ]
%cnt.12270.us.us324.us.us.us.us.us.us.us.us.us.us.us.us.us1723.us = phi i32 [ %cnt.14.lcssa.us.us335.us.us.us.us.us.us.us.us.us.us.us.us.us1731.us, %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us1730.us ], [ %cnt.10319.us.us.us457.us.us.us.us.us.us.us.us.us.us1712.us, %for.body87.lr.ph.us.us.us470.us.us.us.us.us.us.us.us.us.us1718.us ]
%127 = add i32 %126, %indvar2140
%add95.us.us326.us.us.us.us.us.us.us.us.us.us.us.us.us1724.us = add nsw i32 %add94.us.us.us471.us.us.us.us.us.us.us.us.us.us1719.us, %o.0271.us.us323.us.us.us.us.us.us.us.us.us.us.us.us.us1722.us
%cmp96.us.us327.us.us.us.us.us.us.us.us.us.us.us.us.us1725.us = icmp eq i32 %add95.us.us326.us.us.us.us.us.us.us.us.us.us.us.us.us1724.us, %6
%inc98.us.us328.us.us.us.us.us.us.us.us.us.us.us.us.us1726.us = zext i1 %cmp96.us.us327.us.us.us.us.us.us.us.us.us.us.us.us.us1725.us to i32
%spec.select242.us.us329.us.us.us.us.us.us.us.us.us.us.us.us.us1727.us = add nsw i32 %cnt.12270.us.us324.us.us.us.us.us.us.us.us.us.us.us.us.us1723.us, %inc98.us.us328.us.us.us.us.us.us.us.us.us.us.us.us.us1726.us
%add101.us.us332.us.us.us.us.us.us.us.us.us.us.us.us.us1728.us = add nsw i32 %o.0271.us.us323.us.us.us.us.us.us.us.us.us.us.us.us.us1722.us, 1
%cmp104.not248.us.us333.us.us.us.us.us.us.us.us.us.us.us.us.us1729.us.not = icmp slt i32 %o.0271.us.us323.us.us.us.us.us.us.us.us.us.us.us.us.us1722.us, %sub103
br i1 %cmp104.not248.us.us333.us.us.us.us.us.us.us.us.us.us.us.us.us1729.us.not, label %for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us.us.us1735.us, label %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us1730.us
for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us1730.us: ; preds = %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us1740.us, %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us1721.us
%cnt.14.lcssa.us.us335.us.us.us.us.us.us.us.us.us.us.us.us.us1731.us = phi i32 [ %spec.select242.us.us329.us.us.us.us.us.us.us.us.us.us.us.us.us1727.us, %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us1721.us ], [ %cnt.16.lcssa.us.us278.us.us.us.us.us.us.us.us.us.us.us.us.us.us1741.us, %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us1740.us ]
%cmp86.not.us.us336.us.us.us.us.us.us.us.us.us.us.us.us.us1732.us.not = icmp slt i32 %o.0271.us.us323.us.us.us.us.us.us.us.us.us.us.us.us.us1722.us, %sub85
%indvar.next2141 = add i32 %indvar2140, 1
br i1 %cmp86.not.us.us336.us.us.us.us.us.us.us.us.us.us.us.us.us1732.us.not, label %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us1721.us, label %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us.us.us1715.us, !llvm.loop !16
for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us.us.us1735.us: ; preds = %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us1721.us, %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us1740.us
%indvar2142 = phi i32 [ %indvar.next2143, %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us1740.us ], [ 0, %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us1721.us ]
%p.0250.us.us273.us.us.us.us.us.us.us.us.us.us.us.us.us.us1736.us = phi i32 [ %add120.us.us275.us.us.us.us.us.us.us.us.us.us.us.us.us.us1738.us, %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us1740.us ], [ %add101.us.us332.us.us.us.us.us.us.us.us.us.us.us.us.us1728.us, %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us1721.us ]
%cnt.14249.us.us274.us.us.us.us.us.us.us.us.us.us.us.us.us.us1737.us = phi i32 [ %cnt.16.lcssa.us.us278.us.us.us.us.us.us.us.us.us.us.us.us.us.us1741.us, %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us1740.us ], [ %spec.select242.us.us329.us.us.us.us.us.us.us.us.us.us.us.us.us1727.us, %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us.us.us1721.us ]
%128 = add i32 %127, %indvar2142
%129 = sub i32 %sub10, %128
%add120.us.us275.us.us.us.us.us.us.us.us.us.us.us.us.us.us1738.us = add nsw i32 %p.0250.us.us273.us.us.us.us.us.us.us.us.us.us.us.us.us.us1736.us, 1
%cmp123.not245.us.us276.us.us.us.us.us.us.us.us.us.us.us.us.us.us1739.us.not = icmp slt i32 %p.0250.us.us273.us.us.us.us.us.us.us.us.us.us.us.us.us.us1736.us, %sub122
br i1 %cmp123.not245.us.us276.us.us.us.us.us.us.us.us.us.us.us.us.us.us1739.us.not, label %for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us.us.us1743.us, label %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us1740.us
for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us1740.us: ; preds = %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us1745.us, %middle.block2144, %for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us.us.us1735.us
%cnt.16.lcssa.us.us278.us.us.us.us.us.us.us.us.us.us.us.us.us.us1741.us = phi i32 [ %cnt.14249.us.us274.us.us.us.us.us.us.us.us.us.us.us.us.us.us1737.us, %for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us.us.us1735.us ], [ %140, %middle.block2144 ], [ %spec.select244.us.us.us288.us.us.us.us.us.us.us.us.us.us.us.us.us.us1751.us, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us1745.us ]
%cmp104.not.us.us279.us.us.us.us.us.us.us.us.us.us.us.us.us.us1742.us.not = icmp slt i32 %p.0250.us.us273.us.us.us.us.us.us.us.us.us.us.us.us.us.us1736.us, %sub103
%indvar.next2143 = add i32 %indvar2142, 1
br i1 %cmp104.not.us.us279.us.us.us.us.us.us.us.us.us.us.us.us.us.us1742.us.not, label %for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us.us.us1735.us, label %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us.us.us1730.us, !llvm.loop !20
for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us.us.us1743.us: ; preds = %for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us.us.us1735.us
%add133.us.us281.us.us.us.us.us.us.us.us.us.us.us.us.us.us1744.us = add nsw i32 %add95.us.us326.us.us.us.us.us.us.us.us.us.us.us.us.us1724.us, %p.0250.us.us273.us.us.us.us.us.us.us.us.us.us.us.us.us.us1736.us
%min.iters.check2146 = icmp ult i32 %129, 8
br i1 %min.iters.check2146, label %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us1745.us.preheader, label %vector.ph2147
vector.ph2147: ; preds = %for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us.us.us1743.us
%n.vec2149 = and i32 %129, -8
%ind.end2150 = add i32 %add120.us.us275.us.us.us.us.us.us.us.us.us.us.us.us.us.us1738.us, %n.vec2149
%.splatinsert2155 = insertelement <4 x i32> poison, i32 %add120.us.us275.us.us.us.us.us.us.us.us.us.us.us.us.us.us1738.us, i64 0
%.splat2156 = shufflevector <4 x i32> %.splatinsert2155, <4 x i32> poison, <4 x i32> zeroinitializer
%induction2157 = add <4 x i32> %.splat2156, <i32 0, i32 1, i32 2, i32 3>
%130 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %cnt.14249.us.us274.us.us.us.us.us.us.us.us.us.us.us.us.us.us1737.us, i64 0
%broadcast.splatinsert2164 = insertelement <4 x i32> poison, i32 %add133.us.us281.us.us.us.us.us.us.us.us.us.us.us.us.us.us1744.us, i64 0
%broadcast.splat2165 = shufflevector <4 x i32> %broadcast.splatinsert2164, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body2153
vector.body2153: ; preds = %vector.body2153, %vector.ph2147
%index2154 = phi i32 [ 0, %vector.ph2147 ], [ %index.next2168, %vector.body2153 ]
%vec.ind2158 = phi <4 x i32> [ %induction2157, %vector.ph2147 ], [ %vec.ind.next2161, %vector.body2153 ]
%vec.phi2162 = phi <4 x i32> [ %130, %vector.ph2147 ], [ %137, %vector.body2153 ]
%vec.phi2163 = phi <4 x i32> [ zeroinitializer, %vector.ph2147 ], [ %138, %vector.body2153 ]
%step.add2159 = add <4 x i32> %vec.ind2158, <i32 4, i32 4, i32 4, i32 4>
%131 = add nsw <4 x i32> %broadcast.splat2165, %vec.ind2158
%132 = add nsw <4 x i32> %broadcast.splat2165, %step.add2159
%133 = icmp eq <4 x i32> %131, %broadcast.splat2167
%134 = icmp eq <4 x i32> %132, %broadcast.splat2167
%135 = zext <4 x i1> %133 to <4 x i32>
%136 = zext <4 x i1> %134 to <4 x i32>
%137 = add <4 x i32> %vec.phi2162, %135
%138 = add <4 x i32> %vec.phi2163, %136
%index.next2168 = add nuw i32 %index2154, 8
%vec.ind.next2161 = add <4 x i32> %vec.ind2158, <i32 8, i32 8, i32 8, i32 8>
%139 = icmp eq i32 %index.next2168, %n.vec2149
br i1 %139, label %middle.block2144, label %vector.body2153, !llvm.loop !32
middle.block2144: ; preds = %vector.body2153
%bin.rdx2169 = add <4 x i32> %138, %137
%140 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx2169)
%cmp.n2152 = icmp eq i32 %129, %n.vec2149
br i1 %cmp.n2152, label %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us1740.us, label %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us1745.us.preheader
for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us1745.us.preheader: ; preds = %for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us.us.us1743.us, %middle.block2144
%q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us.us.us1746.us.ph = phi i32 [ %add120.us.us275.us.us.us.us.us.us.us.us.us.us.us.us.us.us1738.us, %for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us.us.us1743.us ], [ %ind.end2150, %middle.block2144 ]
%cnt.16246.us.us.us284.us.us.us.us.us.us.us.us.us.us.us.us.us.us1747.us.ph = phi i32 [ %cnt.14249.us.us274.us.us.us.us.us.us.us.us.us.us.us.us.us.us1737.us, %for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us.us.us1743.us ], [ %140, %middle.block2144 ]
br label %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us1745.us
for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us1745.us: ; preds = %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us1745.us.preheader, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us1745.us
%q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us.us.us1746.us = phi i32 [ %inc140.us.us.us289.us.us.us.us.us.us.us.us.us.us.us.us.us.us1752.us, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us1745.us ], [ %q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us.us.us1746.us.ph, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us1745.us.preheader ]
%cnt.16246.us.us.us284.us.us.us.us.us.us.us.us.us.us.us.us.us.us1747.us = phi i32 [ %spec.select244.us.us.us288.us.us.us.us.us.us.us.us.us.us.us.us.us.us1751.us, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us1745.us ], [ %cnt.16246.us.us.us284.us.us.us.us.us.us.us.us.us.us.us.us.us.us1747.us.ph, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us1745.us.preheader ]
%add134.us.us.us285.us.us.us.us.us.us.us.us.us.us.us.us.us.us1748.us = add nsw i32 %add133.us.us281.us.us.us.us.us.us.us.us.us.us.us.us.us.us1744.us, %q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us.us.us1746.us
%cmp135.us.us.us286.us.us.us.us.us.us.us.us.us.us.us.us.us.us1749.us = icmp eq i32 %add134.us.us.us285.us.us.us.us.us.us.us.us.us.us.us.us.us.us1748.us, %6
%inc137.us.us.us287.us.us.us.us.us.us.us.us.us.us.us.us.us.us1750.us = zext i1 %cmp135.us.us.us286.us.us.us.us.us.us.us.us.us.us.us.us.us.us1749.us to i32
%spec.select244.us.us.us288.us.us.us.us.us.us.us.us.us.us.us.us.us.us1751.us = add nsw i32 %cnt.16246.us.us.us284.us.us.us.us.us.us.us.us.us.us.us.us.us.us1747.us, %inc137.us.us.us287.us.us.us.us.us.us.us.us.us.us.us.us.us.us1750.us
%inc140.us.us.us289.us.us.us.us.us.us.us.us.us.us.us.us.us.us1752.us = add nsw i32 %q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us.us.us1746.us, 1
%cmp123.not.us.us.us290.us.us.us.us.us.us.us.us.us.us.us.us.us.us1753.us.not = icmp slt i32 %q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us.us.us1746.us, %sub122
br i1 %cmp123.not.us.us.us290.us.us.us.us.us.us.us.us.us.us.us.us.us.us1753.us.not, label %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.us.us1745.us, label %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us.us.us1740.us, !llvm.loop !33
for.body25.us.us.us1123.us.us: ; preds = %for.body25.lr.ph.split.us.us.split.split.us.us.us.split, %for.cond22.loopexit.us.us.us1135.us.us
%indvar2171 = phi i32 [ %indvar.next2172, %for.cond22.loopexit.us.us.us1135.us.us ], [ 0, %for.body25.lr.ph.split.us.us.split.split.us.us.us.split ]
%k.0649.us.us.us1124.us.us = phi i32 [ %add35.us.us.us1133.us.us, %for.cond22.loopexit.us.us.us1135.us.us ], [ %add21.us.us.us1677, %for.body25.lr.ph.split.us.us.split.split.us.us.us.split ]
%cnt.4648.us.us.us1125.us.us = phi i32 [ %cnt.6.lcssa.us.us.us1136.us.us, %for.cond22.loopexit.us.us.us1135.us.us ], [ %cnt.3.us.us.us1676, %for.body25.lr.ph.split.us.us.split.split.us.us.us.split ]
%141 = add i32 %102, %indvar2171
%add29.us.us.us1127.us.us = add nuw nsw i32 %add15.us.us.us1672, %k.0649.us.us.us1124.us.us
%cmp30.us.us.us1128.us.us = icmp eq i32 %add29.us.us.us1127.us.us, %6
%narrow1841 = select i1 %cmp26, i1 %cmp30.us.us.us1128.us.us, i1 false
%spec.select238.us.us.us1130.us.us = zext i1 %narrow1841 to i32
%cnt.5.us.us.us1132.us.us = add nsw i32 %cnt.4648.us.us.us1125.us.us, %spec.select238.us.us.us1130.us.us
%add35.us.us.us1133.us.us = add nuw nsw i32 %k.0649.us.us.us1124.us.us, 1
%cmp38.not479.us.us.us1134.us.us.not = icmp slt i32 %k.0649.us.us.us1124.us.us, %sub37
br i1 %cmp38.not479.us.us.us1134.us.us.not, label %for.body39.us.us.us792.us.us.us1306.us1689, label %for.cond22.loopexit.us.us.us1135.us.us
for.cond22.loopexit.us.us.us1135.us.us: ; preds = %for.cond36.loopexit.us.us.us804.us.us.us1318.us1701, %for.body25.us.us.us1123.us.us
%cnt.6.lcssa.us.us.us1136.us.us = phi i32 [ %cnt.5.us.us.us1132.us.us, %for.body25.us.us.us1123.us.us ], [ %cnt.8.lcssa.us.us.us805.us.us.us1319.us1702, %for.cond36.loopexit.us.us.us804.us.us.us1318.us1701 ]
%cmp24.not.us.us.us1137.us.us.not = icmp slt i32 %k.0649.us.us.us1124.us.us, %sub23
%indvar.next2172 = add i32 %indvar2171, 1
br i1 %cmp24.not.us.us.us1137.us.us.not, label %for.body25.us.us.us1123.us.us, label %for.cond9.loopexit.us.us.us1679, !llvm.loop !12
for.body39.us.us.us792.us.us.us1306.us1689: ; preds = %for.body25.us.us.us1123.us.us, %for.cond36.loopexit.us.us.us804.us.us.us1318.us1701
%indvar2173 = phi i32 [ %indvar.next2174, %for.cond36.loopexit.us.us.us804.us.us.us1318.us1701 ], [ 0, %for.body25.us.us.us1123.us.us ]
%l.0481.us.us.us793.us.us.us1307.us1690 = phi i32 [ %add50.us.us.us802.us.us.us1316.us1699, %for.cond36.loopexit.us.us.us804.us.us.us1318.us1701 ], [ %add35.us.us.us1133.us.us, %for.body25.us.us.us1123.us.us ]
%cnt.6480.us.us.us794.us.us.us1308.us1691 = phi i32 [ %cnt.8.lcssa.us.us.us805.us.us.us1319.us1702, %for.cond36.loopexit.us.us.us804.us.us.us1318.us1701 ], [ %cnt.5.us.us.us1132.us.us, %for.body25.us.us.us1123.us.us ]
%142 = add i32 %141, %indvar2173
%add44.us.us.us796.us.us.us1310.us1693 = add nsw i32 %add29.us.us.us1127.us.us, %l.0481.us.us.us793.us.us.us1307.us1690
%cmp45.us.us.us797.us.us.us1311.us1694 = icmp eq i32 %add44.us.us.us796.us.us.us1310.us1693, %6
%narrow1842 = select i1 %cmp40, i1 %cmp45.us.us.us797.us.us.us1311.us1694, i1 false
%spec.select239.us.us.us799.us.us.us1313.us1696 = zext i1 %narrow1842 to i32
%cnt.7.us.us.us801.us.us.us1315.us1698 = add nsw i32 %cnt.6480.us.us.us794.us.us.us1308.us1691, %spec.select239.us.us.us799.us.us.us1313.us1696
%add50.us.us.us802.us.us.us1316.us1699 = add nsw i32 %l.0481.us.us.us793.us.us.us1307.us1690, 1
%cmp53.not365.us.us.us803.us.us.us1317.us1700.not = icmp slt i32 %l.0481.us.us.us793.us.us.us1307.us1690, %sub52
br i1 %cmp53.not365.us.us.us803.us.us.us1317.us1700.not, label %for.body54.us.us.us623.us674.us.us.us.us.us, label %for.cond36.loopexit.us.us.us804.us.us.us1318.us1701
for.cond36.loopexit.us.us.us804.us.us.us1318.us1701: ; preds = %for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us, %for.body39.us.us.us792.us.us.us1306.us1689
%cnt.8.lcssa.us.us.us805.us.us.us1319.us1702 = phi i32 [ %cnt.7.us.us.us801.us.us.us1315.us1698, %for.body39.us.us.us792.us.us.us1306.us1689 ], [ %cnt.10.lcssa.us.us.us636.us687.us.us.us.us.us, %for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us ]
%cmp38.not.us.us.us806.us.us.us1320.us1703.not = icmp slt i32 %l.0481.us.us.us793.us.us.us1307.us1690, %sub37
%indvar.next2174 = add i32 %indvar2173, 1
br i1 %cmp38.not.us.us.us806.us.us.us1320.us1703.not, label %for.body39.us.us.us792.us.us.us1306.us1689, label %for.cond22.loopexit.us.us.us1135.us.us, !llvm.loop !13
for.body54.us.us.us623.us674.us.us.us.us.us: ; preds = %for.body39.us.us.us792.us.us.us1306.us1689, %for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us
%indvar2175 = phi i32 [ %indvar.next2176, %for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us ], [ 0, %for.body39.us.us.us792.us.us.us1306.us1689 ]
%m.0367.us.us.us624.us675.us.us.us.us.us = phi i32 [ %add66.us.us.us633.us684.us.us.us.us.us, %for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us ], [ %add50.us.us.us802.us.us.us1316.us1699, %for.body39.us.us.us792.us.us.us1306.us1689 ]
%cnt.8366.us.us.us625.us676.us.us.us.us.us = phi i32 [ %cnt.10.lcssa.us.us.us636.us687.us.us.us.us.us, %for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us ], [ %cnt.7.us.us.us801.us.us.us1315.us1698, %for.body39.us.us.us792.us.us.us1306.us1689 ]
%143 = add i32 %142, %indvar2175
%add66.us.us.us633.us684.us.us.us.us.us = add nsw i32 %m.0367.us.us.us624.us675.us.us.us.us.us, 1
%cmp69.not318.us.us.us634.us685.us.us.us.us.us.not = icmp slt i32 %m.0367.us.us.us624.us675.us.us.us.us.us, %sub68
br i1 %cmp69.not318.us.us.us634.us685.us.us.us.us.us.not, label %for.body70.lr.ph.us.us.us638.us689.us.us.us.us.us, label %for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us
for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us: ; preds = %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us, %for.body54.us.us.us623.us674.us.us.us.us.us
%cnt.10.lcssa.us.us.us636.us687.us.us.us.us.us = phi i32 [ %cnt.8366.us.us.us625.us676.us.us.us.us.us, %for.body54.us.us.us623.us674.us.us.us.us.us ], [ %cnt.12.lcssa.us.us.us468.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us ]
%cmp53.not.us.us.us637.us688.us.us.us.us.us.not = icmp slt i32 %m.0367.us.us.us624.us675.us.us.us.us.us, %sub52
%indvar.next2176 = add i32 %indvar2175, 1
br i1 %cmp53.not.us.us.us637.us688.us.us.us.us.us.not, label %for.body54.us.us.us623.us674.us.us.us.us.us, label %for.cond36.loopexit.us.us.us804.us.us.us1318.us1701, !llvm.loop !14
for.body70.lr.ph.us.us.us638.us689.us.us.us.us.us: ; preds = %for.body54.us.us.us623.us674.us.us.us.us.us
%add93.us.us.us640.us690.us.us.us.us.us = add nsw i32 %add44.us.us.us796.us.us.us1310.us1693, %m.0367.us.us.us624.us675.us.us.us.us.us
br label %for.body70.us.us.us455.us.us.us.us.us.us.us.us
for.body70.us.us.us455.us.us.us.us.us.us.us.us: ; preds = %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us, %for.body70.lr.ph.us.us.us638.us689.us.us.us.us.us
%indvar2177 = phi i32 [ %indvar.next2178, %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us ], [ 0, %for.body70.lr.ph.us.us.us638.us689.us.us.us.us.us ]
%n.0320.us.us.us456.us.us.us.us.us.us.us.us = phi i32 [ %add83.us.us.us465.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us ], [ %add66.us.us.us633.us684.us.us.us.us.us, %for.body70.lr.ph.us.us.us638.us689.us.us.us.us.us ]
%cnt.10319.us.us.us457.us.us.us.us.us.us.us.us = phi i32 [ %cnt.12.lcssa.us.us.us468.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us ], [ %cnt.8366.us.us.us625.us676.us.us.us.us.us, %for.body70.lr.ph.us.us.us638.us689.us.us.us.us.us ]
%144 = add i32 %143, %indvar2177
%add83.us.us.us465.us.us.us.us.us.us.us.us = add nsw i32 %n.0320.us.us.us456.us.us.us.us.us.us.us.us, 1
%cmp86.not269.us.us.us466.us.us.us.us.us.us.us.us.not = icmp slt i32 %n.0320.us.us.us456.us.us.us.us.us.us.us.us, %sub85
br i1 %cmp86.not269.us.us.us466.us.us.us.us.us.us.us.us.not, label %for.body87.lr.ph.us.us.us470.us.us.us.us.us.us.us.us, label %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us
for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us: ; preds = %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us, %for.body70.us.us.us455.us.us.us.us.us.us.us.us
%cnt.12.lcssa.us.us.us468.us.us.us.us.us.us.us.us = phi i32 [ %cnt.10319.us.us.us457.us.us.us.us.us.us.us.us, %for.body70.us.us.us455.us.us.us.us.us.us.us.us ], [ %cnt.14.lcssa.us.us335.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us ]
%cmp69.not.us.us.us469.us.us.us.us.us.us.us.us.not = icmp slt i32 %n.0320.us.us.us456.us.us.us.us.us.us.us.us, %sub68
%indvar.next2178 = add i32 %indvar2177, 1
br i1 %cmp69.not.us.us.us469.us.us.us.us.us.us.us.us.not, label %for.body70.us.us.us455.us.us.us.us.us.us.us.us, label %for.cond51.loopexit.us.us.us635.us686.us.us.us.us.us, !llvm.loop !15
for.body87.lr.ph.us.us.us470.us.us.us.us.us.us.us.us: ; preds = %for.body70.us.us.us455.us.us.us.us.us.us.us.us
%add94.us.us.us471.us.us.us.us.us.us.us.us = add nsw i32 %add93.us.us.us640.us690.us.us.us.us.us, %n.0320.us.us.us456.us.us.us.us.us.us.us.us
br label %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us
for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us, %for.body87.lr.ph.us.us.us470.us.us.us.us.us.us.us.us
%indvar2179 = phi i32 [ %indvar.next2180, %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body87.lr.ph.us.us.us470.us.us.us.us.us.us.us.us ]
%o.0271.us.us323.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add101.us.us332.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us ], [ %add83.us.us.us465.us.us.us.us.us.us.us.us, %for.body87.lr.ph.us.us.us470.us.us.us.us.us.us.us.us ]
%cnt.12270.us.us324.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.14.lcssa.us.us335.us.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.10319.us.us.us457.us.us.us.us.us.us.us.us, %for.body87.lr.ph.us.us.us470.us.us.us.us.us.us.us.us ]
%145 = add i32 %144, %indvar2179
%add95.us.us326.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add94.us.us.us471.us.us.us.us.us.us.us.us, %o.0271.us.us323.us.us.us.us.us.us.us.us.us.us.us
%cmp96.us.us327.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add95.us.us326.us.us.us.us.us.us.us.us.us.us.us, %6
%inc98.us.us328.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp96.us.us327.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select242.us.us329.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.12270.us.us324.us.us.us.us.us.us.us.us.us.us.us, %inc98.us.us328.us.us.us.us.us.us.us.us.us.us.us
%add101.us.us332.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %o.0271.us.us323.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp104.not248.us.us333.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %o.0271.us.us323.us.us.us.us.us.us.us.us.us.us.us, %sub103
br i1 %cmp104.not248.us.us333.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us
for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us
%cnt.14.lcssa.us.us335.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select242.us.us329.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.16.lcssa.us.us278.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp86.not.us.us336.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %o.0271.us.us323.us.us.us.us.us.us.us.us.us.us.us, %sub85
%indvar.next2180 = add i32 %indvar2179, 1
br i1 %cmp86.not.us.us336.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us, label %for.cond67.loopexit.us.us.us467.us.us.us.us.us.us.us.us, !llvm.loop !16
for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us
%indvar2181 = phi i32 [ %indvar.next2182, %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us ]
%p.0250.us.us273.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add120.us.us275.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us ], [ %add101.us.us332.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us ]
%cnt.14249.us.us274.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.16.lcssa.us.us278.us.us.us.us.us.us.us.us.us.us.us.us, %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us ], [ %spec.select242.us.us329.us.us.us.us.us.us.us.us.us.us.us, %for.body87.us.us322.us.us.us.us.us.us.us.us.us.us.us ]
%146 = add i32 %145, %indvar2181
%147 = sub i32 %sub10, %146
%add120.us.us275.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %p.0250.us.us273.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp123.not245.us.us276.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %p.0250.us.us273.us.us.us.us.us.us.us.us.us.us.us.us, %sub122
br i1 %cmp123.not245.us.us276.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us
for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us, %middle.block2183, %for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us
%cnt.16.lcssa.us.us278.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.14249.us.us274.us.us.us.us.us.us.us.us.us.us.us.us, %for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us ], [ %158, %middle.block2183 ], [ %spec.select244.us.us.us288.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us ]
%cmp104.not.us.us279.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %p.0250.us.us273.us.us.us.us.us.us.us.us.us.us.us.us, %sub103
%indvar.next2182 = add i32 %indvar2181, 1
br i1 %cmp104.not.us.us279.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond84.loopexit.us.us334.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !20
for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body105.us.us272.us.us.us.us.us.us.us.us.us.us.us.us
%add133.us.us281.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add95.us.us326.us.us.us.us.us.us.us.us.us.us.us, %p.0250.us.us273.us.us.us.us.us.us.us.us.us.us.us.us
%min.iters.check2185 = icmp ult i32 %147, 8
br i1 %min.iters.check2185, label %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.preheader, label %vector.ph2186
vector.ph2186: ; preds = %for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us
%n.vec2188 = and i32 %147, -8
%ind.end2189 = add i32 %add120.us.us275.us.us.us.us.us.us.us.us.us.us.us.us, %n.vec2188
%.splatinsert2194 = insertelement <4 x i32> poison, i32 %add120.us.us275.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%.splat2195 = shufflevector <4 x i32> %.splatinsert2194, <4 x i32> poison, <4 x i32> zeroinitializer
%induction2196 = add <4 x i32> %.splat2195, <i32 0, i32 1, i32 2, i32 3>
%148 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %cnt.14249.us.us274.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%broadcast.splatinsert2203 = insertelement <4 x i32> poison, i32 %add133.us.us281.us.us.us.us.us.us.us.us.us.us.us.us, i64 0
%broadcast.splat2204 = shufflevector <4 x i32> %broadcast.splatinsert2203, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body2192
vector.body2192: ; preds = %vector.body2192, %vector.ph2186
%index2193 = phi i32 [ 0, %vector.ph2186 ], [ %index.next2207, %vector.body2192 ]
%vec.ind2197 = phi <4 x i32> [ %induction2196, %vector.ph2186 ], [ %vec.ind.next2200, %vector.body2192 ]
%vec.phi2201 = phi <4 x i32> [ %148, %vector.ph2186 ], [ %155, %vector.body2192 ]
%vec.phi2202 = phi <4 x i32> [ zeroinitializer, %vector.ph2186 ], [ %156, %vector.body2192 ]
%step.add2198 = add <4 x i32> %vec.ind2197, <i32 4, i32 4, i32 4, i32 4>
%149 = add nsw <4 x i32> %broadcast.splat2204, %vec.ind2197
%150 = add nsw <4 x i32> %broadcast.splat2204, %step.add2198
%151 = icmp eq <4 x i32> %149, %broadcast.splat2206
%152 = icmp eq <4 x i32> %150, %broadcast.splat2206
%153 = zext <4 x i1> %151 to <4 x i32>
%154 = zext <4 x i1> %152 to <4 x i32>
%155 = add <4 x i32> %vec.phi2201, %153
%156 = add <4 x i32> %vec.phi2202, %154
%index.next2207 = add nuw i32 %index2193, 8
%vec.ind.next2200 = add <4 x i32> %vec.ind2197, <i32 8, i32 8, i32 8, i32 8>
%157 = icmp eq i32 %index.next2207, %n.vec2188
br i1 %157, label %middle.block2183, label %vector.body2192, !llvm.loop !34
middle.block2183: ; preds = %vector.body2192
%bin.rdx2208 = add <4 x i32> %156, %155
%158 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx2208)
%cmp.n2191 = icmp eq i32 %147, %n.vec2188
br i1 %cmp.n2191, label %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us, label %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.preheader
for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.preheader: ; preds = %for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us, %middle.block2183
%q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us.ph = phi i32 [ %add120.us.us275.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us ], [ %ind.end2189, %middle.block2183 ]
%cnt.16246.us.us.us284.us.us.us.us.us.us.us.us.us.us.us.us.ph = phi i32 [ %cnt.14249.us.us274.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.lr.ph.us.us280.us.us.us.us.us.us.us.us.us.us.us.us ], [ %158, %middle.block2183 ]
br label %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us
for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.preheader, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us
%q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %inc140.us.us.us289.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us ], [ %q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us.ph, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.preheader ]
%cnt.16246.us.us.us284.us.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select244.us.us.us288.us.us.us.us.us.us.us.us.us.us.us.us, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.16246.us.us.us284.us.us.us.us.us.us.us.us.us.us.us.us.ph, %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us.preheader ]
%add134.us.us.us285.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add133.us.us281.us.us.us.us.us.us.us.us.us.us.us.us, %q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us
%cmp135.us.us.us286.us.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add134.us.us.us285.us.us.us.us.us.us.us.us.us.us.us.us, %6
%inc137.us.us.us287.us.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp135.us.us.us286.us.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select244.us.us.us288.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.16246.us.us.us284.us.us.us.us.us.us.us.us.us.us.us.us, %inc137.us.us.us287.us.us.us.us.us.us.us.us.us.us.us.us
%inc140.us.us.us289.us.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp123.not.us.us.us290.us.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %q.0247.us.us.us283.us.us.us.us.us.us.us.us.us.us.us.us, %sub122
br i1 %cmp123.not.us.us.us290.us.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body124.us.us.us282.us.us.us.us.us.us.us.us.us.us.us.us, label %for.cond102.loopexit.us.us277.us.us.us.us.us.us.us.us.us.us.us.us, !llvm.loop !35
for.body12.us.us: ; preds = %for.body12.lr.ph.split.us.us.split, %for.cond9.loopexit.us.us
%indvar2210 = phi i32 [ %indvar.next2211, %for.cond9.loopexit.us.us ], [ 0, %for.body12.lr.ph.split.us.us.split ]
%j.0820.us.us = phi i32 [ %add21.us.us, %for.cond9.loopexit.us.us ], [ %add.us, %for.body12.lr.ph.split.us.us.split ]
%cnt.2819.us.us = phi i32 [ %cnt.4.lcssa.us.us, %for.cond9.loopexit.us.us ], [ %cnt.1.us, %for.body12.lr.ph.split.us.us.split ]
%159 = add i32 %i.01172.us, %indvar2210
%160 = add i32 %i.01172.us, %indvar2210
%161 = add i32 %i.01172.us, %indvar2210
%add15.us.us = add nuw nsw i32 %j.0820.us.us, %i.01172.us
%cmp16.us.us = icmp eq i32 %add15.us.us, %6
%narrow.us.us = select i1 %cmp13, i1 %cmp16.us.us, i1 false
%spec.select.us.us = zext i1 %narrow.us.us to i32
%cnt.3.us.us = add nsw i32 %cnt.2819.us.us, %spec.select.us.us
%add21.us.us = add i32 %j.0820.us.us, 1
%cmp24.not647.us.us.not = icmp slt i32 %j.0820.us.us, %sub23
br i1 %cmp24.not647.us.us.not, label %for.body25.us.us.us1174, label %for.cond9.loopexit.us.us
for.cond9.loopexit.us.us: ; preds = %for.cond22.loopexit.us.us.us1186, %for.body12.us.us
%cnt.4.lcssa.us.us = phi i32 [ %cnt.3.us.us, %for.body12.us.us ], [ %cnt.6.lcssa.us.us.us1187, %for.cond22.loopexit.us.us.us1186 ]
%exitcond1892.not = icmp eq i32 %add21.us.us, %sub23
%indvar.next2211 = add i32 %indvar2210, 1
br i1 %exitcond1892.not, label %for.cond.loopexit.us, label %for.body12.us.us, !llvm.loop !11
for.body25.us.us.us1174: ; preds = %for.body12.us.us, %for.cond22.loopexit.us.us.us1186
%indvar2212 = phi i32 [ %indvar.next2213, %for.cond22.loopexit.us.us.us1186 ], [ 0, %for.body12.us.us ]
%k.0649.us.us.us1175 = phi i32 [ %add35.us.us.us1184, %for.cond22.loopexit.us.us.us1186 ], [ %add21.us.us, %for.body12.us.us ]
%cnt.4648.us.us.us1176 = phi i32 [ %cnt.6.lcssa.us.us.us1187, %for.cond22.loopexit.us.us.us1186 ], [ %cnt.3.us.us, %for.body12.us.us ]
%162 = add i32 %159, %indvar2212
%163 = add i32 %160, %indvar2212
%164 = add i32 %161, %indvar2212
%add29.us.us.us1178 = add nuw nsw i32 %add15.us.us, %k.0649.us.us.us1175
%cmp30.us.us.us1179 = icmp eq i32 %add29.us.us.us1178, %6
%narrow1836 = select i1 %cmp26, i1 %cmp30.us.us.us1179, i1 false
%spec.select238.us.us.us1181 = zext i1 %narrow1836 to i32
%cnt.5.us.us.us1183 = add nsw i32 %cnt.4648.us.us.us1176, %spec.select238.us.us.us1181
%add35.us.us.us1184 = add nuw nsw i32 %k.0649.us.us.us1175, 1
%cmp38.not479.us.us.us1185.not = icmp slt i32 %k.0649.us.us.us1175, %sub37
br i1 %cmp38.not479.us.us.us1185.not, label %for.body39.lr.ph.us.us.us1189, label %for.cond22.loopexit.us.us.us1186
for.cond22.loopexit.us.us.us1186: ; preds = %for.cond36.loopexit.us.us.us834.us1206, %for.cond36.loopexit.us.us.us834.us1206.us, %for.cond36.loopexit.us.us.us834.us.us, %for.body25.us.us.us1174
%cnt.6.lcssa.us.us.us1187 = phi i32 [ %cnt.5.us.us.us1183, %for.body25.us.us.us1174 ], [ %cnt.8.lcssa.us.us.us835.us.us, %for.cond36.loopexit.us.us.us834.us.us ], [ %cnt.8.lcssa.us.us.us835.us1207.us, %for.cond36.loopexit.us.us.us834.us1206.us ], [ %cnt.8.lcssa.us.us.us835.us1207, %for.cond36.loopexit.us.us.us834.us1206 ]
%cmp24.not.us.us.us1188.not = icmp slt i32 %k.0649.us.us.us1175, %sub23
%indvar.next2213 = add i32 %indvar2212, 1
br i1 %cmp24.not.us.us.us1188.not, label %for.body25.us.us.us1174, label %for.cond9.loopexit.us.us, !llvm.loop !12
for.body39.lr.ph.us.us.us1189: ; preds = %for.body25.us.us.us1174
br i1 %cmp71, label %for.body39.us.us.us822.us.us, label %for.body39.lr.ph.split.us.us.split.split.us912.split.us1216
for.body39.us.us.us822.us1194: ; preds = %for.body39.lr.ph.split.us.us.split.split.us912.split.us1216, %for.cond36.loopexit.us.us.us834.us1206
%indvar2288 = phi i32 [ %indvar.next2289, %for.cond36.loopexit.us.us.us834.us1206 ], [ 0, %for.body39.lr.ph.split.us.us.split.split.us912.split.us1216 ]
%l.0481.us.us.us823.us1195 = phi i32 [ %add50.us.us.us832.us1204, %for.cond36.loopexit.us.us.us834.us1206 ], [ %add35.us.us.us1184, %for.body39.lr.ph.split.us.us.split.split.us912.split.us1216 ]
%cnt.6480.us.us.us824.us1196 = phi i32 [ %cnt.8.lcssa.us.us.us835.us1207, %for.cond36.loopexit.us.us.us834.us1206 ], [ %cnt.5.us.us.us1183, %for.body39.lr.ph.split.us.us.split.split.us912.split.us1216 ]
%165 = add i32 %162, %indvar2288
%add44.us.us.us826.us1198 = add nsw i32 %add29.us.us.us1178, %l.0481.us.us.us823.us1195
%cmp45.us.us.us827.us1199 = icmp eq i32 %add44.us.us.us826.us1198, %6
%narrow1837 = select i1 %cmp40, i1 %cmp45.us.us.us827.us1199, i1 false
%spec.select239.us.us.us829.us1201 = zext i1 %narrow1837 to i32
%cnt.7.us.us.us831.us1203 = add nsw i32 %cnt.6480.us.us.us824.us1196, %spec.select239.us.us.us829.us1201
%add50.us.us.us832.us1204 = add nsw i32 %l.0481.us.us.us823.us1195, 1
%cmp53.not365.us.us.us833.us1205.not = icmp slt i32 %l.0481.us.us.us823.us1195, %sub52
br i1 %cmp53.not365.us.us.us833.us1205.not, label %for.body54.us.us.us651.us.us, label %for.cond36.loopexit.us.us.us834.us1206
for.cond36.loopexit.us.us.us834.us1206: ; preds = %for.cond51.loopexit.us.us.us663.us.us, %for.body39.us.us.us822.us1194
%cnt.8.lcssa.us.us.us835.us1207 = phi i32 [ %cnt.7.us.us.us831.us1203, %for.body39.us.us.us822.us1194 ], [ %cnt.10.lcssa.us.us.us664.us.us, %for.cond51.loopexit.us.us.us663.us.us ]
%cmp38.not.us.us.us836.us1208.not = icmp slt i32 %l.0481.us.us.us823.us1195, %sub37
%indvar.next2289 = add i32 %indvar2288, 1
br i1 %cmp38.not.us.us.us836.us1208.not, label %for.body39.us.us.us822.us1194, label %for.cond22.loopexit.us.us.us1186, !llvm.loop !13
for.body54.us.us.us651.us.us: ; preds = %for.body39.us.us.us822.us1194, %for.cond51.loopexit.us.us.us663.us.us
%indvar2290 = phi i32 [ %indvar.next2291, %for.cond51.loopexit.us.us.us663.us.us ], [ 0, %for.body39.us.us.us822.us1194 ]
%m.0367.us.us.us652.us.us = phi i32 [ %add66.us.us.us661.us.us, %for.cond51.loopexit.us.us.us663.us.us ], [ %add50.us.us.us832.us1204, %for.body39.us.us.us822.us1194 ]
%cnt.8366.us.us.us653.us.us = phi i32 [ %cnt.10.lcssa.us.us.us664.us.us, %for.cond51.loopexit.us.us.us663.us.us ], [ %cnt.7.us.us.us831.us1203, %for.body39.us.us.us822.us1194 ]
%166 = add i32 %165, %indvar2290
%add66.us.us.us661.us.us = add nsw i32 %m.0367.us.us.us652.us.us, 1
%cmp69.not318.us.us.us662.us.us.not = icmp slt i32 %m.0367.us.us.us652.us.us, %sub68
br i1 %cmp69.not318.us.us.us662.us.us.not, label %for.body70.lr.ph.us.us.us666.us.us, label %for.cond51.loopexit.us.us.us663.us.us
for.cond51.loopexit.us.us.us663.us.us: ; preds = %for.cond67.loopexit.us.us.us495.us.us846.us, %for.body54.us.us.us651.us.us
%cnt.10.lcssa.us.us.us664.us.us = phi i32 [ %cnt.8366.us.us.us653.us.us, %for.body54.us.us.us651.us.us ], [ %cnt.12.lcssa.us.us.us496.us.us847.us, %for.cond67.loopexit.us.us.us495.us.us846.us ]
%cmp53.not.us.us.us665.us.us.not = icmp slt i32 %m.0367.us.us.us652.us.us, %sub52
%indvar.next2291 = add i32 %indvar2290, 1
br i1 %cmp53.not.us.us.us665.us.us.not, label %for.body54.us.us.us651.us.us, label %for.cond36.loopexit.us.us.us834.us1206, !llvm.loop !14
for.body70.lr.ph.us.us.us666.us.us: ; preds = %for.body54.us.us.us651.us.us
%add130.us.us.us668.us.us = add nsw i32 %add44.us.us.us826.us1198, %m.0367.us.us.us652.us.us
br label %for.body70.us.us.us483.us.us841.us
for.body70.us.us.us483.us.us841.us: ; preds = %for.cond67.loopexit.us.us.us495.us.us846.us, %for.body70.lr.ph.us.us.us666.us.us
%indvar2292 = phi i32 [ %indvar.next2293, %for.cond67.loopexit.us.us.us495.us.us846.us ], [ 0, %for.body70.lr.ph.us.us.us666.us.us ]
%n.0320.us.us.us484.us.us842.us = phi i32 [ %add83.us.us.us493.us.us844.us, %for.cond67.loopexit.us.us.us495.us.us846.us ], [ %add66.us.us.us661.us.us, %for.body70.lr.ph.us.us.us666.us.us ]
%cnt.10319.us.us.us485.us.us843.us = phi i32 [ %cnt.12.lcssa.us.us.us496.us.us847.us, %for.cond67.loopexit.us.us.us495.us.us846.us ], [ %cnt.8366.us.us.us653.us.us, %for.body70.lr.ph.us.us.us666.us.us ]
%167 = add i32 %166, %indvar2292
%add83.us.us.us493.us.us844.us = add nsw i32 %n.0320.us.us.us484.us.us842.us, 1
%cmp86.not269.us.us.us494.us.us845.us.not = icmp slt i32 %n.0320.us.us.us484.us.us842.us, %sub85
br i1 %cmp86.not269.us.us.us494.us.us845.us.not, label %for.body87.lr.ph.us.us.us498.us.us849.us, label %for.cond67.loopexit.us.us.us495.us.us846.us
for.cond67.loopexit.us.us.us495.us.us846.us: ; preds = %for.cond84.loopexit.us.us334.us374.us.us.us856.us, %for.body70.us.us.us483.us.us841.us
%cnt.12.lcssa.us.us.us496.us.us847.us = phi i32 [ %cnt.10319.us.us.us485.us.us843.us, %for.body70.us.us.us483.us.us841.us ], [ %cnt.14.lcssa.us.us335.us375.us.us.us857.us, %for.cond84.loopexit.us.us334.us374.us.us.us856.us ]
%cmp69.not.us.us.us497.us.us848.us.not = icmp slt i32 %n.0320.us.us.us484.us.us842.us, %sub68
%indvar.next2293 = add i32 %indvar2292, 1
br i1 %cmp69.not.us.us.us497.us.us848.us.not, label %for.body70.us.us.us483.us.us841.us, label %for.cond51.loopexit.us.us.us663.us.us, !llvm.loop !15
for.body87.lr.ph.us.us.us498.us.us849.us: ; preds = %for.body70.us.us.us483.us.us841.us
%add131.us.us.us499.us.us850.us = add nsw i32 %add130.us.us.us668.us.us, %n.0320.us.us.us484.us.us842.us
br label %for.body87.us.us322.us369.us.us.us851.us
for.body87.us.us322.us369.us.us.us851.us: ; preds = %for.cond84.loopexit.us.us334.us374.us.us.us856.us, %for.body87.lr.ph.us.us.us498.us.us849.us
%indvar2294 = phi i32 [ %indvar.next2295, %for.cond84.loopexit.us.us334.us374.us.us.us856.us ], [ 0, %for.body87.lr.ph.us.us.us498.us.us849.us ]
%o.0271.us.us323.us370.us.us.us852.us = phi i32 [ %add101.us.us332.us372.us.us.us854.us, %for.cond84.loopexit.us.us334.us374.us.us.us856.us ], [ %add83.us.us.us493.us.us844.us, %for.body87.lr.ph.us.us.us498.us.us849.us ]
%cnt.12270.us.us324.us371.us.us.us853.us = phi i32 [ %cnt.14.lcssa.us.us335.us375.us.us.us857.us, %for.cond84.loopexit.us.us334.us374.us.us.us856.us ], [ %cnt.10319.us.us.us485.us.us843.us, %for.body87.lr.ph.us.us.us498.us.us849.us ]
%168 = add i32 %167, %indvar2294
%add101.us.us332.us372.us.us.us854.us = add nsw i32 %o.0271.us.us323.us370.us.us.us852.us, 1
%cmp104.not248.us.us333.us373.us.us.us855.us.not = icmp slt i32 %o.0271.us.us323.us370.us.us.us852.us, %sub103
br i1 %cmp104.not248.us.us333.us373.us.us.us855.us.not, label %for.body105.lr.ph.us.us337.us377.us.us.us859.us, label %for.cond84.loopexit.us.us334.us374.us.us.us856.us
for.cond84.loopexit.us.us334.us374.us.us.us856.us: ; preds = %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us, %for.body87.us.us322.us369.us.us.us851.us
%cnt.14.lcssa.us.us335.us375.us.us.us857.us = phi i32 [ %cnt.12270.us.us324.us371.us.us.us853.us, %for.body87.us.us322.us369.us.us.us851.us ], [ %cnt.16.lcssa.us.us278.us.us385.us.us.us867.us, %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us ]
%cmp86.not.us.us336.us376.us.us.us858.us.not = icmp slt i32 %o.0271.us.us323.us370.us.us.us852.us, %sub85
%indvar.next2295 = add i32 %indvar2294, 1
br i1 %cmp86.not.us.us336.us376.us.us.us858.us.not, label %for.body87.us.us322.us369.us.us.us851.us, label %for.cond67.loopexit.us.us.us495.us.us846.us, !llvm.loop !16
for.body105.lr.ph.us.us337.us377.us.us.us859.us: ; preds = %for.body87.us.us322.us369.us.us.us851.us
%add132.us.us338.us378.us.us.us860.us = add nsw i32 %add131.us.us.us499.us.us850.us, %o.0271.us.us323.us370.us.us.us852.us
br label %for.body105.us.us272.us.us379.us.us.us861.us
for.body105.us.us272.us.us379.us.us.us861.us: ; preds = %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us, %for.body105.lr.ph.us.us337.us377.us.us.us859.us
%indvar2296 = phi i32 [ %indvar.next2297, %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us ], [ 0, %for.body105.lr.ph.us.us337.us377.us.us.us859.us ]
%p.0250.us.us273.us.us380.us.us.us862.us = phi i32 [ %add120.us.us275.us.us382.us.us.us864.us, %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us ], [ %add101.us.us332.us372.us.us.us854.us, %for.body105.lr.ph.us.us337.us377.us.us.us859.us ]
%cnt.14249.us.us274.us.us381.us.us.us863.us = phi i32 [ %cnt.16.lcssa.us.us278.us.us385.us.us.us867.us, %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us ], [ %cnt.12270.us.us324.us371.us.us.us853.us, %for.body105.lr.ph.us.us337.us377.us.us.us859.us ]
%169 = add i32 %168, %indvar2296
%170 = sub i32 %sub10, %169
%add120.us.us275.us.us382.us.us.us864.us = add nsw i32 %p.0250.us.us273.us.us380.us.us.us862.us, 1
%cmp123.not245.us.us276.us.us383.us.us.us865.us.not = icmp slt i32 %p.0250.us.us273.us.us380.us.us.us862.us, %sub122
br i1 %cmp123.not245.us.us276.us.us383.us.us.us865.us.not, label %for.body124.lr.ph.us.us280.us.us387.us.us.us869.us, label %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us
for.cond102.loopexit.us.us277.us.us384.us.us.us866.us: ; preds = %for.body124.us.us.us282.us.us389.us.us.us871.us, %middle.block2298, %for.body105.us.us272.us.us379.us.us.us861.us
%cnt.16.lcssa.us.us278.us.us385.us.us.us867.us = phi i32 [ %cnt.14249.us.us274.us.us381.us.us.us863.us, %for.body105.us.us272.us.us379.us.us.us861.us ], [ %181, %middle.block2298 ], [ %spec.select244.us.us.us288.us.us395.us.us.us877.us, %for.body124.us.us.us282.us.us389.us.us.us871.us ]
%cmp104.not.us.us279.us.us386.us.us.us868.us.not = icmp slt i32 %p.0250.us.us273.us.us380.us.us.us862.us, %sub103
%indvar.next2297 = add i32 %indvar2296, 1
br i1 %cmp104.not.us.us279.us.us386.us.us.us868.us.not, label %for.body105.us.us272.us.us379.us.us.us861.us, label %for.cond84.loopexit.us.us334.us374.us.us.us856.us, !llvm.loop !20
for.body124.lr.ph.us.us280.us.us387.us.us.us869.us: ; preds = %for.body105.us.us272.us.us379.us.us.us861.us
%add133.us.us281.us.us388.us.us.us870.us = add nsw i32 %add132.us.us338.us378.us.us.us860.us, %p.0250.us.us273.us.us380.us.us.us862.us
%min.iters.check2300 = icmp ult i32 %170, 8
br i1 %min.iters.check2300, label %for.body124.us.us.us282.us.us389.us.us.us871.us.preheader, label %vector.ph2301
vector.ph2301: ; preds = %for.body124.lr.ph.us.us280.us.us387.us.us.us869.us
%n.vec2303 = and i32 %170, -8
%ind.end2304 = add i32 %add120.us.us275.us.us382.us.us.us864.us, %n.vec2303
%.splatinsert2309 = insertelement <4 x i32> poison, i32 %add120.us.us275.us.us382.us.us.us864.us, i64 0
%.splat2310 = shufflevector <4 x i32> %.splatinsert2309, <4 x i32> poison, <4 x i32> zeroinitializer
%induction2311 = add <4 x i32> %.splat2310, <i32 0, i32 1, i32 2, i32 3>
%171 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %cnt.14249.us.us274.us.us381.us.us.us863.us, i64 0
%broadcast.splatinsert2318 = insertelement <4 x i32> poison, i32 %add133.us.us281.us.us388.us.us.us870.us, i64 0
%broadcast.splat2319 = shufflevector <4 x i32> %broadcast.splatinsert2318, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body2307
vector.body2307: ; preds = %vector.body2307, %vector.ph2301
%index2308 = phi i32 [ 0, %vector.ph2301 ], [ %index.next2322, %vector.body2307 ]
%vec.ind2312 = phi <4 x i32> [ %induction2311, %vector.ph2301 ], [ %vec.ind.next2315, %vector.body2307 ]
%vec.phi2316 = phi <4 x i32> [ %171, %vector.ph2301 ], [ %178, %vector.body2307 ]
%vec.phi2317 = phi <4 x i32> [ zeroinitializer, %vector.ph2301 ], [ %179, %vector.body2307 ]
%step.add2313 = add <4 x i32> %vec.ind2312, <i32 4, i32 4, i32 4, i32 4>
%172 = add nsw <4 x i32> %broadcast.splat2319, %vec.ind2312
%173 = add nsw <4 x i32> %broadcast.splat2319, %step.add2313
%174 = icmp eq <4 x i32> %172, %broadcast.splat2321
%175 = icmp eq <4 x i32> %173, %broadcast.splat2321
%176 = zext <4 x i1> %174 to <4 x i32>
%177 = zext <4 x i1> %175 to <4 x i32>
%178 = add <4 x i32> %vec.phi2316, %176
%179 = add <4 x i32> %vec.phi2317, %177
%index.next2322 = add nuw i32 %index2308, 8
%vec.ind.next2315 = add <4 x i32> %vec.ind2312, <i32 8, i32 8, i32 8, i32 8>
%180 = icmp eq i32 %index.next2322, %n.vec2303
br i1 %180, label %middle.block2298, label %vector.body2307, !llvm.loop !36
middle.block2298: ; preds = %vector.body2307
%bin.rdx2323 = add <4 x i32> %179, %178
%181 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx2323)
%cmp.n2306 = icmp eq i32 %170, %n.vec2303
br i1 %cmp.n2306, label %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us, label %for.body124.us.us.us282.us.us389.us.us.us871.us.preheader
for.body124.us.us.us282.us.us389.us.us.us871.us.preheader: ; preds = %for.body124.lr.ph.us.us280.us.us387.us.us.us869.us, %middle.block2298
%q.0247.us.us.us283.us.us390.us.us.us872.us.ph = phi i32 [ %add120.us.us275.us.us382.us.us.us864.us, %for.body124.lr.ph.us.us280.us.us387.us.us.us869.us ], [ %ind.end2304, %middle.block2298 ]
%cnt.16246.us.us.us284.us.us391.us.us.us873.us.ph = phi i32 [ %cnt.14249.us.us274.us.us381.us.us.us863.us, %for.body124.lr.ph.us.us280.us.us387.us.us.us869.us ], [ %181, %middle.block2298 ]
br label %for.body124.us.us.us282.us.us389.us.us.us871.us
for.body124.us.us.us282.us.us389.us.us.us871.us: ; preds = %for.body124.us.us.us282.us.us389.us.us.us871.us.preheader, %for.body124.us.us.us282.us.us389.us.us.us871.us
%q.0247.us.us.us283.us.us390.us.us.us872.us = phi i32 [ %inc140.us.us.us289.us.us396.us.us.us878.us, %for.body124.us.us.us282.us.us389.us.us.us871.us ], [ %q.0247.us.us.us283.us.us390.us.us.us872.us.ph, %for.body124.us.us.us282.us.us389.us.us.us871.us.preheader ]
%cnt.16246.us.us.us284.us.us391.us.us.us873.us = phi i32 [ %spec.select244.us.us.us288.us.us395.us.us.us877.us, %for.body124.us.us.us282.us.us389.us.us.us871.us ], [ %cnt.16246.us.us.us284.us.us391.us.us.us873.us.ph, %for.body124.us.us.us282.us.us389.us.us.us871.us.preheader ]
%add134.us.us.us285.us.us392.us.us.us874.us = add nsw i32 %add133.us.us281.us.us388.us.us.us870.us, %q.0247.us.us.us283.us.us390.us.us.us872.us
%cmp135.us.us.us286.us.us393.us.us.us875.us = icmp eq i32 %add134.us.us.us285.us.us392.us.us.us874.us, %6
%inc137.us.us.us287.us.us394.us.us.us876.us = zext i1 %cmp135.us.us.us286.us.us393.us.us.us875.us to i32
%spec.select244.us.us.us288.us.us395.us.us.us877.us = add nsw i32 %cnt.16246.us.us.us284.us.us391.us.us.us873.us, %inc137.us.us.us287.us.us394.us.us.us876.us
%inc140.us.us.us289.us.us396.us.us.us878.us = add nsw i32 %q.0247.us.us.us283.us.us390.us.us.us872.us, 1
%cmp123.not.us.us.us290.us.us397.us.us.us879.us.not = icmp slt i32 %q.0247.us.us.us283.us.us390.us.us.us872.us, %sub122
br i1 %cmp123.not.us.us.us290.us.us397.us.us.us879.us.not, label %for.body124.us.us.us282.us.us389.us.us.us871.us, label %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us, !llvm.loop !37
for.body39.lr.ph.split.us.us.split.split.us912.split.us1216: ; preds = %for.body39.lr.ph.us.us.us1189
br i1 %cmp55, label %for.body39.us.us.us822.us1194.us, label %for.body39.us.us.us822.us1194
for.body39.us.us.us822.us1194.us: ; preds = %for.body39.lr.ph.split.us.us.split.split.us912.split.us1216, %for.cond36.loopexit.us.us.us834.us1206.us
%indvar2251 = phi i32 [ %indvar.next2252, %for.cond36.loopexit.us.us.us834.us1206.us ], [ 0, %for.body39.lr.ph.split.us.us.split.split.us912.split.us1216 ]
%l.0481.us.us.us823.us1195.us = phi i32 [ %add50.us.us.us832.us1204.us, %for.cond36.loopexit.us.us.us834.us1206.us ], [ %add35.us.us.us1184, %for.body39.lr.ph.split.us.us.split.split.us912.split.us1216 ]
%cnt.6480.us.us.us824.us1196.us = phi i32 [ %cnt.8.lcssa.us.us.us835.us1207.us, %for.cond36.loopexit.us.us.us834.us1206.us ], [ %cnt.5.us.us.us1183, %for.body39.lr.ph.split.us.us.split.split.us912.split.us1216 ]
%182 = add i32 %163, %indvar2251
%add44.us.us.us826.us1198.us = add nsw i32 %add29.us.us.us1178, %l.0481.us.us.us823.us1195.us
%cmp45.us.us.us827.us1199.us = icmp eq i32 %add44.us.us.us826.us1198.us, %6
%narrow1838 = select i1 %cmp40, i1 %cmp45.us.us.us827.us1199.us, i1 false
%spec.select239.us.us.us829.us1201.us = zext i1 %narrow1838 to i32
%cnt.7.us.us.us831.us1203.us = add nsw i32 %cnt.6480.us.us.us824.us1196.us, %spec.select239.us.us.us829.us1201.us
%add50.us.us.us832.us1204.us = add nsw i32 %l.0481.us.us.us823.us1195.us, 1
%cmp53.not365.us.us.us833.us1205.us.not = icmp slt i32 %l.0481.us.us.us823.us1195.us, %sub52
br i1 %cmp53.not365.us.us.us833.us1205.us.not, label %for.body54.us.us.us651.us.us.us.us, label %for.cond36.loopexit.us.us.us834.us1206.us
for.cond36.loopexit.us.us.us834.us1206.us: ; preds = %for.cond51.loopexit.us.us.us663.us.us.us.us, %for.body39.us.us.us822.us1194.us
%cnt.8.lcssa.us.us.us835.us1207.us = phi i32 [ %cnt.7.us.us.us831.us1203.us, %for.body39.us.us.us822.us1194.us ], [ %cnt.10.lcssa.us.us.us664.us.us.us.us, %for.cond51.loopexit.us.us.us663.us.us.us.us ]
%cmp38.not.us.us.us836.us1208.us.not = icmp slt i32 %l.0481.us.us.us823.us1195.us, %sub37
%indvar.next2252 = add i32 %indvar2251, 1
br i1 %cmp38.not.us.us.us836.us1208.us.not, label %for.body39.us.us.us822.us1194.us, label %for.cond22.loopexit.us.us.us1186, !llvm.loop !13
for.body54.us.us.us651.us.us.us.us: ; preds = %for.body39.us.us.us822.us1194.us, %for.cond51.loopexit.us.us.us663.us.us.us.us
%indvar2253 = phi i32 [ %indvar.next2254, %for.cond51.loopexit.us.us.us663.us.us.us.us ], [ 0, %for.body39.us.us.us822.us1194.us ]
%m.0367.us.us.us652.us.us.us.us = phi i32 [ %add66.us.us.us661.us.us.us.us, %for.cond51.loopexit.us.us.us663.us.us.us.us ], [ %add50.us.us.us832.us1204.us, %for.body39.us.us.us822.us1194.us ]
%cnt.8366.us.us.us653.us.us.us.us = phi i32 [ %cnt.10.lcssa.us.us.us664.us.us.us.us, %for.cond51.loopexit.us.us.us663.us.us.us.us ], [ %cnt.7.us.us.us831.us1203.us, %for.body39.us.us.us822.us1194.us ]
%183 = add i32 %182, %indvar2253
%add60.us.us.us655.us.us.us.us = add nsw i32 %add44.us.us.us826.us1198.us, %m.0367.us.us.us652.us.us.us.us
%cmp61.us.us.us656.us.us.us.us = icmp eq i32 %add60.us.us.us655.us.us.us.us, %6
%inc63.us.us.us657.us.us.us.us = zext i1 %cmp61.us.us.us656.us.us.us.us to i32
%spec.select240.us.us.us658.us.us.us.us = add nsw i32 %cnt.8366.us.us.us653.us.us.us.us, %inc63.us.us.us657.us.us.us.us
%add66.us.us.us661.us.us.us.us = add nsw i32 %m.0367.us.us.us652.us.us.us.us, 1
%cmp69.not318.us.us.us662.us.us.us.us.not = icmp slt i32 %m.0367.us.us.us652.us.us.us.us, %sub68
br i1 %cmp69.not318.us.us.us662.us.us.us.us.not, label %for.body70.us.us.us483.us.us841.us.us.us, label %for.cond51.loopexit.us.us.us663.us.us.us.us
for.cond51.loopexit.us.us.us663.us.us.us.us: ; preds = %for.cond67.loopexit.us.us.us495.us.us846.us.us.us, %for.body54.us.us.us651.us.us.us.us
%cnt.10.lcssa.us.us.us664.us.us.us.us = phi i32 [ %spec.select240.us.us.us658.us.us.us.us, %for.body54.us.us.us651.us.us.us.us ], [ %cnt.12.lcssa.us.us.us496.us.us847.us.us.us, %for.cond67.loopexit.us.us.us495.us.us846.us.us.us ]
%cmp53.not.us.us.us665.us.us.us.us.not = icmp slt i32 %m.0367.us.us.us652.us.us.us.us, %sub52
%indvar.next2254 = add i32 %indvar2253, 1
br i1 %cmp53.not.us.us.us665.us.us.us.us.not, label %for.body54.us.us.us651.us.us.us.us, label %for.cond36.loopexit.us.us.us834.us1206.us, !llvm.loop !14
for.body70.us.us.us483.us.us841.us.us.us: ; preds = %for.body54.us.us.us651.us.us.us.us, %for.cond67.loopexit.us.us.us495.us.us846.us.us.us
%indvar2255 = phi i32 [ %indvar.next2256, %for.cond67.loopexit.us.us.us495.us.us846.us.us.us ], [ 0, %for.body54.us.us.us651.us.us.us.us ]
%n.0320.us.us.us484.us.us842.us.us.us = phi i32 [ %add83.us.us.us493.us.us844.us.us.us, %for.cond67.loopexit.us.us.us495.us.us846.us.us.us ], [ %add66.us.us.us661.us.us.us.us, %for.body54.us.us.us651.us.us.us.us ]
%cnt.10319.us.us.us485.us.us843.us.us.us = phi i32 [ %cnt.12.lcssa.us.us.us496.us.us847.us.us.us, %for.cond67.loopexit.us.us.us495.us.us846.us.us.us ], [ %spec.select240.us.us.us658.us.us.us.us, %for.body54.us.us.us651.us.us.us.us ]
%184 = add i32 %183, %indvar2255
%add83.us.us.us493.us.us844.us.us.us = add nsw i32 %n.0320.us.us.us484.us.us842.us.us.us, 1
%cmp86.not269.us.us.us494.us.us845.us.us.us.not = icmp slt i32 %n.0320.us.us.us484.us.us842.us.us.us, %sub85
br i1 %cmp86.not269.us.us.us494.us.us845.us.us.us.not, label %for.body87.lr.ph.us.us.us498.us.us849.us.us.us, label %for.cond67.loopexit.us.us.us495.us.us846.us.us.us
for.cond67.loopexit.us.us.us495.us.us846.us.us.us: ; preds = %for.cond84.loopexit.us.us334.us374.us.us.us856.us.us.us, %for.body70.us.us.us483.us.us841.us.us.us
%cnt.12.lcssa.us.us.us496.us.us847.us.us.us = phi i32 [ %cnt.10319.us.us.us485.us.us843.us.us.us, %for.body70.us.us.us483.us.us841.us.us.us ], [ %cnt.14.lcssa.us.us335.us375.us.us.us857.us.us.us, %for.cond84.loopexit.us.us334.us374.us.us.us856.us.us.us ]
%cmp69.not.us.us.us497.us.us848.us.us.us.not = icmp slt i32 %n.0320.us.us.us484.us.us842.us.us.us, %sub68
%indvar.next2256 = add i32 %indvar2255, 1
br i1 %cmp69.not.us.us.us497.us.us848.us.us.us.not, label %for.body70.us.us.us483.us.us841.us.us.us, label %for.cond51.loopexit.us.us.us663.us.us.us.us, !llvm.loop !15
for.body87.lr.ph.us.us.us498.us.us849.us.us.us: ; preds = %for.body70.us.us.us483.us.us841.us.us.us
%add131.us.us.us499.us.us850.us.us.us = add nsw i32 %add60.us.us.us655.us.us.us.us, %n.0320.us.us.us484.us.us842.us.us.us
br label %for.body87.us.us322.us369.us.us.us851.us.us.us
for.body87.us.us322.us369.us.us.us851.us.us.us: ; preds = %for.cond84.loopexit.us.us334.us374.us.us.us856.us.us.us, %for.body87.lr.ph.us.us.us498.us.us849.us.us.us
%indvar2257 = phi i32 [ %indvar.next2258, %for.cond84.loopexit.us.us334.us374.us.us.us856.us.us.us ], [ 0, %for.body87.lr.ph.us.us.us498.us.us849.us.us.us ]
%o.0271.us.us323.us370.us.us.us852.us.us.us = phi i32 [ %add101.us.us332.us372.us.us.us854.us.us.us, %for.cond84.loopexit.us.us334.us374.us.us.us856.us.us.us ], [ %add83.us.us.us493.us.us844.us.us.us, %for.body87.lr.ph.us.us.us498.us.us849.us.us.us ]
%cnt.12270.us.us324.us371.us.us.us853.us.us.us = phi i32 [ %cnt.14.lcssa.us.us335.us375.us.us.us857.us.us.us, %for.cond84.loopexit.us.us334.us374.us.us.us856.us.us.us ], [ %cnt.10319.us.us.us485.us.us843.us.us.us, %for.body87.lr.ph.us.us.us498.us.us849.us.us.us ]
%185 = add i32 %184, %indvar2257
%add101.us.us332.us372.us.us.us854.us.us.us = add nsw i32 %o.0271.us.us323.us370.us.us.us852.us.us.us, 1
%cmp104.not248.us.us333.us373.us.us.us855.us.us.us.not = icmp slt i32 %o.0271.us.us323.us370.us.us.us852.us.us.us, %sub103
br i1 %cmp104.not248.us.us333.us373.us.us.us855.us.us.us.not, label %for.body105.lr.ph.us.us337.us377.us.us.us859.us.us.us, label %for.cond84.loopexit.us.us334.us374.us.us.us856.us.us.us
for.cond84.loopexit.us.us334.us374.us.us.us856.us.us.us: ; preds = %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us.us.us, %for.body87.us.us322.us369.us.us.us851.us.us.us
%cnt.14.lcssa.us.us335.us375.us.us.us857.us.us.us = phi i32 [ %cnt.12270.us.us324.us371.us.us.us853.us.us.us, %for.body87.us.us322.us369.us.us.us851.us.us.us ], [ %cnt.16.lcssa.us.us278.us.us385.us.us.us867.us.us.us, %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us.us.us ]
%cmp86.not.us.us336.us376.us.us.us858.us.us.us.not = icmp slt i32 %o.0271.us.us323.us370.us.us.us852.us.us.us, %sub85
%indvar.next2258 = add i32 %indvar2257, 1
br i1 %cmp86.not.us.us336.us376.us.us.us858.us.us.us.not, label %for.body87.us.us322.us369.us.us.us851.us.us.us, label %for.cond67.loopexit.us.us.us495.us.us846.us.us.us, !llvm.loop !16
for.body105.lr.ph.us.us337.us377.us.us.us859.us.us.us: ; preds = %for.body87.us.us322.us369.us.us.us851.us.us.us
%add132.us.us338.us378.us.us.us860.us.us.us = add nsw i32 %add131.us.us.us499.us.us850.us.us.us, %o.0271.us.us323.us370.us.us.us852.us.us.us
br label %for.body105.us.us272.us.us379.us.us.us861.us.us.us
for.body105.us.us272.us.us379.us.us.us861.us.us.us: ; preds = %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us.us.us, %for.body105.lr.ph.us.us337.us377.us.us.us859.us.us.us
%indvar2259 = phi i32 [ %indvar.next2260, %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us.us.us ], [ 0, %for.body105.lr.ph.us.us337.us377.us.us.us859.us.us.us ]
%p.0250.us.us273.us.us380.us.us.us862.us.us.us = phi i32 [ %add120.us.us275.us.us382.us.us.us864.us.us.us, %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us.us.us ], [ %add101.us.us332.us372.us.us.us854.us.us.us, %for.body105.lr.ph.us.us337.us377.us.us.us859.us.us.us ]
%cnt.14249.us.us274.us.us381.us.us.us863.us.us.us = phi i32 [ %cnt.16.lcssa.us.us278.us.us385.us.us.us867.us.us.us, %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us.us.us ], [ %cnt.12270.us.us324.us371.us.us.us853.us.us.us, %for.body105.lr.ph.us.us337.us377.us.us.us859.us.us.us ]
%186 = add i32 %185, %indvar2259
%187 = sub i32 %sub10, %186
%add120.us.us275.us.us382.us.us.us864.us.us.us = add nsw i32 %p.0250.us.us273.us.us380.us.us.us862.us.us.us, 1
%cmp123.not245.us.us276.us.us383.us.us.us865.us.us.us.not = icmp slt i32 %p.0250.us.us273.us.us380.us.us.us862.us.us.us, %sub122
br i1 %cmp123.not245.us.us276.us.us383.us.us.us865.us.us.us.not, label %for.body124.lr.ph.us.us280.us.us387.us.us.us869.us.us.us, label %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us.us.us
for.cond102.loopexit.us.us277.us.us384.us.us.us866.us.us.us: ; preds = %for.body124.us.us.us282.us.us389.us.us.us871.us.us.us, %middle.block2261, %for.body105.us.us272.us.us379.us.us.us861.us.us.us
%cnt.16.lcssa.us.us278.us.us385.us.us.us867.us.us.us = phi i32 [ %cnt.14249.us.us274.us.us381.us.us.us863.us.us.us, %for.body105.us.us272.us.us379.us.us.us861.us.us.us ], [ %198, %middle.block2261 ], [ %spec.select244.us.us.us288.us.us395.us.us.us877.us.us.us, %for.body124.us.us.us282.us.us389.us.us.us871.us.us.us ]
%cmp104.not.us.us279.us.us386.us.us.us868.us.us.us.not = icmp slt i32 %p.0250.us.us273.us.us380.us.us.us862.us.us.us, %sub103
%indvar.next2260 = add i32 %indvar2259, 1
br i1 %cmp104.not.us.us279.us.us386.us.us.us868.us.us.us.not, label %for.body105.us.us272.us.us379.us.us.us861.us.us.us, label %for.cond84.loopexit.us.us334.us374.us.us.us856.us.us.us, !llvm.loop !20
for.body124.lr.ph.us.us280.us.us387.us.us.us869.us.us.us: ; preds = %for.body105.us.us272.us.us379.us.us.us861.us.us.us
%add133.us.us281.us.us388.us.us.us870.us.us.us = add nsw i32 %add132.us.us338.us378.us.us.us860.us.us.us, %p.0250.us.us273.us.us380.us.us.us862.us.us.us
%min.iters.check2263 = icmp ult i32 %187, 8
br i1 %min.iters.check2263, label %for.body124.us.us.us282.us.us389.us.us.us871.us.us.us.preheader, label %vector.ph2264
vector.ph2264: ; preds = %for.body124.lr.ph.us.us280.us.us387.us.us.us869.us.us.us
%n.vec2266 = and i32 %187, -8
%ind.end2267 = add i32 %add120.us.us275.us.us382.us.us.us864.us.us.us, %n.vec2266
%.splatinsert2272 = insertelement <4 x i32> poison, i32 %add120.us.us275.us.us382.us.us.us864.us.us.us, i64 0
%.splat2273 = shufflevector <4 x i32> %.splatinsert2272, <4 x i32> poison, <4 x i32> zeroinitializer
%induction2274 = add <4 x i32> %.splat2273, <i32 0, i32 1, i32 2, i32 3>
%188 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %cnt.14249.us.us274.us.us381.us.us.us863.us.us.us, i64 0
%broadcast.splatinsert2281 = insertelement <4 x i32> poison, i32 %add133.us.us281.us.us388.us.us.us870.us.us.us, i64 0
%broadcast.splat2282 = shufflevector <4 x i32> %broadcast.splatinsert2281, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body2270
vector.body2270: ; preds = %vector.body2270, %vector.ph2264
%index2271 = phi i32 [ 0, %vector.ph2264 ], [ %index.next2285, %vector.body2270 ]
%vec.ind2275 = phi <4 x i32> [ %induction2274, %vector.ph2264 ], [ %vec.ind.next2278, %vector.body2270 ]
%vec.phi2279 = phi <4 x i32> [ %188, %vector.ph2264 ], [ %195, %vector.body2270 ]
%vec.phi2280 = phi <4 x i32> [ zeroinitializer, %vector.ph2264 ], [ %196, %vector.body2270 ]
%step.add2276 = add <4 x i32> %vec.ind2275, <i32 4, i32 4, i32 4, i32 4>
%189 = add nsw <4 x i32> %broadcast.splat2282, %vec.ind2275
%190 = add nsw <4 x i32> %broadcast.splat2282, %step.add2276
%191 = icmp eq <4 x i32> %189, %broadcast.splat2284
%192 = icmp eq <4 x i32> %190, %broadcast.splat2284
%193 = zext <4 x i1> %191 to <4 x i32>
%194 = zext <4 x i1> %192 to <4 x i32>
%195 = add <4 x i32> %vec.phi2279, %193
%196 = add <4 x i32> %vec.phi2280, %194
%index.next2285 = add nuw i32 %index2271, 8
%vec.ind.next2278 = add <4 x i32> %vec.ind2275, <i32 8, i32 8, i32 8, i32 8>
%197 = icmp eq i32 %index.next2285, %n.vec2266
br i1 %197, label %middle.block2261, label %vector.body2270, !llvm.loop !38
middle.block2261: ; preds = %vector.body2270
%bin.rdx2286 = add <4 x i32> %196, %195
%198 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx2286)
%cmp.n2269 = icmp eq i32 %187, %n.vec2266
br i1 %cmp.n2269, label %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us.us.us, label %for.body124.us.us.us282.us.us389.us.us.us871.us.us.us.preheader
for.body124.us.us.us282.us.us389.us.us.us871.us.us.us.preheader: ; preds = %for.body124.lr.ph.us.us280.us.us387.us.us.us869.us.us.us, %middle.block2261
%q.0247.us.us.us283.us.us390.us.us.us872.us.us.us.ph = phi i32 [ %add120.us.us275.us.us382.us.us.us864.us.us.us, %for.body124.lr.ph.us.us280.us.us387.us.us.us869.us.us.us ], [ %ind.end2267, %middle.block2261 ]
%cnt.16246.us.us.us284.us.us391.us.us.us873.us.us.us.ph = phi i32 [ %cnt.14249.us.us274.us.us381.us.us.us863.us.us.us, %for.body124.lr.ph.us.us280.us.us387.us.us.us869.us.us.us ], [ %198, %middle.block2261 ]
br label %for.body124.us.us.us282.us.us389.us.us.us871.us.us.us
for.body124.us.us.us282.us.us389.us.us.us871.us.us.us: ; preds = %for.body124.us.us.us282.us.us389.us.us.us871.us.us.us.preheader, %for.body124.us.us.us282.us.us389.us.us.us871.us.us.us
%q.0247.us.us.us283.us.us390.us.us.us872.us.us.us = phi i32 [ %inc140.us.us.us289.us.us396.us.us.us878.us.us.us, %for.body124.us.us.us282.us.us389.us.us.us871.us.us.us ], [ %q.0247.us.us.us283.us.us390.us.us.us872.us.us.us.ph, %for.body124.us.us.us282.us.us389.us.us.us871.us.us.us.preheader ]
%cnt.16246.us.us.us284.us.us391.us.us.us873.us.us.us = phi i32 [ %spec.select244.us.us.us288.us.us395.us.us.us877.us.us.us, %for.body124.us.us.us282.us.us389.us.us.us871.us.us.us ], [ %cnt.16246.us.us.us284.us.us391.us.us.us873.us.us.us.ph, %for.body124.us.us.us282.us.us389.us.us.us871.us.us.us.preheader ]
%add134.us.us.us285.us.us392.us.us.us874.us.us.us = add nsw i32 %add133.us.us281.us.us388.us.us.us870.us.us.us, %q.0247.us.us.us283.us.us390.us.us.us872.us.us.us
%cmp135.us.us.us286.us.us393.us.us.us875.us.us.us = icmp eq i32 %add134.us.us.us285.us.us392.us.us.us874.us.us.us, %6
%inc137.us.us.us287.us.us394.us.us.us876.us.us.us = zext i1 %cmp135.us.us.us286.us.us393.us.us.us875.us.us.us to i32
%spec.select244.us.us.us288.us.us395.us.us.us877.us.us.us = add nsw i32 %cnt.16246.us.us.us284.us.us391.us.us.us873.us.us.us, %inc137.us.us.us287.us.us394.us.us.us876.us.us.us
%inc140.us.us.us289.us.us396.us.us.us878.us.us.us = add nsw i32 %q.0247.us.us.us283.us.us390.us.us.us872.us.us.us, 1
%cmp123.not.us.us.us290.us.us397.us.us.us879.us.us.us.not = icmp slt i32 %q.0247.us.us.us283.us.us390.us.us.us872.us.us.us, %sub122
br i1 %cmp123.not.us.us.us290.us.us397.us.us.us879.us.us.us.not, label %for.body124.us.us.us282.us.us389.us.us.us871.us.us.us, label %for.cond102.loopexit.us.us277.us.us384.us.us.us866.us.us.us, !llvm.loop !39
for.body39.us.us.us822.us.us: ; preds = %for.body39.lr.ph.us.us.us1189, %for.cond36.loopexit.us.us.us834.us.us
%indvar2214 = phi i32 [ %indvar.next2215, %for.cond36.loopexit.us.us.us834.us.us ], [ 0, %for.body39.lr.ph.us.us.us1189 ]
%l.0481.us.us.us823.us.us = phi i32 [ %add50.us.us.us832.us.us, %for.cond36.loopexit.us.us.us834.us.us ], [ %add35.us.us.us1184, %for.body39.lr.ph.us.us.us1189 ]
%cnt.6480.us.us.us824.us.us = phi i32 [ %cnt.8.lcssa.us.us.us835.us.us, %for.cond36.loopexit.us.us.us834.us.us ], [ %cnt.5.us.us.us1183, %for.body39.lr.ph.us.us.us1189 ]
%199 = add i32 %164, %indvar2214
%add44.us.us.us826.us.us = add nsw i32 %add29.us.us.us1178, %l.0481.us.us.us823.us.us
%cmp45.us.us.us827.us.us = icmp eq i32 %add44.us.us.us826.us.us, %6
%narrow1839 = select i1 %cmp40, i1 %cmp45.us.us.us827.us.us, i1 false
%spec.select239.us.us.us829.us.us = zext i1 %narrow1839 to i32
%cnt.7.us.us.us831.us.us = add nsw i32 %cnt.6480.us.us.us824.us.us, %spec.select239.us.us.us829.us.us
%add50.us.us.us832.us.us = add nsw i32 %l.0481.us.us.us823.us.us, 1
%cmp53.not365.us.us.us833.us.us.not = icmp slt i32 %l.0481.us.us.us823.us.us, %sub52
br i1 %cmp53.not365.us.us.us833.us.us.not, label %for.body54.us.us.us651.us.us.us.us1217, label %for.cond36.loopexit.us.us.us834.us.us
for.cond36.loopexit.us.us.us834.us.us: ; preds = %for.cond51.loopexit.us.us.us663.us.us.us.us1222, %for.body39.us.us.us822.us.us
%cnt.8.lcssa.us.us.us835.us.us = phi i32 [ %cnt.7.us.us.us831.us.us, %for.body39.us.us.us822.us.us ], [ %cnt.10.lcssa.us.us.us664.us.us.us.us1223, %for.cond51.loopexit.us.us.us663.us.us.us.us1222 ]
%cmp38.not.us.us.us836.us.us.not = icmp slt i32 %l.0481.us.us.us823.us.us, %sub37
%indvar.next2215 = add i32 %indvar2214, 1
br i1 %cmp38.not.us.us.us836.us.us.not, label %for.body39.us.us.us822.us.us, label %for.cond22.loopexit.us.us.us1186, !llvm.loop !13
for.body54.us.us.us651.us.us.us.us1217: ; preds = %for.body39.us.us.us822.us.us, %for.cond51.loopexit.us.us.us663.us.us.us.us1222
%indvar2216 = phi i32 [ %indvar.next2217, %for.cond51.loopexit.us.us.us663.us.us.us.us1222 ], [ 0, %for.body39.us.us.us822.us.us ]
%m.0367.us.us.us652.us.us.us.us1218 = phi i32 [ %add66.us.us.us661.us.us.us.us1220, %for.cond51.loopexit.us.us.us663.us.us.us.us1222 ], [ %add50.us.us.us832.us.us, %for.body39.us.us.us822.us.us ]
%cnt.8366.us.us.us653.us.us.us.us1219 = phi i32 [ %cnt.10.lcssa.us.us.us664.us.us.us.us1223, %for.cond51.loopexit.us.us.us663.us.us.us.us1222 ], [ %cnt.7.us.us.us831.us.us, %for.body39.us.us.us822.us.us ]
%200 = add i32 %199, %indvar2216
%add66.us.us.us661.us.us.us.us1220 = add nsw i32 %m.0367.us.us.us652.us.us.us.us1218, 1
%cmp69.not318.us.us.us662.us.us.us.us1221.not = icmp slt i32 %m.0367.us.us.us652.us.us.us.us1218, %sub68
br i1 %cmp69.not318.us.us.us662.us.us.us.us1221.not, label %for.body70.lr.ph.us.us.us666.us.us.us.us1225, label %for.cond51.loopexit.us.us.us663.us.us.us.us1222
for.cond51.loopexit.us.us.us663.us.us.us.us1222: ; preds = %for.cond67.loopexit.us.us.us495.us.us.us.us.us.us1237, %for.body54.us.us.us651.us.us.us.us1217
%cnt.10.lcssa.us.us.us664.us.us.us.us1223 = phi i32 [ %cnt.8366.us.us.us653.us.us.us.us1219, %for.body54.us.us.us651.us.us.us.us1217 ], [ %cnt.12.lcssa.us.us.us496.us.us.us.us.us.us1238, %for.cond67.loopexit.us.us.us495.us.us.us.us.us.us1237 ]
%cmp53.not.us.us.us665.us.us.us.us1224.not = icmp slt i32 %m.0367.us.us.us652.us.us.us.us1218, %sub52
%indvar.next2217 = add i32 %indvar2216, 1
br i1 %cmp53.not.us.us.us665.us.us.us.us1224.not, label %for.body54.us.us.us651.us.us.us.us1217, label %for.cond36.loopexit.us.us.us834.us.us, !llvm.loop !14
for.body70.lr.ph.us.us.us666.us.us.us.us1225: ; preds = %for.body54.us.us.us651.us.us.us.us1217
%add76.us.us.us667.us.us.us.us1226 = add nsw i32 %add44.us.us.us826.us.us, %m.0367.us.us.us652.us.us.us.us1218
br label %for.body70.us.us.us483.us.us.us.us.us.us1228
for.body70.us.us.us483.us.us.us.us.us.us1228: ; preds = %for.cond67.loopexit.us.us.us495.us.us.us.us.us.us1237, %for.body70.lr.ph.us.us.us666.us.us.us.us1225
%indvar2218 = phi i32 [ %indvar.next2219, %for.cond67.loopexit.us.us.us495.us.us.us.us.us.us1237 ], [ 0, %for.body70.lr.ph.us.us.us666.us.us.us.us1225 ]
%n.0320.us.us.us484.us.us.us.us.us.us1229 = phi i32 [ %add83.us.us.us493.us.us.us.us.us.us1235, %for.cond67.loopexit.us.us.us495.us.us.us.us.us.us1237 ], [ %add66.us.us.us661.us.us.us.us1220, %for.body70.lr.ph.us.us.us666.us.us.us.us1225 ]
%cnt.10319.us.us.us485.us.us.us.us.us.us1230 = phi i32 [ %cnt.12.lcssa.us.us.us496.us.us.us.us.us.us1238, %for.cond67.loopexit.us.us.us495.us.us.us.us.us.us1237 ], [ %cnt.8366.us.us.us653.us.us.us.us1219, %for.body70.lr.ph.us.us.us666.us.us.us.us1225 ]
%201 = add i32 %200, %indvar2218
%add77.us.us.us487.us.us.us.us.us.us1231 = add nsw i32 %add76.us.us.us667.us.us.us.us1226, %n.0320.us.us.us484.us.us.us.us.us.us1229
%cmp78.us.us.us488.us.us.us.us.us.us1232 = icmp eq i32 %add77.us.us.us487.us.us.us.us.us.us1231, %6
%inc80.us.us.us489.us.us.us.us.us.us1233 = zext i1 %cmp78.us.us.us488.us.us.us.us.us.us1232 to i32
%spec.select241.us.us.us490.us.us.us.us.us.us1234 = add nsw i32 %cnt.10319.us.us.us485.us.us.us.us.us.us1230, %inc80.us.us.us489.us.us.us.us.us.us1233
%add83.us.us.us493.us.us.us.us.us.us1235 = add nsw i32 %n.0320.us.us.us484.us.us.us.us.us.us1229, 1
%cmp86.not269.us.us.us494.us.us.us.us.us.us1236.not = icmp slt i32 %n.0320.us.us.us484.us.us.us.us.us.us1229, %sub85
br i1 %cmp86.not269.us.us.us494.us.us.us.us.us.us1236.not, label %for.body87.us.us322.us369.us.us.us.us.us.us.us1242, label %for.cond67.loopexit.us.us.us495.us.us.us.us.us.us1237
for.cond67.loopexit.us.us.us495.us.us.us.us.us.us1237: ; preds = %for.cond84.loopexit.us.us334.us374.us.us.us.us.us.us.us1247, %for.body70.us.us.us483.us.us.us.us.us.us1228
%cnt.12.lcssa.us.us.us496.us.us.us.us.us.us1238 = phi i32 [ %spec.select241.us.us.us490.us.us.us.us.us.us1234, %for.body70.us.us.us483.us.us.us.us.us.us1228 ], [ %cnt.14.lcssa.us.us335.us375.us.us.us.us.us.us.us1248, %for.cond84.loopexit.us.us334.us374.us.us.us.us.us.us.us1247 ]
%cmp69.not.us.us.us497.us.us.us.us.us.us1239.not = icmp slt i32 %n.0320.us.us.us484.us.us.us.us.us.us1229, %sub68
%indvar.next2219 = add i32 %indvar2218, 1
br i1 %cmp69.not.us.us.us497.us.us.us.us.us.us1239.not, label %for.body70.us.us.us483.us.us.us.us.us.us1228, label %for.cond51.loopexit.us.us.us663.us.us.us.us1222, !llvm.loop !15
for.body87.us.us322.us369.us.us.us.us.us.us.us1242: ; preds = %for.body70.us.us.us483.us.us.us.us.us.us1228, %for.cond84.loopexit.us.us334.us374.us.us.us.us.us.us.us1247
%indvar2220 = phi i32 [ %indvar.next2221, %for.cond84.loopexit.us.us334.us374.us.us.us.us.us.us.us1247 ], [ 0, %for.body70.us.us.us483.us.us.us.us.us.us1228 ]
%o.0271.us.us323.us370.us.us.us.us.us.us.us1243 = phi i32 [ %add101.us.us332.us372.us.us.us.us.us.us.us1245, %for.cond84.loopexit.us.us334.us374.us.us.us.us.us.us.us1247 ], [ %add83.us.us.us493.us.us.us.us.us.us1235, %for.body70.us.us.us483.us.us.us.us.us.us1228 ]
%cnt.12270.us.us324.us371.us.us.us.us.us.us.us1244 = phi i32 [ %cnt.14.lcssa.us.us335.us375.us.us.us.us.us.us.us1248, %for.cond84.loopexit.us.us334.us374.us.us.us.us.us.us.us1247 ], [ %spec.select241.us.us.us490.us.us.us.us.us.us1234, %for.body70.us.us.us483.us.us.us.us.us.us1228 ]
%202 = add i32 %201, %indvar2220
%add101.us.us332.us372.us.us.us.us.us.us.us1245 = add nsw i32 %o.0271.us.us323.us370.us.us.us.us.us.us.us1243, 1
%cmp104.not248.us.us333.us373.us.us.us.us.us.us.us1246.not = icmp slt i32 %o.0271.us.us323.us370.us.us.us.us.us.us.us1243, %sub103
br i1 %cmp104.not248.us.us333.us373.us.us.us.us.us.us.us1246.not, label %for.body105.lr.ph.us.us337.us377.us.us.us.us.us.us.us1250, label %for.cond84.loopexit.us.us334.us374.us.us.us.us.us.us.us1247
for.cond84.loopexit.us.us334.us374.us.us.us.us.us.us.us1247: ; preds = %for.cond102.loopexit.us.us277.us.us384.us.us.us.us.us.us.us1257, %for.body87.us.us322.us369.us.us.us.us.us.us.us1242
%cnt.14.lcssa.us.us335.us375.us.us.us.us.us.us.us1248 = phi i32 [ %cnt.12270.us.us324.us371.us.us.us.us.us.us.us1244, %for.body87.us.us322.us369.us.us.us.us.us.us.us1242 ], [ %cnt.16.lcssa.us.us278.us.us385.us.us.us.us.us.us.us1258, %for.cond102.loopexit.us.us277.us.us384.us.us.us.us.us.us.us1257 ]
%cmp86.not.us.us336.us376.us.us.us.us.us.us.us1249.not = icmp slt i32 %o.0271.us.us323.us370.us.us.us.us.us.us.us1243, %sub85
%indvar.next2221 = add i32 %indvar2220, 1
br i1 %cmp86.not.us.us336.us376.us.us.us.us.us.us.us1249.not, label %for.body87.us.us322.us369.us.us.us.us.us.us.us1242, label %for.cond67.loopexit.us.us.us495.us.us.us.us.us.us1237, !llvm.loop !16
for.body105.lr.ph.us.us337.us377.us.us.us.us.us.us.us1250: ; preds = %for.body87.us.us322.us369.us.us.us.us.us.us.us1242
%add132.us.us338.us378.us.us.us.us.us.us.us1251 = add nsw i32 %add77.us.us.us487.us.us.us.us.us.us1231, %o.0271.us.us323.us370.us.us.us.us.us.us.us1243
br label %for.body105.us.us272.us.us379.us.us.us.us.us.us.us1252
for.body105.us.us272.us.us379.us.us.us.us.us.us.us1252: ; preds = %for.cond102.loopexit.us.us277.us.us384.us.us.us.us.us.us.us1257, %for.body105.lr.ph.us.us337.us377.us.us.us.us.us.us.us1250
%indvar2222 = phi i32 [ %indvar.next2223, %for.cond102.loopexit.us.us277.us.us384.us.us.us.us.us.us.us1257 ], [ 0, %for.body105.lr.ph.us.us337.us377.us.us.us.us.us.us.us1250 ]
%p.0250.us.us273.us.us380.us.us.us.us.us.us.us1253 = phi i32 [ %add120.us.us275.us.us382.us.us.us.us.us.us.us1255, %for.cond102.loopexit.us.us277.us.us384.us.us.us.us.us.us.us1257 ], [ %add101.us.us332.us372.us.us.us.us.us.us.us1245, %for.body105.lr.ph.us.us337.us377.us.us.us.us.us.us.us1250 ]
%cnt.14249.us.us274.us.us381.us.us.us.us.us.us.us1254 = phi i32 [ %cnt.16.lcssa.us.us278.us.us385.us.us.us.us.us.us.us1258, %for.cond102.loopexit.us.us277.us.us384.us.us.us.us.us.us.us1257 ], [ %cnt.12270.us.us324.us371.us.us.us.us.us.us.us1244, %for.body105.lr.ph.us.us337.us377.us.us.us.us.us.us.us1250 ]
%203 = add i32 %202, %indvar2222
%204 = sub i32 %sub10, %203
%add120.us.us275.us.us382.us.us.us.us.us.us.us1255 = add nsw i32 %p.0250.us.us273.us.us380.us.us.us.us.us.us.us1253, 1
%cmp123.not245.us.us276.us.us383.us.us.us.us.us.us.us1256.not = icmp slt i32 %p.0250.us.us273.us.us380.us.us.us.us.us.us.us1253, %sub122
br i1 %cmp123.not245.us.us276.us.us383.us.us.us.us.us.us.us1256.not, label %for.body124.lr.ph.us.us280.us.us387.us.us.us.us.us.us.us1260, label %for.cond102.loopexit.us.us277.us.us384.us.us.us.us.us.us.us1257
for.cond102.loopexit.us.us277.us.us384.us.us.us.us.us.us.us1257: ; preds = %for.body124.us.us.us282.us.us389.us.us.us.us.us.us.us1262, %middle.block2224, %for.body105.us.us272.us.us379.us.us.us.us.us.us.us1252
%cnt.16.lcssa.us.us278.us.us385.us.us.us.us.us.us.us1258 = phi i32 [ %cnt.14249.us.us274.us.us381.us.us.us.us.us.us.us1254, %for.body105.us.us272.us.us379.us.us.us.us.us.us.us1252 ], [ %215, %middle.block2224 ], [ %spec.select244.us.us.us288.us.us395.us.us.us.us.us.us.us1268, %for.body124.us.us.us282.us.us389.us.us.us.us.us.us.us1262 ]
%cmp104.not.us.us279.us.us386.us.us.us.us.us.us.us1259.not = icmp slt i32 %p.0250.us.us273.us.us380.us.us.us.us.us.us.us1253, %sub103
%indvar.next2223 = add i32 %indvar2222, 1
br i1 %cmp104.not.us.us279.us.us386.us.us.us.us.us.us.us1259.not, label %for.body105.us.us272.us.us379.us.us.us.us.us.us.us1252, label %for.cond84.loopexit.us.us334.us374.us.us.us.us.us.us.us1247, !llvm.loop !20
for.body124.lr.ph.us.us280.us.us387.us.us.us.us.us.us.us1260: ; preds = %for.body105.us.us272.us.us379.us.us.us.us.us.us.us1252
%add133.us.us281.us.us388.us.us.us.us.us.us.us1261 = add nsw i32 %add132.us.us338.us378.us.us.us.us.us.us.us1251, %p.0250.us.us273.us.us380.us.us.us.us.us.us.us1253
%min.iters.check2226 = icmp ult i32 %204, 8
br i1 %min.iters.check2226, label %for.body124.us.us.us282.us.us389.us.us.us.us.us.us.us1262.preheader, label %vector.ph2227
vector.ph2227: ; preds = %for.body124.lr.ph.us.us280.us.us387.us.us.us.us.us.us.us1260
%n.vec2229 = and i32 %204, -8
%ind.end2230 = add i32 %add120.us.us275.us.us382.us.us.us.us.us.us.us1255, %n.vec2229
%.splatinsert2235 = insertelement <4 x i32> poison, i32 %add120.us.us275.us.us382.us.us.us.us.us.us.us1255, i64 0
%.splat2236 = shufflevector <4 x i32> %.splatinsert2235, <4 x i32> poison, <4 x i32> zeroinitializer
%induction2237 = add <4 x i32> %.splat2236, <i32 0, i32 1, i32 2, i32 3>
%205 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %cnt.14249.us.us274.us.us381.us.us.us.us.us.us.us1254, i64 0
%broadcast.splatinsert2244 = insertelement <4 x i32> poison, i32 %add133.us.us281.us.us388.us.us.us.us.us.us.us1261, i64 0
%broadcast.splat2245 = shufflevector <4 x i32> %broadcast.splatinsert2244, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body2233
vector.body2233: ; preds = %vector.body2233, %vector.ph2227
%index2234 = phi i32 [ 0, %vector.ph2227 ], [ %index.next2248, %vector.body2233 ]
%vec.ind2238 = phi <4 x i32> [ %induction2237, %vector.ph2227 ], [ %vec.ind.next2241, %vector.body2233 ]
%vec.phi2242 = phi <4 x i32> [ %205, %vector.ph2227 ], [ %212, %vector.body2233 ]
%vec.phi2243 = phi <4 x i32> [ zeroinitializer, %vector.ph2227 ], [ %213, %vector.body2233 ]
%step.add2239 = add <4 x i32> %vec.ind2238, <i32 4, i32 4, i32 4, i32 4>
%206 = add nsw <4 x i32> %broadcast.splat2245, %vec.ind2238
%207 = add nsw <4 x i32> %broadcast.splat2245, %step.add2239
%208 = icmp eq <4 x i32> %206, %broadcast.splat2247
%209 = icmp eq <4 x i32> %207, %broadcast.splat2247
%210 = zext <4 x i1> %208 to <4 x i32>
%211 = zext <4 x i1> %209 to <4 x i32>
%212 = add <4 x i32> %vec.phi2242, %210
%213 = add <4 x i32> %vec.phi2243, %211
%index.next2248 = add nuw i32 %index2234, 8
%vec.ind.next2241 = add <4 x i32> %vec.ind2238, <i32 8, i32 8, i32 8, i32 8>
%214 = icmp eq i32 %index.next2248, %n.vec2229
br i1 %214, label %middle.block2224, label %vector.body2233, !llvm.loop !40
middle.block2224: ; preds = %vector.body2233
%bin.rdx2249 = add <4 x i32> %213, %212
%215 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx2249)
%cmp.n2232 = icmp eq i32 %204, %n.vec2229
br i1 %cmp.n2232, label %for.cond102.loopexit.us.us277.us.us384.us.us.us.us.us.us.us1257, label %for.body124.us.us.us282.us.us389.us.us.us.us.us.us.us1262.preheader
for.body124.us.us.us282.us.us389.us.us.us.us.us.us.us1262.preheader: ; preds = %for.body124.lr.ph.us.us280.us.us387.us.us.us.us.us.us.us1260, %middle.block2224
%q.0247.us.us.us283.us.us390.us.us.us.us.us.us.us1263.ph = phi i32 [ %add120.us.us275.us.us382.us.us.us.us.us.us.us1255, %for.body124.lr.ph.us.us280.us.us387.us.us.us.us.us.us.us1260 ], [ %ind.end2230, %middle.block2224 ]
%cnt.16246.us.us.us284.us.us391.us.us.us.us.us.us.us1264.ph = phi i32 [ %cnt.14249.us.us274.us.us381.us.us.us.us.us.us.us1254, %for.body124.lr.ph.us.us280.us.us387.us.us.us.us.us.us.us1260 ], [ %215, %middle.block2224 ]
br label %for.body124.us.us.us282.us.us389.us.us.us.us.us.us.us1262
for.body124.us.us.us282.us.us389.us.us.us.us.us.us.us1262: ; preds = %for.body124.us.us.us282.us.us389.us.us.us.us.us.us.us1262.preheader, %for.body124.us.us.us282.us.us389.us.us.us.us.us.us.us1262
%q.0247.us.us.us283.us.us390.us.us.us.us.us.us.us1263 = phi i32 [ %inc140.us.us.us289.us.us396.us.us.us.us.us.us.us1269, %for.body124.us.us.us282.us.us389.us.us.us.us.us.us.us1262 ], [ %q.0247.us.us.us283.us.us390.us.us.us.us.us.us.us1263.ph, %for.body124.us.us.us282.us.us389.us.us.us.us.us.us.us1262.preheader ]
%cnt.16246.us.us.us284.us.us391.us.us.us.us.us.us.us1264 = phi i32 [ %spec.select244.us.us.us288.us.us395.us.us.us.us.us.us.us1268, %for.body124.us.us.us282.us.us389.us.us.us.us.us.us.us1262 ], [ %cnt.16246.us.us.us284.us.us391.us.us.us.us.us.us.us1264.ph, %for.body124.us.us.us282.us.us389.us.us.us.us.us.us.us1262.preheader ]
%add134.us.us.us285.us.us392.us.us.us.us.us.us.us1265 = add nsw i32 %add133.us.us281.us.us388.us.us.us.us.us.us.us1261, %q.0247.us.us.us283.us.us390.us.us.us.us.us.us.us1263
%cmp135.us.us.us286.us.us393.us.us.us.us.us.us.us1266 = icmp eq i32 %add134.us.us.us285.us.us392.us.us.us.us.us.us.us1265, %6
%inc137.us.us.us287.us.us394.us.us.us.us.us.us.us1267 = zext i1 %cmp135.us.us.us286.us.us393.us.us.us.us.us.us.us1266 to i32
%spec.select244.us.us.us288.us.us395.us.us.us.us.us.us.us1268 = add nsw i32 %cnt.16246.us.us.us284.us.us391.us.us.us.us.us.us.us1264, %inc137.us.us.us287.us.us394.us.us.us.us.us.us.us1267
%inc140.us.us.us289.us.us396.us.us.us.us.us.us.us1269 = add nsw i32 %q.0247.us.us.us283.us.us390.us.us.us.us.us.us.us1263, 1
%cmp123.not.us.us.us290.us.us397.us.us.us.us.us.us.us1270.not = icmp slt i32 %q.0247.us.us.us283.us.us390.us.us.us.us.us.us.us1263, %sub122
br i1 %cmp123.not.us.us.us290.us.us397.us.us.us.us.us.us.us1270.not, label %for.body124.us.us.us282.us.us389.us.us.us.us.us.us.us1262, label %for.cond102.loopexit.us.us277.us.us384.us.us.us.us.us.us.us1257, !llvm.loop !41
for.body.lr.ph.split: ; preds = %for.body.lr.ph
br i1 %cmp106, label %for.body.us1332.preheader, label %for.body.preheader
for.body.us1332.preheader: ; preds = %for.body.lr.ph.split
%216 = extractelement <2 x i32> %.fr2440, i64 0
%broadcast.splat2399 = shufflevector <2 x i32> %.fr2440, <2 x i32> poison, <4 x i32> zeroinitializer
%broadcast.splat2360 = shufflevector <2 x i32> %.fr2440, <2 x i32> poison, <4 x i32> zeroinitializer
br label %for.body.us1332
for.body.preheader: ; preds = %for.body.lr.ph.split
%smax = call i32 @llvm.smax.i32(i32 %sub, i32 0)
%217 = extractelement <2 x i32> %.fr2440, i64 0
%broadcast.splat2436 = shufflevector <2 x i32> %.fr2440, <2 x i32> poison, <4 x i32> zeroinitializer
br label %for.body
for.body.us1332: ; preds = %for.body.us1332.preheader, %for.cond.loopexit.us1341
%i.01172.us1333 = phi i32 [ %add.us1339, %for.cond.loopexit.us1341 ], [ 0, %for.body.us1332.preheader ]
%cnt.01171.us1334 = phi i32 [ %cnt.2.lcssa.us1342, %for.cond.loopexit.us1341 ], [ 0, %for.body.us1332.preheader ]
%cmp5.us1335 = icmp eq i32 %i.01172.us1333, %216
%or.cond237.us1336 = and i1 %cmp3, %cmp5.us1335
%inc.us1337 = zext i1 %or.cond237.us1336 to i32
%cnt.1.us1338 = add nsw i32 %cnt.01171.us1334, %inc.us1337
%add.us1339 = add nuw i32 %i.01172.us1333, 1
%cmp11.not818.us1340.not = icmp slt i32 %i.01172.us1333, %sub10
br i1 %cmp11.not818.us1340.not, label %for.body12.lr.ph.us1344, label %for.cond.loopexit.us1341
for.cond.loopexit.us1341: ; preds = %for.cond9.loopexit.us948.us, %for.cond9.loopexit.us948.us.us1505, %for.body.us1332
%cnt.2.lcssa.us1342 = phi i32 [ %cnt.1.us1338, %for.body.us1332 ], [ %cnt.4.lcssa.us949.us.us1506, %for.cond9.loopexit.us948.us.us1505 ], [ %cnt.4.lcssa.us949.us, %for.cond9.loopexit.us948.us ]
%exitcond1882.not = icmp eq i32 %i.01172.us1333, %sub
br i1 %exitcond1882.not, label %for.end164, label %for.body.us1332, !llvm.loop !9
for.body12.lr.ph.us1344: ; preds = %for.body.us1332
br i1 %cmp55, label %for.body12.us938.us.us1495, label %for.body12.us938.us
for.body12.us938.us.us1495: ; preds = %for.body12.lr.ph.us1344, %for.cond9.loopexit.us948.us.us1505
%indvar2325 = phi i32 [ %indvar.next2326, %for.cond9.loopexit.us948.us.us1505 ], [ 0, %for.body12.lr.ph.us1344 ]
%j.0820.us939.us.us1496 = phi i32 [ %add21.us946.us.us1503, %for.cond9.loopexit.us948.us.us1505 ], [ %add.us1339, %for.body12.lr.ph.us1344 ]
%cnt.2819.us940.us.us1497 = phi i32 [ %cnt.4.lcssa.us949.us.us1506, %for.cond9.loopexit.us948.us.us1505 ], [ %cnt.1.us1338, %for.body12.lr.ph.us1344 ]
%218 = add i32 %i.01172.us1333, %indvar2325
%add15.us941.us.us1498 = add nuw nsw i32 %j.0820.us939.us.us1496, %i.01172.us1333
%cmp16.us942.us.us1499 = icmp eq i32 %add15.us941.us.us1498, %216
%narrow.us943.us.us1500 = select i1 %cmp13, i1 %cmp16.us942.us.us1499, i1 false
%spec.select.us944.us.us1501 = zext i1 %narrow.us943.us.us1500 to i32
%cnt.3.us945.us.us1502 = add nsw i32 %cnt.2819.us940.us.us1497, %spec.select.us944.us.us1501
%add21.us946.us.us1503 = add i32 %j.0820.us939.us.us1496, 1
%cmp24.not647.us947.us.us1504.not = icmp slt i32 %j.0820.us939.us.us1496, %sub23
br i1 %cmp24.not647.us947.us.us1504.not, label %for.body25.us696.us.us1345.us.us, label %for.cond9.loopexit.us948.us.us1505
for.cond9.loopexit.us948.us.us1505: ; preds = %for.cond22.loopexit.us708.us.us1357.us.us, %for.body12.us938.us.us1495
%cnt.4.lcssa.us949.us.us1506 = phi i32 [ %cnt.3.us945.us.us1502, %for.body12.us938.us.us1495 ], [ %cnt.6.lcssa.us709.us.us1358.us.us, %for.cond22.loopexit.us708.us.us1357.us.us ]
%exitcond1880.not = icmp eq i32 %add21.us946.us.us1503, %sub23
%indvar.next2326 = add i32 %indvar2325, 1
br i1 %exitcond1880.not, label %for.cond.loopexit.us1341, label %for.body12.us938.us.us1495, !llvm.loop !11
for.body25.us696.us.us1345.us.us: ; preds = %for.body12.us938.us.us1495, %for.cond22.loopexit.us708.us.us1357.us.us
%indvar2327 = phi i32 [ %indvar.next2328, %for.cond22.loopexit.us708.us.us1357.us.us ], [ 0, %for.body12.us938.us.us1495 ]
%k.0649.us697.us.us1346.us.us = phi i32 [ %add35.us706.us.us1355.us.us, %for.cond22.loopexit.us708.us.us1357.us.us ], [ %add21.us946.us.us1503, %for.body12.us938.us.us1495 ]
%cnt.4648.us698.us.us1347.us.us = phi i32 [ %cnt.6.lcssa.us709.us.us1358.us.us, %for.cond22.loopexit.us708.us.us1357.us.us ], [ %cnt.3.us945.us.us1502, %for.body12.us938.us.us1495 ]
%219 = add i32 %218, %indvar2327
%add29.us700.us.us1349.us.us = add nuw nsw i32 %add15.us941.us.us1498, %k.0649.us697.us.us1346.us.us
%cmp30.us701.us.us1350.us.us = icmp eq i32 %add29.us700.us.us1349.us.us, %216
%narrow1823 = select i1 %cmp26, i1 %cmp30.us701.us.us1350.us.us, i1 false
%spec.select238.us703.us.us1352.us.us = zext i1 %narrow1823 to i32
%cnt.5.us705.us.us1354.us.us = add nsw i32 %cnt.4648.us698.us.us1347.us.us, %spec.select238.us703.us.us1352.us.us
%add35.us706.us.us1355.us.us = add nuw nsw i32 %k.0649.us697.us.us1346.us.us, 1
%cmp38.not479.us707.us.us1356.us.us.not = icmp slt i32 %k.0649.us697.us.us1346.us.us, %sub37
br i1 %cmp38.not479.us707.us.us1356.us.us.not, label %for.body39.us527.us.us958.us.us.us.us, label %for.cond22.loopexit.us708.us.us1357.us.us
for.cond22.loopexit.us708.us.us1357.us.us: ; preds = %for.cond36.loopexit.us539.us.us970.us.us.us.us, %for.body25.us696.us.us1345.us.us
%cnt.6.lcssa.us709.us.us1358.us.us = phi i32 [ %cnt.5.us705.us.us1354.us.us, %for.body25.us696.us.us1345.us.us ], [ %cnt.8.lcssa.us540.us.us971.us.us.us.us, %for.cond36.loopexit.us539.us.us970.us.us.us.us ]
%cmp24.not.us710.us.us1359.us.us.not = icmp slt i32 %k.0649.us697.us.us1346.us.us, %sub23
%indvar.next2328 = add i32 %indvar2327, 1
br i1 %cmp24.not.us710.us.us1359.us.us.not, label %for.body25.us696.us.us1345.us.us, label %for.cond9.loopexit.us948.us.us1505, !llvm.loop !12
for.body39.us527.us.us958.us.us.us.us: ; preds = %for.body25.us696.us.us1345.us.us, %for.cond36.loopexit.us539.us.us970.us.us.us.us
%indvar2329 = phi i32 [ %indvar.next2330, %for.cond36.loopexit.us539.us.us970.us.us.us.us ], [ 0, %for.body25.us696.us.us1345.us.us ]
%l.0481.us528.us.us959.us.us.us.us = phi i32 [ %add50.us537.us.us968.us.us.us.us, %for.cond36.loopexit.us539.us.us970.us.us.us.us ], [ %add35.us706.us.us1355.us.us, %for.body25.us696.us.us1345.us.us ]
%cnt.6480.us529.us.us960.us.us.us.us = phi i32 [ %cnt.8.lcssa.us540.us.us971.us.us.us.us, %for.cond36.loopexit.us539.us.us970.us.us.us.us ], [ %cnt.5.us705.us.us1354.us.us, %for.body25.us696.us.us1345.us.us ]
%220 = add i32 %219, %indvar2329
%add44.us531.us.us962.us.us.us.us = add nsw i32 %add29.us700.us.us1349.us.us, %l.0481.us528.us.us959.us.us.us.us
%cmp45.us532.us.us963.us.us.us.us = icmp eq i32 %add44.us531.us.us962.us.us.us.us, %216
%narrow1824 = select i1 %cmp40, i1 %cmp45.us532.us.us963.us.us.us.us, i1 false
%spec.select239.us534.us.us965.us.us.us.us = zext i1 %narrow1824 to i32
%cnt.7.us536.us.us967.us.us.us.us = add nsw i32 %cnt.6480.us529.us.us960.us.us.us.us, %spec.select239.us534.us.us965.us.us.us.us
%add50.us537.us.us968.us.us.us.us = add nsw i32 %l.0481.us528.us.us959.us.us.us.us, 1
%cmp53.not365.us538.us.us969.us.us.us.us.not = icmp slt i32 %l.0481.us528.us.us959.us.us.us.us, %sub52
br i1 %cmp53.not365.us538.us.us969.us.us.us.us.not, label %for.body54.us406.us547.us717.us.us.us.us.us.us, label %for.cond36.loopexit.us539.us.us970.us.us.us.us
for.cond36.loopexit.us539.us.us970.us.us.us.us: ; preds = %for.cond51.loopexit.us418.us559.us729.us.us.us.us.us.us, %for.body39.us527.us.us958.us.us.us.us
%cnt.8.lcssa.us540.us.us971.us.us.us.us = phi i32 [ %cnt.7.us536.us.us967.us.us.us.us, %for.body39.us527.us.us958.us.us.us.us ], [ %cnt.10.lcssa.us419.us560.us730.us.us.us.us.us.us, %for.cond51.loopexit.us418.us559.us729.us.us.us.us.us.us ]
%cmp38.not.us541.us.us972.us.us.us.us.not = icmp slt i32 %l.0481.us528.us.us959.us.us.us.us, %sub37
%indvar.next2330 = add i32 %indvar2329, 1
br i1 %cmp38.not.us541.us.us972.us.us.us.us.not, label %for.body39.us527.us.us958.us.us.us.us, label %for.cond22.loopexit.us708.us.us1357.us.us, !llvm.loop !13
for.body54.us406.us547.us717.us.us.us.us.us.us: ; preds = %for.body39.us527.us.us958.us.us.us.us, %for.cond51.loopexit.us418.us559.us729.us.us.us.us.us.us
%indvar2331 = phi i32 [ %indvar.next2332, %for.cond51.loopexit.us418.us559.us729.us.us.us.us.us.us ], [ 0, %for.body39.us527.us.us958.us.us.us.us ]
%m.0367.us407.us548.us718.us.us.us.us.us.us = phi i32 [ %add66.us416.us557.us727.us.us.us.us.us.us, %for.cond51.loopexit.us418.us559.us729.us.us.us.us.us.us ], [ %add50.us537.us.us968.us.us.us.us, %for.body39.us527.us.us958.us.us.us.us ]
%cnt.8366.us408.us549.us719.us.us.us.us.us.us = phi i32 [ %cnt.10.lcssa.us419.us560.us730.us.us.us.us.us.us, %for.cond51.loopexit.us418.us559.us729.us.us.us.us.us.us ], [ %cnt.7.us536.us.us967.us.us.us.us, %for.body39.us527.us.us958.us.us.us.us ]
%221 = add i32 %220, %indvar2331
%add60.us410.us551.us721.us.us.us.us.us.us = add nsw i32 %add44.us531.us.us962.us.us.us.us, %m.0367.us407.us548.us718.us.us.us.us.us.us
%cmp61.us411.us552.us722.us.us.us.us.us.us = icmp eq i32 %add60.us410.us551.us721.us.us.us.us.us.us, %216
%inc63.us412.us553.us723.us.us.us.us.us.us = zext i1 %cmp61.us411.us552.us722.us.us.us.us.us.us to i32
%spec.select240.us413.us554.us724.us.us.us.us.us.us = add nsw i32 %cnt.8366.us408.us549.us719.us.us.us.us.us.us, %inc63.us412.us553.us723.us.us.us.us.us.us
%add66.us416.us557.us727.us.us.us.us.us.us = add nsw i32 %m.0367.us407.us548.us718.us.us.us.us.us.us, 1
%cmp69.not318.us417.us558.us728.us.us.us.us.us.us.not = icmp slt i32 %m.0367.us407.us548.us718.us.us.us.us.us.us, %sub68
br i1 %cmp69.not318.us417.us558.us728.us.us.us.us.us.us.not, label %for.body70.us343.us425.us.us.us.us.us.us.us.us, label %for.cond51.loopexit.us418.us559.us729.us.us.us.us.us.us
for.cond51.loopexit.us418.us559.us729.us.us.us.us.us.us: ; preds = %for.cond67.loopexit.us355.us437.us.us.us.us.us.us.us.us, %for.body54.us406.us547.us717.us.us.us.us.us.us
%cnt.10.lcssa.us419.us560.us730.us.us.us.us.us.us = phi i32 [ %spec.select240.us413.us554.us724.us.us.us.us.us.us, %for.body54.us406.us547.us717.us.us.us.us.us.us ], [ %cnt.12.lcssa.us356.us438.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us355.us437.us.us.us.us.us.us.us.us ]
%cmp53.not.us420.us561.us731.us.us.us.us.us.us.not = icmp slt i32 %m.0367.us407.us548.us718.us.us.us.us.us.us, %sub52
%indvar.next2332 = add i32 %indvar2331, 1
br i1 %cmp53.not.us420.us561.us731.us.us.us.us.us.us.not, label %for.body54.us406.us547.us717.us.us.us.us.us.us, label %for.cond36.loopexit.us539.us.us970.us.us.us.us, !llvm.loop !14
for.body70.us343.us425.us.us.us.us.us.us.us.us: ; preds = %for.body54.us406.us547.us717.us.us.us.us.us.us, %for.cond67.loopexit.us355.us437.us.us.us.us.us.us.us.us
%indvar2333 = phi i32 [ %indvar.next2334, %for.cond67.loopexit.us355.us437.us.us.us.us.us.us.us.us ], [ 0, %for.body54.us406.us547.us717.us.us.us.us.us.us ]
%n.0320.us344.us426.us.us.us.us.us.us.us.us = phi i32 [ %add83.us353.us435.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us355.us437.us.us.us.us.us.us.us.us ], [ %add66.us416.us557.us727.us.us.us.us.us.us, %for.body54.us406.us547.us717.us.us.us.us.us.us ]
%cnt.10319.us345.us427.us.us.us.us.us.us.us.us = phi i32 [ %cnt.12.lcssa.us356.us438.us.us.us.us.us.us.us.us, %for.cond67.loopexit.us355.us437.us.us.us.us.us.us.us.us ], [ %spec.select240.us413.us554.us724.us.us.us.us.us.us, %for.body54.us406.us547.us717.us.us.us.us.us.us ]
%222 = add i32 %221, %indvar2333
%add83.us353.us435.us.us.us.us.us.us.us.us = add nsw i32 %n.0320.us344.us426.us.us.us.us.us.us.us.us, 1
%cmp86.not269.us354.us436.us.us.us.us.us.us.us.us.not = icmp slt i32 %n.0320.us344.us426.us.us.us.us.us.us.us.us, %sub85
br i1 %cmp86.not269.us354.us436.us.us.us.us.us.us.us.us.not, label %for.body87.lr.ph.us358.us440.us.us.us.us.us.us.us.us, label %for.cond67.loopexit.us355.us437.us.us.us.us.us.us.us.us
for.cond67.loopexit.us355.us437.us.us.us.us.us.us.us.us: ; preds = %for.cond84.loopexit.us310.us.us.us.us.us.us.us.us.us.us, %for.body70.us343.us425.us.us.us.us.us.us.us.us
%cnt.12.lcssa.us356.us438.us.us.us.us.us.us.us.us = phi i32 [ %cnt.10319.us345.us427.us.us.us.us.us.us.us.us, %for.body70.us343.us425.us.us.us.us.us.us.us.us ], [ %cnt.14.lcssa.us311.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us310.us.us.us.us.us.us.us.us.us.us ]
%cmp69.not.us357.us439.us.us.us.us.us.us.us.us.not = icmp slt i32 %n.0320.us344.us426.us.us.us.us.us.us.us.us, %sub68
%indvar.next2334 = add i32 %indvar2333, 1
br i1 %cmp69.not.us357.us439.us.us.us.us.us.us.us.us.not, label %for.body70.us343.us425.us.us.us.us.us.us.us.us, label %for.cond51.loopexit.us418.us559.us729.us.us.us.us.us.us, !llvm.loop !15
for.body87.lr.ph.us358.us440.us.us.us.us.us.us.us.us: ; preds = %for.body70.us343.us425.us.us.us.us.us.us.us.us
%add112.us360.us441.us.us.us.us.us.us.us.us = add nsw i32 %add60.us410.us551.us721.us.us.us.us.us.us, %n.0320.us344.us426.us.us.us.us.us.us.us.us
br label %for.body87.us298.us.us.us.us.us.us.us.us.us.us
for.body87.us298.us.us.us.us.us.us.us.us.us.us: ; preds = %for.cond84.loopexit.us310.us.us.us.us.us.us.us.us.us.us, %for.body87.lr.ph.us358.us440.us.us.us.us.us.us.us.us
%indvar2335 = phi i32 [ %indvar.next2336, %for.cond84.loopexit.us310.us.us.us.us.us.us.us.us.us.us ], [ 0, %for.body87.lr.ph.us358.us440.us.us.us.us.us.us.us.us ]
%o.0271.us299.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add101.us308.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us310.us.us.us.us.us.us.us.us.us.us ], [ %add83.us353.us435.us.us.us.us.us.us.us.us, %for.body87.lr.ph.us358.us440.us.us.us.us.us.us.us.us ]
%cnt.12270.us300.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.14.lcssa.us311.us.us.us.us.us.us.us.us.us.us, %for.cond84.loopexit.us310.us.us.us.us.us.us.us.us.us.us ], [ %cnt.10319.us345.us427.us.us.us.us.us.us.us.us, %for.body87.lr.ph.us358.us440.us.us.us.us.us.us.us.us ]
%223 = add i32 %222, %indvar2335
%224 = sub i32 %sub10, %223
%add101.us308.us.us.us.us.us.us.us.us.us.us = add nsw i32 %o.0271.us299.us.us.us.us.us.us.us.us.us.us, 1
%cmp104.not248.us309.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %o.0271.us299.us.us.us.us.us.us.us.us.us.us, %sub103
br i1 %cmp104.not248.us309.us.us.us.us.us.us.us.us.us.us.not, label %for.body105.lr.ph.us313.us.us.us.us.us.us.us.us.us.us, label %for.cond84.loopexit.us310.us.us.us.us.us.us.us.us.us.us
for.cond84.loopexit.us310.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body105.us253.us.us.us.us.us.us.us.us.us.us.us, %middle.block2337, %for.body87.us298.us.us.us.us.us.us.us.us.us.us
%cnt.14.lcssa.us311.us.us.us.us.us.us.us.us.us.us = phi i32 [ %cnt.12270.us300.us.us.us.us.us.us.us.us.us.us, %for.body87.us298.us.us.us.us.us.us.us.us.us.us ], [ %235, %middle.block2337 ], [ %spec.select243.us260.us.us.us.us.us.us.us.us.us.us.us, %for.body105.us253.us.us.us.us.us.us.us.us.us.us.us ]
%cmp86.not.us312.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %o.0271.us299.us.us.us.us.us.us.us.us.us.us, %sub85
%indvar.next2336 = add i32 %indvar2335, 1
br i1 %cmp86.not.us312.us.us.us.us.us.us.us.us.us.us.not, label %for.body87.us298.us.us.us.us.us.us.us.us.us.us, label %for.cond67.loopexit.us355.us437.us.us.us.us.us.us.us.us, !llvm.loop !16
for.body105.lr.ph.us313.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body87.us298.us.us.us.us.us.us.us.us.us.us
%add113.us314.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add112.us360.us441.us.us.us.us.us.us.us.us, %o.0271.us299.us.us.us.us.us.us.us.us.us.us
%min.iters.check2339 = icmp ult i32 %224, 8
br i1 %min.iters.check2339, label %for.body105.us253.us.us.us.us.us.us.us.us.us.us.us.preheader, label %vector.ph2340
vector.ph2340: ; preds = %for.body105.lr.ph.us313.us.us.us.us.us.us.us.us.us.us
%n.vec2342 = and i32 %224, -8
%ind.end2343 = add i32 %add101.us308.us.us.us.us.us.us.us.us.us.us, %n.vec2342
%.splatinsert2348 = insertelement <4 x i32> poison, i32 %add101.us308.us.us.us.us.us.us.us.us.us.us, i64 0
%.splat2349 = shufflevector <4 x i32> %.splatinsert2348, <4 x i32> poison, <4 x i32> zeroinitializer
%induction2350 = add <4 x i32> %.splat2349, <i32 0, i32 1, i32 2, i32 3>
%225 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %cnt.12270.us300.us.us.us.us.us.us.us.us.us.us, i64 0
%broadcast.splatinsert2357 = insertelement <4 x i32> poison, i32 %add113.us314.us.us.us.us.us.us.us.us.us.us, i64 0
%broadcast.splat2358 = shufflevector <4 x i32> %broadcast.splatinsert2357, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body2346
vector.body2346: ; preds = %vector.body2346, %vector.ph2340
%index2347 = phi i32 [ 0, %vector.ph2340 ], [ %index.next2361, %vector.body2346 ]
%vec.ind2351 = phi <4 x i32> [ %induction2350, %vector.ph2340 ], [ %vec.ind.next2354, %vector.body2346 ]
%vec.phi2355 = phi <4 x i32> [ %225, %vector.ph2340 ], [ %232, %vector.body2346 ]
%vec.phi2356 = phi <4 x i32> [ zeroinitializer, %vector.ph2340 ], [ %233, %vector.body2346 ]
%step.add2352 = add <4 x i32> %vec.ind2351, <i32 4, i32 4, i32 4, i32 4>
%226 = add nsw <4 x i32> %broadcast.splat2358, %vec.ind2351
%227 = add nsw <4 x i32> %broadcast.splat2358, %step.add2352
%228 = icmp eq <4 x i32> %226, %broadcast.splat2360
%229 = icmp eq <4 x i32> %227, %broadcast.splat2360
%230 = zext <4 x i1> %228 to <4 x i32>
%231 = zext <4 x i1> %229 to <4 x i32>
%232 = add <4 x i32> %vec.phi2355, %230
%233 = add <4 x i32> %vec.phi2356, %231
%index.next2361 = add nuw i32 %index2347, 8
%vec.ind.next2354 = add <4 x i32> %vec.ind2351, <i32 8, i32 8, i32 8, i32 8>
%234 = icmp eq i32 %index.next2361, %n.vec2342
br i1 %234, label %middle.block2337, label %vector.body2346, !llvm.loop !42
middle.block2337: ; preds = %vector.body2346
%bin.rdx2362 = add <4 x i32> %233, %232
%235 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx2362)
%cmp.n2345 = icmp eq i32 %224, %n.vec2342
br i1 %cmp.n2345, label %for.cond84.loopexit.us310.us.us.us.us.us.us.us.us.us.us, label %for.body105.us253.us.us.us.us.us.us.us.us.us.us.us.preheader
for.body105.us253.us.us.us.us.us.us.us.us.us.us.us.preheader: ; preds = %for.body105.lr.ph.us313.us.us.us.us.us.us.us.us.us.us, %middle.block2337
%p.0250.us254.us.us.us.us.us.us.us.us.us.us.us.ph = phi i32 [ %add101.us308.us.us.us.us.us.us.us.us.us.us, %for.body105.lr.ph.us313.us.us.us.us.us.us.us.us.us.us ], [ %ind.end2343, %middle.block2337 ]
%cnt.14249.us255.us.us.us.us.us.us.us.us.us.us.us.ph = phi i32 [ %cnt.12270.us300.us.us.us.us.us.us.us.us.us.us, %for.body105.lr.ph.us313.us.us.us.us.us.us.us.us.us.us ], [ %235, %middle.block2337 ]
br label %for.body105.us253.us.us.us.us.us.us.us.us.us.us.us
for.body105.us253.us.us.us.us.us.us.us.us.us.us.us: ; preds = %for.body105.us253.us.us.us.us.us.us.us.us.us.us.us.preheader, %for.body105.us253.us.us.us.us.us.us.us.us.us.us.us
%p.0250.us254.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %add120.us263.us.us.us.us.us.us.us.us.us.us.us, %for.body105.us253.us.us.us.us.us.us.us.us.us.us.us ], [ %p.0250.us254.us.us.us.us.us.us.us.us.us.us.us.ph, %for.body105.us253.us.us.us.us.us.us.us.us.us.us.us.preheader ]
%cnt.14249.us255.us.us.us.us.us.us.us.us.us.us.us = phi i32 [ %spec.select243.us260.us.us.us.us.us.us.us.us.us.us.us, %for.body105.us253.us.us.us.us.us.us.us.us.us.us.us ], [ %cnt.14249.us255.us.us.us.us.us.us.us.us.us.us.us.ph, %for.body105.us253.us.us.us.us.us.us.us.us.us.us.us.preheader ]
%add114.us257.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %add113.us314.us.us.us.us.us.us.us.us.us.us, %p.0250.us254.us.us.us.us.us.us.us.us.us.us.us
%cmp115.us258.us.us.us.us.us.us.us.us.us.us.us = icmp eq i32 %add114.us257.us.us.us.us.us.us.us.us.us.us.us, %216
%inc117.us259.us.us.us.us.us.us.us.us.us.us.us = zext i1 %cmp115.us258.us.us.us.us.us.us.us.us.us.us.us to i32
%spec.select243.us260.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %cnt.14249.us255.us.us.us.us.us.us.us.us.us.us.us, %inc117.us259.us.us.us.us.us.us.us.us.us.us.us
%add120.us263.us.us.us.us.us.us.us.us.us.us.us = add nsw i32 %p.0250.us254.us.us.us.us.us.us.us.us.us.us.us, 1
%cmp104.not.us266.us.us.us.us.us.us.us.us.us.us.us.not = icmp slt i32 %p.0250.us254.us.us.us.us.us.us.us.us.us.us.us, %sub103
br i1 %cmp104.not.us266.us.us.us.us.us.us.us.us.us.us.us.not, label %for.body105.us253.us.us.us.us.us.us.us.us.us.us.us, label %for.cond84.loopexit.us310.us.us.us.us.us.us.us.us.us.us, !llvm.loop !43
for.body12.us938.us: ; preds = %for.body12.lr.ph.us1344, %for.cond9.loopexit.us948.us
%indvar2364 = phi i32 [ %indvar.next2365, %for.cond9.loopexit.us948.us ], [ 0, %for.body12.lr.ph.us1344 ]
%j.0820.us939.us = phi i32 [ %add21.us946.us, %for.cond9.loopexit.us948.us ], [ %add.us1339, %for.body12.lr.ph.us1344 ]
%cnt.2819.us940.us = phi i32 [ %cnt.4.lcssa.us949.us, %for.cond9.loopexit.us948.us ], [ %cnt.1.us1338, %for.body12.lr.ph.us1344 ]
%236 = add i32 %i.01172.us1333, %indvar2364
%add15.us941.us = add nuw nsw i32 %j.0820.us939.us, %i.01172.us1333
%cmp16.us942.us = icmp eq i32 %add15.us941.us, %216
%narrow.us943.us = select i1 %cmp13, i1 %cmp16.us942.us, i1 false
%spec.select.us944.us = zext i1 %narrow.us943.us to i32
%cnt.3.us945.us = add nsw i32 %cnt.2819.us940.us, %spec.select.us944.us
%add21.us946.us = add i32 %j.0820.us939.us, 1
%cmp24.not647.us947.us.not = icmp slt i32 %j.0820.us939.us, %sub23
br i1 %cmp24.not647.us947.us.not, label %for.body25.us696.us.us1345, label %for.cond9.loopexit.us948.us
for.cond9.loopexit.us948.us: ; preds = %for.cond22.loopexit.us708.us.us1357, %for.body12.us938.us
%cnt.4.lcssa.us949.us = phi i32 [ %cnt.3.us945.us, %for.body12.us938.us ], [ %cnt.6.lcssa.us709.us.us1358, %for.cond22.loopexit.us708.us.us1357 ]
%exitcond1879.not = icmp eq i32 %add21.us946.us, %sub23
%indvar.next2365 = add i32 %indvar2364, 1
br i1 %exitcond1879.not, label %for.cond.loopexit.us1341, label %for.body12.us938.us, !llvm.loop !11
for.body25.us696.us.us1345: ; preds = %for.body12.us938.us, %for.cond22.loopexit.us708.us.us1357
%indvar2366 = phi i32 [ %indvar.next2367, %for.cond22.loopexit.us708.us.us1357 ], [ 0, %for.body12.us938.us ]
%k.0649.us697.us.us1346 = phi i32 [ %add35.us706.us.us1355, %for.cond22.loopexit.us708.us.us1357 ], [ %add21.us946.us, %for.body12.us938.us ]
%cnt.4648.us698.us.us1347 = phi i32 [ %cnt.6.lcssa.us709.us.us1358, %for.cond22.loopexit.us708.us.us1357 ], [ %cnt.3.us945.us, %for.body12.us938.us ]
%237 = add i32 %236, %indvar2366
%add29.us700.us.us1349 = add nuw nsw i32 %add15.us941.us, %k.0649.us697.us.us1346
%cmp30.us701.us.us1350 = icmp eq i32 %add29.us700.us.us1349, %216
%narrow1821 = select i1 %cmp26, i1 %cmp30.us701.us.us1350, i1 false
%spec.select238.us703.us.us1352 = zext i1 %narrow1821 to i32
%cnt.5.us705.us.us1354 = add nsw i32 %cnt.4648.us698.us.us1347, %spec.select238.us703.us.us1352
%add35.us706.us.us1355 = add nuw nsw i32 %k.0649.us697.us.us1346, 1
%cmp38.not479.us707.us.us1356.not = icmp slt i32 %k.0649.us697.us.us1346, %sub37
br i1 %cmp38.not479.us707.us.us1356.not, label %for.body39.us527.us.us958.us, label %for.cond22.loopexit.us708.us.us1357
for.cond22.loopexit.us708.us.us1357: ; preds = %for.cond36.loopexit.us539.us.us970.us, %for.body25.us696.us.us1345
%cnt.6.lcssa.us709.us.us1358 = phi i32 [ %cnt.5.us705.us.us1354, %for.body25.us696.us.us1345 ], [ %cnt.8.lcssa.us540.us.us971.us, %for.cond36.loopexit.us539.us.us970.us ]
%cmp24.not.us710.us.us1359.not = icmp slt i32 %k.0649.us697.us.us1346, %sub23
%indvar.next2367 = add i32 %indvar2366, 1
br i1 %cmp24.not.us710.us.us1359.not, label %for.body25.us696.us.us1345, label %for.cond9.loopexit.us948.us, !llvm.loop !12
for.body39.us527.us.us958.us: ; preds = %for.body25.us696.us.us1345, %for.cond36.loopexit.us539.us.us970.us
%indvar2368 = phi i32 [ %indvar.next2369, %for.cond36.loopexit.us539.us.us970.us ], [ 0, %for.body25.us696.us.us1345 ]
%l.0481.us528.us.us959.us = phi i32 [ %add50.us537.us.us968.us, %for.cond36.loopexit.us539.us.us970.us ], [ %add35.us706.us.us1355, %for.body25.us696.us.us1345 ]
%cnt.6480.us529.us.us960.us = phi i32 [ %cnt.8.lcssa.us540.us.us971.us, %for.cond36.loopexit.us539.us.us970.us ], [ %cnt.5.us705.us.us1354, %for.body25.us696.us.us1345 ]
%238 = add i32 %237, %indvar2368
%add44.us531.us.us962.us = add nsw i32 %add29.us700.us.us1349, %l.0481.us528.us.us959.us
%cmp45.us532.us.us963.us = icmp eq i32 %add44.us531.us.us962.us, %216
%narrow1822 = select i1 %cmp40, i1 %cmp45.us532.us.us963.us, i1 false
%spec.select239.us534.us.us965.us = zext i1 %narrow1822 to i32
%cnt.7.us536.us.us967.us = add nsw i32 %cnt.6480.us529.us.us960.us, %spec.select239.us534.us.us965.us
%add50.us537.us.us968.us = add nsw i32 %l.0481.us528.us.us959.us, 1
%cmp53.not365.us538.us.us969.us.not = icmp slt i32 %l.0481.us528.us.us959.us, %sub52
br i1 %cmp53.not365.us538.us.us969.us.not, label %for.body54.us406.us547.us717.us.us1364, label %for.cond36.loopexit.us539.us.us970.us
for.cond36.loopexit.us539.us.us970.us: ; preds = %for.cond51.loopexit.us418.us559.us729.us.us1369, %for.body39.us527.us.us958.us
%cnt.8.lcssa.us540.us.us971.us = phi i32 [ %cnt.7.us536.us.us967.us, %for.body39.us527.us.us958.us ], [ %cnt.10.lcssa.us419.us560.us730.us.us1370, %for.cond51.loopexit.us418.us559.us729.us.us1369 ]
%cmp38.not.us541.us.us972.us.not = icmp slt i32 %l.0481.us528.us.us959.us, %sub37
%indvar.next2369 = add i32 %indvar2368, 1
br i1 %cmp38.not.us541.us.us972.us.not, label %for.body39.us527.us.us958.us, label %for.cond22.loopexit.us708.us.us1357, !llvm.loop !13
for.body54.us406.us547.us717.us.us1364: ; preds = %for.body39.us527.us.us958.us, %for.cond51.loopexit.us418.us559.us729.us.us1369
%indvar2370 = phi i32 [ %indvar.next2371, %for.cond51.loopexit.us418.us559.us729.us.us1369 ], [ 0, %for.body39.us527.us.us958.us ]
%m.0367.us407.us548.us718.us.us1365 = phi i32 [ %add66.us416.us557.us727.us.us1367, %for.cond51.loopexit.us418.us559.us729.us.us1369 ], [ %add50.us537.us.us968.us, %for.body39.us527.us.us958.us ]
%cnt.8366.us408.us549.us719.us.us1366 = phi i32 [ %cnt.10.lcssa.us419.us560.us730.us.us1370, %for.cond51.loopexit.us418.us559.us729.us.us1369 ], [ %cnt.7.us536.us.us967.us, %for.body39.us527.us.us958.us ]
%239 = add i32 %238, %indvar2370
%add66.us416.us557.us727.us.us1367 = add nsw i32 %m.0367.us407.us548.us718.us.us1365, 1
%cmp69.not318.us417.us558.us728.us.us1368.not = icmp slt i32 %m.0367.us407.us548.us718.us.us1365, %sub68
br i1 %cmp69.not318.us417.us558.us728.us.us1368.not, label %for.body70.lr.ph.us421.us562.us732.us.us1372, label %for.cond51.loopexit.us418.us559.us729.us.us1369
for.cond51.loopexit.us418.us559.us729.us.us1369: ; preds = %for.cond67.loopexit.us355.us437.us.us.us.us1379, %for.body54.us406.us547.us717.us.us1364
%cnt.10.lcssa.us419.us560.us730.us.us1370 = phi i32 [ %cnt.8366.us408.us549.us719.us.us1366, %for.body54.us406.us547.us717.us.us1364 ], [ %cnt.12.lcssa.us356.us438.us.us.us.us1380, %for.cond67.loopexit.us355.us437.us.us.us.us1379 ]
%cmp53.not.us420.us561.us731.us.us1371.not = icmp slt i32 %m.0367.us407.us548.us718.us.us1365, %sub52
%indvar.next2371 = add i32 %indvar2370, 1
br i1 %cmp53.not.us420.us561.us731.us.us1371.not, label %for.body54.us406.us547.us717.us.us1364, label %for.cond36.loopexit.us539.us.us970.us, !llvm.loop !14
for.body70.lr.ph.us421.us562.us732.us.us1372: ; preds = %for.body54.us406.us547.us717.us.us1364
%add111.us424.us564.us733.us.us1373 = add nsw i32 %add44.us531.us.us962.us, %m.0367.us407.us548.us718.us.us1365
br label %for.body70.us343.us425.us.us.us.us1374
for.body70.us343.us425.us.us.us.us1374: ; preds = %for.cond67.loopexit.us355.us437.us.us.us.us1379, %for.body70.lr.ph.us421.us562.us732.us.us1372
%indvar2372 = phi i32 [ %indvar.next2373, %for.cond67.loopexit.us355.us437.us.us.us.us1379 ], [ 0, %for.body70.lr.ph.us421.us562.us732.us.us1372 ]
%n.0320.us344.us426.us.us.us.us1375 = phi i32 [ %add83.us353.us435.us.us.us.us1377, %for.cond67.loopexit.us355.us437.us.us.us.us1379 ], [ %add66.us416.us557.us727.us.us1367, %for.body70.lr.ph.us421.us562.us732.us.us1372 ]
%cnt.10319.us345.us427.us.us.us.us1376 = phi i32 [ %cnt.12.lcssa.us356.us438.us.us.us.us1380, %for.cond67.loopexit.us355.us437.us.us.us.us1379 ], [ %cnt.8366.us408.us549.us719.us.us1366, %for.body70.lr.ph.us421.us562.us732.us.us1372 ]
%240 = add i32 %239, %indvar2372
%add83.us353.us435.us.us.us.us1377 = add nsw i32 %n.0320.us344.us426.us.us.us.us1375, 1
%cmp86.not269.us354.us436.us.us.us.us1378.not = icmp slt i32 %n.0320.us344.us426.us.us.us.us1375, %sub85
br i1 %cmp86.not269.us354.us436.us.us.us.us1378.not, label %for.body87.lr.ph.us358.us440.us.us.us.us1382, label %for.cond67.loopexit.us355.us437.us.us.us.us1379
for.cond67.loopexit.us355.us437.us.us.us.us1379: ; preds = %for.cond84.loopexit.us310.us.us.us.us.us.us1389, %for.body70.us343.us425.us.us.us.us1374
%cnt.12.lcssa.us356.us438.us.us.us.us1380 = phi i32 [ %cnt.10319.us345.us427.us.us.us.us1376, %for.body70.us343.us425.us.us.us.us1374 ], [ %cnt.14.lcssa.us311.us.us.us.us.us.us1390, %for.cond84.loopexit.us310.us.us.us.us.us.us1389 ]
%cmp69.not.us357.us439.us.us.us.us1381.not = icmp slt i32 %n.0320.us344.us426.us.us.us.us1375, %sub68
%indvar.next2373 = add i32 %indvar2372, 1
br i1 %cmp69.not.us357.us439.us.us.us.us1381.not, label %for.body70.us343.us425.us.us.us.us1374, label %for.cond51.loopexit.us418.us559.us729.us.us1369, !llvm.loop !15
for.body87.lr.ph.us358.us440.us.us.us.us1382: ; preds = %for.body70.us343.us425.us.us.us.us1374
%add112.us360.us441.us.us.us.us1383 = add nsw i32 %add111.us424.us564.us733.us.us1373, %n.0320.us344.us426.us.us.us.us1375
br label %for.body87.us298.us.us.us.us.us.us1384
for.body87.us298.us.us.us.us.us.us1384: ; preds = %for.cond84.loopexit.us310.us.us.us.us.us.us1389, %for.body87.lr.ph.us358.us440.us.us.us.us1382
%indvar2374 = phi i32 [ %indvar.next2375, %for.cond84.loopexit.us310.us.us.us.us.us.us1389 ], [ 0, %for.body87.lr.ph.us358.us440.us.us.us.us1382 ]
%o.0271.us299.us.us.us.us.us.us1385 = phi i32 [ %add101.us308.us.us.us.us.us.us1387, %for.cond84.loopexit.us310.us.us.us.us.us.us1389 ], [ %add83.us353.us435.us.us.us.us1377, %for.body87.lr.ph.us358.us440.us.us.us.us1382 ]
%cnt.12270.us300.us.us.us.us.us.us1386 = phi i32 [ %cnt.14.lcssa.us311.us.us.us.us.us.us1390, %for.cond84.loopexit.us310.us.us.us.us.us.us1389 ], [ %cnt.10319.us345.us427.us.us.us.us1376, %for.body87.lr.ph.us358.us440.us.us.us.us1382 ]
%241 = add i32 %240, %indvar2374
%242 = sub i32 %sub10, %241
%add101.us308.us.us.us.us.us.us1387 = add nsw i32 %o.0271.us299.us.us.us.us.us.us1385, 1
%cmp104.not248.us309.us.us.us.us.us.us1388.not = icmp slt i32 %o.0271.us299.us.us.us.us.us.us1385, %sub103
br i1 %cmp104.not248.us309.us.us.us.us.us.us1388.not, label %for.body105.lr.ph.us313.us.us.us.us.us.us1392, label %for.cond84.loopexit.us310.us.us.us.us.us.us1389
for.cond84.loopexit.us310.us.us.us.us.us.us1389: ; preds = %for.body105.us253.us.us.us.us.us.us.us1394, %middle.block2376, %for.body87.us298.us.us.us.us.us.us1384
%cnt.14.lcssa.us311.us.us.us.us.us.us1390 = phi i32 [ %cnt.12270.us300.us.us.us.us.us.us1386, %for.body87.us298.us.us.us.us.us.us1384 ], [ %253, %middle.block2376 ], [ %spec.select243.us260.us.us.us.us.us.us.us1400, %for.body105.us253.us.us.us.us.us.us.us1394 ]
%cmp86.not.us312.us.us.us.us.us.us1391.not = icmp slt i32 %o.0271.us299.us.us.us.us.us.us1385, %sub85
%indvar.next2375 = add i32 %indvar2374, 1
br i1 %cmp86.not.us312.us.us.us.us.us.us1391.not, label %for.body87.us298.us.us.us.us.us.us1384, label %for.cond67.loopexit.us355.us437.us.us.us.us1379, !llvm.loop !16
for.body105.lr.ph.us313.us.us.us.us.us.us1392: ; preds = %for.body87.us298.us.us.us.us.us.us1384
%add113.us314.us.us.us.us.us.us1393 = add nsw i32 %add112.us360.us441.us.us.us.us1383, %o.0271.us299.us.us.us.us.us.us1385
%min.iters.check2378 = icmp ult i32 %242, 8
br i1 %min.iters.check2378, label %for.body105.us253.us.us.us.us.us.us.us1394.preheader, label %vector.ph2379
vector.ph2379: ; preds = %for.body105.lr.ph.us313.us.us.us.us.us.us1392
%n.vec2381 = and i32 %242, -8
%ind.end2382 = add i32 %add101.us308.us.us.us.us.us.us1387, %n.vec2381
%.splatinsert2387 = insertelement <4 x i32> poison, i32 %add101.us308.us.us.us.us.us.us1387, i64 0
%.splat2388 = shufflevector <4 x i32> %.splatinsert2387, <4 x i32> poison, <4 x i32> zeroinitializer
%induction2389 = add <4 x i32> %.splat2388, <i32 0, i32 1, i32 2, i32 3>
%243 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %cnt.12270.us300.us.us.us.us.us.us1386, i64 0
%broadcast.splatinsert2396 = insertelement <4 x i32> poison, i32 %add113.us314.us.us.us.us.us.us1393, i64 0
%broadcast.splat2397 = shufflevector <4 x i32> %broadcast.splatinsert2396, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body2385
vector.body2385: ; preds = %vector.body2385, %vector.ph2379
%index2386 = phi i32 [ 0, %vector.ph2379 ], [ %index.next2400, %vector.body2385 ]
%vec.ind2390 = phi <4 x i32> [ %induction2389, %vector.ph2379 ], [ %vec.ind.next2393, %vector.body2385 ]
%vec.phi2394 = phi <4 x i32> [ %243, %vector.ph2379 ], [ %250, %vector.body2385 ]
%vec.phi2395 = phi <4 x i32> [ zeroinitializer, %vector.ph2379 ], [ %251, %vector.body2385 ]
%step.add2391 = add <4 x i32> %vec.ind2390, <i32 4, i32 4, i32 4, i32 4>
%244 = add nsw <4 x i32> %broadcast.splat2397, %vec.ind2390
%245 = add nsw <4 x i32> %broadcast.splat2397, %step.add2391
%246 = icmp eq <4 x i32> %244, %broadcast.splat2399
%247 = icmp eq <4 x i32> %245, %broadcast.splat2399
%248 = zext <4 x i1> %246 to <4 x i32>
%249 = zext <4 x i1> %247 to <4 x i32>
%250 = add <4 x i32> %vec.phi2394, %248
%251 = add <4 x i32> %vec.phi2395, %249
%index.next2400 = add nuw i32 %index2386, 8
%vec.ind.next2393 = add <4 x i32> %vec.ind2390, <i32 8, i32 8, i32 8, i32 8>
%252 = icmp eq i32 %index.next2400, %n.vec2381
br i1 %252, label %middle.block2376, label %vector.body2385, !llvm.loop !44
middle.block2376: ; preds = %vector.body2385
%bin.rdx2401 = add <4 x i32> %251, %250
%253 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx2401)
%cmp.n2384 = icmp eq i32 %242, %n.vec2381
br i1 %cmp.n2384, label %for.cond84.loopexit.us310.us.us.us.us.us.us1389, label %for.body105.us253.us.us.us.us.us.us.us1394.preheader
for.body105.us253.us.us.us.us.us.us.us1394.preheader: ; preds = %for.body105.lr.ph.us313.us.us.us.us.us.us1392, %middle.block2376
%p.0250.us254.us.us.us.us.us.us.us1395.ph = phi i32 [ %add101.us308.us.us.us.us.us.us1387, %for.body105.lr.ph.us313.us.us.us.us.us.us1392 ], [ %ind.end2382, %middle.block2376 ]
%cnt.14249.us255.us.us.us.us.us.us.us1396.ph = phi i32 [ %cnt.12270.us300.us.us.us.us.us.us1386, %for.body105.lr.ph.us313.us.us.us.us.us.us1392 ], [ %253, %middle.block2376 ]
br label %for.body105.us253.us.us.us.us.us.us.us1394
for.body105.us253.us.us.us.us.us.us.us1394: ; preds = %for.body105.us253.us.us.us.us.us.us.us1394.preheader, %for.body105.us253.us.us.us.us.us.us.us1394
%p.0250.us254.us.us.us.us.us.us.us1395 = phi i32 [ %add120.us263.us.us.us.us.us.us.us1401, %for.body105.us253.us.us.us.us.us.us.us1394 ], [ %p.0250.us254.us.us.us.us.us.us.us1395.ph, %for.body105.us253.us.us.us.us.us.us.us1394.preheader ]
%cnt.14249.us255.us.us.us.us.us.us.us1396 = phi i32 [ %spec.select243.us260.us.us.us.us.us.us.us1400, %for.body105.us253.us.us.us.us.us.us.us1394 ], [ %cnt.14249.us255.us.us.us.us.us.us.us1396.ph, %for.body105.us253.us.us.us.us.us.us.us1394.preheader ]
%add114.us257.us.us.us.us.us.us.us1397 = add nsw i32 %add113.us314.us.us.us.us.us.us1393, %p.0250.us254.us.us.us.us.us.us.us1395
%cmp115.us258.us.us.us.us.us.us.us1398 = icmp eq i32 %add114.us257.us.us.us.us.us.us.us1397, %216
%inc117.us259.us.us.us.us.us.us.us1399 = zext i1 %cmp115.us258.us.us.us.us.us.us.us1398 to i32
%spec.select243.us260.us.us.us.us.us.us.us1400 = add nsw i32 %cnt.14249.us255.us.us.us.us.us.us.us1396, %inc117.us259.us.us.us.us.us.us.us1399
%add120.us263.us.us.us.us.us.us.us1401 = add nsw i32 %p.0250.us254.us.us.us.us.us.us.us1395, 1
%cmp104.not.us266.us.us.us.us.us.us.us1408.not = icmp slt i32 %p.0250.us254.us.us.us.us.us.us.us1395, %sub103
br i1 %cmp104.not.us266.us.us.us.us.us.us.us1408.not, label %for.body105.us253.us.us.us.us.us.us.us1394, label %for.cond84.loopexit.us310.us.us.us.us.us.us1389, !llvm.loop !45
for.cond.loopexit: ; preds = %for.cond9.loopexit, %for.body
%cnt.2.lcssa = phi i32 [ %cnt.1, %for.body ], [ %cnt.4.lcssa, %for.cond9.loopexit ]
%exitcond1878.not = icmp eq i32 %i.01172, %smax
br i1 %exitcond1878.not, label %for.end164, label %for.body, !llvm.loop !9
for.body: ; preds = %for.body.preheader, %for.cond.loopexit
%i.01172 = phi i32 [ %add, %for.cond.loopexit ], [ 0, %for.body.preheader ]
%cnt.01171 = phi i32 [ %cnt.2.lcssa, %for.cond.loopexit ], [ 0, %for.body.preheader ]
%cmp5 = icmp eq i32 %i.01172, %217
%or.cond237 = and i1 %cmp3, %cmp5
%inc = zext i1 %or.cond237 to i32
%cnt.1 = add nsw i32 %cnt.01171, %inc
%add = add nuw i32 %i.01172, 1
%cmp11.not818.not = icmp slt i32 %i.01172, %sub10
br i1 %cmp11.not818.not, label %for.body12, label %for.cond.loopexit
for.cond9.loopexit: ; preds = %for.cond22.loopexit, %for.body12
%cnt.4.lcssa = phi i32 [ %cnt.3, %for.body12 ], [ %cnt.6.lcssa, %for.cond22.loopexit ]
%exitcond.not = icmp eq i32 %add21, %sub23
%indvar.next2404 = add i32 %indvar2403, 1
br i1 %exitcond.not, label %for.cond.loopexit, label %for.body12, !llvm.loop !11
for.body12: ; preds = %for.body, %for.cond9.loopexit
%indvar2403 = phi i32 [ %indvar.next2404, %for.cond9.loopexit ], [ 0, %for.body ]
%j.0820 = phi i32 [ %add21, %for.cond9.loopexit ], [ %add, %for.body ]
%cnt.2819 = phi i32 [ %cnt.4.lcssa, %for.cond9.loopexit ], [ %cnt.1, %for.body ]
%254 = add i32 %i.01172, %indvar2403
%add15 = add nuw nsw i32 %j.0820, %i.01172
%cmp16 = icmp eq i32 %add15, %217
%narrow = select i1 %cmp13, i1 %cmp16, i1 false
%spec.select = zext i1 %narrow to i32
%cnt.3 = add nsw i32 %cnt.2819, %spec.select
%add21 = add i32 %j.0820, 1
%cmp24.not647.not = icmp slt i32 %j.0820, %sub23
br i1 %cmp24.not647.not, label %for.body25, label %for.cond9.loopexit
for.cond22.loopexit: ; preds = %for.cond36.loopexit, %for.body25
%cnt.6.lcssa = phi i32 [ %cnt.5, %for.body25 ], [ %cnt.8.lcssa, %for.cond36.loopexit ]
%cmp24.not.not = icmp slt i32 %k.0649, %sub23
%indvar.next2406 = add i32 %indvar2405, 1
br i1 %cmp24.not.not, label %for.body25, label %for.cond9.loopexit, !llvm.loop !12
for.body25: ; preds = %for.body12, %for.cond22.loopexit
%indvar2405 = phi i32 [ %indvar.next2406, %for.cond22.loopexit ], [ 0, %for.body12 ]
%k.0649 = phi i32 [ %add35, %for.cond22.loopexit ], [ %add21, %for.body12 ]
%cnt.4648 = phi i32 [ %cnt.6.lcssa, %for.cond22.loopexit ], [ %cnt.3, %for.body12 ]
%255 = add i32 %254, %indvar2405
%add29 = add nuw nsw i32 %add15, %k.0649
%cmp30 = icmp eq i32 %add29, %217
%narrow1816 = select i1 %cmp26, i1 %cmp30, i1 false
%spec.select238 = zext i1 %narrow1816 to i32
%cnt.5 = add nsw i32 %cnt.4648, %spec.select238
%add35 = add nuw nsw i32 %k.0649, 1
%cmp38.not479.not = icmp slt i32 %k.0649, %sub37
br i1 %cmp38.not479.not, label %for.body39, label %for.cond22.loopexit
for.cond36.loopexit: ; preds = %for.cond51.loopexit, %for.body39
%cnt.8.lcssa = phi i32 [ %cnt.7, %for.body39 ], [ %cnt.10.lcssa, %for.cond51.loopexit ]
%cmp38.not.not = icmp slt i32 %l.0481, %sub37
%indvar.next2408 = add i32 %indvar2407, 1
br i1 %cmp38.not.not, label %for.body39, label %for.cond22.loopexit, !llvm.loop !13
for.body39: ; preds = %for.body25, %for.cond36.loopexit
%indvar2407 = phi i32 [ %indvar.next2408, %for.cond36.loopexit ], [ 0, %for.body25 ]
%l.0481 = phi i32 [ %add50, %for.cond36.loopexit ], [ %add35, %for.body25 ]
%cnt.6480 = phi i32 [ %cnt.8.lcssa, %for.cond36.loopexit ], [ %cnt.5, %for.body25 ]
%256 = add i32 %255, %indvar2407
%add44 = add nsw i32 %add29, %l.0481
%cmp45 = icmp eq i32 %add44, %217
%narrow1817 = select i1 %cmp40, i1 %cmp45, i1 false
%spec.select239 = zext i1 %narrow1817 to i32
%cnt.7 = add nsw i32 %cnt.6480, %spec.select239
%add50 = add nsw i32 %l.0481, 1
%cmp53.not365.not = icmp slt i32 %l.0481, %sub52
br i1 %cmp53.not365.not, label %for.body54, label %for.cond36.loopexit
for.cond51.loopexit: ; preds = %for.cond67.loopexit, %for.body54
%cnt.10.lcssa = phi i32 [ %cnt.9, %for.body54 ], [ %cnt.12.lcssa, %for.cond67.loopexit ]
%cmp53.not.not = icmp slt i32 %m.0367, %sub52
%indvar.next2410 = add i32 %indvar2409, 1
br i1 %cmp53.not.not, label %for.body54, label %for.cond36.loopexit, !llvm.loop !14
for.body54: ; preds = %for.body39, %for.cond51.loopexit
%indvar2409 = phi i32 [ %indvar.next2410, %for.cond51.loopexit ], [ 0, %for.body39 ]
%m.0367 = phi i32 [ %add66, %for.cond51.loopexit ], [ %add50, %for.body39 ]
%cnt.8366 = phi i32 [ %cnt.10.lcssa, %for.cond51.loopexit ], [ %cnt.7, %for.body39 ]
%257 = add i32 %256, %indvar2409
%add60 = add nsw i32 %add44, %m.0367
%cmp61 = icmp eq i32 %add60, %217
%narrow1818 = select i1 %cmp55, i1 %cmp61, i1 false
%spec.select240 = zext i1 %narrow1818 to i32
%cnt.9 = add nsw i32 %cnt.8366, %spec.select240
%add66 = add nsw i32 %m.0367, 1
%cmp69.not318.not = icmp slt i32 %m.0367, %sub68
br i1 %cmp69.not318.not, label %for.body70, label %for.cond51.loopexit
for.cond67.loopexit: ; preds = %for.body87, %middle.block2413, %for.body70
%cnt.12.lcssa = phi i32 [ %cnt.11, %for.body70 ], [ %272, %middle.block2413 ], [ %cnt.13, %for.body87 ]
%cmp69.not.not = icmp slt i32 %n.0320, %sub68
%indvar.next2412 = add i32 %indvar2411, 1
br i1 %cmp69.not.not, label %for.body70, label %for.cond51.loopexit, !llvm.loop !15
for.body70: ; preds = %for.body54, %for.cond67.loopexit
%indvar2411 = phi i32 [ %indvar.next2412, %for.cond67.loopexit ], [ 0, %for.body54 ]
%n.0320 = phi i32 [ %add83, %for.cond67.loopexit ], [ %add66, %for.body54 ]
%cnt.10319 = phi i32 [ %cnt.12.lcssa, %for.cond67.loopexit ], [ %cnt.9, %for.body54 ]
%258 = add i32 %257, %indvar2411
%259 = sub i32 %sub10, %258
%add77 = add nsw i32 %add60, %n.0320
%cmp78 = icmp eq i32 %add77, %217
%narrow1819 = select i1 %cmp71, i1 %cmp78, i1 false
%spec.select241 = zext i1 %narrow1819 to i32
%cnt.11 = add nsw i32 %cnt.10319, %spec.select241
%add83 = add nsw i32 %n.0320, 1
%cmp86.not269.not = icmp slt i32 %n.0320, %sub85
br i1 %cmp86.not269.not, label %for.body87.preheader, label %for.cond67.loopexit
for.body87.preheader: ; preds = %for.body70
%min.iters.check2415 = icmp ult i32 %259, 8
br i1 %min.iters.check2415, label %for.body87.preheader2446, label %vector.ph2416
vector.ph2416: ; preds = %for.body87.preheader
%n.vec2418 = and i32 %259, -8
%ind.end2419 = add i32 %add83, %n.vec2418
%.splatinsert2424 = insertelement <4 x i32> poison, i32 %add83, i64 0
%.splat2425 = shufflevector <4 x i32> %.splatinsert2424, <4 x i32> poison, <4 x i32> zeroinitializer
%induction2426 = add <4 x i32> %.splat2425, <i32 0, i32 1, i32 2, i32 3>
%260 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %cnt.11, i64 0
%broadcast.splatinsert2433 = insertelement <4 x i32> poison, i32 %add77, i64 0
%broadcast.splat2434 = shufflevector <4 x i32> %broadcast.splatinsert2433, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body2422
vector.body2422: ; preds = %vector.body2422, %vector.ph2416
%index2423 = phi i32 [ 0, %vector.ph2416 ], [ %index.next2437, %vector.body2422 ]
%vec.ind2427 = phi <4 x i32> [ %induction2426, %vector.ph2416 ], [ %vec.ind.next2430, %vector.body2422 ]
%vec.phi2431 = phi <4 x i32> [ %260, %vector.ph2416 ], [ %269, %vector.body2422 ]
%vec.phi2432 = phi <4 x i32> [ zeroinitializer, %vector.ph2416 ], [ %270, %vector.body2422 ]
%step.add2428 = add <4 x i32> %vec.ind2427, <i32 4, i32 4, i32 4, i32 4>
%261 = add nsw <4 x i32> %broadcast.splat2434, %vec.ind2427
%262 = add nsw <4 x i32> %broadcast.splat2434, %step.add2428
%263 = icmp eq <4 x i32> %261, %broadcast.splat2436
%264 = icmp eq <4 x i32> %262, %broadcast.splat2436
%265 = select i1 %cmp88, <4 x i1> %263, <4 x i1> zeroinitializer
%266 = select i1 %cmp88, <4 x i1> %264, <4 x i1> zeroinitializer
%267 = zext <4 x i1> %265 to <4 x i32>
%268 = zext <4 x i1> %266 to <4 x i32>
%269 = add <4 x i32> %vec.phi2431, %267
%270 = add <4 x i32> %vec.phi2432, %268
%index.next2437 = add nuw i32 %index2423, 8
%vec.ind.next2430 = add <4 x i32> %vec.ind2427, <i32 8, i32 8, i32 8, i32 8>
%271 = icmp eq i32 %index.next2437, %n.vec2418
br i1 %271, label %middle.block2413, label %vector.body2422, !llvm.loop !46
middle.block2413: ; preds = %vector.body2422
%bin.rdx2438 = add <4 x i32> %270, %269
%272 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx2438)
%cmp.n2421 = icmp eq i32 %259, %n.vec2418
br i1 %cmp.n2421, label %for.cond67.loopexit, label %for.body87.preheader2446
for.body87.preheader2446: ; preds = %for.body87.preheader, %middle.block2413
%o.0271.ph = phi i32 [ %add83, %for.body87.preheader ], [ %ind.end2419, %middle.block2413 ]
%cnt.12270.ph = phi i32 [ %cnt.11, %for.body87.preheader ], [ %272, %middle.block2413 ]
br label %for.body87
for.body87: ; preds = %for.body87.preheader2446, %for.body87
%o.0271 = phi i32 [ %add101, %for.body87 ], [ %o.0271.ph, %for.body87.preheader2446 ]
%cnt.12270 = phi i32 [ %cnt.13, %for.body87 ], [ %cnt.12270.ph, %for.body87.preheader2446 ]
%add95 = add nsw i32 %add77, %o.0271
%cmp96 = icmp eq i32 %add95, %217
%narrow1820 = select i1 %cmp88, i1 %cmp96, i1 false
%spec.select242 = zext i1 %narrow1820 to i32
%cnt.13 = add nsw i32 %cnt.12270, %spec.select242
%add101 = add nsw i32 %o.0271, 1
%cmp86.not.not = icmp slt i32 %o.0271, %sub85
br i1 %cmp86.not.not, label %for.body87, label %for.cond67.loopexit, !llvm.loop !47
for.end164: ; preds = %for.cond.loopexit, %for.cond.loopexit.us1341, %for.cond.loopexit.us, %for.cond.preheader
%cnt.0.lcssa = phi i32 [ 0, %for.cond.preheader ], [ %cnt.2.lcssa.us, %for.cond.loopexit.us ], [ %cnt.2.lcssa.us1342, %for.cond.loopexit.us1341 ], [ %cnt.2.lcssa, %for.cond.loopexit ]
%call165 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %cnt.0.lcssa)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %num1, ptr noundef nonnull %num2)
%273 = load i32, ptr %num1, align 4, !tbaa !5
%cmp = icmp eq i32 %273, 0
%274 = load i32, ptr %num2, align 4
%cmp1 = icmp eq i32 %274, 0
%or.cond = select i1 %cmp, i1 %cmp1, i1 false
%275 = insertelement <2 x i32> poison, i32 %274, i64 0
%276 = insertelement <2 x i32> %275, i32 %273, i64 1
br i1 %or.cond, label %while.end, label %for.cond.preheader
while.end: ; preds = %for.end164, %entry
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %num2) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %num1) #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
; 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 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10, !18, !19}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10, !19, !18}
!22 = distinct !{!22, !10, !18, !19}
!23 = distinct !{!23, !10, !19, !18}
!24 = distinct !{!24, !10, !18, !19}
!25 = distinct !{!25, !10, !19, !18}
!26 = distinct !{!26, !10, !18, !19}
!27 = distinct !{!27, !10, !19, !18}
!28 = distinct !{!28, !10, !18, !19}
!29 = distinct !{!29, !10, !19, !18}
!30 = distinct !{!30, !10, !18, !19}
!31 = distinct !{!31, !10, !19, !18}
!32 = distinct !{!32, !10, !18, !19}
!33 = distinct !{!33, !10, !19, !18}
!34 = distinct !{!34, !10, !18, !19}
!35 = distinct !{!35, !10, !19, !18}
!36 = distinct !{!36, !10, !18, !19}
!37 = distinct !{!37, !10, !19, !18}
!38 = distinct !{!38, !10, !18, !19}
!39 = distinct !{!39, !10, !19, !18}
!40 = distinct !{!40, !10, !18, !19}
!41 = distinct !{!41, !10, !19, !18}
!42 = distinct !{!42, !10, !18, !19}
!43 = distinct !{!43, !10, !19, !18}
!44 = distinct !{!44, !10, !18, !19}
!45 = distinct !{!45, !10, !19, !18}
!46 = distinct !{!46, !10, !18, !19}
!47 = distinct !{!47, !10, !19, !18}
|
#include <stdio.h>
int main(){
int n, i, m, min, max;
long long sum = 0;
scanf("%d", &n);
min = 1000001;
max = -1000001;
for (i=1; i<n+1; i++){
scanf("%lld", &m);
if (m > max ) {max =m;}
if (m < min ) {min = m;}
sum =sum + m;
}
printf("%d %d %lld\n", min, max, sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172854/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172854/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"%lld\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"%d %d %lld\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) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp.not13 = icmp slt i32 %0, 1
br i1 %cmp.not13, label %for.end, label %for.body
for.body: ; preds = %entry, %for.body
%sum.017 = phi i64 [ %add6, %for.body ], [ 0, %entry ]
%max.016 = phi i32 [ %spec.select, %for.body ], [ -1000001, %entry ]
%min.015 = phi i32 [ %min.1, %for.body ], [ 1000001, %entry ]
%i.014 = phi i32 [ %inc, %for.body ], [ 1, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %m)
%1 = load i32, ptr %m, align 4, !tbaa !5
%spec.select = call i32 @llvm.smax.i32(i32 %1, i32 %max.016)
%min.1 = call i32 @llvm.smin.i32(i32 %1, i32 %min.015)
%conv = sext i32 %1 to i64
%add6 = add nsw i64 %sum.017, %conv
%inc = add nuw nsw i32 %i.014, 1
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp.not.not = icmp slt i32 %i.014, %2
br i1 %cmp.not.not, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body, %entry
%min.0.lcssa = phi i32 [ 1000001, %entry ], [ %min.1, %for.body ]
%max.0.lcssa = phi i32 [ -1000001, %entry ], [ %spec.select, %for.body ]
%sum.0.lcssa = phi i64 [ 0, %entry ], [ %add6, %for.body ]
%call7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
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: 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
; 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"}
|
#include<stdio.h>
int main(){
int n,i,tmp;
long long int sum=0,max=-1000000,min=1000000;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&tmp);
if(max<tmp) max=tmp;
if(min>tmp) min=tmp;
sum+=tmp;
}
printf("%lld %lld %lld\n",min,max,sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172898/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172898/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 [16 x i8] c"%lld %lld %lld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%tmp = 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 %tmp) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp17 = icmp sgt i32 %0, 0
br i1 %cmp17, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%min.021 = phi i64 [ %min.1, %for.body ], [ 1000000, %entry ]
%max.020 = phi i64 [ %spec.select, %for.body ], [ -1000000, %entry ]
%sum.019 = phi i64 [ %add, %for.body ], [ 0, %entry ]
%i.018 = phi i32 [ %inc, %for.body ], [ 0, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %tmp)
%1 = load i32, ptr %tmp, align 4, !tbaa !5
%conv = sext i32 %1 to i64
%spec.select = call i64 @llvm.smax.i64(i64 %max.020, i64 %conv)
%min.1 = call i64 @llvm.smin.i64(i64 %min.021, i64 %conv)
%add = add nsw i64 %sum.019, %conv
%inc = add nuw nsw i32 %i.018, 1
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %2
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body, %entry
%sum.0.lcssa = phi i64 [ 0, %entry ], [ %add, %for.body ]
%max.0.lcssa = phi i64 [ -1000000, %entry ], [ %spec.select, %for.body ]
%min.0.lcssa = phi i64 [ 1000000, %entry ], [ %min.1, %for.body ]
%call12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %min.0.lcssa, i64 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %tmp) #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 i64 @llvm.smax.i64(i64, i64) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, 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 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"}
|
#include <stdio.h>
int main(void)
{
int n, i, min, max, a[10000];
double sum;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
min = a[0];
max = a[0];
sum = a[0];
for (i = 1; i < n; i++) {
if (min > a[i]) min = a[i];
if (max < a[i]) max = a[i];
sum += a[i];
}
printf("%d %d %.0lf\n", min, max, sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172940/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172940/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 [13 x i8] c"%d %d %.0lf\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 [10000 x i32], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #5
call void @llvm.lifetime.start.p0(i64 40000, ptr nonnull %a) #5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp43 = icmp sgt i32 %0, 0
call void @llvm.assume(i1 %cmp43)
br label %for.body
for.body: ; preds = %entry, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [10000 x i32], ptr %a, i64 0, 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
%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.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body
%.pre = load i32, ptr %a, align 16, !tbaa !5
%conv = sitofp i32 %.pre to double
%cmp645 = icmp sgt i32 %1, 1
br i1 %cmp645, label %for.body8.preheader, label %for.end28
for.body8.preheader: ; preds = %for.end
%wide.trip.count = zext i32 %1 to i64
%3 = add nsw i64 %wide.trip.count, -1
%xtraiter = and i64 %3, 1
%4 = icmp eq i32 %1, 2
br i1 %4, label %for.end28.loopexit.unr-lcssa, label %for.body8.preheader.new
for.body8.preheader.new: ; preds = %for.body8.preheader
%unroll_iter = and i64 %3, -2
br label %for.body8
for.body8: ; preds = %for.body8, %for.body8.preheader.new
%indvars.iv55 = phi i64 [ 1, %for.body8.preheader.new ], [ %indvars.iv.next56.1, %for.body8 ]
%sum.049 = phi double [ %conv, %for.body8.preheader.new ], [ %add.1, %for.body8 ]
%max.048 = phi i32 [ %.pre, %for.body8.preheader.new ], [ %max.1.1, %for.body8 ]
%min.047 = phi i32 [ %.pre, %for.body8.preheader.new ], [ %spec.select.1, %for.body8 ]
%niter = phi i64 [ 0, %for.body8.preheader.new ], [ %niter.next.1, %for.body8 ]
%arrayidx10 = getelementptr inbounds [10000 x i32], ptr %a, i64 0, i64 %indvars.iv55
%5 = load i32, ptr %arrayidx10, align 4, !tbaa !5
%spec.select = call i32 @llvm.smin.i32(i32 %min.047, i32 %5)
%max.1 = call i32 @llvm.smax.i32(i32 %max.048, i32 %5)
%conv25 = sitofp i32 %5 to double
%add = fadd double %sum.049, %conv25
%indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
%arrayidx10.1 = getelementptr inbounds [10000 x i32], ptr %a, i64 0, i64 %indvars.iv.next56
%6 = load i32, ptr %arrayidx10.1, align 4, !tbaa !5
%spec.select.1 = call i32 @llvm.smin.i32(i32 %spec.select, i32 %6)
%max.1.1 = call i32 @llvm.smax.i32(i32 %max.1, i32 %6)
%conv25.1 = sitofp i32 %6 to double
%add.1 = fadd double %add, %conv25.1
%indvars.iv.next56.1 = add nuw nsw i64 %indvars.iv55, 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.end28.loopexit.unr-lcssa, label %for.body8, !llvm.loop !11
for.end28.loopexit.unr-lcssa: ; preds = %for.body8, %for.body8.preheader
%spec.select.lcssa.ph = phi i32 [ undef, %for.body8.preheader ], [ %spec.select.1, %for.body8 ]
%max.1.lcssa.ph = phi i32 [ undef, %for.body8.preheader ], [ %max.1.1, %for.body8 ]
%add.lcssa.ph = phi double [ undef, %for.body8.preheader ], [ %add.1, %for.body8 ]
%indvars.iv55.unr = phi i64 [ 1, %for.body8.preheader ], [ %indvars.iv.next56.1, %for.body8 ]
%sum.049.unr = phi double [ %conv, %for.body8.preheader ], [ %add.1, %for.body8 ]
%max.048.unr = phi i32 [ %.pre, %for.body8.preheader ], [ %max.1.1, %for.body8 ]
%min.047.unr = phi i32 [ %.pre, %for.body8.preheader ], [ %spec.select.1, %for.body8 ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.end28, label %for.body8.epil
for.body8.epil: ; preds = %for.end28.loopexit.unr-lcssa
%arrayidx10.epil = getelementptr inbounds [10000 x i32], ptr %a, i64 0, i64 %indvars.iv55.unr
%7 = load i32, ptr %arrayidx10.epil, align 4, !tbaa !5
%spec.select.epil = call i32 @llvm.smin.i32(i32 %min.047.unr, i32 %7)
%max.1.epil = call i32 @llvm.smax.i32(i32 %max.048.unr, i32 %7)
%conv25.epil = sitofp i32 %7 to double
%add.epil = fadd double %sum.049.unr, %conv25.epil
br label %for.end28
for.end28: ; preds = %for.body8.epil, %for.end28.loopexit.unr-lcssa, %for.end
%min.0.lcssa = phi i32 [ %.pre, %for.end ], [ %spec.select.lcssa.ph, %for.end28.loopexit.unr-lcssa ], [ %spec.select.epil, %for.body8.epil ]
%max.0.lcssa = phi i32 [ %.pre, %for.end ], [ %max.1.lcssa.ph, %for.end28.loopexit.unr-lcssa ], [ %max.1.epil, %for.body8.epil ]
%sum.0.lcssa = phi double [ %conv, %for.end ], [ %add.lcssa.ph, %for.end28.loopexit.unr-lcssa ], [ %add.epil, %for.body8.epil ]
%call29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, double noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 40000, 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: 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
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: 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}
|
#include <stdio.h>
#define N_MAX 10000
int main(void){
int a[N_MAX]={0},n,i,j,work;
double sum;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
sum+=a[i];
}
for(i=0;i<n;i++){
for(j=0;j<n-1;j++){
if(a[j]>a[j+1]){
work = a[j];
a[j] = a[j+1];
a[j+1] = work;
}
}
}
printf("%d %d %.0f\n",a[0],a[n-1],sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172984/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172984/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 %.0f\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca [10000 x i32], align 16
%n = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 40000, ptr nonnull %a) #4
call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40000) %a, i8 0, i64 40000, i1 false)
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
%cmp55 = icmp sgt i32 %0, 0
br i1 %cmp55, label %for.body, label %for.cond4.preheader.for.end34_crit_edge
for.cond4.preheader: ; preds = %for.body
%cmp561 = icmp sgt i32 %9, 0
br i1 %cmp561, label %for.cond8.preheader.lr.ph, label %for.cond4.preheader.for.end34_crit_edge
for.cond4.preheader.for.end34_crit_edge: ; preds = %entry, %for.cond4.preheader
%.lcssa76 = phi i32 [ %9, %for.cond4.preheader ], [ %0, %entry ]
%sum.0.lcssa75 = phi double [ %add, %for.cond4.preheader ], [ undef, %entry ]
%.pre70 = add nsw i32 %.lcssa76, -1
br label %for.end34
for.cond8.preheader.lr.ph: ; preds = %for.cond4.preheader
%sub = add i32 %9, -1
%cmp959.not = icmp eq i32 %9, 1
br i1 %cmp959.not, label %for.end34, label %for.cond8.preheader.us.preheader
for.cond8.preheader.us.preheader: ; preds = %for.cond8.preheader.lr.ph
%wide.trip.count = zext i32 %sub to i64
%xtraiter = and i64 %wide.trip.count, 1
%1 = icmp eq i32 %sub, 1
%unroll_iter = and i64 %wide.trip.count, 4294967294
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br label %for.cond8.preheader.us
for.cond8.preheader.us: ; preds = %for.cond8.preheader.us.preheader, %for.cond8.for.inc32_crit_edge.us
%i.162.us = phi i32 [ %inc33.us, %for.cond8.for.inc32_crit_edge.us ], [ 0, %for.cond8.preheader.us.preheader ]
%.pre = load i32, ptr %a, align 16, !tbaa !5
br i1 %1, label %for.cond8.for.inc32_crit_edge.us.unr-lcssa, label %for.body11.us
for.body11.us: ; preds = %for.cond8.preheader.us, %for.inc29.us.1
%2 = phi i32 [ %6, %for.inc29.us.1 ], [ %.pre, %for.cond8.preheader.us ]
%indvars.iv66 = phi i64 [ %indvars.iv.next67.1, %for.inc29.us.1 ], [ 0, %for.cond8.preheader.us ]
%niter = phi i64 [ %niter.next.1, %for.inc29.us.1 ], [ 0, %for.cond8.preheader.us ]
%indvars.iv.next67 = or i64 %indvars.iv66, 1
%arrayidx16.us = getelementptr inbounds [10000 x i32], ptr %a, i64 0, i64 %indvars.iv.next67
%3 = load i32, ptr %arrayidx16.us, align 4, !tbaa !5
%cmp17.us = icmp sgt i32 %2, %3
br i1 %cmp17.us, label %if.then.us, label %for.inc29.us
if.then.us: ; preds = %for.body11.us
%arrayidx13.us = getelementptr inbounds [10000 x i32], ptr %a, i64 0, i64 %indvars.iv66
store i32 %3, ptr %arrayidx13.us, align 8, !tbaa !5
store i32 %2, ptr %arrayidx16.us, align 4, !tbaa !5
br label %for.inc29.us
for.inc29.us: ; preds = %if.then.us, %for.body11.us
%4 = phi i32 [ %2, %if.then.us ], [ %3, %for.body11.us ]
%indvars.iv.next67.1 = add nuw nsw i64 %indvars.iv66, 2
%arrayidx16.us.1 = getelementptr inbounds [10000 x i32], ptr %a, i64 0, i64 %indvars.iv.next67.1
%5 = load i32, ptr %arrayidx16.us.1, align 8, !tbaa !5
%cmp17.us.1 = icmp sgt i32 %4, %5
br i1 %cmp17.us.1, label %if.then.us.1, label %for.inc29.us.1
if.then.us.1: ; preds = %for.inc29.us
%arrayidx13.us.1 = getelementptr inbounds [10000 x i32], ptr %a, i64 0, i64 %indvars.iv.next67
store i32 %5, ptr %arrayidx13.us.1, align 4, !tbaa !5
store i32 %4, ptr %arrayidx16.us.1, align 8, !tbaa !5
br label %for.inc29.us.1
for.inc29.us.1: ; preds = %if.then.us.1, %for.inc29.us
%6 = phi i32 [ %4, %if.then.us.1 ], [ %5, %for.inc29.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.cond8.for.inc32_crit_edge.us.unr-lcssa, label %for.body11.us, !llvm.loop !9
for.cond8.for.inc32_crit_edge.us.unr-lcssa: ; preds = %for.inc29.us.1, %for.cond8.preheader.us
%.unr = phi i32 [ %.pre, %for.cond8.preheader.us ], [ %6, %for.inc29.us.1 ]
%indvars.iv66.unr = phi i64 [ 0, %for.cond8.preheader.us ], [ %indvars.iv.next67.1, %for.inc29.us.1 ]
br i1 %lcmp.mod.not, label %for.cond8.for.inc32_crit_edge.us, label %for.body11.us.epil
for.body11.us.epil: ; preds = %for.cond8.for.inc32_crit_edge.us.unr-lcssa
%indvars.iv.next67.epil = add nuw nsw i64 %indvars.iv66.unr, 1
%arrayidx16.us.epil = getelementptr inbounds [10000 x i32], ptr %a, i64 0, i64 %indvars.iv.next67.epil
%7 = load i32, ptr %arrayidx16.us.epil, align 4, !tbaa !5
%cmp17.us.epil = icmp sgt i32 %.unr, %7
br i1 %cmp17.us.epil, label %if.then.us.epil, label %for.cond8.for.inc32_crit_edge.us
if.then.us.epil: ; preds = %for.body11.us.epil
%arrayidx13.us.epil = getelementptr inbounds [10000 x i32], ptr %a, i64 0, i64 %indvars.iv66.unr
store i32 %7, ptr %arrayidx13.us.epil, align 4, !tbaa !5
store i32 %.unr, ptr %arrayidx16.us.epil, align 4, !tbaa !5
br label %for.cond8.for.inc32_crit_edge.us
for.cond8.for.inc32_crit_edge.us: ; preds = %for.body11.us.epil, %if.then.us.epil, %for.cond8.for.inc32_crit_edge.us.unr-lcssa
%inc33.us = add nuw nsw i32 %i.162.us, 1
%exitcond69.not = icmp eq i32 %inc33.us, %9
br i1 %exitcond69.not, label %for.end34, label %for.cond8.preheader.us, !llvm.loop !11
for.body: ; preds = %entry, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ]
%sum.057 = phi double [ %add, %for.body ], [ undef, %entry ]
%arrayidx = getelementptr inbounds [10000 x i32], ptr %a, i64 0, i64 %indvars.iv
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx)
%8 = load i32, ptr %arrayidx, align 4, !tbaa !5
%conv = sitofp i32 %8 to double
%add = fadd double %sum.057, %conv
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%9 = load i32, ptr %n, align 4, !tbaa !5
%10 = sext i32 %9 to i64
%cmp = icmp slt i64 %indvars.iv.next, %10
br i1 %cmp, label %for.body, label %for.cond4.preheader, !llvm.loop !12
for.end34: ; preds = %for.cond8.for.inc32_crit_edge.us, %for.cond8.preheader.lr.ph, %for.cond4.preheader.for.end34_crit_edge
%sum.0.lcssa74 = phi double [ %sum.0.lcssa75, %for.cond4.preheader.for.end34_crit_edge ], [ %add, %for.cond8.preheader.lr.ph ], [ %add, %for.cond8.for.inc32_crit_edge.us ]
%sub36.pre-phi = phi i32 [ %.pre70, %for.cond4.preheader.for.end34_crit_edge ], [ 0, %for.cond8.preheader.lr.ph ], [ %sub, %for.cond8.for.inc32_crit_edge.us ]
%11 = load i32, ptr %a, align 16, !tbaa !5
%idxprom37 = sext i32 %sub36.pre-phi to i64
%arrayidx38 = getelementptr inbounds [10000 x i32], ptr %a, i64 0, i64 %idxprom37
%12 = load i32, ptr %arrayidx38, align 4, !tbaa !5
%call39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %11, i32 noundef %12, double noundef %sum.0.lcssa74)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4
call void @llvm.lifetime.end.p0(i64 40000, 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: 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: 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) #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 = { 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(void){
int n;
long long a,b,c,d,e;
c=-1000000;
d=1000000;
e=0;
scanf("%d",&n);
for(a=0;a<n;a++){
scanf("%lld",&b);
if(b>c){
c=b;
}
if(b<d){
d=b;
}
e=e+b;
}
printf("%lld %lld %lld\n",d,c,e);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173026/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173026/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"%lld\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"%lld %lld %lld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%b = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %b) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp16 = icmp sgt i32 %0, 0
br i1 %cmp16, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%e.020 = phi i64 [ %add, %for.body ], [ 0, %entry ]
%d.019 = phi i64 [ %d.1, %for.body ], [ 1000000, %entry ]
%c.018 = phi i64 [ %spec.select, %for.body ], [ -1000000, %entry ]
%a.017 = phi i64 [ %inc, %for.body ], [ 0, %entry ]
%call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %b)
%1 = load i64, ptr %b, align 8, !tbaa !9
%spec.select = call i64 @llvm.smax.i64(i64 %1, i64 %c.018)
%d.1 = call i64 @llvm.smin.i64(i64 %1, i64 %d.019)
%add = add nsw i64 %1, %e.020
%inc = add nuw nsw i64 %a.017, 1
%2 = load i32, ptr %n, align 4, !tbaa !5
%conv = sext i32 %2 to i64
%cmp = icmp slt i64 %inc, %conv
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !11
for.end: ; preds = %for.body, %entry
%c.0.lcssa = phi i64 [ -1000000, %entry ], [ %spec.select, %for.body ]
%d.0.lcssa = phi i64 [ 1000000, %entry ], [ %d.1, %for.body ]
%e.0.lcssa = phi i64 [ 0, %entry ], [ %add, %for.body ]
%call9 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %d.0.lcssa, i64 noundef %c.0.lcssa, i64 noundef %e.0.lcssa)
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %b) #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 i64 @llvm.smax.i64(i64, i64) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, 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 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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
|
#include<stdio.h>
int main(void){
long int a[10000];
long int i, j,n,z,s;
scanf("%ld",&n);
for (i = 0; i < n; i++){
scanf("%ld", &a[i]);
}
for (i = 0; i < n; i++){
for (j = i+1; j <= n - 1; j++){
if (a[i]>a[j]){
z = a[i];
a[i] = a[j];
a[j] = z;
}
}
}
s = a[0];
for (i = 1; i < n; i++){
s = s + a[i];
}
printf("%ld %ld %ld\n",a[0],a[n-1],s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173084/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173084/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 [4 x i8] c"%ld\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"%ld %ld %ld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca [10000 x i64], align 16
%n = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 80000, ptr nonnull %a) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %n) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i64, ptr %n, align 8, !tbaa !5
%cmp52 = icmp sgt i64 %0, 0
br i1 %cmp52, label %for.body, label %for.end20.thread
for.cond2.preheader: ; preds = %for.body
%cmp356 = icmp sgt i64 %1, 0
br i1 %cmp356, label %for.body4, label %for.end20.thread
for.body: ; preds = %entry, %for.body
%i.053 = phi i64 [ %inc, %for.body ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [10000 x i64], ptr %a, i64 0, i64 %i.053
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx)
%inc = add nuw nsw i64 %i.053, 1
%1 = load i64, ptr %n, align 8, !tbaa !5
%cmp = icmp slt i64 %inc, %1
br i1 %cmp, label %for.body, label %for.cond2.preheader, !llvm.loop !9
for.cond2.loopexit: ; preds = %for.inc15, %for.body4
%exitcond.not = icmp eq i64 %add, %1
br i1 %exitcond.not, label %for.end20, label %for.body4, !llvm.loop !11
for.body4: ; preds = %for.cond2.preheader, %for.cond2.loopexit
%i.157 = phi i64 [ %add, %for.cond2.loopexit ], [ 0, %for.cond2.preheader ]
%add = add nuw nsw i64 %i.157, 1
%cmp6.not.not54 = icmp slt i64 %add, %1
br i1 %cmp6.not.not54, label %for.body7.lr.ph, label %for.cond2.loopexit
for.body7.lr.ph: ; preds = %for.body4
%arrayidx8 = getelementptr inbounds [10000 x i64], ptr %a, i64 0, i64 %i.157
br label %for.body7
for.body7: ; preds = %for.body7.lr.ph, %for.inc15
%j.055 = phi i64 [ %add, %for.body7.lr.ph ], [ %inc16, %for.inc15 ]
%2 = load i64, ptr %arrayidx8, align 8, !tbaa !5
%arrayidx9 = getelementptr inbounds [10000 x i64], ptr %a, i64 0, i64 %j.055
%3 = load i64, ptr %arrayidx9, align 8, !tbaa !5
%cmp10 = icmp sgt i64 %2, %3
br i1 %cmp10, label %if.then, label %for.inc15
if.then: ; preds = %for.body7
store i64 %3, ptr %arrayidx8, align 8, !tbaa !5
store i64 %2, ptr %arrayidx9, align 8, !tbaa !5
br label %for.inc15
for.inc15: ; preds = %for.body7, %if.then
%inc16 = add nuw nsw i64 %j.055, 1
%cmp6.not.not = icmp slt i64 %inc16, %1
br i1 %cmp6.not.not, label %for.body7, label %for.cond2.loopexit, !llvm.loop !12
for.end20.thread: ; preds = %for.cond2.preheader, %entry
%.lcssa66.ph = phi i64 [ %1, %for.cond2.preheader ], [ %0, %entry ]
%4 = load i64, ptr %a, align 16, !tbaa !5
br label %for.end29
for.end20: ; preds = %for.cond2.loopexit
%5 = load i64, ptr %a, align 16, !tbaa !5
%cmp2358 = icmp sgt i64 %1, 1
br i1 %cmp2358, label %for.body24.preheader, label %for.end29
for.body24.preheader: ; preds = %for.end20
%6 = add i64 %1, -1
%min.iters.check = icmp ult i64 %1, 5
br i1 %min.iters.check, label %for.body24.preheader72, label %vector.ph
vector.ph: ; preds = %for.body24.preheader
%n.vec = and i64 %6, -4
%ind.end = or i64 %n.vec, 1
%7 = insertelement <2 x i64> <i64 poison, i64 0>, i64 %5, i64 0
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 i64> [ %7, %vector.ph ], [ %10, %vector.body ]
%vec.phi70 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %11, %vector.body ]
%offset.idx = or i64 %index, 1
%8 = getelementptr inbounds [10000 x i64], ptr %a, i64 0, i64 %offset.idx
%wide.load = load <2 x i64>, ptr %8, align 8, !tbaa !5
%9 = getelementptr inbounds i64, ptr %8, i64 2
%wide.load71 = load <2 x i64>, ptr %9, align 8, !tbaa !5
%10 = add <2 x i64> %wide.load, %vec.phi
%11 = add <2 x i64> %wide.load71, %vec.phi70
%index.next = add nuw i64 %index, 4
%12 = icmp eq i64 %index.next, %n.vec
br i1 %12, label %middle.block, label %vector.body, !llvm.loop !13
middle.block: ; preds = %vector.body
%bin.rdx = add <2 x i64> %11, %10
%13 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
%cmp.n = icmp eq i64 %6, %n.vec
br i1 %cmp.n, label %for.end29, label %for.body24.preheader72
for.body24.preheader72: ; preds = %for.body24.preheader, %middle.block
%s.060.ph = phi i64 [ %5, %for.body24.preheader ], [ %13, %middle.block ]
%i.259.ph = phi i64 [ 1, %for.body24.preheader ], [ %ind.end, %middle.block ]
br label %for.body24
for.body24: ; preds = %for.body24.preheader72, %for.body24
%s.060 = phi i64 [ %add26, %for.body24 ], [ %s.060.ph, %for.body24.preheader72 ]
%i.259 = phi i64 [ %inc28, %for.body24 ], [ %i.259.ph, %for.body24.preheader72 ]
%arrayidx25 = getelementptr inbounds [10000 x i64], ptr %a, i64 0, i64 %i.259
%14 = load i64, ptr %arrayidx25, align 8, !tbaa !5
%add26 = add nsw i64 %14, %s.060
%inc28 = add nuw nsw i64 %i.259, 1
%exitcond63.not = icmp eq i64 %inc28, %1
br i1 %exitcond63.not, label %for.end29, label %for.body24, !llvm.loop !16
for.end29: ; preds = %for.body24, %middle.block, %for.end20.thread, %for.end20
%15 = phi i64 [ %5, %for.end20 ], [ %4, %for.end20.thread ], [ %5, %middle.block ], [ %5, %for.body24 ]
%.lcssa6669 = phi i64 [ %1, %for.end20 ], [ %.lcssa66.ph, %for.end20.thread ], [ %1, %middle.block ], [ %1, %for.body24 ]
%s.0.lcssa = phi i64 [ %5, %for.end20 ], [ %4, %for.end20.thread ], [ %13, %middle.block ], [ %add26, %for.body24 ]
%sub31 = add nsw i64 %.lcssa6669, -1
%arrayidx32 = getelementptr inbounds [10000 x i64], ptr %a, i64 0, i64 %sub31
%16 = load i64, ptr %arrayidx32, align 8, !tbaa !5
%call33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %15, i64 noundef %16, i64 noundef %s.0.lcssa)
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %n) #4
call void @llvm.lifetime.end.p0(i64 80000, 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x 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 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 = !{!"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}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !10, !15, !14}
|
#include<stdio.h>
int main(){
int n=0;
long long max,d,sum=0;
long long min = 1;
scanf("%d",&n);
scanf("%lld",&d);
max=d;
min=d;
sum=sum+d;
n=n-1;
while(n!=0){
scanf("%lld",&d);
sum = sum + d;
if(max < d)max=d;
if(min > d)min=d;
n = n-1;}
printf("%lld %lld %lld\n",min,max,sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173134/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173134/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"%lld\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"%lld %lld %lld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%d = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4
store i32 0, ptr %n, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %d) #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 %d)
%0 = load i64, ptr %d, align 8, !tbaa !9
%storemerge.in15 = load i32, ptr %n, align 4, !tbaa !5
%storemerge16 = add nsw i32 %storemerge.in15, -1
store i32 %storemerge16, ptr %n, align 4, !tbaa !5
%cmp.not17 = icmp eq i32 %storemerge16, 0
br i1 %cmp.not17, label %while.end, label %while.body
while.body: ; preds = %entry, %while.body
%min.020 = phi i64 [ %min.1, %while.body ], [ %0, %entry ]
%sum.019 = phi i64 [ %add3, %while.body ], [ %0, %entry ]
%max.018 = phi i64 [ %spec.select, %while.body ], [ %0, %entry ]
%call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %d)
%1 = load i64, ptr %d, align 8, !tbaa !9
%add3 = add nsw i64 %1, %sum.019
%spec.select = call i64 @llvm.smax.i64(i64 %max.018, i64 %1)
%min.1 = call i64 @llvm.smin.i64(i64 %min.020, i64 %1)
%storemerge.in = load i32, ptr %n, align 4, !tbaa !5
%storemerge = add nsw i32 %storemerge.in, -1
store i32 %storemerge, ptr %n, align 4, !tbaa !5
%cmp.not = icmp eq i32 %storemerge, 0
br i1 %cmp.not, label %while.end, label %while.body, !llvm.loop !11
while.end: ; preds = %while.body, %entry
%max.0.lcssa = phi i64 [ %0, %entry ], [ %spec.select, %while.body ]
%sum.0.lcssa = phi i64 [ %0, %entry ], [ %add3, %while.body ]
%min.0.lcssa = phi i64 [ %0, %entry ], [ %min.1, %while.body ]
%call9 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %min.0.lcssa, i64 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %d) #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 i64 @llvm.smax.i64(i64, i64) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, 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 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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int *arr, x, i;
int max, min;
long sum;
scanf("%d", &x);
arr=(int*)malloc(sizeof(int)*x);
for(i=0;i<x;i++)
scanf("%d", &arr[i]);
max=arr[0];
min=arr[0];
sum=arr[0];
for(i=0; i<x-1; i++)
{
if(arr[i]<arr[i+1] && max<arr[i+1])
max=arr[i+1];
if(arr[i]>arr[i+1] && min>arr[i+1])
min=arr[i+1];
sum+=arr[i+1];
}
printf("%d %d %li\n", min, max, sum);
free(arr);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173178/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173178/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 [11 x i8] c"%d %d %li\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #6
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%conv = zext i32 %0 to i64
%mul = shl nuw nsw i64 %conv, 2
%call1 = call noalias ptr @malloc(i64 noundef %mul) #7
%cmp84 = icmp sgt i32 %0, 0
call void @llvm.assume(i1 %cmp84)
br label %for.body
for.body: ; preds = %entry, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ]
%arrayidx = getelementptr inbounds i32, ptr %call1, i64 %indvars.iv
%call3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef %arrayidx)
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%1 = load i32, ptr %x, align 4, !tbaa !5
%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 !9
for.end: ; preds = %for.body
%.pre = load i32, ptr %call1, align 4, !tbaa !5
%conv7 = sext i32 %.pre to i64
%cmp986 = icmp sgt i32 %1, 1
br i1 %cmp986, label %for.body11.preheader, label %for.end51
for.body11.preheader: ; preds = %for.end
%sub = add nsw i32 %1, -1
%wide.trip.count = zext i32 %sub to i64
%xtraiter = and i64 %wide.trip.count, 1
%3 = icmp eq i32 %sub, 1
br i1 %3, label %for.end51.loopexit.unr-lcssa, label %for.body11.preheader.new
for.body11.preheader.new: ; preds = %for.body11.preheader
%unroll_iter = and i64 %wide.trip.count, 4294967294
br label %for.body11
for.body11: ; preds = %for.body11, %for.body11.preheader.new
%4 = phi i32 [ %.pre, %for.body11.preheader.new ], [ %6, %for.body11 ]
%indvars.iv96 = phi i64 [ 0, %for.body11.preheader.new ], [ %indvars.iv.next97.1, %for.body11 ]
%sum.090 = phi i64 [ %conv7, %for.body11.preheader.new ], [ %add48.1, %for.body11 ]
%min.089 = phi i32 [ %.pre, %for.body11.preheader.new ], [ %min.1.1, %for.body11 ]
%max.088 = phi i32 [ %.pre, %for.body11.preheader.new ], [ %max.1.1, %for.body11 ]
%niter = phi i64 [ 0, %for.body11.preheader.new ], [ %niter.next.1, %for.body11 ]
%indvars.iv.next97 = or i64 %indvars.iv96, 1
%arrayidx15 = getelementptr inbounds i32, ptr %call1, i64 %indvars.iv.next97
%5 = load i32, ptr %arrayidx15, align 4, !tbaa !5
%cmp16 = icmp slt i32 %4, %5
%cmp21 = icmp slt i32 %max.088, %5
%or.cond = select i1 %cmp16, i1 %cmp21, i1 false
%max.1 = select i1 %or.cond, i32 %5, i32 %max.088
%cmp31 = icmp sgt i32 %4, %5
%cmp37 = icmp sgt i32 %min.089, %5
%or.cond83 = select i1 %cmp31, i1 %cmp37, i1 false
%min.1 = select i1 %or.cond83, i32 %5, i32 %min.089
%conv47 = sext i32 %5 to i64
%add48 = add nsw i64 %sum.090, %conv47
%indvars.iv.next97.1 = add nuw nsw i64 %indvars.iv96, 2
%arrayidx15.1 = getelementptr inbounds i32, ptr %call1, i64 %indvars.iv.next97.1
%6 = load i32, ptr %arrayidx15.1, align 4, !tbaa !5
%cmp16.1 = icmp slt i32 %5, %6
%cmp21.1 = icmp slt i32 %max.1, %6
%or.cond.1 = select i1 %cmp16.1, i1 %cmp21.1, i1 false
%max.1.1 = select i1 %or.cond.1, i32 %6, i32 %max.1
%cmp31.1 = icmp sgt i32 %5, %6
%cmp37.1 = icmp sgt i32 %min.1, %6
%or.cond83.1 = select i1 %cmp31.1, i1 %cmp37.1, i1 false
%min.1.1 = select i1 %or.cond83.1, i32 %6, i32 %min.1
%conv47.1 = sext i32 %6 to i64
%add48.1 = add nsw i64 %add48, %conv47.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 %for.end51.loopexit.unr-lcssa.loopexit, label %for.body11, !llvm.loop !11
for.end51.loopexit.unr-lcssa.loopexit: ; preds = %for.body11
%7 = add nuw nsw i64 %indvars.iv96, 3
br label %for.end51.loopexit.unr-lcssa
for.end51.loopexit.unr-lcssa: ; preds = %for.end51.loopexit.unr-lcssa.loopexit, %for.body11.preheader
%max.1.lcssa.ph = phi i32 [ undef, %for.body11.preheader ], [ %max.1.1, %for.end51.loopexit.unr-lcssa.loopexit ]
%min.1.lcssa.ph = phi i32 [ undef, %for.body11.preheader ], [ %min.1.1, %for.end51.loopexit.unr-lcssa.loopexit ]
%add48.lcssa.ph = phi i64 [ undef, %for.body11.preheader ], [ %add48.1, %for.end51.loopexit.unr-lcssa.loopexit ]
%.unr = phi i32 [ %.pre, %for.body11.preheader ], [ %6, %for.end51.loopexit.unr-lcssa.loopexit ]
%indvars.iv96.unr = phi i64 [ 1, %for.body11.preheader ], [ %7, %for.end51.loopexit.unr-lcssa.loopexit ]
%sum.090.unr = phi i64 [ %conv7, %for.body11.preheader ], [ %add48.1, %for.end51.loopexit.unr-lcssa.loopexit ]
%min.089.unr = phi i32 [ %.pre, %for.body11.preheader ], [ %min.1.1, %for.end51.loopexit.unr-lcssa.loopexit ]
%max.088.unr = phi i32 [ %.pre, %for.body11.preheader ], [ %max.1.1, %for.end51.loopexit.unr-lcssa.loopexit ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.end51, label %for.body11.epil
for.body11.epil: ; preds = %for.end51.loopexit.unr-lcssa
%arrayidx15.epil = getelementptr inbounds i32, ptr %call1, i64 %indvars.iv96.unr
%8 = load i32, ptr %arrayidx15.epil, align 4, !tbaa !5
%cmp16.epil = icmp slt i32 %.unr, %8
%cmp21.epil = icmp slt i32 %max.088.unr, %8
%or.cond.epil = select i1 %cmp16.epil, i1 %cmp21.epil, i1 false
%max.1.epil = select i1 %or.cond.epil, i32 %8, i32 %max.088.unr
%cmp31.epil = icmp sgt i32 %.unr, %8
%cmp37.epil = icmp sgt i32 %min.089.unr, %8
%or.cond83.epil = select i1 %cmp31.epil, i1 %cmp37.epil, i1 false
%min.1.epil = select i1 %or.cond83.epil, i32 %8, i32 %min.089.unr
%conv47.epil = sext i32 %8 to i64
%add48.epil = add nsw i64 %sum.090.unr, %conv47.epil
br label %for.end51
for.end51: ; preds = %for.body11.epil, %for.end51.loopexit.unr-lcssa, %for.end
%max.0.lcssa = phi i32 [ %.pre, %for.end ], [ %max.1.lcssa.ph, %for.end51.loopexit.unr-lcssa ], [ %max.1.epil, %for.body11.epil ]
%min.0.lcssa = phi i32 [ %.pre, %for.end ], [ %min.1.lcssa.ph, %for.end51.loopexit.unr-lcssa ], [ %min.1.epil, %for.body11.epil ]
%sum.0.lcssa = phi i64 [ %conv7, %for.end ], [ %add48.lcssa.ph, %for.end51.loopexit.unr-lcssa ], [ %add48.epil, %for.body11.epil ]
%call52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @free(ptr noundef nonnull %call1) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #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) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) 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) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #5
attributes #0 = { 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 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 #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #5 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }
!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 <limits.h>
int main()
{
int i, n, a;
int min=INT_MAX, max=INT_MIN;
long long sum=0;
scanf("%d", &n);
for(i=0; i<n; i++) {
scanf("%d", &a);
if(a<min) min=a;
if(max<a) max=a;
sum+=a;
}
printf("%d %d %lld\n", min, max, sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173220/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173220/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 %lld\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
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #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 %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp12 = icmp sgt i32 %0, 0
br i1 %cmp12, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%sum.016 = phi i64 [ %add, %for.body ], [ 0, %entry ]
%max.015 = phi i32 [ %max.1, %for.body ], [ -2147483648, %entry ]
%min.014 = phi i32 [ %spec.select, %for.body ], [ 2147483647, %entry ]
%i.013 = phi i32 [ %inc, %for.body ], [ 0, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%1 = load i32, ptr %a, align 4, !tbaa !5
%spec.select = call i32 @llvm.smin.i32(i32 %1, i32 %min.014)
%max.1 = call i32 @llvm.smax.i32(i32 %max.015, i32 %1)
%conv = sext i32 %1 to i64
%add = add nsw i64 %sum.016, %conv
%inc = add nuw nsw i32 %i.013, 1
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %2
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body, %entry
%min.0.lcssa = phi i32 [ 2147483647, %entry ], [ %spec.select, %for.body ]
%max.0.lcssa = phi i32 [ -2147483648, %entry ], [ %max.1, %for.body ]
%sum.0.lcssa = phi i64 [ 0, %entry ], [ %add, %for.body ]
%call6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 4, 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.smin.i32(i32, i32) #3
; 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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
int main(void)
{
int i,n,num,min=1000001,max=-1000001;
long sum=0;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&num);
sum+=num;
if(min>num){
min=num;
}
if(max<num){
max=num;
}
}
printf("%d %d %ld\n",min,max,sum);
return 0 ;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173264/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173264/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 [11 x i8] c"%d %d %ld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%num = 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 %num) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp14 = icmp sgt i32 %0, 0
br i1 %cmp14, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%sum.018 = phi i64 [ %add, %for.body ], [ 0, %entry ]
%max.017 = phi i32 [ %max.1, %for.body ], [ -1000001, %entry ]
%min.016 = phi i32 [ %spec.select, %for.body ], [ 1000001, %entry ]
%i.015 = phi i32 [ %inc, %for.body ], [ 0, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %num)
%1 = load i32, ptr %num, align 4, !tbaa !5
%conv = sext i32 %1 to i64
%add = add nsw i64 %sum.018, %conv
%spec.select = call i32 @llvm.smin.i32(i32 %min.016, i32 %1)
%max.1 = call i32 @llvm.smax.i32(i32 %max.017, i32 %1)
%inc = add nuw nsw i32 %i.015, 1
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %2
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body, %entry
%min.0.lcssa = phi i32 [ 1000001, %entry ], [ %spec.select, %for.body ]
%max.0.lcssa = phi i32 [ -1000001, %entry ], [ %max.1, %for.body ]
%sum.0.lcssa = phi i64 [ 0, %entry ], [ %add, %for.body ]
%call8 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %num) #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.smin.i32(i32, i32) #3
; 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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
int main() {
int n;
char c;
long int array[10000];
long int i = 0, max, min;
long int total;
scanf("%d", &n);
while(i < 10000) {
scanf("%ld%c", &array[i], &c);
i++;
if(c == '\n')
break;
}
max = array[0];
min = array[0];
total = 0;
for(i = 0; i < n; i++) {
total += array[i];
if(max < array[i])
max = array[i];
if(min > array[i])
min = array[i];
}
printf("%ld %ld %ld\n", min, max, total);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173307/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173307/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"%ld%c\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"%ld %ld %ld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%c = alloca i8, align 1
%array = alloca [10000 x i64], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %c) #4
call void @llvm.lifetime.start.p0(i64 80000, ptr nonnull %array) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
br label %while.body
while.body: ; preds = %entry, %while.body
%i.0 = phi i64 [ 0, %entry ], [ %inc, %while.body ]
%arrayidx = getelementptr inbounds [10000 x i64], ptr %array, i64 0, i64 %i.0
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx, ptr noundef nonnull %c)
%inc = add nuw nsw i64 %i.0, 1
%0 = load i8, ptr %c, align 1, !tbaa !5
%cmp2 = icmp ne i8 %0, 10
%cmp = icmp ult i64 %i.0, 9999
%or.cond = and i1 %cmp, %cmp2
br i1 %or.cond, label %while.body, label %while.end, !llvm.loop !8
while.end: ; preds = %while.body
%1 = load i64, ptr %array, align 16, !tbaa !10
%2 = load i32, ptr %n, align 4, !tbaa !12
%conv6 = sext i32 %2 to i64
%cmp738 = icmp sgt i32 %2, 0
br i1 %cmp738, label %for.body.preheader, label %for.end
for.body.preheader: ; preds = %while.end
%xtraiter = and i64 %conv6, 1
%3 = icmp eq i32 %2, 1
br i1 %3, label %for.end.loopexit.unr-lcssa, label %for.body.preheader.new
for.body.preheader.new: ; preds = %for.body.preheader
%unroll_iter = and i64 %conv6, -2
br label %for.body
for.body: ; preds = %for.body, %for.body.preheader.new
%total.042 = phi i64 [ 0, %for.body.preheader.new ], [ %add.1, %for.body ]
%min.041 = phi i64 [ %1, %for.body.preheader.new ], [ %min.1.1, %for.body ]
%max.040 = phi i64 [ %1, %for.body.preheader.new ], [ %spec.select.1, %for.body ]
%i.139 = phi i64 [ 0, %for.body.preheader.new ], [ %inc22.1, %for.body ]
%niter = phi i64 [ 0, %for.body.preheader.new ], [ %niter.next.1, %for.body ]
%arrayidx9 = getelementptr inbounds [10000 x i64], ptr %array, i64 0, i64 %i.139
%4 = load i64, ptr %arrayidx9, align 16, !tbaa !10
%add = add nsw i64 %4, %total.042
%spec.select = call i64 @llvm.smax.i64(i64 %max.040, i64 %4)
%min.1 = call i64 @llvm.smin.i64(i64 %min.041, i64 %4)
%inc22 = or i64 %i.139, 1
%arrayidx9.1 = getelementptr inbounds [10000 x i64], ptr %array, i64 0, i64 %inc22
%5 = load i64, ptr %arrayidx9.1, align 8, !tbaa !10
%add.1 = add nsw i64 %5, %add
%spec.select.1 = call i64 @llvm.smax.i64(i64 %spec.select, i64 %5)
%min.1.1 = call i64 @llvm.smin.i64(i64 %min.1, i64 %5)
%inc22.1 = add nuw nsw i64 %i.139, 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 !14
for.end.loopexit.unr-lcssa: ; preds = %for.body, %for.body.preheader
%add.lcssa.ph = phi i64 [ undef, %for.body.preheader ], [ %add.1, %for.body ]
%spec.select.lcssa.ph = phi i64 [ undef, %for.body.preheader ], [ %spec.select.1, %for.body ]
%min.1.lcssa.ph = phi i64 [ undef, %for.body.preheader ], [ %min.1.1, %for.body ]
%total.042.unr = phi i64 [ 0, %for.body.preheader ], [ %add.1, %for.body ]
%min.041.unr = phi i64 [ %1, %for.body.preheader ], [ %min.1.1, %for.body ]
%max.040.unr = phi i64 [ %1, %for.body.preheader ], [ %spec.select.1, %for.body ]
%i.139.unr = phi i64 [ 0, %for.body.preheader ], [ %inc22.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
%arrayidx9.epil = getelementptr inbounds [10000 x i64], ptr %array, i64 0, i64 %i.139.unr
%6 = load i64, ptr %arrayidx9.epil, align 8, !tbaa !10
%add.epil = add nsw i64 %6, %total.042.unr
%spec.select.epil = call i64 @llvm.smax.i64(i64 %max.040.unr, i64 %6)
%min.1.epil = call i64 @llvm.smin.i64(i64 %min.041.unr, i64 %6)
br label %for.end
for.end: ; preds = %for.body.epil, %for.end.loopexit.unr-lcssa, %while.end
%max.0.lcssa = phi i64 [ %1, %while.end ], [ %spec.select.lcssa.ph, %for.end.loopexit.unr-lcssa ], [ %spec.select.epil, %for.body.epil ]
%min.0.lcssa = phi i64 [ %1, %while.end ], [ %min.1.lcssa.ph, %for.end.loopexit.unr-lcssa ], [ %min.1.epil, %for.body.epil ]
%total.0.lcssa = phi i64 [ 0, %while.end ], [ %add.lcssa.ph, %for.end.loopexit.unr-lcssa ], [ %add.epil, %for.body.epil ]
%call23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %min.0.lcssa, i64 noundef %max.0.lcssa, i64 noundef %total.0.lcssa)
call void @llvm.lifetime.end.p0(i64 80000, ptr nonnull %array) #4
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %c) #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 i64 @llvm.smax.i64(i64, i64) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, 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 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !6, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !6, i64 0}
!14 = distinct !{!14, !9}
|
#include<stdio.h>
int main(void) {
int n;
int x;
int num;
int min = 1000001;
int max = -1000001;
long total = 0;
scanf("%d",&n);
for(x = 0; x < n; x++){
scanf("%d",&num);
if(min >num)min = num;
if(max < num)max = num;
total += num;
}
printf("%d %d %ld\n",min,max,total);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173350/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173350/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 [11 x i8] c"%d %d %ld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%num = 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 %num) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp12 = icmp sgt i32 %0, 0
br i1 %cmp12, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%total.016 = phi i64 [ %add, %for.body ], [ 0, %entry ]
%max.015 = phi i32 [ %max.1, %for.body ], [ -1000001, %entry ]
%min.014 = phi i32 [ %spec.select, %for.body ], [ 1000001, %entry ]
%x.013 = phi i32 [ %inc, %for.body ], [ 0, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %num)
%1 = load i32, ptr %num, align 4, !tbaa !5
%spec.select = call i32 @llvm.smin.i32(i32 %min.014, i32 %1)
%max.1 = call i32 @llvm.smax.i32(i32 %max.015, i32 %1)
%conv = sext i32 %1 to i64
%add = add nsw i64 %total.016, %conv
%inc = add nuw nsw i32 %x.013, 1
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %2
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body, %entry
%min.0.lcssa = phi i32 [ 1000001, %entry ], [ %spec.select, %for.body ]
%max.0.lcssa = phi i32 [ -1000001, %entry ], [ %max.1, %for.body ]
%total.0.lcssa = phi i64 [ 0, %entry ], [ %add, %for.body ]
%call6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %total.0.lcssa)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %num) #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.smin.i32(i32, i32) #3
; 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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include<stdio.h>
int main(){
int n,a[10000],min,max,i;
long int sum;
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&a[i]);
min=a[0];
max=a[0];
sum=a[0];
for(i=1;i<n;i++){
if(min>a[i])
min=a[i];
else if(max<a[i])
max=a[i];
sum=sum+a[i];
}
printf("%d %d %ld\n",min,max,sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173394/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173394/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 [11 x i8] c"%d %d %ld\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 [10000 x i32], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #5
call void @llvm.lifetime.start.p0(i64 40000, ptr nonnull %a) #5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp42 = icmp sgt i32 %0, 0
call void @llvm.assume(i1 %cmp42)
br label %for.body
for.body: ; preds = %entry, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [10000 x i32], ptr %a, i64 0, 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
%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.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body
%.pre = load i32, ptr %a, align 16, !tbaa !5
%conv = sext i32 %.pre to i64
%cmp644 = icmp sgt i32 %1, 1
br i1 %cmp644, label %for.body8.preheader, label %for.end28
for.body8.preheader: ; preds = %for.end
%wide.trip.count = zext i32 %1 to i64
%3 = add nsw i64 %wide.trip.count, -1
%xtraiter = and i64 %3, 1
%4 = icmp eq i32 %1, 2
br i1 %4, label %for.end28.loopexit.unr-lcssa, label %for.body8.preheader.new
for.body8.preheader.new: ; preds = %for.body8.preheader
%unroll_iter = and i64 %3, -2
br label %for.body8
for.body8: ; preds = %for.body8, %for.body8.preheader.new
%indvars.iv54 = phi i64 [ 1, %for.body8.preheader.new ], [ %indvars.iv.next55.1, %for.body8 ]
%sum.048 = phi i64 [ %conv, %for.body8.preheader.new ], [ %add.1, %for.body8 ]
%max.046 = phi i32 [ %.pre, %for.body8.preheader.new ], [ %max.1.1, %for.body8 ]
%min.045 = phi i32 [ %.pre, %for.body8.preheader.new ], [ %min.1.1, %for.body8 ]
%niter = phi i64 [ 0, %for.body8.preheader.new ], [ %niter.next.1, %for.body8 ]
%arrayidx10 = getelementptr inbounds [10000 x i32], ptr %a, i64 0, i64 %indvars.iv54
%5 = load i32, ptr %arrayidx10, align 4, !tbaa !5
%cmp11 = icmp sgt i32 %min.045, %5
%spec.select = call i32 @llvm.smax.i32(i32 %max.046, i32 %5)
%min.1 = call i32 @llvm.smin.i32(i32 %min.045, i32 %5)
%max.1 = select i1 %cmp11, i32 %max.046, i32 %spec.select
%conv25 = sext i32 %5 to i64
%add = add nsw i64 %sum.048, %conv25
%indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
%arrayidx10.1 = getelementptr inbounds [10000 x i32], ptr %a, i64 0, i64 %indvars.iv.next55
%6 = load i32, ptr %arrayidx10.1, align 4, !tbaa !5
%cmp11.1 = icmp sgt i32 %min.1, %6
%spec.select.1 = call i32 @llvm.smax.i32(i32 %max.1, i32 %6)
%min.1.1 = call i32 @llvm.smin.i32(i32 %min.1, i32 %6)
%max.1.1 = select i1 %cmp11.1, i32 %max.1, i32 %spec.select.1
%conv25.1 = sext i32 %6 to i64
%add.1 = add nsw i64 %add, %conv25.1
%indvars.iv.next55.1 = add nuw nsw i64 %indvars.iv54, 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.end28.loopexit.unr-lcssa, label %for.body8, !llvm.loop !11
for.end28.loopexit.unr-lcssa: ; preds = %for.body8, %for.body8.preheader
%min.1.lcssa.ph = phi i32 [ undef, %for.body8.preheader ], [ %min.1.1, %for.body8 ]
%max.1.lcssa.ph = phi i32 [ undef, %for.body8.preheader ], [ %max.1.1, %for.body8 ]
%add.lcssa.ph = phi i64 [ undef, %for.body8.preheader ], [ %add.1, %for.body8 ]
%indvars.iv54.unr = phi i64 [ 1, %for.body8.preheader ], [ %indvars.iv.next55.1, %for.body8 ]
%sum.048.unr = phi i64 [ %conv, %for.body8.preheader ], [ %add.1, %for.body8 ]
%max.046.unr = phi i32 [ %.pre, %for.body8.preheader ], [ %max.1.1, %for.body8 ]
%min.045.unr = phi i32 [ %.pre, %for.body8.preheader ], [ %min.1.1, %for.body8 ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.end28, label %for.body8.epil
for.body8.epil: ; preds = %for.end28.loopexit.unr-lcssa
%arrayidx10.epil = getelementptr inbounds [10000 x i32], ptr %a, i64 0, i64 %indvars.iv54.unr
%7 = load i32, ptr %arrayidx10.epil, align 4, !tbaa !5
%cmp11.epil = icmp sgt i32 %min.045.unr, %7
%spec.select.epil = call i32 @llvm.smax.i32(i32 %max.046.unr, i32 %7)
%min.1.epil = call i32 @llvm.smin.i32(i32 %min.045.unr, i32 %7)
%max.1.epil = select i1 %cmp11.epil, i32 %max.046.unr, i32 %spec.select.epil
%conv25.epil = sext i32 %7 to i64
%add.epil = add nsw i64 %sum.048.unr, %conv25.epil
br label %for.end28
for.end28: ; preds = %for.body8.epil, %for.end28.loopexit.unr-lcssa, %for.end
%min.0.lcssa = phi i32 [ %.pre, %for.end ], [ %min.1.lcssa.ph, %for.end28.loopexit.unr-lcssa ], [ %min.1.epil, %for.body8.epil ]
%max.0.lcssa = phi i32 [ %.pre, %for.end ], [ %max.1.lcssa.ph, %for.end28.loopexit.unr-lcssa ], [ %max.1.epil, %for.body8.epil ]
%sum.0.lcssa = phi i64 [ %conv, %for.end ], [ %add.lcssa.ph, %for.end28.loopexit.unr-lcssa ], [ %add.epil, %for.body8.epil ]
%call29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 40000, 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: 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
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: 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}
|
#include <stdio.h>
#include <limits.h>
int main()
{
int i, n, a;
int min=INT_MAX, max=INT_MIN;
long long sum=0;
scanf("%d", &n);
for(i=0; i<n; i++) {
scanf("%d", &a);
if(a<min) min=a;
if(max<a) max=a;
sum+=a;
}
printf("%d %d %lld\n", min, max, sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173437/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173437/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 %lld\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
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #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 %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp12 = icmp sgt i32 %0, 0
br i1 %cmp12, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%sum.016 = phi i64 [ %add, %for.body ], [ 0, %entry ]
%max.015 = phi i32 [ %max.1, %for.body ], [ -2147483648, %entry ]
%min.014 = phi i32 [ %spec.select, %for.body ], [ 2147483647, %entry ]
%i.013 = phi i32 [ %inc, %for.body ], [ 0, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%1 = load i32, ptr %a, align 4, !tbaa !5
%spec.select = call i32 @llvm.smin.i32(i32 %1, i32 %min.014)
%max.1 = call i32 @llvm.smax.i32(i32 %max.015, i32 %1)
%conv = sext i32 %1 to i64
%add = add nsw i64 %sum.016, %conv
%inc = add nuw nsw i32 %i.013, 1
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %2
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body, %entry
%min.0.lcssa = phi i32 [ 2147483647, %entry ], [ %spec.select, %for.body ]
%max.0.lcssa = phi i32 [ -2147483648, %entry ], [ %max.1, %for.body ]
%sum.0.lcssa = phi i64 [ 0, %entry ], [ %add, %for.body ]
%call6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 4, 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.smin.i32(i32, i32) #3
; 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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include<stdio.h>
int main(void){
int n,i,ai,max,min;
double sum;
sum=0.0;
max=-1000000;
min=1000000;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&ai);
if(ai<min){
min=ai;
}
if(max<ai){
max=ai;
}
sum=sum+ai;
}
printf("%d %d %.0lf\n",min,max,sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173480/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173480/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 [13 x i8] c"%d %d %.0lf\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%ai = 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 %ai) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp12 = icmp sgt i32 %0, 0
br i1 %cmp12, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%sum.016 = phi double [ %add, %for.body ], [ 0.000000e+00, %entry ]
%min.015 = phi i32 [ %spec.select, %for.body ], [ 1000000, %entry ]
%max.014 = phi i32 [ %max.1, %for.body ], [ -1000000, %entry ]
%i.013 = phi i32 [ %inc, %for.body ], [ 0, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %ai)
%1 = load i32, ptr %ai, align 4, !tbaa !5
%spec.select = call i32 @llvm.smin.i32(i32 %1, i32 %min.015)
%max.1 = call i32 @llvm.smax.i32(i32 %max.014, i32 %1)
%conv = sitofp i32 %1 to double
%add = fadd double %sum.016, %conv
%inc = add nuw nsw i32 %i.013, 1
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %2
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body, %entry
%max.0.lcssa = phi i32 [ -1000000, %entry ], [ %max.1, %for.body ]
%min.0.lcssa = phi i32 [ 1000000, %entry ], [ %spec.select, %for.body ]
%sum.0.lcssa = phi double [ 0.000000e+00, %entry ], [ %add, %for.body ]
%call6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, double noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %ai) #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.smin.i32(i32, i32) #3
; 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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
int main(void){
int i,kazu;
long sum=0,a,min=1000001,max=-1000001;
scanf("%d",&kazu);
for(i=0;i<kazu;i++){
scanf("%ld",&a);
if(a<=min){
min=a;
}
if(a>=max){
max=a;
}
sum=sum+a;
}
printf("%d %d %ld\n",min,max,sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173523/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173523/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"%ld\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"%d %d %ld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%kazu = alloca i32, align 4
%a = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %kazu) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %a) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %kazu)
%0 = load i32, ptr %kazu, align 4, !tbaa !5
%cmp12 = icmp sgt i32 %0, 0
br i1 %cmp12, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%max.016 = phi i64 [ %max.1, %for.body ], [ -1000001, %entry ]
%min.015 = phi i64 [ %spec.select, %for.body ], [ 1000001, %entry ]
%sum.014 = phi i64 [ %add, %for.body ], [ 0, %entry ]
%i.013 = phi i32 [ %inc, %for.body ], [ 0, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %a)
%1 = load i64, ptr %a, align 8, !tbaa !9
%spec.select = call i64 @llvm.smin.i64(i64 %1, i64 %min.015)
%max.1 = call i64 @llvm.smax.i64(i64 %1, i64 %max.016)
%add = add nsw i64 %1, %sum.014
%inc = add nuw nsw i32 %i.013, 1
%2 = load i32, ptr %kazu, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %2
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !11
for.end: ; preds = %for.body, %entry
%sum.0.lcssa = phi i64 [ 0, %entry ], [ %add, %for.body ]
%min.0.lcssa = phi i64 [ 1000001, %entry ], [ %spec.select, %for.body ]
%max.0.lcssa = phi i64 [ -1000001, %entry ], [ %max.1, %for.body ]
%call6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %min.0.lcssa, i64 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %a) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %kazu) #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 i64 @llvm.smin.i64(i64, i64) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, 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 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 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
|
#include<stdio.h>
int main(void){
int x,min,max,a,i;
long int sum;
scanf("%d",&x);
scanf("%d",&a);
max=a;
min=a;
sum=a;
for(i=1;i<x;i++){
scanf("%d",&a);
sum+=a;
if(a<min){
min=a;
}
if(a>max){
max=a;
}
}
printf("%d %d %ld\n",min,max,sum);
return 0 ;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173574/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173574/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 [11 x i8] c"%d %d %ld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
%a = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #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 %x)
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%0 = load i32, ptr %a, align 4, !tbaa !5
%conv = sext i32 %0 to i64
%1 = load i32, ptr %x, align 4, !tbaa !5
%cmp17 = icmp sgt i32 %1, 1
br i1 %cmp17, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%sum.021 = phi i64 [ %add, %for.body ], [ %conv, %entry ]
%i.020 = phi i32 [ %inc, %for.body ], [ 1, %entry ]
%max.019 = phi i32 [ %max.1, %for.body ], [ %0, %entry ]
%min.018 = phi i32 [ %spec.select, %for.body ], [ %0, %entry ]
%call3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%2 = load i32, ptr %a, align 4, !tbaa !5
%conv4 = sext i32 %2 to i64
%add = add nsw i64 %sum.021, %conv4
%spec.select = call i32 @llvm.smin.i32(i32 %2, i32 %min.018)
%max.1 = call i32 @llvm.smax.i32(i32 %2, i32 %max.019)
%inc = add nuw nsw i32 %i.020, 1
%3 = load i32, ptr %x, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %3
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body, %entry
%min.0.lcssa = phi i32 [ %0, %entry ], [ %spec.select, %for.body ]
%max.0.lcssa = phi i32 [ %0, %entry ], [ %max.1, %for.body ]
%sum.0.lcssa = phi i64 [ %conv, %entry ], [ %add, %for.body ]
%call11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #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
; 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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include<stdio.h>
int main(void)
{
int x,min,max,a,i ;
long int sum;
scanf("%d",&x);
scanf("%d",&a);
max=a;
min=a;
sum=a;
for(i=1;i<x;i++){
scanf("%d",&a);
sum+=a;
if(a<min){
min=a;
}
if(a>max){
max=a;
}
}
printf("%d %d %ld\n",min,max,sum);
return 0 ;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173617/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173617/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 [11 x i8] c"%d %d %ld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
%a = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #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 %x)
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%0 = load i32, ptr %a, align 4, !tbaa !5
%conv = sext i32 %0 to i64
%1 = load i32, ptr %x, align 4, !tbaa !5
%cmp17 = icmp sgt i32 %1, 1
br i1 %cmp17, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%sum.021 = phi i64 [ %add, %for.body ], [ %conv, %entry ]
%i.020 = phi i32 [ %inc, %for.body ], [ 1, %entry ]
%max.019 = phi i32 [ %max.1, %for.body ], [ %0, %entry ]
%min.018 = phi i32 [ %spec.select, %for.body ], [ %0, %entry ]
%call3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%2 = load i32, ptr %a, align 4, !tbaa !5
%conv4 = sext i32 %2 to i64
%add = add nsw i64 %sum.021, %conv4
%spec.select = call i32 @llvm.smin.i32(i32 %2, i32 %min.018)
%max.1 = call i32 @llvm.smax.i32(i32 %2, i32 %max.019)
%inc = add nuw nsw i32 %i.020, 1
%3 = load i32, ptr %x, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %3
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body, %entry
%min.0.lcssa = phi i32 [ %0, %entry ], [ %spec.select, %for.body ]
%max.0.lcssa = phi i32 [ %0, %entry ], [ %max.1, %for.body ]
%sum.0.lcssa = phi i64 [ %conv, %entry ], [ %add, %for.body ]
%call11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #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
; 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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include<stdio.h>
int main(void){
int n=0,i;
long long int a[10001]={0},s=1000000,b=-1000000,g=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%lld",&a[i]);
}
for(i=0;i<n;i++){
if(s>=a[i]){
s=a[i];
}
}
for(i=0;i<n;i++){
if(b<a[i]){
b=a[i];
}
}
for(i=0;i<n;i++){
g=g+a[i];
}
printf("%lld %lld %lld\n",s,b,g);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173660/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173660/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"%lld\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"%lld %lld %lld\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 [10001 x i64], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #5
store i32 0, ptr %n, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 80008, ptr nonnull %a) #5
call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80008) %a, i8 0, i64 80008, 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
%cmp53 = icmp sgt i32 %0, 0
br i1 %cmp53, label %for.body, label %for.end33
for.cond2.preheader: ; preds = %for.body
%cmp355 = icmp sgt i32 %7, 0
br i1 %cmp355, label %for.body4.preheader, label %for.end33
for.body4.preheader: ; preds = %for.cond2.preheader
%wide.trip.count = zext i32 %7 to i64
%min.iters.check = icmp ult i32 %7, 4
br i1 %min.iters.check, label %for.body4.preheader139, label %vector.ph
vector.ph: ; preds = %for.body4.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.phi = phi <2 x i64> [ <i64 1000000, i64 1000000>, %vector.ph ], [ %3, %vector.body ]
%vec.phi98 = phi <2 x i64> [ <i64 1000000, i64 1000000>, %vector.ph ], [ %4, %vector.body ]
%1 = getelementptr inbounds [10001 x i64], ptr %a, i64 0, i64 %index
%wide.load = load <2 x i64>, ptr %1, align 16, !tbaa !9
%2 = getelementptr inbounds i64, ptr %1, i64 2
%wide.load99 = load <2 x i64>, ptr %2, align 16, !tbaa !9
%3 = call <2 x i64> @llvm.smin.v2i64(<2 x i64> %vec.phi, <2 x i64> %wide.load)
%4 = call <2 x i64> @llvm.smin.v2i64(<2 x i64> %vec.phi98, <2 x i64> %wide.load99)
%index.next = add nuw i64 %index, 4
%5 = icmp eq i64 %index.next, %n.vec
br i1 %5, label %middle.block, label %vector.body, !llvm.loop !11
middle.block: ; preds = %vector.body
%rdx.minmax = call <2 x i64> @llvm.smin.v2i64(<2 x i64> %3, <2 x i64> %4)
%6 = call i64 @llvm.vector.reduce.smin.v2i64(<2 x i64> %rdx.minmax)
%cmp.n = icmp eq i64 %n.vec, %wide.trip.count
br i1 %cmp.n, label %for.cond13.preheader, label %for.body4.preheader139
for.body4.preheader139: ; preds = %for.body4.preheader, %middle.block
%indvars.iv69.ph = phi i64 [ 0, %for.body4.preheader ], [ %n.vec, %middle.block ]
%s.057.ph = phi i64 [ 1000000, %for.body4.preheader ], [ %6, %middle.block ]
br label %for.body4
for.body: ; preds = %entry, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [10001 x i64], ptr %a, 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
%7 = load i32, ptr %n, align 4, !tbaa !5
%8 = sext i32 %7 to i64
%cmp = icmp slt i64 %indvars.iv.next, %8
br i1 %cmp, label %for.body, label %for.cond2.preheader, !llvm.loop !15
for.cond13.preheader: ; preds = %for.body4, %middle.block
%spec.select.lcssa = phi i64 [ %6, %middle.block ], [ %spec.select, %for.body4 ]
br i1 %cmp355, label %for.body15.preheader, label %for.end33
for.body15.preheader: ; preds = %for.cond13.preheader
%wide.trip.count75 = zext i32 %7 to i64
%min.iters.check102 = icmp ult i32 %7, 4
br i1 %min.iters.check102, label %for.body15.preheader135, label %vector.ph103
vector.ph103: ; preds = %for.body15.preheader
%n.vec105 = and i64 %wide.trip.count, 4294967292
br label %vector.body108
vector.body108: ; preds = %vector.body108, %vector.ph103
%index109 = phi i64 [ 0, %vector.ph103 ], [ %index.next114, %vector.body108 ]
%vec.phi110 = phi <2 x i64> [ <i64 -1000000, i64 -1000000>, %vector.ph103 ], [ %11, %vector.body108 ]
%vec.phi111 = phi <2 x i64> [ <i64 -1000000, i64 -1000000>, %vector.ph103 ], [ %12, %vector.body108 ]
%9 = getelementptr inbounds [10001 x i64], ptr %a, i64 0, i64 %index109
%wide.load112 = load <2 x i64>, ptr %9, align 16, !tbaa !9
%10 = getelementptr inbounds i64, ptr %9, i64 2
%wide.load113 = load <2 x i64>, ptr %10, align 16, !tbaa !9
%11 = call <2 x i64> @llvm.smax.v2i64(<2 x i64> %vec.phi110, <2 x i64> %wide.load112)
%12 = call <2 x i64> @llvm.smax.v2i64(<2 x i64> %vec.phi111, <2 x i64> %wide.load113)
%index.next114 = add nuw i64 %index109, 4
%13 = icmp eq i64 %index.next114, %n.vec105
br i1 %13, label %middle.block100, label %vector.body108, !llvm.loop !16
middle.block100: ; preds = %vector.body108
%rdx.minmax115 = call <2 x i64> @llvm.smax.v2i64(<2 x i64> %11, <2 x i64> %12)
%14 = call i64 @llvm.vector.reduce.smax.v2i64(<2 x i64> %rdx.minmax115)
%cmp.n107 = icmp eq i64 %n.vec105, %wide.trip.count
br i1 %cmp.n107, label %for.cond26.preheader, label %for.body15.preheader135
for.body15.preheader135: ; preds = %for.body15.preheader, %middle.block100
%indvars.iv72.ph = phi i64 [ 0, %for.body15.preheader ], [ %n.vec105, %middle.block100 ]
%b.061.ph = phi i64 [ -1000000, %for.body15.preheader ], [ %14, %middle.block100 ]
br label %for.body15
for.body4: ; preds = %for.body4.preheader139, %for.body4
%indvars.iv69 = phi i64 [ %indvars.iv.next70, %for.body4 ], [ %indvars.iv69.ph, %for.body4.preheader139 ]
%s.057 = phi i64 [ %spec.select, %for.body4 ], [ %s.057.ph, %for.body4.preheader139 ]
%arrayidx6 = getelementptr inbounds [10001 x i64], ptr %a, i64 0, i64 %indvars.iv69
%15 = load i64, ptr %arrayidx6, align 8, !tbaa !9
%spec.select = call i64 @llvm.smin.i64(i64 %s.057, i64 %15)
%indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
%exitcond.not = icmp eq i64 %indvars.iv.next70, %wide.trip.count
br i1 %exitcond.not, label %for.cond13.preheader, label %for.body4, !llvm.loop !17
for.cond26.preheader: ; preds = %for.body15, %middle.block100
%spec.select52.lcssa = phi i64 [ %14, %middle.block100 ], [ %spec.select52, %for.body15 ]
br i1 %cmp355, label %for.body28.preheader, label %for.end33
for.body28.preheader: ; preds = %for.cond26.preheader
%wide.trip.count80 = zext i32 %7 to i64
%min.iters.check119 = icmp ult i32 %7, 4
br i1 %min.iters.check119, label %for.body28.preheader133, label %vector.ph120
vector.ph120: ; preds = %for.body28.preheader
%n.vec122 = and i64 %wide.trip.count, 4294967292
br label %vector.body125
vector.body125: ; preds = %vector.body125, %vector.ph120
%index126 = phi i64 [ 0, %vector.ph120 ], [ %index.next131, %vector.body125 ]
%vec.phi127 = phi <2 x i64> [ zeroinitializer, %vector.ph120 ], [ %18, %vector.body125 ]
%vec.phi128 = phi <2 x i64> [ zeroinitializer, %vector.ph120 ], [ %19, %vector.body125 ]
%16 = getelementptr inbounds [10001 x i64], ptr %a, i64 0, i64 %index126
%wide.load129 = load <2 x i64>, ptr %16, align 16, !tbaa !9
%17 = getelementptr inbounds i64, ptr %16, i64 2
%wide.load130 = load <2 x i64>, ptr %17, align 16, !tbaa !9
%18 = add <2 x i64> %wide.load129, %vec.phi127
%19 = add <2 x i64> %wide.load130, %vec.phi128
%index.next131 = add nuw i64 %index126, 4
%20 = icmp eq i64 %index.next131, %n.vec122
br i1 %20, label %middle.block117, label %vector.body125, !llvm.loop !18
middle.block117: ; preds = %vector.body125
%bin.rdx = add <2 x i64> %19, %18
%21 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
%cmp.n124 = icmp eq i64 %n.vec122, %wide.trip.count
br i1 %cmp.n124, label %for.end33, label %for.body28.preheader133
for.body28.preheader133: ; preds = %for.body28.preheader, %middle.block117
%indvars.iv77.ph = phi i64 [ 0, %for.body28.preheader ], [ %n.vec122, %middle.block117 ]
%g.065.ph = phi i64 [ 0, %for.body28.preheader ], [ %21, %middle.block117 ]
br label %for.body28
for.body15: ; preds = %for.body15.preheader135, %for.body15
%indvars.iv72 = phi i64 [ %indvars.iv.next73, %for.body15 ], [ %indvars.iv72.ph, %for.body15.preheader135 ]
%b.061 = phi i64 [ %spec.select52, %for.body15 ], [ %b.061.ph, %for.body15.preheader135 ]
%arrayidx17 = getelementptr inbounds [10001 x i64], ptr %a, i64 0, i64 %indvars.iv72
%22 = load i64, ptr %arrayidx17, align 8, !tbaa !9
%spec.select52 = call i64 @llvm.smax.i64(i64 %b.061, i64 %22)
%indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
%exitcond76.not = icmp eq i64 %indvars.iv.next73, %wide.trip.count75
br i1 %exitcond76.not, label %for.cond26.preheader, label %for.body15, !llvm.loop !19
for.body28: ; preds = %for.body28.preheader133, %for.body28
%indvars.iv77 = phi i64 [ %indvars.iv.next78, %for.body28 ], [ %indvars.iv77.ph, %for.body28.preheader133 ]
%g.065 = phi i64 [ %add, %for.body28 ], [ %g.065.ph, %for.body28.preheader133 ]
%arrayidx30 = getelementptr inbounds [10001 x i64], ptr %a, i64 0, i64 %indvars.iv77
%23 = load i64, ptr %arrayidx30, align 8, !tbaa !9
%add = add nsw i64 %23, %g.065
%indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
%exitcond81.not = icmp eq i64 %indvars.iv.next78, %wide.trip.count80
br i1 %exitcond81.not, label %for.end33, label %for.body28, !llvm.loop !20
for.end33: ; preds = %for.body28, %middle.block117, %entry, %for.cond2.preheader, %for.cond13.preheader, %for.cond26.preheader
%b.0.lcssa97 = phi i64 [ %spec.select52.lcssa, %for.cond26.preheader ], [ -1000000, %for.cond13.preheader ], [ -1000000, %for.cond2.preheader ], [ -1000000, %entry ], [ %spec.select52.lcssa, %middle.block117 ], [ %spec.select52.lcssa, %for.body28 ]
%s.0.lcssa9196 = phi i64 [ %spec.select.lcssa, %for.cond26.preheader ], [ %spec.select.lcssa, %for.cond13.preheader ], [ 1000000, %for.cond2.preheader ], [ 1000000, %entry ], [ %spec.select.lcssa, %middle.block117 ], [ %spec.select.lcssa, %for.body28 ]
%g.0.lcssa = phi i64 [ 0, %for.cond26.preheader ], [ 0, %for.cond13.preheader ], [ 0, %for.cond2.preheader ], [ 0, %entry ], [ %21, %middle.block117 ], [ %add, %for.body28 ]
%call34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %s.0.lcssa9196, i64 noundef %b.0.lcssa97, i64 noundef %g.0.lcssa)
call void @llvm.lifetime.end.p0(i64 80008, 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: 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) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i64> @llvm.smin.v2i64(<2 x i64>, <2 x i64>) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.smin.v2i64(<2 x i64>) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i64> @llvm.smax.v2i64(<2 x i64>, <2 x i64>) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.smax.v2i64(<2 x i64>) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x 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 = { 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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12, !13, !14}
!17 = distinct !{!17, !12, !14, !13}
!18 = distinct !{!18, !12, !13, !14}
!19 = distinct !{!19, !12, !14, !13}
!20 = distinct !{!20, !12, !14, !13}
|
#include<stdio.h>
int main()
{
int n, i;
int min=1000000,max=-1000000;
long long int sum=0ll;
scanf("%d",&n);
for(i = 0;i < n;i++)
{
int a;
scanf("%d",&a);
if(min>a)
{
min = a;
}
if(max<a)
{
max = a;
}
sum= sum + a;
}
printf("%d %d %lld\n",min,max,sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173703/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173703/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 %lld\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
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
%cmp12 = icmp sgt i32 %0, 0
br i1 %cmp12, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%sum.016 = phi i64 [ %add, %for.body ], [ 0, %entry ]
%max.015 = phi i32 [ %max.1, %for.body ], [ -1000000, %entry ]
%min.014 = phi i32 [ %spec.select, %for.body ], [ 1000000, %entry ]
%i.013 = phi i32 [ %inc, %for.body ], [ 0, %entry ]
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%1 = load i32, ptr %a, align 4, !tbaa !5
%spec.select = call i32 @llvm.smin.i32(i32 %min.014, i32 %1)
%max.1 = call i32 @llvm.smax.i32(i32 %max.015, i32 %1)
%conv = sext i32 %1 to i64
%add = add nsw i64 %sum.016, %conv
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4
%inc = add nuw nsw i32 %i.013, 1
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %2
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body, %entry
%min.0.lcssa = phi i32 [ 1000000, %entry ], [ %spec.select, %for.body ]
%max.0.lcssa = phi i32 [ -1000000, %entry ], [ %max.1, %for.body ]
%sum.0.lcssa = phi i64 [ 0, %entry ], [ %add, %for.body ]
%call6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.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: 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3
; 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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
int main(void)
{
int n;
int i;
long int a[100000];
long int min;
long int max;
long long int sum;
int *p_a;
p_a = a;
n = 0;
i = 0;
*p_a = 0;
min = 1000000;
max = -1000000;
sum = 0;
scanf("%d", &n);
for(i = 0; i < n; i++)
{
scanf("%d ", p_a);
if(min > *p_a)
{
min = *p_a;
}
else
{
}
if(max < *p_a)
{
max = *p_a;
}
else
{
}
sum = sum + (long long int)*p_a;
}
printf("%ld %ld %lld\n", min, max, sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173754/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173754/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 \00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"%ld %ld %lld\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 i64], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4
call void @llvm.lifetime.start.p0(i64 800000, ptr nonnull %a) #4
store i32 0, ptr %n, align 4, !tbaa !5
store i32 0, ptr %a, align 16, !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
%cmp24 = icmp sgt i32 %0, 0
br i1 %cmp24, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%i.028 = phi i32 [ %inc, %for.body ], [ 0, %entry ]
%sum.027 = phi i64 [ %add, %for.body ], [ 0, %entry ]
%max.026 = phi i64 [ %max.1, %for.body ], [ -1000000, %entry ]
%min.025 = phi i64 [ %spec.select, %for.body ], [ 1000000, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %a)
%1 = load i32, ptr %a, align 16, !tbaa !5
%conv = sext i32 %1 to i64
%spec.select = call i64 @llvm.smin.i64(i64 %min.025, i64 %conv)
%max.1 = call i64 @llvm.smax.i64(i64 %max.026, i64 %conv)
%add = add nsw i64 %sum.027, %conv
%inc = add nuw nsw i32 %i.028, 1
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %2
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body, %entry
%min.0.lcssa = phi i64 [ 1000000, %entry ], [ %spec.select, %for.body ]
%max.0.lcssa = phi i64 [ -1000000, %entry ], [ %max.1, %for.body ]
%sum.0.lcssa = phi i64 [ 0, %entry ], [ %add, %for.body ]
%call13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %min.0.lcssa, i64 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 800000, 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 i64 @llvm.smin.i64(i64, i64) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, 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 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"}
|
#include <stdio.h>
int main(){
int n,input,i,max=0,min=0;
long sum=0;
scanf("%d",&n);
if(n==0){
printf("yokuwakaranaidesu\n");
}
else for(i=1;i<=n;i++){
scanf("%d",&input);
if(i==1){
min=input;
max=input;
sum=input;
}
else{
if(max<input){
max=input;
}
if(min>input){
min=input;
}
sum+=input;
}
}
printf("%d %d %ld\n",min,max,sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173798/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173798/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.2 = private unnamed_addr constant [11 x i8] c"%d %d %ld\0A\00", align 1
@str = private unnamed_addr constant [18 x i8] c"yokuwakaranaidesu\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%input = 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 %input) #5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp eq i32 %0, 0
br i1 %cmp, label %if.then, label %for.cond.preheader
for.cond.preheader: ; preds = %entry
%cmp2.not24 = icmp slt i32 %0, 1
br i1 %cmp2.not24, label %if.end16, label %for.inc.peel
for.inc.peel: ; preds = %for.cond.preheader
%call3.peel = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %input)
%1 = load i32, ptr %input, align 4, !tbaa !5
%conv.peel = sext i32 %1 to i64
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp2.not.not.peel = icmp sgt i32 %2, 1
br i1 %cmp2.not.not.peel, label %for.inc, label %if.end16
if.then: ; preds = %entry
%puts = call i32 @puts(ptr nonnull dereferenceable(1) @str)
br label %if.end16
for.inc: ; preds = %for.inc.peel, %for.inc
%sum.028 = phi i64 [ %add, %for.inc ], [ %conv.peel, %for.inc.peel ]
%min.027 = phi i32 [ %min.1, %for.inc ], [ %1, %for.inc.peel ]
%max.026 = phi i32 [ %spec.select, %for.inc ], [ %1, %for.inc.peel ]
%i.025 = phi i32 [ %inc, %for.inc ], [ 2, %for.inc.peel ]
%call3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %input)
%3 = load i32, ptr %input, align 4, !tbaa !5
%spec.select = call i32 @llvm.smax.i32(i32 %max.026, i32 %3)
%min.1 = call i32 @llvm.smin.i32(i32 %min.027, i32 %3)
%conv14 = sext i32 %3 to i64
%add = add nsw i64 %sum.028, %conv14
%inc = add nuw nsw i32 %i.025, 1
%4 = load i32, ptr %n, align 4, !tbaa !5
%cmp2.not.not = icmp slt i32 %i.025, %4
br i1 %cmp2.not.not, label %for.inc, label %if.end16, !llvm.loop !9
if.end16: ; preds = %for.inc, %for.inc.peel, %for.cond.preheader, %if.then
%max.3 = phi i32 [ 0, %if.then ], [ 0, %for.cond.preheader ], [ %1, %for.inc.peel ], [ %spec.select, %for.inc ]
%min.3 = phi i32 [ 0, %if.then ], [ 0, %for.cond.preheader ], [ %1, %for.inc.peel ], [ %min.1, %for.inc ]
%sum.2 = phi i64 [ 0, %if.then ], [ 0, %for.cond.preheader ], [ %conv.peel, %for.inc.peel ], [ %add, %for.inc ]
%call17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %min.3, i32 noundef %max.3, i64 noundef %sum.2)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %input) #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: 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
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #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 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, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.peeled.count", i32 1}
|
#include <stdio.h>
int main(void){
int n;
scanf("%d\n",&n);
int a[n];
for(int i=0;i<n;i++){
scanf("%d",&a[i]);
}
int max,min;
long long sum=0;
max=a[0];
min=a[0];
for(int j=0;j<n;j++){
if(max<a[j]){
max=a[j];
}
if(min>a[j]){
min=a[j];
}
sum=sum+a[j];
}
printf("%d %d %ld\n",min,max,sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173848/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173848/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 [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"%d %d %ld\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) #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
%cmp38 = icmp sgt i32 %3, 0
call void @llvm.assume(i1 %cmp38)
br label %for.body
for.cond.cleanup: ; preds = %for.body
%.pre = load i32, ptr %vla, align 16, !tbaa !5
%cmp540 = icmp sgt i32 %18, 0
br i1 %cmp540, label %for.body7.preheader, label %for.cond.cleanup6
for.body7.preheader: ; preds = %for.cond.cleanup
%wide.trip.count = zext i32 %18 to i64
%min.iters.check = icmp ult i32 %18, 4
br i1 %min.iters.check, label %for.body7.preheader66, label %vector.ph
vector.ph: ; preds = %for.body7.preheader
%n.vec = and i64 %wide.trip.count, 4294967292
%minmax.ident.splatinsert = insertelement <2 x i32> poison, i32 %.pre, i64 0
%minmax.ident.splat = shufflevector <2 x i32> %minmax.ident.splatinsert, <2 x i32> poison, <2 x i32> zeroinitializer
%minmax.ident.splatinsert60 = insertelement <2 x i32> poison, i32 %.pre, i64 0
%minmax.ident.splat61 = shufflevector <2 x i32> %minmax.ident.splatinsert60, <2 x i32> 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 i64> [ zeroinitializer, %vector.ph ], [ %12, %vector.body ]
%vec.phi55 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %13, %vector.body ]
%vec.phi56 = phi <2 x i32> [ %minmax.ident.splat, %vector.ph ], [ %8, %vector.body ]
%vec.phi57 = phi <2 x i32> [ %minmax.ident.splat, %vector.ph ], [ %9, %vector.body ]
%vec.phi58 = phi <2 x i32> [ %minmax.ident.splat61, %vector.ph ], [ %6, %vector.body ]
%vec.phi59 = phi <2 x i32> [ %minmax.ident.splat61, %vector.ph ], [ %7, %vector.body ]
%4 = getelementptr inbounds i32, ptr %vla, i64 %index
%wide.load = load <2 x i32>, ptr %4, align 16, !tbaa !5
%5 = getelementptr inbounds i32, ptr %4, i64 2
%wide.load62 = load <2 x i32>, ptr %5, align 8, !tbaa !5
%6 = call <2 x i32> @llvm.smax.v2i32(<2 x i32> %vec.phi58, <2 x i32> %wide.load)
%7 = call <2 x i32> @llvm.smax.v2i32(<2 x i32> %vec.phi59, <2 x i32> %wide.load62)
%8 = call <2 x i32> @llvm.smin.v2i32(<2 x i32> %vec.phi56, <2 x i32> %wide.load)
%9 = call <2 x i32> @llvm.smin.v2i32(<2 x i32> %vec.phi57, <2 x i32> %wide.load62)
%10 = sext <2 x i32> %wide.load to <2 x i64>
%11 = sext <2 x i32> %wide.load62 to <2 x i64>
%12 = add <2 x i64> %vec.phi, %10
%13 = add <2 x i64> %vec.phi55, %11
%index.next = add nuw i64 %index, 4
%14 = icmp eq i64 %index.next, %n.vec
br i1 %14, label %middle.block, label %vector.body, !llvm.loop !9
middle.block: ; preds = %vector.body
%rdx.minmax64 = call <2 x i32> @llvm.smax.v2i32(<2 x i32> %6, <2 x i32> %7)
%15 = call i32 @llvm.vector.reduce.smax.v2i32(<2 x i32> %rdx.minmax64)
%rdx.minmax = call <2 x i32> @llvm.smin.v2i32(<2 x i32> %8, <2 x i32> %9)
%16 = call i32 @llvm.vector.reduce.smin.v2i32(<2 x i32> %rdx.minmax)
%bin.rdx = add <2 x i64> %13, %12
%17 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
%cmp.n = icmp eq i64 %n.vec, %wide.trip.count
br i1 %cmp.n, label %for.cond.cleanup6, label %for.body7.preheader66
for.body7.preheader66: ; preds = %for.body7.preheader, %middle.block
%indvars.iv50.ph = phi i64 [ 0, %for.body7.preheader ], [ %n.vec, %middle.block ]
%sum.043.ph = phi i64 [ 0, %for.body7.preheader ], [ %17, %middle.block ]
%min.042.ph = phi i32 [ %.pre, %for.body7.preheader ], [ %16, %middle.block ]
%max.041.ph = phi i32 [ %.pre, %for.body7.preheader ], [ %15, %middle.block ]
br label %for.body7
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
%18 = load i32, ptr %n, align 4, !tbaa !5
%19 = sext i32 %18 to i64
%cmp = icmp slt i64 %indvars.iv.next, %19
br i1 %cmp, label %for.body, label %for.cond.cleanup, !llvm.loop !13
for.cond.cleanup6: ; preds = %for.body7, %middle.block, %for.cond.cleanup
%max.0.lcssa = phi i32 [ %.pre, %for.cond.cleanup ], [ %15, %middle.block ], [ %spec.select, %for.body7 ]
%min.0.lcssa = phi i32 [ %.pre, %for.cond.cleanup ], [ %16, %middle.block ], [ %min.1, %for.body7 ]
%sum.0.lcssa = phi i64 [ 0, %for.cond.cleanup ], [ %17, %middle.block ], [ %add, %for.body7 ]
%call25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.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.body7: ; preds = %for.body7.preheader66, %for.body7
%indvars.iv50 = phi i64 [ %indvars.iv.next51, %for.body7 ], [ %indvars.iv50.ph, %for.body7.preheader66 ]
%sum.043 = phi i64 [ %add, %for.body7 ], [ %sum.043.ph, %for.body7.preheader66 ]
%min.042 = phi i32 [ %min.1, %for.body7 ], [ %min.042.ph, %for.body7.preheader66 ]
%max.041 = phi i32 [ %spec.select, %for.body7 ], [ %max.041.ph, %for.body7.preheader66 ]
%arrayidx9 = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv50
%20 = load i32, ptr %arrayidx9, align 4, !tbaa !5
%spec.select = call i32 @llvm.smax.i32(i32 %max.041, i32 %20)
%min.1 = call i32 @llvm.smin.i32(i32 %min.042, i32 %20)
%conv = sext i32 %20 to i64
%add = add nsw i64 %sum.043, %conv
%indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
%exitcond.not = icmp eq i64 %indvars.iv.next51, %wide.trip.count
br i1 %exitcond.not, label %for.cond.cleanup6, label %for.body7, !llvm.loop !14
}
; 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
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #5
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i32> @llvm.smax.v2i32(<2 x i32>, <2 x i32>) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i32> @llvm.smin.v2i32(<2 x i32>, <2 x i32>) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.smin.v2i32(<2 x i32>) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.smax.v2i32(<2 x i32>) #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 nocallback nofree nosync nounwind willreturn }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10, !12, !11}
|
#include<stdio.h>
int main(){
int i,j,n,a[10001];
long int min,max,sum=0;
scanf("%d",&n);
for(i =0;i < n;i++){
scanf("%d",&a[i]);
}
max = a[0];min=a[0];sum=a[0];
for(i=1;i < n;i++){
if(max < a[i]) max = a[i];
if(min > a[i]) min = a[i];
sum += a[i];
}
printf("%ld %ld %ld\n",min,max,sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173899/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173899/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 [13 x i8] c"%ld %ld %ld\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 [10001 x i32], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4
call void @llvm.lifetime.start.p0(i64 40004, ptr nonnull %a) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp48 = icmp sgt i32 %0, 0
br i1 %cmp48, label %for.body, label %for.end34
for.body: ; preds = %entry, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [10001 x i32], ptr %a, i64 0, 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
%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.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body
%.pre = load i32, ptr %a, align 16, !tbaa !5
%3 = sext i32 %.pre to i64
%cmp850 = icmp sgt i32 %1, 1
br i1 %cmp850, label %for.body10.preheader, label %for.end34
for.body10.preheader: ; preds = %for.end
%wide.trip.count = zext i32 %1 to i64
%4 = add nsw i64 %wide.trip.count, -1
%xtraiter = and i64 %4, 1
%5 = icmp eq i32 %1, 2
br i1 %5, label %for.end34.loopexit.unr-lcssa, label %for.body10.preheader.new
for.body10.preheader.new: ; preds = %for.body10.preheader
%unroll_iter = and i64 %4, -2
br label %for.body10
for.body10: ; preds = %for.body10, %for.body10.preheader.new
%indvars.iv60 = phi i64 [ 1, %for.body10.preheader.new ], [ %indvars.iv.next61.1, %for.body10 ]
%sum.054 = phi i64 [ %3, %for.body10.preheader.new ], [ %add.1, %for.body10 ]
%max.053 = phi i64 [ %3, %for.body10.preheader.new ], [ %spec.select.1, %for.body10 ]
%min.052 = phi i64 [ %3, %for.body10.preheader.new ], [ %min.1.1, %for.body10 ]
%niter = phi i64 [ 0, %for.body10.preheader.new ], [ %niter.next.1, %for.body10 ]
%arrayidx12 = getelementptr inbounds [10001 x i32], ptr %a, i64 0, i64 %indvars.iv60
%6 = load i32, ptr %arrayidx12, align 4, !tbaa !5
%conv13 = sext i32 %6 to i64
%spec.select = call i64 @llvm.smax.i64(i64 %max.053, i64 %conv13)
%min.1 = call i64 @llvm.smin.i64(i64 %min.052, i64 %conv13)
%add = add nsw i64 %sum.054, %conv13
%indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
%arrayidx12.1 = getelementptr inbounds [10001 x i32], ptr %a, i64 0, i64 %indvars.iv.next61
%7 = load i32, ptr %arrayidx12.1, align 4, !tbaa !5
%conv13.1 = sext i32 %7 to i64
%spec.select.1 = call i64 @llvm.smax.i64(i64 %spec.select, i64 %conv13.1)
%min.1.1 = call i64 @llvm.smin.i64(i64 %min.1, i64 %conv13.1)
%add.1 = add nsw i64 %add, %conv13.1
%indvars.iv.next61.1 = add nuw nsw i64 %indvars.iv60, 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.end34.loopexit.unr-lcssa, label %for.body10, !llvm.loop !11
for.end34.loopexit.unr-lcssa: ; preds = %for.body10, %for.body10.preheader
%spec.select.lcssa.ph = phi i64 [ undef, %for.body10.preheader ], [ %spec.select.1, %for.body10 ]
%min.1.lcssa.ph = phi i64 [ undef, %for.body10.preheader ], [ %min.1.1, %for.body10 ]
%add.lcssa.ph = phi i64 [ undef, %for.body10.preheader ], [ %add.1, %for.body10 ]
%indvars.iv60.unr = phi i64 [ 1, %for.body10.preheader ], [ %indvars.iv.next61.1, %for.body10 ]
%sum.054.unr = phi i64 [ %3, %for.body10.preheader ], [ %add.1, %for.body10 ]
%max.053.unr = phi i64 [ %3, %for.body10.preheader ], [ %spec.select.1, %for.body10 ]
%min.052.unr = phi i64 [ %3, %for.body10.preheader ], [ %min.1.1, %for.body10 ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.end34, label %for.body10.epil
for.body10.epil: ; preds = %for.end34.loopexit.unr-lcssa
%arrayidx12.epil = getelementptr inbounds [10001 x i32], ptr %a, i64 0, i64 %indvars.iv60.unr
%8 = load i32, ptr %arrayidx12.epil, align 4, !tbaa !5
%conv13.epil = sext i32 %8 to i64
%spec.select.epil = call i64 @llvm.smax.i64(i64 %max.053.unr, i64 %conv13.epil)
%min.1.epil = call i64 @llvm.smin.i64(i64 %min.052.unr, i64 %conv13.epil)
%add.epil = add nsw i64 %sum.054.unr, %conv13.epil
br label %for.end34
for.end34: ; preds = %for.body10.epil, %for.end34.loopexit.unr-lcssa, %entry, %for.end
%min.0.lcssa = phi i64 [ %3, %for.end ], [ 0, %entry ], [ %min.1.lcssa.ph, %for.end34.loopexit.unr-lcssa ], [ %min.1.epil, %for.body10.epil ]
%max.0.lcssa = phi i64 [ %3, %for.end ], [ 0, %entry ], [ %spec.select.lcssa.ph, %for.end34.loopexit.unr-lcssa ], [ %spec.select.epil, %for.body10.epil ]
%sum.0.lcssa = phi i64 [ %3, %for.end ], [ 0, %entry ], [ %add.lcssa.ph, %for.end34.loopexit.unr-lcssa ], [ %add.epil, %for.body10.epil ]
%call35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %min.0.lcssa, i64 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 40004, 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 i64 @llvm.smax.i64(i64, i64) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, 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 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>
int main(void){
int i, n;
long max, min, sum, temp;
scanf("%d\n", &n);
scanf("%ld", &temp);
max = temp;
min = temp;
sum = temp;
for(i=1;i<n;i++){
scanf("%ld\n", &temp);
if (max<temp){max=temp;}
if (min>temp){min=temp;}
sum +=temp;
}
printf("%ld %ld %ld\n", min, max, sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173941/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173941/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 [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%ld\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"%ld %ld %ld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%temp = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %temp) #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 %temp)
%0 = load i64, ptr %temp, align 8, !tbaa !5
%1 = load i32, ptr %n, align 4, !tbaa !9
%cmp13 = icmp sgt i32 %1, 1
br i1 %cmp13, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%sum.017 = phi i64 [ %add, %for.body ], [ %0, %entry ]
%min.016 = phi i64 [ %min.1, %for.body ], [ %0, %entry ]
%max.015 = phi i64 [ %spec.select, %for.body ], [ %0, %entry ]
%i.014 = phi i32 [ %inc, %for.body ], [ 1, %entry ]
%call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %temp)
%2 = load i64, ptr %temp, align 8, !tbaa !5
%spec.select = call i64 @llvm.smax.i64(i64 %max.015, i64 %2)
%min.1 = call i64 @llvm.smin.i64(i64 %min.016, i64 %2)
%add = add nsw i64 %2, %sum.017
%inc = add nuw nsw i32 %i.014, 1
%3 = load i32, ptr %n, align 4, !tbaa !9
%cmp = icmp slt i32 %inc, %3
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !11
for.end: ; preds = %for.body, %entry
%max.0.lcssa = phi i64 [ %0, %entry ], [ %spec.select, %for.body ]
%min.0.lcssa = phi i64 [ %0, %entry ], [ %min.1, %for.body ]
%sum.0.lcssa = phi i64 [ %0, %entry ], [ %add, %for.body ]
%call7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %min.0.lcssa, i64 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %temp) #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 i64 @llvm.smax.i64(i64, i64) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, 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 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 = !{!"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"}
|
#include<stdio.h>
long long int max_k(int m,int *Max);
long long int min_k(int m,int *Min);
long long int sum_k(int m,int *Sum);
int main(void){
int n,i;
int a[10000];
long long int max;
long long int min;
long long int sum;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
max=max_k(n,a);
min=min_k(n,a);
sum=sum_k(n,a);
printf("%lld %lld %lld\n",min ,max ,sum);
return 0;
}
long long int max_k(int m,int* Max){
int h;
long long int max_s=-1000000;
for(h=0;h<m;h++){
if(Max[h]>max_s){
max_s=Max[h];
}
}
return max_s;
}
long long int min_k(int m,int* Min){
int h;
long long int min_s=1000000;
for(h=0;h<m;h++){
if(Min[h]<min_s){
min_s=Min[h];
}
}
return min_s;
}
long long int sum_k(int m,int* Sum){
int h;
long long int sum_s=0;
for(h=0;h<m;h++){
sum_s+=Sum[h];
}
return sum_s;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_173985/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_173985/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 [16 x i8] c"%lld %lld %lld\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 [10000 x i32], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #6
call void @llvm.lifetime.start.p0(i64 40000, ptr nonnull %a) #6
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp34 = icmp sgt i32 %0, 0
br i1 %cmp34, label %for.body, label %sum_k.exit
for.body: ; preds = %entry, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [10000 x i32], ptr %a, i64 0, 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
%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.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body
%cmp11.i = icmp sgt i32 %1, 0
br i1 %cmp11.i, label %for.body.preheader.i, label %sum_k.exit
for.body.preheader.i: ; preds = %for.end
%wide.trip.count.i = zext i32 %1 to i64
%xtraiter = and i64 %wide.trip.count.i, 3
%3 = icmp ult i32 %1, 4
br i1 %3, label %for.body.i13.preheader.unr-lcssa, label %for.body.preheader.i.new
for.body.preheader.i.new: ; preds = %for.body.preheader.i
%unroll_iter = and i64 %wide.trip.count.i, 4294967292
br label %for.body.i
for.body.i: ; preds = %for.body.i, %for.body.preheader.i.new
%indvars.iv.i = phi i64 [ 0, %for.body.preheader.i.new ], [ %indvars.iv.next.i.3, %for.body.i ]
%max_s.013.i = phi i64 [ -1000000, %for.body.preheader.i.new ], [ %spec.select.i.3, %for.body.i ]
%niter = phi i64 [ 0, %for.body.preheader.i.new ], [ %niter.next.3, %for.body.i ]
%arrayidx.i = getelementptr inbounds i32, ptr %a, i64 %indvars.iv.i
%4 = load i32, ptr %arrayidx.i, align 16, !tbaa !5
%conv.i = sext i32 %4 to i64
%spec.select.i = call i64 @llvm.smax.i64(i64 %max_s.013.i, i64 %conv.i)
%indvars.iv.next.i = or i64 %indvars.iv.i, 1
%arrayidx.i.1 = getelementptr inbounds i32, ptr %a, i64 %indvars.iv.next.i
%5 = load i32, ptr %arrayidx.i.1, align 4, !tbaa !5
%conv.i.1 = sext i32 %5 to i64
%spec.select.i.1 = call i64 @llvm.smax.i64(i64 %spec.select.i, i64 %conv.i.1)
%indvars.iv.next.i.1 = or i64 %indvars.iv.i, 2
%arrayidx.i.2 = getelementptr inbounds i32, ptr %a, i64 %indvars.iv.next.i.1
%6 = load i32, ptr %arrayidx.i.2, align 8, !tbaa !5
%conv.i.2 = sext i32 %6 to i64
%spec.select.i.2 = call i64 @llvm.smax.i64(i64 %spec.select.i.1, i64 %conv.i.2)
%indvars.iv.next.i.2 = or i64 %indvars.iv.i, 3
%arrayidx.i.3 = getelementptr inbounds i32, ptr %a, i64 %indvars.iv.next.i.2
%7 = load i32, ptr %arrayidx.i.3, align 4, !tbaa !5
%conv.i.3 = sext i32 %7 to i64
%spec.select.i.3 = call i64 @llvm.smax.i64(i64 %spec.select.i.2, i64 %conv.i.3)
%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 %for.body.i13.preheader.unr-lcssa, label %for.body.i, !llvm.loop !11
for.body.i13.preheader.unr-lcssa: ; preds = %for.body.i, %for.body.preheader.i
%spec.select.i.lcssa.ph = phi i64 [ undef, %for.body.preheader.i ], [ %spec.select.i.3, %for.body.i ]
%indvars.iv.i.unr = phi i64 [ 0, %for.body.preheader.i ], [ %indvars.iv.next.i.3, %for.body.i ]
%max_s.013.i.unr = phi i64 [ -1000000, %for.body.preheader.i ], [ %spec.select.i.3, %for.body.i ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.body.i13.preheader, label %for.body.i.epil
for.body.i.epil: ; preds = %for.body.i13.preheader.unr-lcssa, %for.body.i.epil
%indvars.iv.i.epil = phi i64 [ %indvars.iv.next.i.epil, %for.body.i.epil ], [ %indvars.iv.i.unr, %for.body.i13.preheader.unr-lcssa ]
%max_s.013.i.epil = phi i64 [ %spec.select.i.epil, %for.body.i.epil ], [ %max_s.013.i.unr, %for.body.i13.preheader.unr-lcssa ]
%epil.iter = phi i64 [ %epil.iter.next, %for.body.i.epil ], [ 0, %for.body.i13.preheader.unr-lcssa ]
%arrayidx.i.epil = getelementptr inbounds i32, ptr %a, i64 %indvars.iv.i.epil
%8 = load i32, ptr %arrayidx.i.epil, align 4, !tbaa !5
%conv.i.epil = sext i32 %8 to i64
%spec.select.i.epil = call i64 @llvm.smax.i64(i64 %max_s.013.i.epil, i64 %conv.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 %for.body.i13.preheader, label %for.body.i.epil, !llvm.loop !12
for.body.i13.preheader: ; preds = %for.body.i.epil, %for.body.i13.preheader.unr-lcssa
%spec.select.i.lcssa = phi i64 [ %spec.select.i.lcssa.ph, %for.body.i13.preheader.unr-lcssa ], [ %spec.select.i.epil, %for.body.i.epil ]
%xtraiter45 = and i64 %wide.trip.count.i, 3
%9 = icmp ult i32 %1, 4
br i1 %9, label %for.body.preheader.i20.unr-lcssa, label %for.body.i13.preheader.new
for.body.i13.preheader.new: ; preds = %for.body.i13.preheader
%unroll_iter49 = and i64 %wide.trip.count.i, 4294967292
br label %for.body.i13
for.body.i13: ; preds = %for.body.i13, %for.body.i13.preheader.new
%indvars.iv.i14 = phi i64 [ 0, %for.body.i13.preheader.new ], [ %indvars.iv.next.i18.3, %for.body.i13 ]
%min_s.013.i = phi i64 [ 1000000, %for.body.i13.preheader.new ], [ %spec.select.i17.3, %for.body.i13 ]
%niter50 = phi i64 [ 0, %for.body.i13.preheader.new ], [ %niter50.next.3, %for.body.i13 ]
%arrayidx.i15 = getelementptr inbounds i32, ptr %a, i64 %indvars.iv.i14
%10 = load i32, ptr %arrayidx.i15, align 16, !tbaa !5
%conv.i16 = sext i32 %10 to i64
%spec.select.i17 = call i64 @llvm.smin.i64(i64 %min_s.013.i, i64 %conv.i16)
%indvars.iv.next.i18 = or i64 %indvars.iv.i14, 1
%arrayidx.i15.1 = getelementptr inbounds i32, ptr %a, i64 %indvars.iv.next.i18
%11 = load i32, ptr %arrayidx.i15.1, align 4, !tbaa !5
%conv.i16.1 = sext i32 %11 to i64
%spec.select.i17.1 = call i64 @llvm.smin.i64(i64 %spec.select.i17, i64 %conv.i16.1)
%indvars.iv.next.i18.1 = or i64 %indvars.iv.i14, 2
%arrayidx.i15.2 = getelementptr inbounds i32, ptr %a, i64 %indvars.iv.next.i18.1
%12 = load i32, ptr %arrayidx.i15.2, align 8, !tbaa !5
%conv.i16.2 = sext i32 %12 to i64
%spec.select.i17.2 = call i64 @llvm.smin.i64(i64 %spec.select.i17.1, i64 %conv.i16.2)
%indvars.iv.next.i18.2 = or i64 %indvars.iv.i14, 3
%arrayidx.i15.3 = getelementptr inbounds i32, ptr %a, i64 %indvars.iv.next.i18.2
%13 = load i32, ptr %arrayidx.i15.3, align 4, !tbaa !5
%conv.i16.3 = sext i32 %13 to i64
%spec.select.i17.3 = call i64 @llvm.smin.i64(i64 %spec.select.i17.2, i64 %conv.i16.3)
%indvars.iv.next.i18.3 = add nuw nsw i64 %indvars.iv.i14, 4
%niter50.next.3 = add i64 %niter50, 4
%niter50.ncmp.3 = icmp eq i64 %niter50.next.3, %unroll_iter49
br i1 %niter50.ncmp.3, label %for.body.preheader.i20.unr-lcssa, label %for.body.i13, !llvm.loop !14
for.body.preheader.i20.unr-lcssa: ; preds = %for.body.i13, %for.body.i13.preheader
%spec.select.i17.lcssa.ph = phi i64 [ undef, %for.body.i13.preheader ], [ %spec.select.i17.3, %for.body.i13 ]
%indvars.iv.i14.unr = phi i64 [ 0, %for.body.i13.preheader ], [ %indvars.iv.next.i18.3, %for.body.i13 ]
%min_s.013.i.unr = phi i64 [ 1000000, %for.body.i13.preheader ], [ %spec.select.i17.3, %for.body.i13 ]
%lcmp.mod47.not = icmp eq i64 %xtraiter45, 0
br i1 %lcmp.mod47.not, label %for.body.preheader.i20, label %for.body.i13.epil
for.body.i13.epil: ; preds = %for.body.preheader.i20.unr-lcssa, %for.body.i13.epil
%indvars.iv.i14.epil = phi i64 [ %indvars.iv.next.i18.epil, %for.body.i13.epil ], [ %indvars.iv.i14.unr, %for.body.preheader.i20.unr-lcssa ]
%min_s.013.i.epil = phi i64 [ %spec.select.i17.epil, %for.body.i13.epil ], [ %min_s.013.i.unr, %for.body.preheader.i20.unr-lcssa ]
%epil.iter46 = phi i64 [ %epil.iter46.next, %for.body.i13.epil ], [ 0, %for.body.preheader.i20.unr-lcssa ]
%arrayidx.i15.epil = getelementptr inbounds i32, ptr %a, i64 %indvars.iv.i14.epil
%14 = load i32, ptr %arrayidx.i15.epil, align 4, !tbaa !5
%conv.i16.epil = sext i32 %14 to i64
%spec.select.i17.epil = call i64 @llvm.smin.i64(i64 %min_s.013.i.epil, i64 %conv.i16.epil)
%indvars.iv.next.i18.epil = add nuw nsw i64 %indvars.iv.i14.epil, 1
%epil.iter46.next = add i64 %epil.iter46, 1
%epil.iter46.cmp.not = icmp eq i64 %epil.iter46.next, %xtraiter45
br i1 %epil.iter46.cmp.not, label %for.body.preheader.i20, label %for.body.i13.epil, !llvm.loop !15
for.body.preheader.i20: ; preds = %for.body.i13.epil, %for.body.preheader.i20.unr-lcssa
%spec.select.i17.lcssa = phi i64 [ %spec.select.i17.lcssa.ph, %for.body.preheader.i20.unr-lcssa ], [ %spec.select.i17.epil, %for.body.i13.epil ]
%min.iters.check = icmp ult i32 %1, 4
br i1 %min.iters.check, label %for.body.i22.preheader, label %vector.ph
vector.ph: ; preds = %for.body.preheader.i20
%n.vec = and i64 %wide.trip.count.i, 4294967292
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 i64> [ zeroinitializer, %vector.ph ], [ %19, %vector.body ]
%vec.phi40 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %20, %vector.body ]
%15 = getelementptr inbounds i32, ptr %a, i64 %index
%wide.load = load <2 x i32>, ptr %15, align 16, !tbaa !5
%16 = getelementptr inbounds i32, ptr %15, i64 2
%wide.load41 = load <2 x i32>, ptr %16, align 8, !tbaa !5
%17 = sext <2 x i32> %wide.load to <2 x i64>
%18 = sext <2 x i32> %wide.load41 to <2 x i64>
%19 = add <2 x i64> %vec.phi, %17
%20 = add <2 x i64> %vec.phi40, %18
%index.next = add nuw i64 %index, 4
%21 = icmp eq i64 %index.next, %n.vec
br i1 %21, label %middle.block, label %vector.body, !llvm.loop !16
middle.block: ; preds = %vector.body
%bin.rdx = add <2 x i64> %20, %19
%22 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
%cmp.n = icmp eq i64 %n.vec, %wide.trip.count.i
br i1 %cmp.n, label %sum_k.exit, label %for.body.i22.preheader
for.body.i22.preheader: ; preds = %for.body.preheader.i20, %middle.block
%indvars.iv.i23.ph = phi i64 [ 0, %for.body.preheader.i20 ], [ %n.vec, %middle.block ]
%sum_s.06.i.ph = phi i64 [ 0, %for.body.preheader.i20 ], [ %22, %middle.block ]
br label %for.body.i22
for.body.i22: ; preds = %for.body.i22.preheader, %for.body.i22
%indvars.iv.i23 = phi i64 [ %indvars.iv.next.i26, %for.body.i22 ], [ %indvars.iv.i23.ph, %for.body.i22.preheader ]
%sum_s.06.i = phi i64 [ %add.i, %for.body.i22 ], [ %sum_s.06.i.ph, %for.body.i22.preheader ]
%arrayidx.i24 = getelementptr inbounds i32, ptr %a, i64 %indvars.iv.i23
%23 = load i32, ptr %arrayidx.i24, align 4, !tbaa !5
%conv.i25 = sext i32 %23 to i64
%add.i = add nsw i64 %sum_s.06.i, %conv.i25
%indvars.iv.next.i26 = add nuw nsw i64 %indvars.iv.i23, 1
%exitcond.not.i27 = icmp eq i64 %indvars.iv.next.i26, %wide.trip.count.i
br i1 %exitcond.not.i27, label %sum_k.exit, label %for.body.i22, !llvm.loop !19
sum_k.exit: ; preds = %for.body.i22, %middle.block, %entry, %for.end
%min_s.0.lcssa.i33 = phi i64 [ 1000000, %for.end ], [ 1000000, %entry ], [ %spec.select.i17.lcssa, %middle.block ], [ %spec.select.i17.lcssa, %for.body.i22 ]
%max_s.0.lcssa.i2932 = phi i64 [ -1000000, %for.end ], [ -1000000, %entry ], [ %spec.select.i.lcssa, %middle.block ], [ %spec.select.i.lcssa, %for.body.i22 ]
%sum_s.0.lcssa.i = phi i64 [ 0, %for.end ], [ 0, %entry ], [ %22, %middle.block ], [ %add.i, %for.body.i22 ]
%call7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %min_s.0.lcssa.i33, i64 noundef %max_s.0.lcssa.i2932, i64 noundef %sum_s.0.lcssa.i)
call void @llvm.lifetime.end.p0(i64 40000, ptr nonnull %a) #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) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nosync nounwind memory(argmem: read) uwtable
define dso_local i64 @max_k(i32 noundef %m, ptr nocapture noundef readonly %Max) local_unnamed_addr #3 {
entry:
%cmp11 = icmp sgt i32 %m, 0
br i1 %cmp11, label %for.body.preheader, label %for.end
for.body.preheader: ; preds = %entry
%wide.trip.count = zext i32 %m to i64
%xtraiter = and i64 %wide.trip.count, 3
%0 = icmp ult i32 %m, 4
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 %wide.trip.count, 4294967292
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.3, %for.body ]
%max_s.013 = phi i64 [ -1000000, %for.body.preheader.new ], [ %spec.select.3, %for.body ]
%niter = phi i64 [ 0, %for.body.preheader.new ], [ %niter.next.3, %for.body ]
%arrayidx = getelementptr inbounds i32, ptr %Max, i64 %indvars.iv
%1 = load i32, ptr %arrayidx, align 4, !tbaa !5
%conv = sext i32 %1 to i64
%spec.select = tail call i64 @llvm.smax.i64(i64 %max_s.013, i64 %conv)
%indvars.iv.next = or i64 %indvars.iv, 1
%arrayidx.1 = getelementptr inbounds i32, ptr %Max, i64 %indvars.iv.next
%2 = load i32, ptr %arrayidx.1, align 4, !tbaa !5
%conv.1 = sext i32 %2 to i64
%spec.select.1 = tail call i64 @llvm.smax.i64(i64 %spec.select, i64 %conv.1)
%indvars.iv.next.1 = or i64 %indvars.iv, 2
%arrayidx.2 = getelementptr inbounds i32, ptr %Max, i64 %indvars.iv.next.1
%3 = load i32, ptr %arrayidx.2, align 4, !tbaa !5
%conv.2 = sext i32 %3 to i64
%spec.select.2 = tail call i64 @llvm.smax.i64(i64 %spec.select.1, i64 %conv.2)
%indvars.iv.next.2 = or i64 %indvars.iv, 3
%arrayidx.3 = getelementptr inbounds i32, ptr %Max, i64 %indvars.iv.next.2
%4 = load i32, ptr %arrayidx.3, align 4, !tbaa !5
%conv.3 = sext i32 %4 to i64
%spec.select.3 = tail call i64 @llvm.smax.i64(i64 %spec.select.2, i64 %conv.3)
%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 %for.end.loopexit.unr-lcssa, label %for.body, !llvm.loop !11
for.end.loopexit.unr-lcssa: ; preds = %for.body, %for.body.preheader
%spec.select.lcssa.ph = phi i64 [ undef, %for.body.preheader ], [ %spec.select.3, %for.body ]
%indvars.iv.unr = phi i64 [ 0, %for.body.preheader ], [ %indvars.iv.next.3, %for.body ]
%max_s.013.unr = phi i64 [ -1000000, %for.body.preheader ], [ %spec.select.3, %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 ]
%max_s.013.epil = phi i64 [ %spec.select.epil, %for.body.epil ], [ %max_s.013.unr, %for.end.loopexit.unr-lcssa ]
%epil.iter = phi i64 [ %epil.iter.next, %for.body.epil ], [ 0, %for.end.loopexit.unr-lcssa ]
%arrayidx.epil = getelementptr inbounds i32, ptr %Max, i64 %indvars.iv.epil
%5 = load i32, ptr %arrayidx.epil, align 4, !tbaa !5
%conv.epil = sext i32 %5 to i64
%spec.select.epil = tail call i64 @llvm.smax.i64(i64 %max_s.013.epil, i64 %conv.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 %for.end, label %for.body.epil, !llvm.loop !20
for.end: ; preds = %for.end.loopexit.unr-lcssa, %for.body.epil, %entry
%max_s.0.lcssa = phi i64 [ -1000000, %entry ], [ %spec.select.lcssa.ph, %for.end.loopexit.unr-lcssa ], [ %spec.select.epil, %for.body.epil ]
ret i64 %max_s.0.lcssa
}
; Function Attrs: nofree nosync nounwind memory(argmem: read) uwtable
define dso_local i64 @min_k(i32 noundef %m, ptr nocapture noundef readonly %Min) local_unnamed_addr #3 {
entry:
%cmp11 = icmp sgt i32 %m, 0
br i1 %cmp11, label %for.body.preheader, label %for.end
for.body.preheader: ; preds = %entry
%wide.trip.count = zext i32 %m to i64
%xtraiter = and i64 %wide.trip.count, 3
%0 = icmp ult i32 %m, 4
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 %wide.trip.count, 4294967292
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.3, %for.body ]
%min_s.013 = phi i64 [ 1000000, %for.body.preheader.new ], [ %spec.select.3, %for.body ]
%niter = phi i64 [ 0, %for.body.preheader.new ], [ %niter.next.3, %for.body ]
%arrayidx = getelementptr inbounds i32, ptr %Min, i64 %indvars.iv
%1 = load i32, ptr %arrayidx, align 4, !tbaa !5
%conv = sext i32 %1 to i64
%spec.select = tail call i64 @llvm.smin.i64(i64 %min_s.013, i64 %conv)
%indvars.iv.next = or i64 %indvars.iv, 1
%arrayidx.1 = getelementptr inbounds i32, ptr %Min, i64 %indvars.iv.next
%2 = load i32, ptr %arrayidx.1, align 4, !tbaa !5
%conv.1 = sext i32 %2 to i64
%spec.select.1 = tail call i64 @llvm.smin.i64(i64 %spec.select, i64 %conv.1)
%indvars.iv.next.1 = or i64 %indvars.iv, 2
%arrayidx.2 = getelementptr inbounds i32, ptr %Min, i64 %indvars.iv.next.1
%3 = load i32, ptr %arrayidx.2, align 4, !tbaa !5
%conv.2 = sext i32 %3 to i64
%spec.select.2 = tail call i64 @llvm.smin.i64(i64 %spec.select.1, i64 %conv.2)
%indvars.iv.next.2 = or i64 %indvars.iv, 3
%arrayidx.3 = getelementptr inbounds i32, ptr %Min, i64 %indvars.iv.next.2
%4 = load i32, ptr %arrayidx.3, align 4, !tbaa !5
%conv.3 = sext i32 %4 to i64
%spec.select.3 = tail call i64 @llvm.smin.i64(i64 %spec.select.2, i64 %conv.3)
%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 %for.end.loopexit.unr-lcssa, label %for.body, !llvm.loop !14
for.end.loopexit.unr-lcssa: ; preds = %for.body, %for.body.preheader
%spec.select.lcssa.ph = phi i64 [ undef, %for.body.preheader ], [ %spec.select.3, %for.body ]
%indvars.iv.unr = phi i64 [ 0, %for.body.preheader ], [ %indvars.iv.next.3, %for.body ]
%min_s.013.unr = phi i64 [ 1000000, %for.body.preheader ], [ %spec.select.3, %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 ]
%min_s.013.epil = phi i64 [ %spec.select.epil, %for.body.epil ], [ %min_s.013.unr, %for.end.loopexit.unr-lcssa ]
%epil.iter = phi i64 [ %epil.iter.next, %for.body.epil ], [ 0, %for.end.loopexit.unr-lcssa ]
%arrayidx.epil = getelementptr inbounds i32, ptr %Min, i64 %indvars.iv.epil
%5 = load i32, ptr %arrayidx.epil, align 4, !tbaa !5
%conv.epil = sext i32 %5 to i64
%spec.select.epil = tail call i64 @llvm.smin.i64(i64 %min_s.013.epil, i64 %conv.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 %for.end, label %for.body.epil, !llvm.loop !21
for.end: ; preds = %for.end.loopexit.unr-lcssa, %for.body.epil, %entry
%min_s.0.lcssa = phi i64 [ 1000000, %entry ], [ %spec.select.lcssa.ph, %for.end.loopexit.unr-lcssa ], [ %spec.select.epil, %for.body.epil ]
ret i64 %min_s.0.lcssa
}
; Function Attrs: nofree norecurse nosync nounwind memory(argmem: read) uwtable
define dso_local i64 @sum_k(i32 noundef %m, ptr nocapture noundef readonly %Sum) local_unnamed_addr #4 {
entry:
%cmp4 = icmp sgt i32 %m, 0
br i1 %cmp4, label %for.body.preheader, label %for.end
for.body.preheader: ; preds = %entry
%wide.trip.count = zext i32 %m to i64
%min.iters.check = icmp ult i32 %m, 4
br i1 %min.iters.check, label %for.body.preheader10, 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.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %4, %vector.body ]
%vec.phi8 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %5, %vector.body ]
%0 = getelementptr inbounds i32, ptr %Sum, i64 %index
%wide.load = load <2 x i32>, ptr %0, align 4, !tbaa !5
%1 = getelementptr inbounds i32, ptr %0, i64 2
%wide.load9 = load <2 x i32>, ptr %1, align 4, !tbaa !5
%2 = sext <2 x i32> %wide.load to <2 x i64>
%3 = sext <2 x i32> %wide.load9 to <2 x i64>
%4 = add <2 x i64> %vec.phi, %2
%5 = add <2 x i64> %vec.phi8, %3
%index.next = add nuw i64 %index, 4
%6 = icmp eq i64 %index.next, %n.vec
br i1 %6, label %middle.block, label %vector.body, !llvm.loop !22
middle.block: ; preds = %vector.body
%bin.rdx = add <2 x i64> %5, %4
%7 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
%cmp.n = icmp eq i64 %n.vec, %wide.trip.count
br i1 %cmp.n, label %for.end, label %for.body.preheader10
for.body.preheader10: ; preds = %for.body.preheader, %middle.block
%indvars.iv.ph = phi i64 [ 0, %for.body.preheader ], [ %n.vec, %middle.block ]
%sum_s.06.ph = phi i64 [ 0, %for.body.preheader ], [ %7, %middle.block ]
br label %for.body
for.body: ; preds = %for.body.preheader10, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ %indvars.iv.ph, %for.body.preheader10 ]
%sum_s.06 = phi i64 [ %add, %for.body ], [ %sum_s.06.ph, %for.body.preheader10 ]
%arrayidx = getelementptr inbounds i32, ptr %Sum, i64 %indvars.iv
%8 = load i32, ptr %arrayidx, align 4, !tbaa !5
%conv = sext i32 %8 to i64
%add = add nsw i64 %sum_s.06, %conv
%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 !23
for.end: ; preds = %for.body, %middle.block, %entry
%sum_s.0.lcssa = phi i64 [ 0, %entry ], [ %7, %middle.block ], [ %add, %for.body ]
ret i64 %sum_s.0.lcssa
}
; 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 i64 @llvm.smax.i64(i64, i64) #5
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #5
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #5
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 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 #4 = { 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 #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 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !13}
!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, !13}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !10, !17, !18}
!23 = distinct !{!23, !10, !18, !17}
|
#include <stdio.h>
#include <limits.h>
int main(){
int n;
int i;
long max =LONG_MIN;
long min =LONG_MAX;
long sum =0;
int num;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&num);
if(num<min){
min=num;
}
if(num>max){
max=num;
}
sum+=num;
}
printf("%ld %ld %ld\n",min,max,sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174041/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174041/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 [13 x i8] c"%ld %ld %ld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%num = 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 %num) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp17 = icmp sgt i32 %0, 0
br i1 %cmp17, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%sum.021 = phi i64 [ %add, %for.body ], [ 0, %entry ]
%min.020 = phi i64 [ %spec.select, %for.body ], [ 9223372036854775807, %entry ]
%max.019 = phi i64 [ %max.1, %for.body ], [ -9223372036854775808, %entry ]
%i.018 = phi i32 [ %inc, %for.body ], [ 0, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %num)
%1 = load i32, ptr %num, align 4, !tbaa !5
%conv = sext i32 %1 to i64
%spec.select = call i64 @llvm.smin.i64(i64 %min.020, i64 %conv)
%max.1 = call i64 @llvm.smax.i64(i64 %max.019, i64 %conv)
%add = add nsw i64 %sum.021, %conv
%inc = add nuw nsw i32 %i.018, 1
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %2
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body, %entry
%max.0.lcssa = phi i64 [ -9223372036854775808, %entry ], [ %max.1, %for.body ]
%min.0.lcssa = phi i64 [ 9223372036854775807, %entry ], [ %spec.select, %for.body ]
%sum.0.lcssa = phi i64 [ 0, %entry ], [ %add, %for.body ]
%call12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %min.0.lcssa, i64 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %num) #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 i64 @llvm.smin.i64(i64, i64) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, 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 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"}
|
#include <stdio.h>
#define NUMBER 10000
int main(void)
{
int i, num;
long a[NUMBER];
scanf("%d", &num);
for(i = 0; i < num; i++) {
scanf("%ld ", &a[i]);
}
long min, max, sum;
min = max = sum = a[0];
for(i = 1; i < num; i++) {
if(a[i] > max) {
max = a[i];
}
if(a[i] < min) {
min = a[i];
}
sum += a[i];
}
printf("%ld %ld %ld\n", min, max, sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174085/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174085/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"%ld \00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"%ld %ld %ld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%num = alloca i32, align 4
%a = alloca [10000 x i64], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %num) #5
call void @llvm.lifetime.start.p0(i64 80000, ptr nonnull %a) #5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %num)
%0 = load i32, ptr %num, align 4, !tbaa !5
%cmp37 = icmp sgt i32 %0, 0
call void @llvm.assume(i1 %cmp37)
br label %for.body
for.body: ; preds = %entry, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [10000 x i64], ptr %a, 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 %num, align 4, !tbaa !5
%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 !9
for.end: ; preds = %for.body
%.pre = load i64, ptr %a, align 16, !tbaa !11
%cmp439 = icmp sgt i32 %1, 1
br i1 %cmp439, label %for.body5.preheader, label %for.end22
for.body5.preheader: ; preds = %for.end
%wide.trip.count = zext i32 %1 to i64
%3 = add nsw i64 %wide.trip.count, -1
%xtraiter = and i64 %3, 1
%4 = icmp eq i32 %1, 2
br i1 %4, label %for.end22.loopexit.unr-lcssa, label %for.body5.preheader.new
for.body5.preheader.new: ; preds = %for.body5.preheader
%unroll_iter = and i64 %3, -2
br label %for.body5
for.body5: ; preds = %for.body5, %for.body5.preheader.new
%indvars.iv49 = phi i64 [ 1, %for.body5.preheader.new ], [ %indvars.iv.next50.1, %for.body5 ]
%sum.043 = phi i64 [ %.pre, %for.body5.preheader.new ], [ %add.1, %for.body5 ]
%max.042 = phi i64 [ %.pre, %for.body5.preheader.new ], [ %spec.select.1, %for.body5 ]
%min.041 = phi i64 [ %.pre, %for.body5.preheader.new ], [ %min.1.1, %for.body5 ]
%niter = phi i64 [ 0, %for.body5.preheader.new ], [ %niter.next.1, %for.body5 ]
%arrayidx7 = getelementptr inbounds [10000 x i64], ptr %a, i64 0, i64 %indvars.iv49
%5 = load i64, ptr %arrayidx7, align 8, !tbaa !11
%spec.select = call i64 @llvm.smax.i64(i64 %5, i64 %max.042)
%min.1 = call i64 @llvm.smin.i64(i64 %5, i64 %min.041)
%add = add nsw i64 %5, %sum.043
%indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, 1
%arrayidx7.1 = getelementptr inbounds [10000 x i64], ptr %a, i64 0, i64 %indvars.iv.next50
%6 = load i64, ptr %arrayidx7.1, align 8, !tbaa !11
%spec.select.1 = call i64 @llvm.smax.i64(i64 %6, i64 %spec.select)
%min.1.1 = call i64 @llvm.smin.i64(i64 %6, i64 %min.1)
%add.1 = add nsw i64 %6, %add
%indvars.iv.next50.1 = add nuw nsw i64 %indvars.iv49, 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.end22.loopexit.unr-lcssa, label %for.body5, !llvm.loop !13
for.end22.loopexit.unr-lcssa: ; preds = %for.body5, %for.body5.preheader
%spec.select.lcssa.ph = phi i64 [ undef, %for.body5.preheader ], [ %spec.select.1, %for.body5 ]
%min.1.lcssa.ph = phi i64 [ undef, %for.body5.preheader ], [ %min.1.1, %for.body5 ]
%add.lcssa.ph = phi i64 [ undef, %for.body5.preheader ], [ %add.1, %for.body5 ]
%indvars.iv49.unr = phi i64 [ 1, %for.body5.preheader ], [ %indvars.iv.next50.1, %for.body5 ]
%sum.043.unr = phi i64 [ %.pre, %for.body5.preheader ], [ %add.1, %for.body5 ]
%max.042.unr = phi i64 [ %.pre, %for.body5.preheader ], [ %spec.select.1, %for.body5 ]
%min.041.unr = phi i64 [ %.pre, %for.body5.preheader ], [ %min.1.1, %for.body5 ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.end22, label %for.body5.epil
for.body5.epil: ; preds = %for.end22.loopexit.unr-lcssa
%arrayidx7.epil = getelementptr inbounds [10000 x i64], ptr %a, i64 0, i64 %indvars.iv49.unr
%7 = load i64, ptr %arrayidx7.epil, align 8, !tbaa !11
%spec.select.epil = call i64 @llvm.smax.i64(i64 %7, i64 %max.042.unr)
%min.1.epil = call i64 @llvm.smin.i64(i64 %7, i64 %min.041.unr)
%add.epil = add nsw i64 %7, %sum.043.unr
br label %for.end22
for.end22: ; preds = %for.body5.epil, %for.end22.loopexit.unr-lcssa, %for.end
%min.0.lcssa = phi i64 [ %.pre, %for.end ], [ %min.1.lcssa.ph, %for.end22.loopexit.unr-lcssa ], [ %min.1.epil, %for.body5.epil ]
%max.0.lcssa = phi i64 [ %.pre, %for.end ], [ %spec.select.lcssa.ph, %for.end22.loopexit.unr-lcssa ], [ %spec.select.epil, %for.body5.epil ]
%sum.0.lcssa = phi i64 [ %.pre, %for.end ], [ %add.lcssa.ph, %for.end22.loopexit.unr-lcssa ], [ %add.epil, %for.body5.epil ]
%call23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %min.0.lcssa, i64 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 80000, ptr nonnull %a) #5
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: 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 i64 @llvm.smax.i64(i64, i64) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: 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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !10}
|
#include <stdio.h>
#define MIN -1000000
#define MAX 1000000
int
main(void)
{
int min = MAX;
int max = MIN;
int num, c;
long long sum = 0;
scanf("%d", &c);
while (c--) {
scanf("%d", &num);
sum += num;
min = num < min ? num : min;
max = num > max ? num : max;
}
printf("%d %d %lld\n", min, max, sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174128/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174128/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 %lld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%num = alloca i32, align 4
%c = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %num) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %c)
%0 = load i32, ptr %c, align 4, !tbaa !5
%dec15 = add nsw i32 %0, -1
store i32 %dec15, ptr %c, align 4, !tbaa !5
%tobool.not16 = icmp eq i32 %0, 0
br i1 %tobool.not16, label %while.end, label %while.body
while.body: ; preds = %entry, %while.body
%sum.019 = phi i64 [ %add, %while.body ], [ 0, %entry ]
%max.018 = phi i32 [ %cond8, %while.body ], [ -1000000, %entry ]
%min.017 = phi i32 [ %cond, %while.body ], [ 1000000, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %num)
%1 = load i32, ptr %num, align 4
%conv = sext i32 %1 to i64
%add = add nsw i64 %sum.019, %conv
%cond = call i32 @llvm.smin.i32(i32 %1, i32 %min.017)
%cond8 = call i32 @llvm.smax.i32(i32 %1, i32 %max.018)
%2 = load i32, ptr %c, align 4, !tbaa !5
%dec = add nsw i32 %2, -1
store i32 %dec, ptr %c, align 4, !tbaa !5
%tobool.not = icmp eq i32 %2, 0
br i1 %tobool.not, label %while.end, label %while.body, !llvm.loop !9
while.end: ; preds = %while.body, %entry
%min.0.lcssa = phi i32 [ 1000000, %entry ], [ %cond, %while.body ]
%max.0.lcssa = phi i32 [ -1000000, %entry ], [ %cond8, %while.body ]
%sum.0.lcssa = phi i64 [ 0, %entry ], [ %add, %while.body ]
%call9 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #4
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: 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
; 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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
int main(void)
{
int n, a, min, max;
long sum;
min = 1000000;
max = -1000000;
sum = 0;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%d", &a);
if (a < min) {
min = a;
}
if (a > max) {
max = a;
}
sum+=a;
}
printf("%d %d %ld\n", min, max, sum);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174171/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174171/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 [11 x i8] c"%d %d %ld\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
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #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 %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp12 = icmp sgt i32 %0, 0
br i1 %cmp12, label %for.body, label %for.cond.cleanup
for.cond.cleanup: ; preds = %for.body, %entry
%min.0.lcssa = phi i32 [ 1000000, %entry ], [ %spec.select, %for.body ]
%max.0.lcssa = phi i32 [ -1000000, %entry ], [ %max.1, %for.body ]
%sum.0.lcssa = phi i64 [ 0, %entry ], [ %add, %for.body ]
%call6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4
ret i32 0
for.body: ; preds = %entry, %for.body
%i.016 = phi i32 [ %inc, %for.body ], [ 0, %entry ]
%sum.015 = phi i64 [ %add, %for.body ], [ 0, %entry ]
%max.014 = phi i32 [ %max.1, %for.body ], [ -1000000, %entry ]
%min.013 = phi i32 [ %spec.select, %for.body ], [ 1000000, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%1 = load i32, ptr %a, align 4, !tbaa !5
%spec.select = call i32 @llvm.smin.i32(i32 %1, i32 %min.013)
%max.1 = call i32 @llvm.smax.i32(i32 %1, i32 %max.014)
%conv = sext i32 %1 to i64
%add = add nsw i64 %sum.015, %conv
%inc = add nuw nsw i32 %i.016, 1
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %2
br i1 %cmp, label %for.body, label %for.cond.cleanup, !llvm.loop !9
}
; 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
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3
; 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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
#include <stdlib.h>
int main() {
int n;
int* array;
int index = 0;
int min, max;
long long int sum;
scanf("%d", &n);
array = (int*)malloc(sizeof(int) * n);
for (index = 0; index < n; index++) {
scanf("%d", &array[index]);
}
min = array[0];
max = array[0];
sum = array[0];
for (index = 1; index < n; index++) {
if (min > array[index]) min = array[index];
if (max < array[index]) max = array[index];
sum += array[index];
}
printf("%d %d %lld\n", min, max, sum);
free(array);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174214/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174214/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 %lld\0A\00", align 1
; Function Attrs: 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) #7
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%conv = zext i32 %0 to i64
%mul = shl nuw nsw i64 %conv, 2
%call1 = call noalias ptr @malloc(i64 noundef %mul) #8
%cmp55 = icmp sgt i32 %0, 0
call void @llvm.assume(i1 %cmp55)
br label %for.body
for.body: ; preds = %entry, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ]
%arrayidx = getelementptr inbounds i32, ptr %call1, i64 %indvars.iv
%call3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef %arrayidx)
%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.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body
%.pre = load i32, ptr %call1, align 4, !tbaa !5
%conv7 = sext i32 %.pre to i64
%cmp957 = icmp sgt i32 %1, 1
br i1 %cmp957, label %for.body11.preheader, label %for.end31
for.body11.preheader: ; preds = %for.end
%wide.trip.count = zext i32 %1 to i64
%3 = add nsw i64 %wide.trip.count, -1
%min.iters.check = icmp ult i32 %1, 5
br i1 %min.iters.check, label %for.body11.preheader84, label %vector.ph
vector.ph: ; preds = %for.body11.preheader
%n.vec = and i64 %3, -4
%ind.end = or i64 %n.vec, 1
%4 = insertelement <2 x i64> <i64 poison, i64 0>, i64 %conv7, i64 0
%minmax.ident.splatinsert = insertelement <2 x i32> poison, i32 %.pre, i64 0
%minmax.ident.splat = shufflevector <2 x i32> %minmax.ident.splatinsert, <2 x i32> poison, <2 x i32> zeroinitializer
%minmax.ident.splatinsert78 = insertelement <2 x i32> poison, i32 %.pre, i64 0
%minmax.ident.splat79 = shufflevector <2 x i32> %minmax.ident.splatinsert78, <2 x i32> 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 i64> [ %4, %vector.ph ], [ %13, %vector.body ]
%vec.phi73 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %14, %vector.body ]
%vec.phi74 = phi <2 x i32> [ %minmax.ident.splat, %vector.ph ], [ %9, %vector.body ]
%vec.phi75 = phi <2 x i32> [ %minmax.ident.splat, %vector.ph ], [ %10, %vector.body ]
%vec.phi76 = phi <2 x i32> [ %minmax.ident.splat79, %vector.ph ], [ %7, %vector.body ]
%vec.phi77 = phi <2 x i32> [ %minmax.ident.splat79, %vector.ph ], [ %8, %vector.body ]
%offset.idx = or i64 %index, 1
%5 = getelementptr inbounds i32, ptr %call1, i64 %offset.idx
%wide.load = load <2 x i32>, ptr %5, align 4, !tbaa !5
%6 = getelementptr inbounds i32, ptr %5, i64 2
%wide.load80 = load <2 x i32>, ptr %6, align 4, !tbaa !5
%7 = call <2 x i32> @llvm.smin.v2i32(<2 x i32> %vec.phi76, <2 x i32> %wide.load)
%8 = call <2 x i32> @llvm.smin.v2i32(<2 x i32> %vec.phi77, <2 x i32> %wide.load80)
%9 = call <2 x i32> @llvm.smax.v2i32(<2 x i32> %vec.phi74, <2 x i32> %wide.load)
%10 = call <2 x i32> @llvm.smax.v2i32(<2 x i32> %vec.phi75, <2 x i32> %wide.load80)
%11 = sext <2 x i32> %wide.load to <2 x i64>
%12 = sext <2 x i32> %wide.load80 to <2 x i64>
%13 = add <2 x i64> %vec.phi, %11
%14 = add <2 x i64> %vec.phi73, %12
%index.next = add nuw i64 %index, 4
%15 = icmp eq i64 %index.next, %n.vec
br i1 %15, label %middle.block, label %vector.body, !llvm.loop !11
middle.block: ; preds = %vector.body
%rdx.minmax82 = call <2 x i32> @llvm.smin.v2i32(<2 x i32> %7, <2 x i32> %8)
%16 = call i32 @llvm.vector.reduce.smin.v2i32(<2 x i32> %rdx.minmax82)
%rdx.minmax = call <2 x i32> @llvm.smax.v2i32(<2 x i32> %9, <2 x i32> %10)
%17 = call i32 @llvm.vector.reduce.smax.v2i32(<2 x i32> %rdx.minmax)
%bin.rdx = add <2 x i64> %14, %13
%18 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
%cmp.n = icmp eq i64 %3, %n.vec
br i1 %cmp.n, label %for.end31, label %for.body11.preheader84
for.body11.preheader84: ; preds = %for.body11.preheader, %middle.block
%indvars.iv67.ph = phi i64 [ 1, %for.body11.preheader ], [ %ind.end, %middle.block ]
%sum.061.ph = phi i64 [ %conv7, %for.body11.preheader ], [ %18, %middle.block ]
%max.060.ph = phi i32 [ %.pre, %for.body11.preheader ], [ %17, %middle.block ]
%min.059.ph = phi i32 [ %.pre, %for.body11.preheader ], [ %16, %middle.block ]
br label %for.body11
for.body11: ; preds = %for.body11.preheader84, %for.body11
%indvars.iv67 = phi i64 [ %indvars.iv.next68, %for.body11 ], [ %indvars.iv67.ph, %for.body11.preheader84 ]
%sum.061 = phi i64 [ %add, %for.body11 ], [ %sum.061.ph, %for.body11.preheader84 ]
%max.060 = phi i32 [ %max.1, %for.body11 ], [ %max.060.ph, %for.body11.preheader84 ]
%min.059 = phi i32 [ %spec.select, %for.body11 ], [ %min.059.ph, %for.body11.preheader84 ]
%arrayidx13 = getelementptr inbounds i32, ptr %call1, i64 %indvars.iv67
%19 = load i32, ptr %arrayidx13, align 4, !tbaa !5
%spec.select = call i32 @llvm.smin.i32(i32 %min.059, i32 %19)
%max.1 = call i32 @llvm.smax.i32(i32 %max.060, i32 %19)
%conv28 = sext i32 %19 to i64
%add = add nsw i64 %sum.061, %conv28
%indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
%exitcond.not = icmp eq i64 %indvars.iv.next68, %wide.trip.count
br i1 %exitcond.not, label %for.end31, label %for.body11, !llvm.loop !14
for.end31: ; preds = %for.body11, %middle.block, %for.end
%min.0.lcssa = phi i32 [ %.pre, %for.end ], [ %16, %middle.block ], [ %spec.select, %for.body11 ]
%max.0.lcssa = phi i32 [ %.pre, %for.end ], [ %17, %middle.block ], [ %max.1, %for.body11 ]
%sum.0.lcssa = phi i64 [ %conv7, %for.end ], [ %18, %middle.block ], [ %add, %for.body11 ]
%call32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @free(ptr noundef nonnull %call1) #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) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) 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) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #5
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #5
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #6
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i32> @llvm.smin.v2i32(<2 x i32>, <2 x i32>) #5
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i32> @llvm.smax.v2i32(<2 x i32>, <2 x i32>) #5
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #5
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.smax.v2i32(<2 x i32>) #5
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.smin.v2i32(<2 x i32>) #5
attributes #0 = { 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 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 #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
!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(){
long long n,i,a,b,min=1000000,max=-1000000,sum,tem,t;
scanf("%lld",&n);
sum = 0;
for(i=0;i<n;i++){
scanf("%lld",&a);
sum = sum + a;
if(a<min){
min=a;
}
if(a>max){
max=a;
}
}
printf("%lld ",min);
printf("%lld ",max);
printf("%lld\n",sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174258/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174258/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"%lld\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%lld \00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i64, align 8
%a = 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 %a) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i64, ptr %n, align 8, !tbaa !5
%cmp14 = icmp sgt i64 %0, 0
br i1 %cmp14, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%i.018 = phi i64 [ %inc, %for.body ], [ 0, %entry ]
%min.017 = phi i64 [ %spec.select, %for.body ], [ 1000000, %entry ]
%sum.016 = phi i64 [ %add, %for.body ], [ 0, %entry ]
%max.015 = phi i64 [ %max.1, %for.body ], [ -1000000, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%1 = load i64, ptr %a, align 8, !tbaa !5
%add = add nsw i64 %1, %sum.016
%spec.select = call i64 @llvm.smin.i64(i64 %1, i64 %min.017)
%max.1 = call i64 @llvm.smax.i64(i64 %1, i64 %max.015)
%inc = add nuw nsw i64 %i.018, 1
%2 = load i64, ptr %n, align 8, !tbaa !5
%cmp = icmp slt i64 %inc, %2
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body, %entry
%max.0.lcssa = phi i64 [ -1000000, %entry ], [ %max.1, %for.body ]
%sum.0.lcssa = phi i64 [ 0, %entry ], [ %add, %for.body ]
%min.0.lcssa = phi i64 [ 1000000, %entry ], [ %spec.select, %for.body ]
%call6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %min.0.lcssa)
%call7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %max.0.lcssa)
%call8 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %a) #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) #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 i64 @llvm.smin.i64(i64, i64) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, 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 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 = !{!"long long", !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>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main(void){
int n,a[10000];
long long int sum=0;
int max=-9999999;
int min=99999999;
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(int i=0;i<n;i++){
sum=sum+a[i];
if(a[i]>=max){max=a[i];}
if(a[i]<=min){min=a[i];}
}
printf("%d %d %lld\n",min,max,sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174300/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174300/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 %lld\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 [10000 x i32], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4
call void @llvm.lifetime.start.p0(i64 40000, ptr nonnull %a) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp39 = icmp sgt i32 %0, 0
br i1 %cmp39, label %for.body, label %for.cond.cleanup5
for.cond3.preheader: ; preds = %for.body
%cmp441 = icmp sgt i32 %15, 0
br i1 %cmp441, label %for.body6.preheader, label %for.cond.cleanup5
for.body6.preheader: ; preds = %for.cond3.preheader
%wide.trip.count = zext i32 %15 to i64
%min.iters.check = icmp ult i32 %15, 4
br i1 %min.iters.check, label %for.body6.preheader65, label %vector.ph
vector.ph: ; preds = %for.body6.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.phi = phi <2 x i32> [ <i32 99999999, i32 99999999>, %vector.ph ], [ %9, %vector.body ]
%vec.phi56 = phi <2 x i32> [ <i32 99999999, i32 99999999>, %vector.ph ], [ %10, %vector.body ]
%vec.phi57 = phi <2 x i32> [ <i32 -9999999, i32 -9999999>, %vector.ph ], [ %7, %vector.body ]
%vec.phi58 = phi <2 x i32> [ <i32 -9999999, i32 -9999999>, %vector.ph ], [ %8, %vector.body ]
%vec.phi59 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %5, %vector.body ]
%vec.phi60 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %6, %vector.body ]
%1 = getelementptr inbounds [10000 x i32], ptr %a, i64 0, i64 %index
%wide.load = load <2 x i32>, ptr %1, align 16, !tbaa !5
%2 = getelementptr inbounds i32, ptr %1, i64 2
%wide.load61 = load <2 x i32>, ptr %2, align 8, !tbaa !5
%3 = sext <2 x i32> %wide.load to <2 x i64>
%4 = sext <2 x i32> %wide.load61 to <2 x i64>
%5 = add <2 x i64> %vec.phi59, %3
%6 = add <2 x i64> %vec.phi60, %4
%7 = call <2 x i32> @llvm.smax.v2i32(<2 x i32> %wide.load, <2 x i32> %vec.phi57)
%8 = call <2 x i32> @llvm.smax.v2i32(<2 x i32> %wide.load61, <2 x i32> %vec.phi58)
%9 = call <2 x i32> @llvm.smin.v2i32(<2 x i32> %wide.load, <2 x i32> %vec.phi)
%10 = call <2 x i32> @llvm.smin.v2i32(<2 x i32> %wide.load61, <2 x i32> %vec.phi56)
%index.next = add nuw i64 %index, 4
%11 = icmp eq i64 %index.next, %n.vec
br i1 %11, label %middle.block, label %vector.body, !llvm.loop !9
middle.block: ; preds = %vector.body
%bin.rdx = add <2 x i64> %6, %5
%12 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
%rdx.minmax62 = call <2 x i32> @llvm.smax.v2i32(<2 x i32> %7, <2 x i32> %8)
%13 = call i32 @llvm.vector.reduce.smax.v2i32(<2 x i32> %rdx.minmax62)
%rdx.minmax = call <2 x i32> @llvm.smin.v2i32(<2 x i32> %9, <2 x i32> %10)
%14 = call i32 @llvm.vector.reduce.smin.v2i32(<2 x i32> %rdx.minmax)
%cmp.n = icmp eq i64 %n.vec, %wide.trip.count
br i1 %cmp.n, label %for.cond.cleanup5, label %for.body6.preheader65
for.body6.preheader65: ; preds = %for.body6.preheader, %middle.block
%indvars.iv51.ph = phi i64 [ 0, %for.body6.preheader ], [ %n.vec, %middle.block ]
%min.044.ph = phi i32 [ 99999999, %for.body6.preheader ], [ %14, %middle.block ]
%max.043.ph = phi i32 [ -9999999, %for.body6.preheader ], [ %13, %middle.block ]
%sum.042.ph = phi i64 [ 0, %for.body6.preheader ], [ %12, %middle.block ]
br label %for.body6
for.body: ; preds = %entry, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [10000 x i32], ptr %a, i64 0, 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
%15 = load i32, ptr %n, align 4, !tbaa !5
%16 = sext i32 %15 to i64
%cmp = icmp slt i64 %indvars.iv.next, %16
br i1 %cmp, label %for.body, label %for.cond3.preheader, !llvm.loop !13
for.cond.cleanup5: ; preds = %for.body6, %middle.block, %entry, %for.cond3.preheader
%sum.0.lcssa = phi i64 [ 0, %for.cond3.preheader ], [ 0, %entry ], [ %12, %middle.block ], [ %add, %for.body6 ]
%max.0.lcssa = phi i32 [ -9999999, %for.cond3.preheader ], [ -9999999, %entry ], [ %13, %middle.block ], [ %spec.select, %for.body6 ]
%min.0.lcssa = phi i32 [ 99999999, %for.cond3.preheader ], [ 99999999, %entry ], [ %14, %middle.block ], [ %min.1, %for.body6 ]
%call26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 40000, ptr nonnull %a) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4
ret i32 0
for.body6: ; preds = %for.body6.preheader65, %for.body6
%indvars.iv51 = phi i64 [ %indvars.iv.next52, %for.body6 ], [ %indvars.iv51.ph, %for.body6.preheader65 ]
%min.044 = phi i32 [ %min.1, %for.body6 ], [ %min.044.ph, %for.body6.preheader65 ]
%max.043 = phi i32 [ %spec.select, %for.body6 ], [ %max.043.ph, %for.body6.preheader65 ]
%sum.042 = phi i64 [ %add, %for.body6 ], [ %sum.042.ph, %for.body6.preheader65 ]
%arrayidx8 = getelementptr inbounds [10000 x i32], ptr %a, i64 0, i64 %indvars.iv51
%17 = load i32, ptr %arrayidx8, align 4, !tbaa !5
%conv = sext i32 %17 to i64
%add = add nsw i64 %sum.042, %conv
%spec.select = call i32 @llvm.smax.i32(i32 %17, i32 %max.043)
%min.1 = call i32 @llvm.smin.i32(i32 %17, i32 %min.044)
%indvars.iv.next52 = add nuw nsw i64 %indvars.iv51, 1
%exitcond.not = icmp eq i64 %indvars.iv.next52, %wide.trip.count
br i1 %exitcond.not, label %for.cond.cleanup5, label %for.body6, !llvm.loop !14
}
; 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
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i32> @llvm.smax.v2i32(<2 x i32>, <2 x i32>) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i32> @llvm.smin.v2i32(<2 x i32>, <2 x i32>) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.smin.v2i32(<2 x i32>) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.smax.v2i32(<2 x i32>) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x 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 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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10, !12, !11}
|
#include <stdio.h>
int main(int argc, const char * argv[]) {
int i, n;
int min, max;
long long sum = 0;
scanf("%d",&n);
int num[n];
for(i=0;i<n;i++){
scanf("%d", &num[i]);
}
min = num[0];
max = num[0];
sum += num[0];
for(i=1;i<n;i++){
if(min > num[i]){
min = num[i];
}
if(max < num[i]){
max = num[i];
}
sum += num[i];
}
printf("%d %d %lld\n", min, max, sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174359/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174359/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 %lld\0A\00", align 1
; 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) #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
%cmp45 = icmp sgt i32 %3, 0
call void @llvm.assume(i1 %cmp45)
br label %for.body
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
%.pre = load i32, ptr %vla, align 16, !tbaa !5
%conv = sext i32 %.pre to i64
%cmp647 = icmp sgt i32 %4, 1
br i1 %cmp647, label %for.body8.preheader, label %for.end29
for.body8.preheader: ; preds = %for.end
%wide.trip.count = zext i32 %4 to i64
%6 = add nsw i64 %wide.trip.count, -1
%min.iters.check = icmp ult i32 %4, 5
br i1 %min.iters.check, label %for.body8.preheader74, label %vector.ph
vector.ph: ; preds = %for.body8.preheader
%n.vec = and i64 %6, -4
%ind.end = or i64 %n.vec, 1
%7 = insertelement <2 x i64> <i64 poison, i64 0>, i64 %conv, i64 0
%minmax.ident.splatinsert = insertelement <2 x i32> poison, i32 %.pre, i64 0
%minmax.ident.splat = shufflevector <2 x i32> %minmax.ident.splatinsert, <2 x i32> poison, <2 x i32> zeroinitializer
%minmax.ident.splatinsert68 = insertelement <2 x i32> poison, i32 %.pre, i64 0
%minmax.ident.splat69 = shufflevector <2 x i32> %minmax.ident.splatinsert68, <2 x i32> 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 i64> [ %7, %vector.ph ], [ %16, %vector.body ]
%vec.phi63 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %17, %vector.body ]
%vec.phi64 = phi <2 x i32> [ %minmax.ident.splat, %vector.ph ], [ %12, %vector.body ]
%vec.phi65 = phi <2 x i32> [ %minmax.ident.splat, %vector.ph ], [ %13, %vector.body ]
%vec.phi66 = phi <2 x i32> [ %minmax.ident.splat69, %vector.ph ], [ %10, %vector.body ]
%vec.phi67 = phi <2 x i32> [ %minmax.ident.splat69, %vector.ph ], [ %11, %vector.body ]
%offset.idx = or i64 %index, 1
%8 = getelementptr inbounds i32, ptr %vla, i64 %offset.idx
%wide.load = load <2 x i32>, ptr %8, align 4, !tbaa !5
%9 = getelementptr inbounds i32, ptr %8, i64 2
%wide.load70 = load <2 x i32>, ptr %9, align 4, !tbaa !5
%10 = call <2 x i32> @llvm.smin.v2i32(<2 x i32> %vec.phi66, <2 x i32> %wide.load)
%11 = call <2 x i32> @llvm.smin.v2i32(<2 x i32> %vec.phi67, <2 x i32> %wide.load70)
%12 = call <2 x i32> @llvm.smax.v2i32(<2 x i32> %vec.phi64, <2 x i32> %wide.load)
%13 = call <2 x i32> @llvm.smax.v2i32(<2 x i32> %vec.phi65, <2 x i32> %wide.load70)
%14 = sext <2 x i32> %wide.load to <2 x i64>
%15 = sext <2 x i32> %wide.load70 to <2 x i64>
%16 = add <2 x i64> %vec.phi, %14
%17 = add <2 x i64> %vec.phi63, %15
%index.next = add nuw i64 %index, 4
%18 = icmp eq i64 %index.next, %n.vec
br i1 %18, label %middle.block, label %vector.body, !llvm.loop !11
middle.block: ; preds = %vector.body
%rdx.minmax72 = call <2 x i32> @llvm.smin.v2i32(<2 x i32> %10, <2 x i32> %11)
%19 = call i32 @llvm.vector.reduce.smin.v2i32(<2 x i32> %rdx.minmax72)
%rdx.minmax = call <2 x i32> @llvm.smax.v2i32(<2 x i32> %12, <2 x i32> %13)
%20 = call i32 @llvm.vector.reduce.smax.v2i32(<2 x i32> %rdx.minmax)
%bin.rdx = add <2 x i64> %17, %16
%21 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
%cmp.n = icmp eq i64 %6, %n.vec
br i1 %cmp.n, label %for.end29, label %for.body8.preheader74
for.body8.preheader74: ; preds = %for.body8.preheader, %middle.block
%indvars.iv57.ph = phi i64 [ 1, %for.body8.preheader ], [ %ind.end, %middle.block ]
%sum.050.ph = phi i64 [ %conv, %for.body8.preheader ], [ %21, %middle.block ]
%max.049.ph = phi i32 [ %.pre, %for.body8.preheader ], [ %20, %middle.block ]
%min.048.ph = phi i32 [ %.pre, %for.body8.preheader ], [ %19, %middle.block ]
br label %for.body8
for.body8: ; preds = %for.body8.preheader74, %for.body8
%indvars.iv57 = phi i64 [ %indvars.iv.next58, %for.body8 ], [ %indvars.iv57.ph, %for.body8.preheader74 ]
%sum.050 = phi i64 [ %add26, %for.body8 ], [ %sum.050.ph, %for.body8.preheader74 ]
%max.049 = phi i32 [ %max.1, %for.body8 ], [ %max.049.ph, %for.body8.preheader74 ]
%min.048 = phi i32 [ %spec.select, %for.body8 ], [ %min.048.ph, %for.body8.preheader74 ]
%arrayidx10 = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv57
%22 = load i32, ptr %arrayidx10, align 4, !tbaa !5
%spec.select = call i32 @llvm.smin.i32(i32 %min.048, i32 %22)
%max.1 = call i32 @llvm.smax.i32(i32 %max.049, i32 %22)
%conv25 = sext i32 %22 to i64
%add26 = add nsw i64 %sum.050, %conv25
%indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
%exitcond.not = icmp eq i64 %indvars.iv.next58, %wide.trip.count
br i1 %exitcond.not, label %for.end29, label %for.body8, !llvm.loop !14
for.end29: ; preds = %for.body8, %middle.block, %for.end
%min.0.lcssa = phi i32 [ %.pre, %for.end ], [ %19, %middle.block ], [ %spec.select, %for.body8 ]
%max.0.lcssa = phi i32 [ %.pre, %for.end ], [ %20, %middle.block ], [ %max.1, %for.body8 ]
%sum.0.lcssa = phi i64 [ %conv, %for.end ], [ %21, %middle.block ], [ %add26, %for.body8 ]
%call30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.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) #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
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #5
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i32> @llvm.smin.v2i32(<2 x i32>, <2 x i32>) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i32> @llvm.smax.v2i32(<2 x i32>, <2 x i32>) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.smax.v2i32(<2 x i32>) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.smin.v2i32(<2 x i32>) #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 nocallback nofree nosync nounwind willreturn }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
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}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !10, !13, !12}
|
#include <stdio.h>
int main(void)
{
int i, n, m, min = 1000000, max = -1000000;
long long int sum = 0;
scanf("%d", &n);
for (i = 0; i < n; i++)
{
scanf("%d", &m);
if (m < min)
{
min = m;
} if (m > max)
{
max = m;
}
sum += m;
}
printf("%d %d %lld\n", min, max, sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174401/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174401/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 %lld\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) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp12 = icmp sgt i32 %0, 0
br i1 %cmp12, label %for.body, label %for.end
for.body: ; preds = %entry, %for.body
%sum.016 = phi i64 [ %add, %for.body ], [ 0, %entry ]
%max.015 = phi i32 [ %max.1, %for.body ], [ -1000000, %entry ]
%min.014 = phi i32 [ %spec.select, %for.body ], [ 1000000, %entry ]
%i.013 = phi i32 [ %inc, %for.body ], [ 0, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %m)
%1 = load i32, ptr %m, align 4, !tbaa !5
%spec.select = call i32 @llvm.smin.i32(i32 %1, i32 %min.014)
%max.1 = call i32 @llvm.smax.i32(i32 %1, i32 %max.015)
%conv = sext i32 %1 to i64
%add = add nsw i64 %sum.016, %conv
%inc = add nuw nsw i32 %i.013, 1
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %2
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body, %entry
%min.0.lcssa = phi i32 [ 1000000, %entry ], [ %spec.select, %for.body ]
%max.0.lcssa = phi i32 [ -1000000, %entry ], [ %max.1, %for.body ]
%sum.0.lcssa = phi i64 [ 0, %entry ], [ %add, %for.body ]
%call6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
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: 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
; 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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
int main(void){
int n;
int a;
int min=11111111,max=-1111111;
long long sum=0;
scanf("%d",&n);
for(int i = 0; i < n; i++)
{
scanf("%d",&a);
sum+=a;
if(min>a){
min=a;
}
if(max<a){
max=a;
}
}
printf("%d %d %lld\n",min,max,sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174445/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174445/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 %lld\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
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #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 %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp14 = icmp sgt i32 %0, 0
br i1 %cmp14, label %for.body, label %for.cond.cleanup
for.cond.cleanup: ; preds = %for.body, %entry
%min.0.lcssa = phi i32 [ 11111111, %entry ], [ %spec.select, %for.body ]
%max.0.lcssa = phi i32 [ -1111111, %entry ], [ %max.1, %for.body ]
%sum.0.lcssa = phi i64 [ 0, %entry ], [ %add, %for.body ]
%call8 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.0.lcssa, i32 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4
ret i32 0
for.body: ; preds = %entry, %for.body
%i.018 = phi i32 [ %inc, %for.body ], [ 0, %entry ]
%sum.017 = phi i64 [ %add, %for.body ], [ 0, %entry ]
%max.016 = phi i32 [ %max.1, %for.body ], [ -1111111, %entry ]
%min.015 = phi i32 [ %spec.select, %for.body ], [ 11111111, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%1 = load i32, ptr %a, align 4, !tbaa !5
%conv = sext i32 %1 to i64
%add = add nsw i64 %sum.017, %conv
%spec.select = call i32 @llvm.smin.i32(i32 %min.015, i32 %1)
%max.1 = call i32 @llvm.smax.i32(i32 %max.016, i32 %1)
%inc = add nuw nsw i32 %i.018, 1
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %2
br i1 %cmp, label %for.body, label %for.cond.cleanup, !llvm.loop !9
}
; 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
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3
; 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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
int main(void) {
int n, i;
long long a, sum, max, min;
sum = 0;
max = -1000000;
min = 1000000;
scanf ( "%d", &n );
for ( i = 1; i <= n; i++ ) {
scanf ( "%lld", &a );
sum += a;
if( min > a) min = a;
if( max < a ) max = a;
}
printf ( "%lld %lld %lld\n", min, max, sum );
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174489/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174489/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"%lld\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"%lld %lld %lld\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 i64, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %a) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp.not12 = icmp slt i32 %0, 1
br i1 %cmp.not12, label %for.end, label %for.body
for.body: ; preds = %entry, %for.body
%min.016 = phi i64 [ %spec.select, %for.body ], [ 1000000, %entry ]
%max.015 = phi i64 [ %max.1, %for.body ], [ -1000000, %entry ]
%sum.014 = phi i64 [ %add, %for.body ], [ 0, %entry ]
%i.013 = phi i32 [ %inc, %for.body ], [ 1, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %a)
%1 = load i64, ptr %a, align 8, !tbaa !9
%add = add nsw i64 %1, %sum.014
%spec.select = call i64 @llvm.smin.i64(i64 %min.016, i64 %1)
%max.1 = call i64 @llvm.smax.i64(i64 %max.015, i64 %1)
%inc = add nuw nsw i32 %i.013, 1
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp.not.not = icmp slt i32 %i.013, %2
br i1 %cmp.not.not, label %for.body, label %for.end, !llvm.loop !11
for.end: ; preds = %for.body, %entry
%sum.0.lcssa = phi i64 [ 0, %entry ], [ %add, %for.body ]
%max.0.lcssa = phi i64 [ -1000000, %entry ], [ %max.1, %for.body ]
%min.0.lcssa = phi i64 [ 1000000, %entry ], [ %spec.select, %for.body ]
%call6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %min.0.lcssa, i64 noundef %max.0.lcssa, i64 noundef %sum.0.lcssa)
call void @llvm.lifetime.end.p0(i64 8, 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 i64 @llvm.smin.i64(i64, i64) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, 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 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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
|
#include<stdio.h>
int main()
{
int a, n, min, max;
long long sum;
scanf("%d",&n);
for(int i=1;i<=n;i++){
scanf("%d",&a);
while(a < -1000000 || a > 1000000){
scanf("%d",&a);
}
if(i==1){
min = max = a;
sum = a;
}else{
if(max < a){
max = a;
}else if(min > a){
min = a;
}
sum += a;
}
}
printf("%d %d %lld\n",min,max,sum);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174531/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174531/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 %lld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
%n = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #5
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
%cmp.not22 = icmp sgt i32 %0, 0
call void @llvm.assume(i1 %cmp.not22)
br label %for.body
for.cond.cleanup: ; preds = %for.inc
%call16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %min.2, i32 noundef %max.2, i64 noundef %sum.1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #5
ret i32 0
for.body: ; preds = %entry, %for.inc
%i.026 = phi i32 [ %inc, %for.inc ], [ 1, %entry ]
%sum.025 = phi i64 [ %sum.1, %for.inc ], [ undef, %entry ]
%max.024 = phi i32 [ %max.2, %for.inc ], [ undef, %entry ]
%min.023 = phi i32 [ %min.2, %for.inc ], [ undef, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%1 = load i32, ptr %a, align 4
%2 = add i32 %1, -1000001
%3 = icmp ult i32 %2, -2000001
br i1 %3, label %while.body, label %while.end
while.body: ; preds = %for.body, %while.body
%call4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%4 = load i32, ptr %a, align 4
%5 = add i32 %4, -1000001
%6 = icmp ult i32 %5, -2000001
br i1 %6, label %while.body, label %while.end, !llvm.loop !9
while.end: ; preds = %while.body, %for.body
%.lcssa = phi i32 [ %1, %for.body ], [ %4, %while.body ]
%cmp5 = icmp eq i32 %i.026, 1
br i1 %cmp5, label %if.then, label %if.else
if.then: ; preds = %while.end
%conv = sext i32 %.lcssa to i64
br label %for.inc
if.else: ; preds = %while.end
%cmp6 = icmp slt i32 %max.024, %.lcssa
%spec.select = call i32 @llvm.smin.i32(i32 %min.023, i32 %.lcssa)
%min.1 = select i1 %cmp6, i32 %min.023, i32 %spec.select
%max.1 = call i32 @llvm.smax.i32(i32 %max.024, i32 %.lcssa)
%conv14 = sext i32 %.lcssa to i64
%add = add nsw i64 %sum.025, %conv14
br label %for.inc
for.inc: ; preds = %if.then, %if.else
%min.2 = phi i32 [ %.lcssa, %if.then ], [ %min.1, %if.else ]
%max.2 = phi i32 [ %.lcssa, %if.then ], [ %max.1, %if.else ]
%sum.1 = phi i64 [ %conv, %if.then ], [ %add, %if.else ]
%inc = add nuw nsw i32 %i.026, 1
%7 = load i32, ptr %n, align 4, !tbaa !5
%cmp.not.not = icmp slt i32 %i.026, %7
br i1 %cmp.not.not, label %for.body, label %for.cond.cleanup, !llvm.loop !11
}
; 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
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: 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}
|
#include <stdio.h>
#include <stdlib.h>
int main()
{
char alphabet[26];
int a = 97;
for(size_t i = 0; i < 26; i++, a++)
{
alphabet[i] = a;
}
size_t n = 0, k = 0;
scanf("%lu%lu", &n, &k);
char *password = (char*)calloc(n+1, sizeof(char));
size_t q = 0;
for(size_t i = 0; i < n; i++, q++)
{
if(q >= k)
{
q = 0;
}
password[i] = alphabet[q];
}
password[n] = '\0';
fputs(password, stdout);
free(password);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17464/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17464/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"%lu%lu\00", align 1
@stdout = external local_unnamed_addr global ptr, align 8
; Function Attrs: nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%alphabet = alloca [26 x i8], align 16
%n = alloca i64, align 8
%k = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 26, ptr nonnull %alphabet) #5
store <16 x i8> <i8 97, i8 98, i8 99, i8 100, i8 101, i8 102, i8 103, i8 104, i8 105, i8 106, i8 107, i8 108, i8 109, i8 110, i8 111, i8 112>, ptr %alphabet, align 16, !tbaa !5
%arrayidx.16 = getelementptr inbounds [26 x i8], ptr %alphabet, i64 0, i64 16
store <8 x i8> <i8 113, i8 114, i8 115, i8 116, i8 117, i8 118, i8 119, i8 120>, ptr %arrayidx.16, align 16, !tbaa !5
%arrayidx.24 = getelementptr inbounds [26 x i8], ptr %alphabet, i64 0, i64 24
store i8 121, ptr %arrayidx.24, align 8, !tbaa !5
%arrayidx.25 = getelementptr inbounds [26 x i8], ptr %alphabet, i64 0, i64 25
store i8 122, ptr %arrayidx.25, align 1, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %n) #5
store i64 0, ptr %n, align 8, !tbaa !8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %k) #5
store i64 0, ptr %k, align 8, !tbaa !8
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %k)
%0 = load i64, ptr %n, align 8, !tbaa !8
%add = add i64 %0, 1
%call2 = call noalias ptr @calloc(i64 noundef %add, i64 noundef 1) #6
%cmp531.not = icmp eq i64 %0, 0
br i1 %cmp531.not, label %for.cond.cleanup7, label %for.body8.lr.ph
for.body8.lr.ph: ; preds = %entry
%1 = load i64, ptr %k, align 8, !tbaa !8
%xtraiter = and i64 %0, 1
%2 = icmp eq i64 %0, 1
br i1 %2, label %for.cond.cleanup7.loopexit.unr-lcssa, label %for.body8.lr.ph.new
for.body8.lr.ph.new: ; preds = %for.body8.lr.ph
%unroll_iter = and i64 %0, -2
br label %for.body8
for.cond.cleanup7.loopexit.unr-lcssa: ; preds = %for.body8, %for.body8.lr.ph
%i3.033.unr = phi i64 [ 0, %for.body8.lr.ph ], [ %inc14.1, %for.body8 ]
%q.032.unr = phi i64 [ 0, %for.body8.lr.ph ], [ %inc15.1, %for.body8 ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.cond.cleanup7, label %for.body8.epil
for.body8.epil: ; preds = %for.cond.cleanup7.loopexit.unr-lcssa
%cmp9.not.epil = icmp ult i64 %q.032.unr, %1
%spec.store.select.epil = select i1 %cmp9.not.epil, i64 %q.032.unr, i64 0
%arrayidx11.epil = getelementptr inbounds [26 x i8], ptr %alphabet, i64 0, i64 %spec.store.select.epil
%3 = load i8, ptr %arrayidx11.epil, align 1, !tbaa !5
%arrayidx12.epil = getelementptr inbounds i8, ptr %call2, i64 %i3.033.unr
store i8 %3, ptr %arrayidx12.epil, align 1, !tbaa !5
br label %for.cond.cleanup7
for.cond.cleanup7: ; preds = %for.body8.epil, %for.cond.cleanup7.loopexit.unr-lcssa, %entry
%arrayidx17 = getelementptr inbounds i8, ptr %call2, i64 %0
store i8 0, ptr %arrayidx17, align 1, !tbaa !5
%4 = load ptr, ptr @stdout, align 8, !tbaa !10
%call18 = call i32 @fputs(ptr noundef %call2, ptr noundef %4)
call void @free(ptr noundef %call2) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %k) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %n) #5
call void @llvm.lifetime.end.p0(i64 26, ptr nonnull %alphabet) #5
ret i32 0
for.body8: ; preds = %for.body8, %for.body8.lr.ph.new
%i3.033 = phi i64 [ 0, %for.body8.lr.ph.new ], [ %inc14.1, %for.body8 ]
%q.032 = phi i64 [ 0, %for.body8.lr.ph.new ], [ %inc15.1, %for.body8 ]
%niter = phi i64 [ 0, %for.body8.lr.ph.new ], [ %niter.next.1, %for.body8 ]
%cmp9.not = icmp ult i64 %q.032, %1
%spec.store.select = select i1 %cmp9.not, i64 %q.032, i64 0
%arrayidx11 = getelementptr inbounds [26 x i8], ptr %alphabet, i64 0, i64 %spec.store.select
%5 = load i8, ptr %arrayidx11, align 1, !tbaa !5
%arrayidx12 = getelementptr inbounds i8, ptr %call2, i64 %i3.033
store i8 %5, ptr %arrayidx12, align 1, !tbaa !5
%inc14 = or i64 %i3.033, 1
%inc15 = add i64 %spec.store.select, 1
%cmp9.not.1 = icmp ult i64 %inc15, %1
%spec.store.select.1 = select i1 %cmp9.not.1, i64 %inc15, i64 0
%arrayidx11.1 = getelementptr inbounds [26 x i8], ptr %alphabet, i64 0, i64 %spec.store.select.1
%6 = load i8, ptr %arrayidx11.1, align 1, !tbaa !5
%arrayidx12.1 = getelementptr inbounds i8, ptr %call2, i64 %inc14
store i8 %6, ptr %arrayidx12.1, align 1, !tbaa !5
%inc14.1 = add nuw i64 %i3.033, 2
%inc15.1 = add i64 %spec.store.select.1, 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 %for.cond.cleanup7.loopexit.unr-lcssa, label %for.body8, !llvm.loop !12
}
; 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
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @fputs(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4
attributes #0 = { 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 allockind("alloc,zeroed") allocsize(0,1) 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 #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0,1) }
!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 = !{!9, !9, i64 0}
!9 = !{!"long", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
|
#include<stdio.h>
int main(void)
{
int i,a,b;
char c[100];
while(1){
a = 0; b = 0; i = 0;
scanf("%s",c);
if(c[0] == '0')
break;
while(1){
if(c[i+1] == 'A')
a++;
else if(c[i+1] == 'B')
b++;
else
break;
i++;
}
if(a > b)
a++;
else
b++;
printf("%d %d\n",a,b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174683/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174683/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 [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:
%c = alloca [100 x i8], align 16
call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %c) #3
%call38 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %c)
%0 = load i8, ptr %c, align 16, !tbaa !5
%cmp39 = icmp eq i8 %0, 48
br i1 %cmp39, label %while.end29, label %while.cond2.outer
while.cond2.outer: ; preds = %entry, %while.cond2.outer.backedge
%indvars.iv.ph = phi i64 [ %indvars.iv.ph.be, %while.cond2.outer.backedge ], [ 0, %entry ]
%a.0.ph = phi i32 [ %a.0.ph.be, %while.cond2.outer.backedge ], [ 0, %entry ]
%b.0.ph = phi i32 [ %b.0.ph.be, %while.cond2.outer.backedge ], [ 0, %entry ]
br label %while.cond2
while.cond2: ; preds = %while.cond2.outer, %if.then15
%indvars.iv = phi i64 [ %indvars.iv.next, %if.then15 ], [ %indvars.iv.ph, %while.cond2.outer ]
%b.0 = phi i32 [ %inc16, %if.then15 ], [ %b.0.ph, %while.cond2.outer ]
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%arrayidx4 = getelementptr inbounds [100 x i8], ptr %c, i64 0, i64 %indvars.iv.next
%1 = load i8, ptr %arrayidx4, align 1, !tbaa !5
switch i8 %1, label %while.end [
i8 65, label %if.then8
i8 66, label %if.then15
]
if.then8: ; preds = %while.cond2
%inc = add nsw i32 %a.0.ph, 1
br label %while.cond2.outer.backedge
if.then15: ; preds = %while.cond2
%inc16 = add nsw i32 %b.0, 1
br label %while.cond2
while.end: ; preds = %while.cond2
%cmp21 = icmp sgt i32 %a.0.ph, %b.0
%inc24 = zext i1 %cmp21 to i32
%a.2 = add nsw i32 %a.0.ph, %inc24
%not.cmp21 = xor i1 %cmp21, true
%inc26 = zext i1 %not.cmp21 to i32
%b.2 = add nsw i32 %b.0, %inc26
%call28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %a.2, i32 noundef %b.2)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %c)
%2 = load i8, ptr %c, align 16, !tbaa !5
%cmp = icmp eq i8 %2, 48
br i1 %cmp, label %while.end29, label %while.cond2.outer.backedge
while.cond2.outer.backedge: ; preds = %while.end, %if.then8
%indvars.iv.ph.be = phi i64 [ %indvars.iv.next, %if.then8 ], [ 0, %while.end ]
%a.0.ph.be = phi i32 [ %inc, %if.then8 ], [ 0, %while.end ]
%b.0.ph.be = phi i32 [ %b.0, %if.then8 ], [ 0, %while.end ]
br label %while.cond2.outer
while.end29: ; preds = %while.end, %entry
call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %c) #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>
#define ll long long
// void swap(ll *a,ll *b){
// ll tmp=*a;
// *a=*b;
// *b=tmp;
// }
ll gcd(ll a,ll b){
// if(a<b) swap(&a,&b);
if(b==0) return a;
return gcd(b,a%b);
}
// ll gcd(ll a, ll b)
// {
// ll r = a % b;
// while (r > 0){
// a = b;
// b = r;
// r = a % b;
// }
// return b;
// }
int main(){
ll n,m,i,a[100005];
scanf("%lld %lld",&n,&m);
for(i=0;i<n;i++){
scanf("%lld", &a[i]);
a[i] /= 2;
}
ll l=a[0];
for(i=0;i<n;i++) l = l/gcd(l,a[i])*a[i];
for(i=0; i<n; i++){
if(l/a[i]%2==0){
printf("0\n");
return 0;
}
}
printf("%lld\n",(m/l+1)/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174740/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174740/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 [10 x i8] c"%lld %lld\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
@str = private unnamed_addr constant [2 x i8] c"0\00", align 1
; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable
define dso_local i64 @gcd(i64 noundef %a, i64 noundef %b) local_unnamed_addr #0 {
entry:
%cmp4 = icmp eq i64 %b, 0
br i1 %cmp4, label %return, label %if.end
if.end: ; preds = %entry, %if.end
%b.tr6 = phi i64 [ %rem, %if.end ], [ %b, %entry ]
%a.tr5 = phi i64 [ %b.tr6, %if.end ], [ %a, %entry ]
%rem = srem i64 %a.tr5, %b.tr6
%cmp = icmp eq i64 %rem, 0
br i1 %cmp, label %return, label %if.end
return: ; preds = %if.end, %entry
%a.tr.lcssa = phi i64 [ %a, %entry ], [ %b.tr6, %if.end ]
ret i64 %a.tr.lcssa
}
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #1 {
entry:
%n = alloca i64, align 8
%m = alloca i64, align 8
%a = alloca [100005 x i64], align 16
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %n) #5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %m) #5
call void @llvm.lifetime.start.p0(i64 800040, ptr nonnull %a) #5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %m)
%0 = load i64, ptr %n, align 8, !tbaa !5
%cmp44 = icmp sgt i64 %0, 0
br i1 %cmp44, label %for.body, label %for.end23
for.body: ; preds = %entry, %for.body
%i.045 = phi i64 [ %inc, %for.body ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [100005 x i64], ptr %a, i64 0, i64 %i.045
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx)
%1 = load i64, ptr %arrayidx, align 8, !tbaa !5
%div = sdiv i64 %1, 2
store i64 %div, ptr %arrayidx, align 8, !tbaa !5
%inc = add nuw nsw i64 %i.045, 1
%2 = load i64, ptr %n, align 8, !tbaa !5
%cmp = icmp slt i64 %inc, %2
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body
%.pre = load i64, ptr %a, align 16, !tbaa !5
%cmp546 = icmp sgt i64 %2, 0
br i1 %cmp546, label %for.body6, label %for.end23
for.cond14.preheader: ; preds = %gcd.exit
br i1 %cmp546, label %for.body16, label %for.end23
for.body6: ; preds = %for.end, %gcd.exit
%l.048 = phi i64 [ %mul, %gcd.exit ], [ %.pre, %for.end ]
%i.147 = phi i64 [ %inc12, %gcd.exit ], [ 0, %for.end ]
%arrayidx7 = getelementptr inbounds [100005 x i64], ptr %a, i64 0, i64 %i.147
%3 = load i64, ptr %arrayidx7, align 8, !tbaa !5
%cmp4.i = icmp eq i64 %3, 0
br i1 %cmp4.i, label %gcd.exit, label %if.end.i
if.end.i: ; preds = %for.body6, %if.end.i
%b.tr6.i = phi i64 [ %rem.i, %if.end.i ], [ %3, %for.body6 ]
%a.tr5.i = phi i64 [ %b.tr6.i, %if.end.i ], [ %l.048, %for.body6 ]
%rem.i = srem i64 %a.tr5.i, %b.tr6.i
%cmp.i = icmp eq i64 %rem.i, 0
br i1 %cmp.i, label %gcd.exit, label %if.end.i
gcd.exit: ; preds = %if.end.i, %for.body6
%a.tr.lcssa.i = phi i64 [ %l.048, %for.body6 ], [ %b.tr6.i, %if.end.i ]
%div9 = sdiv i64 %l.048, %a.tr.lcssa.i
%mul = mul nsw i64 %div9, %3
%inc12 = add nuw nsw i64 %i.147, 1
%exitcond.not = icmp eq i64 %inc12, %2
br i1 %exitcond.not, label %for.cond14.preheader, label %for.body6, !llvm.loop !11
for.cond14: ; preds = %for.body16
%inc22 = add nuw nsw i64 %i.251, 1
%exitcond53.not = icmp eq i64 %inc22, %2
br i1 %exitcond53.not, label %for.end23, label %for.body16, !llvm.loop !12
for.body16: ; preds = %for.cond14.preheader, %for.cond14
%i.251 = phi i64 [ %inc22, %for.cond14 ], [ 0, %for.cond14.preheader ]
%arrayidx17 = getelementptr inbounds [100005 x i64], ptr %a, i64 0, i64 %i.251
%4 = load i64, ptr %arrayidx17, align 8, !tbaa !5
%div18 = sdiv i64 %mul, %4
%5 = and i64 %div18, 1
%cmp19 = icmp eq i64 %5, 0
br i1 %cmp19, label %if.then, label %for.cond14
if.then: ; preds = %for.body16
%puts = call i32 @puts(ptr nonnull dereferenceable(1) @str)
br label %cleanup
for.end23: ; preds = %for.cond14, %entry, %for.end, %for.cond14.preheader
%l.0.lcssa61 = phi i64 [ %mul, %for.cond14.preheader ], [ %.pre, %for.end ], [ undef, %entry ], [ %mul, %for.cond14 ]
%6 = load i64, ptr %m, align 8, !tbaa !5
%div24 = sdiv i64 %6, %l.0.lcssa61
%add = add nsw i64 %div24, 1
%div25 = sdiv i64 %add, 2
%call26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %div25)
br label %cleanup
cleanup: ; preds = %for.end23, %if.then
call void @llvm.lifetime.end.p0(i64 800040, ptr nonnull %a) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %m) #5
call void @llvm.lifetime.end.p0(i64 8, 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) #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
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #4
attributes #0 = { 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 #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 = { nofree nounwind }
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 = !{!"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}
|
/*
* ID: ITP1_10_C
* Problem: Standard Deviation
*/
#include <stdio.h>
#include <math.h>
int main(void)
{
double x, sum, sumx2, sd;
int n, i;
while (1) {
scanf("%d", &n);
if (n == 0)
return 0;
sum = sumx2 = 0.0;
for (i = 0; i < n; i++) {
scanf("%lf", &x);
sum += x;
sumx2 += x * x;
}
sd = sqrt((sumx2 - sum * sum / n) / n);
printf("%.8f\n", sd);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174784/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174784/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 [6 x i8] c"%.8f\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca double, align 8
%n = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %x) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #5
%call17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp18 = icmp eq i32 %0, 0
br i1 %cmp18, label %if.then, label %for.cond.preheader
for.cond.preheader: ; preds = %entry, %for.end
%1 = phi i32 [ %5, %for.end ], [ %0, %entry ]
%cmp111 = icmp sgt i32 %1, 0
br i1 %cmp111, label %for.body, label %for.end
if.then: ; preds = %for.end, %entry
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %x) #5
ret i32 0
for.body: ; preds = %for.cond.preheader, %for.body
%i.014 = phi i32 [ %inc, %for.body ], [ 0, %for.cond.preheader ]
%sum.013 = phi double [ %add, %for.body ], [ 0.000000e+00, %for.cond.preheader ]
%sumx2.012 = phi double [ %3, %for.body ], [ 0.000000e+00, %for.cond.preheader ]
%call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %x)
%2 = load double, ptr %x, align 8, !tbaa !9
%add = fadd double %sum.013, %2
%3 = call double @llvm.fmuladd.f64(double %2, double %2, double %sumx2.012)
%inc = add nuw nsw i32 %i.014, 1
%4 = load i32, ptr %n, align 4, !tbaa !5
%cmp1 = icmp slt i32 %inc, %4
br i1 %cmp1, label %for.body, label %for.end, !llvm.loop !11
for.end: ; preds = %for.body, %for.cond.preheader
%sumx2.0.lcssa = phi double [ 0.000000e+00, %for.cond.preheader ], [ %3, %for.body ]
%sum.0.lcssa = phi double [ 0.000000e+00, %for.cond.preheader ], [ %add, %for.body ]
%.lcssa = phi i32 [ %1, %for.cond.preheader ], [ %4, %for.body ]
%mul = fmul double %sum.0.lcssa, %sum.0.lcssa
%conv = sitofp i32 %.lcssa to double
%div = fdiv double %mul, %conv
%sub = fsub double %sumx2.0.lcssa, %div
%div4 = fdiv double %sub, %conv
%call5 = call double @sqrt(double noundef %div4) #5
%call6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %call5)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%5 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp eq i32 %5, 0
br i1 %cmp, label %if.then, label %for.cond.preheader
}
; 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 speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 #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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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"}
|
#include <stdio.h>
#include <math.h>
double stddev(int s[],size_t n){
int i,v;
double sum=0,sqsum=0;
for(i=0;i<n;i++){
v = s[i];
sum += v;
sqsum += v*v;
}
return sqrt(sqsum/n - (sum/n)*(sum/n));
}
int main(){
int i,n,s[1000];
while(1){
scanf("%d",&n);
if(!n)break;
for(i=0;i<n;i++){
scanf("%d",&s[i]);
}
printf("%f\n",stddev(s,n));
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174827/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174827/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 memory(write, argmem: readwrite) uwtable
define dso_local double @stddev(ptr nocapture noundef readonly %s, i64 noundef %n) local_unnamed_addr #0 {
entry:
%cmp21.not = icmp eq i64 %n, 0
br i1 %cmp21.not, label %for.end, label %for.body.preheader
for.body.preheader: ; preds = %entry
%xtraiter = and i64 %n, 1
%0 = icmp eq i64 %n, 1
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 %n, -2
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 ]
%sqsum.024 = phi double [ 0.000000e+00, %for.body.preheader.new ], [ %add4.1, %for.body ]
%sum.023 = phi double [ 0.000000e+00, %for.body.preheader.new ], [ %add.1, %for.body ]
%niter = phi i64 [ 0, %for.body.preheader.new ], [ %niter.next.1, %for.body ]
%arrayidx = getelementptr inbounds i32, ptr %s, i64 %indvars.iv
%1 = load i32, ptr %arrayidx, align 4, !tbaa !5
%conv2 = sitofp i32 %1 to double
%add = fadd double %sum.023, %conv2
%mul = mul nsw i32 %1, %1
%conv3 = sitofp i32 %mul to double
%add4 = fadd double %sqsum.024, %conv3
%indvars.iv.next = or i64 %indvars.iv, 1
%arrayidx.1 = getelementptr inbounds i32, ptr %s, i64 %indvars.iv.next
%2 = load i32, ptr %arrayidx.1, align 4, !tbaa !5
%conv2.1 = sitofp i32 %2 to double
%add.1 = fadd double %add, %conv2.1
%mul.1 = mul nsw i32 %2, %2
%conv3.1 = sitofp i32 %mul.1 to double
%add4.1 = fadd double %add4, %conv3.1
%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.end.loopexit.unr-lcssa, label %for.body, !llvm.loop !9
for.end.loopexit.unr-lcssa: ; preds = %for.body, %for.body.preheader
%add.lcssa.ph = phi double [ undef, %for.body.preheader ], [ %add.1, %for.body ]
%add4.lcssa.ph = phi double [ undef, %for.body.preheader ], [ %add4.1, %for.body ]
%indvars.iv.unr = phi i64 [ 0, %for.body.preheader ], [ %indvars.iv.next.1, %for.body ]
%sqsum.024.unr = phi double [ 0.000000e+00, %for.body.preheader ], [ %add4.1, %for.body ]
%sum.023.unr = phi double [ 0.000000e+00, %for.body.preheader ], [ %add.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
%arrayidx.epil = getelementptr inbounds i32, ptr %s, i64 %indvars.iv.unr
%3 = load i32, ptr %arrayidx.epil, align 4, !tbaa !5
%conv2.epil = sitofp i32 %3 to double
%add.epil = fadd double %sum.023.unr, %conv2.epil
%mul.epil = mul nsw i32 %3, %3
%conv3.epil = sitofp i32 %mul.epil to double
%add4.epil = fadd double %sqsum.024.unr, %conv3.epil
br label %for.end
for.end: ; preds = %for.body.epil, %for.end.loopexit.unr-lcssa, %entry
%sum.0.lcssa = phi double [ 0.000000e+00, %entry ], [ %add.lcssa.ph, %for.end.loopexit.unr-lcssa ], [ %add.epil, %for.body.epil ]
%sqsum.0.lcssa = phi double [ 0.000000e+00, %entry ], [ %add4.lcssa.ph, %for.end.loopexit.unr-lcssa ], [ %add4.epil, %for.body.epil ]
%conv5 = uitofp i64 %n to double
%div = fdiv double %sqsum.0.lcssa, %conv5
%div7 = fdiv double %sum.0.lcssa, %conv5
%neg = fneg double %div7
%4 = tail call double @llvm.fmuladd.f64(double %neg, double %div7, double %div)
%call = tail call double @sqrt(double noundef %4) #6
ret double %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 memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 uwtable
define dso_local i32 @main() local_unnamed_addr #4 {
entry:
%n = alloca i32, align 4
%s = alloca [1000 x i32], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #6
call void @llvm.lifetime.start.p0(i64 4000, ptr nonnull %s) #6
%call8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%tobool.not9 = icmp eq i32 %0, 0
br i1 %tobool.not9, label %while.end, label %for.cond.preheader
for.cond.preheader: ; preds = %entry, %stddev.exit
%1 = phi i32 [ %9, %stddev.exit ], [ %0, %entry ]
%cmp6 = icmp sgt i32 %1, 0
br i1 %cmp6, label %for.body, label %for.end.thread
for.end.thread: ; preds = %for.cond.preheader
%.pre = sext i32 %1 to i64
br label %for.body.i.preheader
for.body: ; preds = %for.cond.preheader, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %for.cond.preheader ]
%arrayidx = getelementptr inbounds [1000 x i32], ptr %s, i64 0, 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
%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 !11
for.end: ; preds = %for.body
%cmp21.not.i = icmp eq i32 %2, 0
br i1 %cmp21.not.i, label %stddev.exit, label %for.body.i.preheader
for.body.i.preheader: ; preds = %for.end.thread, %for.end
%conv.pre-phi15 = phi i64 [ %.pre, %for.end.thread ], [ %3, %for.end ]
%xtraiter = and i64 %conv.pre-phi15, 1
%4 = icmp eq i64 %conv.pre-phi15, 1
br i1 %4, label %stddev.exit.loopexit.unr-lcssa, label %for.body.i.preheader.new
for.body.i.preheader.new: ; preds = %for.body.i.preheader
%unroll_iter = and i64 %conv.pre-phi15, -2
br label %for.body.i
for.body.i: ; preds = %for.body.i, %for.body.i.preheader.new
%indvars.iv.i = phi i64 [ 0, %for.body.i.preheader.new ], [ %indvars.iv.next.i.1, %for.body.i ]
%sqsum.024.i = phi double [ 0.000000e+00, %for.body.i.preheader.new ], [ %add4.i.1, %for.body.i ]
%sum.023.i = phi double [ 0.000000e+00, %for.body.i.preheader.new ], [ %add.i.1, %for.body.i ]
%niter = phi i64 [ 0, %for.body.i.preheader.new ], [ %niter.next.1, %for.body.i ]
%arrayidx.i = getelementptr inbounds i32, ptr %s, i64 %indvars.iv.i
%5 = load i32, ptr %arrayidx.i, align 8, !tbaa !5
%conv2.i = sitofp i32 %5 to double
%add.i = fadd double %sum.023.i, %conv2.i
%mul.i = mul nsw i32 %5, %5
%conv3.i = sitofp i32 %mul.i to double
%add4.i = fadd double %sqsum.024.i, %conv3.i
%indvars.iv.next.i = or i64 %indvars.iv.i, 1
%arrayidx.i.1 = getelementptr inbounds i32, ptr %s, i64 %indvars.iv.next.i
%6 = load i32, ptr %arrayidx.i.1, align 4, !tbaa !5
%conv2.i.1 = sitofp i32 %6 to double
%add.i.1 = fadd double %add.i, %conv2.i.1
%mul.i.1 = mul nsw i32 %6, %6
%conv3.i.1 = sitofp i32 %mul.i.1 to double
%add4.i.1 = fadd double %add4.i, %conv3.i.1
%indvars.iv.next.i.1 = add nuw nsw i64 %indvars.iv.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 %stddev.exit.loopexit.unr-lcssa, label %for.body.i, !llvm.loop !9
stddev.exit.loopexit.unr-lcssa: ; preds = %for.body.i, %for.body.i.preheader
%add.i.lcssa.ph = phi double [ undef, %for.body.i.preheader ], [ %add.i.1, %for.body.i ]
%add4.i.lcssa.ph = phi double [ undef, %for.body.i.preheader ], [ %add4.i.1, %for.body.i ]
%indvars.iv.i.unr = phi i64 [ 0, %for.body.i.preheader ], [ %indvars.iv.next.i.1, %for.body.i ]
%sqsum.024.i.unr = phi double [ 0.000000e+00, %for.body.i.preheader ], [ %add4.i.1, %for.body.i ]
%sum.023.i.unr = phi double [ 0.000000e+00, %for.body.i.preheader ], [ %add.i.1, %for.body.i ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %stddev.exit, label %for.body.i.epil
for.body.i.epil: ; preds = %stddev.exit.loopexit.unr-lcssa
%arrayidx.i.epil = getelementptr inbounds i32, ptr %s, i64 %indvars.iv.i.unr
%7 = load i32, ptr %arrayidx.i.epil, align 4, !tbaa !5
%conv2.i.epil = sitofp i32 %7 to double
%add.i.epil = fadd double %sum.023.i.unr, %conv2.i.epil
%mul.i.epil = mul nsw i32 %7, %7
%conv3.i.epil = sitofp i32 %mul.i.epil to double
%add4.i.epil = fadd double %sqsum.024.i.unr, %conv3.i.epil
br label %stddev.exit
stddev.exit: ; preds = %for.body.i.epil, %stddev.exit.loopexit.unr-lcssa, %for.end
%conv.pre-phi16 = phi i64 [ 0, %for.end ], [ %conv.pre-phi15, %stddev.exit.loopexit.unr-lcssa ], [ %conv.pre-phi15, %for.body.i.epil ]
%sum.0.lcssa.i = phi double [ 0.000000e+00, %for.end ], [ %add.i.lcssa.ph, %stddev.exit.loopexit.unr-lcssa ], [ %add.i.epil, %for.body.i.epil ]
%sqsum.0.lcssa.i = phi double [ 0.000000e+00, %for.end ], [ %add4.i.lcssa.ph, %stddev.exit.loopexit.unr-lcssa ], [ %add4.i.epil, %for.body.i.epil ]
%conv5.i = uitofp i64 %conv.pre-phi16 to double
%div.i = fdiv double %sqsum.0.lcssa.i, %conv5.i
%div7.i = fdiv double %sum.0.lcssa.i, %conv5.i
%neg.i = fneg double %div7.i
%8 = call double @llvm.fmuladd.f64(double %neg.i, double %div7.i, double %div.i)
%call.i = call double @sqrt(double noundef %8) #6
%call3 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %call.i)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%9 = load i32, ptr %n, align 4, !tbaa !5
%tobool.not = icmp eq i32 %9, 0
br i1 %tobool.not, label %while.end, label %for.cond.preheader
while.end: ; preds = %stddev.exit, %entry
call void @llvm.lifetime.end.p0(i64 4000, ptr nonnull %s) #6
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 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5
attributes #0 = { nofree nounwind memory(write, 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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"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 i,n,score[1001],sum;
double ave,sig,v;
while(1){
scanf("%d", &n );
if ( n == 0 ) break;
for ( i = 0 ; i < n ; i++ ){
scanf("%d", &score[i] );
}
sum = 0;
for ( i = 0 ; i < n ; i++ ){
sum = sum + score[i];
}
ave = 1.0 * sum / n;
sig = 0;
for ( i = 0 ; i < n ; i++ ){
sig = sig + ( score[i] - ave ) * ( score[i] - ave );
}
v = sqrt( sig / n );
printf("%.8lf\n", v );
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174885/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174885/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 [7 x i8] c"%.8lf\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%score = alloca [1001 x i32], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #6
call void @llvm.lifetime.start.p0(i64 4004, ptr nonnull %score) #6
%call54 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp55 = icmp eq i32 %0, 0
br i1 %cmp55, label %while.end, label %for.cond.preheader
for.cond.preheader: ; preds = %entry, %for.end26
%1 = phi i32 [ %22, %for.end26 ], [ %0, %entry ]
%cmp144 = icmp sgt i32 %1, 0
br i1 %cmp144, label %for.body, label %for.end10.thread
for.cond3.preheader: ; preds = %for.body
%cmp446 = icmp sgt i32 %8, 0
br i1 %cmp446, label %for.body5.preheader, label %for.end10.thread
for.body5.preheader: ; preds = %for.cond3.preheader
%wide.trip.count = zext i32 %8 to i64
%min.iters.check = icmp ult i32 %8, 8
br i1 %min.iters.check, label %for.body5.preheader82, label %vector.ph
vector.ph: ; preds = %for.body5.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 ], [ %4, %vector.body ]
%vec.phi80 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %5, %vector.body ]
%2 = getelementptr inbounds [1001 x i32], ptr %score, i64 0, i64 %index
%wide.load = load <4 x i32>, ptr %2, align 16, !tbaa !5
%3 = getelementptr inbounds i32, ptr %2, i64 4
%wide.load81 = load <4 x i32>, ptr %3, align 16, !tbaa !5
%4 = add <4 x i32> %wide.load, %vec.phi
%5 = add <4 x i32> %wide.load81, %vec.phi80
%index.next = add nuw i64 %index, 8
%6 = icmp eq i64 %index.next, %n.vec
br i1 %6, label %middle.block, label %vector.body, !llvm.loop !9
middle.block: ; preds = %vector.body
%bin.rdx = add <4 x i32> %5, %4
%7 = 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.end10, label %for.body5.preheader82
for.body5.preheader82: ; preds = %for.body5.preheader, %middle.block
%indvars.iv59.ph = phi i64 [ 0, %for.body5.preheader ], [ %n.vec, %middle.block ]
%sum.047.ph = phi i32 [ 0, %for.body5.preheader ], [ %7, %middle.block ]
br label %for.body5
for.body: ; preds = %for.cond.preheader, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %for.cond.preheader ]
%arrayidx = getelementptr inbounds [1001 x i32], ptr %score, i64 0, i64 %indvars.iv
%call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx)
%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
%cmp1 = icmp slt i64 %indvars.iv.next, %9
br i1 %cmp1, label %for.body, label %for.cond3.preheader, !llvm.loop !13
for.body5: ; preds = %for.body5.preheader82, %for.body5
%indvars.iv59 = phi i64 [ %indvars.iv.next60, %for.body5 ], [ %indvars.iv59.ph, %for.body5.preheader82 ]
%sum.047 = phi i32 [ %add, %for.body5 ], [ %sum.047.ph, %for.body5.preheader82 ]
%arrayidx7 = getelementptr inbounds [1001 x i32], ptr %score, i64 0, i64 %indvars.iv59
%10 = load i32, ptr %arrayidx7, align 4, !tbaa !5
%add = add nsw i32 %10, %sum.047
%indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
%exitcond.not = icmp eq i64 %indvars.iv.next60, %wide.trip.count
br i1 %exitcond.not, label %for.end10, label %for.body5, !llvm.loop !14
for.end10.thread: ; preds = %for.cond3.preheader, %for.cond.preheader
%.lcssa69.ph = phi i32 [ %8, %for.cond3.preheader ], [ %1, %for.cond.preheader ]
%conv1175 = sitofp i32 %.lcssa69.ph to double
br label %for.end26
for.end10: ; preds = %for.body5, %middle.block
%add.lcssa = phi i32 [ %7, %middle.block ], [ %add, %for.body5 ]
%conv = sitofp i32 %add.lcssa to double
%conv11 = sitofp i32 %8 to double
%div = fdiv double %conv, %conv11
br i1 %cmp446, label %for.body15.preheader, label %for.end26
for.body15.preheader: ; preds = %for.end10
%xtraiter = and i64 %wide.trip.count, 3
%11 = icmp ult i32 %8, 4
br i1 %11, label %for.end26.loopexit.unr-lcssa, label %for.body15.preheader.new
for.body15.preheader.new: ; preds = %for.body15.preheader
%unroll_iter = and i64 %wide.trip.count, 4294967292
br label %for.body15
for.body15: ; preds = %for.body15, %for.body15.preheader.new
%indvars.iv62 = phi i64 [ 0, %for.body15.preheader.new ], [ %indvars.iv.next63.3, %for.body15 ]
%sig.051 = phi double [ 0.000000e+00, %for.body15.preheader.new ], [ %19, %for.body15 ]
%niter = phi i64 [ 0, %for.body15.preheader.new ], [ %niter.next.3, %for.body15 ]
%arrayidx17 = getelementptr inbounds [1001 x i32], ptr %score, i64 0, i64 %indvars.iv62
%12 = load i32, ptr %arrayidx17, align 16, !tbaa !5
%conv18 = sitofp i32 %12 to double
%sub = fsub double %conv18, %div
%13 = call double @llvm.fmuladd.f64(double %sub, double %sub, double %sig.051)
%indvars.iv.next63 = or i64 %indvars.iv62, 1
%arrayidx17.1 = getelementptr inbounds [1001 x i32], ptr %score, i64 0, i64 %indvars.iv.next63
%14 = load i32, ptr %arrayidx17.1, align 4, !tbaa !5
%conv18.1 = sitofp i32 %14 to double
%sub.1 = fsub double %conv18.1, %div
%15 = call double @llvm.fmuladd.f64(double %sub.1, double %sub.1, double %13)
%indvars.iv.next63.1 = or i64 %indvars.iv62, 2
%arrayidx17.2 = getelementptr inbounds [1001 x i32], ptr %score, i64 0, i64 %indvars.iv.next63.1
%16 = load i32, ptr %arrayidx17.2, align 8, !tbaa !5
%conv18.2 = sitofp i32 %16 to double
%sub.2 = fsub double %conv18.2, %div
%17 = call double @llvm.fmuladd.f64(double %sub.2, double %sub.2, double %15)
%indvars.iv.next63.2 = or i64 %indvars.iv62, 3
%arrayidx17.3 = getelementptr inbounds [1001 x i32], ptr %score, i64 0, i64 %indvars.iv.next63.2
%18 = load i32, ptr %arrayidx17.3, align 4, !tbaa !5
%conv18.3 = sitofp i32 %18 to double
%sub.3 = fsub double %conv18.3, %div
%19 = call double @llvm.fmuladd.f64(double %sub.3, double %sub.3, double %17)
%indvars.iv.next63.3 = add nuw nsw i64 %indvars.iv62, 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.end26.loopexit.unr-lcssa, label %for.body15, !llvm.loop !15
for.end26.loopexit.unr-lcssa: ; preds = %for.body15, %for.body15.preheader
%.lcssa86.ph = phi double [ undef, %for.body15.preheader ], [ %19, %for.body15 ]
%indvars.iv62.unr = phi i64 [ 0, %for.body15.preheader ], [ %indvars.iv.next63.3, %for.body15 ]
%sig.051.unr = phi double [ 0.000000e+00, %for.body15.preheader ], [ %19, %for.body15 ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.end26, label %for.body15.epil
for.body15.epil: ; preds = %for.end26.loopexit.unr-lcssa, %for.body15.epil
%indvars.iv62.epil = phi i64 [ %indvars.iv.next63.epil, %for.body15.epil ], [ %indvars.iv62.unr, %for.end26.loopexit.unr-lcssa ]
%sig.051.epil = phi double [ %21, %for.body15.epil ], [ %sig.051.unr, %for.end26.loopexit.unr-lcssa ]
%epil.iter = phi i64 [ %epil.iter.next, %for.body15.epil ], [ 0, %for.end26.loopexit.unr-lcssa ]
%arrayidx17.epil = getelementptr inbounds [1001 x i32], ptr %score, i64 0, i64 %indvars.iv62.epil
%20 = load i32, ptr %arrayidx17.epil, align 4, !tbaa !5
%conv18.epil = sitofp i32 %20 to double
%sub.epil = fsub double %conv18.epil, %div
%21 = call double @llvm.fmuladd.f64(double %sub.epil, double %sub.epil, double %sig.051.epil)
%indvars.iv.next63.epil = add nuw nsw i64 %indvars.iv62.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.end26, label %for.body15.epil, !llvm.loop !16
for.end26: ; preds = %for.end26.loopexit.unr-lcssa, %for.body15.epil, %for.end10.thread, %for.end10
%conv1177 = phi double [ %conv11, %for.end10 ], [ %conv1175, %for.end10.thread ], [ %conv11, %for.body15.epil ], [ %conv11, %for.end26.loopexit.unr-lcssa ]
%sig.0.lcssa = phi double [ 0.000000e+00, %for.end10 ], [ 0.000000e+00, %for.end10.thread ], [ %.lcssa86.ph, %for.end26.loopexit.unr-lcssa ], [ %21, %for.body15.epil ]
%div28 = fdiv double %sig.0.lcssa, %conv1177
%call29 = call double @sqrt(double noundef %div28) #6
%call30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %call29)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%22 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp eq i32 %22, 0
br i1 %cmp, label %while.end, label %for.cond.preheader
while.end: ; preds = %for.end26, %entry
call void @llvm.lifetime.end.p0(i64 4004, ptr nonnull %score) #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) #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 speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 #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>) #5
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 speculatable willreturn memory(none) }
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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10, !12, !11}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}
|
/*
* a.c
*
* Created on: 2017/06/13
* Author: AWV060608
*/
#include <stdio.h>
#include <math.h>
#define MXNMB 1000+5
int main(void)
{
int n;
int si[MXNMB];
int i;
double sum, sum1, avrg;
double rst;
while(1)
{
sum = avrg = 0;
scanf("%d",&n);
if( n == 0)
break;
for(i=0; i<n; i++)
{
scanf("%d",&si[i]);
sum = sum + si[i];
}
avrg = sum/n;
sum1 = 0;
for(i=0; i<n; i++)
{
sum1 = pow((si[i] - avrg),2) + sum1;
}
rst = sqrt(sum1/n);
printf("%f\n",rst);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174928/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174928/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
%si = alloca [1005 x i32], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4
call void @llvm.lifetime.start.p0(i64 4020, ptr nonnull %si) #4
%call39 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp40 = icmp eq i32 %0, 0
br i1 %cmp40, label %while.end, label %for.cond.preheader
for.cond.preheader: ; preds = %entry, %for.end17
%1 = phi i32 [ %11, %for.end17 ], [ %0, %entry ]
%cmp131 = icmp sgt i32 %1, 0
br i1 %cmp131, label %for.body, label %for.end.thread
for.end.thread: ; preds = %for.cond.preheader
%conv548 = sitofp i32 %1 to double
br label %for.end17
for.body: ; preds = %for.cond.preheader, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %for.cond.preheader ]
%sum.032 = phi double [ %add, %for.body ], [ 0.000000e+00, %for.cond.preheader ]
%arrayidx = getelementptr inbounds [1005 x i32], ptr %si, i64 0, i64 %indvars.iv
%call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx)
%2 = load i32, ptr %arrayidx, align 4, !tbaa !5
%conv = sitofp i32 %2 to double
%add = fadd double %sum.032, %conv
%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
%cmp1 = icmp slt i64 %indvars.iv.next, %4
br i1 %cmp1, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body
%conv5 = sitofp i32 %3 to double
%div = fdiv double %add, %conv5
%cmp735 = icmp sgt i32 %3, 0
br i1 %cmp735, label %for.body9.preheader, label %for.end17
for.body9.preheader: ; preds = %for.end
%wide.trip.count = zext i32 %3 to i64
%xtraiter = and i64 %wide.trip.count, 3
%5 = icmp ult i32 %3, 4
br i1 %5, label %for.end17.loopexit.unr-lcssa, label %for.body9.preheader.new
for.body9.preheader.new: ; preds = %for.body9.preheader
%unroll_iter = and i64 %wide.trip.count, 4294967292
br label %for.body9
for.body9: ; preds = %for.body9, %for.body9.preheader.new
%indvars.iv43 = phi i64 [ 0, %for.body9.preheader.new ], [ %indvars.iv.next44.3, %for.body9 ]
%sum1.036 = phi double [ 0.000000e+00, %for.body9.preheader.new ], [ %add14.3, %for.body9 ]
%niter = phi i64 [ 0, %for.body9.preheader.new ], [ %niter.next.3, %for.body9 ]
%arrayidx11 = getelementptr inbounds [1005 x i32], ptr %si, i64 0, i64 %indvars.iv43
%6 = load i32, ptr %arrayidx11, align 16, !tbaa !5
%conv12 = sitofp i32 %6 to double
%sub = fsub double %conv12, %div
%square = fmul double %sub, %sub
%add14 = fadd double %sum1.036, %square
%indvars.iv.next44 = or i64 %indvars.iv43, 1
%arrayidx11.1 = getelementptr inbounds [1005 x i32], ptr %si, i64 0, i64 %indvars.iv.next44
%7 = load i32, ptr %arrayidx11.1, align 4, !tbaa !5
%conv12.1 = sitofp i32 %7 to double
%sub.1 = fsub double %conv12.1, %div
%square.1 = fmul double %sub.1, %sub.1
%add14.1 = fadd double %add14, %square.1
%indvars.iv.next44.1 = or i64 %indvars.iv43, 2
%arrayidx11.2 = getelementptr inbounds [1005 x i32], ptr %si, i64 0, i64 %indvars.iv.next44.1
%8 = load i32, ptr %arrayidx11.2, align 8, !tbaa !5
%conv12.2 = sitofp i32 %8 to double
%sub.2 = fsub double %conv12.2, %div
%square.2 = fmul double %sub.2, %sub.2
%add14.2 = fadd double %add14.1, %square.2
%indvars.iv.next44.2 = or i64 %indvars.iv43, 3
%arrayidx11.3 = getelementptr inbounds [1005 x i32], ptr %si, i64 0, i64 %indvars.iv.next44.2
%9 = load i32, ptr %arrayidx11.3, align 4, !tbaa !5
%conv12.3 = sitofp i32 %9 to double
%sub.3 = fsub double %conv12.3, %div
%square.3 = fmul double %sub.3, %sub.3
%add14.3 = fadd double %add14.2, %square.3
%indvars.iv.next44.3 = add nuw nsw i64 %indvars.iv43, 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.end17.loopexit.unr-lcssa, label %for.body9, !llvm.loop !11
for.end17.loopexit.unr-lcssa: ; preds = %for.body9, %for.body9.preheader
%add14.lcssa.ph = phi double [ undef, %for.body9.preheader ], [ %add14.3, %for.body9 ]
%indvars.iv43.unr = phi i64 [ 0, %for.body9.preheader ], [ %indvars.iv.next44.3, %for.body9 ]
%sum1.036.unr = phi double [ 0.000000e+00, %for.body9.preheader ], [ %add14.3, %for.body9 ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.end17, label %for.body9.epil
for.body9.epil: ; preds = %for.end17.loopexit.unr-lcssa, %for.body9.epil
%indvars.iv43.epil = phi i64 [ %indvars.iv.next44.epil, %for.body9.epil ], [ %indvars.iv43.unr, %for.end17.loopexit.unr-lcssa ]
%sum1.036.epil = phi double [ %add14.epil, %for.body9.epil ], [ %sum1.036.unr, %for.end17.loopexit.unr-lcssa ]
%epil.iter = phi i64 [ %epil.iter.next, %for.body9.epil ], [ 0, %for.end17.loopexit.unr-lcssa ]
%arrayidx11.epil = getelementptr inbounds [1005 x i32], ptr %si, i64 0, i64 %indvars.iv43.epil
%10 = load i32, ptr %arrayidx11.epil, align 4, !tbaa !5
%conv12.epil = sitofp i32 %10 to double
%sub.epil = fsub double %conv12.epil, %div
%square.epil = fmul double %sub.epil, %sub.epil
%add14.epil = fadd double %sum1.036.epil, %square.epil
%indvars.iv.next44.epil = add nuw nsw i64 %indvars.iv43.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.end17, label %for.body9.epil, !llvm.loop !12
for.end17: ; preds = %for.end17.loopexit.unr-lcssa, %for.body9.epil, %for.end.thread, %for.end
%conv551 = phi double [ %conv5, %for.end ], [ %conv548, %for.end.thread ], [ %conv5, %for.body9.epil ], [ %conv5, %for.end17.loopexit.unr-lcssa ]
%sum1.0.lcssa = phi double [ 0.000000e+00, %for.end ], [ 0.000000e+00, %for.end.thread ], [ %add14.lcssa.ph, %for.end17.loopexit.unr-lcssa ], [ %add14.epil, %for.body9.epil ]
%div19 = fdiv double %sum1.0.lcssa, %conv551
%call20 = call double @sqrt(double noundef %div19) #4
%call21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %call20)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%11 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp eq i32 %11, 0
br i1 %cmp, label %while.end, label %for.cond.preheader
while.end: ; preds = %for.end17, %entry
call void @llvm.lifetime.end.p0(i64 4020, ptr nonnull %si) #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"}
!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 <math.h>
int main(){
while(1){
int n;
scanf("%d", &n);
if(n == 0) break;
int points[n];
for ( int i = 0; i < n; i++ ){
scanf( "%d", &points[i] );
}
int sum = 0;
for (int i = 0; i < n ; i++ ){
sum += points[i];
}
double avg;
avg = 1.0*sum / n;
double devpoints[n];
for (int i = 0; i < n; i++ ){
devpoints[i] = (points[i] - avg)*(points[i] - avg);
}
double a2 = 0.0;
for ( int i = 0; i < n; i++ ){
a2 += devpoints[i];
}
double a;
a = sqrt(a2/n);
printf("%lf\n", a);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_174971/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_174971/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: 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) #6
%call79 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp80 = icmp eq i32 %0, 0
br i1 %cmp80, label %while.end, label %if.end
if.end: ; preds = %entry, %cleanup
%1 = phi i32 [ %36, %cleanup ], [ %0, %entry ]
%2 = zext i32 %1 to i64
%3 = call ptr @llvm.stacksave.p0()
%vla = alloca i32, i64 %2, align 16
%4 = load i32, ptr %n, align 4, !tbaa !5
%cmp167 = icmp sgt i32 %4, 0
br i1 %cmp167, label %for.body, label %for.cond.cleanup6.thread
for.cond4.preheader: ; preds = %for.body
%cmp569 = icmp sgt i32 %11, 0
br i1 %cmp569, label %for.body7.preheader, label %for.cond.cleanup6.thread
for.cond.cleanup6.thread: ; preds = %for.cond4.preheader, %if.end
%.lcssa99 = phi i32 [ %11, %for.cond4.preheader ], [ %4, %if.end ]
%conv13107 = sitofp i32 %.lcssa99 to double
br label %cleanup
for.body7.preheader: ; preds = %for.cond4.preheader
%wide.trip.count = zext i32 %11 to i64
%min.iters.check122 = icmp ult i32 %11, 8
br i1 %min.iters.check122, label %for.body7.preheader135, label %vector.ph123
vector.ph123: ; preds = %for.body7.preheader
%n.vec125 = and i64 %wide.trip.count, 4294967288
br label %vector.body128
vector.body128: ; preds = %vector.body128, %vector.ph123
%index129 = phi i64 [ 0, %vector.ph123 ], [ %index.next133, %vector.body128 ]
%vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph123 ], [ %7, %vector.body128 ]
%vec.phi130 = phi <4 x i32> [ zeroinitializer, %vector.ph123 ], [ %8, %vector.body128 ]
%5 = getelementptr inbounds i32, ptr %vla, i64 %index129
%wide.load131 = load <4 x i32>, ptr %5, align 16, !tbaa !5
%6 = getelementptr inbounds i32, ptr %5, i64 4
%wide.load132 = load <4 x i32>, ptr %6, align 16, !tbaa !5
%7 = add <4 x i32> %wide.load131, %vec.phi
%8 = add <4 x i32> %wide.load132, %vec.phi130
%index.next133 = add nuw i64 %index129, 8
%9 = icmp eq i64 %index.next133, %n.vec125
br i1 %9, label %middle.block120, label %vector.body128, !llvm.loop !9
middle.block120: ; preds = %vector.body128
%bin.rdx = add <4 x i32> %8, %7
%10 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
%cmp.n127 = icmp eq i64 %n.vec125, %wide.trip.count
br i1 %cmp.n127, label %for.cond.cleanup6, label %for.body7.preheader135
for.body7.preheader135: ; preds = %for.body7.preheader, %middle.block120
%indvars.iv83.ph = phi i64 [ 0, %for.body7.preheader ], [ %n.vec125, %middle.block120 ]
%sum.071.ph = phi i32 [ 0, %for.body7.preheader ], [ %10, %middle.block120 ]
br label %for.body7
for.body: ; preds = %if.end, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %if.end ]
%arrayidx = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv
%call2 = 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
%cmp1 = icmp slt i64 %indvars.iv.next, %12
br i1 %cmp1, label %for.body, label %for.cond4.preheader, !llvm.loop !13
for.cond.cleanup6: ; preds = %for.body7, %middle.block120
%add.lcssa = phi i32 [ %10, %middle.block120 ], [ %add, %for.body7 ]
%conv = sitofp i32 %add.lcssa to double
%conv13 = sitofp i32 %11 to double
%div = fdiv double %conv, %conv13
%vla14 = alloca double, i64 %wide.trip.count, align 16
br i1 %cmp569, label %for.body20.preheader, label %cleanup
for.body20.preheader: ; preds = %for.cond.cleanup6
%min.iters.check = icmp ult i32 %11, 4
br i1 %min.iters.check, label %for.body20.preheader134, label %vector.ph
vector.ph: ; preds = %for.body20.preheader
%n.vec = and i64 %wide.trip.count, 4294967292
%broadcast.splatinsert = insertelement <2 x double> poison, double %div, i64 0
%broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> 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 ]
%13 = getelementptr inbounds i32, ptr %vla, i64 %index
%wide.load = load <2 x i32>, ptr %13, align 16, !tbaa !5
%14 = getelementptr inbounds i32, ptr %13, i64 2
%wide.load119 = load <2 x i32>, ptr %14, align 8, !tbaa !5
%15 = sitofp <2 x i32> %wide.load to <2 x double>
%16 = sitofp <2 x i32> %wide.load119 to <2 x double>
%17 = fsub <2 x double> %15, %broadcast.splat
%18 = fsub <2 x double> %16, %broadcast.splat
%19 = fmul <2 x double> %17, %17
%20 = fmul <2 x double> %18, %18
%21 = getelementptr inbounds double, ptr %vla14, i64 %index
store <2 x double> %19, ptr %21, align 16, !tbaa !14
%22 = getelementptr inbounds double, ptr %21, i64 2
store <2 x double> %20, ptr %22, align 16, !tbaa !14
%index.next = add nuw i64 %index, 4
%23 = icmp eq i64 %index.next, %n.vec
br i1 %23, label %middle.block, label %vector.body, !llvm.loop !16
middle.block: ; preds = %vector.body
%cmp.n = icmp eq i64 %n.vec, %wide.trip.count
br i1 %cmp.n, label %for.cond35.preheader, label %for.body20.preheader134
for.body20.preheader134: ; preds = %for.body20.preheader, %middle.block
%indvars.iv86.ph = phi i64 [ 0, %for.body20.preheader ], [ %n.vec, %middle.block ]
br label %for.body20
for.body7: ; preds = %for.body7.preheader135, %for.body7
%indvars.iv83 = phi i64 [ %indvars.iv.next84, %for.body7 ], [ %indvars.iv83.ph, %for.body7.preheader135 ]
%sum.071 = phi i32 [ %add, %for.body7 ], [ %sum.071.ph, %for.body7.preheader135 ]
%arrayidx9 = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv83
%24 = load i32, ptr %arrayidx9, align 4, !tbaa !5
%add = add nsw i32 %24, %sum.071
%indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
%exitcond.not = icmp eq i64 %indvars.iv.next84, %wide.trip.count
br i1 %exitcond.not, label %for.cond.cleanup6, label %for.body7, !llvm.loop !17
for.cond35.preheader: ; preds = %for.body20, %middle.block
br i1 %cmp569, label %for.body39.preheader, label %cleanup
for.body39.preheader: ; preds = %for.cond35.preheader
%xtraiter = and i64 %wide.trip.count, 7
%25 = icmp ult i32 %11, 8
br i1 %25, label %cleanup.loopexit.unr-lcssa, label %for.body39.preheader.new
for.body39.preheader.new: ; preds = %for.body39.preheader
%unroll_iter = and i64 %wide.trip.count, 4294967288
br label %for.body39
for.body20: ; preds = %for.body20.preheader134, %for.body20
%indvars.iv86 = phi i64 [ %indvars.iv.next87, %for.body20 ], [ %indvars.iv86.ph, %for.body20.preheader134 ]
%arrayidx22 = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv86
%26 = load i32, ptr %arrayidx22, align 4, !tbaa !5
%conv23 = sitofp i32 %26 to double
%sub = fsub double %conv23, %div
%mul28 = fmul double %sub, %sub
%arrayidx30 = getelementptr inbounds double, ptr %vla14, i64 %indvars.iv86
store double %mul28, ptr %arrayidx30, align 8, !tbaa !14
%indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
%exitcond90.not = icmp eq i64 %indvars.iv.next87, %wide.trip.count
br i1 %exitcond90.not, label %for.cond35.preheader, label %for.body20, !llvm.loop !18
for.body39: ; preds = %for.body39, %for.body39.preheader.new
%indvars.iv91 = phi i64 [ 0, %for.body39.preheader.new ], [ %indvars.iv.next92.7, %for.body39 ]
%a2.076 = phi double [ 0.000000e+00, %for.body39.preheader.new ], [ %add42.7, %for.body39 ]
%niter = phi i64 [ 0, %for.body39.preheader.new ], [ %niter.next.7, %for.body39 ]
%arrayidx41 = getelementptr inbounds double, ptr %vla14, i64 %indvars.iv91
%27 = load double, ptr %arrayidx41, align 16, !tbaa !14
%add42 = fadd double %a2.076, %27
%indvars.iv.next92 = or i64 %indvars.iv91, 1
%arrayidx41.1 = getelementptr inbounds double, ptr %vla14, i64 %indvars.iv.next92
%28 = load double, ptr %arrayidx41.1, align 8, !tbaa !14
%add42.1 = fadd double %add42, %28
%indvars.iv.next92.1 = or i64 %indvars.iv91, 2
%arrayidx41.2 = getelementptr inbounds double, ptr %vla14, i64 %indvars.iv.next92.1
%29 = load double, ptr %arrayidx41.2, align 16, !tbaa !14
%add42.2 = fadd double %add42.1, %29
%indvars.iv.next92.2 = or i64 %indvars.iv91, 3
%arrayidx41.3 = getelementptr inbounds double, ptr %vla14, i64 %indvars.iv.next92.2
%30 = load double, ptr %arrayidx41.3, align 8, !tbaa !14
%add42.3 = fadd double %add42.2, %30
%indvars.iv.next92.3 = or i64 %indvars.iv91, 4
%arrayidx41.4 = getelementptr inbounds double, ptr %vla14, i64 %indvars.iv.next92.3
%31 = load double, ptr %arrayidx41.4, align 16, !tbaa !14
%add42.4 = fadd double %add42.3, %31
%indvars.iv.next92.4 = or i64 %indvars.iv91, 5
%arrayidx41.5 = getelementptr inbounds double, ptr %vla14, i64 %indvars.iv.next92.4
%32 = load double, ptr %arrayidx41.5, align 8, !tbaa !14
%add42.5 = fadd double %add42.4, %32
%indvars.iv.next92.5 = or i64 %indvars.iv91, 6
%arrayidx41.6 = getelementptr inbounds double, ptr %vla14, i64 %indvars.iv.next92.5
%33 = load double, ptr %arrayidx41.6, align 16, !tbaa !14
%add42.6 = fadd double %add42.5, %33
%indvars.iv.next92.6 = or i64 %indvars.iv91, 7
%arrayidx41.7 = getelementptr inbounds double, ptr %vla14, i64 %indvars.iv.next92.6
%34 = load double, ptr %arrayidx41.7, align 8, !tbaa !14
%add42.7 = fadd double %add42.6, %34
%indvars.iv.next92.7 = add nuw nsw i64 %indvars.iv91, 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 %cleanup.loopexit.unr-lcssa, label %for.body39, !llvm.loop !19
cleanup.loopexit.unr-lcssa: ; preds = %for.body39, %for.body39.preheader
%add42.lcssa.ph = phi double [ undef, %for.body39.preheader ], [ %add42.7, %for.body39 ]
%indvars.iv91.unr = phi i64 [ 0, %for.body39.preheader ], [ %indvars.iv.next92.7, %for.body39 ]
%a2.076.unr = phi double [ 0.000000e+00, %for.body39.preheader ], [ %add42.7, %for.body39 ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %cleanup, label %for.body39.epil
for.body39.epil: ; preds = %cleanup.loopexit.unr-lcssa, %for.body39.epil
%indvars.iv91.epil = phi i64 [ %indvars.iv.next92.epil, %for.body39.epil ], [ %indvars.iv91.unr, %cleanup.loopexit.unr-lcssa ]
%a2.076.epil = phi double [ %add42.epil, %for.body39.epil ], [ %a2.076.unr, %cleanup.loopexit.unr-lcssa ]
%epil.iter = phi i64 [ %epil.iter.next, %for.body39.epil ], [ 0, %cleanup.loopexit.unr-lcssa ]
%arrayidx41.epil = getelementptr inbounds double, ptr %vla14, i64 %indvars.iv91.epil
%35 = load double, ptr %arrayidx41.epil, align 8, !tbaa !14
%add42.epil = fadd double %a2.076.epil, %35
%indvars.iv.next92.epil = add nuw nsw i64 %indvars.iv91.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 %cleanup, label %for.body39.epil, !llvm.loop !20
cleanup: ; preds = %cleanup.loopexit.unr-lcssa, %for.body39.epil, %for.cond.cleanup6, %for.cond.cleanup6.thread, %for.cond35.preheader
%conv13112118 = phi double [ %conv13, %for.cond35.preheader ], [ %conv13, %for.cond.cleanup6 ], [ %conv13107, %for.cond.cleanup6.thread ], [ %conv13, %for.body39.epil ], [ %conv13, %cleanup.loopexit.unr-lcssa ]
%a2.0.lcssa = phi double [ 0.000000e+00, %for.cond35.preheader ], [ 0.000000e+00, %for.cond.cleanup6 ], [ 0.000000e+00, %for.cond.cleanup6.thread ], [ %add42.lcssa.ph, %cleanup.loopexit.unr-lcssa ], [ %add42.epil, %for.body39.epil ]
%div47 = fdiv double %a2.0.lcssa, %conv13112118
%call48 = call double @sqrt(double noundef %div47) #6
%call49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %call48)
call void @llvm.stackrestore.p0(ptr %3)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #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)
%36 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp eq i32 %36, 0
br i1 %cmp, label %while.end, label %if.end
while.end: ; preds = %cleanup, %entry
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) #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 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 #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #5
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 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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !10, !11, !12}
!17 = distinct !{!17, !10, !12, !11}
!18 = distinct !{!18, !10, !12, !11}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
|
#include <stdio.h>
#include <math.h>
int main(void){
while(1){
int n,i;
int S[1000];
int sum=0;
double sumsum=0;
double ave,a;
scanf("%d",&n);
if(n==0){
break;
}
else {
for(i=1;i<=n;i++){
scanf("%d",&S[i]);
sum+=S[i];
}
ave=(double)sum/(double)n;
for(i=1;i<=n;i++){
a=(double)S[i]-ave;
sumsum+=a*a;
}
printf("%f\n",sqrt(sumsum/n));
}
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175020/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175020/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
%S = alloca [1000 x i32], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #5
call void @llvm.lifetime.start.p0(i64 4000, ptr nonnull %S) #5
%call46 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp47 = icmp eq i32 %0, 0
br i1 %cmp47, label %while.end, label %for.cond.preheader
for.cond.preheader: ; preds = %entry, %cleanup
%1 = phi i32 [ %19, %cleanup ], [ %0, %entry ]
%cmp1.not38 = icmp slt i32 %1, 1
br i1 %cmp1.not38, label %for.end.thread, label %for.body
for.end.thread: ; preds = %for.cond.preheader
%conv557 = sitofp i32 %1 to double
br label %cleanup
for.body: ; preds = %for.cond.preheader, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 1, %for.cond.preheader ]
%sum.039 = phi i32 [ %add, %for.body ], [ 0, %for.cond.preheader ]
%arrayidx = getelementptr inbounds [1000 x i32], ptr %S, i64 0, i64 %indvars.iv
%call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx)
%2 = load i32, ptr %arrayidx, align 4, !tbaa !5
%add = add nsw i32 %2, %sum.039
%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
%cmp1.not.not = icmp slt i64 %indvars.iv, %4
br i1 %cmp1.not.not, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body
%conv = sitofp i32 %add to double
%conv5 = sitofp i32 %3 to double
%div = fdiv double %conv, %conv5
%cmp7.not42 = icmp slt i32 %3, 1
br i1 %cmp7.not42, label %cleanup, label %for.body9.preheader
for.body9.preheader: ; preds = %for.end
%5 = add nuw i32 %3, 1
%wide.trip.count = zext i32 %5 to i64
%6 = add nsw i64 %wide.trip.count, -1
%7 = add nsw i64 %wide.trip.count, -2
%xtraiter = and i64 %6, 3
%8 = icmp ult i64 %7, 3
br i1 %8, label %cleanup.loopexit.unr-lcssa, label %for.body9.preheader.new
for.body9.preheader.new: ; preds = %for.body9.preheader
%unroll_iter = and i64 %6, -4
br label %for.body9
for.body9: ; preds = %for.body9, %for.body9.preheader.new
%indvars.iv51 = phi i64 [ 1, %for.body9.preheader.new ], [ %indvars.iv.next52.3, %for.body9 ]
%sumsum.043 = phi double [ 0.000000e+00, %for.body9.preheader.new ], [ %16, %for.body9 ]
%niter = phi i64 [ 0, %for.body9.preheader.new ], [ %niter.next.3, %for.body9 ]
%arrayidx11 = getelementptr inbounds [1000 x i32], ptr %S, i64 0, i64 %indvars.iv51
%9 = load i32, ptr %arrayidx11, align 4, !tbaa !5
%conv12 = sitofp i32 %9 to double
%sub = fsub double %conv12, %div
%10 = call double @llvm.fmuladd.f64(double %sub, double %sub, double %sumsum.043)
%indvars.iv.next52 = add nuw nsw i64 %indvars.iv51, 1
%arrayidx11.1 = getelementptr inbounds [1000 x i32], ptr %S, i64 0, i64 %indvars.iv.next52
%11 = load i32, ptr %arrayidx11.1, align 4, !tbaa !5
%conv12.1 = sitofp i32 %11 to double
%sub.1 = fsub double %conv12.1, %div
%12 = call double @llvm.fmuladd.f64(double %sub.1, double %sub.1, double %10)
%indvars.iv.next52.1 = add nuw nsw i64 %indvars.iv51, 2
%arrayidx11.2 = getelementptr inbounds [1000 x i32], ptr %S, i64 0, i64 %indvars.iv.next52.1
%13 = load i32, ptr %arrayidx11.2, align 4, !tbaa !5
%conv12.2 = sitofp i32 %13 to double
%sub.2 = fsub double %conv12.2, %div
%14 = call double @llvm.fmuladd.f64(double %sub.2, double %sub.2, double %12)
%indvars.iv.next52.2 = add nuw nsw i64 %indvars.iv51, 3
%arrayidx11.3 = getelementptr inbounds [1000 x i32], ptr %S, i64 0, i64 %indvars.iv.next52.2
%15 = load i32, ptr %arrayidx11.3, align 4, !tbaa !5
%conv12.3 = sitofp i32 %15 to double
%sub.3 = fsub double %conv12.3, %div
%16 = call double @llvm.fmuladd.f64(double %sub.3, double %sub.3, double %14)
%indvars.iv.next52.3 = add nuw nsw i64 %indvars.iv51, 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 %cleanup.loopexit.unr-lcssa, label %for.body9, !llvm.loop !11
cleanup.loopexit.unr-lcssa: ; preds = %for.body9, %for.body9.preheader
%.lcssa63.ph = phi double [ undef, %for.body9.preheader ], [ %16, %for.body9 ]
%indvars.iv51.unr = phi i64 [ 1, %for.body9.preheader ], [ %indvars.iv.next52.3, %for.body9 ]
%sumsum.043.unr = phi double [ 0.000000e+00, %for.body9.preheader ], [ %16, %for.body9 ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %cleanup, label %for.body9.epil
for.body9.epil: ; preds = %cleanup.loopexit.unr-lcssa, %for.body9.epil
%indvars.iv51.epil = phi i64 [ %indvars.iv.next52.epil, %for.body9.epil ], [ %indvars.iv51.unr, %cleanup.loopexit.unr-lcssa ]
%sumsum.043.epil = phi double [ %18, %for.body9.epil ], [ %sumsum.043.unr, %cleanup.loopexit.unr-lcssa ]
%epil.iter = phi i64 [ %epil.iter.next, %for.body9.epil ], [ 0, %cleanup.loopexit.unr-lcssa ]
%arrayidx11.epil = getelementptr inbounds [1000 x i32], ptr %S, i64 0, i64 %indvars.iv51.epil
%17 = load i32, ptr %arrayidx11.epil, align 4, !tbaa !5
%conv12.epil = sitofp i32 %17 to double
%sub.epil = fsub double %conv12.epil, %div
%18 = call double @llvm.fmuladd.f64(double %sub.epil, double %sub.epil, double %sumsum.043.epil)
%indvars.iv.next52.epil = add nuw nsw i64 %indvars.iv51.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 %cleanup, label %for.body9.epil, !llvm.loop !12
cleanup: ; preds = %cleanup.loopexit.unr-lcssa, %for.body9.epil, %for.end.thread, %for.end
%conv560 = phi double [ %conv5, %for.end ], [ %conv557, %for.end.thread ], [ %conv5, %for.body9.epil ], [ %conv5, %cleanup.loopexit.unr-lcssa ]
%sumsum.0.lcssa = phi double [ 0.000000e+00, %for.end ], [ 0.000000e+00, %for.end.thread ], [ %.lcssa63.ph, %cleanup.loopexit.unr-lcssa ], [ %18, %for.body9.epil ]
%div17 = fdiv double %sumsum.0.lcssa, %conv560
%call18 = call double @sqrt(double noundef %div17) #5
%call19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %call18)
call void @llvm.lifetime.end.p0(i64 4000, ptr nonnull %S) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #5
call void @llvm.lifetime.start.p0(i64 4000, ptr nonnull %S) #5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%19 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp eq i32 %19, 0
br i1 %cmp, label %while.end, label %for.cond.preheader
while.end: ; preds = %cleanup, %entry
call void @llvm.lifetime.end.p0(i64 4000, ptr nonnull %S) #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: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) 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) #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 speculatable willreturn memory(none) }
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 = { 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<math.h>
int main(void){
int i,n,s[1000];
double m,a,sum,sd;
while(1){
scanf("%d",&n);
m=0;sum=0;
if(n!=0){
for(i=0;i<n;i++){
scanf("%d",&s[i]);
m+=s[i];
}
m/=n;
for(i=0;i<n;i++){
a=(s[i]-m)*(s[i]-m);
sum+=a;
}
sum/=n;
sd=sqrt(sum);
printf("%.8lf\n",sd);
}
else if(n==0){
break;
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175064/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175064/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 [7 x i8] c"%.8lf\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%s = alloca [1000 x i32], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4
call void @llvm.lifetime.start.p0(i64 4000, ptr nonnull %s) #4
%call50 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp.not51 = icmp eq i32 %0, 0
br i1 %cmp.not51, label %while.end, label %for.cond.preheader
for.cond.preheader: ; preds = %entry, %for.end20
%1 = phi i32 [ %11, %for.end20 ], [ %0, %entry ]
%cmp142 = icmp sgt i32 %1, 0
br i1 %cmp142, label %for.body, label %for.end.thread
for.end.thread: ; preds = %for.cond.preheader
%conv559 = sitofp i32 %1 to double
br label %for.end20
for.body: ; preds = %for.cond.preheader, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %for.cond.preheader ]
%m.043 = phi double [ %add, %for.body ], [ 0.000000e+00, %for.cond.preheader ]
%arrayidx = getelementptr inbounds [1000 x i32], ptr %s, i64 0, i64 %indvars.iv
%call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx)
%2 = load i32, ptr %arrayidx, align 4, !tbaa !5
%conv = sitofp i32 %2 to double
%add = fadd double %m.043, %conv
%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
%cmp1 = icmp slt i64 %indvars.iv.next, %4
br i1 %cmp1, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body
%conv5 = sitofp i32 %3 to double
%div = fdiv double %add, %conv5
%cmp746 = icmp sgt i32 %3, 0
br i1 %cmp746, label %for.body9.preheader, label %for.end20
for.body9.preheader: ; preds = %for.end
%wide.trip.count = zext i32 %3 to i64
%xtraiter = and i64 %wide.trip.count, 3
%5 = icmp ult i32 %3, 4
br i1 %5, label %for.end20.loopexit.unr-lcssa, label %for.body9.preheader.new
for.body9.preheader.new: ; preds = %for.body9.preheader
%unroll_iter = and i64 %wide.trip.count, 4294967292
br label %for.body9
for.body9: ; preds = %for.body9, %for.body9.preheader.new
%indvars.iv54 = phi i64 [ 0, %for.body9.preheader.new ], [ %indvars.iv.next55.3, %for.body9 ]
%sum.047 = phi double [ 0.000000e+00, %for.body9.preheader.new ], [ %add17.3, %for.body9 ]
%niter = phi i64 [ 0, %for.body9.preheader.new ], [ %niter.next.3, %for.body9 ]
%arrayidx11 = getelementptr inbounds [1000 x i32], ptr %s, i64 0, i64 %indvars.iv54
%6 = load i32, ptr %arrayidx11, align 16, !tbaa !5
%conv12 = sitofp i32 %6 to double
%sub = fsub double %conv12, %div
%mul = fmul double %sub, %sub
%add17 = fadd double %sum.047, %mul
%indvars.iv.next55 = or i64 %indvars.iv54, 1
%arrayidx11.1 = getelementptr inbounds [1000 x i32], ptr %s, i64 0, i64 %indvars.iv.next55
%7 = load i32, ptr %arrayidx11.1, align 4, !tbaa !5
%conv12.1 = sitofp i32 %7 to double
%sub.1 = fsub double %conv12.1, %div
%mul.1 = fmul double %sub.1, %sub.1
%add17.1 = fadd double %add17, %mul.1
%indvars.iv.next55.1 = or i64 %indvars.iv54, 2
%arrayidx11.2 = getelementptr inbounds [1000 x i32], ptr %s, i64 0, i64 %indvars.iv.next55.1
%8 = load i32, ptr %arrayidx11.2, align 8, !tbaa !5
%conv12.2 = sitofp i32 %8 to double
%sub.2 = fsub double %conv12.2, %div
%mul.2 = fmul double %sub.2, %sub.2
%add17.2 = fadd double %add17.1, %mul.2
%indvars.iv.next55.2 = or i64 %indvars.iv54, 3
%arrayidx11.3 = getelementptr inbounds [1000 x i32], ptr %s, i64 0, i64 %indvars.iv.next55.2
%9 = load i32, ptr %arrayidx11.3, align 4, !tbaa !5
%conv12.3 = sitofp i32 %9 to double
%sub.3 = fsub double %conv12.3, %div
%mul.3 = fmul double %sub.3, %sub.3
%add17.3 = fadd double %add17.2, %mul.3
%indvars.iv.next55.3 = add nuw nsw i64 %indvars.iv54, 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.end20.loopexit.unr-lcssa, label %for.body9, !llvm.loop !11
for.end20.loopexit.unr-lcssa: ; preds = %for.body9, %for.body9.preheader
%add17.lcssa.ph = phi double [ undef, %for.body9.preheader ], [ %add17.3, %for.body9 ]
%indvars.iv54.unr = phi i64 [ 0, %for.body9.preheader ], [ %indvars.iv.next55.3, %for.body9 ]
%sum.047.unr = phi double [ 0.000000e+00, %for.body9.preheader ], [ %add17.3, %for.body9 ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.end20, label %for.body9.epil
for.body9.epil: ; preds = %for.end20.loopexit.unr-lcssa, %for.body9.epil
%indvars.iv54.epil = phi i64 [ %indvars.iv.next55.epil, %for.body9.epil ], [ %indvars.iv54.unr, %for.end20.loopexit.unr-lcssa ]
%sum.047.epil = phi double [ %add17.epil, %for.body9.epil ], [ %sum.047.unr, %for.end20.loopexit.unr-lcssa ]
%epil.iter = phi i64 [ %epil.iter.next, %for.body9.epil ], [ 0, %for.end20.loopexit.unr-lcssa ]
%arrayidx11.epil = getelementptr inbounds [1000 x i32], ptr %s, i64 0, i64 %indvars.iv54.epil
%10 = load i32, ptr %arrayidx11.epil, align 4, !tbaa !5
%conv12.epil = sitofp i32 %10 to double
%sub.epil = fsub double %conv12.epil, %div
%mul.epil = fmul double %sub.epil, %sub.epil
%add17.epil = fadd double %sum.047.epil, %mul.epil
%indvars.iv.next55.epil = add nuw nsw i64 %indvars.iv54.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.end20, label %for.body9.epil, !llvm.loop !12
for.end20: ; preds = %for.end20.loopexit.unr-lcssa, %for.body9.epil, %for.end.thread, %for.end
%conv562 = phi double [ %conv5, %for.end ], [ %conv559, %for.end.thread ], [ %conv5, %for.body9.epil ], [ %conv5, %for.end20.loopexit.unr-lcssa ]
%sum.0.lcssa = phi double [ 0.000000e+00, %for.end ], [ 0.000000e+00, %for.end.thread ], [ %add17.lcssa.ph, %for.end20.loopexit.unr-lcssa ], [ %add17.epil, %for.body9.epil ]
%div22 = fdiv double %sum.0.lcssa, %conv562
%call23 = call double @sqrt(double noundef %div22) #4
%call24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %call23)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%11 = load i32, ptr %n, align 4, !tbaa !5
%cmp.not = icmp eq i32 %11, 0
br i1 %cmp.not, label %while.end, label %for.cond.preheader
while.end: ; preds = %for.end20, %entry
call void @llvm.lifetime.end.p0(i64 4000, ptr nonnull %s) #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"}
!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 <math.h>
int main()
{
int n;
int i;
double sum;
double a;
double s[1000];
while(1) {
scanf("%d", &n);
if(n == 0) {
break;
}
sum = 0;
for(i = 0; i < n; i++) {
scanf("%lf", &s[i]);
sum += s[i];
}
a = 0;
for(i = 0; i < n; i++) {
a += pow(s[i] - (sum/n), 2);
}
printf("%f\n", sqrt(a/n));
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175107/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175107/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: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%s = alloca [1000 x double], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4
call void @llvm.lifetime.start.p0(i64 8000, ptr nonnull %s) #4
%call35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp36 = icmp eq i32 %0, 0
br i1 %cmp36, label %while.end, label %for.cond.preheader
for.cond.preheader: ; preds = %entry, %for.end14
%1 = phi i32 [ %11, %for.end14 ], [ %0, %entry ]
%cmp127 = icmp sgt i32 %1, 0
br i1 %cmp127, label %for.body, label %for.cond5.preheader.for.end14_crit_edge
for.cond5.preheader: ; preds = %for.body
%cmp631 = icmp sgt i32 %4, 0
br i1 %cmp631, label %for.body7.lr.ph, label %for.cond5.preheader.for.end14_crit_edge
for.cond5.preheader.for.end14_crit_edge: ; preds = %for.cond.preheader, %for.cond5.preheader
%.lcssa45 = phi i32 [ %4, %for.cond5.preheader ], [ %1, %for.cond.preheader ]
%.pre = sitofp i32 %.lcssa45 to double
br label %for.end14
for.body7.lr.ph: ; preds = %for.cond5.preheader
%conv = sitofp i32 %4 to double
%div = fdiv double %add, %conv
%wide.trip.count = zext i32 %4 to i64
%xtraiter = and i64 %wide.trip.count, 3
%2 = icmp ult i32 %4, 4
br i1 %2, label %for.end14.loopexit.unr-lcssa, label %for.body7.lr.ph.new
for.body7.lr.ph.new: ; preds = %for.body7.lr.ph
%unroll_iter = and i64 %wide.trip.count, 4294967292
br label %for.body7
for.body: ; preds = %for.cond.preheader, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %for.cond.preheader ]
%sum.029 = phi double [ %add, %for.body ], [ 0.000000e+00, %for.cond.preheader ]
%arrayidx = getelementptr inbounds [1000 x double], ptr %s, i64 0, i64 %indvars.iv
%call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx)
%3 = load double, ptr %arrayidx, align 8, !tbaa !9
%add = fadd double %sum.029, %3
%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
%cmp1 = icmp slt i64 %indvars.iv.next, %5
br i1 %cmp1, label %for.body, label %for.cond5.preheader, !llvm.loop !11
for.body7: ; preds = %for.body7, %for.body7.lr.ph.new
%indvars.iv39 = phi i64 [ 0, %for.body7.lr.ph.new ], [ %indvars.iv.next40.3, %for.body7 ]
%a.033 = phi double [ 0.000000e+00, %for.body7.lr.ph.new ], [ %add11.3, %for.body7 ]
%niter = phi i64 [ 0, %for.body7.lr.ph.new ], [ %niter.next.3, %for.body7 ]
%arrayidx9 = getelementptr inbounds [1000 x double], ptr %s, i64 0, i64 %indvars.iv39
%6 = load double, ptr %arrayidx9, align 16, !tbaa !9
%sub = fsub double %6, %div
%square = fmul double %sub, %sub
%add11 = fadd double %a.033, %square
%indvars.iv.next40 = or i64 %indvars.iv39, 1
%arrayidx9.1 = getelementptr inbounds [1000 x double], ptr %s, i64 0, i64 %indvars.iv.next40
%7 = load double, ptr %arrayidx9.1, align 8, !tbaa !9
%sub.1 = fsub double %7, %div
%square.1 = fmul double %sub.1, %sub.1
%add11.1 = fadd double %add11, %square.1
%indvars.iv.next40.1 = or i64 %indvars.iv39, 2
%arrayidx9.2 = getelementptr inbounds [1000 x double], ptr %s, i64 0, i64 %indvars.iv.next40.1
%8 = load double, ptr %arrayidx9.2, align 16, !tbaa !9
%sub.2 = fsub double %8, %div
%square.2 = fmul double %sub.2, %sub.2
%add11.2 = fadd double %add11.1, %square.2
%indvars.iv.next40.2 = or i64 %indvars.iv39, 3
%arrayidx9.3 = getelementptr inbounds [1000 x double], ptr %s, i64 0, i64 %indvars.iv.next40.2
%9 = load double, ptr %arrayidx9.3, align 8, !tbaa !9
%sub.3 = fsub double %9, %div
%square.3 = fmul double %sub.3, %sub.3
%add11.3 = fadd double %add11.2, %square.3
%indvars.iv.next40.3 = add nuw nsw i64 %indvars.iv39, 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.end14.loopexit.unr-lcssa, label %for.body7, !llvm.loop !13
for.end14.loopexit.unr-lcssa: ; preds = %for.body7, %for.body7.lr.ph
%add11.lcssa.ph = phi double [ undef, %for.body7.lr.ph ], [ %add11.3, %for.body7 ]
%indvars.iv39.unr = phi i64 [ 0, %for.body7.lr.ph ], [ %indvars.iv.next40.3, %for.body7 ]
%a.033.unr = phi double [ 0.000000e+00, %for.body7.lr.ph ], [ %add11.3, %for.body7 ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.end14, label %for.body7.epil
for.body7.epil: ; preds = %for.end14.loopexit.unr-lcssa, %for.body7.epil
%indvars.iv39.epil = phi i64 [ %indvars.iv.next40.epil, %for.body7.epil ], [ %indvars.iv39.unr, %for.end14.loopexit.unr-lcssa ]
%a.033.epil = phi double [ %add11.epil, %for.body7.epil ], [ %a.033.unr, %for.end14.loopexit.unr-lcssa ]
%epil.iter = phi i64 [ %epil.iter.next, %for.body7.epil ], [ 0, %for.end14.loopexit.unr-lcssa ]
%arrayidx9.epil = getelementptr inbounds [1000 x double], ptr %s, i64 0, i64 %indvars.iv39.epil
%10 = load double, ptr %arrayidx9.epil, align 8, !tbaa !9
%sub.epil = fsub double %10, %div
%square.epil = fmul double %sub.epil, %sub.epil
%add11.epil = fadd double %a.033.epil, %square.epil
%indvars.iv.next40.epil = add nuw nsw i64 %indvars.iv39.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.end14, label %for.body7.epil, !llvm.loop !14
for.end14: ; preds = %for.end14.loopexit.unr-lcssa, %for.body7.epil, %for.cond5.preheader.for.end14_crit_edge
%conv15.pre-phi = phi double [ %.pre, %for.cond5.preheader.for.end14_crit_edge ], [ %conv, %for.body7.epil ], [ %conv, %for.end14.loopexit.unr-lcssa ]
%a.0.lcssa = phi double [ 0.000000e+00, %for.cond5.preheader.for.end14_crit_edge ], [ %add11.lcssa.ph, %for.end14.loopexit.unr-lcssa ], [ %add11.epil, %for.body7.epil ]
%div16 = fdiv double %a.0.lcssa, %conv15.pre-phi
%call17 = call double @sqrt(double noundef %div16) #4
%call18 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %call17)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%11 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp eq i32 %11, 0
br i1 %cmp, label %while.end, label %for.cond.preheader
while.end: ; preds = %for.end14, %entry
call void @llvm.lifetime.end.p0(i64 8000, ptr nonnull %s) #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 nofree nounwind willreturn memory(write)
declare double @sqrt(double 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
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"}
!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, !15}
!15 = !{!"llvm.loop.unroll.disable"}
|
#include<stdio.h>
#include<math.h>
int main(){
int i, n, point[1000];
double heikin, bunsan;
while(1){
scanf("%d",&n);
if(n==0) break;
heikin=bunsan=0;
for(i=0;i<n;i++){
scanf("%d",&point[i]);
heikin+=point[i];
}
heikin/=(double)n;
for(i=0;i<n;i++) bunsan+=pow(point[i]-heikin,2);
bunsan/=(double)n;
printf("%f\n",sqrt(bunsan));
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175150/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175150/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
%point = alloca [1000 x i32], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4
call void @llvm.lifetime.start.p0(i64 4000, ptr nonnull %point) #4
%call41 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp42 = icmp eq i32 %0, 0
br i1 %cmp42, label %while.end, label %for.cond.preheader
for.cond.preheader: ; preds = %entry, %for.end17
%1 = phi i32 [ %11, %for.end17 ], [ %0, %entry ]
%cmp133 = icmp sgt i32 %1, 0
br i1 %cmp133, label %for.body, label %for.end.thread
for.end.thread: ; preds = %for.cond.preheader
%conv550 = sitofp i32 %1 to double
br label %for.end17
for.body: ; preds = %for.cond.preheader, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %for.cond.preheader ]
%heikin.035 = phi double [ %add, %for.body ], [ 0.000000e+00, %for.cond.preheader ]
%arrayidx = getelementptr inbounds [1000 x i32], ptr %point, i64 0, i64 %indvars.iv
%call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx)
%2 = load i32, ptr %arrayidx, align 4, !tbaa !5
%conv = sitofp i32 %2 to double
%add = fadd double %heikin.035, %conv
%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
%cmp1 = icmp slt i64 %indvars.iv.next, %4
br i1 %cmp1, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body
%conv5 = sitofp i32 %3 to double
%div = fdiv double %add, %conv5
%cmp737 = icmp sgt i32 %3, 0
br i1 %cmp737, label %for.body9.preheader, label %for.end17
for.body9.preheader: ; preds = %for.end
%wide.trip.count = zext i32 %3 to i64
%xtraiter = and i64 %wide.trip.count, 3
%5 = icmp ult i32 %3, 4
br i1 %5, label %for.end17.loopexit.unr-lcssa, label %for.body9.preheader.new
for.body9.preheader.new: ; preds = %for.body9.preheader
%unroll_iter = and i64 %wide.trip.count, 4294967292
br label %for.body9
for.body9: ; preds = %for.body9, %for.body9.preheader.new
%indvars.iv45 = phi i64 [ 0, %for.body9.preheader.new ], [ %indvars.iv.next46.3, %for.body9 ]
%bunsan.039 = phi double [ 0.000000e+00, %for.body9.preheader.new ], [ %add14.3, %for.body9 ]
%niter = phi i64 [ 0, %for.body9.preheader.new ], [ %niter.next.3, %for.body9 ]
%arrayidx11 = getelementptr inbounds [1000 x i32], ptr %point, i64 0, i64 %indvars.iv45
%6 = load i32, ptr %arrayidx11, align 16, !tbaa !5
%conv12 = sitofp i32 %6 to double
%sub = fsub double %conv12, %div
%square = fmul double %sub, %sub
%add14 = fadd double %bunsan.039, %square
%indvars.iv.next46 = or i64 %indvars.iv45, 1
%arrayidx11.1 = getelementptr inbounds [1000 x i32], ptr %point, i64 0, i64 %indvars.iv.next46
%7 = load i32, ptr %arrayidx11.1, align 4, !tbaa !5
%conv12.1 = sitofp i32 %7 to double
%sub.1 = fsub double %conv12.1, %div
%square.1 = fmul double %sub.1, %sub.1
%add14.1 = fadd double %add14, %square.1
%indvars.iv.next46.1 = or i64 %indvars.iv45, 2
%arrayidx11.2 = getelementptr inbounds [1000 x i32], ptr %point, i64 0, i64 %indvars.iv.next46.1
%8 = load i32, ptr %arrayidx11.2, align 8, !tbaa !5
%conv12.2 = sitofp i32 %8 to double
%sub.2 = fsub double %conv12.2, %div
%square.2 = fmul double %sub.2, %sub.2
%add14.2 = fadd double %add14.1, %square.2
%indvars.iv.next46.2 = or i64 %indvars.iv45, 3
%arrayidx11.3 = getelementptr inbounds [1000 x i32], ptr %point, i64 0, i64 %indvars.iv.next46.2
%9 = load i32, ptr %arrayidx11.3, align 4, !tbaa !5
%conv12.3 = sitofp i32 %9 to double
%sub.3 = fsub double %conv12.3, %div
%square.3 = fmul double %sub.3, %sub.3
%add14.3 = fadd double %add14.2, %square.3
%indvars.iv.next46.3 = add nuw nsw i64 %indvars.iv45, 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.end17.loopexit.unr-lcssa, label %for.body9, !llvm.loop !11
for.end17.loopexit.unr-lcssa: ; preds = %for.body9, %for.body9.preheader
%add14.lcssa.ph = phi double [ undef, %for.body9.preheader ], [ %add14.3, %for.body9 ]
%indvars.iv45.unr = phi i64 [ 0, %for.body9.preheader ], [ %indvars.iv.next46.3, %for.body9 ]
%bunsan.039.unr = phi double [ 0.000000e+00, %for.body9.preheader ], [ %add14.3, %for.body9 ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.end17, label %for.body9.epil
for.body9.epil: ; preds = %for.end17.loopexit.unr-lcssa, %for.body9.epil
%indvars.iv45.epil = phi i64 [ %indvars.iv.next46.epil, %for.body9.epil ], [ %indvars.iv45.unr, %for.end17.loopexit.unr-lcssa ]
%bunsan.039.epil = phi double [ %add14.epil, %for.body9.epil ], [ %bunsan.039.unr, %for.end17.loopexit.unr-lcssa ]
%epil.iter = phi i64 [ %epil.iter.next, %for.body9.epil ], [ 0, %for.end17.loopexit.unr-lcssa ]
%arrayidx11.epil = getelementptr inbounds [1000 x i32], ptr %point, i64 0, i64 %indvars.iv45.epil
%10 = load i32, ptr %arrayidx11.epil, align 4, !tbaa !5
%conv12.epil = sitofp i32 %10 to double
%sub.epil = fsub double %conv12.epil, %div
%square.epil = fmul double %sub.epil, %sub.epil
%add14.epil = fadd double %bunsan.039.epil, %square.epil
%indvars.iv.next46.epil = add nuw nsw i64 %indvars.iv45.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.end17, label %for.body9.epil, !llvm.loop !12
for.end17: ; preds = %for.end17.loopexit.unr-lcssa, %for.body9.epil, %for.end.thread, %for.end
%conv553 = phi double [ %conv5, %for.end ], [ %conv550, %for.end.thread ], [ %conv5, %for.body9.epil ], [ %conv5, %for.end17.loopexit.unr-lcssa ]
%bunsan.0.lcssa = phi double [ 0.000000e+00, %for.end ], [ 0.000000e+00, %for.end.thread ], [ %add14.lcssa.ph, %for.end17.loopexit.unr-lcssa ], [ %add14.epil, %for.body9.epil ]
%div19 = fdiv double %bunsan.0.lcssa, %conv553
%call20 = call double @sqrt(double noundef %div19) #4
%call21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %call20)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%11 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp eq i32 %11, 0
br i1 %cmp, label %while.end, label %for.cond.preheader
while.end: ; preds = %for.end17, %entry
call void @llvm.lifetime.end.p0(i64 4000, ptr nonnull %point) #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 nofree nounwind willreturn memory(write)
declare double @sqrt(double 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
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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
|
//ITP1-10-C: Standard Deviation
//2019.05.20
#include <stdio.h>
#include <math.h>
int main(void){
int n_stdnt;
double tmp;
double m, sig_squares, sig;
while (1) {
scanf("%d\n", &n_stdnt);
if (n_stdnt == 0) break;
double score[n_stdnt];
tmp = 0;
for (int i = 0; i < n_stdnt; i++) {
scanf("%lf", &score[i]);
tmp = tmp + score[i];
}
m = tmp/n_stdnt;
tmp = 0;
for (int i = 0; i < n_stdnt; i++) {
tmp = tmp + pow(score[i]-m, 2);
}
sig_squares = tmp/n_stdnt;
sig = sqrt(sig_squares);
printf("%lf\n", sig);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175200/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175200/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 [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%lf\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n_stdnt = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n_stdnt) #5
%call40 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n_stdnt)
%0 = load i32, ptr %n_stdnt, align 4, !tbaa !5
%cmp41 = icmp eq i32 %0, 0
br i1 %cmp41, label %while.end, label %if.end
if.end: ; preds = %entry, %for.cond.cleanup9
%1 = phi i32 [ %10, %for.cond.cleanup9 ], [ %0, %entry ]
%2 = zext i32 %1 to i64
%3 = call ptr @llvm.stacksave.p0()
%vla = alloca double, i64 %2, align 16
%4 = load i32, ptr %n_stdnt, align 4, !tbaa !5
%cmp132 = icmp sgt i32 %4, 0
br i1 %cmp132, label %for.body, label %for.cond.cleanup.thread
for.cond.cleanup.thread: ; preds = %if.end
%conv49 = sitofp i32 %4 to double
br label %for.cond.cleanup9
for.cond.cleanup: ; preds = %for.body
%conv = sitofp i32 %7 to double
%div = fdiv double %add, %conv
%cmp736 = icmp sgt i32 %7, 0
br i1 %cmp736, label %for.body10.preheader, label %for.cond.cleanup9
for.body10.preheader: ; preds = %for.cond.cleanup
%wide.trip.count = zext i32 %7 to i64
%xtraiter = and i64 %wide.trip.count, 3
%5 = icmp ult i32 %7, 4
br i1 %5, label %for.cond.cleanup9.loopexit.unr-lcssa, label %for.body10.preheader.new
for.body10.preheader.new: ; preds = %for.body10.preheader
%unroll_iter = and i64 %wide.trip.count, 4294967292
br label %for.body10
for.body: ; preds = %if.end, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %if.end ]
%tmp.033 = phi double [ %add, %for.body ], [ 0.000000e+00, %if.end ]
%arrayidx = getelementptr inbounds double, ptr %vla, i64 %indvars.iv
%call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx)
%6 = load double, ptr %arrayidx, align 8, !tbaa !9
%add = fadd double %tmp.033, %6
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%7 = load i32, ptr %n_stdnt, align 4, !tbaa !5
%8 = sext i32 %7 to i64
%cmp1 = icmp slt i64 %indvars.iv.next, %8
br i1 %cmp1, label %for.body, label %for.cond.cleanup, !llvm.loop !11
for.cond.cleanup9.loopexit.unr-lcssa: ; preds = %for.body10, %for.body10.preheader
%add14.lcssa.ph = phi double [ undef, %for.body10.preheader ], [ %add14.3, %for.body10 ]
%indvars.iv44.unr = phi i64 [ 0, %for.body10.preheader ], [ %indvars.iv.next45.3, %for.body10 ]
%tmp.137.unr = phi double [ 0.000000e+00, %for.body10.preheader ], [ %add14.3, %for.body10 ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.cond.cleanup9, label %for.body10.epil
for.body10.epil: ; preds = %for.cond.cleanup9.loopexit.unr-lcssa, %for.body10.epil
%indvars.iv44.epil = phi i64 [ %indvars.iv.next45.epil, %for.body10.epil ], [ %indvars.iv44.unr, %for.cond.cleanup9.loopexit.unr-lcssa ]
%tmp.137.epil = phi double [ %add14.epil, %for.body10.epil ], [ %tmp.137.unr, %for.cond.cleanup9.loopexit.unr-lcssa ]
%epil.iter = phi i64 [ %epil.iter.next, %for.body10.epil ], [ 0, %for.cond.cleanup9.loopexit.unr-lcssa ]
%arrayidx12.epil = getelementptr inbounds double, ptr %vla, i64 %indvars.iv44.epil
%9 = load double, ptr %arrayidx12.epil, align 8, !tbaa !9
%sub.epil = fsub double %9, %div
%square.epil = fmul double %sub.epil, %sub.epil
%add14.epil = fadd double %tmp.137.epil, %square.epil
%indvars.iv.next45.epil = add nuw nsw i64 %indvars.iv44.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.cleanup9, label %for.body10.epil, !llvm.loop !13
for.cond.cleanup9: ; preds = %for.cond.cleanup9.loopexit.unr-lcssa, %for.body10.epil, %for.cond.cleanup.thread, %for.cond.cleanup
%conv52 = phi double [ %conv, %for.cond.cleanup ], [ %conv49, %for.cond.cleanup.thread ], [ %conv, %for.body10.epil ], [ %conv, %for.cond.cleanup9.loopexit.unr-lcssa ]
%tmp.1.lcssa = phi double [ 0.000000e+00, %for.cond.cleanup ], [ 0.000000e+00, %for.cond.cleanup.thread ], [ %add14.lcssa.ph, %for.cond.cleanup9.loopexit.unr-lcssa ], [ %add14.epil, %for.body10.epil ]
%div19 = fdiv double %tmp.1.lcssa, %conv52
%call20 = call double @sqrt(double noundef %div19) #5
%call21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %call20)
call void @llvm.stackrestore.p0(ptr %3)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n_stdnt)
%10 = load i32, ptr %n_stdnt, align 4, !tbaa !5
%cmp = icmp eq i32 %10, 0
br i1 %cmp, label %while.end, label %if.end
for.body10: ; preds = %for.body10, %for.body10.preheader.new
%indvars.iv44 = phi i64 [ 0, %for.body10.preheader.new ], [ %indvars.iv.next45.3, %for.body10 ]
%tmp.137 = phi double [ 0.000000e+00, %for.body10.preheader.new ], [ %add14.3, %for.body10 ]
%niter = phi i64 [ 0, %for.body10.preheader.new ], [ %niter.next.3, %for.body10 ]
%arrayidx12 = getelementptr inbounds double, ptr %vla, i64 %indvars.iv44
%11 = load double, ptr %arrayidx12, align 16, !tbaa !9
%sub = fsub double %11, %div
%square = fmul double %sub, %sub
%add14 = fadd double %tmp.137, %square
%indvars.iv.next45 = or i64 %indvars.iv44, 1
%arrayidx12.1 = getelementptr inbounds double, ptr %vla, i64 %indvars.iv.next45
%12 = load double, ptr %arrayidx12.1, align 8, !tbaa !9
%sub.1 = fsub double %12, %div
%square.1 = fmul double %sub.1, %sub.1
%add14.1 = fadd double %add14, %square.1
%indvars.iv.next45.1 = or i64 %indvars.iv44, 2
%arrayidx12.2 = getelementptr inbounds double, ptr %vla, i64 %indvars.iv.next45.1
%13 = load double, ptr %arrayidx12.2, align 16, !tbaa !9
%sub.2 = fsub double %13, %div
%square.2 = fmul double %sub.2, %sub.2
%add14.2 = fadd double %add14.1, %square.2
%indvars.iv.next45.2 = or i64 %indvars.iv44, 3
%arrayidx12.3 = getelementptr inbounds double, ptr %vla, i64 %indvars.iv.next45.2
%14 = load double, ptr %arrayidx12.3, align 8, !tbaa !9
%sub.3 = fsub double %14, %div
%square.3 = fmul double %sub.3, %sub.3
%add14.3 = fadd double %add14.2, %square.3
%indvars.iv.next45.3 = add nuw nsw i64 %indvars.iv44, 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.cleanup9.loopexit.unr-lcssa, label %for.body10, !llvm.loop !15
while.end: ; preds = %for.cond.cleanup9, %entry
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n_stdnt) #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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; 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 #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 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 = { 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, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !12}
|
#include<stdio.h>
#include<math.h>
int main(){
int n,i;
double jijou,s[1000],goukei,heikin,goukei2,hensa;
while(1){
goukei=0,heikin=0,goukei2=0,hensa=0,jijou=0;
scanf("%d",&n);
if(n==0) break;
for(i=0;i<n;i++){
scanf("%lf",&s[i]);
goukei+=s[i];
}
heikin=goukei/i;
for(i=0;i<n;i++){
jijou=pow(s[i]-heikin,2);
goukei2+=jijou;
}
hensa=sqrt(goukei2/i);
printf("%lf\n",hensa);
}
return 0; }
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175244/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175244/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 [5 x i8] c"%lf\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%s = alloca [1000 x double], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4
call void @llvm.lifetime.start.p0(i64 8000, ptr nonnull %s) #4
%call40 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp41 = icmp eq i32 %0, 0
br i1 %cmp41, label %while.end, label %for.cond.preheader
for.cond.preheader: ; preds = %entry, %for.end15
%1 = phi i32 [ %12, %for.end15 ], [ %0, %entry ]
%cmp130 = icmp sgt i32 %1, 0
br i1 %cmp130, label %for.body, label %for.end15
for.body: ; preds = %for.cond.preheader, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %for.cond.preheader ]
%goukei.032 = phi double [ %add, %for.body ], [ 0.000000e+00, %for.cond.preheader ]
%arrayidx = getelementptr inbounds [1000 x double], ptr %s, i64 0, i64 %indvars.iv
%call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx)
%2 = load double, ptr %arrayidx, align 8, !tbaa !9
%add = fadd double %goukei.032, %2
%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
%cmp1 = icmp slt i64 %indvars.iv.next, %4
br i1 %cmp1, label %for.body, label %for.end, !llvm.loop !11
for.end: ; preds = %for.body
%5 = trunc i64 %indvars.iv.next to i32
%conv = sitofp i32 %5 to double
%div = fdiv double %add, %conv
%cmp635 = icmp sgt i32 %3, 0
br i1 %cmp635, label %for.body8.preheader, label %for.end15
for.body8.preheader: ; preds = %for.end
%wide.trip.count = zext i32 %3 to i64
%xtraiter = and i64 %wide.trip.count, 3
%6 = icmp ult i32 %3, 4
br i1 %6, label %for.end15.loopexit.unr-lcssa, label %for.body8.preheader.new
for.body8.preheader.new: ; preds = %for.body8.preheader
%unroll_iter = and i64 %wide.trip.count, 4294967292
br label %for.body8
for.body8: ; preds = %for.body8, %for.body8.preheader.new
%indvars.iv44 = phi i64 [ 0, %for.body8.preheader.new ], [ %indvars.iv.next45.3, %for.body8 ]
%goukei2.037 = phi double [ 0.000000e+00, %for.body8.preheader.new ], [ %add12.3, %for.body8 ]
%niter = phi i64 [ 0, %for.body8.preheader.new ], [ %niter.next.3, %for.body8 ]
%arrayidx10 = getelementptr inbounds [1000 x double], ptr %s, i64 0, i64 %indvars.iv44
%7 = load double, ptr %arrayidx10, align 16, !tbaa !9
%sub = fsub double %7, %div
%square = fmul double %sub, %sub
%add12 = fadd double %goukei2.037, %square
%indvars.iv.next45 = or i64 %indvars.iv44, 1
%arrayidx10.1 = getelementptr inbounds [1000 x double], ptr %s, i64 0, i64 %indvars.iv.next45
%8 = load double, ptr %arrayidx10.1, align 8, !tbaa !9
%sub.1 = fsub double %8, %div
%square.1 = fmul double %sub.1, %sub.1
%add12.1 = fadd double %add12, %square.1
%indvars.iv.next45.1 = or i64 %indvars.iv44, 2
%arrayidx10.2 = getelementptr inbounds [1000 x double], ptr %s, i64 0, i64 %indvars.iv.next45.1
%9 = load double, ptr %arrayidx10.2, align 16, !tbaa !9
%sub.2 = fsub double %9, %div
%square.2 = fmul double %sub.2, %sub.2
%add12.2 = fadd double %add12.1, %square.2
%indvars.iv.next45.2 = or i64 %indvars.iv44, 3
%arrayidx10.3 = getelementptr inbounds [1000 x double], ptr %s, i64 0, i64 %indvars.iv.next45.2
%10 = load double, ptr %arrayidx10.3, align 8, !tbaa !9
%sub.3 = fsub double %10, %div
%square.3 = fmul double %sub.3, %sub.3
%add12.3 = fadd double %add12.2, %square.3
%indvars.iv.next45.3 = add nuw nsw i64 %indvars.iv44, 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.end15.loopexit.unr-lcssa, label %for.body8, !llvm.loop !13
for.end15.loopexit.unr-lcssa: ; preds = %for.body8, %for.body8.preheader
%add12.lcssa.ph = phi double [ undef, %for.body8.preheader ], [ %add12.3, %for.body8 ]
%indvars.iv44.unr = phi i64 [ 0, %for.body8.preheader ], [ %indvars.iv.next45.3, %for.body8 ]
%goukei2.037.unr = phi double [ 0.000000e+00, %for.body8.preheader ], [ %add12.3, %for.body8 ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.end15, label %for.body8.epil
for.body8.epil: ; preds = %for.end15.loopexit.unr-lcssa, %for.body8.epil
%indvars.iv44.epil = phi i64 [ %indvars.iv.next45.epil, %for.body8.epil ], [ %indvars.iv44.unr, %for.end15.loopexit.unr-lcssa ]
%goukei2.037.epil = phi double [ %add12.epil, %for.body8.epil ], [ %goukei2.037.unr, %for.end15.loopexit.unr-lcssa ]
%epil.iter = phi i64 [ %epil.iter.next, %for.body8.epil ], [ 0, %for.end15.loopexit.unr-lcssa ]
%arrayidx10.epil = getelementptr inbounds [1000 x double], ptr %s, i64 0, i64 %indvars.iv44.epil
%11 = load double, ptr %arrayidx10.epil, align 8, !tbaa !9
%sub.epil = fsub double %11, %div
%square.epil = fmul double %sub.epil, %sub.epil
%add12.epil = fadd double %goukei2.037.epil, %square.epil
%indvars.iv.next45.epil = add nuw nsw i64 %indvars.iv44.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.end15, label %for.body8.epil, !llvm.loop !14
for.end15: ; preds = %for.end15.loopexit.unr-lcssa, %for.body8.epil, %for.cond.preheader, %for.end
%i.1.lcssa = phi i32 [ 0, %for.end ], [ 0, %for.cond.preheader ], [ %3, %for.body8.epil ], [ %3, %for.end15.loopexit.unr-lcssa ]
%goukei2.0.lcssa = phi double [ 0.000000e+00, %for.end ], [ 0.000000e+00, %for.cond.preheader ], [ %add12.lcssa.ph, %for.end15.loopexit.unr-lcssa ], [ %add12.epil, %for.body8.epil ]
%conv16 = sitofp i32 %i.1.lcssa to double
%div17 = fdiv double %goukei2.0.lcssa, %conv16
%call18 = call double @sqrt(double noundef %div17) #4
%call19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %call18)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%12 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp eq i32 %12, 0
br i1 %cmp, label %while.end, label %for.cond.preheader
while.end: ; preds = %for.end15, %entry
call void @llvm.lifetime.end.p0(i64 8000, ptr nonnull %s) #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"}
!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, !15}
!15 = !{!"llvm.loop.unroll.disable"}
|
#include<stdio.h>
int main(){
long long int x;
scanf("%lld",&x);
long long i=1,sum=1;
while(1){
if(i*(i+1)/2>=x)break;
i++;
}
printf("%lld",i);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175288/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175288/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"%lld\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i64, ptr %x, align 8, !tbaa !5
br label %while.cond
while.cond: ; preds = %while.cond, %entry
%i.0 = phi i64 [ 1, %entry ], [ %add, %while.cond ]
%add = add nuw nsw i64 %i.0, 1
%mul = mul nsw i64 %add, %i.0
%div5 = lshr i64 %mul, 1
%cmp.not = icmp slt i64 %div5, %0
br i1 %cmp.not, label %while.cond, label %while.end
while.end: ; preds = %while.cond
%call1 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i64 noundef %i.0)
call void @llvm.lifetime.end.p0(i64 8, 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
#include <math.h>
//f(a,b)a,bで桁の大きい方
int min(int a,int b){
if(a<b)return a;
else return b;
}
int main(void){
int x;
long long int n;
scanf("%d",&x);
int i,j;
int t=1;
while(0.5*t*(t+1)<x){
t++;
}
printf("%d\n",t);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175338/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175338/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
; 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: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #1 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%conv3 = sitofp i32 %0 to double
br label %while.cond
while.cond: ; preds = %while.cond, %entry
%t.0 = phi i32 [ 1, %entry ], [ %add, %while.cond ]
%conv = sitofp i32 %t.0 to double
%mul = fmul double %conv, 5.000000e-01
%add = add nuw nsw i32 %t.0, 1
%conv1 = sitofp i32 %add to double
%mul2 = fmul double %mul, %conv1
%cmp = fcmp olt double %mul2, %conv3
br i1 %cmp, label %while.cond, label %while.end, !llvm.loop !9
while.end: ; preds = %while.cond
%call5 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %t.0)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #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) #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
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #4
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 = { 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"}
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void proc(int n);
typedef struct pile PILE;
PILE *pile_new(int n);
void pile_delete(PILE *self);
void pile_shuffle(PILE *self, int x, int y);
int pile_count(PILE *self, int p, int q, int r);
PILE *pile_cut(PILE *self, int x);
void pile_join(PILE *self, PILE *joined);
typedef struct group GROUP;
int main()
{
while (1) {
int n;
scanf("%d", &n);
if (n == 0) {
break;
} else {
proc(n);
}
}
return 0;
}
void proc(int n)
{
int m, p, q, r;
scanf("%d", &m);
scanf("%d %d %d", &p, &q, &r);
PILE *pile = pile_new(n);
for (; m > 0; m--) {
int x, y;
scanf("%d %d", &x, &y);
pile_shuffle(pile, x, y);
}
printf("%d\n", pile_count(pile, p, q, r));
pile_delete(pile);
}
struct pile {
GROUP *first;
GROUP *last;
};
struct group {
int start;
int length;
GROUP *next;
};
PILE *pile_new(int n)
{
PILE *self;
self = malloc(sizeof(PILE));
self->first = self->last = malloc(sizeof(GROUP));
self->first->start = 1;
self->first->length = n;
self->first->next = NULL;
return self;
}
void pile_delete(PILE *self)
{
GROUP *w;
while (self->first) {
w = self->first->next;
free(self->first);
self->first = w;
}
free(self);
}
void pile_shuffle(PILE *self, int x, int y)
{
PILE *p0, *p1, *p2;
p0 = malloc(sizeof(PILE));
p0->first = self->first;
p0->last = self->last;
p1 = pile_cut(p0, x);
p2 = pile_cut(p1, y-x);
pile_join(p2, p1);
pile_join(p2, p0);
self->first = p2->first;
self->last = p2->last;
free(p2);
}
PILE *pile_cut(PILE *self, int x)
{
PILE *cut;
int rest;
GROUP *cur;
cut = malloc(sizeof(PILE));
rest = x;
cur = self->first;
while (cur->length < rest) {
rest -= cur->length;
cur = cur->next;
}
if (cur->length == rest) {
cut->first = cur->next;
cut->last = self->last;
cur->next = NULL;
self->last = cur;
} else {
cut->first = malloc(sizeof(GROUP));
cut->first->start = cur->start + rest;
cut->first->length = cur->length - rest;
cut->first->next = cur->next;
cut->last = (cur == self->last) ? cut->first : self->last;
cur->length = rest;
cur->next = NULL;
self->last = cur;
}
return cut;
}
void pile_join(PILE *self, PILE *joined)
{
self->last->next = joined->first;
self->last = joined->last;
free(joined);
}
int pile_count(PILE *self, int p, int q, int r)
{
int offset, count;
GROUP *cur;
offset = 0;
count = 0;
cur = self->first;
while (cur) {
if (p <= offset + cur->length && q > offset) {
int out_p, out_q, start, length;
out_p = p <= offset ? 0 : p - offset - 1;
out_q = q >= offset + cur->length ? 0 : offset + cur->length - q;
start = cur->start + out_p;
length = cur->length - out_p - out_q;
if (start + length - 1 <= r) {
count += length;
} else if (start <= r) {
count += r - start + 1;
}
}
offset += cur->length;
cur = cur->next;
}
return count;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175389/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175389/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.pile = type { ptr, ptr }
%struct.group = type { i32, i32, ptr }
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: 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) #9
%call3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp4 = icmp eq i32 %0, 0
br i1 %cmp4, label %while.end, label %cleanup
cleanup: ; preds = %entry, %cleanup
%1 = phi i32 [ %2, %cleanup ], [ %0, %entry ]
call void @proc(i32 noundef %1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #9
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #9
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp eq i32 %2, 0
br i1 %cmp, label %while.end, label %cleanup
while.end: ; preds = %cleanup, %entry
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #9
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: nounwind uwtable
define dso_local void @proc(i32 noundef %n) local_unnamed_addr #0 {
entry:
%m = alloca i32, align 4
%p = alloca i32, align 4
%q = alloca i32, align 4
%r = alloca i32, align 4
%x = alloca i32, align 4
%y = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #9
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %p) #9
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %q) #9
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #9
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %m)
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %p, ptr noundef nonnull %q, ptr noundef nonnull %r)
%call.i = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #10
%call1.i = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #10
%last.i = getelementptr inbounds %struct.pile, ptr %call.i, i64 0, i32 1
store ptr %call1.i, ptr %last.i, align 8, !tbaa !9
store ptr %call1.i, ptr %call.i, align 8, !tbaa !12
store i32 1, ptr %call1.i, align 8, !tbaa !13
%length.i = getelementptr inbounds %struct.group, ptr %call1.i, i64 0, i32 1
store i32 %n, ptr %length.i, align 4, !tbaa !15
%next.i = getelementptr inbounds %struct.group, ptr %call1.i, i64 0, i32 2
store ptr null, ptr %next.i, align 8, !tbaa !16
%.pr = load i32, ptr %m, align 4, !tbaa !5
%cmp15 = icmp sgt i32 %.pr, 0
br i1 %cmp15, label %for.body, label %while.body.lr.ph.i
for.body: ; preds = %entry, %for.body
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #9
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #9
%call3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %x, ptr noundef nonnull %y)
%0 = load i32, ptr %x, align 4, !tbaa !5
%1 = load i32, ptr %y, align 4, !tbaa !5
call void @pile_shuffle(ptr noundef nonnull %call.i, i32 noundef %0, i32 noundef %1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #9
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #9
%2 = load i32, ptr %m, align 4, !tbaa !5
%dec = add nsw i32 %2, -1
store i32 %dec, ptr %m, align 4, !tbaa !5
%cmp = icmp sgt i32 %2, 1
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !17
for.end: ; preds = %for.body
%cur.059.i.pre = load ptr, ptr %call.i, align 8, !tbaa !19
%tobool.not60.i = icmp eq ptr %cur.059.i.pre, null
br i1 %tobool.not60.i, label %pile_count.exit.thread, label %while.body.lr.ph.i
pile_count.exit.thread: ; preds = %for.end
%call514 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 0)
br label %pile_delete.exit
while.body.lr.ph.i: ; preds = %entry, %for.end
%cur.059.i19 = phi ptr [ %cur.059.i.pre, %for.end ], [ %call1.i, %entry ]
%3 = load i32, ptr %p, align 4, !tbaa !5
%4 = load i32, ptr %q, align 4, !tbaa !5
%5 = load i32, ptr %r, align 4, !tbaa !5
%sub27.i = add i32 %5, 1
br label %while.body.i
while.body.i: ; preds = %if.end31.i, %while.body.lr.ph.i
%cur.063.i = phi ptr [ %cur.059.i19, %while.body.lr.ph.i ], [ %cur.0.i, %if.end31.i ]
%offset.062.i = phi i32 [ 0, %while.body.lr.ph.i ], [ %add.i, %if.end31.i ]
%count.061.i = phi i32 [ 0, %while.body.lr.ph.i ], [ %count.2.i, %if.end31.i ]
%length.i8 = getelementptr inbounds %struct.group, ptr %cur.063.i, i64 0, i32 1
%6 = load i32, ptr %length.i8, align 4, !tbaa !15
%add.i = add nsw i32 %6, %offset.062.i
%cmp.not.i = icmp sge i32 %add.i, %3
%cmp1.i = icmp slt i32 %offset.062.i, %4
%or.cond.i = and i1 %cmp1.i, %cmp.not.i
br i1 %or.cond.i, label %if.then.i, label %if.end31.i
if.then.i: ; preds = %while.body.i
%cmp3.not.i = icmp slt i32 %offset.062.i, %3
%7 = xor i32 %offset.062.i, -1
%sub4.i = add i32 %3, %7
%cond.i = select i1 %cmp3.not.i, i32 %sub4.i, i32 0
%cmp7.not.i = icmp sgt i32 %add.i, %4
%sub12.neg.i = sub i32 %4, %add.i
%spec.select.i = select i1 %cmp7.not.i, i32 %sub12.neg.i, i32 0
%8 = load i32, ptr %cur.063.i, align 8, !tbaa !13
%add16.i = add nsw i32 %8, %cond.i
%sub18.i = sub nsw i32 %6, %cond.i
%sub19.i = add i32 %spec.select.i, %sub18.i
%add20.i = add i32 %sub19.i, -1
%sub21.i = add i32 %add20.i, %add16.i
%cmp22.not.i = icmp sgt i32 %sub21.i, %5
br i1 %cmp22.not.i, label %if.else.i, label %if.then23.i
if.then23.i: ; preds = %if.then.i
%add24.i = add nsw i32 %sub19.i, %count.061.i
br label %if.end31.i
if.else.i: ; preds = %if.then.i
%cmp25.not.i = icmp sgt i32 %add16.i, %5
br i1 %cmp25.not.i, label %if.end31.i, label %if.then26.i
if.then26.i: ; preds = %if.else.i
%add28.i = add i32 %sub27.i, %count.061.i
%add29.i = sub i32 %add28.i, %add16.i
br label %if.end31.i
if.end31.i: ; preds = %if.then26.i, %if.else.i, %if.then23.i, %while.body.i
%count.2.i = phi i32 [ %count.061.i, %while.body.i ], [ %add24.i, %if.then23.i ], [ %add29.i, %if.then26.i ], [ %count.061.i, %if.else.i ]
%next.i9 = getelementptr inbounds %struct.group, ptr %cur.063.i, i64 0, i32 2
%cur.0.i = load ptr, ptr %next.i9, align 8, !tbaa !19
%tobool.not.i = icmp eq ptr %cur.0.i, null
br i1 %tobool.not.i, label %pile_count.exit, label %while.body.i, !llvm.loop !20
pile_count.exit: ; preds = %if.end31.i
%call5 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %count.2.i)
br label %while.body.i10
while.body.i10: ; preds = %pile_count.exit, %while.body.i10
%9 = phi ptr [ %10, %while.body.i10 ], [ %cur.059.i19, %pile_count.exit ]
%next.i11 = getelementptr inbounds %struct.group, ptr %9, i64 0, i32 2
%10 = load ptr, ptr %next.i11, align 8, !tbaa !16
call void @free(ptr noundef nonnull %9) #9
%tobool.not.i12 = icmp eq ptr %10, null
br i1 %tobool.not.i12, label %pile_delete.exit, label %while.body.i10, !llvm.loop !21
pile_delete.exit: ; preds = %while.body.i10, %pile_count.exit.thread
call void @free(ptr noundef nonnull %call.i) #9
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #9
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %q) #9
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %p) #9
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %m) #9
ret void
}
; 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 nounwind willreturn memory(write, argmem: none, inaccessiblemem: readwrite) uwtable
define dso_local noalias ptr @pile_new(i32 noundef %n) local_unnamed_addr #3 {
entry:
%call = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #10
%call1 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #10
%last = getelementptr inbounds %struct.pile, ptr %call, i64 0, i32 1
store ptr %call1, ptr %last, align 8, !tbaa !9
store ptr %call1, ptr %call, align 8, !tbaa !12
store i32 1, ptr %call1, align 8, !tbaa !13
%length = getelementptr inbounds %struct.group, ptr %call1, i64 0, i32 1
store i32 %n, ptr %length, align 4, !tbaa !15
%next = getelementptr inbounds %struct.group, ptr %call1, i64 0, i32 2
store ptr null, ptr %next, align 8, !tbaa !16
ret ptr %call
}
; Function Attrs: nofree nounwind uwtable
define dso_local void @pile_shuffle(ptr nocapture noundef %self, i32 noundef %x, i32 noundef %y) local_unnamed_addr #4 {
entry:
%0 = load ptr, ptr %self, align 8, !tbaa !12
%last = getelementptr inbounds %struct.pile, ptr %self, i64 0, i32 1
%1 = load ptr, ptr %last, align 8, !tbaa !9
%length62.i = getelementptr inbounds %struct.group, ptr %0, i64 0, i32 1
%2 = load i32, ptr %length62.i, align 4, !tbaa !15
%cmp63.i = icmp slt i32 %2, %x
br i1 %cmp63.i, label %while.body.i, label %while.end.i
while.body.i: ; preds = %entry, %while.body.i
%3 = phi i32 [ %4, %while.body.i ], [ %2, %entry ]
%cur.065.i = phi ptr [ %cur.0.i, %while.body.i ], [ %0, %entry ]
%rest.064.i = phi i32 [ %sub.i, %while.body.i ], [ %x, %entry ]
%sub.i = sub nsw i32 %rest.064.i, %3
%next.i = getelementptr inbounds %struct.group, ptr %cur.065.i, i64 0, i32 2
%cur.0.i = load ptr, ptr %next.i, align 8, !tbaa !19
%length.i = getelementptr inbounds %struct.group, ptr %cur.0.i, i64 0, i32 1
%4 = load i32, ptr %length.i, align 4, !tbaa !15
%cmp.i = icmp slt i32 %4, %sub.i
br i1 %cmp.i, label %while.body.i, label %while.end.i, !llvm.loop !22
while.end.i: ; preds = %while.body.i, %entry
%5 = phi ptr [ %0, %entry ], [ %cur.0.i, %while.body.i ]
%rest.0.lcssa.i = phi i32 [ %x, %entry ], [ %sub.i, %while.body.i ]
%.lcssa.i = phi i32 [ %2, %entry ], [ %4, %while.body.i ]
%cmp3.i = icmp eq i32 %.lcssa.i, %rest.0.lcssa.i
br i1 %cmp3.i, label %if.then.i, label %if.else.i
if.then.i: ; preds = %while.end.i
%next4.i = getelementptr inbounds %struct.group, ptr %5, i64 0, i32 2
%6 = load ptr, ptr %next4.i, align 8, !tbaa !16
br label %pile_cut.exit
if.else.i: ; preds = %while.end.i
%length.le.i = getelementptr inbounds %struct.group, ptr %5, i64 0, i32 1
%call9.i = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #10
%7 = load i32, ptr %5, align 8, !tbaa !13
%add.i = add nsw i32 %7, %rest.0.lcssa.i
store i32 %add.i, ptr %call9.i, align 8, !tbaa !13
%sub14.i = sub nsw i32 %.lcssa.i, %rest.0.lcssa.i
%length16.i = getelementptr inbounds %struct.group, ptr %call9.i, i64 0, i32 1
store i32 %sub14.i, ptr %length16.i, align 4, !tbaa !15
%next17.i = getelementptr inbounds %struct.group, ptr %5, i64 0, i32 2
%8 = load ptr, ptr %next17.i, align 8, !tbaa !16
%next19.i = getelementptr inbounds %struct.group, ptr %call9.i, i64 0, i32 2
store ptr %8, ptr %next19.i, align 8, !tbaa !16
%cmp21.i = icmp eq ptr %5, %1
%spec.select.i = select i1 %cmp21.i, ptr %call9.i, ptr %1
store i32 %rest.0.lcssa.i, ptr %length.le.i, align 4, !tbaa !15
br label %pile_cut.exit
pile_cut.exit: ; preds = %if.then.i, %if.else.i
%call9.i.sink = phi ptr [ %6, %if.then.i ], [ %call9.i, %if.else.i ]
%9 = phi ptr [ %1, %if.then.i ], [ %spec.select.i, %if.else.i ]
%next17.sink.i = phi ptr [ %next4.i, %if.then.i ], [ %next17.i, %if.else.i ]
store ptr null, ptr %next17.sink.i, align 8, !tbaa !16
%sub = sub nsw i32 %y, %x
%length62.i23 = getelementptr inbounds %struct.group, ptr %call9.i.sink, i64 0, i32 1
%10 = load i32, ptr %length62.i23, align 4, !tbaa !15
%cmp63.i24 = icmp slt i32 %10, %sub
br i1 %cmp63.i24, label %while.body.i48, label %while.end.i25
while.body.i48: ; preds = %pile_cut.exit, %while.body.i48
%11 = phi i32 [ %12, %while.body.i48 ], [ %10, %pile_cut.exit ]
%cur.065.i49 = phi ptr [ %cur.0.i53, %while.body.i48 ], [ %call9.i.sink, %pile_cut.exit ]
%rest.064.i50 = phi i32 [ %sub.i51, %while.body.i48 ], [ %sub, %pile_cut.exit ]
%sub.i51 = sub nsw i32 %rest.064.i50, %11
%next.i52 = getelementptr inbounds %struct.group, ptr %cur.065.i49, i64 0, i32 2
%cur.0.i53 = load ptr, ptr %next.i52, align 8, !tbaa !19
%length.i54 = getelementptr inbounds %struct.group, ptr %cur.0.i53, i64 0, i32 1
%12 = load i32, ptr %length.i54, align 4, !tbaa !15
%cmp.i55 = icmp slt i32 %12, %sub.i51
br i1 %cmp.i55, label %while.body.i48, label %while.end.i25, !llvm.loop !22
while.end.i25: ; preds = %while.body.i48, %pile_cut.exit
%cur.0.lcssa60.i26 = phi ptr [ %call9.i.sink, %pile_cut.exit ], [ %cur.0.i53, %while.body.i48 ]
%rest.0.lcssa.i27 = phi i32 [ %sub, %pile_cut.exit ], [ %sub.i51, %while.body.i48 ]
%.lcssa.i28 = phi i32 [ %10, %pile_cut.exit ], [ %12, %while.body.i48 ]
%cmp3.i29 = icmp eq i32 %.lcssa.i28, %rest.0.lcssa.i27
br i1 %cmp3.i29, label %if.then.i44, label %if.else.i30
if.then.i44: ; preds = %while.end.i25
%next4.i45 = getelementptr inbounds %struct.group, ptr %cur.0.lcssa60.i26, i64 0, i32 2
%13 = load ptr, ptr %next4.i45, align 8, !tbaa !16
br label %pile_cut.exit56
if.else.i30: ; preds = %while.end.i25
%length.le.i31 = getelementptr inbounds %struct.group, ptr %cur.0.lcssa60.i26, i64 0, i32 1
%call9.i32 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #10
%14 = load i32, ptr %cur.0.lcssa60.i26, align 8, !tbaa !13
%add.i33 = add nsw i32 %14, %rest.0.lcssa.i27
store i32 %add.i33, ptr %call9.i32, align 8, !tbaa !13
%sub14.i34 = sub nsw i32 %.lcssa.i28, %rest.0.lcssa.i27
%length16.i35 = getelementptr inbounds %struct.group, ptr %call9.i32, i64 0, i32 1
store i32 %sub14.i34, ptr %length16.i35, align 4, !tbaa !15
%next17.i36 = getelementptr inbounds %struct.group, ptr %cur.0.lcssa60.i26, i64 0, i32 2
%15 = load ptr, ptr %next17.i36, align 8, !tbaa !16
%next19.i37 = getelementptr inbounds %struct.group, ptr %call9.i32, i64 0, i32 2
store ptr %15, ptr %next19.i37, align 8, !tbaa !16
%cmp21.i39 = icmp eq ptr %cur.0.lcssa60.i26, %9
%spec.select.i40 = select i1 %cmp21.i39, ptr %call9.i32, ptr %9
store i32 %rest.0.lcssa.i27, ptr %length.le.i31, align 4, !tbaa !15
br label %pile_cut.exit56
pile_cut.exit56: ; preds = %if.then.i44, %if.else.i30
%call9.i32.sink = phi ptr [ %13, %if.then.i44 ], [ %call9.i32, %if.else.i30 ]
%spec.select.i40.sink = phi ptr [ %9, %if.then.i44 ], [ %spec.select.i40, %if.else.i30 ]
%next.i58 = getelementptr inbounds %struct.group, ptr %spec.select.i40.sink, i64 0, i32 2
store ptr %call9.i.sink, ptr %next.i58, align 8, !tbaa !16
%next.i60 = getelementptr inbounds %struct.group, ptr %cur.0.lcssa60.i26, i64 0, i32 2
store ptr %0, ptr %next.i60, align 8, !tbaa !16
store ptr %call9.i32.sink, ptr %self, align 8, !tbaa !12
store ptr %5, ptr %last, align 8, !tbaa !9
ret void
}
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable
define dso_local i32 @pile_count(ptr nocapture noundef readonly %self, i32 noundef %p, i32 noundef %q, i32 noundef %r) local_unnamed_addr #5 {
entry:
%cur.059 = load ptr, ptr %self, align 8, !tbaa !19
%tobool.not60 = icmp eq ptr %cur.059, null
br i1 %tobool.not60, label %while.end, label %while.body.lr.ph
while.body.lr.ph: ; preds = %entry
%sub27 = add i32 %r, 1
br label %while.body
while.body: ; preds = %while.body.lr.ph, %if.end31
%cur.063 = phi ptr [ %cur.059, %while.body.lr.ph ], [ %cur.0, %if.end31 ]
%offset.062 = phi i32 [ 0, %while.body.lr.ph ], [ %add, %if.end31 ]
%count.061 = phi i32 [ 0, %while.body.lr.ph ], [ %count.2, %if.end31 ]
%length = getelementptr inbounds %struct.group, ptr %cur.063, i64 0, i32 1
%0 = load i32, ptr %length, align 4, !tbaa !15
%add = add nsw i32 %0, %offset.062
%cmp.not = icmp sge i32 %add, %p
%cmp1 = icmp slt i32 %offset.062, %q
%or.cond = and i1 %cmp1, %cmp.not
br i1 %or.cond, label %if.then, label %if.end31
if.then: ; preds = %while.body
%cmp3.not = icmp slt i32 %offset.062, %p
%1 = xor i32 %offset.062, -1
%sub4 = add i32 %1, %p
%cond = select i1 %cmp3.not, i32 %sub4, i32 0
%cmp7.not = icmp sgt i32 %add, %q
%sub12.neg = sub i32 %q, %add
%spec.select = select i1 %cmp7.not, i32 %sub12.neg, i32 0
%2 = load i32, ptr %cur.063, align 8, !tbaa !13
%add16 = add nsw i32 %2, %cond
%sub18 = sub nsw i32 %0, %cond
%sub19 = add i32 %spec.select, %sub18
%add20 = add i32 %sub19, -1
%sub21 = add i32 %add20, %add16
%cmp22.not = icmp sgt i32 %sub21, %r
br i1 %cmp22.not, label %if.else, label %if.then23
if.then23: ; preds = %if.then
%add24 = add nsw i32 %sub19, %count.061
br label %if.end31
if.else: ; preds = %if.then
%cmp25.not = icmp sgt i32 %add16, %r
br i1 %cmp25.not, label %if.end31, label %if.then26
if.then26: ; preds = %if.else
%add28 = add i32 %sub27, %count.061
%add29 = sub i32 %add28, %add16
br label %if.end31
if.end31: ; preds = %if.then23, %if.then26, %if.else, %while.body
%count.2 = phi i32 [ %count.061, %while.body ], [ %add24, %if.then23 ], [ %add29, %if.then26 ], [ %count.061, %if.else ]
%next = getelementptr inbounds %struct.group, ptr %cur.063, i64 0, i32 2
%cur.0 = load ptr, ptr %next, align 8, !tbaa !19
%tobool.not = icmp eq ptr %cur.0, null
br i1 %tobool.not, label %while.end, label %while.body, !llvm.loop !20
while.end: ; preds = %if.end31, %entry
%count.0.lcssa = phi i32 [ 0, %entry ], [ %count.2, %if.end31 ]
ret i32 %count.0.lcssa
}
; Function Attrs: nounwind uwtable
define dso_local void @pile_delete(ptr nocapture noundef %self) local_unnamed_addr #0 {
entry:
%.pr = load ptr, ptr %self, align 8, !tbaa !12
%tobool.not8 = icmp eq ptr %.pr, null
br i1 %tobool.not8, label %while.end, label %while.body
while.body: ; preds = %entry, %while.body
%0 = phi ptr [ %1, %while.body ], [ %.pr, %entry ]
%next = getelementptr inbounds %struct.group, ptr %0, i64 0, i32 2
%1 = load ptr, ptr %next, align 8, !tbaa !16
tail call void @free(ptr noundef nonnull %0) #9
store ptr %1, ptr %self, align 8, !tbaa !12
%tobool.not = icmp eq ptr %1, null
br i1 %tobool.not, label %while.end, label %while.body, !llvm.loop !21
while.end: ; preds = %while.body, %entry
tail call void @free(ptr noundef nonnull %self) #9
ret void
}
; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #6
; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #7
; Function Attrs: nofree nounwind uwtable
define dso_local noalias ptr @pile_cut(ptr nocapture noundef %self, i32 noundef %x) local_unnamed_addr #4 {
entry:
%call = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #10
%cur.061 = load ptr, ptr %self, align 8, !tbaa !19
%length62 = getelementptr inbounds %struct.group, ptr %cur.061, i64 0, i32 1
%0 = load i32, ptr %length62, align 4, !tbaa !15
%cmp63 = icmp slt i32 %0, %x
br i1 %cmp63, label %while.body, label %while.end
while.body: ; preds = %entry, %while.body
%1 = phi i32 [ %2, %while.body ], [ %0, %entry ]
%cur.065 = phi ptr [ %cur.0, %while.body ], [ %cur.061, %entry ]
%rest.064 = phi i32 [ %sub, %while.body ], [ %x, %entry ]
%sub = sub nsw i32 %rest.064, %1
%next = getelementptr inbounds %struct.group, ptr %cur.065, i64 0, i32 2
%cur.0 = load ptr, ptr %next, align 8, !tbaa !19
%length = getelementptr inbounds %struct.group, ptr %cur.0, i64 0, i32 1
%2 = load i32, ptr %length, align 4, !tbaa !15
%cmp = icmp slt i32 %2, %sub
br i1 %cmp, label %while.body, label %while.end, !llvm.loop !22
while.end: ; preds = %while.body, %entry
%cur.0.lcssa60 = phi ptr [ %cur.061, %entry ], [ %cur.0, %while.body ]
%rest.0.lcssa = phi i32 [ %x, %entry ], [ %sub, %while.body ]
%.lcssa = phi i32 [ %0, %entry ], [ %2, %while.body ]
%cmp3 = icmp eq i32 %.lcssa, %rest.0.lcssa
br i1 %cmp3, label %if.then, label %if.else
if.then: ; preds = %while.end
%next4 = getelementptr inbounds %struct.group, ptr %cur.0.lcssa60, i64 0, i32 2
%3 = load ptr, ptr %next4, align 8, !tbaa !16
store ptr %3, ptr %call, align 8, !tbaa !12
%last = getelementptr inbounds %struct.pile, ptr %self, i64 0, i32 1
%4 = load ptr, ptr %last, align 8, !tbaa !9
%last6 = getelementptr inbounds %struct.pile, ptr %call, i64 0, i32 1
store ptr %4, ptr %last6, align 8, !tbaa !9
br label %if.end
if.else: ; preds = %while.end
%length.le = getelementptr inbounds %struct.group, ptr %cur.0.lcssa60, i64 0, i32 1
%call9 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #10
store ptr %call9, ptr %call, align 8, !tbaa !12
%5 = load i32, ptr %cur.0.lcssa60, align 8, !tbaa !13
%add = add nsw i32 %5, %rest.0.lcssa
store i32 %add, ptr %call9, align 8, !tbaa !13
%sub14 = sub nsw i32 %.lcssa, %rest.0.lcssa
%length16 = getelementptr inbounds %struct.group, ptr %call9, i64 0, i32 1
store i32 %sub14, ptr %length16, align 4, !tbaa !15
%next17 = getelementptr inbounds %struct.group, ptr %cur.0.lcssa60, i64 0, i32 2
%6 = load ptr, ptr %next17, align 8, !tbaa !16
%next19 = getelementptr inbounds %struct.group, ptr %call9, i64 0, i32 2
store ptr %6, ptr %next19, align 8, !tbaa !16
%last20 = getelementptr inbounds %struct.pile, ptr %self, i64 0, i32 1
%7 = load ptr, ptr %last20, align 8, !tbaa !9
%cmp21 = icmp eq ptr %cur.0.lcssa60, %7
%spec.select = select i1 %cmp21, ptr %call9, ptr %7
%last24 = getelementptr inbounds %struct.pile, ptr %call, i64 0, i32 1
store ptr %spec.select, ptr %last24, align 8, !tbaa !9
store i32 %rest.0.lcssa, ptr %length.le, align 4, !tbaa !15
br label %if.end
if.end: ; preds = %if.else, %if.then
%next17.sink = phi ptr [ %next17, %if.else ], [ %next4, %if.then ]
%last20.sink = phi ptr [ %last20, %if.else ], [ %last, %if.then ]
store ptr null, ptr %next17.sink, align 8, !tbaa !16
store ptr %cur.0.lcssa60, ptr %last20.sink, align 8, !tbaa !9
ret ptr %call
}
; Function Attrs: mustprogress nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: readwrite) uwtable
define dso_local void @pile_join(ptr nocapture noundef %self, ptr nocapture noundef %joined) local_unnamed_addr #8 {
entry:
%0 = load ptr, ptr %joined, align 8, !tbaa !12
%last = getelementptr inbounds %struct.pile, ptr %self, i64 0, i32 1
%1 = load ptr, ptr %last, align 8, !tbaa !9
%next = getelementptr inbounds %struct.group, ptr %1, i64 0, i32 2
store ptr %0, ptr %next, align 8, !tbaa !16
%last1 = getelementptr inbounds %struct.pile, ptr %joined, i64 0, i32 1
%2 = load ptr, ptr %last1, align 8, !tbaa !9
store ptr %2, ptr %last, align 8, !tbaa !9
tail call void @free(ptr noundef %joined) #9
ret void
}
attributes #0 = { 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, argmem: none, inaccessiblemem: 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 = { 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 norecurse nosync nounwind memory(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 #6 = { 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 #7 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #8 = { mustprogress nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: 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 #9 = { nounwind }
attributes #10 = { nounwind allocsize(0) }
!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, !11, i64 8}
!10 = !{!"pile", !11, i64 0, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"group", !6, i64 0, !6, i64 4, !11, i64 8}
!15 = !{!14, !6, i64 4}
!16 = !{!14, !11, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!11, !11, i64 0}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
|
#define _CRT_SECURE_NO_WARNINGS
//#define _USE_MATH_DEFINES
#include<stdio.h>
//#include<stdlib.h>
//#include<math.h>
#include<string.h>
//#include<time.h>
#define P(type,x) fprintf(stdout,"%"#type"\n",x)
const char code[77] = { "0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ `abcdefghijklmnopqrstuvwxyz" };
int main() {
int n;
char a[2],b[2];
char encode[77];
for (; fscanf(stdin, "%d", &n), n; puts("")) {
getchar();
memset(encode, 0, sizeof(encode));
strncpy(encode, code, 76);
while (n--) fscanf(stdin, "%c%*c%c", &a[0], &b[0]),getchar(), encode[a[0] - '0'] = b[0];
fscanf(stdin, "%d", &n),getchar();
while (n--) fscanf(stdin, "%c", &a[0]), getchar(), printf("%c",encode[a[0]-'0']);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175431/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175431/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"
@code = dso_local local_unnamed_addr constant [77 x i8] c"0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_ `abcdefghijklmnopqrstuvwxyz\00\00", align 16
@stdin = external local_unnamed_addr global ptr, align 8
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"%c%*c%c\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%a = alloca [2 x i8], align 1
%b = alloca [2 x i8], align 1
%encode = alloca [77 x i8], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #6
call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %a) #6
call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %b) #6
call void @llvm.lifetime.start.p0(i64 77, ptr nonnull %encode) #6
%0 = load ptr, ptr @stdin, align 8, !tbaa !5
%call37 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull %n) #6
%1 = load i32, ptr %n, align 4, !tbaa !9
%tobool.not38 = icmp eq i32 %1, 0
br i1 %tobool.not38, label %for.end, label %for.body.preheader
for.body.preheader: ; preds = %entry
%2 = getelementptr inbounds i8, ptr %encode, i64 76
br label %for.body
for.body: ; preds = %for.body.preheader, %for.inc
%3 = load ptr, ptr @stdin, align 8, !tbaa !5
%call.i = call i32 @getc(ptr noundef %3)
store i8 0, ptr %2, align 4
call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(76) %encode, ptr noundef nonnull align 16 dereferenceable(76) @code, i64 noundef 76, i1 false) #6
%4 = load i32, ptr %n, align 4, !tbaa !9
%dec33 = add nsw i32 %4, -1
store i32 %dec33, ptr %n, align 4, !tbaa !9
%tobool4.not34 = icmp eq i32 %4, 0
br i1 %tobool4.not34, label %while.end, label %while.body
while.body: ; preds = %for.body, %while.body
%5 = load ptr, ptr @stdin, align 8, !tbaa !5
%call6 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %5, ptr noundef nonnull @.str.1, ptr noundef nonnull %a, ptr noundef nonnull %b) #6
%6 = load ptr, ptr @stdin, align 8, !tbaa !5
%call.i30 = call i32 @getc(ptr noundef %6)
%7 = load i8, ptr %b, align 1, !tbaa !11
%8 = load i8, ptr %a, align 1, !tbaa !11
%conv = sext i8 %8 to i64
%sub = add nsw i64 %conv, -48
%arrayidx10 = getelementptr inbounds [77 x i8], ptr %encode, i64 0, i64 %sub
store i8 %7, ptr %arrayidx10, align 1, !tbaa !11
%9 = load i32, ptr %n, align 4, !tbaa !9
%dec = add nsw i32 %9, -1
store i32 %dec, ptr %n, align 4, !tbaa !9
%tobool4.not = icmp eq i32 %9, 0
br i1 %tobool4.not, label %while.end, label %while.body, !llvm.loop !12
while.end: ; preds = %while.body, %for.body
%10 = load ptr, ptr @stdin, align 8, !tbaa !5
%call11 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %10, ptr noundef nonnull @.str, ptr noundef nonnull %n) #6
%11 = load ptr, ptr @stdin, align 8, !tbaa !5
%call.i31 = call i32 @getc(ptr noundef %11)
%12 = load i32, ptr %n, align 4, !tbaa !9
%dec1435 = add nsw i32 %12, -1
store i32 %dec1435, ptr %n, align 4, !tbaa !9
%tobool15.not36 = icmp eq i32 %12, 0
br i1 %tobool15.not36, label %for.inc, label %while.body16
while.body16: ; preds = %while.end, %while.body16
%13 = load ptr, ptr @stdin, align 8, !tbaa !5
%call18 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %13, ptr noundef nonnull @.str.2, ptr noundef nonnull %a) #6
%14 = load ptr, ptr @stdin, align 8, !tbaa !5
%call.i32 = call i32 @getc(ptr noundef %14)
%15 = load i8, ptr %a, align 1, !tbaa !11
%conv21 = sext i8 %15 to i64
%sub22 = add nsw i64 %conv21, -48
%arrayidx24 = getelementptr inbounds [77 x i8], ptr %encode, i64 0, i64 %sub22
%16 = load i8, ptr %arrayidx24, align 1, !tbaa !11
%conv25 = sext i8 %16 to i32
%putchar29 = call i32 @putchar(i32 %conv25)
%17 = load i32, ptr %n, align 4, !tbaa !9
%dec14 = add nsw i32 %17, -1
store i32 %dec14, ptr %n, align 4, !tbaa !9
%tobool15.not = icmp eq i32 %17, 0
br i1 %tobool15.not, label %for.inc, label %while.body16, !llvm.loop !14
for.inc: ; preds = %while.body16, %while.end
%putchar = call i32 @putchar(i32 10)
%18 = load ptr, ptr @stdin, align 8, !tbaa !5
%call = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %18, ptr noundef nonnull @.str, ptr noundef nonnull %n) #6
%19 = load i32, ptr %n, align 4, !tbaa !9
%tobool.not = icmp eq i32 %19, 0
br i1 %tobool.not, label %for.end, label %for.body, !llvm.loop !15
for.end: ; preds = %for.inc, %entry
call void @llvm.lifetime.end.p0(i64 77, ptr nonnull %encode) #6
call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %b) #6
call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %a) #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) #1
declare i32 @__isoc99_fscanf(ptr noundef, ptr 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: nofree nounwind
declare noundef i32 @getc(ptr nocapture noundef) local_unnamed_addr #3
; 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) #4
; Function Attrs: nofree nounwind
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #5
attributes #0 = { 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 = { "no-trapping-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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"any pointer", !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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
|
#include<stdio.h>
int main(void)
{
int mas[10000], n, n2, m, m2, z, rez = 0;
scanf("%d %d %d", &n, &m, &z);
for (int i = 0; i < 10000; i++){
mas[i] = 0;
}
n2 = n;
m2 = m;
while (n2 <= z){
mas[n2 - 1] = 1;
n2 += n;
}
while (m2 <= z){
rez += mas[m2 - 1];
m2 += m;
}
printf("%d", rez);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17549/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17549/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:
%mas = alloca [10000 x i32], align 16
%n = alloca i32, align 4
%m = alloca i32, align 4
%z = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 40000, ptr nonnull %mas) #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 %z) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %m, ptr noundef nonnull %z)
call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40000) %mas, i8 0, i64 40000, i1 false), !tbaa !5
%0 = load i32, ptr %n, align 4, !tbaa !5
%1 = load i32, ptr %m, align 4, !tbaa !5
%2 = load i32, ptr %z, align 4, !tbaa !5
%cmp1.not22 = icmp sgt i32 %0, %2
br i1 %cmp1.not22, label %while.cond4.preheader, label %while.body.preheader
while.body.preheader: ; preds = %entry
%3 = sext i32 %0 to i64
%4 = sext i32 %2 to i64
br label %while.body
while.cond4.preheader: ; preds = %while.body, %entry
%cmp5.not24 = icmp sgt i32 %1, %2
br i1 %cmp5.not24, label %while.end12, label %while.body6.preheader
while.body6.preheader: ; preds = %while.cond4.preheader
%5 = sext i32 %1 to i64
%6 = sext i32 %2 to i64
br label %while.body6
while.body: ; preds = %while.body.preheader, %while.body
%indvars.iv = phi i64 [ %3, %while.body.preheader ], [ %indvars.iv.next, %while.body ]
%7 = add nsw i64 %indvars.iv, -1
%arrayidx3 = getelementptr inbounds [10000 x i32], ptr %mas, i64 0, i64 %7
store i32 1, ptr %arrayidx3, align 4, !tbaa !5
%indvars.iv.next = add i64 %indvars.iv, %3
%cmp1.not = icmp sgt i64 %indvars.iv.next, %4
br i1 %cmp1.not, label %while.cond4.preheader, label %while.body, !llvm.loop !9
while.body6: ; preds = %while.body6.preheader, %while.body6
%indvars.iv31 = phi i64 [ %5, %while.body6.preheader ], [ %indvars.iv.next32, %while.body6 ]
%rez.026 = phi i32 [ 0, %while.body6.preheader ], [ %add10, %while.body6 ]
%8 = add nsw i64 %indvars.iv31, -1
%arrayidx9 = getelementptr inbounds [10000 x i32], ptr %mas, i64 0, i64 %8
%9 = load i32, ptr %arrayidx9, align 4, !tbaa !5
%add10 = add nsw i32 %9, %rez.026
%indvars.iv.next32 = add i64 %indvars.iv31, %5
%cmp5.not = icmp sgt i64 %indvars.iv.next32, %6
br i1 %cmp5.not, label %while.end12, label %while.body6, !llvm.loop !11
while.end12: ; preds = %while.body6, %while.cond4.preheader
%rez.0.lcssa = phi i32 [ 0, %while.cond4.preheader ], [ %add10, %while.body6 ]
%call13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %rez.0.lcssa)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %z) #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
call void @llvm.lifetime.end.p0(i64 40000, ptr nonnull %mas) #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 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 nounwind willreturn memory(argmem: write) }
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>
int main(){
char a[100010][5],s;
int n,m,i,j;
while(1){
scanf("%d\n",&n);
if(n==0){
break;
}
for(i=0;i<n;i++){
scanf("%c %c\n",&a[i][0],&a[i][1]);
}
scanf("%d\n",&m);
for(i=0;i<m;i++){
scanf("%c\n",&s);
for(j=0;j<n;j++){
if(a[j][0]==s){
printf("%c",a[j][1]);
break;
}
}
if(j==n){
printf("%c",s);
}
}
printf("\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175554/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175554/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 [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%c %c\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca [100010 x [5 x i8]], align 16
%s = alloca i8, align 1
%n = alloca i32, align 4
%m = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 500050, ptr nonnull %a) #4
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %s) #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
%call60 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp61 = icmp eq i32 %0, 0
br i1 %cmp61, label %while.end, label %for.cond.preheader
for.cond.preheader: ; preds = %entry, %for.end39
%1 = phi i32 [ %13, %for.end39 ], [ %0, %entry ]
%cmp154 = icmp sgt i32 %1, 0
br i1 %cmp154, label %for.body, label %for.end
for.body: ; preds = %for.cond.preheader, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %for.cond.preheader ]
%arrayidx = getelementptr inbounds [100010 x [5 x i8]], ptr %a, i64 0, i64 %indvars.iv
%arrayidx5 = getelementptr inbounds [100010 x [5 x i8]], ptr %a, i64 0, i64 %indvars.iv, i64 1
%call6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx, ptr noundef nonnull %arrayidx5)
%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
%cmp1 = icmp slt i64 %indvars.iv.next, %3
br i1 %cmp1, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body, %for.cond.preheader
%call7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %m)
%4 = load i32, ptr %m, align 4, !tbaa !5
%cmp958 = icmp sgt i32 %4, 0
br i1 %cmp958, label %for.body10, label %for.end39
for.body10: ; preds = %for.end, %for.inc37
%i.159 = phi i32 [ %inc38, %for.inc37 ], [ 0, %for.end ]
%call11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %s)
%5 = load i32, ptr %n, align 4, !tbaa !5
%cmp1356 = icmp sgt i32 %5, 0
br i1 %cmp1356, label %for.body14.lr.ph, label %for.end30
for.body14.lr.ph: ; preds = %for.body10
%6 = load i8, ptr %s, align 1, !tbaa !11
%wide.trip.count = zext i32 %5 to i64
br label %for.body14
for.body14: ; preds = %for.body14.lr.ph, %for.inc28
%indvars.iv65 = phi i64 [ 0, %for.body14.lr.ph ], [ %indvars.iv.next66, %for.inc28 ]
%arrayidx16 = getelementptr inbounds [100010 x [5 x i8]], ptr %a, i64 0, i64 %indvars.iv65
%7 = load i8, ptr %arrayidx16, align 1, !tbaa !11
%cmp19 = icmp eq i8 %7, %6
br i1 %cmp19, label %if.then21, label %for.inc28
if.then21: ; preds = %for.body14
%8 = trunc i64 %indvars.iv65 to i32
%arrayidx24 = getelementptr inbounds [100010 x [5 x i8]], ptr %a, i64 0, i64 %indvars.iv65, i64 1
%9 = load i8, ptr %arrayidx24, align 1, !tbaa !11
%conv25 = sext i8 %9 to i32
%putchar50 = call i32 @putchar(i32 %conv25)
%.pre = load i32, ptr %n, align 4, !tbaa !5
br label %for.end30
for.inc28: ; preds = %for.body14
%indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
%exitcond.not = icmp eq i64 %indvars.iv.next66, %wide.trip.count
br i1 %exitcond.not, label %if.then33, label %for.body14, !llvm.loop !12
for.end30: ; preds = %for.body10, %if.then21
%10 = phi i32 [ %.pre, %if.then21 ], [ %5, %for.body10 ]
%j.053 = phi i32 [ %8, %if.then21 ], [ 0, %for.body10 ]
%cmp31 = icmp eq i32 %j.053, %10
br i1 %cmp31, label %if.then33, label %for.inc37
if.then33: ; preds = %for.inc28, %for.end30
%11 = load i8, ptr %s, align 1, !tbaa !11
%conv34 = sext i8 %11 to i32
%putchar51 = call i32 @putchar(i32 %conv34)
br label %for.inc37
for.inc37: ; preds = %for.end30, %if.then33
%inc38 = add nuw nsw i32 %i.159, 1
%12 = load i32, ptr %m, align 4, !tbaa !5
%cmp9 = icmp slt i32 %inc38, %12
br i1 %cmp9, label %for.body10, label %for.end39, !llvm.loop !13
for.end39: ; preds = %for.inc37, %for.end
%putchar = call i32 @putchar(i32 10)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%13 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp eq i32 %13, 0
br i1 %cmp, label %while.end, label %for.cond.preheader
while.end: ; preds = %for.end39, %entry
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %m) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %s) #4
call void @llvm.lifetime.end.p0(i64 500050, 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 @putchar(i32 noundef) 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
|
#include<stdio.h>
#define MOJI 1200
int main()
{
char str[MOJI];
int i, count=0;
while(1){
scanf("%c", &str[count]);
if('A' <= str[count] && str[count] <= 'Z'){
str[count] += 'a' - 'A';
}
else if('a' <= str[count] && str[count] <= 'z'){
str[count] -= 'a' - 'A';
}
if(str[count] == '\n')break;
count++;
}
for(i=0; i < count ;i++)
printf("%c",str[i]);
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175662/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175662/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"%c\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%str = alloca [1200 x i8], align 16
call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %str) #4
br label %while.cond
while.cond: ; preds = %if.end36, %entry
%indvars.iv65 = phi i32 [ %indvars.iv.next66, %if.end36 ], [ 0, %entry ]
%indvars.iv = phi i64 [ %indvars.iv.next, %if.end36 ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [1200 x i8], ptr %str, i64 0, i64 %indvars.iv
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx)
%0 = load i8, ptr %arrayidx, align 1, !tbaa !5
%1 = add i8 %0, -65
%or.cond = icmp ult i8 %1, 26
br i1 %or.cond, label %if.end36.sink.split, label %if.else
if.else: ; preds = %while.cond
%2 = add i8 %0, -97
%or.cond57 = icmp ult i8 %2, 26
br i1 %or.cond57, label %if.end36.sink.split, label %if.end29
if.end29: ; preds = %if.else
%cmp33 = icmp eq i8 %0, 10
br i1 %cmp33, label %for.cond.preheader, label %if.end36
for.cond.preheader: ; preds = %if.end29
%3 = and i64 %indvars.iv, 4294967295
%cmp3759.not = icmp eq i64 %3, 0
br i1 %cmp3759.not, label %for.end, label %for.body.preheader
for.body.preheader: ; preds = %for.cond.preheader
%wide.trip.count = zext i32 %indvars.iv65 to i64
br label %for.body
if.end36.sink.split: ; preds = %if.else, %while.cond
%.sink = phi i8 [ 32, %while.cond ], [ -32, %if.else ]
%add = add nsw i8 %0, %.sink
store i8 %add, ptr %arrayidx, align 1, !tbaa !5
br label %if.end36
if.end36: ; preds = %if.end36.sink.split, %if.end29
%indvars.iv.next = add nuw i64 %indvars.iv, 1
%indvars.iv.next66 = add nuw i32 %indvars.iv65, 1
br label %while.cond
for.body: ; preds = %for.body.preheader, %for.body
%indvars.iv62 = phi i64 [ 0, %for.body.preheader ], [ %indvars.iv.next63, %for.body ]
%arrayidx40 = getelementptr inbounds [1200 x i8], ptr %str, i64 0, i64 %indvars.iv62
%4 = load i8, ptr %arrayidx40, align 1, !tbaa !5
%conv41 = sext i8 %4 to i32
%putchar56 = call i32 @putchar(i32 %conv41)
%indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
%exitcond.not = icmp eq i64 %indvars.iv.next63, %wide.trip.count
br i1 %exitcond.not, label %for.end, label %for.body, !llvm.loop !8
for.end: ; preds = %for.body, %for.cond.preheader
%putchar = call i32 @putchar(i32 10)
call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %str) #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 @putchar(i32 noundef) 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"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
#include <ctype.h>
int main(void)
{
char ch;
while(1){
scanf("%c", &ch);
if(isupper(ch)) {
ch = tolower(ch);
} else if(islower(ch)) {
ch = toupper(ch);
}
printf("%c",ch);
if ( ch == '\n' ) break;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175705/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175705/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"%c\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%ch = alloca i8, align 1
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %ch) #5
br label %while.cond
while.cond: ; preds = %if.end23, %entry
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %ch)
%call1 = tail call ptr @__ctype_b_loc() #6
%0 = load ptr, ptr %call1, align 8, !tbaa !5
%1 = load i8, ptr %ch, align 1, !tbaa !9
%idxprom = sext i8 %1 to i64
%arrayidx = getelementptr inbounds i16, ptr %0, i64 %idxprom
%2 = load i16, ptr %arrayidx, align 2, !tbaa !10
%conv2 = zext i16 %2 to i32
%and = and i32 %conv2, 256
%tobool.not = icmp eq i32 %and, 0
br i1 %tobool.not, label %if.else, label %if.then
if.then: ; preds = %while.cond
%call3 = tail call ptr @__ctype_tolower_loc() #6
%3 = load ptr, ptr %call3, align 8, !tbaa !5
%arrayidx6 = getelementptr inbounds i32, ptr %3, i64 %idxprom
%4 = load i32, ptr %arrayidx6, align 4, !tbaa !12
%conv7 = trunc i32 %4 to i8
store i8 %conv7, ptr %ch, align 1, !tbaa !9
br label %if.end23
if.else: ; preds = %while.cond
%and13 = and i32 %conv2, 512
%tobool14.not = icmp eq i32 %and13, 0
br i1 %tobool14.not, label %if.end23, label %if.then15
if.then15: ; preds = %if.else
%call17 = tail call ptr @__ctype_toupper_loc() #6
%5 = load ptr, ptr %call17, align 8, !tbaa !5
%arrayidx20 = getelementptr inbounds i32, ptr %5, i64 %idxprom
%6 = load i32, ptr %arrayidx20, align 4, !tbaa !12
%conv22 = trunc i32 %6 to i8
store i8 %conv22, ptr %ch, align 1, !tbaa !9
br label %if.end23
if.end23: ; preds = %if.else, %if.then15, %if.then
%7 = phi i8 [ %1, %if.else ], [ %conv22, %if.then15 ], [ %conv7, %if.then ]
%conv24 = sext i8 %7 to i32
%putchar = call i32 @putchar(i32 %conv24)
%8 = load i8, ptr %ch, align 1, !tbaa !9
%cmp = icmp eq i8 %8, 10
br i1 %cmp, label %while.end, label %while.cond
while.end: ; preds = %if.end23
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %ch) #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 nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #3
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_tolower_loc() 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: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_toupper_loc() local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @putchar(i32 noundef) 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 nosync nounwind willreturn memory(none) "no-trapping-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(none) }
!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
|
#include <stdio.h>
#include <ctype.h>
int main()
{
char ch;
while(1){
scanf("%c",&ch);
if(isupper(ch)){
ch = tolower(ch);
}else{
ch = toupper(ch);
}
printf("%c",ch);
if(ch == '\n'){
break;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175749/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175749/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"%c\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%ch = alloca i8, align 1
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %ch) #5
br label %while.cond
while.cond: ; preds = %if.end, %entry
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %ch)
%call1 = tail call ptr @__ctype_b_loc() #6
%0 = load ptr, ptr %call1, align 8, !tbaa !5
%1 = load i8, ptr %ch, align 1, !tbaa !9
%idxprom = sext i8 %1 to i64
%arrayidx = getelementptr inbounds i16, ptr %0, i64 %idxprom
%2 = load i16, ptr %arrayidx, align 2, !tbaa !10
%3 = and i16 %2, 256
%tobool.not = icmp eq i16 %3, 0
br i1 %tobool.not, label %if.else, label %if.then
if.then: ; preds = %while.cond
%call3 = tail call ptr @__ctype_tolower_loc() #6
br label %if.end
if.else: ; preds = %while.cond
%call9 = tail call ptr @__ctype_toupper_loc() #6
br label %if.end
if.end: ; preds = %if.else, %if.then
%.pn.in = phi ptr [ %call9, %if.else ], [ %call3, %if.then ]
%.pn = load ptr, ptr %.pn.in, align 8, !tbaa !5
%storemerge.in.in = getelementptr inbounds i32, ptr %.pn, i64 %idxprom
%storemerge.in = load i32, ptr %storemerge.in.in, align 4, !tbaa !12
%storemerge = trunc i32 %storemerge.in to i8
store i8 %storemerge, ptr %ch, align 1, !tbaa !9
%sext = shl i32 %storemerge.in, 24
%conv15 = ashr exact i32 %sext, 24
%putchar = call i32 @putchar(i32 %conv15)
%4 = load i8, ptr %ch, align 1, !tbaa !9
%cmp = icmp eq i8 %4, 10
br i1 %cmp, label %while.end, label %while.cond
while.end: ; preds = %if.end
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %ch) #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 nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #3
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_tolower_loc() 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: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_toupper_loc() local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @putchar(i32 noundef) 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 nosync nounwind willreturn memory(none) "no-trapping-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(none) }
!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
|
#include <stdio.h>
#include <ctype.h>
int main(void){
setvbuf(stdout,NULL,_IONBF,0);
char str[1200] = {};
int i;
for(i = 0;i < 1200;i++){
scanf("%c",&str[i]);
if(str[i] == '\n'){
break;
}
}
for(i = 0;i < 1200;i++){
if(islower(str[i])){
str[i] = toupper(str[i]);
printf("%c",str[i]);
}
else if(isupper(str[i])){
printf("%c",tolower(str[i]));
}
else if(str[i] == '\n'){
break;
}
else{
printf("%c",str[i]);
}
}
puts("");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175813/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175813/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"
@stdout = external local_unnamed_addr global ptr, align 8
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%str = alloca [1200 x i8], align 16
%0 = load ptr, ptr @stdout, align 8, !tbaa !5
%call = tail call i32 @setvbuf(ptr noundef %0, ptr noundef null, i32 noundef 2, i64 noundef 0) #6
call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %str) #6
call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1200) %str, i8 0, i64 1200, i1 false)
br label %for.body
for.body: ; preds = %for.body, %entry
%indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ]
%arrayidx = getelementptr inbounds [1200 x i8], ptr %str, i64 0, i64 %indvars.iv
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx)
%1 = load i8, ptr %arrayidx, align 1, !tbaa !9
%cmp4 = icmp eq i8 %1, 10
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%exitcond.not = icmp eq i64 %indvars.iv.next, 1200
%or.cond = select i1 %cmp4, i1 true, i1 %exitcond.not
br i1 %or.cond, label %for.end, label %for.body, !llvm.loop !10
for.end: ; preds = %for.body
%call10 = tail call ptr @__ctype_b_loc() #7
br label %for.body9
for.body9: ; preds = %for.end, %for.inc65
%indvars.iv88 = phi i64 [ 0, %for.end ], [ %indvars.iv.next89, %for.inc65 ]
%2 = load ptr, ptr %call10, align 8, !tbaa !5
%arrayidx12 = getelementptr inbounds [1200 x i8], ptr %str, i64 0, i64 %indvars.iv88
%3 = load i8, ptr %arrayidx12, align 1, !tbaa !9
%conv13 = sext i8 %3 to i32
%idxprom14 = sext i8 %3 to i64
%arrayidx15 = getelementptr inbounds i16, ptr %2, i64 %idxprom14
%4 = load i16, ptr %arrayidx15, align 2, !tbaa !12
%conv16 = zext i16 %4 to i32
%and = and i32 %conv16, 512
%tobool.not = icmp eq i32 %and, 0
br i1 %tobool.not, label %if.else, label %if.then17
if.then17: ; preds = %for.body9
%call18 = tail call ptr @__ctype_toupper_loc() #7
%5 = load ptr, ptr %call18, align 8, !tbaa !5
%arrayidx23 = getelementptr inbounds i32, ptr %5, i64 %idxprom14
%6 = load i32, ptr %arrayidx23, align 4, !tbaa !14
%conv24 = trunc i32 %6 to i8
store i8 %conv24, ptr %arrayidx12, align 1, !tbaa !9
%sext = shl i32 %6, 24
%conv29 = ashr exact i32 %sext, 24
br label %for.inc65
if.else: ; preds = %for.body9
%and38 = and i32 %conv16, 256
%tobool39.not = icmp eq i32 %and38, 0
br i1 %tobool39.not, label %if.else50, label %if.then40
if.then40: ; preds = %if.else
%call42 = tail call ptr @__ctype_tolower_loc() #7
%7 = load ptr, ptr %call42, align 8, !tbaa !5
%arrayidx47 = getelementptr inbounds i32, ptr %7, i64 %idxprom14
%8 = load i32, ptr %arrayidx47, align 4, !tbaa !14
br label %for.inc65
if.else50: ; preds = %if.else
%cmp54 = icmp eq i8 %3, 10
br i1 %cmp54, label %for.end67, label %for.inc65
for.inc65: ; preds = %if.else50, %if.then17, %if.then40
%conv29.sink = phi i32 [ %conv29, %if.then17 ], [ %8, %if.then40 ], [ %conv13, %if.else50 ]
%putchar84 = call i32 @putchar(i32 %conv29.sink)
%indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
%exitcond91.not = icmp eq i64 %indvars.iv.next89, 1200
br i1 %exitcond91.not, label %for.end67, label %for.body9, !llvm.loop !16
for.end67: ; preds = %if.else50, %for.inc65
%putchar82 = call i32 @putchar(i32 10)
call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %str) #6
ret i32 0
}
; Function Attrs: nofree nounwind
declare noundef i32 @setvbuf(ptr nocapture noundef, ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
; 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 #1
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #4
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_toupper_loc() 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
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_tolower_loc() local_unnamed_addr #4
; Function Attrs: nofree nounwind
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #5
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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nofree nosync nounwind willreturn memory(none) "no-trapping-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 }
attributes #7 = { nounwind willreturn memory(none) }
!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 = !{!"any pointer", !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 = !{!13, !13, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = distinct !{!16, !11}
|
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
int main(void) {
char words[1200];
//??????????????\???
fgets(words, sizeof(words), stdin);
int i;
//????????°???????????????
int cnt=0;
for (i = 0; i < strlen(words); i++) {
//??§?????????????°??????????????°???????????????§???????????????
if (words[i] >= 'a') {
words[i] = toupper(words[i]);
}
else if (words[i] <= 'Z'){
words[i] = tolower(words[i]);
}
}
printf("%s",words);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175871/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175871/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"
@stdin = external local_unnamed_addr global ptr, align 8
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%words = alloca [1200 x i8], align 16
call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %words) #5
%0 = load ptr, ptr @stdin, align 8, !tbaa !5
%call = call ptr @fgets(ptr noundef nonnull %words, i32 noundef 1200, ptr noundef %0)
%char0 = load i8, ptr %words, align 16
%cmp44.not = icmp eq i8 %char0, 0
br i1 %cmp44.not, label %for.end, label %for.body
for.body: ; preds = %entry, %for.inc
%indvars.iv = phi i64 [ %indvars.iv.next, %for.inc ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [1200 x i8], ptr %words, i64 0, i64 %indvars.iv
%1 = load i8, ptr %arrayidx, align 1, !tbaa !9
%cmp5 = icmp sgt i8 %1, 96
br i1 %cmp5, label %if.then, label %if.else
if.then: ; preds = %for.body
%conv4 = zext i8 %1 to i64
%call7 = tail call ptr @__ctype_toupper_loc() #6
%2 = load ptr, ptr %call7, align 8, !tbaa !5
%arrayidx12 = getelementptr inbounds i32, ptr %2, i64 %conv4
br label %for.inc.sink.split
if.else: ; preds = %for.body
%cmp19 = icmp slt i8 %1, 91
br i1 %cmp19, label %if.then21, label %for.inc
if.then21: ; preds = %if.else
%call23 = tail call ptr @__ctype_tolower_loc() #6
%3 = load ptr, ptr %call23, align 8, !tbaa !5
%idxprom27 = sext i8 %1 to i64
%arrayidx28 = getelementptr inbounds i32, ptr %3, i64 %idxprom27
br label %for.inc.sink.split
for.inc.sink.split: ; preds = %if.then21, %if.then
%arrayidx12.sink = phi ptr [ %arrayidx12, %if.then ], [ %arrayidx28, %if.then21 ]
%4 = load i32, ptr %arrayidx12.sink, align 4, !tbaa !10
%conv13 = trunc i32 %4 to i8
store i8 %conv13, ptr %arrayidx, align 1, !tbaa !9
br label %for.inc
for.inc: ; preds = %for.inc.sink.split, %if.else
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%call2 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %words) #7
%cmp = icmp ugt i64 %call2, %indvars.iv.next
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !12
for.end: ; preds = %for.inc, %entry
%call35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull %words)
call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %words) #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 ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) 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 nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_toupper_loc() 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) #1
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_tolower_loc() local_unnamed_addr #4
; 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 = { 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 = { mustprogress nofree nosync nounwind willreturn memory(none) "no-trapping-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 = { nounwind }
attributes #6 = { nounwind willreturn memory(none) }
attributes #7 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
#include<string.h>
#include <ctype.h>
int main(void){
char ch;
while(1){
scanf("%c", &ch);
//"."??????"while"????????????
if( ch == '\n' ){
printf("\n");
break;
}
//?°???????????????§?????????
else if( islower(ch)){
printf("%c",toupper(ch));
}
//??§?????????????°??????????
else if(isupper(ch)){
printf("%c", tolower(ch));
}
//????????\?????????????????????
else{
printf("%c",ch);
}
}
return 0; /*0?????????*/
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175914/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175914/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"%c\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%ch = alloca i8, align 1
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %ch) #5
%call36 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %ch)
%0 = load i8, ptr %ch, align 1, !tbaa !5
%cmp38 = icmp eq i8 %0, 10
br i1 %cmp38, label %if.then, label %if.else.lr.ph
if.else.lr.ph: ; preds = %entry
%call3 = tail call ptr @__ctype_b_loc() #6
br label %if.else
if.then: ; preds = %if.end32, %entry
%putchar35 = call i32 @putchar(i32 10)
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %ch) #5
ret i32 0
if.else: ; preds = %if.else.lr.ph, %if.end32
%1 = phi i8 [ %0, %if.else.lr.ph ], [ %6, %if.end32 ]
%2 = load ptr, ptr %call3, align 8, !tbaa !8
%idxprom = sext i8 %1 to i64
%arrayidx = getelementptr inbounds i16, ptr %2, i64 %idxprom
%3 = load i16, ptr %arrayidx, align 2, !tbaa !10
%conv5 = zext i16 %3 to i32
%and = and i32 %conv5, 512
%tobool.not = icmp eq i32 %and, 0
br i1 %tobool.not, label %if.else12, label %if.then6
if.then6: ; preds = %if.else
%call7 = tail call ptr @__ctype_toupper_loc() #6
br label %if.end32.sink.split
if.else12: ; preds = %if.else
%conv39 = sext i8 %1 to i32
%and18 = and i32 %conv5, 256
%tobool19.not = icmp eq i32 %and18, 0
br i1 %tobool19.not, label %if.end32, label %if.then20
if.then20: ; preds = %if.else12
%call22 = tail call ptr @__ctype_tolower_loc() #6
br label %if.end32.sink.split
if.end32.sink.split: ; preds = %if.then20, %if.then6
%call7.sink = phi ptr [ %call7, %if.then6 ], [ %call22, %if.then20 ]
%4 = load ptr, ptr %call7.sink, align 8, !tbaa !8
%arrayidx10 = getelementptr inbounds i32, ptr %4, i64 %idxprom
%5 = load i32, ptr %arrayidx10, align 4, !tbaa !12
br label %if.end32
if.end32: ; preds = %if.end32.sink.split, %if.else12
%.sink = phi i32 [ %conv39, %if.else12 ], [ %5, %if.end32.sink.split ]
%putchar34 = call i32 @putchar(i32 %.sink)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %ch)
%6 = load i8, ptr %ch, align 1, !tbaa !5
%cmp = icmp eq i8 %6, 10
br i1 %cmp, label %if.then, label %if.else
}
; 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 nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #3
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_toupper_loc() 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: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_tolower_loc() local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @putchar(i32 noundef) 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 nosync nounwind willreturn memory(none) "no-trapping-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(none) }
!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 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !6, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !6, i64 0}
|
#include <stdio.h>
#include <string.h>
int main(){
char c;
while(scanf("%c", &c) != EOF) {
if(c == '\n') {
break;
}
if('a' <= c && c <= 'z') {
c = c - 0x20;
} else if ('A' <= c && c <= 'Z') {
c = c + 0x20;
}
printf("%c", c);
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175965/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175965/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"%c\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%c = alloca i8, align 1
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %c) #4
%call30 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %c)
%cmp31 = icmp eq i32 %call30, -1
%0 = load i8, ptr %c, align 1
%cmp132 = icmp eq i8 %0, 10
%or.cond2833 = select i1 %cmp31, i1 true, i1 %cmp132
br i1 %or.cond2833, label %while.end, label %if.end
if.end: ; preds = %entry, %if.end23
%1 = phi i8 [ %5, %if.end23 ], [ %0, %entry ]
%2 = add i8 %1, -97
%or.cond = icmp ult i8 %2, 26
br i1 %or.cond, label %if.then9, label %if.else
if.then9: ; preds = %if.end
%sub = add nsw i8 %1, -32
store i8 %sub, ptr %c, align 1, !tbaa !5
br label %if.end23
if.else: ; preds = %if.end
%3 = add i8 %1, -65
%or.cond27 = icmp ult i8 %3, 26
br i1 %or.cond27, label %if.then19, label %if.end23
if.then19: ; preds = %if.else
%add = add nuw nsw i8 %1, 32
store i8 %add, ptr %c, align 1, !tbaa !5
br label %if.end23
if.end23: ; preds = %if.else, %if.then19, %if.then9
%4 = phi i8 [ %1, %if.else ], [ %add, %if.then19 ], [ %sub, %if.then9 ]
%conv24 = sext i8 %4 to i32
%putchar = call i32 @putchar(i32 %conv24)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %c)
%cmp = icmp eq i32 %call, -1
%5 = load i8, ptr %c, align 1
%cmp1 = icmp eq i8 %5, 10
%or.cond28 = select i1 %cmp, i1 true, i1 %cmp1
br i1 %or.cond28, label %while.end, label %if.end, !llvm.loop !8
while.end: ; preds = %if.end23, %entry
%putchar29 = call i32 @putchar(i32 10)
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %c) #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 @putchar(i32 noundef) 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"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#define LENGTH 1200
int main()
{
int i;
char ch;
for( ; ; )
{
scanf("%c", &ch);
if( isupper(ch) )
{
ch += 32;
}
else if( islower(ch) )
{
ch -= 32;
}
printf("%c", ch);
if( ch == '\n' )
break;
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176007/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176007/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"%c\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%ch = alloca i8, align 1
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %ch) #5
br label %for.cond
for.cond: ; preds = %if.end15, %entry
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %ch)
%call1 = tail call ptr @__ctype_b_loc() #6
%0 = load ptr, ptr %call1, align 8, !tbaa !5
%1 = load i8, ptr %ch, align 1, !tbaa !9
%idxprom = sext i8 %1 to i64
%arrayidx = getelementptr inbounds i16, ptr %0, i64 %idxprom
%2 = load i16, ptr %arrayidx, align 2, !tbaa !10
%conv2 = zext i16 %2 to i32
%and = and i32 %conv2, 256
%tobool.not = icmp eq i32 %and, 0
br i1 %tobool.not, label %if.else, label %if.then
if.then: ; preds = %for.cond
%add = add i8 %1, 32
store i8 %add, ptr %ch, align 1, !tbaa !9
br label %if.end15
if.else: ; preds = %for.cond
%and10 = and i32 %conv2, 512
%tobool11.not = icmp eq i32 %and10, 0
br i1 %tobool11.not, label %if.end15, label %if.then12
if.then12: ; preds = %if.else
%sub = add i8 %1, -32
store i8 %sub, ptr %ch, align 1, !tbaa !9
br label %if.end15
if.end15: ; preds = %if.else, %if.then12, %if.then
%3 = phi i8 [ %1, %if.else ], [ %sub, %if.then12 ], [ %add, %if.then ]
%conv16 = sext i8 %3 to i32
%putchar = call i32 @putchar(i32 %conv16)
%4 = load i8, ptr %ch, align 1, !tbaa !9
%cmp = icmp eq i8 %4, 10
br i1 %cmp, label %for.end, label %for.cond
for.end: ; preds = %if.end15
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %ch) #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 nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() 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 @putchar(i32 noundef) 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 nosync nounwind willreturn memory(none) "no-trapping-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(none) }
!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !7, i64 0}
|
#include <stdio.h>
#include <ctype.h>
int
main (
int argc,
char *argv[ ]
)
{
for ( ; ; )
{
const int ch = getchar ( );
putchar ( islower ( ch ) ? toupper ( ch )
: isupper ( ch ) ? tolower ( ch )
: ch );
if ( ch == '\n' ) break ;
}
return ( 0 );
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176050/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176050/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"
@stdin = external local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main(i32 noundef %argc, ptr nocapture noundef readnone %argv) local_unnamed_addr #0 {
entry:
br label %for.cond
for.cond: ; preds = %cond.end40, %entry
%0 = load ptr, ptr @stdin, align 8, !tbaa !5
%call.i = tail call i32 @getc(ptr noundef %0)
%call1 = tail call ptr @__ctype_b_loc() #3
%1 = load ptr, ptr %call1, align 8, !tbaa !5
%idxprom = sext i32 %call.i to i64
%arrayidx = getelementptr inbounds i16, ptr %1, i64 %idxprom
%2 = load i16, ptr %arrayidx, align 2, !tbaa !9
%conv = zext i16 %2 to i32
%and = and i32 %conv, 512
%tobool.not = icmp eq i32 %and, 0
br i1 %tobool.not, label %cond.false10, label %if.else
if.else: ; preds = %for.cond
%3 = add i32 %call.i, 128
%or.cond.i = icmp ult i32 %3, 384
br i1 %or.cond.i, label %cond.true.i, label %cond.end40
cond.true.i: ; preds = %if.else
%call.i63 = tail call ptr @__ctype_toupper_loc() #3
br label %cond.end40.sink.split
cond.false10: ; preds = %for.cond
%and15 = and i32 %conv, 256
%tobool16.not = icmp ne i32 %and15, 0
%4 = add i32 %call.i, 128
%or.cond.i64 = icmp ult i32 %4, 384
%or.cond = and i1 %tobool16.not, %or.cond.i64
br i1 %or.cond, label %cond.true.i66, label %cond.end40
cond.true.i66: ; preds = %cond.false10
%call.i67 = tail call ptr @__ctype_tolower_loc() #3
br label %cond.end40.sink.split
cond.end40.sink.split: ; preds = %cond.true.i, %cond.true.i66
%call.i67.sink = phi ptr [ %call.i67, %cond.true.i66 ], [ %call.i63, %cond.true.i ]
%5 = load ptr, ptr %call.i67.sink, align 8, !tbaa !5
%arrayidx.i69 = getelementptr inbounds i32, ptr %5, i64 %idxprom
%6 = load i32, ptr %arrayidx.i69, align 4, !tbaa !11
br label %cond.end40
cond.end40: ; preds = %cond.end40.sink.split, %if.else, %cond.false10
%cond41 = phi i32 [ %call.i, %cond.false10 ], [ %call.i, %if.else ], [ %6, %cond.end40.sink.split ]
%7 = load ptr, ptr @stdout, align 8, !tbaa !5
%call.i70 = tail call i32 @putc(i32 noundef %cond41, ptr noundef %7)
%cmp43 = icmp eq i32 %call.i, 10
br i1 %cmp43, label %for.end, label %for.cond
for.end: ; preds = %cond.end40
ret i32 0
}
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #1
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_toupper_loc() local_unnamed_addr #1
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_tolower_loc() local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noundef i32 @getc(ptr nocapture noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @putc(i32 noundef, ptr nocapture noundef) 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 nofree nosync nounwind willreturn memory(none) "no-trapping-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 "no-trapping-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 willreturn memory(none) }
!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
|
#include <stdio.h>
int main() {
char c;
while(1){
scanf("%c", &c);
if(c=='\n'){
printf("\n");
break;
}
if('a'<=c&&c<='z'){
printf("%c", c - ('a' - 'A'));
}else if('A'<=c&&c<='Z'){
printf("%c", c + ('a' - 'A'));
}else{
printf("%c",c);
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176094/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176094/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"%c\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%c = alloca i8, align 1
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %c) #4
%call31 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %c)
%0 = load i8, ptr %c, align 1
%cmp33 = icmp eq i8 %0, 10
br i1 %cmp33, label %if.then, label %if.end
if.then: ; preds = %if.end26, %entry
%putchar30 = call i32 @putchar(i32 10)
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %c) #4
ret i32 0
if.end: ; preds = %entry, %if.end26
%1 = phi i8 [ %4, %if.end26 ], [ %0, %entry ]
%conv34 = sext i8 %1 to i32
%2 = add i8 %1, -97
%or.cond = icmp ult i8 %2, 26
br i1 %or.cond, label %if.then9, label %if.else
if.then9: ; preds = %if.end
%sub = add nsw i32 %conv34, -32
br label %if.end26
if.else: ; preds = %if.end
%3 = add i8 %1, -65
%or.cond27 = icmp ult i8 %3, 26
%add = add nuw nsw i32 %conv34, 32
%spec.select = select i1 %or.cond27, i32 %add, i32 %conv34
br label %if.end26
if.end26: ; preds = %if.else, %if.then9
%add.sink = phi i32 [ %sub, %if.then9 ], [ %spec.select, %if.else ]
%putchar28 = call i32 @putchar(i32 %add.sink)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %c)
%4 = load i8, ptr %c, align 1
%cmp = icmp eq i8 %4, 10
br i1 %cmp, label %if.then, label %if.end
}
; 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 @putchar(i32 noundef) 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)"}
|
#include <stdio.h>
int main (void) {
char s[1200];
scanf ("%[^\n]", s);
for (int i=0; s[i] != '\0'; i++) {
if (s[i] >= 'a' && s[i] <= 'z') {
s[i] += 'A' - 'a';
} else if (s[i] >= 'A' && s[i] <= 'Z') {
s[i] -= 'A' - 'a';
} else continue;
}
printf ("%s\n", s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176137/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176137/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"%[^\0A]\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%s = alloca [1200 x i8], align 16
call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %s) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %s)
%0 = load i8, ptr %s, align 16, !tbaa !5
%cmp.not44 = icmp eq i8 %0, 0
br i1 %cmp.not44, label %for.cond.cleanup, label %for.body
for.cond.cleanup: ; preds = %for.inc, %entry
%puts = call i32 @puts(ptr nonnull dereferenceable(1) %s)
call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %s) #4
ret i32 0
for.body: ; preds = %entry, %for.inc
%indvars.iv = phi i64 [ %indvars.iv.next, %for.inc ], [ 0, %entry ]
%1 = phi i8 [ %4, %for.inc ], [ %0, %entry ]
%arrayidx46 = phi ptr [ %arrayidx, %for.inc ], [ %s, %entry ]
%2 = add i8 %1, -97
%or.cond = icmp ult i8 %2, 26
br i1 %or.cond, label %for.inc.sink.split, label %if.else
if.else: ; preds = %for.body
%3 = add i8 %1, -65
%or.cond43 = icmp ult i8 %3, 26
br i1 %or.cond43, label %for.inc.sink.split, label %for.inc
for.inc.sink.split: ; preds = %if.else, %for.body
%.sink = phi i8 [ -32, %for.body ], [ 32, %if.else ]
%add = add nsw i8 %1, %.sink
store i8 %add, ptr %arrayidx46, align 1, !tbaa !5
br label %for.inc
for.inc: ; preds = %for.inc.sink.split, %if.else
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%arrayidx = getelementptr inbounds [1200 x i8], ptr %s, i64 0, i64 %indvars.iv.next
%4 = load i8, ptr %arrayidx, align 1, !tbaa !5
%cmp.not = icmp eq i8 %4, 0
br i1 %cmp.not, label %for.cond.cleanup, label %for.body, !llvm.loop !8
}
; 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"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
#include <string.h>
int main() {
char s[1201];
int i, n = 0;
while(scanf("%c", &s[n]) != EOF) {
n++;
}
for (i = 0; i <= n; i++) {
if (s[i] >= 'a' && s[i] <= 'z') {
s[i] = s[i] - 32;
}
else if (s[i] >= 'A' && s[i] <= 'Z') {
s[i] = s[i] + 32;
}
}
for (i = 0; i < n; i++) {
printf("%c", s[i]);
}
//printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176180/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176180/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"%c\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%s = alloca [1201 x i8], align 16
call void @llvm.lifetime.start.p0(i64 1201, ptr nonnull %s) #4
br label %while.cond
while.cond: ; preds = %while.cond, %entry
%indvars.iv76 = phi i32 [ %indvars.iv.next77, %while.cond ], [ 0, %entry ]
%indvars.iv71 = phi i32 [ %indvars.iv.next72, %while.cond ], [ 1, %entry ]
%indvars.iv = phi i64 [ %indvars.iv.next, %while.cond ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %indvars.iv
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx)
%cmp.not = icmp eq i32 %call, -1
%indvars.iv.next = add nuw i64 %indvars.iv, 1
%indvars.iv.next72 = add i32 %indvars.iv71, 1
%indvars.iv.next77 = add nuw i32 %indvars.iv76, 1
br i1 %cmp.not, label %iter.check, label %while.cond, !llvm.loop !5
iter.check: ; preds = %while.cond
%wide.trip.count = zext i32 %indvars.iv71 to i64
%min.iters.check = icmp ult i32 %indvars.iv71, 8
br i1 %min.iters.check, label %for.body.preheader, label %vector.main.loop.iter.check
vector.main.loop.iter.check: ; preds = %iter.check
%min.iters.check80 = icmp ult i32 %indvars.iv71, 16
br i1 %min.iters.check80, label %vec.epilog.ph, label %vector.ph
vector.ph: ; preds = %vector.main.loop.iter.check
%n.vec = and i64 %wide.trip.count, 4294967280
br label %vector.body
vector.body: ; preds = %pred.store.continue110, %vector.ph
%index = phi i64 [ 0, %vector.ph ], [ %index.next, %pred.store.continue110 ]
%0 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %index
%wide.load = load <16 x i8>, ptr %0, align 16, !tbaa !7
%1 = add <16 x i8> %wide.load, <i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97>
%2 = icmp ult <16 x i8> %1, <i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26>
%3 = add <16 x i8> %wide.load, <i8 -65, i8 -65, i8 -65, i8 -65, i8 -65, i8 -65, i8 -65, i8 -65, i8 -65, i8 -65, i8 -65, i8 -65, i8 -65, i8 -65, i8 -65, i8 -65>
%4 = icmp ult <16 x i8> %3, <i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26>
%5 = xor <16 x i1> %2, <i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true>
%6 = select <16 x i1> %5, <16 x i1> %4, <16 x i1> zeroinitializer
%predphi = select <16 x i1> %6, <16 x i8> <i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32>, <16 x i8> <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
%7 = or <16 x i1> %6, %2
%8 = extractelement <16 x i1> %7, i64 0
br i1 %8, label %pred.store.if, label %pred.store.continue
pred.store.if: ; preds = %vector.body
%9 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %index
%10 = add nsw <16 x i8> %wide.load, %predphi
%11 = extractelement <16 x i8> %10, i64 0
store i8 %11, ptr %9, align 16, !tbaa !7
br label %pred.store.continue
pred.store.continue: ; preds = %pred.store.if, %vector.body
%12 = extractelement <16 x i1> %7, i64 1
br i1 %12, label %pred.store.if81, label %pred.store.continue82
pred.store.if81: ; preds = %pred.store.continue
%13 = or i64 %index, 1
%14 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %13
%15 = add nsw <16 x i8> %wide.load, %predphi
%16 = extractelement <16 x i8> %15, i64 1
store i8 %16, ptr %14, align 1, !tbaa !7
br label %pred.store.continue82
pred.store.continue82: ; preds = %pred.store.if81, %pred.store.continue
%17 = extractelement <16 x i1> %7, i64 2
br i1 %17, label %pred.store.if83, label %pred.store.continue84
pred.store.if83: ; preds = %pred.store.continue82
%18 = or i64 %index, 2
%19 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %18
%20 = add nsw <16 x i8> %wide.load, %predphi
%21 = extractelement <16 x i8> %20, i64 2
store i8 %21, ptr %19, align 2, !tbaa !7
br label %pred.store.continue84
pred.store.continue84: ; preds = %pred.store.if83, %pred.store.continue82
%22 = extractelement <16 x i1> %7, i64 3
br i1 %22, label %pred.store.if85, label %pred.store.continue86
pred.store.if85: ; preds = %pred.store.continue84
%23 = or i64 %index, 3
%24 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %23
%25 = add nsw <16 x i8> %wide.load, %predphi
%26 = extractelement <16 x i8> %25, i64 3
store i8 %26, ptr %24, align 1, !tbaa !7
br label %pred.store.continue86
pred.store.continue86: ; preds = %pred.store.if85, %pred.store.continue84
%27 = extractelement <16 x i1> %7, i64 4
br i1 %27, label %pred.store.if87, label %pred.store.continue88
pred.store.if87: ; preds = %pred.store.continue86
%28 = or i64 %index, 4
%29 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %28
%30 = add nsw <16 x i8> %wide.load, %predphi
%31 = extractelement <16 x i8> %30, i64 4
store i8 %31, ptr %29, align 4, !tbaa !7
br label %pred.store.continue88
pred.store.continue88: ; preds = %pred.store.if87, %pred.store.continue86
%32 = extractelement <16 x i1> %7, i64 5
br i1 %32, label %pred.store.if89, label %pred.store.continue90
pred.store.if89: ; preds = %pred.store.continue88
%33 = or i64 %index, 5
%34 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %33
%35 = add nsw <16 x i8> %wide.load, %predphi
%36 = extractelement <16 x i8> %35, i64 5
store i8 %36, ptr %34, align 1, !tbaa !7
br label %pred.store.continue90
pred.store.continue90: ; preds = %pred.store.if89, %pred.store.continue88
%37 = extractelement <16 x i1> %7, i64 6
br i1 %37, label %pred.store.if91, label %pred.store.continue92
pred.store.if91: ; preds = %pred.store.continue90
%38 = or i64 %index, 6
%39 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %38
%40 = add nsw <16 x i8> %wide.load, %predphi
%41 = extractelement <16 x i8> %40, i64 6
store i8 %41, ptr %39, align 2, !tbaa !7
br label %pred.store.continue92
pred.store.continue92: ; preds = %pred.store.if91, %pred.store.continue90
%42 = extractelement <16 x i1> %7, i64 7
br i1 %42, label %pred.store.if93, label %pred.store.continue94
pred.store.if93: ; preds = %pred.store.continue92
%43 = or i64 %index, 7
%44 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %43
%45 = add nsw <16 x i8> %wide.load, %predphi
%46 = extractelement <16 x i8> %45, i64 7
store i8 %46, ptr %44, align 1, !tbaa !7
br label %pred.store.continue94
pred.store.continue94: ; preds = %pred.store.if93, %pred.store.continue92
%47 = extractelement <16 x i1> %7, i64 8
br i1 %47, label %pred.store.if95, label %pred.store.continue96
pred.store.if95: ; preds = %pred.store.continue94
%48 = or i64 %index, 8
%49 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %48
%50 = add nsw <16 x i8> %wide.load, %predphi
%51 = extractelement <16 x i8> %50, i64 8
store i8 %51, ptr %49, align 8, !tbaa !7
br label %pred.store.continue96
pred.store.continue96: ; preds = %pred.store.if95, %pred.store.continue94
%52 = extractelement <16 x i1> %7, i64 9
br i1 %52, label %pred.store.if97, label %pred.store.continue98
pred.store.if97: ; preds = %pred.store.continue96
%53 = or i64 %index, 9
%54 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %53
%55 = add nsw <16 x i8> %wide.load, %predphi
%56 = extractelement <16 x i8> %55, i64 9
store i8 %56, ptr %54, align 1, !tbaa !7
br label %pred.store.continue98
pred.store.continue98: ; preds = %pred.store.if97, %pred.store.continue96
%57 = extractelement <16 x i1> %7, i64 10
br i1 %57, label %pred.store.if99, label %pred.store.continue100
pred.store.if99: ; preds = %pred.store.continue98
%58 = or i64 %index, 10
%59 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %58
%60 = add nsw <16 x i8> %wide.load, %predphi
%61 = extractelement <16 x i8> %60, i64 10
store i8 %61, ptr %59, align 2, !tbaa !7
br label %pred.store.continue100
pred.store.continue100: ; preds = %pred.store.if99, %pred.store.continue98
%62 = extractelement <16 x i1> %7, i64 11
br i1 %62, label %pred.store.if101, label %pred.store.continue102
pred.store.if101: ; preds = %pred.store.continue100
%63 = or i64 %index, 11
%64 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %63
%65 = add nsw <16 x i8> %wide.load, %predphi
%66 = extractelement <16 x i8> %65, i64 11
store i8 %66, ptr %64, align 1, !tbaa !7
br label %pred.store.continue102
pred.store.continue102: ; preds = %pred.store.if101, %pred.store.continue100
%67 = extractelement <16 x i1> %7, i64 12
br i1 %67, label %pred.store.if103, label %pred.store.continue104
pred.store.if103: ; preds = %pred.store.continue102
%68 = or i64 %index, 12
%69 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %68
%70 = add nsw <16 x i8> %wide.load, %predphi
%71 = extractelement <16 x i8> %70, i64 12
store i8 %71, ptr %69, align 4, !tbaa !7
br label %pred.store.continue104
pred.store.continue104: ; preds = %pred.store.if103, %pred.store.continue102
%72 = extractelement <16 x i1> %7, i64 13
br i1 %72, label %pred.store.if105, label %pred.store.continue106
pred.store.if105: ; preds = %pred.store.continue104
%73 = or i64 %index, 13
%74 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %73
%75 = add nsw <16 x i8> %wide.load, %predphi
%76 = extractelement <16 x i8> %75, i64 13
store i8 %76, ptr %74, align 1, !tbaa !7
br label %pred.store.continue106
pred.store.continue106: ; preds = %pred.store.if105, %pred.store.continue104
%77 = extractelement <16 x i1> %7, i64 14
br i1 %77, label %pred.store.if107, label %pred.store.continue108
pred.store.if107: ; preds = %pred.store.continue106
%78 = or i64 %index, 14
%79 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %78
%80 = add nsw <16 x i8> %wide.load, %predphi
%81 = extractelement <16 x i8> %80, i64 14
store i8 %81, ptr %79, align 2, !tbaa !7
br label %pred.store.continue108
pred.store.continue108: ; preds = %pred.store.if107, %pred.store.continue106
%82 = extractelement <16 x i1> %7, i64 15
br i1 %82, label %pred.store.if109, label %pred.store.continue110
pred.store.if109: ; preds = %pred.store.continue108
%83 = or i64 %index, 15
%84 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %83
%85 = add nsw <16 x i8> %wide.load, %predphi
%86 = extractelement <16 x i8> %85, i64 15
store i8 %86, ptr %84, align 1, !tbaa !7
br label %pred.store.continue110
pred.store.continue110: ; preds = %pred.store.if109, %pred.store.continue108
%index.next = add nuw i64 %index, 16
%87 = icmp eq i64 %index.next, %n.vec
br i1 %87, label %middle.block, label %vector.body, !llvm.loop !10
middle.block: ; preds = %pred.store.continue110
%cmp.n = icmp eq i64 %n.vec, %wide.trip.count
br i1 %cmp.n, label %for.cond37.preheader, label %vec.epilog.iter.check
vec.epilog.iter.check: ; preds = %middle.block
%n.vec.remaining = and i64 %wide.trip.count, 8
%min.epilog.iters.check.not.not = icmp eq i64 %n.vec.remaining, 0
br i1 %min.epilog.iters.check.not.not, label %for.body.preheader, label %vec.epilog.ph
vec.epilog.ph: ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
%vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
%n.vec112 = and i64 %wide.trip.count, 4294967288
br label %vec.epilog.vector.body
vec.epilog.vector.body: ; preds = %pred.store.continue132, %vec.epilog.ph
%index114 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next133, %pred.store.continue132 ]
%88 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %index114
%wide.load115 = load <8 x i8>, ptr %88, align 8, !tbaa !7
%89 = add <8 x i8> %wide.load115, <i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97, i8 -97>
%90 = icmp ult <8 x i8> %89, <i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26>
%91 = add <8 x i8> %wide.load115, <i8 -65, i8 -65, i8 -65, i8 -65, i8 -65, i8 -65, i8 -65, i8 -65>
%92 = icmp ult <8 x i8> %91, <i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26, i8 26>
%93 = xor <8 x i1> %90, <i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true>
%94 = select <8 x i1> %93, <8 x i1> %92, <8 x i1> zeroinitializer
%predphi116 = select <8 x i1> %94, <8 x i8> <i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32>, <8 x i8> <i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32, i8 -32>
%95 = or <8 x i1> %94, %90
%96 = extractelement <8 x i1> %95, i64 0
br i1 %96, label %pred.store.if117, label %pred.store.continue118
pred.store.if117: ; preds = %vec.epilog.vector.body
%97 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %index114
%98 = add nsw <8 x i8> %wide.load115, %predphi116
%99 = extractelement <8 x i8> %98, i64 0
store i8 %99, ptr %97, align 8, !tbaa !7
br label %pred.store.continue118
pred.store.continue118: ; preds = %pred.store.if117, %vec.epilog.vector.body
%100 = extractelement <8 x i1> %95, i64 1
br i1 %100, label %pred.store.if119, label %pred.store.continue120
pred.store.if119: ; preds = %pred.store.continue118
%101 = or i64 %index114, 1
%102 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %101
%103 = add nsw <8 x i8> %wide.load115, %predphi116
%104 = extractelement <8 x i8> %103, i64 1
store i8 %104, ptr %102, align 1, !tbaa !7
br label %pred.store.continue120
pred.store.continue120: ; preds = %pred.store.if119, %pred.store.continue118
%105 = extractelement <8 x i1> %95, i64 2
br i1 %105, label %pred.store.if121, label %pred.store.continue122
pred.store.if121: ; preds = %pred.store.continue120
%106 = or i64 %index114, 2
%107 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %106
%108 = add nsw <8 x i8> %wide.load115, %predphi116
%109 = extractelement <8 x i8> %108, i64 2
store i8 %109, ptr %107, align 2, !tbaa !7
br label %pred.store.continue122
pred.store.continue122: ; preds = %pred.store.if121, %pred.store.continue120
%110 = extractelement <8 x i1> %95, i64 3
br i1 %110, label %pred.store.if123, label %pred.store.continue124
pred.store.if123: ; preds = %pred.store.continue122
%111 = or i64 %index114, 3
%112 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %111
%113 = add nsw <8 x i8> %wide.load115, %predphi116
%114 = extractelement <8 x i8> %113, i64 3
store i8 %114, ptr %112, align 1, !tbaa !7
br label %pred.store.continue124
pred.store.continue124: ; preds = %pred.store.if123, %pred.store.continue122
%115 = extractelement <8 x i1> %95, i64 4
br i1 %115, label %pred.store.if125, label %pred.store.continue126
pred.store.if125: ; preds = %pred.store.continue124
%116 = or i64 %index114, 4
%117 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %116
%118 = add nsw <8 x i8> %wide.load115, %predphi116
%119 = extractelement <8 x i8> %118, i64 4
store i8 %119, ptr %117, align 4, !tbaa !7
br label %pred.store.continue126
pred.store.continue126: ; preds = %pred.store.if125, %pred.store.continue124
%120 = extractelement <8 x i1> %95, i64 5
br i1 %120, label %pred.store.if127, label %pred.store.continue128
pred.store.if127: ; preds = %pred.store.continue126
%121 = or i64 %index114, 5
%122 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %121
%123 = add nsw <8 x i8> %wide.load115, %predphi116
%124 = extractelement <8 x i8> %123, i64 5
store i8 %124, ptr %122, align 1, !tbaa !7
br label %pred.store.continue128
pred.store.continue128: ; preds = %pred.store.if127, %pred.store.continue126
%125 = extractelement <8 x i1> %95, i64 6
br i1 %125, label %pred.store.if129, label %pred.store.continue130
pred.store.if129: ; preds = %pred.store.continue128
%126 = or i64 %index114, 6
%127 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %126
%128 = add nsw <8 x i8> %wide.load115, %predphi116
%129 = extractelement <8 x i8> %128, i64 6
store i8 %129, ptr %127, align 2, !tbaa !7
br label %pred.store.continue130
pred.store.continue130: ; preds = %pred.store.if129, %pred.store.continue128
%130 = extractelement <8 x i1> %95, i64 7
br i1 %130, label %pred.store.if131, label %pred.store.continue132
pred.store.if131: ; preds = %pred.store.continue130
%131 = or i64 %index114, 7
%132 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %131
%133 = add nsw <8 x i8> %wide.load115, %predphi116
%134 = extractelement <8 x i8> %133, i64 7
store i8 %134, ptr %132, align 1, !tbaa !7
br label %pred.store.continue132
pred.store.continue132: ; preds = %pred.store.if131, %pred.store.continue130
%index.next133 = add nuw i64 %index114, 8
%135 = icmp eq i64 %index.next133, %n.vec112
br i1 %135, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !13
vec.epilog.middle.block: ; preds = %pred.store.continue132
%cmp.n113 = icmp eq i64 %n.vec112, %wide.trip.count
br i1 %cmp.n113, label %for.cond37.preheader, label %for.body.preheader
for.body.preheader: ; preds = %iter.check, %vec.epilog.iter.check, %vec.epilog.middle.block
%indvars.iv68.ph = phi i64 [ 0, %iter.check ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec112, %vec.epilog.middle.block ]
br label %for.body
for.cond37.preheader: ; preds = %for.inc, %vec.epilog.middle.block, %middle.block
%136 = and i64 %indvars.iv, 4294967295
%cmp3865.not = icmp eq i64 %136, 0
br i1 %cmp3865.not, label %for.end47, label %for.body40.preheader
for.body40.preheader: ; preds = %for.cond37.preheader
%wide.trip.count78 = zext i32 %indvars.iv76 to i64
br label %for.body40
for.body: ; preds = %for.body.preheader, %for.inc
%indvars.iv68 = phi i64 [ %indvars.iv.next69, %for.inc ], [ %indvars.iv68.ph, %for.body.preheader ]
%arrayidx3 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %indvars.iv68
%137 = load i8, ptr %arrayidx3, align 1, !tbaa !7
%138 = add i8 %137, -97
%or.cond = icmp ult i8 %138, 26
br i1 %or.cond, label %for.inc.sink.split, label %if.else
if.else: ; preds = %for.body
%139 = add i8 %137, -65
%or.cond63 = icmp ult i8 %139, 26
br i1 %or.cond63, label %for.inc.sink.split, label %for.inc
for.inc.sink.split: ; preds = %if.else, %for.body
%.sink = phi i8 [ -32, %for.body ], [ 32, %if.else ]
%sub = add nsw i8 %137, %.sink
store i8 %sub, ptr %arrayidx3, align 1, !tbaa !7
br label %for.inc
for.inc: ; preds = %for.inc.sink.split, %if.else
%indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
%exitcond.not = icmp eq i64 %indvars.iv.next69, %wide.trip.count
br i1 %exitcond.not, label %for.cond37.preheader, label %for.body, !llvm.loop !14
for.body40: ; preds = %for.body40.preheader, %for.body40
%indvars.iv73 = phi i64 [ 0, %for.body40.preheader ], [ %indvars.iv.next74, %for.body40 ]
%arrayidx42 = getelementptr inbounds [1201 x i8], ptr %s, i64 0, i64 %indvars.iv73
%140 = load i8, ptr %arrayidx42, align 1, !tbaa !7
%conv43 = sext i8 %140 to i32
%putchar = call i32 @putchar(i32 %conv43)
%indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
%exitcond79.not = icmp eq i64 %indvars.iv.next74, %wide.trip.count78
br i1 %exitcond79.not, label %for.end47, label %for.body40, !llvm.loop !15
for.end47: ; preds = %for.body40, %for.cond37.preheader
call void @llvm.lifetime.end.p0(i64 1201, 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 @putchar(i32 noundef) 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 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = distinct !{!10, !6, !11, !12}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !6, !11, !12}
!14 = distinct !{!14, !6, !12, !11}
!15 = distinct !{!15, !6}
|
#include <stdio.h>
int main(){
char c[1301];
int i=0,j;
while(1){
scanf("%c",&c[i]);
if(c[i]=='\n'){
break;
}
i++;
}
for(j=0; j<i; j++){
if(c[j]>='A'&&c[j]<='Z')c[j]+=32;
else if(c[j]>='a'&&c[j]<='z')c[j]-=32;
printf("%c",c[j]);
if(j==i-1)printf("\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176223/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176223/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"%c\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%c = alloca [1301 x i8], align 16
call void @llvm.lifetime.start.p0(i64 1301, ptr nonnull %c) #4
br label %while.cond
while.cond: ; preds = %while.cond, %entry
%indvars.iv71 = phi i32 [ %indvars.iv.next72, %while.cond ], [ 0, %entry ]
%indvars.iv = phi i64 [ %indvars.iv.next, %while.cond ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [1301 x i8], ptr %c, i64 0, i64 %indvars.iv
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx)
%0 = load i8, ptr %arrayidx, align 1, !tbaa !5
%cmp = icmp eq i8 %0, 10
%indvars.iv.next = add nuw i64 %indvars.iv, 1
%indvars.iv.next72 = add nuw i32 %indvars.iv71, 1
br i1 %cmp, label %for.cond.preheader, label %while.cond
for.cond.preheader: ; preds = %while.cond
%1 = and i64 %indvars.iv, 4294967295
%cmp465.not = icmp eq i64 %1, 0
br i1 %cmp465.not, label %for.end, label %for.body.lr.ph
for.body.lr.ph: ; preds = %for.cond.preheader
%sub43 = add i64 %indvars.iv, 4294967295
%2 = and i64 %sub43, 4294967295
%wide.trip.count = zext i32 %indvars.iv71 to i64
br label %for.body
for.body: ; preds = %for.body.lr.ph, %for.inc
%indvars.iv68 = phi i64 [ 0, %for.body.lr.ph ], [ %indvars.iv.next69, %for.inc ]
%arrayidx7 = getelementptr inbounds [1301 x i8], ptr %c, i64 0, i64 %indvars.iv68
%3 = load i8, ptr %arrayidx7, align 1, !tbaa !5
%4 = add i8 %3, -65
%or.cond = icmp ult i8 %4, 26
br i1 %or.cond, label %if.end38.sink.split, label %if.else
if.else: ; preds = %for.body
%5 = add i8 %3, -97
%or.cond64 = icmp ult i8 %5, 26
br i1 %or.cond64, label %if.end38.sink.split, label %if.end38
if.end38.sink.split: ; preds = %if.else, %for.body
%.sink = phi i8 [ 32, %for.body ], [ -32, %if.else ]
%add = add nsw i8 %3, %.sink
store i8 %add, ptr %arrayidx7, align 1, !tbaa !5
br label %if.end38
if.end38: ; preds = %if.end38.sink.split, %if.else
%6 = phi i8 [ %3, %if.else ], [ %add, %if.end38.sink.split ]
%conv41 = sext i8 %6 to i32
%putchar = call i32 @putchar(i32 %conv41)
%cmp44 = icmp eq i64 %indvars.iv68, %2
br i1 %cmp44, label %if.then46, label %for.inc
if.then46: ; preds = %if.end38
%putchar63 = call i32 @putchar(i32 10)
br label %for.inc
for.inc: ; preds = %if.end38, %if.then46
%indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
%exitcond.not = icmp eq i64 %indvars.iv.next69, %wide.trip.count
br i1 %exitcond.not, label %for.end, label %for.body, !llvm.loop !8
for.end: ; preds = %for.inc, %for.cond.preheader
call void @llvm.lifetime.end.p0(i64 1301, ptr nonnull %c) #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 @putchar(i32 noundef) 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"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
|
#include<stdio.h>
#include<string.h>
int main(){
int i=0;
char a[1200]={'\0'};
while(scanf("%c",&a[i])&&a[i]!='\n'){
if(a[i]>=97&&a[i]<=122){
a[i]=a[i]-32;
}
else if(a[i]>=65&&a[i]<=90){
a[i]=a[i]+32;
}
i++;
}
printf("%s",a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176267/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176267/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"%c\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca [1200 x i8], align 16
call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %a) #4
call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1200) %a, i8 0, i64 1200, i1 false)
%call51 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%tobool.not52 = icmp eq i32 %call51, 0
br i1 %tobool.not52, label %while.end, label %land.rhs
land.rhs: ; preds = %entry, %if.end38
%indvars.iv = phi i64 [ %indvars.iv.next, %if.end38 ], [ 0, %entry ]
%arrayidx54 = phi ptr [ %arrayidx, %if.end38 ], [ %a, %entry ]
%0 = load i8, ptr %arrayidx54, align 1, !tbaa !5
%cmp.not = icmp eq i8 %0, 10
br i1 %cmp.not, label %while.end, label %while.body
while.body: ; preds = %land.rhs
%1 = add i8 %0, -97
%or.cond = icmp ult i8 %1, 26
br i1 %or.cond, label %if.end38.sink.split, label %if.else
if.else: ; preds = %while.body
%2 = add i8 %0, -65
%or.cond50 = icmp ult i8 %2, 26
br i1 %or.cond50, label %if.end38.sink.split, label %if.end38
if.end38.sink.split: ; preds = %if.else, %while.body
%.sink = phi i8 [ -32, %while.body ], [ 32, %if.else ]
%add = add nsw i8 %0, %.sink
store i8 %add, ptr %arrayidx54, align 1, !tbaa !5
br label %if.end38
if.end38: ; preds = %if.end38.sink.split, %if.else
%indvars.iv.next = add nuw i64 %indvars.iv, 1
%arrayidx = getelementptr inbounds [1200 x i8], ptr %a, i64 0, i64 %indvars.iv.next
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx)
%tobool.not = icmp eq i32 %call, 0
br i1 %tobool.not, label %while.end, label %land.rhs, !llvm.loop !8
while.end: ; preds = %land.rhs, %if.end38, %entry
%call39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull %a)
call void @llvm.lifetime.end.p0(i64 1200, 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: 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: 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) #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 = { 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"}
|
#include<stdio.h>
int main(){
int n,a[200010],i,q;
scanf("%d",&n);
for(i=0;i<n;i++) scanf("%d",&a[i]);
for(i=0;i<n/2;i++)
if(i%2==0){
q=a[i];
a[i]=a[n-1-i];
a[n-1-i]=q;
}
for(i=0;i<n-1;i++) printf("%d ",a[i]);
printf("%d\n",a[n-1]);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17631/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17631/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 \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 [200010 x i32], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #3
call void @llvm.lifetime.start.p0(i64 800040, 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
%cmp46 = icmp sgt i32 %0, 0
br i1 %cmp46, label %for.body, label %for.cond20.preheader.for.end29_crit_edge
for.cond2.preheader: ; preds = %for.body
%cmp348 = icmp sgt i32 %1, 1
br i1 %cmp348, label %for.body4.preheader, label %for.cond20.preheader.for.end29_crit_edge
for.body4.preheader: ; preds = %for.cond2.preheader
%div6769 = lshr i32 %1, 1
%wide.trip.count = zext i32 %div6769 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 [200010 x i32], ptr %a, i64 0, 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
%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.body, label %for.cond2.preheader, !llvm.loop !9
for.cond20.preheader: ; preds = %for.inc17
br i1 %cmp348, label %for.body23, label %for.cond20.preheader.for.end29_crit_edge
for.cond20.preheader.for.end29_crit_edge: ; preds = %entry, %for.cond2.preheader, %for.cond20.preheader
%3 = phi i32 [ %1, %for.cond20.preheader ], [ %1, %for.cond2.preheader ], [ %0, %entry ]
%sub2150 = add nsw i32 %3, -1
%.pre = sext i32 %sub2150 to i64
br label %for.end29
for.body4: ; preds = %for.body4.preheader, %for.inc17
%indvars.iv57 = phi i64 [ 0, %for.body4.preheader ], [ %indvars.iv.next58, %for.inc17 ]
%rem63 = and i64 %indvars.iv57, 1
%cmp5 = icmp eq i64 %rem63, 0
br i1 %cmp5, label %if.then, label %for.inc17
if.then: ; preds = %for.body4
%arrayidx7 = getelementptr inbounds [200010 x i32], ptr %a, i64 0, i64 %indvars.iv57
%4 = load i32, ptr %arrayidx7, align 4, !tbaa !5
%5 = trunc i64 %indvars.iv57 to i32
%6 = xor i32 %5, -1
%sub8 = add i32 %1, %6
%idxprom9 = sext i32 %sub8 to i64
%arrayidx10 = getelementptr inbounds [200010 x i32], ptr %a, i64 0, i64 %idxprom9
%7 = load i32, ptr %arrayidx10, align 4, !tbaa !5
store i32 %7, ptr %arrayidx7, align 4, !tbaa !5
store i32 %4, ptr %arrayidx10, align 4, !tbaa !5
br label %for.inc17
for.inc17: ; preds = %for.body4, %if.then
%indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
%exitcond.not = icmp eq i64 %indvars.iv.next58, %wide.trip.count
br i1 %exitcond.not, label %for.cond20.preheader, label %for.body4, !llvm.loop !11
for.body23: ; preds = %for.cond20.preheader, %for.body23
%indvars.iv60 = phi i64 [ %indvars.iv.next61, %for.body23 ], [ 0, %for.cond20.preheader ]
%arrayidx25 = getelementptr inbounds [200010 x i32], ptr %a, i64 0, i64 %indvars.iv60
%8 = load i32, ptr %arrayidx25, align 4, !tbaa !5
%call26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %8)
%indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
%9 = load i32, ptr %n, align 4, !tbaa !5
%sub21 = add nsw i32 %9, -1
%10 = sext i32 %sub21 to i64
%cmp22 = icmp slt i64 %indvars.iv.next61, %10
br i1 %cmp22, label %for.body23, label %for.end29, !llvm.loop !12
for.end29: ; preds = %for.body23, %for.cond20.preheader.for.end29_crit_edge
%idxprom31.pre-phi = phi i64 [ %.pre, %for.cond20.preheader.for.end29_crit_edge ], [ %10, %for.body23 ]
%arrayidx32 = getelementptr inbounds [200010 x i32], ptr %a, i64 0, i64 %idxprom31.pre-phi
%11 = load i32, ptr %arrayidx32, align 4, !tbaa !5
%call33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %11)
call void @llvm.lifetime.end.p0(i64 800040, 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"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
|
// AOJ 2237: The Castle
// 2017.12.9
#include <stdio.h>
#include <string.h>
double p[16][16];
double dp[65536][16];
int main()
{
int m, n, i, j, k, l, b;
double t, a, pro;
scanf("%d%d", &m, &n);
for (i = 0; i < m; i++) for (j = 0; j < n; j++) scanf("%lf", &p[i][j]);
for (i = (1 << m) - 1; i >= 0; i--) {
for (j = n-1; j >= 0; j--) {
t = 0;
for (b = 1, k = 0; k < m; k++, b <<= 1) if (!(i & b)) {
pro = 1, a = 0;
for (l = j; l < n; l++) {
a += pro * (1.0 - p[k][l]) * dp[i | b][l];
pro *= p[k][l];
}
a += pro;
if (a > t) t = a;
}
dp[i][j] = t;
}
}
printf("%.12lf\n",dp[0][0]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176353/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176353/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"%lf\00", align 1
@p = dso_local global [16 x [16 x double]] zeroinitializer, align 16
@dp = dso_local local_unnamed_addr global [65536 x [16 x double]] zeroinitializer, align 16
@.str.2 = private unnamed_addr constant [8 x i8] c"%.12lf\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%m = alloca i32, align 4
%n = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #5
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 %m, ptr noundef nonnull %n)
%0 = load i32, ptr %m, align 4, !tbaa !5
%cmp88 = icmp sgt i32 %0, 0
br i1 %cmp88, label %for.cond1.preheader.lr.ph, label %for.body12.lr.ph
for.cond1.preheader.lr.ph: ; preds = %entry
%1 = load i32, ptr %n, align 4, !tbaa !5
%2 = icmp sgt i32 %1, 0
br i1 %2, label %for.cond1.preheader, label %for.end56
for.cond1.preheader: ; preds = %for.cond1.preheader.lr.ph, %for.inc7
%3 = phi i32 [ %7, %for.inc7 ], [ %0, %for.cond1.preheader.lr.ph ]
%4 = phi i32 [ %8, %for.inc7 ], [ %1, %for.cond1.preheader.lr.ph ]
%indvars.iv142 = phi i64 [ %indvars.iv.next143, %for.inc7 ], [ 0, %for.cond1.preheader.lr.ph ]
%cmp286 = icmp sgt i32 %4, 0
br i1 %cmp286, label %for.body3, label %for.inc7
for.body3: ; preds = %for.cond1.preheader, %for.body3
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body3 ], [ 0, %for.cond1.preheader ]
%arrayidx5 = getelementptr inbounds [16 x [16 x double]], ptr @p, i64 0, i64 %indvars.iv142, i64 %indvars.iv
%call6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, 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.loopexit, !llvm.loop !9
for.inc7.loopexit: ; preds = %for.body3
%.pre = load i32, ptr %m, align 4, !tbaa !5
br label %for.inc7
for.inc7: ; preds = %for.inc7.loopexit, %for.cond1.preheader
%7 = phi i32 [ %.pre, %for.inc7.loopexit ], [ %3, %for.cond1.preheader ]
%8 = phi i32 [ %5, %for.inc7.loopexit ], [ %4, %for.cond1.preheader ]
%indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
%9 = sext i32 %7 to i64
%cmp = icmp slt i64 %indvars.iv.next143, %9
br i1 %cmp, label %for.cond1.preheader, label %for.body12.lr.ph, !llvm.loop !11
for.body12.lr.ph: ; preds = %for.inc7, %entry
%.lcssa.ph = phi i32 [ %0, %entry ], [ %7, %for.inc7 ]
%.pr = load i32, ptr %n, align 4, !tbaa !5
%notmask = shl nsw i32 -1, %.lcssa.ph
%sub = xor i32 %notmask, -1
%j.1104 = add i32 %.pr, -1
%cmp15105 = icmp sgt i32 %.pr, 0
br i1 %cmp15105, label %for.body12.lr.ph.split.us, label %for.end56
for.body12.lr.ph.split.us: ; preds = %for.body12.lr.ph
%cmp1896 = icmp sgt i32 %.lcssa.ph, 0
br i1 %cmp1896, label %for.body12.us.us.preheader, label %for.body12.us.preheader
for.body12.us.preheader: ; preds = %for.body12.lr.ph.split.us
%10 = zext i32 %sub to i64
%11 = zext i32 %.pr to i64
%12 = shl nuw nsw i64 %11, 3
%13 = sub i32 0, %notmask
%wide.trip.count = zext i32 %13 to i64
%xtraiter = and i64 %wide.trip.count, 3
%14 = icmp ult i32 %13, 4
br i1 %14, label %for.end56.loopexit179.unr-lcssa, label %for.body12.us.preheader.new
for.body12.us.preheader.new: ; preds = %for.body12.us.preheader
%unroll_iter = and i64 %wide.trip.count, 4294967292
br label %for.body12.us
for.body12.us.us.preheader: ; preds = %for.body12.lr.ph.split.us
%15 = zext i32 %.pr to i64
%16 = zext i32 %j.1104 to i64
%17 = zext i32 %sub to i64
%wide.trip.count157 = zext i32 %.lcssa.ph to i64
%xtraiter182 = and i32 %.lcssa.ph, 1
%18 = icmp eq i32 %.lcssa.ph, 1
%unroll_iter186 = and i32 %.lcssa.ph, -2
%lcmp.mod184.not = icmp eq i32 %xtraiter182, 0
br label %for.body12.us.us
for.body12.us.us: ; preds = %for.body12.us.us.preheader, %for.cond14.for.inc54_crit_edge.split.us.us.us
%indvars.iv162 = phi i64 [ %17, %for.body12.us.us.preheader ], [ %indvars.iv.next163, %for.cond14.for.inc54_crit_edge.split.us.us.us ]
%19 = trunc i64 %indvars.iv162 to i32
%20 = trunc i64 %indvars.iv162 to i32
br label %for.cond17.preheader.us.us.us
for.cond17.preheader.us.us.us: ; preds = %for.cond17.for.end47_crit_edge.us.us.us, %for.body12.us.us
%indvars.iv159 = phi i64 [ %indvars.iv.next160, %for.cond17.for.end47_crit_edge.us.us.us ], [ %16, %for.body12.us.us ]
%indvars.iv149.in = phi i64 [ %indvars.iv149, %for.cond17.for.end47_crit_edge.us.us.us ], [ %15, %for.body12.us.us ]
%indvars.iv149 = add nsw i64 %indvars.iv149.in, -1
%cmp2190.us.us.us = icmp slt i64 %indvars.iv159, %15
%cmp2190.fr.us.us.us = freeze i1 %cmp2190.us.us.us
br i1 %cmp2190.fr.us.us.us, label %for.body19.us.us.us.us, label %for.body19.us107.us.us.preheader
for.body19.us107.us.us.preheader: ; preds = %for.cond17.preheader.us.us.us
br i1 %18, label %for.cond17.for.end47_crit_edge.us.us.us.loopexit178.unr-lcssa, label %for.body19.us107.us.us
for.body19.us107.us.us: ; preds = %for.body19.us107.us.us.preheader, %for.body19.us107.us.us
%t.0101.us108.us.us = phi double [ %t.1.us115.us.us.1, %for.body19.us107.us.us ], [ 0.000000e+00, %for.body19.us107.us.us.preheader ]
%b.099.us109.us.us = phi i32 [ %shl46.us117.us.us.1, %for.body19.us107.us.us ], [ 1, %for.body19.us107.us.us.preheader ]
%niter187 = phi i32 [ %niter187.next.1, %for.body19.us107.us.us ], [ 0, %for.body19.us107.us.us.preheader ]
%and.us111.us.us = and i32 %b.099.us109.us.us, %19
%tobool.not.us112.us.us = icmp eq i32 %and.us111.us.us, 0
%cmp41.us120.us.us = fcmp olt double %t.0101.us108.us.us, 1.000000e+00
%or.cond = select i1 %tobool.not.us112.us.us, i1 %cmp41.us120.us.us, i1 false
%t.1.us115.us.us = select i1 %or.cond, double 1.000000e+00, double %t.0101.us108.us.us
%shl46.us117.us.us = shl i32 %b.099.us109.us.us, 1
%and.us111.us.us.1 = and i32 %shl46.us117.us.us, %19
%tobool.not.us112.us.us.1 = icmp eq i32 %and.us111.us.us.1, 0
%cmp41.us120.us.us.1 = fcmp olt double %t.1.us115.us.us, 1.000000e+00
%or.cond.1 = select i1 %tobool.not.us112.us.us.1, i1 %cmp41.us120.us.us.1, i1 false
%t.1.us115.us.us.1 = select i1 %or.cond.1, double 1.000000e+00, double %t.1.us115.us.us
%shl46.us117.us.us.1 = shl i32 %b.099.us109.us.us, 2
%niter187.next.1 = add i32 %niter187, 2
%niter187.ncmp.1 = icmp eq i32 %niter187.next.1, %unroll_iter186
br i1 %niter187.ncmp.1, label %for.cond17.for.end47_crit_edge.us.us.us.loopexit178.unr-lcssa, label %for.body19.us107.us.us, !llvm.loop !13
for.cond17.for.end47_crit_edge.us.us.us.loopexit178.unr-lcssa: ; preds = %for.body19.us107.us.us, %for.body19.us107.us.us.preheader
%t.1.us115.us.us.lcssa.ph = phi double [ undef, %for.body19.us107.us.us.preheader ], [ %t.1.us115.us.us.1, %for.body19.us107.us.us ]
%t.0101.us108.us.us.unr = phi double [ 0.000000e+00, %for.body19.us107.us.us.preheader ], [ %t.1.us115.us.us.1, %for.body19.us107.us.us ]
%b.099.us109.us.us.unr = phi i32 [ 1, %for.body19.us107.us.us.preheader ], [ %shl46.us117.us.us.1, %for.body19.us107.us.us ]
br i1 %lcmp.mod184.not, label %for.cond17.for.end47_crit_edge.us.us.us, label %for.body19.us107.us.us.epil
for.body19.us107.us.us.epil: ; preds = %for.cond17.for.end47_crit_edge.us.us.us.loopexit178.unr-lcssa
%and.us111.us.us.epil = and i32 %b.099.us109.us.us.unr, %19
%tobool.not.us112.us.us.epil = icmp eq i32 %and.us111.us.us.epil, 0
%cmp41.us120.us.us.epil = fcmp olt double %t.0101.us108.us.us.unr, 1.000000e+00
%or.cond.epil = select i1 %tobool.not.us112.us.us.epil, i1 %cmp41.us120.us.us.epil, i1 false
%t.1.us115.us.us.epil = select i1 %or.cond.epil, double 1.000000e+00, double %t.0101.us108.us.us.unr
br label %for.cond17.for.end47_crit_edge.us.us.us
for.cond17.for.end47_crit_edge.us.us.us: ; preds = %for.body19.us107.us.us.epil, %for.cond17.for.end47_crit_edge.us.us.us.loopexit178.unr-lcssa, %for.inc44.us.us.us.us
%.us-phi103.us.us.us = phi double [ %t.1.us.us.us.us, %for.inc44.us.us.us.us ], [ %t.1.us115.us.us.lcssa.ph, %for.cond17.for.end47_crit_edge.us.us.us.loopexit178.unr-lcssa ], [ %t.1.us115.us.us.epil, %for.body19.us107.us.us.epil ]
%arrayidx51.us.us.us = getelementptr inbounds [65536 x [16 x double]], ptr @dp, i64 0, i64 %indvars.iv162, i64 %indvars.iv159
store double %.us-phi103.us.us.us, ptr %arrayidx51.us.us.us, align 8, !tbaa !14
%cmp15.us.us.us = icmp sgt i64 %indvars.iv159, 0
%indvars.iv.next160 = add nsw i64 %indvars.iv159, -1
br i1 %cmp15.us.us.us, label %for.cond17.preheader.us.us.us, label %for.cond14.for.inc54_crit_edge.split.us.us.us, !llvm.loop !16
for.body19.us.us.us.us: ; preds = %for.cond17.preheader.us.us.us, %for.inc44.us.us.us.us
%indvars.iv154 = phi i64 [ %indvars.iv.next155, %for.inc44.us.us.us.us ], [ 0, %for.cond17.preheader.us.us.us ]
%t.0101.us.us.us.us = phi double [ %t.1.us.us.us.us, %for.inc44.us.us.us.us ], [ 0.000000e+00, %for.cond17.preheader.us.us.us ]
%b.099.us.us.us.us = phi i32 [ %shl46.us.us.us.us, %for.inc44.us.us.us.us ], [ 1, %for.cond17.preheader.us.us.us ]
%and.us.us.us.us = and i32 %b.099.us.us.us.us, %20
%tobool.not.us.us.us.us = icmp eq i32 %and.us.us.us.us, 0
br i1 %tobool.not.us.us.us.us, label %for.cond20.preheader.us.us.us.us, label %for.inc44.us.us.us.us
if.then42.us.us.us.us: ; preds = %for.cond20.for.end40_crit_edge.us.us.us.us
br label %for.inc44.us.us.us.us
for.inc44.us.us.us.us: ; preds = %for.cond20.for.end40_crit_edge.us.us.us.us, %if.then42.us.us.us.us, %for.body19.us.us.us.us
%t.1.us.us.us.us = phi double [ %t.0101.us.us.us.us, %for.body19.us.us.us.us ], [ %add.us.us.us.us, %if.then42.us.us.us.us ], [ %t.0101.us.us.us.us, %for.cond20.for.end40_crit_edge.us.us.us.us ]
%indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
%shl46.us.us.us.us = shl i32 %b.099.us.us.us.us, 1
%exitcond158.not = icmp eq i64 %indvars.iv.next155, %wide.trip.count157
br i1 %exitcond158.not, label %for.cond17.for.end47_crit_edge.us.us.us, label %for.body19.us.us.us.us, !llvm.loop !13
for.body22.us.us.us.us: ; preds = %for.cond20.preheader.us.us.us.us, %for.body22.us.us.us.us
%indvars.iv151 = phi i64 [ %indvars.iv149, %for.cond20.preheader.us.us.us.us ], [ %indvars.iv.next152, %for.body22.us.us.us.us ]
%pro.093.us.us.us.us = phi double [ 1.000000e+00, %for.cond20.preheader.us.us.us.us ], [ %mul37.us.us.us.us, %for.body22.us.us.us.us ]
%a.092.us.us.us.us = phi double [ 0.000000e+00, %for.cond20.preheader.us.us.us.us ], [ %23, %for.body22.us.us.us.us ]
%arrayidx26.us.us.us.us = getelementptr inbounds [16 x [16 x double]], ptr @p, i64 0, i64 %indvars.iv154, i64 %indvars.iv151
%21 = load double, ptr %arrayidx26.us.us.us.us, align 8, !tbaa !14
%sub27.us.us.us.us = fsub double 1.000000e+00, %21
%mul.us.us.us.us = fmul double %pro.093.us.us.us.us, %sub27.us.us.us.us
%arrayidx31.us.us.us.us = getelementptr inbounds [65536 x [16 x double]], ptr @dp, i64 0, i64 %idxprom28.us.us.us.us, i64 %indvars.iv151
%22 = load double, ptr %arrayidx31.us.us.us.us, align 8, !tbaa !14
%23 = call double @llvm.fmuladd.f64(double %mul.us.us.us.us, double %22, double %a.092.us.us.us.us)
%mul37.us.us.us.us = fmul double %pro.093.us.us.us.us, %21
%indvars.iv.next152 = add nsw i64 %indvars.iv151, 1
%cmp21.us.us.us.us = icmp slt i64 %indvars.iv.next152, %15
br i1 %cmp21.us.us.us.us, label %for.body22.us.us.us.us, label %for.cond20.for.end40_crit_edge.us.us.us.us, !llvm.loop !17
for.cond20.preheader.us.us.us.us: ; preds = %for.body19.us.us.us.us
%or.us.us.us.us = or i32 %b.099.us.us.us.us, %20
%idxprom28.us.us.us.us = sext i32 %or.us.us.us.us to i64
br label %for.body22.us.us.us.us
for.cond20.for.end40_crit_edge.us.us.us.us: ; preds = %for.body22.us.us.us.us
%add.us.us.us.us = fadd double %23, %mul37.us.us.us.us
%cmp41.us.us.us.us = fcmp ogt double %add.us.us.us.us, %t.0101.us.us.us.us
br i1 %cmp41.us.us.us.us, label %if.then42.us.us.us.us, label %for.inc44.us.us.us.us
for.cond14.for.inc54_crit_edge.split.us.us.us: ; preds = %for.cond17.for.end47_crit_edge.us.us.us
%indvars.iv.next163 = add nsw i64 %indvars.iv162, -1
%cmp11.us.us = icmp sgt i64 %indvars.iv162, 0
br i1 %cmp11.us.us, label %for.body12.us.us, label %for.end56, !llvm.loop !18
for.body12.us: ; preds = %for.body12.us, %for.body12.us.preheader.new
%indvar = phi i64 [ 0, %for.body12.us.preheader.new ], [ %indvar.next.3, %for.body12.us ]
%niter = phi i64 [ 0, %for.body12.us.preheader.new ], [ %niter.next.3, %for.body12.us ]
%24 = sub nsw i64 %10, %indvar
%25 = shl i64 %24, 7
%scevgep = getelementptr i8, ptr @dp, i64 %25
call void @llvm.memset.p0.i64(ptr align 16 %scevgep, i8 0, i64 %12, i1 false), !tbaa !14
%indvar.next.neg = xor i64 %indvar, -1
%26 = add nsw i64 %indvar.next.neg, %10
%27 = shl i64 %26, 7
%scevgep.1 = getelementptr i8, ptr @dp, i64 %27
call void @llvm.memset.p0.i64(ptr align 16 %scevgep.1, i8 0, i64 %12, i1 false), !tbaa !14
%indvar.next.1 = or i64 %indvar, 2
%28 = sub nsw i64 %10, %indvar.next.1
%29 = shl i64 %28, 7
%scevgep.2 = getelementptr i8, ptr @dp, i64 %29
call void @llvm.memset.p0.i64(ptr align 16 %scevgep.2, i8 0, i64 %12, i1 false), !tbaa !14
%indvar.next.2 = or i64 %indvar, 3
%30 = sub nsw i64 %10, %indvar.next.2
%31 = shl i64 %30, 7
%scevgep.3 = getelementptr i8, ptr @dp, i64 %31
call void @llvm.memset.p0.i64(ptr align 16 %scevgep.3, i8 0, i64 %12, i1 false), !tbaa !14
%indvar.next.3 = add nuw nsw i64 %indvar, 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.end56.loopexit179.unr-lcssa, label %for.body12.us, !llvm.loop !18
for.end56.loopexit179.unr-lcssa: ; preds = %for.body12.us, %for.body12.us.preheader
%indvar.unr = phi i64 [ 0, %for.body12.us.preheader ], [ %indvar.next.3, %for.body12.us ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.end56, label %for.body12.us.epil
for.body12.us.epil: ; preds = %for.end56.loopexit179.unr-lcssa, %for.body12.us.epil
%indvar.epil = phi i64 [ %indvar.next.epil, %for.body12.us.epil ], [ %indvar.unr, %for.end56.loopexit179.unr-lcssa ]
%epil.iter = phi i64 [ %epil.iter.next, %for.body12.us.epil ], [ 0, %for.end56.loopexit179.unr-lcssa ]
%32 = sub nsw i64 %10, %indvar.epil
%33 = shl i64 %32, 7
%scevgep.epil = getelementptr i8, ptr @dp, i64 %33
call void @llvm.memset.p0.i64(ptr align 16 %scevgep.epil, i8 0, i64 %12, i1 false), !tbaa !14
%indvar.next.epil = add nuw nsw i64 %indvar.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.end56, label %for.body12.us.epil, !llvm.loop !19
for.end56: ; preds = %for.end56.loopexit179.unr-lcssa, %for.body12.us.epil, %for.cond14.for.inc54_crit_edge.split.us.us.us, %for.cond1.preheader.lr.ph, %for.body12.lr.ph
%34 = load double, ptr @dp, align 16, !tbaa !14
%call57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %34)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %m) #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 speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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}
!12 = !{!"llvm.loop.unswitch.partial.disable"}
!13 = distinct !{!13, !10}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
|
#include <stdio.h>
int main(void){
int H,W,K,i,j,bit_h,bit_w,count,ans;
char c[7][7];
scanf("%d %d %d",&H,&W,&K);
for(i=0;i<H;i++){
scanf("%s",c[i]);
}
ans = 0;
for(bit_h=0;bit_h<(1<<H);bit_h++){
for(bit_w=0;bit_w<(1<<W);bit_w++){
count = 0;
for(i=0;i<H;i++){
for(j=0;j<W;j++){
if(((bit_h >> i) & 1) && ((bit_w >> j) & 1) == 0 && (c[i][j] == '#')){
count++;
}
}
}
if(count == K){
ans++;
}
}
}
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176397/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176397/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"%s\00", align 1
@.str.2 = 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:
%H = alloca i32, align 4
%W = alloca i32, align 4
%K = alloca i32, align 4
%c = alloca [7 x [7 x i8]], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %H) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %W) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %K) #4
call void @llvm.lifetime.start.p0(i64 49, ptr nonnull %c) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %H, ptr noundef nonnull %W, ptr noundef nonnull %K)
%0 = load i32, ptr %H, align 4, !tbaa !5
%cmp60 = icmp sgt i32 %0, 0
br i1 %cmp60, label %for.body, label %for.cond5.preheader.lr.ph
for.cond2.preheader: ; preds = %for.body
%cmp389.not = icmp eq i32 %23, 31
br i1 %cmp389.not, label %for.end42, label %for.cond5.preheader.lr.ph
for.cond5.preheader.lr.ph: ; preds = %entry, %for.cond2.preheader
%.lcssa139 = phi i32 [ %23, %for.cond2.preheader ], [ %0, %entry ]
%1 = load i32, ptr %W, align 4, !tbaa !5
%cmp777.not = icmp eq i32 %1, 31
%cmp1362 = icmp sgt i32 %1, 0
%2 = load i32, ptr %K, align 4
%cmp32 = icmp eq i32 %2, 0
br i1 %cmp777.not, label %for.end42, label %for.cond5.preheader.lr.ph.split.us
for.cond5.preheader.lr.ph.split.us: ; preds = %for.cond5.preheader.lr.ph
%shl6 = shl nuw i32 1, %1
%shl140 = shl nuw i32 1, %.lcssa139
%cmp1066 = icmp sgt i32 %.lcssa139, 0
%smax132 = call i32 @llvm.smax.i32(i32 %shl6, i32 1)
%smax134 = call i32 @llvm.smax.i32(i32 %shl140, i32 1)
br i1 %cmp1066, label %for.cond5.preheader.lr.ph.split.us.split.us, label %for.cond5.preheader.us.preheader
for.cond5.preheader.us.preheader: ; preds = %for.cond5.preheader.lr.ph.split.us
%3 = mul i32 %smax132, %smax134
%4 = select i1 %cmp32, i32 %3, i32 0
br label %for.end42
for.cond5.preheader.lr.ph.split.us.split.us: ; preds = %for.cond5.preheader.lr.ph.split.us
br i1 %cmp1362, label %for.cond5.preheader.us.us.us.preheader, label %for.cond5.preheader.us.us.preheader
for.cond5.preheader.us.us.preheader: ; preds = %for.cond5.preheader.lr.ph.split.us.split.us
%5 = mul i32 %smax132, %smax134
%6 = select i1 %cmp32, i32 %5, i32 0
br label %for.end42
for.cond5.preheader.us.us.us.preheader: ; preds = %for.cond5.preheader.lr.ph.split.us.split.us
%wide.trip.count130 = zext i32 %.lcssa139 to i64
%wide.trip.count = zext i32 %1 to i64
%xtraiter = and i64 %wide.trip.count, 1
%7 = icmp eq i32 %1, 1
%unroll_iter = and i64 %wide.trip.count, 4294967294
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br label %for.cond5.preheader.us.us.us
for.cond5.preheader.us.us.us: ; preds = %for.cond5.preheader.us.us.us.preheader, %for.cond5.for.inc40_crit_edge.split.us.split.us.us.us.us
%ans.093.us.us.us = phi i32 [ %spec.select59.us.us.us.us.us, %for.cond5.for.inc40_crit_edge.split.us.split.us.us.us.us ], [ 0, %for.cond5.preheader.us.us.us.preheader ]
%bit_h.090.us.us.us = phi i32 [ %inc41.us.us.us, %for.cond5.for.inc40_crit_edge.split.us.split.us.us.us.us ], [ 0, %for.cond5.preheader.us.us.us.preheader ]
br label %for.cond9.preheader.us.us.us.us.us
for.cond9.preheader.us.us.us.us.us: ; preds = %for.cond9.for.end31_crit_edge.split.us.us.us.us.us.us, %for.cond5.preheader.us.us.us
%ans.180.us.us.us.us.us = phi i32 [ %ans.093.us.us.us, %for.cond5.preheader.us.us.us ], [ %spec.select59.us.us.us.us.us, %for.cond9.for.end31_crit_edge.split.us.us.us.us.us.us ]
%bit_w.078.us.us.us.us.us = phi i32 [ 0, %for.cond5.preheader.us.us.us ], [ %inc38.us.us.us.us.us, %for.cond9.for.end31_crit_edge.split.us.us.us.us.us.us ]
br label %for.cond12.preheader.us.us.us.us.us.us
for.cond12.preheader.us.us.us.us.us.us: ; preds = %for.cond12.for.inc29_crit_edge.us.us.us.us.us.us, %for.cond9.preheader.us.us.us.us.us
%indvars.iv127 = phi i64 [ %indvars.iv.next128, %for.cond12.for.inc29_crit_edge.us.us.us.us.us.us ], [ 0, %for.cond9.preheader.us.us.us.us.us ]
%count.068.us.us.us.us.us.us = phi i32 [ %.us-phi.us.us.us.us.us.us, %for.cond12.for.inc29_crit_edge.us.us.us.us.us.us ], [ 0, %for.cond9.preheader.us.us.us.us.us ]
%8 = trunc i64 %indvars.iv127 to i32
%9 = shl nuw i32 1, %8
%10 = and i32 %9, %bit_h.090.us.us.us
%tobool.not.us.us.us.us.us.us = icmp eq i32 %10, 0
br i1 %tobool.not.us.us.us.us.us.us, label %for.cond12.for.inc29_crit_edge.us.us.us.us.us.us, label %for.body14.us70.us.us.us.us.us.preheader
for.body14.us70.us.us.us.us.us.preheader: ; preds = %for.cond12.preheader.us.us.us.us.us.us
br i1 %7, label %for.cond12.for.inc29_crit_edge.us.us.us.us.us.us.loopexit.unr-lcssa, label %for.body14.us70.us.us.us.us.us
for.body14.us70.us.us.us.us.us: ; preds = %for.body14.us70.us.us.us.us.us.preheader, %for.inc26.us.us.us.us.us.us.1
%indvars.iv124 = phi i64 [ %indvars.iv.next125.1, %for.inc26.us.us.us.us.us.us.1 ], [ 0, %for.body14.us70.us.us.us.us.us.preheader ]
%count.164.us.us.us.us.us.us = phi i32 [ %count.2.us.us.us.us.us.us.1, %for.inc26.us.us.us.us.us.us.1 ], [ %count.068.us.us.us.us.us.us, %for.body14.us70.us.us.us.us.us.preheader ]
%niter = phi i64 [ %niter.next.1, %for.inc26.us.us.us.us.us.us.1 ], [ 0, %for.body14.us70.us.us.us.us.us.preheader ]
%11 = trunc i64 %indvars.iv124 to i32
%12 = shl nuw i32 1, %11
%13 = and i32 %12, %bit_w.078.us.us.us.us.us
%cmp17.us.us.us.us.us.us = icmp eq i32 %13, 0
br i1 %cmp17.us.us.us.us.us.us, label %land.lhs.true18.us.us.us.us.us.us, label %for.inc26.us.us.us.us.us.us
land.lhs.true18.us.us.us.us.us.us: ; preds = %for.body14.us70.us.us.us.us.us
%arrayidx22.us.us.us.us.us.us = getelementptr inbounds [7 x [7 x i8]], ptr %c, i64 0, i64 %indvars.iv127, i64 %indvars.iv124
%14 = load i8, ptr %arrayidx22.us.us.us.us.us.us, align 1, !tbaa !9
%cmp23.us.us.us.us.us.us = icmp eq i8 %14, 35
%inc25.us.us.us.us.us.us = zext i1 %cmp23.us.us.us.us.us.us to i32
%spec.select.us.us.us.us.us.us = add nsw i32 %count.164.us.us.us.us.us.us, %inc25.us.us.us.us.us.us
br label %for.inc26.us.us.us.us.us.us
for.inc26.us.us.us.us.us.us: ; preds = %land.lhs.true18.us.us.us.us.us.us, %for.body14.us70.us.us.us.us.us
%count.2.us.us.us.us.us.us = phi i32 [ %count.164.us.us.us.us.us.us, %for.body14.us70.us.us.us.us.us ], [ %spec.select.us.us.us.us.us.us, %land.lhs.true18.us.us.us.us.us.us ]
%indvars.iv.next125 = or i64 %indvars.iv124, 1
%15 = trunc i64 %indvars.iv.next125 to i32
%16 = shl nuw i32 1, %15
%17 = and i32 %16, %bit_w.078.us.us.us.us.us
%cmp17.us.us.us.us.us.us.1 = icmp eq i32 %17, 0
br i1 %cmp17.us.us.us.us.us.us.1, label %land.lhs.true18.us.us.us.us.us.us.1, label %for.inc26.us.us.us.us.us.us.1
land.lhs.true18.us.us.us.us.us.us.1: ; preds = %for.inc26.us.us.us.us.us.us
%arrayidx22.us.us.us.us.us.us.1 = getelementptr inbounds [7 x [7 x i8]], ptr %c, i64 0, i64 %indvars.iv127, i64 %indvars.iv.next125
%18 = load i8, ptr %arrayidx22.us.us.us.us.us.us.1, align 1, !tbaa !9
%cmp23.us.us.us.us.us.us.1 = icmp eq i8 %18, 35
%inc25.us.us.us.us.us.us.1 = zext i1 %cmp23.us.us.us.us.us.us.1 to i32
%spec.select.us.us.us.us.us.us.1 = add nsw i32 %count.2.us.us.us.us.us.us, %inc25.us.us.us.us.us.us.1
br label %for.inc26.us.us.us.us.us.us.1
for.inc26.us.us.us.us.us.us.1: ; preds = %land.lhs.true18.us.us.us.us.us.us.1, %for.inc26.us.us.us.us.us.us
%count.2.us.us.us.us.us.us.1 = phi i32 [ %count.2.us.us.us.us.us.us, %for.inc26.us.us.us.us.us.us ], [ %spec.select.us.us.us.us.us.us.1, %land.lhs.true18.us.us.us.us.us.us.1 ]
%indvars.iv.next125.1 = add nuw nsw i64 %indvars.iv124, 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.cond12.for.inc29_crit_edge.us.us.us.us.us.us.loopexit.unr-lcssa, label %for.body14.us70.us.us.us.us.us, !llvm.loop !10
for.cond12.for.inc29_crit_edge.us.us.us.us.us.us.loopexit.unr-lcssa: ; preds = %for.inc26.us.us.us.us.us.us.1, %for.body14.us70.us.us.us.us.us.preheader
%count.2.us.us.us.us.us.us.lcssa.ph = phi i32 [ undef, %for.body14.us70.us.us.us.us.us.preheader ], [ %count.2.us.us.us.us.us.us.1, %for.inc26.us.us.us.us.us.us.1 ]
%indvars.iv124.unr = phi i64 [ 0, %for.body14.us70.us.us.us.us.us.preheader ], [ %indvars.iv.next125.1, %for.inc26.us.us.us.us.us.us.1 ]
%count.164.us.us.us.us.us.us.unr = phi i32 [ %count.068.us.us.us.us.us.us, %for.body14.us70.us.us.us.us.us.preheader ], [ %count.2.us.us.us.us.us.us.1, %for.inc26.us.us.us.us.us.us.1 ]
br i1 %lcmp.mod.not, label %for.cond12.for.inc29_crit_edge.us.us.us.us.us.us, label %for.body14.us70.us.us.us.us.us.epil
for.body14.us70.us.us.us.us.us.epil: ; preds = %for.cond12.for.inc29_crit_edge.us.us.us.us.us.us.loopexit.unr-lcssa
%19 = trunc i64 %indvars.iv124.unr to i32
%20 = shl nuw i32 1, %19
%21 = and i32 %20, %bit_w.078.us.us.us.us.us
%cmp17.us.us.us.us.us.us.epil = icmp eq i32 %21, 0
br i1 %cmp17.us.us.us.us.us.us.epil, label %land.lhs.true18.us.us.us.us.us.us.epil, label %for.cond12.for.inc29_crit_edge.us.us.us.us.us.us
land.lhs.true18.us.us.us.us.us.us.epil: ; preds = %for.body14.us70.us.us.us.us.us.epil
%arrayidx22.us.us.us.us.us.us.epil = getelementptr inbounds [7 x [7 x i8]], ptr %c, i64 0, i64 %indvars.iv127, i64 %indvars.iv124.unr
%22 = load i8, ptr %arrayidx22.us.us.us.us.us.us.epil, align 1, !tbaa !9
%cmp23.us.us.us.us.us.us.epil = icmp eq i8 %22, 35
%inc25.us.us.us.us.us.us.epil = zext i1 %cmp23.us.us.us.us.us.us.epil to i32
%spec.select.us.us.us.us.us.us.epil = add nsw i32 %count.164.us.us.us.us.us.us.unr, %inc25.us.us.us.us.us.us.epil
br label %for.cond12.for.inc29_crit_edge.us.us.us.us.us.us
for.cond12.for.inc29_crit_edge.us.us.us.us.us.us: ; preds = %for.cond12.for.inc29_crit_edge.us.us.us.us.us.us.loopexit.unr-lcssa, %land.lhs.true18.us.us.us.us.us.us.epil, %for.body14.us70.us.us.us.us.us.epil, %for.cond12.preheader.us.us.us.us.us.us
%.us-phi.us.us.us.us.us.us = phi i32 [ %count.068.us.us.us.us.us.us, %for.cond12.preheader.us.us.us.us.us.us ], [ %count.2.us.us.us.us.us.us.lcssa.ph, %for.cond12.for.inc29_crit_edge.us.us.us.us.us.us.loopexit.unr-lcssa ], [ %count.164.us.us.us.us.us.us.unr, %for.body14.us70.us.us.us.us.us.epil ], [ %spec.select.us.us.us.us.us.us.epil, %land.lhs.true18.us.us.us.us.us.us.epil ]
%indvars.iv.next128 = add nuw nsw i64 %indvars.iv127, 1
%exitcond131.not = icmp eq i64 %indvars.iv.next128, %wide.trip.count130
br i1 %exitcond131.not, label %for.cond9.for.end31_crit_edge.split.us.us.us.us.us.us, label %for.cond12.preheader.us.us.us.us.us.us, !llvm.loop !12
for.cond9.for.end31_crit_edge.split.us.us.us.us.us.us: ; preds = %for.cond12.for.inc29_crit_edge.us.us.us.us.us.us
%cmp32.us.us.us.us.us = icmp eq i32 %.us-phi.us.us.us.us.us.us, %2
%inc35.us.us.us.us.us = zext i1 %cmp32.us.us.us.us.us to i32
%spec.select59.us.us.us.us.us = add nsw i32 %ans.180.us.us.us.us.us, %inc35.us.us.us.us.us
%inc38.us.us.us.us.us = add nuw nsw i32 %bit_w.078.us.us.us.us.us, 1
%exitcond133.not = icmp eq i32 %inc38.us.us.us.us.us, %smax132
br i1 %exitcond133.not, label %for.cond5.for.inc40_crit_edge.split.us.split.us.us.us.us, label %for.cond9.preheader.us.us.us.us.us, !llvm.loop !13
for.cond5.for.inc40_crit_edge.split.us.split.us.us.us.us: ; preds = %for.cond9.for.end31_crit_edge.split.us.us.us.us.us.us
%inc41.us.us.us = add nuw nsw i32 %bit_h.090.us.us.us, 1
%exitcond135.not = icmp eq i32 %inc41.us.us.us, %smax134
br i1 %exitcond135.not, label %for.end42, label %for.cond5.preheader.us.us.us, !llvm.loop !14
for.body: ; preds = %entry, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ]
%arrayidx = getelementptr inbounds [7 x [7 x i8]], ptr %c, 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
%23 = load i32, ptr %H, align 4, !tbaa !5
%24 = sext i32 %23 to i64
%cmp = icmp slt i64 %indvars.iv.next, %24
br i1 %cmp, label %for.body, label %for.cond2.preheader, !llvm.loop !15
for.end42: ; preds = %for.cond5.for.inc40_crit_edge.split.us.split.us.us.us.us, %for.cond5.preheader.lr.ph, %for.cond5.preheader.us.preheader, %for.cond5.preheader.us.us.preheader, %for.cond2.preheader
%ans.0.lcssa = phi i32 [ 0, %for.cond2.preheader ], [ %6, %for.cond5.preheader.us.us.preheader ], [ %4, %for.cond5.preheader.us.preheader ], [ 0, %for.cond5.preheader.lr.ph ], [ %spec.select59.us.us.us.us.us, %for.cond5.for.inc40_crit_edge.split.us.split.us.us.us.us ]
%call43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %ans.0.lcssa)
call void @llvm.lifetime.end.p0(i64 49, ptr nonnull %c) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %K) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %W) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %H) #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"}
!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 = distinct !{!15, !11}
|
#include<stdio.h>
int gcd(int a,int b)
{
if(b==0 ) return a;
return gcd(b,a%b);
}
int main()
{
int n,m,z;
scanf("%d %d %d",&n,&m,&z);
int total= (n*m)/gcd(n,m);
total= z/total;
printf("%d\n",total);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17644/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17644/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 norecurse nosync nounwind memory(none) uwtable
define dso_local i32 @gcd(i32 noundef %a, i32 noundef %b) local_unnamed_addr #0 {
entry:
%cmp4 = icmp eq i32 %b, 0
br i1 %cmp4, label %return, label %if.end
if.end: ; preds = %entry, %if.end
%b.tr6 = phi i32 [ %rem, %if.end ], [ %b, %entry ]
%a.tr5 = phi i32 [ %b.tr6, %if.end ], [ %a, %entry ]
%rem = srem i32 %a.tr5, %b.tr6
%cmp = icmp eq i32 %rem, 0
br i1 %cmp, label %return, label %if.end
return: ; preds = %if.end, %entry
%a.tr.lcssa = phi i32 [ %a, %entry ], [ %b.tr6, %if.end ]
ret i32 %a.tr.lcssa
}
; 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
%z = 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 %z) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %m, ptr noundef nonnull %z)
%0 = load i32, ptr %n, align 4, !tbaa !5
%1 = load i32, ptr %m, align 4, !tbaa !5
%cmp4.i = icmp eq i32 %1, 0
br i1 %cmp4.i, label %gcd.exit, label %if.end.i
if.end.i: ; preds = %entry, %if.end.i
%b.tr6.i = phi i32 [ %rem.i, %if.end.i ], [ %1, %entry ]
%a.tr5.i = phi i32 [ %b.tr6.i, %if.end.i ], [ %0, %entry ]
%rem.i = srem i32 %a.tr5.i, %b.tr6.i
%cmp.i = icmp eq i32 %rem.i, 0
br i1 %cmp.i, label %gcd.exit, label %if.end.i
gcd.exit: ; preds = %if.end.i, %entry
%a.tr.lcssa.i = phi i32 [ %0, %entry ], [ %b.tr6.i, %if.end.i ]
%mul = mul nsw i32 %1, %0
%div = sdiv i32 %mul, %a.tr.lcssa.i
%2 = load i32, ptr %z, align 4, !tbaa !5
%div2 = sdiv i32 %2, %div
%call3 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %div2)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %z) #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) #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 = { 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 #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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.