; LLVM IR from MinhasKamal/AlgorithmImplementations :: playWithNumbers/factorial (BigFactorials)

; 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 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [1000001 x i16], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  br label %8

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

9:                                                ; preds = %16, %8
  %10 = load i32, ptr %4, align 4, !tbaa !5
  %11 = icmp slt i32 %10, 1000001
  br i1 %11, label %12, label %19

12:                                               ; preds = %9
  %13 = load i32, ptr %4, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [1000001 x i16], ptr %2, i64 0, i64 %14
  store i16 -1, ptr %15, align 2, !tbaa !9
  br label %16

16:                                               ; preds = %12
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr %4, align 4, !tbaa !5
  br label %9, !llvm.loop !11

19:                                               ; preds = %9
  %20 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %3)
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 1
  br i1 %23, label %24, label %25

24:                                               ; preds = %19
  store i32 3, ptr %5, align 4
  br label %138

25:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %26 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %26, ptr %4, align 4, !tbaa !5
  store i32 1000000, ptr %6, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %39, %25
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %30, label %42

30:                                               ; preds = %27
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = srem i32 %31, 10
  %33 = trunc i32 %32 to i16
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [1000001 x i16], ptr %2, i64 0, i64 %35
  store i16 %33, ptr %36, align 2, !tbaa !9
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = sdiv i32 %37, 10
  store i32 %38, ptr %4, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %30
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = add nsw i32 %40, -1
  store i32 %41, ptr %6, align 4, !tbaa !5
  br label %27, !llvm.loop !13

42:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !5
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = sub nsw i32 %43, 1
  store i32 %44, ptr %4, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %107, %42
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %48, label %110

48:                                               ; preds = %45
  store i32 1000000, ptr %6, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %74, %48
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [1000001 x i16], ptr %2, i64 0, i64 %51
  %53 = load i16, ptr %52, align 2, !tbaa !9
  %54 = sext i16 %53 to i32
  %55 = icmp sge i32 %54, 0
  br i1 %55, label %56, label %77

56:                                               ; preds = %49
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = load i32, ptr %6, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [1000001 x i16], ptr %2, i64 0, i64 %59
  %61 = load i16, ptr %60, align 2, !tbaa !9
  %62 = sext i16 %61 to i32
  %63 = mul nsw i32 %57, %62
  %64 = load i32, ptr %7, align 4, !tbaa !5
  %65 = add nsw i32 %63, %64
  store i32 %65, ptr %7, align 4, !tbaa !5
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = srem i32 %66, 10
  %68 = trunc i32 %67 to i16
  %69 = load i32, ptr %6, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [1000001 x i16], ptr %2, i64 0, i64 %70
  store i16 %68, ptr %71, align 2, !tbaa !9
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = sdiv i32 %72, 10
  store i32 %73, ptr %7, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %56
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = add nsw i32 %75, -1
  store i32 %76, ptr %6, align 4, !tbaa !5
  br label %49, !llvm.loop !14

77:                                               ; preds = %49
  %78 = load i32, ptr %7, align 4, !tbaa !5
  %79 = srem i32 %78, 10
  %80 = trunc i32 %79 to i16
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [1000001 x i16], ptr %2, i64 0, i64 %82
  store i16 %80, ptr %83, align 2, !tbaa !9
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = sdiv i32 %84, 10
  store i32 %85, ptr %7, align 4, !tbaa !5
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = trunc i32 %86 to i16
  %88 = load i32, ptr %6, align 4, !tbaa !5
  %89 = sub nsw i32 %88, 1
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [1000001 x i16], ptr %2, i64 0, i64 %90
  store i16 %87, ptr %91, align 2, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %103, %77
  %93 = load i32, ptr %7, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [1000001 x i16], ptr %2, i64 0, i64 %94
  %96 = load i16, ptr %95, align 2, !tbaa !9
  %97 = sext i16 %96 to i32
  %98 = icmp slt i32 %97, 1
  br i1 %98, label %99, label %106

99:                                               ; preds = %92
  %100 = load i32, ptr %7, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [1000001 x i16], ptr %2, i64 0, i64 %101
  store i16 -1, ptr %102, align 2, !tbaa !9
  br label %103

103:                                              ; preds = %99
  %104 = load i32, ptr %7, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %7, align 4, !tbaa !5
  br label %92, !llvm.loop !15

106:                                              ; preds = %92
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %4, align 4, !tbaa !5
  %109 = add nsw i32 %108, -1
  store i32 %109, ptr %4, align 4, !tbaa !5
  br label %45, !llvm.loop !16

110:                                              ; preds = %45
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %119, %110
  %112 = load i32, ptr %4, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [1000001 x i16], ptr %2, i64 0, i64 %113
  %115 = load i16, ptr %114, align 2, !tbaa !9
  %116 = sext i16 %115 to i32
  %117 = icmp slt i32 %116, 1
  br i1 %117, label %118, label %122

118:                                              ; preds = %111
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %4, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %4, align 4, !tbaa !5
  br label %111, !llvm.loop !17

122:                                              ; preds = %111
  br label %123

123:                                              ; preds = %133, %122
  %124 = load i32, ptr %4, align 4, !tbaa !5
  %125 = icmp slt i32 %124, 1000001
  br i1 %125, label %126, label %136

126:                                              ; preds = %123
  %127 = load i32, ptr %4, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [1000001 x i16], ptr %2, i64 0, i64 %128
  %130 = load i16, ptr %129, align 2, !tbaa !9
  %131 = sext i16 %130 to i32
  %132 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %131)
  br label %133

133:                                              ; preds = %126
  %134 = load i32, ptr %4, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %4, align 4, !tbaa !5
  br label %123, !llvm.loop !18

136:                                              ; preds = %123
  %137 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  store i32 0, ptr %5, align 4
  br label %138

138:                                              ; preds = %136, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 2000002, ptr %2) #3
  %139 = load i32, ptr %5, align 4
  switch i32 %139, label %142 [
    i32 0, label %140
    i32 3, label %141
  ]

140:                                              ; preds = %138
  br label %8

141:                                              ; preds = %138
  ret i32 0

142:                                              ; preds = %138
  unreachable
}

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

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

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

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

attributes #0 = { 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 = { "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 }

!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 = !{!10, !10, i64 0}
!10 = !{!"short", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


; 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 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [1000001 x i16], align 16
  %2 = alloca i32, align 4
  %3 = getelementptr inbounds i8, ptr %1, i64 2000000
  call void @llvm.lifetime.start.p0(i64 2000002, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(2000002) %1, i8 -1, i64 2000002, i1 false), !tbaa !5
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %2)
  %6 = load i32, ptr %2, align 4, !tbaa !9
  %7 = icmp slt i32 %6, 1
  br i1 %7, label %._crit_edge81, label %.preheader44.preheader

.preheader44.preheader:                           ; preds = %0, %._crit_edge59
  %8 = phi i32 [ %51, %._crit_edge59 ], [ %6, %0 ]
  br label %.preheader44

.preheader43:                                     ; preds = %.preheader44
  %.not60 = icmp eq i32 %8, 1
  br i1 %.not60, label %.preheader42.preheader, label %.preheader

.preheader42.preheader:                           ; preds = %.loopexit, %.preheader43
  br label %.preheader42

.preheader44:                                     ; preds = %.preheader44.preheader, %.preheader44
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader44 ], [ 1000000, %.preheader44.preheader ]
  %.13646 = phi i32 [ %12, %.preheader44 ], [ %8, %.preheader44.preheader ]
  %9 = urem i32 %.13646, 10
  %10 = trunc nuw nsw i32 %9 to i16
  %11 = getelementptr inbounds [1000001 x i16], ptr %1, i64 0, i64 %indvars.iv
  store i16 %10, ptr %11, align 2, !tbaa !5
  %12 = udiv i32 %.13646, 10
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %.not = icmp ult i32 %.13646, 10
  br i1 %.not, label %.preheader43, label %.preheader44, !llvm.loop !11

.loopexit:                                        ; preds = %.lr.ph54, %._crit_edge
  %13 = icmp sgt i32 %.23756.in, 2
  br i1 %13, label %.preheader, label %.preheader42.preheader, !llvm.loop !13

