; 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.9 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [55 x i8], align 1
@__PRETTY_FUNCTION__.test_simdpackedsearchFOR = external hidden unnamed_addr constant [31 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [19 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 void @simdmaxmin_length(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1

declare i32 @bits(i32 noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @test_simdpackedsearchFOR() #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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca [128 x i32], align 16
  %10 = 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 0, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 512, ptr %9) #4
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %11

11:                                               ; preds = %141, %0
  %12 = load i32, ptr %3, align 4, !tbaa !5
  %13 = icmp sle i32 %12, 32
  br i1 %13, label %14, label %144

14:                                               ; preds = %11
  %15 = load i32, ptr %3, align 4, !tbaa !5
  %16 = icmp eq i32 %15, 32
  br i1 %16, label %17, label %18

17:                                               ; preds = %14
  br label %22

18:                                               ; preds = %14
  %19 = load i32, ptr %3, align 4, !tbaa !5
  %20 = shl i32 1, %19
  %21 = sub i32 %20, 1
  br label %22

22:                                               ; preds = %18, %17
  %23 = phi i32 [ -1, %17 ], [ %21, %18 ]
  store i32 %23, ptr %5, align 4, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %36, %22
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = icmp ult i32 %25, 128
  br i1 %26, label %27, label %39

27:                                               ; preds = %24
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = add i32 %29, 1
  %31 = mul i32 %28, %30
  %32 = udiv i32 %31, 128
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = zext i32 %33 to i64
  %35 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %34
  store i32 %32, ptr %35, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %27
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = add i32 %37, 1
  store i32 %38, ptr %4, align 4, !tbaa !5
  br label %24, !llvm.loop !9

39:                                               ; preds = %24
  %40 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 0
  call void @simdmaxmin_length(ptr noundef %40, i32 noundef 128, ptr noundef %6, ptr noundef %7)
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = sub i32 %41, %42
  %44 = call i32 @bits(i32 noundef %43)
  store i32 %44, ptr %8, align 4, !tbaa !5
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 0
  %47 = getelementptr inbounds [128 x i32], ptr %9, i64 0, i64 0
  %48 = load i32, ptr %8, align 4, !tbaa !5
  call void @simdpackFOR(i32 noundef %45, ptr noundef %46, ptr noundef %47, i32 noundef %48)
  %49 = load i32, ptr %3, align 4, !tbaa !5
  %50 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %49)
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %68, %39
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = icmp ult i32 %52, 128
  br i1 %53, label %54, label %71

54:                                               ; preds = %51
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = getelementptr inbounds [128 x i32], ptr %9, i64 0, i64 0
  %61 = load i32, ptr %8, align 4, !tbaa !5
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = call i32 @simdselectFOR(i32 noundef %59, ptr noundef %60, i32 noundef %61, i32 noundef %62)
  %64 = icmp eq i32 %58, %63
  br i1 %64, label %65, label %66

65:                                               ; preds = %54
  br label %67

66:                                               ; preds = %54
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.11, i32 noundef 350, ptr noundef @__PRETTY_FUNCTION__.test_simdpackedsearchFOR) #5
  unreachable

67:                                               ; preds = %65
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = add i32 %69, 1
  store i32 %70, ptr %4, align 4, !tbaa !5
  br label %51, !llvm.loop !11

71:                                               ; preds = %51
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %137, %71
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = icmp ult i32 %73, 128
  br i1 %74, label %75, label %140

75:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = getelementptr inbounds [128 x i32], ptr %9, i64 0, i64 0
  %78 = load i32, ptr %8, align 4, !tbaa !5
  %79 = load i32, ptr %4, align 4, !tbaa !5
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = call i32 @simdsearchwithlengthFOR(i32 noundef %76, ptr noundef %77, i32 noundef %78, i32 noundef 128, i32 noundef %82, ptr noundef %2)
  store i32 %83, ptr %10, align 4, !tbaa !5
  %84 = load i32, ptr %6, align 4, !tbaa !5
  %85 = getelementptr inbounds [128 x i32], ptr %9, i64 0, i64 0
  %86 = load i32, ptr %8, align 4, !tbaa !5
  %87 = load i32, ptr %10, align 4, !tbaa !5
  %88 = call i32 @simdselectFOR(i32 noundef %84, ptr noundef %85, i32 noundef %86, i32 noundef %87)
  %89 = load i32, ptr %10, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = icmp eq i32 %88, %92
  br i1 %93, label %94, label %95

94:                                               ; preds = %75
  br label %96

95:                                               ; preds = %75
  call void @__assert_fail(ptr noundef @.str.19, ptr noundef @.str.11, i32 noundef 355, ptr noundef @__PRETTY_FUNCTION__.test_simdpackedsearchFOR) #5
  unreachable

96:                                               ; preds = %94
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = getelementptr inbounds [128 x i32], ptr %9, i64 0, i64 0
  %99 = load i32, ptr %8, align 4, !tbaa !5
  %100 = load i32, ptr %10, align 4, !tbaa !5
  %101 = call i32 @simdselectFOR(i32 noundef %97, ptr noundef %98, i32 noundef %99, i32 noundef %100)
  %102 = load i32, ptr %2, align 4, !tbaa !5
  %103 = icmp eq i32 %101, %102
  br i1 %103, label %104, label %105

104:                                              ; preds = %96
  br label %106

105:                                              ; preds = %96
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.11, i32 noundef 356, ptr noundef @__PRETTY_FUNCTION__.test_simdpackedsearchFOR) #5
  unreachable

106:                                              ; preds = %104
  %107 = load i32, ptr %10, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = load i32, ptr %2, align 4, !tbaa !5
  %112 = icmp eq i32 %110, %111
  br i1 %112, label %113, label %114

113:                                              ; preds = %106
  br label %115

114:                                              ; preds = %106
  call void @__assert_fail(ptr noundef @.str.21, ptr noundef @.str.11, i32 noundef 357, ptr noundef @__PRETTY_FUNCTION__.test_simdpackedsearchFOR) #5
  unreachable

115:                                              ; preds = %113
  %116 = load i32, ptr %2, align 4, !tbaa !5
  %117 = load i32, ptr %4, align 4, !tbaa !5
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %118
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = icmp eq i32 %116, %120
  br i1 %121, label %122, label %123

122:                                              ; preds = %115
  br label %124

123:                                              ; preds = %115
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str.11, i32 noundef 358, ptr noundef @__PRETTY_FUNCTION__.test_simdpackedsearchFOR) #5
  unreachable

124:                                              ; preds = %122
  %125 = load i32, ptr %10, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = load i32, ptr %4, align 4, !tbaa !5
  %130 = zext i32 %129 to i64
  %131 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = icmp eq i32 %128, %132
  br i1 %133, label %134, label %135

134:                                              ; preds = %124
  br label %136

135:                                              ; preds = %124
  call void @__assert_fail(ptr noundef @.str.23, ptr noundef @.str.11, i32 noundef 359, ptr noundef @__PRETTY_FUNCTION__.test_simdpackedsearchFOR) #5
  unreachable

136:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %4, align 4, !tbaa !5
  %139 = add i32 %138, 1
  store i32 %139, ptr %4, align 4, !tbaa !5
  br label %72, !llvm.loop !12

140:                                              ; preds = %72
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %3, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %3, align 4, !tbaa !5
  br label %11, !llvm.loop !13

144:                                              ; preds = %11
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
  call void @llvm.lifetime.end.p0(i64 512, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  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
}

declare i32 @simdsearchwithlengthFOR(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr 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 = { 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}


; 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.9 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [55 x i8], align 1
@__PRETTY_FUNCTION__.test_simdpackedsearchFOR = external hidden unnamed_addr constant [31 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [19 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 void @simdmaxmin_length(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @bits(i32 noundef) local_unnamed_addr #2

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

declare i32 @simdselectFOR(i32 noundef, ptr noundef, i32 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

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

vector.ph:                                        ; preds = %60, %.split
  %.036 = phi i32 [ 1, %.split ], [ %61, %60 ]
  %5 = icmp eq i32 %.036, 32
  %notmask = shl nsw i32 -1, %.036
  %6 = xor i32 %notmask, -1
  %7 = select i1 %5, i32 -1, i32 %6
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %7, 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 i64> [ <i64 0, i64 1, i64 2, i64 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %8 = trunc <4 x i64> %vec.ind to <4 x i32>
  %9 = add <4 x i32> %8, <i32 1, i32 1, i32 1, i32 1>
  %10 = trunc <4 x i64> %vec.ind to <4 x i32>
  %11 = add <4 x i32> %10, <i32 5, i32 5, i32 5, i32 5>
  %12 = mul <4 x i32> %broadcast.splat, %9
  %13 = mul <4 x i32> %broadcast.splat, %11
  %14 = lshr <4 x i32> %12, <i32 7, i32 7, i32 7, i32 7>
  %15 = lshr <4 x i32> %13, <i32 7, i32 7, i32 7, i32 7>
  %16 = getelementptr inbounds [128 x i32], ptr %0, i64 0, i64 %index
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  store <4 x i32> %14, ptr %16, align 16, !tbaa !5
  store <4 x i32> %15, ptr %17, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i64> %vec.ind, <i64 8, i64 8, i64 8, i64 8>
  %18 = icmp eq i64 %index.next, 128
  br i1 %18, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  call void @simdmaxmin_length(ptr noundef nonnull %0, i32 noundef 128, ptr noundef nonnull %2, ptr noundef nonnull %3) #5
  %19 = load i32, ptr %3, align 4, !tbaa !5
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sub i32 %19, %20
  %22 = call i32 @bits(i32 noundef %21) #5
  %23 = load i32, ptr %2, align 4, !tbaa !5
  call void @simdpackFOR(i32 noundef %23, ptr noundef nonnull %0, ptr noundef nonnull %4, i32 noundef %22) #5
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %.036)
  br label %26

25:                                               ; preds = %26
  %indvars.iv.next39 = add nuw nsw i64 %indvars.iv38, 1
  %exitcond41.not = icmp eq i64 %indvars.iv.next39, 128
  br i1 %exitcond41.not, label %.preheader, label %26, !llvm.loop !13

26:                                               ; preds = %middle.block, %25
  %indvars.iv38 = phi i64 [ 0, %middle.block ], [ %indvars.iv.next39, %25 ]
  %27 = getelementptr inbounds [128 x i32], ptr %0, i64 0, i64 %indvars.iv38
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = trunc nuw nsw i64 %indvars.iv38 to i32
  %31 = call i32 @simdselectFOR(i32 noundef %29, ptr noundef nonnull %4, i32 noundef %22, i32 noundef %30) #5
  %32 = icmp eq i32 %28, %31
  br i1 %32, label %25, label %33

33:                                               ; preds = %26
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.11, i32 noundef 350, ptr noundef nonnull @__PRETTY_FUNCTION__.test_simdpackedsearchFOR) #6
  unreachable

34:                                               ; preds = %56
  %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
  %exitcond45.not = icmp eq i64 %indvars.iv.next43, 128
  br i1 %exitcond45.not, label %60, label %.preheader, !llvm.loop !14

.preheader:                                       ; preds = %25, %34
  %indvars.iv42 = phi i64 [ %indvars.iv.next43, %34 ], [ 0, %25 ]
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = getelementptr inbounds [128 x i32], ptr %0, i64 0, i64 %indvars.iv42
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = call i32 @simdsearchwithlengthFOR(i32 noundef %35, ptr noundef nonnull %4, i32 noundef %22, i32 noundef 128, i32 noundef %37, ptr noundef nonnull %1) #5
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = call i32 @simdselectFOR(i32 noundef %39, ptr noundef nonnull %4, i32 noundef %22, i32 noundef %38) #5
  %41 = sext i32 %38 to i64
  %42 = getelementptr inbounds [128 x i32], ptr %0, i64 0, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = icmp eq i32 %40, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.11, i32 noundef 355, ptr noundef nonnull @__PRETTY_FUNCTION__.test_simdpackedsearchFOR) #6
  unreachable

46:                                               ; preds = %.preheader
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = call i32 @simdselectFOR(i32 noundef %47, ptr noundef nonnull %4, i32 noundef %22, i32 noundef %38) #5
  %49 = load i32, ptr %1, align 4, !tbaa !5
  %50 = icmp eq i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %46
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.11, i32 noundef 356, ptr noundef nonnull @__PRETTY_FUNCTION__.test_simdpackedsearchFOR) #6
  unreachable

52:                                               ; preds = %46
  %53 = load i32, ptr %42, align 4, !tbaa !5
  %54 = icmp eq i32 %53, %48
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  call void @__assert_fail(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.11, i32 noundef 357, ptr noundef nonnull @__PRETTY_FUNCTION__.test_simdpackedsearchFOR) #6
  unreachable

56:                                               ; preds = %52
  %57 = load i32, ptr %36, align 4, !tbaa !5
  %58 = icmp eq i32 %48, %57
  br i1 %58, label %34, label %59

59:                                               ; preds = %56
  call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.11, i32 noundef 358, ptr noundef nonnull @__PRETTY_FUNCTION__.test_simdpackedsearchFOR) #6
  unreachable

60:                                               ; preds = %34
  %61 = add nuw nsw i32 %.036, 1
  %exitcond46.not = icmp eq i32 %61, 33
  br i1 %exitcond46.not, label %62, label %vector.ph, !llvm.loop !15

62:                                               ; preds = %60
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24)
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %0) #5
  ret i32 0
}

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

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 = { nounwind }
attributes #6 = { 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}


; Effective O3 passes: ConstraintEliminationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass