; LLVM IR from ShahjalalShohag/code-library :: Number Theory/Prime Factorization Fastest.ll (Z8is_primeRKm)

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

@_ZZ8is_primeRKmE5a_big = external hidden constant [7 x i64], align 16
@_ZZ8is_primeRKmE6a_smol = external hidden constant [3 x i64], align 16

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z7suspectRKmS0_mS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z8is_primeRKm(ptr noundef nonnull align 8 dereferenceable(8) %0) #0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = load i64, ptr %15, align 8, !tbaa !9
  %17 = icmp ule i64 %16, 1
  br i1 %17, label %28, label %18

18:                                               ; preds = %1
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = load i64, ptr %19, align 8, !tbaa !9
  %21 = icmp ugt i64 %20, 2
  br i1 %21, label %22, label %29

22:                                               ; preds = %18
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = load i64, ptr %23, align 8, !tbaa !9
  %25 = xor i64 %24, -1
  %26 = and i64 %25, 1
  %27 = icmp ne i64 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %22, %1
  store i1 false, ptr %2, align 1
  br label %109

29:                                               ; preds = %22, %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #2
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = load i64, ptr %30, align 8, !tbaa !9
  %32 = sub i64 %31, 1
  store i64 %32, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #2
  store i64 0, ptr %5, align 8, !tbaa !9
  br label %33

33:                                               ; preds = %38, %29
  %34 = load i64, ptr %4, align 8, !tbaa !9
  %35 = xor i64 %34, -1
  %36 = and i64 %35, 1
  %37 = icmp ne i64 %36, 0
  br i1 %37, label %38, label %43

38:                                               ; preds = %33
  %39 = load i64, ptr %5, align 8, !tbaa !9
  %40 = add i64 %39, 1
  store i64 %40, ptr %5, align 8, !tbaa !9
  %41 = load i64, ptr %4, align 8, !tbaa !9
  %42 = lshr i64 %41, 1
  store i64 %42, ptr %4, align 8, !tbaa !9
  br label %33, !llvm.loop !11

43:                                               ; preds = %33
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = icmp ule i64 %45, 4759123141
  br i1 %46, label %47, label %77

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #2
  store ptr @_ZZ8is_primeRKmE6a_smol, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  store ptr @_ZZ8is_primeRKmE6a_smol, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  store ptr getelementptr inbounds (i64, ptr @_ZZ8is_primeRKmE6a_smol, i64 3), ptr %8, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %71, %47
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = icmp ne ptr %49, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %48
  store i32 4, ptr %9, align 4
  br label %74

53:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %54, ptr %10, align 8, !tbaa !5
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = load i64, ptr %55, align 8, !tbaa !9
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = load i64, ptr %57, align 8, !tbaa !9
  %59 = icmp uge i64 %56, %58
  br i1 %59, label %60, label %61

60:                                               ; preds = %53
  store i32 4, ptr %9, align 4
  br label %68

61:                                               ; preds = %53
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = load i64, ptr %4, align 8, !tbaa !9
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = call noundef zeroext i1 @_Z7suspectRKmS0_mS0_(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %63, ptr noundef nonnull align 8 dereferenceable(8) %64)
  br i1 %65, label %67, label %66

66:                                               ; preds = %61
  store i1 false, ptr %2, align 1
  store i32 1, ptr %9, align 4
  br label %68

67:                                               ; preds = %61
  store i32 0, ptr %9, align 4
  br label %68

68:                                               ; preds = %67, %66, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  %69 = load i32, ptr %9, align 4
  switch i32 %69, label %74 [
    i32 0, label %70
  ]

70:                                               ; preds = %68
  br label %71

71:                                               ; preds = %70
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds i64, ptr %72, i32 1
  store ptr %73, ptr %7, align 8, !tbaa !5
  br label %48

74:                                               ; preds = %68, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  %75 = load i32, ptr %9, align 4
  switch i32 %75, label %108 [
    i32 4, label %76
  ]

76:                                               ; preds = %74
  br label %107

77:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  store ptr @_ZZ8is_primeRKmE5a_big, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  store ptr @_ZZ8is_primeRKmE5a_big, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #2
  store ptr getelementptr inbounds (i64, ptr @_ZZ8is_primeRKmE5a_big, i64 7), ptr %13, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %101, %77
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = icmp ne ptr %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  store i32 6, ptr %9, align 4
  br label %104

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #2
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %84, ptr %14, align 8, !tbaa !5
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = load i64, ptr %85, align 8, !tbaa !9
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = load i64, ptr %87, align 8, !tbaa !9
  %89 = icmp uge i64 %86, %88
  br i1 %89, label %90, label %91

90:                                               ; preds = %83
  store i32 6, ptr %9, align 4
  br label %98

91:                                               ; preds = %83
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = load i64, ptr %4, align 8, !tbaa !9
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = call noundef zeroext i1 @_Z7suspectRKmS0_mS0_(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %93, ptr noundef nonnull align 8 dereferenceable(8) %94)
  br i1 %95, label %97, label %96

96:                                               ; preds = %91
  store i1 false, ptr %2, align 1
  store i32 1, ptr %9, align 4
  br label %98

97:                                               ; preds = %91
  store i32 0, ptr %9, align 4
  br label %98

98:                                               ; preds = %97, %96, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #2
  %99 = load i32, ptr %9, align 4
  switch i32 %99, label %104 [
    i32 0, label %100
  ]

100:                                              ; preds = %98
  br label %101

101:                                              ; preds = %100
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = getelementptr inbounds i64, ptr %102, i32 1
  store ptr %103, ptr %12, align 8, !tbaa !5
  br label %78

104:                                              ; preds = %98, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  %105 = load i32, ptr %9, align 4
  switch i32 %105, label %108 [
    i32 6, label %106
  ]

106:                                              ; preds = %104
  br label %107

107:                                              ; preds = %106, %76
  store i1 true, ptr %2, align 1
  store i32 1, ptr %9, align 4
  br label %108

108:                                              ; preds = %107, %104, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #2
  br label %109

109:                                              ; preds = %108, %28
  %110 = load i1, ptr %2, align 1
  ret i1 %110
}

attributes #0 = { mustprogress 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

@_ZZ8is_primeRKmE5a_big = external hidden constant [7 x i64], align 16
@_ZZ8is_primeRKmE6a_smol = external hidden constant [3 x i64], align 16

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z7suspectRKmS0_mS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z8is_primeRKm(ptr noundef nonnull align 8 dereferenceable(8) %0) local_unnamed_addr #0 {
  %2 = alloca i64, align 8
  %3 = load i64, ptr %0, align 8, !tbaa !5
  %4 = icmp ult i64 %3, 2
  br i1 %4, label %50, label %5

5:                                                ; preds = %1
  %.not = icmp ne i64 %3, 2
  %6 = and i64 %3, 1
  %.not40.not = icmp eq i64 %6, 0
  %or.cond = and i1 %.not, %.not40.not
  br i1 %or.cond, label %50, label %7

7:                                                ; preds = %5
  %8 = add i64 %3, -1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #2
  %9 = and i64 %8, 1
  %.not41.not64 = icmp eq i64 %9, 0
  br i1 %.not41.not64, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7, %.lr.ph
  %.03265 = phi i64 [ %12, %.lr.ph ], [ %8, %7 ]
  %10 = phi i64 [ %11, %.lr.ph ], [ 0, %7 ]
  %11 = add i64 %10, 1
  %12 = lshr exact i64 %.03265, 1
  %13 = and i64 %.03265, 2
  %.not41.not = icmp eq i64 %13, 0
  br i1 %.not41.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %7
  %.lcssa = phi i64 [ 0, %7 ], [ %11, %.lr.ph ]
  %.032.lcssa = phi i64 [ %8, %7 ], [ %12, %.lr.ph ]
  store i64 %.lcssa, ptr %2, align 8, !tbaa !5
  %14 = icmp ult i64 %3, 4759123142
  br i1 %14, label %.preheader.preheader, label %.preheader61.preheader

.preheader61.preheader:                           ; preds = %._crit_edge
  %15 = load i64, ptr @_ZZ8is_primeRKmE5a_big, align 16, !tbaa !5
  %.not43 = icmp ult i64 %15, %3
  br i1 %.not43, label %47, label %.thread51

.preheader.preheader:                             ; preds = %._crit_edge
  %16 = load i64, ptr @_ZZ8is_primeRKmE6a_smol, align 16, !tbaa !5
  %.not45 = icmp ult i64 %16, %3
  br i1 %.not45, label %23, label %.thread51

.preheader.1:                                     ; preds = %23
  %17 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZ8is_primeRKmE6a_smol, i64 8), align 8, !tbaa !5
  %18 = load i64, ptr %0, align 8, !tbaa !5
  %.not45.1 = icmp ult i64 %17, %18
  br i1 %.not45.1, label %19, label %.thread51

19:                                               ; preds = %.preheader.1
  %20 = call noundef zeroext i1 @_Z7suspectRKmS0_mS0_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZ8is_primeRKmE6a_smol, i64 8), ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %.032.lcssa, ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %20, label %.preheader.2, label %.thread51

.preheader.2:                                     ; preds = %19
  %21 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZ8is_primeRKmE6a_smol, i64 16), align 16, !tbaa !5
  %22 = load i64, ptr %0, align 8, !tbaa !5
  %.not45.2 = icmp ult i64 %21, %22
  br i1 %.not45.2, label %.thread51.sink.split, label %.thread51

23:                                               ; preds = %.preheader.preheader
  %24 = call noundef zeroext i1 @_Z7suspectRKmS0_mS0_(ptr noundef nonnull align 8 dereferenceable(8) @_ZZ8is_primeRKmE6a_smol, ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %.032.lcssa, ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %24, label %.preheader.1, label %.thread51

.preheader61.1:                                   ; preds = %47
  %25 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZ8is_primeRKmE5a_big, i64 8), align 8, !tbaa !5
  %26 = load i64, ptr %0, align 8, !tbaa !5
  %.not43.1 = icmp ult i64 %25, %26
  br i1 %.not43.1, label %27, label %.thread51

27:                                               ; preds = %.preheader61.1
  %28 = call noundef zeroext i1 @_Z7suspectRKmS0_mS0_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZ8is_primeRKmE5a_big, i64 8), ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %.032.lcssa, ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %28, label %.preheader61.2, label %.thread51

.preheader61.2:                                   ; preds = %27
  %29 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZ8is_primeRKmE5a_big, i64 16), align 16, !tbaa !5
  %30 = load i64, ptr %0, align 8, !tbaa !5
  %.not43.2 = icmp ult i64 %29, %30
  br i1 %.not43.2, label %31, label %.thread51

31:                                               ; preds = %.preheader61.2
  %32 = call noundef zeroext i1 @_Z7suspectRKmS0_mS0_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZ8is_primeRKmE5a_big, i64 16), ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %.032.lcssa, ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %32, label %.preheader61.3, label %.thread51

.preheader61.3:                                   ; preds = %31
  %33 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZ8is_primeRKmE5a_big, i64 24), align 8, !tbaa !5
  %34 = load i64, ptr %0, align 8, !tbaa !5
  %.not43.3 = icmp ult i64 %33, %34
  br i1 %.not43.3, label %35, label %.thread51

35:                                               ; preds = %.preheader61.3
  %36 = call noundef zeroext i1 @_Z7suspectRKmS0_mS0_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZ8is_primeRKmE5a_big, i64 24), ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %.032.lcssa, ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %36, label %.preheader61.4, label %.thread51