.preheader:                                       ; preds = %.preheader43, %.loopexit
  %.23756.in = phi i32 [ %.23756, %.loopexit ], [ %8, %.preheader43 ]
  %.23756 = add nsw i32 %.23756.in, -1
  %14 = load i16, ptr %3, align 16, !tbaa !5
  %15 = icmp sgt i16 %14, -1
  br i1 %15, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %.lr.ph ], [ 1000000, %.preheader ]
  %16 = phi i16 [ %25, %.lr.ph ], [ %14, %.preheader ]
  %17 = phi ptr [ %24, %.lr.ph ], [ %3, %.preheader ]
  %.149 = phi i32 [ %23, %.lr.ph ], [ 0, %.preheader ]
  %18 = zext nneg i16 %16 to i32
  %19 = mul nsw i32 %.23756, %18
  %20 = add nuw nsw i32 %19, %.149
  %21 = urem i32 %20, 10
  %22 = trunc nuw nsw i32 %21 to i16
  store i16 %22, ptr %17, align 2, !tbaa !5
  %23 = udiv i32 %20, 10
  %indvars.iv.next67 = add nsw i64 %indvars.iv66, -1
  %24 = getelementptr inbounds [1000001 x i16], ptr %1, i64 0, i64 %indvars.iv.next67
  %25 = load i16, ptr %24, align 2, !tbaa !5
  %26 = icmp sgt i16 %25, -1
  br i1 %26, label %.lr.ph, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %.133.lcssa = phi i64 [ 1000000, %.preheader ], [ %indvars.iv.next67, %.lr.ph ]
  %.1.lcssa = phi i32 [ 0, %.preheader ], [ %23, %.lr.ph ]
  %.lcssa = phi ptr [ %3, %.preheader ], [ %24, %.lr.ph ]
  %27 = urem i32 %.1.lcssa, 10
  %28 = trunc nuw nsw i32 %27 to i16
  store i16 %28, ptr %.lcssa, align 2, !tbaa !5
  %29 = udiv i32 %.1.lcssa, 10
  %30 = trunc i32 %29 to i16
  %31 = shl i64 %.133.lcssa, 32
  %sext = add i64 %31, -4294967296
  %32 = ashr exact i64 %sext, 32
  %33 = getelementptr inbounds [1000001 x i16], ptr %1, i64 0, i64 %32
  store i16 %30, ptr %33, align 2, !tbaa !5
  %34 = load i16, ptr %1, align 16, !tbaa !5
  %35 = icmp slt i16 %34, 1
  br i1 %35, label %.lr.ph54, label %.loopexit

.lr.ph54:                                         ; preds = %._crit_edge, %.lr.ph54
  %indvars.iv68 = phi i64 [ %indvars.iv.next69, %.lr.ph54 ], [ 0, %._crit_edge ]
  %36 = phi ptr [ %37, %.lr.ph54 ], [ %1, %._crit_edge ]
  store i16 -1, ptr %36, align 2, !tbaa !5
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %37 = getelementptr inbounds [1000001 x i16], ptr %1, i64 0, i64 %indvars.iv.next69
  %38 = load i16, ptr %37, align 2, !tbaa !5
  %39 = icmp slt i16 %38, 1
  br i1 %39, label %.lr.ph54, label %.loopexit, !llvm.loop !15

.preheader42:                                     ; preds = %.preheader42.preheader, %.preheader42
  %indvars.iv71 = phi i64 [ %indvars.iv.next72, %.preheader42 ], [ 0, %.preheader42.preheader ]
  %40 = getelementptr inbounds [1000001 x i16], ptr %1, i64 0, i64 %indvars.iv71
  %41 = load i16, ptr %40, align 2, !tbaa !5
  %42 = icmp slt i16 %41, 1
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  br i1 %42, label %.preheader42, label %.preheader41, !llvm.loop !16

.preheader41:                                     ; preds = %.preheader42
  %43 = icmp ult i64 %indvars.iv71, 1000001
  br i1 %43, label %.lr.ph58, label %._crit_edge59

.lr.ph58:                                         ; preds = %.preheader41, %.lr.ph58
  %indvars.iv74 = phi i64 [ %indvars.iv.next75, %.lr.ph58 ], [ %indvars.iv71, %.preheader41 ]
  %44 = getelementptr inbounds [1000001 x i16], ptr %1, i64 0, i64 %indvars.iv74
  %45 = load i16, ptr %44, align 2, !tbaa !5
  %46 = sext i16 %45 to i32
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %46)
  %indvars.iv.next75 = add nuw i64 %indvars.iv74, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next75, 1000001
  br i1 %exitcond.not, label %._crit_edge59, label %.lr.ph58, !llvm.loop !17

._crit_edge59:                                    ; preds = %.lr.ph58, %.preheader41
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 2000002, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 2000002, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(2000002) %1, i8 -1, i64 2000002, i1 false), !tbaa !5
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %50 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %2)
  %51 = load i32, ptr %2, align 4, !tbaa !9
  %52 = icmp slt i32 %51, 1
  br i1 %52, label %._crit_edge81, label %.preheader44.preheader

._crit_edge81:                                    ; preds = %._crit_edge59, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 2000002, ptr nonnull %1) #4
  ret i32 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

attributes #0 = { nofree 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 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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