; LLVM IR from cruppstahl/upscaledb :: 3rdparty/simdcomp/src (unit)

; 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"

@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 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: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

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

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @testFOR() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 640000, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %14 = call noalias ptr @malloc(i64 noundef 512) #6
  store ptr %14, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = mul i64 %16, 4
  %18 = call noalias ptr @malloc(i64 noundef %17) #6
  store ptr %18, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %19 = call noalias ptr @malloc(i64 noundef 512) #6
  store ptr %19, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %133, %0
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = icmp sle i32 %21, 387420489
  br i1 %22, label %23, label %136

23:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %24)
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %38, %23
  %27 = load i32, ptr %10, align 4, !tbaa !5
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %30, label %41

30:                                               ; preds = %26
  %31 = load i32, ptr %10, align 4, !tbaa !5
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = mul nsw i32 %31, %32
  %34 = load ptr, ptr %5, align 8, !tbaa !9
  %35 = load i32, ptr %10, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds i32, ptr %34, i64 %36
  store i32 %33, ptr %37, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %30
  %39 = load i32, ptr %10, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %10, align 4, !tbaa !5
  br label %26, !llvm.loop !11

41:                                               ; preds = %26
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %126, %41
  %43 = load i32, ptr %10, align 4, !tbaa !5
  %44 = mul nsw i32 %43, 128
  %45 = load i32, ptr %2, align 4, !tbaa !5
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %47, label %129

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %48 = load ptr, ptr %5, align 8, !tbaa !9
  %49 = load i32, ptr %10, align 4, !tbaa !5
  %50 = mul nsw i32 %49, 128
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i32, ptr %48, i64 %51
  call void @simdmaxmin_length(ptr noundef %52, i32 noundef 128, ptr noundef %8, ptr noundef %7)
  %53 = load i32, ptr %7, align 4, !tbaa !5
  %54 = load i32, ptr %8, align 4, !tbaa !5
  %55 = sub i32 %53, %54
  %56 = call i32 @bits(i32 noundef %55)
  store i32 %56, ptr %9, align 4, !tbaa !5
  %57 = load i32, ptr %8, align 4, !tbaa !5
  %58 = load ptr, ptr %5, align 8, !tbaa !9
  %59 = load i32, ptr %10, align 4, !tbaa !5
  %60 = mul nsw i32 %59, 128
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds i32, ptr %58, i64 %61
  %63 = load ptr, ptr %4, align 8, !tbaa !9
  %64 = load i32, ptr %9, align 4, !tbaa !5
  call void @simdpackFOR(i32 noundef %57, ptr noundef %62, ptr noundef %63, i32 noundef %64)
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %90, %47
  %66 = load i32, ptr %11, align 4, !tbaa !5
  %67 = icmp slt i32 %66, 128
  br i1 %67, label %68, label %93

68:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %69 = load i32, ptr %8, align 4, !tbaa !5
  %70 = load ptr, ptr %4, align 8, !tbaa !9
  %71 = load i32, ptr %9, align 4, !tbaa !5
  %72 = load i32, ptr %11, align 4, !tbaa !5
  %73 = call i32 @simdselectFOR(i32 noundef %69, ptr noundef %70, i32 noundef %71, i32 noundef %72)
  store i32 %73, ptr %12, align 4, !tbaa !5
  %74 = load i32, ptr %12, align 4, !tbaa !5
  %75 = load ptr, ptr %5, align 8, !tbaa !9
  %76 = load i32, ptr %10, align 4, !tbaa !5
  %77 = mul nsw i32 %76, 128
  %78 = load i32, ptr %11, align 4, !tbaa !5
  %79 = add nsw i32 %77, %78
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds i32, ptr %75, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = icmp ne i32 %74, %82
  br i1 %83, label %84, label %86

84:                                               ; preds = %68
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store i32 -3, ptr %1, align 4
  store i32 1, ptr %13, align 4
  br label %87

86:                                               ; preds = %68
  store i32 0, ptr %13, align 4
  br label %87

87:                                               ; preds = %86, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %88 = load i32, ptr %13, align 4
  switch i32 %88, label %123 [
    i32 0, label %89
  ]

89:                                               ; preds = %87
  br label %90

90:                                               ; preds = %89
  %91 = load i32, ptr %11, align 4, !tbaa !5
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %11, align 4, !tbaa !5
  br label %65, !llvm.loop !13

93:                                               ; preds = %65
  %94 = load i32, ptr %8, align 4, !tbaa !5
  %95 = load ptr, ptr %4, align 8, !tbaa !9
  %96 = load ptr, ptr %6, align 8, !tbaa !9
  %97 = load i32, ptr %9, align 4, !tbaa !5
  call void @simdunpackFOR(i32 noundef %94, ptr noundef %95, ptr noundef %96, i32 noundef %97)
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %119, %93
  %99 = load i32, ptr %11, align 4, !tbaa !5
  %100 = icmp slt i32 %99, 128
  br i1 %100, label %101, label %122

101:                                              ; preds = %98
  %102 = load ptr, ptr %6, align 8, !tbaa !9
  %103 = load i32, ptr %11, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i32, ptr %102, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = load ptr, ptr %5, align 8, !tbaa !9
  %108 = load i32, ptr %10, align 4, !tbaa !5
  %109 = mul nsw i32 %108, 128
  %110 = load i32, ptr %11, align 4, !tbaa !5
  %111 = add nsw i32 %109, %110
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds i32, ptr %107, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = icmp ne i32 %106, %114
  br i1 %115, label %116, label %118

116:                                              ; preds = %101
  %117 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i32 -2, ptr %1, align 4
  store i32 1, ptr %13, align 4
  br label %123

118:                                              ; preds = %101
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %11, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %11, align 4, !tbaa !5
  br label %98, !llvm.loop !14

122:                                              ; preds = %98
  store i32 0, ptr %13, align 4
  br label %123

123:                                              ; preds = %122, %116, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %124 = load i32, ptr %13, align 4
  switch i32 %124, label %130 [
    i32 0, label %125
  ]

125:                                              ; preds = %123
  br label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %10, align 4, !tbaa !5
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %10, align 4, !tbaa !5
  br label %42, !llvm.loop !15

129:                                              ; preds = %42
  store i32 0, ptr %13, align 4
  br label %130

130:                                              ; preds = %129, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %131 = load i32, ptr %13, align 4
  switch i32 %131, label %141 [
    i32 0, label %132
  ]

132:                                              ; preds = %130
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %3, align 4, !tbaa !5
  %135 = mul nsw i32 %134, 2
  store i32 %135, ptr %3, align 4, !tbaa !5
  br label %20, !llvm.loop !16

136:                                              ; preds = %20
  %137 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %137) #5
  %138 = load ptr, ptr %5, align 8, !tbaa !9
  call void @free(ptr noundef %138) #5
  %139 = load ptr, ptr %6, align 8, !tbaa !9
  call void @free(ptr noundef %139) #5
  %140 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %13, align 4
  br label %141

141:                                              ; preds = %136, %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %142 = load i32, ptr %1, align 4
  ret i32 %142
}

declare void @simdmaxmin_length(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3

declare i32 @bits(i32 noundef) #3

declare void @simdpackFOR(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #3

declare i32 @simdselectFOR(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #3

declare void @simdunpackFOR(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(0) "no-trapping-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 "no-trapping-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 = { "no-trapping-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 uwtable "min-legal-vector-width"="0" "no-trapping-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) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


; 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"

@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr 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) #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @testFOR() local_unnamed_addr #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call noalias dereferenceable_or_null(512) ptr @malloc(i64 noundef 512) #6
  %4 = tail call noalias dereferenceable_or_null(2560000) ptr @malloc(i64 noundef 2560000) #6
  %5 = tail call noalias dereferenceable_or_null(512) ptr @malloc(i64 noundef 512) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  br label %vector.ph

vector.ph:                                        ; preds = %0, %.thread62
  %.05469 = phi i32 [ 1, %0 ], [ %54, %.thread62 ]
  %6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.05469)
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %.05469, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %7 = getelementptr inbounds i32, ptr %4, i64 %index
  %8 = mul <4 x i32> %broadcast.splat, %vec.ind
  %9 = mul <4 x i32> %broadcast.splat, %step.add
  %10 = getelementptr inbounds i8, ptr %7, i64 16
  store <4 x i32> %8, ptr %7, align 4, !tbaa !5
  store <4 x i32> %9, ptr %10, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %11 = icmp eq i64 %index.next, 640000
  br i1 %11, label %.preheader, label %vector.body, !llvm.loop !9

.preheader:                                       ; preds = %vector.body, %53
  %indvars.iv81 = phi i64 [ %indvars.iv.next82, %53 ], [ 0, %vector.body ]
  %indvars.iv79 = phi i64 [ %indvars.iv.next80, %53 ], [ 0, %vector.body ]
  %12 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv79
  call void @simdmaxmin_length(ptr noundef %12, i32 noundef 128, ptr noundef nonnull %2, ptr noundef nonnull %1) #7
  %13 = load i32, ptr %1, align 4, !tbaa !5
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = sub i32 %13, %14
  %16 = call i32 @bits(i32 noundef %15) #7
  %17 = load i32, ptr %2, align 4, !tbaa !5
  call void @simdpackFOR(i32 noundef %17, ptr noundef %12, ptr noundef %3, i32 noundef %16) #7
  br label %19

18:                                               ; preds = %19
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %exitcond74.not = icmp eq i64 %indvars.iv.next72, 128
  br i1 %exitcond74.not, label %26, label %19, !llvm.loop !13

19:                                               ; preds = %.preheader, %18
  %indvars.iv71 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next72, %18 ]
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = trunc nuw nsw i64 %indvars.iv71 to i32
  %22 = call i32 @simdselectFOR(i32 noundef %20, ptr noundef %3, i32 noundef %16, i32 noundef %21) #7
  %23 = or disjoint i64 %indvars.iv71, %indvars.iv79
  %24 = getelementptr inbounds i32, ptr %4, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %.not56 = icmp eq i32 %22, %25
  br i1 %.not56, label %18, label %.loopexit

26:                                               ; preds = %18
  %27 = load i32, ptr %2, align 4, !tbaa !5
  call void @simdunpackFOR(i32 noundef %27, ptr noundef %3, ptr noundef %5, i32 noundef %16) #7
  br label %47

28:                                               ; preds = %47
  %indvars.iv.next76 = or disjoint i64 %indvars.iv75, 1
  %29 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv.next76
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = or disjoint i64 %indvars.iv.next76, %indvars.iv79
  %32 = getelementptr inbounds i32, ptr %4, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %.not.1 = icmp eq i32 %30, %33
  br i1 %.not.1, label %34, label %.loopexit

34:                                               ; preds = %28
  %indvars.iv.next76.1 = or disjoint i64 %indvars.iv75, 2
  %35 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv.next76.1
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = or disjoint i64 %indvars.iv.next76.1, %indvars.iv79
  %38 = getelementptr inbounds i32, ptr %4, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %.not.2 = icmp eq i32 %36, %39
  br i1 %.not.2, label %40, label %.loopexit

40:                                               ; preds = %34
  %indvars.iv.next76.2 = or disjoint i64 %indvars.iv75, 3
  %41 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv.next76.2
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = or disjoint i64 %indvars.iv.next76.2, %indvars.iv79
  %44 = getelementptr inbounds i32, ptr %4, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %.not.3 = icmp eq i32 %42, %45
  br i1 %.not.3, label %46, label %.loopexit

46:                                               ; preds = %40
  %indvars.iv.next76.3 = add nuw nsw i64 %indvars.iv75, 4
  %exitcond78.not.3 = icmp eq i64 %indvars.iv.next76.3, 128
  br i1 %exitcond78.not.3, label %53, label %47, !llvm.loop !14

47:                                               ; preds = %46, %26
  %indvars.iv75 = phi i64 [ 0, %26 ], [ %indvars.iv.next76.3, %46 ]
  %48 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv75
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = or disjoint i64 %indvars.iv75, %indvars.iv79
  %51 = getelementptr inbounds i32, ptr %4, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %.not = icmp eq i32 %49, %52
  br i1 %.not, label %28, label %.loopexit

53:                                               ; preds = %46
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 128
  %exitcond86 = icmp eq i64 %indvars.iv.next82, 5000
  br i1 %exitcond86, label %.thread62, label %.preheader, !llvm.loop !15

.thread62:                                        ; preds = %53
  %54 = shl nuw nsw i32 %.05469, 1
  %55 = icmp ult i32 %.05469, 193710245
  br i1 %55, label %vector.ph, label %56, !llvm.loop !16

56:                                               ; preds = %.thread62
  call void @free(ptr noundef %3) #7
  call void @free(ptr noundef nonnull %4) #7
  call void @free(ptr noundef nonnull %5) #7
  br label %.loopexit

.loopexit:                                        ; preds = %19, %47, %28, %34, %40, %56
  %.str.5.sink = phi ptr [ @.str.4, %56 ], [ @.str.6, %40 ], [ @.str.6, %34 ], [ @.str.6, %28 ], [ @.str.6, %47 ], [ @.str.5, %19 ]
  %.6 = phi i32 [ 0, %56 ], [ -2, %40 ], [ -2, %34 ], [ -2, %28 ], [ -2, %47 ], [ -3, %19 ]
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.5.sink)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 %.6
}

declare void @simdmaxmin_length(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

declare i32 @bits(i32 noundef) local_unnamed_addr #5

declare void @simdpackFOR(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

declare i32 @simdselectFOR(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @simdunpackFOR(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 uwtable "min-legal-vector-width"="0" "no-trapping-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 = { "no-trapping-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 allocsize(0) }
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 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!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}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


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