; 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.10 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [83 x i8], align 1
@__PRETTY_FUNCTION__.test_simdpackedsearch = external hidden unnamed_addr constant [28 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = 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: 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 @simdpackwithoutmaskd1(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1

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

10:                                               ; preds = %19, %0
  %11 = load i32, ptr %4, align 4, !tbaa !5
  %12 = icmp slt i32 %11, 128
  br i1 %12, label %13, label %22

13:                                               ; preds = %10
  %14 = load i32, ptr %4, align 4, !tbaa !5
  %15 = add nsw i32 %14, 1
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 %17
  store i32 %15, ptr %18, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %13
  %20 = load i32, ptr %4, align 4, !tbaa !5
  %21 = add nsw i32 %20, 1
  store i32 %21, ptr %4, align 4, !tbaa !5
  br label %10, !llvm.loop !10

22:                                               ; preds = %10
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %88, %22
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = icmp sle i32 %24, 32
  br i1 %25, label %26, label %91

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 512, ptr %7) #5
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = getelementptr inbounds [128 x i32], ptr %1, i64 0, i64 0
  %29 = getelementptr inbounds [128 x i32], ptr %7, i64 0, i64 0
  %30 = load i32, ptr %3, align 4, !tbaa !5
  call void @simdpackwithoutmaskd1(i32 noundef %27, ptr noundef %28, ptr noundef %29, i32 noundef %30)
  %31 = call <2 x i64> @_mm_setzero_si128()
  store <2 x i64> %31, ptr %6, align 16, !tbaa !9
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %32)
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = call <2 x i64> @_mm_set1_epi32(i32 noundef %34)
  store <2 x i64> %35, ptr %6, align 16, !tbaa !9
  %36 = getelementptr inbounds [128 x i32], ptr %7, i64 0, i64 0
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = call i32 @simdsearchd1(ptr noundef %6, ptr noundef %36, i32 noundef %37, i32 noundef 0, ptr noundef %2)
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %26
  br label %42

41:                                               ; preds = %26
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.11, i32 noundef 306, ptr noundef @__PRETTY_FUNCTION__.test_simdpackedsearch) #6
  unreachable

42:                                               ; preds = %40
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = icmp ugt i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %42
  br label %47

46:                                               ; preds = %42
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.11, i32 noundef 307, ptr noundef @__PRETTY_FUNCTION__.test_simdpackedsearch) #6
  unreachable

47:                                               ; preds = %45
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %70, %47
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = icmp sle i32 %49, 128
  br i1 %50, label %51, label %73

51:                                               ; preds = %48
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = call <2 x i64> @_mm_set1_epi32(i32 noundef %52)
  store <2 x i64> %53, ptr %6, align 16, !tbaa !9
  %54 = getelementptr inbounds [128 x i32], ptr %7, i64 0, i64 0
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = call i32 @simdsearchd1(ptr noundef %6, ptr noundef %54, i32 noundef %55, i32 noundef %56, ptr noundef %2)
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = sub nsw i32 %58, 1
  %60 = icmp eq i32 %57, %59
  br i1 %60, label %61, label %62

61:                                               ; preds = %51
  br label %63

62:                                               ; preds = %51
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.11, i32 noundef 312, ptr noundef @__PRETTY_FUNCTION__.test_simdpackedsearch) #6
  unreachable

63:                                               ; preds = %61
  %64 = load i32, ptr %2, align 4, !tbaa !5
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = icmp eq i32 %64, %65
  br i1 %66, label %67, label %68

67:                                               ; preds = %63
  br label %69

68:                                               ; preds = %63
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.11, i32 noundef 313, ptr noundef @__PRETTY_FUNCTION__.test_simdpackedsearch) #6
  unreachable

69:                                               ; preds = %67
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %4, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %4, align 4, !tbaa !5
  br label %48, !llvm.loop !12

73:                                               ; preds = %48
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = call <2 x i64> @_mm_set1_epi32(i32 noundef %74)
  store <2 x i64> %75, ptr %6, align 16, !tbaa !9
  %76 = getelementptr inbounds [128 x i32], ptr %7, i64 0, i64 0
  %77 = load i32, ptr %3, align 4, !tbaa !5
  %78 = call i32 @simdsearchd1(ptr noundef %6, ptr noundef %76, i32 noundef %77, i32 noundef 200, ptr noundef %2)
  %79 = icmp eq i32 %78, 128
  br i1 %79, label %80, label %81

80:                                               ; preds = %73
  br label %82

81:                                               ; preds = %73
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.11, i32 noundef 317, ptr noundef @__PRETTY_FUNCTION__.test_simdpackedsearch) #6
  unreachable

82:                                               ; preds = %80
  %83 = load i32, ptr %2, align 4, !tbaa !5
  %84 = icmp ugt i32 %83, 200
  br i1 %84, label %85, label %86

85:                                               ; preds = %82
  br label %87

86:                                               ; preds = %82
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.11, i32 noundef 318, ptr noundef @__PRETTY_FUNCTION__.test_simdpackedsearch) #6
  unreachable

87:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 512, ptr %7) #5
  br label %88

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

91:                                               ; preds = %23
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 512, ptr %1) #5
  ret i32 0
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_set1_epi32(i32 noundef) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_setzero_si128() #3

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

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

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 uwtable "min-legal-vector-width"="128" "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 = { alwaysinline nounwind uwtable "min-legal-vector-width"="128" "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 = { 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 #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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}


; 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.10 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [83 x i8], align 1
@__PRETTY_FUNCTION__.test_simdpackedsearch = external hidden unnamed_addr constant [28 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [18 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 @simdpackwithoutmaskd1(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @test_simdpackedsearch() local_unnamed_addr #3 {
vector.ph:
  %0 = alloca [128 x i32], align 16
  %1 = alloca i32, align 4
  %2 = alloca <2 x i64>, align 16
  %3 = alloca [128 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %0) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  %4 = tail call <2 x i64> @_mm_set1_epi32(i32 noundef 0)
  store <2 x i64> %4, ptr %2, align 16, !tbaa !9
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, ptr %0, align 16, !tbaa !5
  store <4 x i32> <i32 5, i32 6, i32 7, i32 8>, ptr %5, align 16, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 32
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  store <4 x i32> <i32 9, i32 10, i32 11, i32 12>, ptr %6, align 16, !tbaa !5
  store <4 x i32> <i32 13, i32 14, i32 15, i32 16>, ptr %7, align 16, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 64
  %9 = getelementptr inbounds i8, ptr %0, i64 80
  store <4 x i32> <i32 17, i32 18, i32 19, i32 20>, ptr %8, align 16, !tbaa !5
  store <4 x i32> <i32 21, i32 22, i32 23, i32 24>, ptr %9, align 16, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 96
  %11 = getelementptr inbounds i8, ptr %0, i64 112
  store <4 x i32> <i32 25, i32 26, i32 27, i32 28>, ptr %10, align 16, !tbaa !5
  store <4 x i32> <i32 29, i32 30, i32 31, i32 32>, ptr %11, align 16, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 128
  %13 = getelementptr inbounds i8, ptr %0, i64 144
  store <4 x i32> <i32 33, i32 34, i32 35, i32 36>, ptr %12, align 16, !tbaa !5
  store <4 x i32> <i32 37, i32 38, i32 39, i32 40>, ptr %13, align 16, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %0, i64 160
  %15 = getelementptr inbounds i8, ptr %0, i64 176
  store <4 x i32> <i32 41, i32 42, i32 43, i32 44>, ptr %14, align 16, !tbaa !5
  store <4 x i32> <i32 45, i32 46, i32 47, i32 48>, ptr %15, align 16, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 192
  %17 = getelementptr inbounds i8, ptr %0, i64 208
  store <4 x i32> <i32 49, i32 50, i32 51, i32 52>, ptr %16, align 16, !tbaa !5
  store <4 x i32> <i32 53, i32 54, i32 55, i32 56>, ptr %17, align 16, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 224
  %19 = getelementptr inbounds i8, ptr %0, i64 240
  store <4 x i32> <i32 57, i32 58, i32 59, i32 60>, ptr %18, align 16, !tbaa !5
  store <4 x i32> <i32 61, i32 62, i32 63, i32 64>, ptr %19, align 16, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 256
  %21 = getelementptr inbounds i8, ptr %0, i64 272
  store <4 x i32> <i32 65, i32 66, i32 67, i32 68>, ptr %20, align 16, !tbaa !5
  store <4 x i32> <i32 69, i32 70, i32 71, i32 72>, ptr %21, align 16, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %0, i64 288
  %23 = getelementptr inbounds i8, ptr %0, i64 304
  store <4 x i32> <i32 73, i32 74, i32 75, i32 76>, ptr %22, align 16, !tbaa !5
  store <4 x i32> <i32 77, i32 78, i32 79, i32 80>, ptr %23, align 16, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %0, i64 320
  %25 = getelementptr inbounds i8, ptr %0, i64 336
  store <4 x i32> <i32 81, i32 82, i32 83, i32 84>, ptr %24, align 16, !tbaa !5
  store <4 x i32> <i32 85, i32 86, i32 87, i32 88>, ptr %25, align 16, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %0, i64 352
  %27 = getelementptr inbounds i8, ptr %0, i64 368
  store <4 x i32> <i32 89, i32 90, i32 91, i32 92>, ptr %26, align 16, !tbaa !5
  store <4 x i32> <i32 93, i32 94, i32 95, i32 96>, ptr %27, align 16, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %0, i64 384
  %29 = getelementptr inbounds i8, ptr %0, i64 400
  store <4 x i32> <i32 97, i32 98, i32 99, i32 100>, ptr %28, align 16, !tbaa !5
  store <4 x i32> <i32 101, i32 102, i32 103, i32 104>, ptr %29, align 16, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %0, i64 416
  %31 = getelementptr inbounds i8, ptr %0, i64 432
  store <4 x i32> <i32 105, i32 106, i32 107, i32 108>, ptr %30, align 16, !tbaa !5
  store <4 x i32> <i32 109, i32 110, i32 111, i32 112>, ptr %31, align 16, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %0, i64 448
  %33 = getelementptr inbounds i8, ptr %0, i64 464
  store <4 x i32> <i32 113, i32 114, i32 115, i32 116>, ptr %32, align 16, !tbaa !5
  store <4 x i32> <i32 117, i32 118, i32 119, i32 120>, ptr %33, align 16, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %0, i64 480
  %35 = getelementptr inbounds i8, ptr %0, i64 496
  store <4 x i32> <i32 121, i32 122, i32 123, i32 124>, ptr %34, align 16, !tbaa !5
  store <4 x i32> <i32 125, i32 126, i32 127, i32 128>, ptr %35, align 16, !tbaa !5
  br label %.preheader22

.preheader22:                                     ; preds = %vector.ph, %65
  %.025 = phi i32 [ %66, %65 ], [ 1, %vector.ph ]
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %3) #6
  call void @simdpackwithoutmaskd1(i32 noundef 0, ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef %.025) #6
  %36 = call <2 x i64> @_mm_setzero_si128()
  store <2 x i64> %36, ptr %2, align 16, !tbaa !9
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %.025)
  %38 = call <2 x i64> @_mm_set1_epi32(i32 noundef 0)
  store <2 x i64> %38, ptr %2, align 16, !tbaa !9
  %39 = call i32 @simdsearchd1(ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %.025, i32 noundef 0, ptr noundef nonnull %1) #6
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %42, label %41

41:                                               ; preds = %.preheader22
  call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.11, i32 noundef 306, ptr noundef nonnull @__PRETTY_FUNCTION__.test_simdpackedsearch) #7
  unreachable

42:                                               ; preds = %.preheader22
  %43 = load i32, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %43, 0
  br i1 %.not, label %44, label %.preheader

44:                                               ; preds = %42
  call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.11, i32 noundef 307, ptr noundef nonnull @__PRETTY_FUNCTION__.test_simdpackedsearch) #7
  unreachable

45:                                               ; preds = %52
  %46 = add nuw nsw i32 %.124, 1
  %exitcond27.not = icmp eq i32 %46, 129
  br i1 %exitcond27.not, label %56, label %.preheader, !llvm.loop !10

.preheader:                                       ; preds = %42, %45
  %.124 = phi i32 [ %46, %45 ], [ 1, %42 ]
  %47 = call <2 x i64> @_mm_set1_epi32(i32 noundef 0)
  store <2 x i64> %47, ptr %2, align 16, !tbaa !9
  %48 = call i32 @simdsearchd1(ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %.025, i32 noundef %.124, ptr noundef nonnull %1) #6
  %49 = add nsw i32 %.124, -1
  %50 = icmp eq i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.11, i32 noundef 312, ptr noundef nonnull @__PRETTY_FUNCTION__.test_simdpackedsearch) #7
  unreachable

52:                                               ; preds = %.preheader
  %53 = load i32, ptr %1, align 4, !tbaa !5
  %54 = icmp eq i32 %53, %.124
  br i1 %54, label %45, label %55

55:                                               ; preds = %52
  call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.11, i32 noundef 313, ptr noundef nonnull @__PRETTY_FUNCTION__.test_simdpackedsearch) #7
  unreachable

56:                                               ; preds = %45
  %57 = call <2 x i64> @_mm_set1_epi32(i32 noundef 0)
  store <2 x i64> %57, ptr %2, align 16, !tbaa !9
  %58 = call i32 @simdsearchd1(ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %.025, i32 noundef 200, ptr noundef nonnull %1) #6
  %59 = icmp eq i32 %58, 128
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.11, i32 noundef 317, ptr noundef nonnull @__PRETTY_FUNCTION__.test_simdpackedsearch) #7
  unreachable

61:                                               ; preds = %56
  %62 = load i32, ptr %1, align 4, !tbaa !5
  %63 = icmp ugt i32 %62, 200
  br i1 %63, label %65, label %64

64:                                               ; preds = %61
  call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.11, i32 noundef 318, ptr noundef nonnull @__PRETTY_FUNCTION__.test_simdpackedsearch) #7
  unreachable

65:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #6
  %66 = add nuw nsw i32 %.025, 1
  %exitcond28.not = icmp eq i32 %66, 33
  br i1 %exitcond28.not, label %67, label %.preheader22, !llvm.loop !12

67:                                               ; preds = %65
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %0) #6
  ret i32 0
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_set1_epi32(i32 noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_setzero_si128() local_unnamed_addr #4

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #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 = { nounwind uwtable "min-legal-vector-width"="128" "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 = { alwaysinline nounwind uwtable "min-legal-vector-width"="128" "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 = { 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 #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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass