; LLVM IR from InsightSoftwareConsortium/ITK :: Modules/ThirdParty/MINC/src/libminc/nifti (nifti1_io)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.nifti_global_options = type { i32, i32, i32 }
%struct.nifti_image = type { i32, i32, i32, i32, i32, i32, i32, i32, [8 x i32], i64, i32, i32, float, float, float, float, float, float, float, [8 x float], float, float, float, float, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, float, float, float, float, %struct.mat44, %struct.mat44, %struct.mat44, %struct.mat44, float, i32, i32, i32, i32, float, float, float, [16 x i8], [80 x i8], [24 x i8], ptr, ptr, i32, i32, i32, ptr, i32, ptr, i32 }
%struct.mat44 = type { [4 x [4 x float]] }

@stderr = external global ptr, align 8
@g_opts = external hidden global %struct.nifti_global_options, align 4
@.str.13 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [49 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @valid_nifti_brick_list(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #2 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %25, label %15

15:                                               ; preds = %4
  %16 = load i32, ptr %9, align 4, !tbaa !9
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %21, label %18

18:                                               ; preds = %15
  %19 = load i32, ptr @g_opts, align 4, !tbaa !11
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %21, label %24

21:                                               ; preds = %18, %15
  %22 = load ptr, ptr @stderr, align 8, !tbaa !5
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.13) #3
  br label %24

24:                                               ; preds = %21, %18
  store i32 0, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %146

25:                                               ; preds = %4
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = icmp sle i32 %26, 0
  br i1 %27, label %31, label %28

28:                                               ; preds = %25
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %41, label %31

31:                                               ; preds = %28, %25
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %37, label %34

34:                                               ; preds = %31
  %35 = load i32, ptr @g_opts, align 4, !tbaa !11
  %36 = icmp sgt i32 %35, 1
  br i1 %36, label %37, label %40

37:                                               ; preds = %34, %31
  %38 = load ptr, ptr @stderr, align 8, !tbaa !5
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.14) #3
  br label %40

40:                                               ; preds = %37, %34
  store i32 0, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %146

41:                                               ; preds = %28
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.nifti_image, ptr %42, i32 0, i32 8
  %44 = getelementptr inbounds [8 x i32], ptr %43, i64 0, i64 0
  %45 = load i32, ptr %44, align 8, !tbaa !9
  %46 = icmp slt i32 %45, 3
  br i1 %46, label %47, label %61

47:                                               ; preds = %41
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %53, label %50

50:                                               ; preds = %47
  %51 = load i32, ptr @g_opts, align 4, !tbaa !11
  %52 = icmp sgt i32 %51, 1
  br i1 %52, label %53, label %60

53:                                               ; preds = %50, %47
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.nifti_image, ptr %55, i32 0, i32 8
  %57 = getelementptr inbounds [8 x i32], ptr %56, i64 0, i64 0
  %58 = load i32, ptr %57, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.15, i32 noundef %58) #3
  br label %60

60:                                               ; preds = %53, %50
  store i32 0, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %146

61:                                               ; preds = %41
  store i32 4, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %78, %61
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.nifti_image, ptr %64, i32 0, i32 8
  %66 = getelementptr inbounds [8 x i32], ptr %65, i64 0, i64 0
  %67 = load i32, ptr %66, align 8, !tbaa !9
  %68 = icmp sle i32 %63, %67
  br i1 %68, label %69, label %81

69:                                               ; preds = %62
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.nifti_image, ptr %70, i32 0, i32 8
  %72 = load i32, ptr %10, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [8 x i32], ptr %71, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = load i32, ptr %11, align 4, !tbaa !9
  %77 = mul nsw i32 %76, %75
  store i32 %77, ptr %11, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %69
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %10, align 4, !tbaa !9
  br label %62, !llvm.loop !13

81:                                               ; preds = %62
  %82 = load i32, ptr %11, align 4, !tbaa !9
  %83 = icmp sle i32 %82, 0
  br i1 %83, label %84, label %103

84:                                               ; preds = %81
  %85 = load ptr, ptr @stderr, align 8, !tbaa !5
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.nifti_image, ptr %86, i32 0, i32 8
  %88 = getelementptr inbounds [8 x i32], ptr %87, i64 0, i64 4
  %89 = load i32, ptr %88, align 8, !tbaa !9
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.nifti_image, ptr %90, i32 0, i32 8
  %92 = getelementptr inbounds [8 x i32], ptr %91, i64 0, i64 5
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.nifti_image, ptr %94, i32 0, i32 8
  %96 = getelementptr inbounds [8 x i32], ptr %95, i64 0, i64 6
  %97 = load i32, ptr %96, align 8, !tbaa !9
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.nifti_image, ptr %98, i32 0, i32 8
  %100 = getelementptr inbounds [8 x i32], ptr %99, i64 0, i64 7
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef @.str.16, i32 noundef %89, i32 noundef %93, i32 noundef %97, i32 noundef %101) #3
  store i32 0, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %146

103:                                              ; preds = %81
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %142, %103
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = load i32, ptr %7, align 4, !tbaa !9
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %108, label %145

108:                                              ; preds = %104
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = load i32, ptr %10, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds i32, ptr %109, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = icmp slt i32 %113, 0
  br i1 %114, label %123, label %115

115:                                              ; preds = %108
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = load i32, ptr %10, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds i32, ptr %116, i64 %118
  %120 = load i32, ptr %119, align 4, !tbaa !9
  %121 = load i32, ptr %11, align 4, !tbaa !9
  %122 = icmp sge i32 %120, %121
  br i1 %122, label %123, label %141

123:                                              ; preds = %115, %108
  %124 = load i32, ptr %9, align 4, !tbaa !9
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %129, label %126

126:                                              ; preds = %123
  %127 = load i32, ptr @g_opts, align 4, !tbaa !11
  %128 = icmp sgt i32 %127, 1
  br i1 %128, label %129, label %140

129:                                              ; preds = %126, %123
  %130 = load ptr, ptr @stderr, align 8, !tbaa !5
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = load i32, ptr %10, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds i32, ptr %131, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !9
  %136 = load i32, ptr %10, align 4, !tbaa !9
  %137 = load i32, ptr %11, align 4, !tbaa !9
  %138 = sub nsw i32 %137, 1
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.17, i32 noundef %135, i32 noundef %136, i32 noundef %138) #3
  br label %140

140:                                              ; preds = %129, %126
  store i32 0, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %146

141:                                              ; preds = %115
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %10, align 4, !tbaa !9
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %10, align 4, !tbaa !9
  br label %104, !llvm.loop !15

145:                                              ; preds = %104
  store i32 1, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %146

146:                                              ; preds = %145, %140, %84, %60, %40, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %147 = load i32, ptr %5, align 4
  ret i32 %147
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = { 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 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!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 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.nifti_global_options = type { i32, i32, i32 }

@stderr = external local_unnamed_addr global ptr, align 8
@g_opts = external hidden local_unnamed_addr global %struct.nifti_global_options, align 4
@.str.13 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [49 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: nofree nounwind uwtable
define dso_local range(i32 0, 2) i32 @valid_nifti_brick_list(ptr noundef readonly %0, i32 noundef %1, ptr noundef readonly %2, i32 noundef %3) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %5, label %12

5:                                                ; preds = %4
  %6 = icmp ne i32 %3, 0
  %7 = load i32, ptr @g_opts, align 4
  %8 = icmp sgt i32 %7, 0
  %or.cond = select i1 %6, i1 true, i1 %8
  br i1 %or.cond, label %9, label %.loopexit

9:                                                ; preds = %5
  %10 = load ptr, ptr @stderr, align 8, !tbaa !5
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.13) #3
  br label %.loopexit

12:                                               ; preds = %4
  %13 = icmp sgt i32 %1, 0
  %14 = icmp ne ptr %2, null
  %or.cond3 = and i1 %13, %14
  br i1 %or.cond3, label %22, label %15

15:                                               ; preds = %12
  %16 = icmp ne i32 %3, 0
  %17 = load i32, ptr @g_opts, align 4
  %18 = icmp sgt i32 %17, 1
  %or.cond5 = select i1 %16, i1 true, i1 %18
  br i1 %or.cond5, label %19, label %.loopexit

19:                                               ; preds = %15
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.14) #3
  br label %.loopexit

22:                                               ; preds = %12
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  %24 = load i32, ptr %23, align 8, !tbaa !9
  %25 = icmp slt i32 %24, 3
  br i1 %25, label %34, label %.preheader51

.preheader51:                                     ; preds = %22
  %.not4853 = icmp eq i32 %24, 3
  br i1 %.not4853, label %.lr.ph57.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader51
  %26 = add nuw i32 %24, 1
  %wide.trip.count = zext i32 %26 to i64
  %27 = add nsw i64 %wide.trip.count, -4
  %min.iters.check = icmp ult i64 %27, 8
  br i1 %min.iters.check, label %.lr.ph.preheader79, label %vector.ph

.lr.ph.preheader79:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 4, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %.055.ph = phi i32 [ 1, %.lr.ph.preheader ], [ %33, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %27, -8
  %ind.end = or disjoint i64 %n.vec, 4
  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> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %30, %vector.body ]
  %vec.phi75 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %31, %vector.body ]
  %offset.idx = or disjoint i64 %index, 4
  %28 = getelementptr inbounds [8 x i32], ptr %23, i64 0, i64 %offset.idx
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  %wide.load = load <4 x i32>, ptr %28, align 4, !tbaa !9
  %wide.load76 = load <4 x i32>, ptr %29, align 4, !tbaa !9
  %30 = mul <4 x i32> %wide.load, %vec.phi
  %31 = mul <4 x i32> %wide.load76, %vec.phi75
  %index.next = add nuw i64 %index, 8
  %32 = icmp eq i64 %index.next, %n.vec
  br i1 %32, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %bin.rdx = mul <4 x i32> %31, %30
  %33 = tail call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %27, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader79

34:                                               ; preds = %22
  %35 = icmp ne i32 %3, 0
  %36 = load i32, ptr @g_opts, align 4
  %37 = icmp sgt i32 %36, 1
  %or.cond7 = select i1 %35, i1 true, i1 %37
  br i1 %or.cond7, label %38, label %.loopexit

38:                                               ; preds = %34
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.15, i32 noundef %24) #3
  br label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph.preheader79, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader79 ]
  %.055 = phi i32 [ %43, %.lr.ph ], [ %.055.ph, %.lr.ph.preheader79 ]
  %41 = getelementptr inbounds [8 x i32], ptr %23, i64 0, i64 %indvars.iv
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = mul nsw i32 %42, %.055
  %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 %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph, %middle.block
  %.lcssa74 = phi i32 [ %33, %middle.block ], [ %43, %.lr.ph ]
  %44 = icmp slt i32 %.lcssa74, 1
  br i1 %44, label %45, label %.lr.ph57.preheader

.lr.ph57.preheader:                               ; preds = %.preheader51, %._crit_edge
  %.0.lcssa68 = phi i32 [ %.lcssa74, %._crit_edge ], [ 1, %.preheader51 ]
  %smax = tail call i32 @llvm.smax.i32(i32 %1, i32 1)
  %wide.trip.count65 = zext nneg i32 %smax to i64
  br label %.lr.ph57

45:                                               ; preds = %._crit_edge
  %46 = load ptr, ptr @stderr, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %0, i64 48
  %48 = load i32, ptr %47, align 8, !tbaa !9
  %49 = getelementptr inbounds i8, ptr %0, i64 52
  %50 = load i32, ptr %49, align 4, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %0, i64 56
  %52 = load i32, ptr %51, align 8, !tbaa !9
  %53 = getelementptr inbounds i8, ptr %0, i64 60
  %54 = load i32, ptr %53, align 4, !tbaa !9
  %55 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.16, i32 noundef %48, i32 noundef %50, i32 noundef %52, i32 noundef %54) #3
  br label %.loopexit

.lr.ph57:                                         ; preds = %.lr.ph57.preheader, %67
  %indvars.iv62 = phi i64 [ 0, %.lr.ph57.preheader ], [ %indvars.iv.next63, %67 ]
  %56 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv62
  %57 = load i32, ptr %56, align 4, !tbaa !9
  %or.cond50 = icmp ult i32 %57, %.0.lcssa68
  br i1 %or.cond50, label %67, label %58

58:                                               ; preds = %.lr.ph57
  %59 = icmp ne i32 %3, 0
  %60 = load i32, ptr @g_opts, align 4
  %61 = icmp sgt i32 %60, 1
  %or.cond9 = select i1 %59, i1 true, i1 %61
  br i1 %or.cond9, label %62, label %.loopexit

62:                                               ; preds = %58
  %63 = trunc nuw nsw i64 %indvars.iv62 to i32
  %64 = load ptr, ptr @stderr, align 8, !tbaa !5
  %65 = add nsw i32 %.0.lcssa68, -1
  %66 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str.17, i32 noundef %57, i32 noundef %63, i32 noundef %65) #3
  br label %.loopexit

67:                                               ; preds = %.lr.ph57
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  %exitcond66.not = icmp eq i64 %indvars.iv.next63, %wide.trip.count65
  br i1 %exitcond66.not, label %.loopexit, label %.lr.ph57, !llvm.loop !16

.loopexit:                                        ; preds = %67, %62, %58, %38, %34, %19, %15, %9, %5, %45
  %.042 = phi i32 [ 0, %45 ], [ 0, %5 ], [ 0, %9 ], [ 0, %15 ], [ 0, %19 ], [ 0, %34 ], [ 0, %38 ], [ 0, %58 ], [ 0, %62 ], [ 1, %67 ]
  ret i32 %.042
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.mul.v4i32(<4 x i32>) #2

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { cold 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 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!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 = 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, !14, !13}
!16 = distinct !{!16, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass