; 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.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = 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

; 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

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

; 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
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %19

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

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

25:                                               ; preds = %37, %22
  %26 = load i32, ptr %7, align 4, !tbaa !5
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %29, label %40

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

37:                                               ; preds = %29
  %38 = load i32, ptr %7, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %7, align 4, !tbaa !5
  br label %25, !llvm.loop !11

40:                                               ; preds = %25
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %146, %40
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = mul nsw i32 %42, 128
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %46, label %149

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %47 = load ptr, ptr %5, align 8, !tbaa !9
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = mul nsw i32 %48, 128
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds i32, ptr %47, i64 %50
  %52 = call i32 @maxbits(ptr noundef %51)
  store i32 %52, ptr %9, align 4, !tbaa !5
  %53 = load ptr, ptr %5, align 8, !tbaa !9
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = mul nsw i32 %54, 128
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds i32, ptr %53, i64 %56
  %58 = load ptr, ptr %4, align 8, !tbaa !9
  %59 = load i32, ptr %9, align 4, !tbaa !5
  call void @simdpackwithoutmask(ptr noundef %57, ptr noundef %58, i32 noundef %59)
  %60 = load ptr, ptr %4, align 8, !tbaa !9
  %61 = load ptr, ptr %6, align 8, !tbaa !9
  %62 = load i32, ptr %9, align 4, !tbaa !5
  call void @simdunpack(ptr noundef %60, ptr noundef %61, i32 noundef %62)
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %84, %46
  %64 = load i32, ptr %8, align 4, !tbaa !5
  %65 = icmp slt i32 %64, 128
  br i1 %65, label %66, label %87

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

81:                                               ; preds = %66
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 -2, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %143

83:                                               ; preds = %66
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %8, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %8, align 4, !tbaa !5
  br label %63, !llvm.loop !13

87:                                               ; preds = %63
  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
  %88 = load i32, ptr %11, align 4, !tbaa !5
  %89 = load ptr, ptr %5, align 8, !tbaa !9
  %90 = load i32, ptr %7, align 4, !tbaa !5
  %91 = mul nsw i32 %90, 128
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i32, ptr %89, i64 %92
  %94 = call i32 @simdmaxbitsd1(i32 noundef %88, ptr noundef %93)
  store i32 %94, ptr %12, align 4, !tbaa !5
  %95 = load i32, ptr %11, align 4, !tbaa !5
  %96 = load ptr, ptr %5, align 8, !tbaa !9
  %97 = load i32, ptr %7, align 4, !tbaa !5
  %98 = mul nsw i32 %97, 128
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds i32, ptr %96, i64 %99
  %101 = load ptr, ptr %4, align 8, !tbaa !9
  %102 = load i32, ptr %12, align 4, !tbaa !5
  call void @simdpackwithoutmaskd1(i32 noundef %95, ptr noundef %100, ptr noundef %101, i32 noundef %102)
  %103 = load i32, ptr %11, align 4, !tbaa !5
  %104 = load ptr, ptr %4, align 8, !tbaa !9
  %105 = load ptr, ptr %6, align 8, !tbaa !9
  %106 = load i32, ptr %12, align 4, !tbaa !5
  call void @simdunpackd1(i32 noundef %103, ptr noundef %104, ptr noundef %105, i32 noundef %106)
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %128, %87
  %108 = load i32, ptr %8, align 4, !tbaa !5
  %109 = icmp slt i32 %108, 128
  br i1 %109, label %110, label %131

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

125:                                              ; preds = %110
  %126 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i32 -3, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %140

127:                                              ; preds = %110
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %8, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %8, align 4, !tbaa !5
  br label %107, !llvm.loop !14

131:                                              ; preds = %107
  %132 = load ptr, ptr %5, align 8, !tbaa !9
  %133 = load i32, ptr %7, align 4, !tbaa !5
  %134 = mul nsw i32 %133, 128
  %135 = add nsw i32 %134, 128
  %136 = sub nsw i32 %135, 1
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds i32, ptr %132, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  store i32 %139, ptr %11, align 4, !tbaa !5
  store i32 0, ptr %10, align 4
  br label %140

140:                                              ; preds = %131, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %141 = load i32, ptr %10, align 4
  switch i32 %141, label %143 [
    i32 0, label %142
  ]

142:                                              ; preds = %140
  store i32 0, ptr %10, align 4
  br label %143

143:                                              ; preds = %142, %140, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %144 = load i32, ptr %10, align 4
  switch i32 %144, label %150 [
    i32 0, label %145
  ]

145:                                              ; preds = %143
  br label %146

146:                                              ; preds = %145
  %147 = load i32, ptr %7, align 4, !tbaa !5
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %7, align 4, !tbaa !5
  br label %41, !llvm.loop !15

149:                                              ; preds = %41
  store i32 0, ptr %10, align 4
  br label %150

150:                                              ; preds = %149, %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %151 = load i32, ptr %10, align 4
  switch i32 %151, label %161 [
    i32 0, label %152
  ]

152:                                              ; preds = %150
  br label %153

153:                                              ; preds = %152
  %154 = load i32, ptr %3, align 4, !tbaa !5
  %155 = mul nsw i32 %154, 3
  store i32 %155, ptr %3, align 4, !tbaa !5
  br label %19, !llvm.loop !16

156:                                              ; preds = %19
  %157 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %157) #5
  %158 = load ptr, ptr %5, align 8, !tbaa !9
  call void @free(ptr noundef %158) #5
  %159 = load ptr, ptr %6, align 8, !tbaa !9
  call void @free(ptr noundef %159) #5
  %160 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %161

161:                                              ; preds = %156, %150
  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
  %162 = load i32, ptr %1, align 4
  ret i32 %162
}

declare i32 @maxbits(ptr noundef) #3

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

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

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

declare void @simdunpackd1(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.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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
  br label %vector.ph

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

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

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

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

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

30:                                               ; preds = %24
  %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 %37, label %31, !llvm.loop !13

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

37:                                               ; preds = %30
  %38 = tail call i32 @simdmaxbitsd1(i32 noundef 0, ptr noundef nonnull %10) #6
  tail call void @simdpackwithoutmaskd1(i32 noundef 0, ptr noundef nonnull %10, ptr noundef %1, i32 noundef %38) #6
  tail call void @simdunpackd1(i32 noundef 0, ptr noundef %1, ptr noundef nonnull %3, i32 noundef %38) #6
  br label %58

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

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

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

57:                                               ; preds = %51
  %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 %64, label %58, !llvm.loop !14

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

64:                                               ; preds = %57
  %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 = %64
  %65 = mul nuw nsw i32 %.06279, 3
  %66 = icmp ult i32 %.06279, 129140164
  br i1 %66, label %vector.ph, label %67, !llvm.loop !16

67:                                               ; 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 = %31, %12, %18, %24, %58, %39, %45, %51, %67
  %.str.2.sink = phi ptr [ @.str.4, %67 ], [ @.str.3, %51 ], [ @.str.3, %45 ], [ @.str.3, %39 ], [ @.str.3, %58 ], [ @.str.2, %24 ], [ @.str.2, %18 ], [ @.str.2, %12 ], [ @.str.2, %31 ]
  %.5 = phi i32 [ 0, %67 ], [ -3, %51 ], [ -3, %45 ], [ -3, %39 ], [ -3, %58 ], [ -2, %24 ], [ -2, %18 ], [ -2, %12 ], [ -2, %31 ]
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.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 = { 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 #1 = { 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 #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 = { "no-trapping-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