; LLVM IR from sympiler/nasoq :: src/common/SparseUtils.ll (ZN5nasoq27compute_recieporical_lengthEPNS_12sympiler_CSCEPdS2_)

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

%"struct.nasoq::sympiler_CSC" = type { i64, i64, i64, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32 }

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5nasoq27compute_recieporical_lengthEPNS_12sympiler_CSCEPdS2_(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.nasoq::sympiler_CSC", ptr %20, i32 0, i32 8
  %22 = load i32, ptr %21, align 8, !tbaa !9
  store i32 %22, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.nasoq::sympiler_CSC", ptr %23, i32 0, i32 3
  %25 = load ptr, ptr %24, align 8, !tbaa !14
  store ptr %25, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.nasoq::sympiler_CSC", ptr %26, i32 0, i32 1
  %28 = load i64, ptr %27, align 8, !tbaa !15
  %29 = trunc i64 %28 to i32
  store i32 %29, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.nasoq::sympiler_CSC", ptr %30, i32 0, i32 4
  %32 = load ptr, ptr %31, align 8, !tbaa !16
  store ptr %32, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.nasoq::sympiler_CSC", ptr %33, i32 0, i32 6
  %35 = load ptr, ptr %34, align 8, !tbaa !17
  store ptr %35, ptr %12, align 8, !tbaa !5
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.nasoq::sympiler_CSC", ptr %37, i32 0, i32 0
  %39 = load i64, ptr %38, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store double 0.000000e+00, ptr %13, align 8, !tbaa !19
  %40 = call noundef ptr @_ZSt6fill_nIPdmdET_S1_T0_RKT1_(ptr noundef %36, i64 noundef %39, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %41 = load i32, ptr %8, align 4, !tbaa !13
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %135

43:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !13
  br label %44

44:                                               ; preds = %88, %43
  %45 = load i32, ptr %14, align 4, !tbaa !13
  %46 = load i32, ptr %10, align 4, !tbaa !13
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %91

49:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = load i32, ptr %14, align 4, !tbaa !13
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds i32, ptr %50, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !13
  store i32 %54, ptr %16, align 4, !tbaa !13
  br label %55

55:                                               ; preds = %84, %49
  %56 = load i32, ptr %16, align 4, !tbaa !13
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = load i32, ptr %14, align 4, !tbaa !13
  %59 = add nsw i32 %58, 1
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds i32, ptr %57, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !13
  %63 = icmp slt i32 %56, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %55
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %87

65:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = load i32, ptr %16, align 4, !tbaa !13
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i32, ptr %66, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !13
  store i32 %70, ptr %17, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = load i32, ptr %16, align 4, !tbaa !13
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds double, ptr %71, i64 %73
  %75 = load double, ptr %74, align 8, !tbaa !19
  store double %75, ptr %18, align 8, !tbaa !19
  %76 = load double, ptr %18, align 8, !tbaa !19
  %77 = load double, ptr %18, align 8, !tbaa !19
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = load i32, ptr %17, align 4, !tbaa !13
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr %78, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !19
  %83 = call double @llvm.fmuladd.f64(double %76, double %77, double %82)
  store double %83, ptr %81, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %84

84:                                               ; preds = %65
  %85 = load i32, ptr %16, align 4, !tbaa !13
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %16, align 4, !tbaa !13
  br label %55, !llvm.loop !21

87:                                               ; preds = %64
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %14, align 4, !tbaa !13
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %14, align 4, !tbaa !13
  br label %44, !llvm.loop !23

91:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !13
  br label %92

92:                                               ; preds = %129, %91
  %93 = load i32, ptr %19, align 4, !tbaa !13
  %94 = sext i32 %93 to i64
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.nasoq::sympiler_CSC", ptr %95, i32 0, i32 0
  %97 = load i64, ptr %96, align 8, !tbaa !18
  %98 = icmp ult i64 %94, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %92
  store i32 8, ptr %15, align 4
  br label %132

100:                                              ; preds = %92
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = load i32, ptr %19, align 4, !tbaa !13
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds double, ptr %101, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !19
  %106 = fcmp ogt double %105, 0.000000e+00
  br i1 %106, label %107, label %119

107:                                              ; preds = %100
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = load i32, ptr %19, align 4, !tbaa !13
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds double, ptr %108, i64 %110
  %112 = load double, ptr %111, align 8, !tbaa !19
  %113 = call double @sqrt(double noundef %112) #5
  %114 = fdiv double 1.000000e+00, %113
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = load i32, ptr %19, align 4, !tbaa !13
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds double, ptr %115, i64 %117
  store double %114, ptr %118, align 8, !tbaa !19
  br label %128

119:                                              ; preds = %100
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = load i32, ptr %19, align 4, !tbaa !13
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds double, ptr %120, i64 %122
  %124 = load double, ptr %123, align 8, !tbaa !19
  %125 = fcmp une double %124, 0.000000e+00
  br i1 %125, label %126, label %127

126:                                              ; preds = %119
  store i32 0, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %132

127:                                              ; preds = %119
  br label %128

128:                                              ; preds = %127, %107
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %19, align 4, !tbaa !13
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %19, align 4, !tbaa !13
  br label %92, !llvm.loop !24

132:                                              ; preds = %126, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  %133 = load i32, ptr %15, align 4
  switch i32 %133, label %136 [
    i32 8, label %134
  ]

134:                                              ; preds = %132
  br label %135

135:                                              ; preds = %134, %3
  store i32 1, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %136

136:                                              ; preds = %135, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %137 = load i32, ptr %4, align 4
  ret i32 %137
}

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #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 "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 64}
!10 = !{!"_ZTSN5nasoq12sympiler_CSCE", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!10, !6, i64 24}
!15 = !{!10, !11, i64 8}
!16 = !{!10, !6, i64 32}
!17 = !{!10, !6, i64 48}
!18 = !{!10, !11, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}


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

; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN5nasoq27compute_recieporical_lengthEPNS_12sympiler_CSCEPdS2_(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca double, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 64
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load ptr, ptr %7, align 8, !tbaa !12
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load i64, ptr %9, align 8, !tbaa !13
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  %12 = load ptr, ptr %11, align 8, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  %14 = load ptr, ptr %13, align 8, !tbaa !15
  %15 = load i64, ptr %0, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  store double 0.000000e+00, ptr %4, align 8, !tbaa !17
  %16 = call noundef ptr @_ZSt6fill_nIPdmdET_S1_T0_RKT1_(ptr noundef %2, i64 noundef %15, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %17 = icmp eq i32 %6, 0
  br i1 %17, label %.preheader43, label %.critedge

.preheader43:                                     ; preds = %3
  %18 = trunc i64 %10 to i32
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph46.preheader, label %.preheader

.lr.ph46.preheader:                               ; preds = %.preheader43
  %wide.trip.count56 = and i64 %10, 2147483647
  %.pre = load i32, ptr %8, align 4, !tbaa !19
  br label %.lr.ph46

.loopexit:                                        ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %.lr.ph46
  %exitcond57.not = icmp eq i64 %indvars.iv.next54, %wide.trip.count56
  br i1 %exitcond57.not, label %.preheader, label %.lr.ph46, !llvm.loop !20

.preheader:                                       ; preds = %.loopexit, %.preheader43
  %20 = load i64, ptr %0, align 8, !tbaa !16
  %.not47.not = icmp eq i64 %20, 0
  br i1 %.not47.not, label %.critedge, label %.lr.ph49

.lr.ph46:                                         ; preds = %.lr.ph46.preheader, %.loopexit
  %21 = phi i32 [ %.pre, %.lr.ph46.preheader ], [ %23, %.loopexit ]
  %indvars.iv53 = phi i64 [ 0, %.lr.ph46.preheader ], [ %indvars.iv.next54, %.loopexit ]
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %22 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv.next54
  %23 = load i32, ptr %22, align 4, !tbaa !19
  %24 = icmp slt i32 %21, %23
  br i1 %24, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %.lr.ph46
  %25 = sext i32 %21 to i64
  %wide.trip.count = sext i32 %23 to i64
  %26 = sub nsw i64 %wide.trip.count, %25
  %xtraiter = and i64 %26, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader
  %27 = getelementptr inbounds i32, ptr %12, i64 %25
  %28 = load i32, ptr %27, align 4, !tbaa !19
  %29 = getelementptr inbounds double, ptr %14, i64 %25
  %30 = load double, ptr %29, align 8, !tbaa !17
  %31 = sext i32 %28 to i64
  %32 = getelementptr inbounds double, ptr %2, i64 %31
  %33 = load double, ptr %32, align 8, !tbaa !17
  %34 = call double @llvm.fmuladd.f64(double %30, double %30, double %33)
  store double %34, ptr %32, align 8, !tbaa !17
  %indvars.iv.next.prol = add nsw i64 %25, 1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ %25, %.lr.ph.preheader ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %35 = add nsw i64 %wide.trip.count, -1
  %36 = icmp eq i64 %35, %25
  br i1 %36, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %37 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv
  %38 = load i32, ptr %37, align 4, !tbaa !19
  %39 = getelementptr inbounds double, ptr %14, i64 %indvars.iv
  %40 = load double, ptr %39, align 8, !tbaa !17
  %41 = sext i32 %38 to i64
  %42 = getelementptr inbounds double, ptr %2, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !17
  %44 = call double @llvm.fmuladd.f64(double %40, double %40, double %43)
  store double %44, ptr %42, align 8, !tbaa !17
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %45 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv.next
  %46 = load i32, ptr %45, align 4, !tbaa !19
  %47 = getelementptr inbounds double, ptr %14, i64 %indvars.iv.next
  %48 = load double, ptr %47, align 8, !tbaa !17
  %49 = sext i32 %46 to i64
  %50 = getelementptr inbounds double, ptr %2, i64 %49
  %51 = load double, ptr %50, align 8, !tbaa !17
  %52 = call double @llvm.fmuladd.f64(double %48, double %48, double %51)
  store double %52, ptr %50, align 8, !tbaa !17
  %indvars.iv.next.1 = add nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %.loopexit, label %.lr.ph, !llvm.loop !22

.lr.ph49:                                         ; preds = %.preheader, %64
  %53 = phi i64 [ %65, %64 ], [ %20, %.preheader ]
  %indvars.iv58 = phi i64 [ %indvars.iv.next59, %64 ], [ 0, %.preheader ]
  %54 = getelementptr inbounds double, ptr %2, i64 %indvars.iv58
  %55 = load double, ptr %54, align 8, !tbaa !17
  %56 = fcmp ogt double %55, 0.000000e+00
  br i1 %56, label %57, label %60

57:                                               ; preds = %.lr.ph49
  %58 = call double @sqrt(double noundef %55) #5
  %59 = fdiv double 1.000000e+00, %58
  store double %59, ptr %54, align 8, !tbaa !17
  %.pre61 = load i64, ptr %0, align 8, !tbaa !16
  br label %64

60:                                               ; preds = %.lr.ph49
  %61 = getelementptr inbounds double, ptr %1, i64 %indvars.iv58
  %62 = load double, ptr %61, align 8, !tbaa !17
  %63 = fcmp une double %62, 0.000000e+00
  br i1 %63, label %.critedge, label %64

64:                                               ; preds = %57, %60
  %65 = phi i64 [ %.pre61, %57 ], [ %53, %60 ]
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %.not = icmp ugt i64 %65, %indvars.iv.next59
  br i1 %.not, label %.lr.ph49, label %.critedge, !llvm.loop !23

.critedge:                                        ; preds = %60, %64, %.preheader, %3
  %.1 = phi i32 [ 1, %3 ], [ 1, %.preheader ], [ 0, %60 ], [ 1, %64 ]
  ret i32 %.1
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #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 = { mustprogress nofree nounwind willreturn memory(write) "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, !11, i64 64}
!6 = !{!"_ZTSN5nasoq12sympiler_CSCE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !10, i64 24}
!13 = !{!6, !7, i64 8}
!14 = !{!6, !10, i64 32}
!15 = !{!6, !10, i64 48}
!16 = !{!6, !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !8, i64 0}
!19 = !{!11, !11, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass