; LLVM IR from tangjz/acm-icpc :: lydsy (4215)

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

@n = external dso_local global i32, align 4
@buf = external dso_local global [100001 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5checki(i32 noundef) #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 i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @buf)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  br label %11

11:                                               ; preds = %47, %0
  %12 = load i32, ptr %3, align 4, !tbaa !5
  %13 = load i32, ptr @n, align 4, !tbaa !5
  %14 = icmp slt i32 %12, %13
  br i1 %14, label %16, label %15

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

16:                                               ; preds = %11
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr %4, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %38, %16
  %20 = load i32, ptr %4, align 4, !tbaa !5
  %21 = load i32, ptr @n, align 4, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %23, label %35

23:                                               ; preds = %19
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [100001 x i8], ptr @buf, i64 0, i64 %25
  %27 = load i8, ptr %26, align 1, !tbaa !9
  %28 = sext i8 %27 to i32
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [100001 x i8], ptr @buf, i64 0, i64 %30
  %32 = load i8, ptr %31, align 1, !tbaa !9
  %33 = sext i8 %32 to i32
  %34 = icmp eq i32 %28, %33
  br label %35

35:                                               ; preds = %23, %19
  %36 = phi i1 [ false, %19 ], [ %34, %23 ]
  br i1 %36, label %37, label %41

37:                                               ; preds = %35
  br label %38

38:                                               ; preds = %37
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %4, align 4, !tbaa !5
  br label %19, !llvm.loop !10

41:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = sub nsw i32 %42, %43
  store i32 %44, ptr %5, align 4, !tbaa !5
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %46 = load i32, ptr %45, align 4, !tbaa !5
  store i32 %46, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %47

47:                                               ; preds = %41
  %48 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %48, ptr %3, align 4, !tbaa !5
  br label %11, !llvm.loop !12

49:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %50 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %50, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = shl i32 %51, 1
  store i32 %52, ptr %7, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %63, %49
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = load i32, ptr %7, align 4, !tbaa !5
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %57, label %60

57:                                               ; preds = %53
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = call noundef zeroext i1 @_Z5checki(i32 noundef %58)
  br label %60

60:                                               ; preds = %57, %53
  %61 = phi i1 [ false, %53 ], [ %59, %57 ]
  br i1 %61, label %62, label %69

62:                                               ; preds = %60
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %64, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = shl i32 %65, 1
  store i32 %66, ptr %8, align 4, !tbaa !5
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %68 = load i32, ptr %67, align 4, !tbaa !5
  store i32 %68, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %53, !llvm.loop !13

69:                                               ; preds = %60
  br label %70

70:                                               ; preds = %87, %69
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %74, label %88

74:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = add nsw i32 %75, %76
  %78 = add nsw i32 %77, 1
  %79 = ashr i32 %78, 1
  store i32 %79, ptr %9, align 4, !tbaa !5
  %80 = load i32, ptr %9, align 4, !tbaa !5
  %81 = call noundef zeroext i1 @_Z5checki(i32 noundef %80)
  br i1 %81, label %82, label %84

82:                                               ; preds = %74
  %83 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %83, ptr %6, align 4, !tbaa !5
  br label %87

84:                                               ; preds = %74
  %85 = load i32, ptr %9, align 4, !tbaa !5
  %86 = sub nsw i32 %85, 1
  store i32 %86, ptr %7, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %84, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %70, !llvm.loop !14

88:                                               ; preds = %70
  br label %89

89:                                               ; preds = %103, %88
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = load i32, ptr %2, align 4, !tbaa !5
  %92 = icmp sle i32 %90, %91
  br i1 %92, label %93, label %100

93:                                               ; preds = %89
  %94 = load i32, ptr %6, align 4, !tbaa !5
  %95 = icmp sgt i32 %94, 0
  br i1 %95, label %96, label %100

96:                                               ; preds = %93
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = call noundef zeroext i1 @_Z5checki(i32 noundef %97)
  %99 = xor i1 %98, true
  br label %100

100:                                              ; preds = %96, %93, %89
  %101 = phi i1 [ false, %93 ], [ false, %89 ], [ %99, %96 ]
  br i1 %101, label %102, label %106

102:                                              ; preds = %100
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %6, align 4, !tbaa !5
  %105 = add nsw i32 %104, -1
  store i32 %105, ptr %6, align 4, !tbaa !5
  br label %89, !llvm.loop !15

106:                                              ; preds = %100
  %107 = load i32, ptr %6, align 4, !tbaa !5
  %108 = load i32, ptr @n, align 4, !tbaa !5
  %109 = icmp eq i32 %108, 100000
  %110 = zext i1 %109 to i32
  %111 = sub nsw i32 %107, %110
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %111)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  ret i32 0
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

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

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


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

@n = external dso_local global i32, align 4
@buf = external dso_local global [100001 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5checki(i32 noundef) 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 uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @buf)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  %5 = load i32, ptr @n, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.preheader36, label %._crit_edge

.preheader36:                                     ; preds = %0, %.critedge
  %7 = phi i32 [ %27, %.critedge ], [ %5, %0 ]
  %.037 = phi i32 [ %.035.lcssa, %.critedge ], [ 0, %0 ]
  %8 = sext i32 %.037 to i64
  %9 = getelementptr inbounds [100001 x i8], ptr @buf, i64 0, i64 %8
  %10 = sext i32 %7 to i64
  %11 = add nsw i32 %.037, 1
  %smax = call i32 @llvm.smax.i32(i32 %7, i32 %11)
  br label %16

._crit_edge:                                      ; preds = %.critedge, %0
  %12 = phi i32 [ 0, %0 ], [ %26, %.critedge ]
  %13 = shl i32 %12, 1
  %14 = icmp slt i32 %12, %13
  br i1 %14, label %.lr.ph.preheader, label %.critedge2

.lr.ph.preheader:                                 ; preds = %._crit_edge
  %15 = call noundef zeroext i1 @_Z5checki(i32 noundef %13)
  br i1 %15, label %.lr.ph60, label %.critedge2

16:                                               ; preds = %.preheader36, %18
  %indvars.iv = phi i64 [ %8, %.preheader36 ], [ %indvars.iv.next, %18 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %17 = icmp slt i64 %indvars.iv.next, %10
  br i1 %17, label %18, label %.critedge

18:                                               ; preds = %16
  %19 = load i8, ptr %9, align 1, !tbaa !9
  %20 = getelementptr inbounds [100001 x i8], ptr @buf, i64 0, i64 %indvars.iv.next
  %21 = load i8, ptr %20, align 1, !tbaa !9
  %22 = icmp eq i8 %19, %21
  br i1 %22, label %16, label %.critedge.split.loop.exit56, !llvm.loop !10

.critedge.split.loop.exit56:                      ; preds = %18
  %23 = trunc nsw i64 %indvars.iv.next to i32
  br label %.critedge

.critedge:                                        ; preds = %16, %.critedge.split.loop.exit56
  %.035.lcssa = phi i32 [ %23, %.critedge.split.loop.exit56 ], [ %smax, %16 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %24 = sub nsw i32 %.035.lcssa, %.037
  store i32 %24, ptr %2, align 4, !tbaa !5
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %26 = load i32, ptr %25, align 4, !tbaa !5
  store i32 %26, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  %27 = load i32, ptr @n, align 4, !tbaa !5
  %28 = icmp slt i32 %.035.lcssa, %27
  br i1 %28, label %.preheader36, label %._crit_edge, !llvm.loop !12

.lr.ph:                                           ; preds = %.lr.ph60
  %29 = call noundef zeroext i1 @_Z5checki(i32 noundef %32)
  br i1 %29, label %.lr.ph60, label %.critedge2, !llvm.loop !13

.lr.ph60:                                         ; preds = %.lr.ph.preheader, %.lr.ph
  %.0313959 = phi i32 [ %32, %.lr.ph ], [ %13, %.lr.ph.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %30 = shl i32 %.0313959, 1
  store i32 %30, ptr %3, align 4, !tbaa !5
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %32 = load i32, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  %33 = icmp slt i32 %.0313959, %32
  br i1 %33, label %.lr.ph, label %.critedge2, !llvm.loop !13

.critedge2:                                       ; preds = %.lr.ph60, %.lr.ph, %.lr.ph.preheader, %._crit_edge
  %.032.lcssa = phi i32 [ %12, %._crit_edge ], [ %12, %.lr.ph.preheader ], [ %.0313959, %.lr.ph ], [ %.0313959, %.lr.ph60 ]
  %.031.lcssa = phi i32 [ %13, %._crit_edge ], [ %13, %.lr.ph.preheader ], [ %32, %.lr.ph ], [ %32, %.lr.ph60 ]
  %34 = icmp slt i32 %.032.lcssa, %.031.lcssa
  br i1 %34, label %.lr.ph47, label %.preheader

.preheader:                                       ; preds = %.lr.ph47, %.critedge2
  %.133.lcssa = phi i32 [ %.032.lcssa, %.critedge2 ], [ %.234, %.lr.ph47 ]
  %35 = load i32, ptr %1, align 4, !tbaa !5
  %36 = icmp sle i32 %.133.lcssa, %35
  %37 = icmp sgt i32 %.133.lcssa, 0
  %or.cond49 = and i1 %37, %36
  br i1 %or.cond49, label %.lr.ph51, label %.critedge5

.lr.ph47:                                         ; preds = %.critedge2, %.lr.ph47
  %.146 = phi i32 [ %.2, %.lr.ph47 ], [ %.031.lcssa, %.critedge2 ]
  %.13345 = phi i32 [ %.234, %.lr.ph47 ], [ %.032.lcssa, %.critedge2 ]
  %38 = add nsw i32 %.13345, 1
  %39 = add i32 %38, %.146
  %40 = ashr i32 %39, 1
  %41 = call noundef zeroext i1 @_Z5checki(i32 noundef %40)
  %42 = add nsw i32 %40, -1
  %.234 = select i1 %41, i32 %40, i32 %.13345
  %.2 = select i1 %41, i32 %.146, i32 %42
  %43 = icmp slt i32 %.234, %.2
  br i1 %43, label %.lr.ph47, label %.preheader, !llvm.loop !14

.lr.ph51:                                         ; preds = %.preheader, %45
  %.350 = phi i32 [ %46, %45 ], [ %.133.lcssa, %.preheader ]
  %44 = call noundef zeroext i1 @_Z5checki(i32 noundef %.350)
  br i1 %44, label %.critedge5, label %45

45:                                               ; preds = %.lr.ph51
  %46 = add nsw i32 %.350, -1
  %47 = load i32, ptr %1, align 4, !tbaa !5
  %48 = icmp sle i32 %46, %47
  %49 = icmp sgt i32 %.350, 1
  %or.cond = and i1 %49, %48
  br i1 %or.cond, label %.lr.ph51, label %.critedge5, !llvm.loop !15

.critedge5:                                       ; preds = %.lr.ph51, %45, %.preheader
  %.3.lcssa = phi i32 [ %.133.lcssa, %.preheader ], [ %46, %45 ], [ %.350, %.lr.ph51 ]
  %50 = load i32, ptr @n, align 4, !tbaa !5
  %51 = icmp eq i32 %50, 100000
  %.neg = sext i1 %51 to i32
  %52 = add i32 %.3.lcssa, %.neg
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %52)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #5

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 = { 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 = { 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 = { inlinehint 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}


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