; 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.11 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [34 x i8], align 1
@__PRETTY_FUNCTION__.test_simdpackedselect_advanced = external hidden unnamed_addr constant [37 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [27 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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @test_simdpackedselect_advanced() #3 {
  %1 = alloca [128 x i32], align 16
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [128 x i32], align 16
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 512, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 33, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %133, %0
  %9 = load i32, ptr %3, align 4, !tbaa !5
  %10 = icmp ule i32 %9, 32
  br i1 %10, label %11, label %136

11:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %12 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %12, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 512, ptr %6) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %33, %11
  %14 = load i32, ptr %4, align 4, !tbaa !5
  %15 = icmp slt i32 %14, 128
  br i1 %15, label %16, label %36

16:                                               ; preds = %13
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = mul nsw i32 165576, %17
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %20
  store i32 %18, ptr %21, align 4, !tbaa !5
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = icmp ult i32 %22, 32
  br i1 %23, label %24, label %32

24:                                               ; preds = %16
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = shl i32 1, %25
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = urem i32 %30, %26
  store i32 %31, ptr %29, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %24, %16
  br label %33

33:                                               ; preds = %32
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %4, align 4, !tbaa !5
  br label %13, !llvm.loop !9

36:                                               ; preds = %13
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %54, %36
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = icmp slt i32 %38, 128
  br i1 %39, label %40, label %57

40:                                               ; preds = %37
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = load i32, ptr %5, align 4, !tbaa !5
  %46 = add i32 %44, %45
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %48
  store i32 %46, ptr %49, align 4, !tbaa !5
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  store i32 %53, ptr %5, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %40
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %4, align 4, !tbaa !5
  br label %37, !llvm.loop !11

57:                                               ; preds = %37
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %82, %57
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = icmp slt i32 %59, 128
  br i1 %60, label %61, label %85

61:                                               ; preds = %58
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = sub nsw i32 %66, 1
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = icmp ult i32 %65, %70
  br i1 %71, label %72, label %81

72:                                               ; preds = %61
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = sub nsw i32 %73, 1
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %79
  store i32 %77, ptr %80, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %72, %61
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %4, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %4, align 4, !tbaa !5
  br label %58, !llvm.loop !12

85:                                               ; preds = %58
  %86 = load i32, ptr %2, align 4, !tbaa !5
  %87 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 0
  %88 = call i32 @simdmaxbitsd1(i32 noundef %86, ptr noundef %87)
  %89 = load i32, ptr %3, align 4, !tbaa !5
  %90 = icmp ule i32 %88, %89
  br i1 %90, label %91, label %92

91:                                               ; preds = %85
  br label %93

92:                                               ; preds = %85
  call void @__assert_fail(ptr noundef @.str.43, ptr noundef @.str.11, i32 noundef 513, ptr noundef @__PRETTY_FUNCTION__.test_simdpackedselect_advanced) #5
  unreachable

93:                                               ; preds = %91
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %101, %93
  %95 = load i32, ptr %4, align 4, !tbaa !5
  %96 = icmp slt i32 %95, 128
  br i1 %96, label %97, label %104

97:                                               ; preds = %94
  %98 = load i32, ptr %4, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [128 x i32], ptr %6, i64 0, i64 %99
  store i32 0, ptr %100, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %97
  %102 = load i32, ptr %4, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %4, align 4, !tbaa !5
  br label %94, !llvm.loop !13

104:                                              ; preds = %94
  %105 = load i32, ptr %2, align 4, !tbaa !5
  %106 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 0
  %107 = getelementptr inbounds [128 x i32], ptr %6, i64 0, i64 0
  %108 = load i32, ptr %3, align 4, !tbaa !5
  call void @simdpackwithoutmaskd1(i32 noundef %105, ptr noundef %106, ptr noundef %107, i32 noundef %108)
  %109 = load i32, ptr %3, align 4, !tbaa !5
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.40, i32 noundef %109)
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %129, %104
  %112 = load i32, ptr %4, align 4, !tbaa !5
  %113 = icmp slt i32 %112, 128
  br i1 %113, label %114, label %132

114:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %115 = load i32, ptr %2, align 4, !tbaa !5
  %116 = getelementptr inbounds [128 x i32], ptr %6, i64 0, i64 0
  %117 = load i32, ptr %3, align 4, !tbaa !5
  %118 = load i32, ptr %4, align 4, !tbaa !5
  %119 = call i32 @simdselectd1(i32 noundef %115, ptr noundef %116, i32 noundef %117, i32 noundef %118)
  store i32 %119, ptr %7, align 4, !tbaa !5
  %120 = load i32, ptr %7, align 4, !tbaa !5
  %121 = load i32, ptr %4, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = icmp eq i32 %120, %124
  br i1 %125, label %126, label %127

126:                                              ; preds = %114
  br label %128

127:                                              ; preds = %114
  call void @__assert_fail(ptr noundef @.str.44, ptr noundef @.str.11, i32 noundef 527, ptr noundef @__PRETTY_FUNCTION__.test_simdpackedselect_advanced) #5
  unreachable

128:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %129

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

132:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 512, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %133

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

136:                                              ; preds = %8
  %137 = call i32 (ptr, ...) @printf(ptr noundef @.str.45)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr %1) #4
  ret i32 0
}

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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn 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}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


; 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.11 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [34 x i8], align 1
@__PRETTY_FUNCTION__.test_simdpackedselect_advanced = external hidden unnamed_addr constant [37 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [27 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 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 #1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @simdselectd1(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @test_simdpackedselect_advanced() local_unnamed_addr #4 {
  %1 = alloca [128 x i32], align 16
  %2 = alloca [128 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %1) #6
  br label %vector.ph

vector.ph:                                        ; preds = %0, %50
  %.049 = phi i32 [ 0, %0 ], [ %51, %50 ]
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %2) #6
  %.not40 = icmp eq i32 %.049, 32
  %notmask = shl nsw i32 -1, %.049
  %3 = xor i32 %notmask, -1
  %4 = select i1 %.not40, i32 -1, i32 %3
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %4, 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 ]
  %5 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %index
  %6 = mul <4 x i32> %vec.ind, <i32 165576, i32 165576, i32 165576, i32 165576>
  %7 = mul <4 x i32> %vec.ind, <i32 165576, i32 165576, i32 165576, i32 165576>
  %8 = add <4 x i32> %7, <i32 662304, i32 662304, i32 662304, i32 662304>
  %9 = and <4 x i32> %6, %broadcast.splat
  %10 = and <4 x i32> %8, %broadcast.splat
  %11 = getelementptr inbounds i8, ptr %5, i64 16
  store <4 x i32> %9, ptr %5, align 16, !tbaa !5
  store <4 x i32> %10, ptr %11, align 16, !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>
  %12 = icmp eq i64 %index.next, 128
  br i1 %12, label %.preheader42, label %vector.body, !llvm.loop !9

.preheader42:                                     ; preds = %vector.body, %.preheader42
  %indvars.iv51 = phi i64 [ %indvars.iv.next52.3, %.preheader42 ], [ 0, %vector.body ]
  %.03745 = phi i32 [ %24, %.preheader42 ], [ 33, %vector.body ]
  %13 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv51
  %14 = load i32, ptr %13, align 16, !tbaa !5
  %15 = add i32 %14, %.03745
  store i32 %15, ptr %13, align 16, !tbaa !5
  %indvars.iv.next52 = or disjoint i64 %indvars.iv51, 1
  %16 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv.next52
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = add i32 %17, %15
  store i32 %18, ptr %16, align 4, !tbaa !5
  %indvars.iv.next52.1 = or disjoint i64 %indvars.iv51, 2
  %19 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv.next52.1
  %20 = load i32, ptr %19, align 8, !tbaa !5
  %21 = add i32 %20, %18
  store i32 %21, ptr %19, align 8, !tbaa !5
  %indvars.iv.next52.2 = or disjoint i64 %indvars.iv51, 3
  %22 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv.next52.2
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = add i32 %23, %21
  store i32 %24, ptr %22, align 4, !tbaa !5
  %indvars.iv.next52.3 = add nuw nsw i64 %indvars.iv51, 4
  %exitcond54.not.3 = icmp eq i64 %indvars.iv.next52.3, 128
  br i1 %exitcond54.not.3, label %.preheader41.preheader, label %.preheader42, !llvm.loop !13

.preheader41.preheader:                           ; preds = %.preheader42
  %.pre = load i32, ptr %1, align 16, !tbaa !5
  br label %.preheader41

.preheader41:                                     ; preds = %36, %.preheader41.preheader
  %25 = phi i32 [ %.pre, %.preheader41.preheader ], [ %37, %36 ]
  %indvars.iv55 = phi i64 [ 1, %.preheader41.preheader ], [ %indvars.iv.next56.1, %36 ]
  %26 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv55
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = icmp ult i32 %27, %25
  br i1 %28, label %29, label %30

29:                                               ; preds = %.preheader41
  store i32 %25, ptr %26, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %.preheader41, %29
  %31 = phi i32 [ %27, %.preheader41 ], [ %25, %29 ]
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %exitcond58.not = icmp eq i64 %indvars.iv.next56, 128
  br i1 %exitcond58.not, label %38, label %.preheader41.1, !llvm.loop !14

.preheader41.1:                                   ; preds = %30
  %32 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv.next56
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = icmp ult i32 %33, %31
  br i1 %34, label %35, label %36

35:                                               ; preds = %.preheader41.1
  store i32 %31, ptr %32, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %35, %.preheader41.1
  %37 = phi i32 [ %33, %.preheader41.1 ], [ %31, %35 ]
  %indvars.iv.next56.1 = add nuw nsw i64 %indvars.iv55, 2
  br label %.preheader41

38:                                               ; preds = %30
  %39 = call i32 @simdmaxbitsd1(i32 noundef 33, ptr noundef nonnull %1) #6
  %.not = icmp ugt i32 %39, %.049
  br i1 %.not, label %41, label %.preheader.preheader

.preheader.preheader:                             ; preds = %38
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(512) %2, i8 0, i64 512, i1 false), !tbaa !5
  call void @simdpackwithoutmaskd1(i32 noundef 33, ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef %.049) #6
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, i32 noundef %.049)
  br label %43

41:                                               ; preds = %38
  call void @__assert_fail(ptr noundef nonnull @.str.43, ptr noundef nonnull @.str.11, i32 noundef 513, ptr noundef nonnull @__PRETTY_FUNCTION__.test_simdpackedselect_advanced) #7
  unreachable

42:                                               ; preds = %43
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  %exitcond65.not = icmp eq i64 %indvars.iv.next63, 128
  br i1 %exitcond65.not, label %50, label %43, !llvm.loop !15

43:                                               ; preds = %.preheader.preheader, %42
  %indvars.iv62 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next63, %42 ]
  %44 = trunc nuw nsw i64 %indvars.iv62 to i32
  %45 = call i32 @simdselectd1(i32 noundef 33, ptr noundef nonnull %2, i32 noundef %.049, i32 noundef %44) #6
  %46 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %indvars.iv62
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = icmp eq i32 %45, %47
  br i1 %48, label %42, label %49

49:                                               ; preds = %43
  call void @__assert_fail(ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.11, i32 noundef 527, ptr noundef nonnull @__PRETTY_FUNCTION__.test_simdpackedselect_advanced) #7
  unreachable

50:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #6
  %51 = add nuw nsw i32 %.049, 1
  %exitcond66.not = icmp eq i32 %51, 33
  br i1 %exitcond66.not, label %52, label %vector.ph, !llvm.loop !16

52:                                               ; preds = %50
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.45)
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %1) #6
  ret i32 0
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-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 = { noreturn 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass