; LLVM IR from UtkarshPathrabe/Competitive-Coding :: SPOJ Solutions (HABLU)

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

@prime = external dso_local global [80000 x i64], align 16
@total = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3prev() #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 norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @_Z3prev()
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  br label %14

14:                                               ; preds = %112, %110, %0
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = add nsw i32 %15, -1
  store i32 %16, ptr %2, align 4, !tbaa !5
  %17 = icmp ne i32 %15, 0
  br i1 %17, label %18, label %113

18:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  store i64 1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  store i8 0, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  store i8 0, ptr %10, align 1, !tbaa !11
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %8)
  %20 = load i64, ptr %3, align 8, !tbaa !9
  store i64 %20, ptr %5, align 8, !tbaa !9
  br label %21

21:                                               ; preds = %40, %29, %18
  %22 = load i32, ptr %8, align 4, !tbaa !5
  %23 = add nsw i32 %22, -1
  store i32 %23, ptr %8, align 4, !tbaa !5
  %24 = icmp ne i32 %22, 0
  br i1 %24, label %25, label %41

25:                                               ; preds = %21
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %6)
  %27 = load i64, ptr %6, align 8, !tbaa !9
  %28 = icmp eq i64 %27, 1
  br i1 %28, label %29, label %30

29:                                               ; preds = %25
  store i8 1, ptr %9, align 1, !tbaa !11
  br label %21, !llvm.loop !13

30:                                               ; preds = %25
  br label %31

31:                                               ; preds = %36, %30
  %32 = load i64, ptr %5, align 8, !tbaa !9
  %33 = load i64, ptr %6, align 8, !tbaa !9
  %34 = srem i64 %32, %33
  %35 = icmp eq i64 %34, 0
  br i1 %35, label %36, label %40

36:                                               ; preds = %31
  %37 = load i64, ptr %6, align 8, !tbaa !9
  %38 = load i64, ptr %5, align 8, !tbaa !9
  %39 = sdiv i64 %38, %37
  store i64 %39, ptr %5, align 8, !tbaa !9
  br label %31, !llvm.loop !15

40:                                               ; preds = %31
  br label %21, !llvm.loop !13

41:                                               ; preds = %21
  %42 = load i8, ptr %9, align 1, !tbaa !11, !range !16, !noundef !17
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %46

44:                                               ; preds = %41
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i32 2, ptr %11, align 4
  br label %110, !llvm.loop !18

46:                                               ; preds = %41
  %47 = load i64, ptr %5, align 8, !tbaa !9
  %48 = load i64, ptr %3, align 8, !tbaa !9
  %49 = icmp eq i64 %47, %48
  br i1 %49, label %50, label %51

50:                                               ; preds = %46
  store i8 1, ptr %10, align 1, !tbaa !11
  br label %51

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

52:                                               ; preds = %88, %51
  %53 = load i32, ptr %12, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [80000 x i64], ptr @prime, i64 0, i64 %54
  %56 = load i64, ptr %55, align 8, !tbaa !9
  %57 = load i32, ptr %12, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [80000 x i64], ptr @prime, i64 0, i64 %58
  %60 = load i64, ptr %59, align 8, !tbaa !9
  %61 = mul nsw i64 %56, %60
  %62 = load i64, ptr %5, align 8, !tbaa !9
  %63 = icmp sle i64 %61, %62
  br i1 %63, label %64, label %68

64:                                               ; preds = %52
  %65 = load i32, ptr %12, align 4, !tbaa !5
  %66 = load i32, ptr @total, align 4, !tbaa !5
  %67 = icmp slt i32 %65, %66
  br label %68

68:                                               ; preds = %64, %52
  %69 = phi i1 [ false, %52 ], [ %67, %64 ]
  br i1 %69, label %70, label %95

70:                                               ; preds = %68
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %71

71:                                               ; preds = %79, %70
  %72 = load i64, ptr %5, align 8, !tbaa !9
  %73 = load i32, ptr %12, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [80000 x i64], ptr @prime, i64 0, i64 %74
  %76 = load i64, ptr %75, align 8, !tbaa !9
  %77 = srem i64 %72, %76
  %78 = icmp eq i64 %77, 0
  br i1 %78, label %79, label %88

79:                                               ; preds = %71
  %80 = load i64, ptr %7, align 8, !tbaa !9
  %81 = add nsw i64 %80, 1
  store i64 %81, ptr %7, align 8, !tbaa !9
  %82 = load i32, ptr %12, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [80000 x i64], ptr @prime, i64 0, i64 %83
  %85 = load i64, ptr %84, align 8, !tbaa !9
  %86 = load i64, ptr %5, align 8, !tbaa !9
  %87 = sdiv i64 %86, %85
  store i64 %87, ptr %5, align 8, !tbaa !9
  br label %71, !llvm.loop !19

88:                                               ; preds = %71
  %89 = load i64, ptr %7, align 8, !tbaa !9
  %90 = add nsw i64 %89, 1
  %91 = load i64, ptr %4, align 8, !tbaa !9
  %92 = mul nsw i64 %91, %90
  store i64 %92, ptr %4, align 8, !tbaa !9
  %93 = load i32, ptr %12, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %12, align 4, !tbaa !5
  br label %52, !llvm.loop !20

95:                                               ; preds = %68
  %96 = load i64, ptr %5, align 8, !tbaa !9
  %97 = icmp sgt i64 %96, 1
  br i1 %97, label %98, label %101

98:                                               ; preds = %95
  %99 = load i64, ptr %4, align 8, !tbaa !9
  %100 = mul nsw i64 %99, 2
  store i64 %100, ptr %4, align 8, !tbaa !9
  br label %101

101:                                              ; preds = %98, %95
  %102 = load i8, ptr %10, align 1, !tbaa !11, !range !16, !noundef !17
  %103 = trunc i8 %102 to i1
  br i1 %103, label %104, label %107

104:                                              ; preds = %101
  %105 = load i64, ptr %4, align 8, !tbaa !9
  %106 = add nsw i64 %105, -1
  store i64 %106, ptr %4, align 8, !tbaa !9
  br label %107

107:                                              ; preds = %104, %101
  %108 = load i64, ptr %4, align 8, !tbaa !9
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %108)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  store i32 0, ptr %11, align 4
  br label %110

110:                                              ; preds = %107, %44
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  %111 = load i32, ptr %11, align 4
  switch i32 %111, label %115 [
    i32 0, label %112
    i32 2, label %14
  ]

112:                                              ; preds = %110
  br label %14, !llvm.loop !18

113:                                              ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  %114 = load i32, ptr %1, align 4
  ret i32 %114

115:                                              ; preds = %110
  unreachable
}

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}


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

@prime = external dso_local local_unnamed_addr global [80000 x i64], align 16
@total = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3prev() 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 norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  tail call void @_Z3prev()
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %7 = add nsw i32 %6, -1
  store i32 %7, ptr %1, align 4, !tbaa !5
  %.not44 = icmp eq i32 %6, 0
  br i1 %.not44, label %._crit_edge47, label %.lr.ph46

.lr.ph46:                                         ; preds = %0, %58
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %2, ptr noundef nonnull %4)
  %9 = load i64, ptr %2, align 8, !tbaa !9
  %10 = load i32, ptr %4, align 4, !tbaa !5
  %11 = add nsw i32 %10, -1
  store i32 %11, ptr %4, align 4, !tbaa !5
  %.not29.peel74 = icmp eq i32 %10, 0
  br i1 %.not29.peel74, label %.loopexit54, label %.lr.ph77

.loopexit:                                        ; preds = %.lr.ph, %.preheader30
  %.1.lcssa = phi i64 [ %.025.ph75, %.preheader30 ], [ %25, %.lr.ph ]
  %12 = load i32, ptr %4, align 4, !tbaa !5
  %13 = add nsw i32 %12, -1
  store i32 %13, ptr %4, align 4, !tbaa !5
  %.not29.peel = icmp eq i32 %12, 0
  br i1 %.not29.peel, label %.loopexit54, label %.lr.ph77

.lr.ph77:                                         ; preds = %.lr.ph46, %.loopexit
  %.023.ph76 = phi i1 [ %.023.lcssa48, %.loopexit ], [ false, %.lr.ph46 ]
  %.025.ph75 = phi i64 [ %.1.lcssa, %.loopexit ], [ %9, %.lr.ph46 ]
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %3)
  %15 = load i64, ptr %3, align 8, !tbaa !9
  %16 = icmp eq i64 %15, 1
  br i1 %16, label %.peel.next, label %.preheader30

.peel.next:                                       ; preds = %.lr.ph77, %19
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = add nsw i32 %17, -1
  store i32 %18, ptr %4, align 4, !tbaa !5
  %.not29 = icmp eq i32 %17, 0
  br i1 %.not29, label %.loopexit54.thread, label %19

19:                                               ; preds = %.peel.next
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %3)
  %21 = load i64, ptr %3, align 8, !tbaa !9
  %22 = icmp eq i64 %21, 1
  br i1 %22, label %.peel.next, label %.preheader30, !llvm.loop !11

.preheader30:                                     ; preds = %19, %.lr.ph77
  %.lcssa = phi i64 [ %15, %.lr.ph77 ], [ %21, %19 ]
  %.023.lcssa48 = phi i1 [ %.023.ph76, %.lr.ph77 ], [ true, %19 ]
  %23 = srem i64 %.025.ph75, %.lcssa
  %24 = icmp eq i64 %23, 0
  br i1 %24, label %.lr.ph, label %.loopexit, !llvm.loop !14

.lr.ph:                                           ; preds = %.preheader30, %.lr.ph
  %.132 = phi i64 [ %25, %.lr.ph ], [ %.025.ph75, %.preheader30 ]
  %25 = sdiv i64 %.132, %.lcssa
  %26 = srem i64 %25, %.lcssa
  %27 = icmp eq i64 %26, 0
  br i1 %27, label %.lr.ph, label %.loopexit, !llvm.loop !15

.loopexit54:                                      ; preds = %.loopexit, %.lr.ph46
  %.025.ph.lcssa = phi i64 [ %9, %.lr.ph46 ], [ %.1.lcssa, %.loopexit ]
  %.023.ph.lcssa = phi i1 [ false, %.lr.ph46 ], [ %.023.lcssa48, %.loopexit ]
  br i1 %.023.ph.lcssa, label %.loopexit54.thread, label %29

.loopexit54.thread:                               ; preds = %.peel.next, %.loopexit54
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %58, !llvm.loop !16

29:                                               ; preds = %.loopexit54
  %30 = load i64, ptr %2, align 8, !tbaa !9
  %31 = icmp eq i64 %.025.ph.lcssa, %30
  %32 = load i32, ptr @total, align 4
  %33 = load i64, ptr @prime, align 16, !tbaa !9
  %34 = mul nsw i64 %33, %33
  %35 = icmp sle i64 %34, %.025.ph.lcssa
  %36 = icmp sgt i32 %32, 0
  %37 = select i1 %35, i1 %36, i1 false
  br i1 %37, label %.preheader.preheader, label %._crit_edge41

.preheader.preheader:                             ; preds = %29
  %38 = zext nneg i32 %32 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next, %._crit_edge ]
  %39 = phi i64 [ %33, %.preheader.preheader ], [ %49, %._crit_edge ]
  %.239 = phi i64 [ %.025.ph.lcssa, %.preheader.preheader ], [ %.3.lcssa, %._crit_edge ]
  %.02638 = phi i64 [ 1, %.preheader.preheader ], [ %47, %._crit_edge ]
  %40 = srem i64 %.239, %39
  %41 = icmp eq i64 %40, 0
  br i1 %41, label %.lr.ph35, label %._crit_edge

.lr.ph35:                                         ; preds = %.preheader, %.lr.ph35
  %.02434 = phi i64 [ %42, %.lr.ph35 ], [ 0, %.preheader ]
  %.333 = phi i64 [ %43, %.lr.ph35 ], [ %.239, %.preheader ]
  %42 = add nuw nsw i64 %.02434, 1
  %43 = sdiv i64 %.333, %39
  %44 = srem i64 %43, %39
  %45 = icmp eq i64 %44, 0
  br i1 %45, label %.lr.ph35, label %._crit_edge, !llvm.loop !17

._crit_edge:                                      ; preds = %.lr.ph35, %.preheader
  %.3.lcssa = phi i64 [ %.239, %.preheader ], [ %43, %.lr.ph35 ]
  %.024.lcssa = phi i64 [ 0, %.preheader ], [ %42, %.lr.ph35 ]
  %46 = add nuw nsw i64 %.024.lcssa, 1
  %47 = mul nuw nsw i64 %46, %.02638
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %48 = getelementptr inbounds [80000 x i64], ptr @prime, i64 0, i64 %indvars.iv.next
  %49 = load i64, ptr %48, align 8, !tbaa !9
  %50 = mul nsw i64 %49, %49
  %51 = icmp sle i64 %50, %.3.lcssa
  %52 = icmp ult i64 %indvars.iv.next, %38
  %53 = select i1 %51, i1 %52, i1 false
  br i1 %53, label %.preheader, label %._crit_edge41, !llvm.loop !18

._crit_edge41:                                    ; preds = %._crit_edge, %29
  %.026.lcssa = phi i64 [ 1, %29 ], [ %47, %._crit_edge ]
  %.2.lcssa = phi i64 [ %.025.ph.lcssa, %29 ], [ %.3.lcssa, %._crit_edge ]
  %54 = icmp sgt i64 %.2.lcssa, 1
  %55 = zext i1 %54 to i64
  %spec.select = shl nuw nsw i64 %.026.lcssa, %55
  %56 = sext i1 %31 to i64
  %.228 = add nsw i64 %spec.select, %56
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i64 noundef %.228)
  br label %58

58:                                               ; preds = %._crit_edge41, %.loopexit54.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  %59 = load i32, ptr %1, align 4, !tbaa !5
  %60 = add nsw i32 %59, -1
  store i32 %60, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %59, 0
  br i1 %.not, label %._crit_edge47, label %.lr.ph46

._crit_edge47:                                    ; preds = %58, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret i32 0
}

; 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 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12, !13}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.peeled.count", i32 1}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


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