; LLVM IR from viveakrt/Competitive-programing :: CodeChef (DAILY_Daily_Train)

; 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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %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 float, align 4
  %9 = alloca float, align 4
  %10 = alloca [54 x i8], align 16
  %11 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 54, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %119, %0
  %15 = load i32, ptr %7, align 4, !tbaa !5
  %16 = load i32, ptr %3, align 4, !tbaa !5
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %18, label %122

18:                                               ; preds = %14
  %19 = getelementptr inbounds [54 x i8], ptr %10, i64 0, i64 0
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef %19)
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %115, %18
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 9
  br i1 %23, label %24, label %118

24:                                               ; preds = %21
  store i32 0, ptr %5, align 4, !tbaa !5
  store float 1.000000e+00, ptr %8, align 4, !tbaa !9
  store float 1.000000e+00, ptr %9, align 4, !tbaa !9
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = mul nsw i32 4, %25
  store i32 %26, ptr %6, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %44, %24
  %28 = load i32, ptr %6, align 4, !tbaa !5
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  %31 = mul nsw i32 4, %30
  %32 = icmp slt i32 %28, %31
  br i1 %32, label %33, label %47

33:                                               ; preds = %27
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [54 x i8], ptr %10, i64 0, i64 %35
  %37 = load i8, ptr %36, align 1, !tbaa !11
  %38 = sext i8 %37 to i32
  %39 = icmp eq i32 %38, 48
  br i1 %39, label %40, label %43

40:                                               ; preds = %33
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %5, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %40, %33
  br label %44

44:                                               ; preds = %43
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %6, align 4, !tbaa !5
  br label %27, !llvm.loop !12

47:                                               ; preds = %27
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  %50 = mul nsw i32 2, %49
  %51 = sub nsw i32 54, %50
  store i32 %51, ptr %6, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %69, %47
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = mul nsw i32 2, %54
  %56 = sub nsw i32 54, %55
  %57 = icmp slt i32 %53, %56
  br i1 %57, label %58, label %72

58:                                               ; preds = %52
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [54 x i8], ptr %10, i64 0, i64 %60
  %62 = load i8, ptr %61, align 1, !tbaa !11
  %63 = sext i8 %62 to i32
  %64 = icmp eq i32 %63, 48
  br i1 %64, label %65, label %68

65:                                               ; preds = %58
  %66 = load i32, ptr %5, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %5, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %65, %58
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %6, align 4, !tbaa !5
  br label %52, !llvm.loop !14

72:                                               ; preds = %52
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = icmp sge i32 %73, %74
  br i1 %75, label %76, label %114

76:                                               ; preds = %72
  %77 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %77, ptr %6, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %89, %76
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = load i32, ptr %5, align 4, !tbaa !5
  %81 = load i32, ptr %2, align 4, !tbaa !5
  %82 = sub nsw i32 %80, %81
  %83 = icmp sgt i32 %79, %82
  br i1 %83, label %84, label %92

84:                                               ; preds = %78
  %85 = load float, ptr %8, align 4, !tbaa !9
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = sitofp i32 %86 to float
  %88 = fmul float %85, %87
  store float %88, ptr %8, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %84
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = add nsw i32 %90, -1
  store i32 %91, ptr %6, align 4, !tbaa !5
  br label %78, !llvm.loop !15

92:                                               ; preds = %78
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %102, %92
  %94 = load i32, ptr %6, align 4, !tbaa !5
  %95 = load i32, ptr %2, align 4, !tbaa !5
  %96 = icmp sle i32 %94, %95
  br i1 %96, label %97, label %105

97:                                               ; preds = %93
  %98 = load float, ptr %9, align 4, !tbaa !9
  %99 = load i32, ptr %6, align 4, !tbaa !5
  %100 = sitofp i32 %99 to float
  %101 = fmul float %98, %100
  store float %101, ptr %9, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %97
  %103 = load i32, ptr %6, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %6, align 4, !tbaa !5
  br label %93, !llvm.loop !16

105:                                              ; preds = %93
  %106 = load float, ptr %8, align 4, !tbaa !9
  %107 = load float, ptr %9, align 4, !tbaa !9
  %108 = fdiv float %106, %107
  store float %108, ptr %8, align 4, !tbaa !9
  %109 = load i32, ptr %11, align 4, !tbaa !5
  %110 = sitofp i32 %109 to float
  %111 = load float, ptr %8, align 4, !tbaa !9
  %112 = fadd float %110, %111
  %113 = fptosi float %112 to i32
  store i32 %113, ptr %11, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %105, %72
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %4, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %4, align 4, !tbaa !5
  br label %21, !llvm.loop !17

118:                                              ; preds = %21
  br label %119

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

122:                                              ; preds = %14
  %123 = load i32, ptr %11, align 4, !tbaa !5
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %123)
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef @.str)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 54, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  ret i32 0
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 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 = { 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 #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 = { inlinehint 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 #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 = !{!"float", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}


; 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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [54 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 54, ptr nonnull %3) #5
  %6 = load i32, ptr %2, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph66, label %._crit_edge67

.lr.ph66:                                         ; preds = %0, %.split62.us
  %.064 = phi i32 [ %.us-phi, %.split62.us ], [ 0, %0 ]
  %.03363 = phi i32 [ %90, %.split62.us ], [ 0, %0 ]
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef %3)
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %.fr = freeze i32 %9
  %.not4253 = icmp slt i32 %.fr, 1
  br i1 %.not4253, label %.preheader.us, label %._crit_edge.preheader

._crit_edge.preheader:                            ; preds = %.lr.ph66
  %xtraiter = and i32 %.fr, 7
  %10 = icmp ult i32 %.fr, 8
  %unroll_iter = and i32 %.fr, 2147483640
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br label %._crit_edge

.preheader.us:                                    ; preds = %.lr.ph66
  %11 = sitofp i32 %.064 to float
  %12 = fadd float %11, 1.000000e+00
  %13 = fptosi float %12 to i32
  %14 = sitofp i32 %13 to float
  %15 = fadd float %14, 1.000000e+00
  %16 = fptosi float %15 to i32
  %17 = sitofp i32 %16 to float
  %18 = fadd float %17, 1.000000e+00
  %19 = fptosi float %18 to i32
  %20 = sitofp i32 %19 to float
  %21 = fadd float %20, 1.000000e+00
  %22 = fptosi float %21 to i32
  %23 = sitofp i32 %22 to float
  %24 = fadd float %23, 1.000000e+00
  %25 = fptosi float %24 to i32
  %26 = sitofp i32 %25 to float
  %27 = fadd float %26, 1.000000e+00
  %28 = fptosi float %27 to i32
  %29 = sitofp i32 %28 to float
  %30 = fadd float %29, 1.000000e+00
  %31 = fptosi float %30 to i32
  %32 = sitofp i32 %31 to float
  %33 = fadd float %32, 1.000000e+00
  %34 = fptosi float %33 to i32
  %35 = sitofp i32 %34 to float
  %36 = fadd float %35, 1.000000e+00
  %37 = fptosi float %36 to i32
  br label %.split62.us

._crit_edge:                                      ; preds = %._crit_edge.preheader, %89
  %indvars.iv76 = phi i64 [ %indvars.iv.next77, %89 ], [ 52, %._crit_edge.preheader ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %89 ], [ 0, %._crit_edge.preheader ]
  %.160 = phi i32 [ %.2, %89 ], [ %.064, %._crit_edge.preheader ]
  %.04159 = phi i32 [ %38, %89 ], [ 0, %._crit_edge.preheader ]
  %38 = add nuw nsw i32 %.04159, 1
  %39 = getelementptr inbounds [54 x i8], ptr %3, i64 0, i64 %indvars.iv
  %40 = load <4 x i8>, ptr %39, align 4, !tbaa !9
  %41 = icmp eq <4 x i8> %40, <i8 48, i8 48, i8 48, i8 48>
  %42 = getelementptr inbounds [54 x i8], ptr %3, i64 0, i64 %indvars.iv76
  %43 = load i8, ptr %42, align 2, !tbaa !9
  %44 = icmp eq i8 %43, 48
  %45 = zext i1 %44 to i32
  %indvars.iv.next79 = or disjoint i64 %indvars.iv76, 1
  %46 = getelementptr inbounds [54 x i8], ptr %3, i64 0, i64 %indvars.iv.next79
  %47 = load i8, ptr %46, align 1, !tbaa !9
  %48 = icmp eq i8 %47, 48
  %49 = zext i1 %48 to i32
  %50 = bitcast <4 x i1> %41 to i4
  %51 = call range(i4 0, 5) i4 @llvm.ctpop.i4(i4 %50)
  %52 = zext nneg i4 %51 to i32
  %op.rdx = add nuw nsw i32 %52, %45
  %op.rdx106 = add nuw nsw i32 %op.rdx, %49
  %.not = icmp slt i32 %op.rdx106, %.fr
  br i1 %.not, label %89, label %.lr.ph51.preheader

.lr.ph51.preheader:                               ; preds = %._crit_edge
  %53 = sub nsw i32 %op.rdx106, %.fr
  br label %.lr.ph51

.lr.ph51:                                         ; preds = %.lr.ph51.preheader, %.lr.ph51
  %.03250 = phi float [ %55, %.lr.ph51 ], [ 1.000000e+00, %.lr.ph51.preheader ]
  %.23649 = phi i32 [ %56, %.lr.ph51 ], [ %op.rdx106, %.lr.ph51.preheader ]
  %54 = sitofp i32 %.23649 to float
  %55 = fmul float %.03250, %54
  %56 = add nsw i32 %.23649, -1
  %57 = icmp sgt i32 %56, %53
  br i1 %57, label %.lr.ph51, label %.preheader.preheader, !llvm.loop !10

.preheader.preheader:                             ; preds = %.lr.ph51
  br i1 %10, label %._crit_edge57.unr-lcssa, label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %.03155 = phi float [ %80, %.preheader ], [ 1.000000e+00, %.preheader.preheader ]
  %.354 = phi i32 [ %81, %.preheader ], [ 1, %.preheader.preheader ]
  %niter = phi i32 [ %niter.next.7, %.preheader ], [ 0, %.preheader.preheader ]
  %58 = uitofp nneg i32 %.354 to float
  %59 = fmul float %.03155, %58
  %60 = add nuw nsw i32 %.354, 1
  %61 = uitofp nneg i32 %60 to float
  %62 = fmul float %59, %61
  %63 = add nuw nsw i32 %.354, 2
  %64 = uitofp nneg i32 %63 to float
  %65 = fmul float %62, %64
  %66 = add nuw nsw i32 %.354, 3
  %67 = uitofp nneg i32 %66 to float
  %68 = fmul float %65, %67
  %69 = add nuw nsw i32 %.354, 4
  %70 = uitofp nneg i32 %69 to float
  %71 = fmul float %68, %70
  %72 = add nuw nsw i32 %.354, 5
  %73 = uitofp nneg i32 %72 to float
  %74 = fmul float %71, %73
  %75 = add nuw nsw i32 %.354, 6
  %76 = uitofp nneg i32 %75 to float
  %77 = fmul float %74, %76
  %78 = add nuw i32 %.354, 7
  %79 = uitofp nneg i32 %78 to float
  %80 = fmul float %77, %79
  %81 = add nuw i32 %.354, 8
  %niter.next.7 = add i32 %niter, 8
  %niter.ncmp.7 = icmp eq i32 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge57.unr-lcssa, label %.preheader, !llvm.loop !12

._crit_edge57.unr-lcssa:                          ; preds = %.preheader, %.preheader.preheader
  %.lcssa107.ph = phi float [ poison, %.preheader.preheader ], [ %80, %.preheader ]
  %.03155.unr = phi float [ 1.000000e+00, %.preheader.preheader ], [ %80, %.preheader ]
  %.354.unr = phi i32 [ 1, %.preheader.preheader ], [ %81, %.preheader ]
  br i1 %lcmp.mod.not, label %._crit_edge57, label %.preheader.epil

.preheader.epil:                                  ; preds = %._crit_edge57.unr-lcssa, %.preheader.epil
  %.03155.epil = phi float [ %83, %.preheader.epil ], [ %.03155.unr, %._crit_edge57.unr-lcssa ]
  %.354.epil = phi i32 [ %84, %.preheader.epil ], [ %.354.unr, %._crit_edge57.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.preheader.epil ], [ 0, %._crit_edge57.unr-lcssa ]
  %82 = uitofp nneg i32 %.354.epil to float
  %83 = fmul float %.03155.epil, %82
  %84 = add nuw i32 %.354.epil, 1
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge57, label %.preheader.epil, !llvm.loop !13

._crit_edge57:                                    ; preds = %.preheader.epil, %._crit_edge57.unr-lcssa
  %.lcssa107 = phi float [ %.lcssa107.ph, %._crit_edge57.unr-lcssa ], [ %83, %.preheader.epil ]
  %85 = fdiv float %55, %.lcssa107
  %86 = sitofp i32 %.160 to float
  %87 = fadd float %85, %86
  %88 = fptosi float %87 to i32
  br label %89

89:                                               ; preds = %._crit_edge, %._crit_edge57
  %.2 = phi i32 [ %88, %._crit_edge57 ], [ %.160, %._crit_edge ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 4
  %indvars.iv.next77 = add nsw i64 %indvars.iv76, -2
  %exitcond83.not = icmp eq i32 %38, 9
  br i1 %exitcond83.not, label %.split62.us, label %._crit_edge, !llvm.loop !15

.split62.us:                                      ; preds = %89, %.preheader.us
  %.us-phi = phi i32 [ %37, %.preheader.us ], [ %.2, %89 ]
  %90 = add nuw nsw i32 %.03363, 1
  %91 = load i32, ptr %2, align 4, !tbaa !5
  %92 = icmp slt i32 %90, %91
  br i1 %92, label %.lr.ph66, label %._crit_edge67, !llvm.loop !16

._crit_edge67:                                    ; preds = %.split62.us, %0
  %.0.lcssa = phi i32 [ 0, %0 ], [ %.us-phi, %.split62.us ]
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.0.lcssa)
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull @.str)
  call void @llvm.lifetime.end.p0(i64 54, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) 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 nosync nounwind speculatable willreturn memory(none)
declare i4 @llvm.ctpop.i4(i4) #4

attributes #0 = { 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 #1 = { mustprogress 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 = { inlinehint 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass