; LLVM IR from fast-pack/simdcomp :: tests (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.7 = external hidden unnamed_addr constant [6 x i8], align 1
@__func__.test = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [18 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

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

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

declare void @simdunpack(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @test() #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
  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
  %13 = call noalias ptr @malloc(i64 noundef 512) #6
  store ptr %13, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = mul i64 %15, 4
  %17 = call noalias ptr @malloc(i64 noundef %16) #6
  store ptr %17, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %18 = call noalias ptr @malloc(i64 noundef 512) #6
  store ptr %18, ptr %6, align 8, !tbaa !9
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @__func__.test)
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %20

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

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

26:                                               ; preds = %42, %23
  %27 = load i32, ptr %7, 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 %45

30:                                               ; preds = %26
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = mul i64 %32, %34
  %36 = and i64 %35, 4294967295
  %37 = trunc i64 %36 to i32
  %38 = load ptr, ptr %5, align 8, !tbaa !9
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i32, ptr %38, i64 %40
  store i32 %37, ptr %41, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %30
  %43 = load i32, ptr %7, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %7, align 4, !tbaa !5
  br label %26, !llvm.loop !11

45:                                               ; preds = %26
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %151, %45
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = mul nsw i32 %47, 128
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %51, label %154

51:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %52 = load ptr, ptr %5, align 8, !tbaa !9
  %53 = load i32, ptr %7, align 4, !tbaa !5
  %54 = mul nsw i32 %53, 128
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i32, ptr %52, i64 %55
  %57 = call i32 @maxbits(ptr noundef %56)
  store i32 %57, ptr %9, align 4, !tbaa !5
  %58 = load ptr, ptr %5, align 8, !tbaa !9
  %59 = load i32, ptr %7, 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 @simdpackwithoutmask(ptr noundef %62, ptr noundef %63, i32 noundef %64)
  %65 = load ptr, ptr %4, align 8, !tbaa !9
  %66 = load ptr, ptr %6, align 8, !tbaa !9
  %67 = load i32, ptr %9, align 4, !tbaa !5
  call void @simdunpack(ptr noundef %65, ptr noundef %66, i32 noundef %67)
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %89, %51
  %69 = load i32, ptr %8, align 4, !tbaa !5
  %70 = icmp slt i32 %69, 128
  br i1 %70, label %71, label %92

71:                                               ; preds = %68
  %72 = load ptr, ptr %6, align 8, !tbaa !9
  %73 = load i32, ptr %8, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds i32, ptr %72, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = load ptr, ptr %5, align 8, !tbaa !9
  %78 = load i32, ptr %7, align 4, !tbaa !5
  %79 = mul nsw i32 %78, 128
  %80 = load i32, ptr %8, align 4, !tbaa !5
  %81 = add nsw i32 %79, %80
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds i32, ptr %77, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = icmp ne i32 %76, %84
  br i1 %85, label %86, label %88

86:                                               ; preds = %71
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  store i32 -2, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %148

88:                                               ; preds = %71
  br label %89

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

92:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %93 = load i32, ptr %11, align 4, !tbaa !5
  %94 = load ptr, ptr %5, align 8, !tbaa !9
  %95 = load i32, ptr %7, align 4, !tbaa !5
  %96 = mul nsw i32 %95, 128
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %94, i64 %97
  %99 = call i32 @simdmaxbitsd1(i32 noundef %93, ptr noundef %98)
  store i32 %99, ptr %12, align 4, !tbaa !5
  %100 = load i32, ptr %11, align 4, !tbaa !5
  %101 = load ptr, ptr %5, align 8, !tbaa !9
  %102 = load i32, ptr %7, align 4, !tbaa !5
  %103 = mul nsw i32 %102, 128
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i32, ptr %101, i64 %104
  %106 = load ptr, ptr %4, align 8, !tbaa !9
  %107 = load i32, ptr %12, align 4, !tbaa !5
  call void @simdpackwithoutmaskd1(i32 noundef %100, ptr noundef %105, ptr noundef %106, i32 noundef %107)
  %108 = load i32, ptr %11, align 4, !tbaa !5
  %109 = load ptr, ptr %4, align 8, !tbaa !9
  %110 = load ptr, ptr %6, align 8, !tbaa !9
  %111 = load i32, ptr %12, align 4, !tbaa !5
  call void @simdunpackd1(i32 noundef %108, ptr noundef %109, ptr noundef %110, i32 noundef %111)
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %112

112:                                              ; preds = %133, %92
  %113 = load i32, ptr %8, align 4, !tbaa !5
  %114 = icmp slt i32 %113, 128
  br i1 %114, label %115, label %136

115:                                              ; preds = %112
  %116 = load ptr, ptr %6, align 8, !tbaa !9
  %117 = load i32, ptr %8, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds i32, ptr %116, i64 %118
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = load ptr, ptr %5, align 8, !tbaa !9
  %122 = load i32, ptr %7, align 4, !tbaa !5
  %123 = mul nsw i32 %122, 128
  %124 = load i32, ptr %8, align 4, !tbaa !5
  %125 = add nsw i32 %123, %124
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds i32, ptr %121, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = icmp ne i32 %120, %128
  br i1 %129, label %130, label %132

130:                                              ; preds = %115
  %131 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  store i32 -3, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %145

132:                                              ; preds = %115
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %8, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %8, align 4, !tbaa !5
  br label %112, !llvm.loop !14

136:                                              ; preds = %112
  %137 = load ptr, ptr %5, align 8, !tbaa !9
  %138 = load i32, ptr %7, align 4, !tbaa !5
  %139 = mul nsw i32 %138, 128
  %140 = add nsw i32 %139, 128
  %141 = sub nsw i32 %140, 1
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds i32, ptr %137, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !5
  store i32 %144, ptr %11, align 4, !tbaa !5
  store i32 0, ptr %10, align 4
  br label %145

145:                                              ; preds = %136, %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %146 = load i32, ptr %10, align 4
  switch i32 %146, label %148 [
    i32 0, label %147
  ]

147:                                              ; preds = %145
  store i32 0, ptr %10, align 4
  br label %148

148:                                              ; preds = %147, %145, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %149 = load i32, ptr %10, align 4
  switch i32 %149, label %155 [
    i32 0, label %150
  ]

150:                                              ; preds = %148
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %7, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %7, align 4, !tbaa !5
  br label %46, !llvm.loop !15

154:                                              ; preds = %46
  store i32 0, ptr %10, align 4
  br label %155

155:                                              ; preds = %154, %148
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %156 = load i32, ptr %10, align 4
  switch i32 %156, label %166 [
    i32 0, label %157
  ]

157:                                              ; preds = %155
  br label %158

158:                                              ; preds = %157
  %159 = load i32, ptr %3, align 4, !tbaa !5
  %160 = mul nsw i32 %159, 3
  store i32 %160, ptr %3, align 4, !tbaa !5
  br label %20, !llvm.loop !16

161:                                              ; preds = %20
  %162 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %162) #5
  %163 = load ptr, ptr %5, align 8, !tbaa !9
  call void @free(ptr noundef %163) #5
  %164 = load ptr, ptr %6, align 8, !tbaa !9
  call void @free(ptr noundef %164) #5
  %165 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %166

166:                                              ; preds = %161, %155
  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
  %167 = load i32, ptr %1, align 4
  ret i32 %167
}

declare i32 @maxbits(ptr noundef) #1

declare void @simdpackwithoutmask(ptr noundef, ptr noundef, i32 noundef) #1

declare i32 @simdmaxbitsd1(i32 noundef, ptr noundef) #1

declare void @simdpackwithoutmaskd1(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1

declare void @simdunpackd1(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-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 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 #3 = { 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 = { 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.7 = external hidden unnamed_addr constant [6 x i8], align 1
@__func__.test = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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

declare void @simdunpack(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @test() local_unnamed_addr #4 {
  %1 = tail call noalias dereferenceable_or_null(512) ptr @malloc(i64 noundef 512) #5
  %2 = tail call noalias dereferenceable_or_null(2560000) ptr @malloc(i64 noundef 2560000) #5
  %3 = tail call noalias dereferenceable_or_null(512) ptr @malloc(i64 noundef 512) #5
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef nonnull @__func__.test)
  br label %vector.ph

vector.ph:                                        ; preds = %0, %.thread72
  %.06279 = phi i32 [ 1, %0 ], [ %66, %.thread72 ]
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %.06279)
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %.06279, 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>
  %6 = mul <4 x i32> %broadcast.splat, %vec.ind
  %7 = mul <4 x i32> %broadcast.splat, %step.add
  %8 = getelementptr inbounds i32, ptr %2, i64 %index
  %9 = getelementptr inbounds i8, ptr %8, i64 16
  store <4 x i32> %6, ptr %8, align 4, !tbaa !5
  store <4 x i32> %7, ptr %9, 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>
  %10 = icmp eq i64 %index.next, 640000
  br i1 %10, label %.preheader, label %vector.body, !llvm.loop !9

.preheader:                                       ; preds = %vector.body, %65
  %indvars.iv91 = phi i64 [ %indvars.iv.next92, %65 ], [ 0, %vector.body ]
  %indvars.iv89 = phi i64 [ %indvars.iv.next90, %65 ], [ 0, %vector.body ]
  %11 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv89
  %12 = tail call i32 @maxbits(ptr noundef %11) #6
  tail call void @simdpackwithoutmask(ptr noundef %11, ptr noundef %1, i32 noundef %12) #6
  tail call void @simdunpack(ptr noundef %1, ptr noundef %3, i32 noundef %12) #6
  br label %32

13:                                               ; preds = %32
  %indvars.iv.next82 = or disjoint i64 %indvars.iv81, 1
  %14 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv.next82
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = or disjoint i64 %indvars.iv.next82, %indvars.iv89
  %17 = getelementptr inbounds i32, ptr %2, i64 %16
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %.not68.1 = icmp eq i32 %15, %18
  br i1 %.not68.1, label %19, label %.loopexit

19:                                               ; preds = %13
  %indvars.iv.next82.1 = or disjoint i64 %indvars.iv81, 2
  %20 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv.next82.1
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = or disjoint i64 %indvars.iv.next82.1, %indvars.iv89
  %23 = getelementptr inbounds i32, ptr %2, i64 %22
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %.not68.2 = icmp eq i32 %21, %24
  br i1 %.not68.2, label %25, label %.loopexit

25:                                               ; preds = %19
  %indvars.iv.next82.2 = or disjoint i64 %indvars.iv81, 3
  %26 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv.next82.2
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = or disjoint i64 %indvars.iv.next82.2, %indvars.iv89
  %29 = getelementptr inbounds i32, ptr %2, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %.not68.3 = icmp eq i32 %27, %30
  br i1 %.not68.3, label %31, label %.loopexit

31:                                               ; preds = %25
  %indvars.iv.next82.3 = add nuw nsw i64 %indvars.iv81, 4
  %exitcond84.not.3 = icmp eq i64 %indvars.iv.next82.3, 128
  br i1 %exitcond84.not.3, label %38, label %32, !llvm.loop !13

32:                                               ; preds = %31, %.preheader
  %indvars.iv81 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next82.3, %31 ]
  %33 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv81
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = or disjoint i64 %indvars.iv81, %indvars.iv89
  %36 = getelementptr inbounds i32, ptr %2, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %.not68 = icmp eq i32 %34, %37
  br i1 %.not68, label %13, label %.loopexit

38:                                               ; preds = %31
  %39 = tail call i32 @simdmaxbitsd1(i32 noundef 0, ptr noundef nonnull %11) #6
  tail call void @simdpackwithoutmaskd1(i32 noundef 0, ptr noundef nonnull %11, ptr noundef %1, i32 noundef %39) #6
  tail call void @simdunpackd1(i32 noundef 0, ptr noundef %1, ptr noundef nonnull %3, i32 noundef %39) #6
  br label %59

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

46:                                               ; preds = %40
  %indvars.iv.next86.1 = or disjoint i64 %indvars.iv85, 2
  %47 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv.next86.1
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = or disjoint i64 %indvars.iv.next86.1, %indvars.iv89
  %50 = getelementptr inbounds i32, ptr %2, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %.not.2 = icmp eq i32 %48, %51
  br i1 %.not.2, label %52, label %.loopexit

52:                                               ; preds = %46
  %indvars.iv.next86.2 = or disjoint i64 %indvars.iv85, 3
  %53 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv.next86.2
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = or disjoint i64 %indvars.iv.next86.2, %indvars.iv89
  %56 = getelementptr inbounds i32, ptr %2, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %.not.3 = icmp eq i32 %54, %57
  br i1 %.not.3, label %58, label %.loopexit

58:                                               ; preds = %52
  %indvars.iv.next86.3 = add nuw nsw i64 %indvars.iv85, 4
  %exitcond88.not.3 = icmp eq i64 %indvars.iv.next86.3, 128
  br i1 %exitcond88.not.3, label %65, label %59, !llvm.loop !14

59:                                               ; preds = %58, %38
  %indvars.iv85 = phi i64 [ 0, %38 ], [ %indvars.iv.next86.3, %58 ]
  %60 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv85
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = or disjoint i64 %indvars.iv85, %indvars.iv89
  %63 = getelementptr inbounds i32, ptr %2, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %.not = icmp eq i32 %61, %64
  br i1 %.not, label %40, label %.loopexit

65:                                               ; preds = %58
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 128
  %exitcond96 = icmp eq i64 %indvars.iv.next92, 5000
  br i1 %exitcond96, label %.thread72, label %.preheader, !llvm.loop !15

.thread72:                                        ; preds = %65
  %66 = mul nuw nsw i32 %.06279, 3
  %67 = icmp ult i32 %.06279, 129140164
  br i1 %67, label %vector.ph, label %68, !llvm.loop !16

68:                                               ; preds = %.thread72
  tail call void @free(ptr noundef %1) #6
  tail call void @free(ptr noundef nonnull %2) #6
  tail call void @free(ptr noundef nonnull %3) #6
  br label %.loopexit

.loopexit:                                        ; preds = %32, %13, %19, %25, %59, %40, %46, %52, %68
  %.str.13.sink = phi ptr [ @.str.15, %68 ], [ @.str.14, %52 ], [ @.str.14, %46 ], [ @.str.14, %40 ], [ @.str.14, %59 ], [ @.str.13, %25 ], [ @.str.13, %19 ], [ @.str.13, %13 ], [ @.str.13, %32 ]
  %.5 = phi i32 [ 0, %68 ], [ -3, %52 ], [ -3, %46 ], [ -3, %40 ], [ -3, %59 ], [ -2, %25 ], [ -2, %19 ], [ -2, %13 ], [ -2, %32 ]
  %69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.13.sink)
  ret i32 %.5
}

declare i32 @maxbits(ptr noundef) local_unnamed_addr #3

declare void @simdpackwithoutmask(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @simdmaxbitsd1(i32 noundef, ptr noundef) local_unnamed_addr #3

declare void @simdpackwithoutmaskd1(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @simdunpackd1(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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 = { 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 = { "no-trapping-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 allocsize(0) }
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 = !{!"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