.preheader61.4:                                   ; preds = %35
  %37 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZ8is_primeRKmE5a_big, i64 32), align 16, !tbaa !5
  %38 = load i64, ptr %0, align 8, !tbaa !5
  %.not43.4 = icmp ult i64 %37, %38
  br i1 %.not43.4, label %39, label %.thread51

39:                                               ; preds = %.preheader61.4
  %40 = call noundef zeroext i1 @_Z7suspectRKmS0_mS0_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZ8is_primeRKmE5a_big, i64 32), ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %.032.lcssa, ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %40, label %.preheader61.5, label %.thread51

.preheader61.5:                                   ; preds = %39
  %41 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZ8is_primeRKmE5a_big, i64 40), align 8, !tbaa !5
  %42 = load i64, ptr %0, align 8, !tbaa !5
  %.not43.5 = icmp ult i64 %41, %42
  br i1 %.not43.5, label %43, label %.thread51

43:                                               ; preds = %.preheader61.5
  %44 = call noundef zeroext i1 @_Z7suspectRKmS0_mS0_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZ8is_primeRKmE5a_big, i64 40), ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %.032.lcssa, ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %44, label %.preheader61.6, label %.thread51

.preheader61.6:                                   ; preds = %43
  %45 = load i64, ptr getelementptr inbounds (i8, ptr @_ZZ8is_primeRKmE5a_big, i64 48), align 16, !tbaa !5
  %46 = load i64, ptr %0, align 8, !tbaa !5
  %.not43.6 = icmp ult i64 %45, %46
  br i1 %.not43.6, label %.thread51.sink.split, label %.thread51

47:                                               ; preds = %.preheader61.preheader
  %48 = call noundef zeroext i1 @_Z7suspectRKmS0_mS0_(ptr noundef nonnull align 8 dereferenceable(8) @_ZZ8is_primeRKmE5a_big, ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %.032.lcssa, ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %48, label %.preheader61.1, label %.thread51

.thread51.sink.split:                             ; preds = %.preheader61.6, %.preheader.2
  %.sink78 = phi ptr [ getelementptr inbounds (i8, ptr @_ZZ8is_primeRKmE6a_smol, i64 16), %.preheader.2 ], [ getelementptr inbounds (i8, ptr @_ZZ8is_primeRKmE5a_big, i64 48), %.preheader61.6 ]
  %49 = call noundef zeroext i1 @_Z7suspectRKmS0_mS0_(ptr noundef nonnull align 8 dereferenceable(8) %.sink78, ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %.032.lcssa, ptr noundef nonnull align 8 dereferenceable(8) %0)
  br label %.thread51

.thread51:                                        ; preds = %.thread51.sink.split, %.preheader61.preheader, %47, %.preheader61.1, %27, %.preheader61.2, %31, %.preheader61.3, %35, %.preheader61.4, %39, %.preheader61.5, %43, %.preheader61.6, %.preheader.preheader, %23, %.preheader.1, %19, %.preheader.2
  %.6 = phi i1 [ false, %23 ], [ true, %.preheader.preheader ], [ true, %.preheader.1 ], [ false, %19 ], [ true, %.preheader.2 ], [ false, %47 ], [ true, %.preheader61.preheader ], [ true, %.preheader61.1 ], [ false, %27 ], [ true, %.preheader61.2 ], [ false, %31 ], [ true, %.preheader61.3 ], [ false, %35 ], [ true, %.preheader61.4 ], [ false, %39 ], [ true, %.preheader61.5 ], [ false, %43 ], [ true, %.preheader61.6 ], [ %49, %.thread51.sink.split ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #2
  br label %50

50:                                               ; preds = %1, %5, %.thread51
  %.7 = phi i1 [ %.6, %.thread51 ], [ false, %5 ], [ false, %1 ]
  ret i1 %.7
}

attributes #0 = { mustprogress 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass