; LLVM IR from upupming/algorithm :: AdvancedLevel_C++/1059. Prime Factors (25)  (main)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@prime = external dso_local global %"class.std::vector", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [1 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 norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 2, ptr %2, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %33, %0
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = load i32, ptr %2, align 4, !tbaa !5
  %13 = mul nsw i32 %11, %12
  %14 = icmp slt i32 %13, 50000
  br i1 %14, label %16, label %15

15:                                               ; preds = %10
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %36

16:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 2, ptr %4, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %29, %16
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = mul nsw i32 %18, %19
  %21 = icmp slt i32 %20, 50000
  br i1 %21, label %23, label %22

22:                                               ; preds = %17
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %32

23:                                               ; preds = %17
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = mul nsw i32 %24, %25
  %27 = sext i32 %26 to i64
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @prime, i64 noundef %27) #4
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %23
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %4, align 4, !tbaa !5
  br label %17, !llvm.loop !9

32:                                               ; preds = %22
  br label %33

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

36:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %37 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %5)
  %38 = load i64, ptr %5, align 8, !tbaa !12
  %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %38)
  %40 = load i64, ptr %5, align 8, !tbaa !12
  %41 = icmp eq i64 %40, 1
  br i1 %41, label %42, label %44

42:                                               ; preds = %36
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %44

44:                                               ; preds = %42, %36
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  store i8 0, ptr %6, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 2, ptr %7, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %94, %44
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = icmp slt i32 %46, 50000
  br i1 %47, label %48, label %51

48:                                               ; preds = %45
  %49 = load i64, ptr %5, align 8, !tbaa !12
  %50 = icmp sge i64 %49, 2
  br label %51

51:                                               ; preds = %48, %45
  %52 = phi i1 [ false, %45 ], [ %50, %48 ]
  br i1 %52, label %54, label %53

53:                                               ; preds = %51
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %97

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

55:                                               ; preds = %69, %54
  %56 = load i32, ptr %7, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @prime, i64 noundef %57) #4
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = icmp eq i32 %59, 1
  br i1 %60, label %61, label %67

61:                                               ; preds = %55
  %62 = load i64, ptr %5, align 8, !tbaa !12
  %63 = load i32, ptr %7, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = srem i64 %62, %64
  %66 = icmp eq i64 %65, 0
  br label %67

67:                                               ; preds = %61, %55
  %68 = phi i1 [ false, %55 ], [ %66, %61 ]
  br i1 %68, label %69, label %76

69:                                               ; preds = %67
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %8, align 4, !tbaa !5
  %72 = load i64, ptr %5, align 8, !tbaa !12
  %73 = load i32, ptr %7, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = sdiv i64 %72, %74
  store i64 %75, ptr %5, align 8, !tbaa !12
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %55, !llvm.loop !16

76:                                               ; preds = %67
  %77 = load i32, ptr %9, align 4, !tbaa !5
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %87

79:                                               ; preds = %76
  %80 = load i8, ptr %6, align 1, !tbaa !14, !range !17, !noundef !18
  %81 = trunc i8 %80 to i1
  br i1 %81, label %82, label %84

82:                                               ; preds = %79
  %83 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %84

84:                                               ; preds = %82, %79
  %85 = load i32, ptr %7, align 4, !tbaa !5
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %85)
  store i8 1, ptr %6, align 1, !tbaa !14
  br label %87

87:                                               ; preds = %84, %76
  %88 = load i32, ptr %8, align 4, !tbaa !5
  %89 = icmp sge i32 %88, 2
  br i1 %89, label %90, label %93

90:                                               ; preds = %87
  %91 = load i32, ptr %8, align 4, !tbaa !5
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %91)
  br label %93

93:                                               ; preds = %90, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %7, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %7, align 4, !tbaa !5
  br label %45, !llvm.loop !19

97:                                               ; preds = %53
  %98 = load i64, ptr %5, align 8, !tbaa !12
  %99 = icmp sgt i64 %98, 1
  br i1 %99, label %100, label %107

100:                                              ; preds = %97
  %101 = load i8, ptr %6, align 1, !tbaa !14, !range !17, !noundef !18
  %102 = trunc i8 %101 to i1
  %103 = zext i1 %102 to i64
  %104 = select i1 %102, ptr @.str.3, ptr @.str.7
  %105 = load i64, ptr %5, align 8, !tbaa !12
  %106 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %104, i64 noundef %105)
  br label %107

107:                                              ; preds = %100, %97
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  %108 = load i32, ptr %1, align 4
  ret i32 %108
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

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

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

!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 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = distinct !{!16, !10}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !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"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@prime = external dso_local global %"class.std::vector", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [1 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 norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i64, align 8
  br label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %._crit_edge, %0
  %indvars.iv47 = phi i64 [ 2, %0 ], [ %indvars.iv.next48, %._crit_edge ]
  %indvars.iv = phi i64 [ 4, %0 ], [ %indvars.iv.next, %._crit_edge ]
  br label %.lr.ph

2:                                                ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  %3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %4 = load i64, ptr %1, align 8, !tbaa !5
  %5 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %4)
  %6 = load i64, ptr %1, align 8
  %7 = icmp eq i64 %6, 1
  br i1 %7, label %11, label %13

._crit_edge:                                      ; preds = %.lr.ph
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not = icmp eq i64 %indvars.iv.next48, 224
  br i1 %exitcond.not, label %2, label %.lr.ph.preheader, !llvm.loop !9

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv51 = phi i64 [ 2, %.lr.ph.preheader ], [ %indvars.iv.next52, %.lr.ph ]
  %indvars.iv49 = phi i64 [ %indvars.iv, %.lr.ph.preheader ], [ %indvars.iv.next50, %.lr.ph ]
  %8 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @prime, i64 noundef %indvars.iv49) #4
  store i32 0, ptr %8, align 4, !tbaa !11
  %indvars.iv.next52 = add nuw nsw i64 %indvars.iv51, 1
  %9 = mul nuw nsw i64 %indvars.iv.next52, %indvars.iv47
  %10 = icmp ult i64 %9, 50000
  %indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, %indvars.iv47
  br i1 %10, label %.lr.ph, label %._crit_edge, !llvm.loop !13

11:                                               ; preds = %2
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %.pre = load i64, ptr %1, align 8
  br label %13

13:                                               ; preds = %11, %2
  %14 = phi i64 [ %.pre, %11 ], [ %6, %2 ]
  %15 = icmp sgt i64 %14, 1
  br i1 %15, label %.preheader, label %._crit_edge41.thread

.preheader:                                       ; preds = %13, %.thread
  %indvars.iv58 = phi i64 [ %indvars.iv.next59, %.thread ], [ 2, %13 ]
  %.02339 = phi i8 [ %.172, %.thread ], [ 0, %13 ]
  %16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @prime, i64 noundef %indvars.iv58) #4
  %17 = load i32, ptr %16, align 4, !tbaa !11
  %18 = icmp eq i32 %17, 1
  br i1 %18, label %.lr.ph34.preheader, label %.threadthread-pre-split

.lr.ph34.preheader:                               ; preds = %.preheader
  %19 = load i64, ptr %1, align 8
  %20 = srem i64 %19, %indvars.iv58
  %21 = sdiv i64 %19, %indvars.iv58
  %.not = icmp eq i64 %20, 0
  br i1 %.not, label %22, label %.thread

22:                                               ; preds = %.lr.ph34.preheader
  store i64 %21, ptr %1, align 8, !tbaa !5
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @prime, i64 noundef %indvars.iv58) #4
  %24 = load i32, ptr %23, align 4, !tbaa !11
  %25 = icmp eq i32 %24, 1
  br i1 %25, label %.lr.ph34, label %.critedge.thread66

._crit_edge41:                                    ; preds = %.thread
  br i1 %47, label %49, label %._crit_edge41.thread

.lr.ph34:                                         ; preds = %22, %30
  %.02132 = phi i32 [ %31, %30 ], [ 1, %22 ]
  %26 = load i64, ptr %1, align 8, !tbaa !5
  %27 = srem i64 %26, %indvars.iv58
  %28 = sdiv i64 %26, %indvars.iv58
  %29 = icmp eq i64 %27, 0
  br i1 %29, label %30, label %.critedge

30:                                               ; preds = %.lr.ph34
  %31 = add nuw nsw i32 %.02132, 1
  store i64 %28, ptr %1, align 8, !tbaa !5
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @prime, i64 noundef %indvars.iv58) #4
  %33 = load i32, ptr %32, align 4, !tbaa !11
  %34 = icmp eq i32 %33, 1
  br i1 %34, label %.lr.ph34, label %.critedge, !llvm.loop !14

.critedge:                                        ; preds = %.lr.ph34, %30
  %.021.lcssa = phi i32 [ %31, %30 ], [ %.02132, %.lr.ph34 ]
  br i1 %.not, label %.critedge.thread66, label %41

.critedge.thread66:                               ; preds = %22, %.critedge
  %.021.lcssa69 = phi i32 [ %.021.lcssa, %.critedge ], [ 1, %22 ]
  %35 = trunc nuw i8 %.02339 to i1
  br i1 %35, label %36, label %38

36:                                               ; preds = %.critedge.thread66
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %38

38:                                               ; preds = %36, %.critedge.thread66
  %39 = trunc nuw nsw i64 %indvars.iv58 to i32
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %39)
  br label %41

41:                                               ; preds = %38, %.critedge
  %.021.lcssa65 = phi i32 [ %.021.lcssa69, %38 ], [ %.021.lcssa, %.critedge ]
  %.1 = phi i8 [ 1, %38 ], [ %.02339, %.critedge ]
  %42 = icmp ugt i32 %.021.lcssa65, 1
  br i1 %42, label %43, label %.threadthread-pre-split

43:                                               ; preds = %41
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %.021.lcssa65)
  br label %.threadthread-pre-split

.threadthread-pre-split:                          ; preds = %41, %43, %.preheader
  %.172.ph = phi i8 [ %.02339, %.preheader ], [ %.1, %41 ], [ %.1, %43 ]
  %.pr = load i64, ptr %1, align 8
  br label %.thread

.thread:                                          ; preds = %.threadthread-pre-split, %.lr.ph34.preheader
  %45 = phi i64 [ %.pr, %.threadthread-pre-split ], [ %19, %.lr.ph34.preheader ]
  %.172 = phi i8 [ %.172.ph, %.threadthread-pre-split ], [ %.02339, %.lr.ph34.preheader ]
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %46 = icmp ult i64 %indvars.iv58, 49999
  %47 = icmp sgt i64 %45, 1
  %48 = select i1 %46, i1 %47, i1 false
  br i1 %48, label %.preheader, label %._crit_edge41, !llvm.loop !16

49:                                               ; preds = %._crit_edge41
  %50 = trunc nuw i8 %.172 to i1
  %51 = select i1 %50, ptr @.str.3, ptr @.str.7
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull %51, i64 noundef %45)
  br label %._crit_edge41.thread

._crit_edge41.thread:                             ; preds = %13, %49, %._crit_edge41
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret i32 0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10, !15}
!15 = !{!"llvm.loop.peeled.count", i32 1}
!16 = distinct !{!16, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,DivRemPairsPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass