; LLVM IR from upupming/algorithm :: wheel (binarySearch)

; 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"

@__const.main.a = external hidden unnamed_addr constant [11 x i32], align 16
@__const.main.b = external hidden unnamed_addr constant [11 x i32], align 16
@__const.main.test = external hidden unnamed_addr constant [7 x i32], align 16
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z22binarySearchLowerBoundPiiii(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z22binarySearchUpperBoundPiiii(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca [11 x i32], align 16
  %3 = alloca [11 x i32], align 16
  %4 = alloca [7 x i32], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 44, ptr %2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.b, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 28, ptr %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.test, i64 28, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %9

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

12:                                               ; preds = %9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %28

13:                                               ; preds = %9
  %14 = load i32, ptr %5, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [7 x i32], ptr %4, i64 0, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = getelementptr inbounds [11 x i32], ptr %2, i64 0, i64 0
  %19 = load i32, ptr %5, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [7 x i32], ptr %4, i64 0, i64 %20
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = call noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef %18, i32 noundef 0, i32 noundef 10, i32 noundef %22)
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %17, i32 noundef %23)
  br label %25

25:                                               ; preds = %13
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %5, align 4, !tbaa !5
  br label %9, !llvm.loop !9

28:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %45, %28
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = icmp slt i32 %30, 7
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %48

33:                                               ; preds = %29
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [7 x i32], ptr %4, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = getelementptr inbounds [11 x i32], ptr %3, i64 0, i64 0
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [7 x i32], ptr %4, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = call noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef %38, i32 noundef 0, i32 noundef 10, i32 noundef %42)
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %37, i32 noundef %43)
  br label %45

45:                                               ; preds = %33
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %6, align 4, !tbaa !5
  br label %29, !llvm.loop !11

48:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %65, %48
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = icmp slt i32 %50, 7
  br i1 %51, label %53, label %52

52:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %68

53:                                               ; preds = %49
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [7 x i32], ptr %4, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = getelementptr inbounds [11 x i32], ptr %2, i64 0, i64 0
  %59 = load i32, ptr %7, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [7 x i32], ptr %4, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = call noundef i32 @_Z22binarySearchLowerBoundPiiii(ptr noundef %58, i32 noundef 0, i32 noundef 10, i32 noundef %62)
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57, i32 noundef %63)
  br label %65

65:                                               ; preds = %53
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %7, align 4, !tbaa !5
  br label %49, !llvm.loop !12

68:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %85, %68
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = icmp slt i32 %70, 7
  br i1 %71, label %73, label %72

72:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %88

73:                                               ; preds = %69
  %74 = load i32, ptr %8, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [7 x i32], ptr %4, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = getelementptr inbounds [11 x i32], ptr %2, i64 0, i64 0
  %79 = load i32, ptr %8, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [7 x i32], ptr %4, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = call noundef i32 @_Z22binarySearchUpperBoundPiiii(ptr noundef %78, i32 noundef 0, i32 noundef 10, i32 noundef %82)
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %77, i32 noundef %83)
  br label %85

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

88:                                               ; preds = %72
  %89 = getelementptr inbounds [11 x i32], ptr %3, i64 0, i64 0
  %90 = call noundef i32 @_Z22binarySearchLowerBoundPiiii(ptr noundef %89, i32 noundef 0, i32 noundef 10, i32 noundef 1)
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef 1, i32 noundef %90)
  %92 = getelementptr inbounds [11 x i32], ptr %3, i64 0, i64 0
  %93 = call noundef i32 @_Z22binarySearchUpperBoundPiiii(ptr noundef %92, i32 noundef 0, i32 noundef 10, i32 noundef 1)
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef 1, i32 noundef %93)
  call void @llvm.lifetime.end.p0(i64 28, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 44, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 44, ptr %2) #5
  ret i32 0
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress norecurse 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 }

!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++ 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"

@__const.main.a = external hidden unnamed_addr constant [11 x i32], align 16
@__const.main.b = external hidden unnamed_addr constant [11 x i32], align 16
@__const.main.test = external hidden unnamed_addr constant [7 x i32], align 16
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = 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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z22binarySearchLowerBoundPiiii(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z22binarySearchUpperBoundPiiii(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
.preheader20.preheader:
  %0 = alloca [11 x i32], align 16
  %1 = alloca [11 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %0) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) %0, ptr noundef nonnull align 16 dereferenceable(44) @__const.main.a, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %1) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) %1, ptr noundef nonnull align 16 dereferenceable(44) @__const.main.b, i64 44, i1 false)
  %2 = load i32, ptr @__const.main.test, align 16, !tbaa !5
  %3 = call noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %2)
  %4 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %2, i32 noundef %3)
  %5 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.test, i64 4), align 4, !tbaa !5
  %6 = call noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %5)
  %7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %5, i32 noundef %6)
  %8 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.test, i64 8), align 8, !tbaa !5
  %9 = call noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %8)
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %8, i32 noundef %9)
  %11 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.test, i64 12), align 4, !tbaa !5
  %12 = call noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %11)
  %13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %11, i32 noundef %12)
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.test, i64 16), align 16, !tbaa !5
  %15 = call noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %14)
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %14, i32 noundef %15)
  %17 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.test, i64 20), align 4, !tbaa !5
  %18 = call noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %17)
  %19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %17, i32 noundef %18)
  %20 = load i32, ptr getelementptr inbounds (i8, ptr @__const.main.test, i64 24), align 8, !tbaa !5
  %21 = call noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %20)
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %20, i32 noundef %21)
  %23 = call noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 10, i32 noundef %2)
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %2, i32 noundef %23)
  %25 = call noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 10, i32 noundef %5)
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %5, i32 noundef %25)
  %27 = call noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 10, i32 noundef %8)
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %8, i32 noundef %27)
  %29 = call noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 10, i32 noundef %11)
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %11, i32 noundef %29)
  %31 = call noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 10, i32 noundef %14)
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %14, i32 noundef %31)
  %33 = call noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 10, i32 noundef %17)
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %17, i32 noundef %33)
  %35 = call noundef i32 @_Z16binarySearchLoopPiiii(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 10, i32 noundef %20)
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %20, i32 noundef %35)
  %37 = call noundef i32 @_Z22binarySearchLowerBoundPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %2)
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %2, i32 noundef %37)
  %39 = call noundef i32 @_Z22binarySearchLowerBoundPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %5)
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %5, i32 noundef %39)
  %41 = call noundef i32 @_Z22binarySearchLowerBoundPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %8)
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %8, i32 noundef %41)
  %43 = call noundef i32 @_Z22binarySearchLowerBoundPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %11)
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %11, i32 noundef %43)
  %45 = call noundef i32 @_Z22binarySearchLowerBoundPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %14)
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %14, i32 noundef %45)
  %47 = call noundef i32 @_Z22binarySearchLowerBoundPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %17)
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %17, i32 noundef %47)
  %49 = call noundef i32 @_Z22binarySearchLowerBoundPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %20)
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %20, i32 noundef %49)
  %51 = call noundef i32 @_Z22binarySearchUpperBoundPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %2)
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %2, i32 noundef %51)
  %53 = call noundef i32 @_Z22binarySearchUpperBoundPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %5)
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %5, i32 noundef %53)
  %55 = call noundef i32 @_Z22binarySearchUpperBoundPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %8)
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %8, i32 noundef %55)
  %57 = call noundef i32 @_Z22binarySearchUpperBoundPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %11)
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %11, i32 noundef %57)
  %59 = call noundef i32 @_Z22binarySearchUpperBoundPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %14)
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %14, i32 noundef %59)
  %61 = call noundef i32 @_Z22binarySearchUpperBoundPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %17)
  %62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %17, i32 noundef %61)
  %63 = call noundef i32 @_Z22binarySearchUpperBoundPiiii(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 10, i32 noundef %20)
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %20, i32 noundef %63)
  %65 = call noundef i32 @_Z22binarySearchLowerBoundPiiii(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 10, i32 noundef 1)
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef 1, i32 noundef %65)
  %67 = call noundef i32 @_Z22binarySearchUpperBoundPiiii(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 10, i32 noundef 1)
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef 1, i32 noundef %67)
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %1) #5
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %0) #5
  ret i32 0
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress norecurse 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass