; LLVM IR from darnstrom/daqp :: src (utils)

; 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.DAQPWorkspace = type { ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, ptr, ptr, ptr, ptr, i32, ptr, i32, i32, i32, double, ptr, ptr, i32, ptr }
%struct.DAQPSettings = type { double, double, double, double, double, i32, i32, double, double, double, double, double, double }

; 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: nounwind
declare double @sqrt(double noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: nounwind uwtable
define dso_local void @normalize_M(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  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 8, ptr %6) #4
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.DAQPWorkspace, ptr %7, i32 0, i32 3
  %9 = load i32, ptr %8, align 8, !tbaa !9
  store i32 %9, ptr %3, align 4, !tbaa !13
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %10

10:                                               ; preds = %98, %1
  %11 = load i32, ptr %3, align 4, !tbaa !13
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.DAQPWorkspace, ptr %12, i32 0, i32 2
  %14 = load i32, ptr %13, align 4, !tbaa !14
  %15 = icmp slt i32 %11, %14
  br i1 %15, label %16, label %101

16:                                               ; preds = %10
  store double 0.000000e+00, ptr %6, align 8, !tbaa !15
  store i32 0, ptr %4, align 4, !tbaa !13
  br label %17

17:                                               ; preds = %40, %16
  %18 = load i32, ptr %4, align 4, !tbaa !13
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.DAQPWorkspace, ptr %19, i32 0, i32 1
  %21 = load i32, ptr %20, align 8, !tbaa !16
  %22 = icmp slt i32 %18, %21
  br i1 %22, label %23, label %45

23:                                               ; preds = %17
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.DAQPWorkspace, ptr %24, i32 0, i32 4
  %26 = load ptr, ptr %25, align 8, !tbaa !17
  %27 = load i32, ptr %5, align 4, !tbaa !13
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds double, ptr %26, i64 %28
  %30 = load double, ptr %29, align 8, !tbaa !15
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.DAQPWorkspace, ptr %31, i32 0, i32 4
  %33 = load ptr, ptr %32, align 8, !tbaa !17
  %34 = load i32, ptr %5, align 4, !tbaa !13
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds double, ptr %33, i64 %35
  %37 = load double, ptr %36, align 8, !tbaa !15
  %38 = load double, ptr %6, align 8, !tbaa !15
  %39 = call double @llvm.fmuladd.f64(double %30, double %37, double %38)
  store double %39, ptr %6, align 8, !tbaa !15
  br label %40

40:                                               ; preds = %23
  %41 = load i32, ptr %5, align 4, !tbaa !13
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %5, align 4, !tbaa !13
  %43 = load i32, ptr %4, align 4, !tbaa !13
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %4, align 4, !tbaa !13
  br label %17, !llvm.loop !18

45:                                               ; preds = %17
  %46 = load double, ptr %6, align 8, !tbaa !15
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.DAQPWorkspace, ptr %47, i32 0, i32 28
  %49 = load ptr, ptr %48, align 8, !tbaa !20
  %50 = getelementptr inbounds %struct.DAQPSettings, ptr %49, i32 0, i32 2
  %51 = load double, ptr %50, align 8, !tbaa !21
  %52 = fcmp olt double %46, %51
  br i1 %52, label %53, label %60

53:                                               ; preds = %45
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.DAQPWorkspace, ptr %54, i32 0, i32 9
  %56 = load ptr, ptr %55, align 8, !tbaa !23
  %57 = load i32, ptr %3, align 4, !tbaa !13
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds i32, ptr %56, i64 %58
  store i32 4, ptr %59, align 4, !tbaa !13
  br label %98

60:                                               ; preds = %45
  %61 = load double, ptr %6, align 8, !tbaa !15
  %62 = call double @sqrt(double noundef %61) #4
  %63 = fdiv double 1.000000e+00, %62
  store double %63, ptr %6, align 8, !tbaa !15
  %64 = load double, ptr %6, align 8, !tbaa !15
  %65 = load ptr, ptr %2, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.DAQPWorkspace, ptr %65, i32 0, i32 10
  %67 = load ptr, ptr %66, align 8, !tbaa !24
  %68 = load i32, ptr %3, align 4, !tbaa !13
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds double, ptr %67, i64 %69
  store double %64, ptr %70, align 8, !tbaa !15
  store i32 0, ptr %4, align 4, !tbaa !13
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.DAQPWorkspace, ptr %71, i32 0, i32 1
  %73 = load i32, ptr %72, align 8, !tbaa !16
  %74 = load i32, ptr %5, align 4, !tbaa !13
  %75 = sub nsw i32 %74, %73
  store i32 %75, ptr %5, align 4, !tbaa !13
  br label %76

76:                                               ; preds = %92, %60
  %77 = load i32, ptr %4, align 4, !tbaa !13
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.DAQPWorkspace, ptr %78, i32 0, i32 1
  %80 = load i32, ptr %79, align 8, !tbaa !16
  %81 = icmp slt i32 %77, %80
  br i1 %81, label %82, label %97

82:                                               ; preds = %76
  %83 = load double, ptr %6, align 8, !tbaa !15
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.DAQPWorkspace, ptr %84, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !17
  %87 = load i32, ptr %5, align 4, !tbaa !13
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds double, ptr %86, i64 %88
  %90 = load double, ptr %89, align 8, !tbaa !15
  %91 = fmul double %90, %83
  store double %91, ptr %89, align 8, !tbaa !15
  br label %92

92:                                               ; preds = %82
  %93 = load i32, ptr %4, align 4, !tbaa !13
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %4, align 4, !tbaa !13
  %95 = load i32, ptr %5, align 4, !tbaa !13
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %5, align 4, !tbaa !13
  br label %76, !llvm.loop !25

97:                                               ; preds = %76
  br label %98

98:                                               ; preds = %97, %53
  %99 = load i32, ptr %3, align 4, !tbaa !13
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %3, align 4, !tbaa !13
  br label %10, !llvm.loop !26

101:                                              ; preds = %10
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !12, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !11, i64 168, !6, i64 176, !11, i64 184, !11, i64 188, !11, i64 192, !12, i64 200, !6, i64 208, !6, i64 216, !11, i64 224, !6, i64 232}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 12}
!15 = !{!12, !12, i64 0}
!16 = !{!10, !11, i64 8}
!17 = !{!10, !6, i64 24}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!10, !6, i64 208}
!21 = !{!22, !12, i64 16}
!22 = !{!"", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !11, i64 40, !11, i64 44, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88}
!23 = !{!10, !6, i64 64}
!24 = !{!10, !6, i64 72}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19}


; 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 nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: nofree nounwind memory(readwrite, inaccessiblemem: write) uwtable
define dso_local void @normalize_M(ptr nocapture noundef readonly %0) local_unnamed_addr #2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 16
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 12
  %5 = load i32, ptr %4, align 4, !tbaa !12
  %6 = icmp slt i32 %3, %5
  br i1 %6, label %.preheader.lr.ph, label %._crit_edge44

.preheader.lr.ph:                                 ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = getelementptr inbounds i8, ptr %0, i64 208
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  %11 = getelementptr inbounds i8, ptr %0, i64 64
  %12 = sext i32 %3 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %.loopexit
  %indvars.iv52 = phi i64 [ %12, %.preheader.lr.ph ], [ %indvars.iv.next53, %.loopexit ]
  %.02943 = phi i32 [ 0, %.preheader.lr.ph ], [ %.3, %.loopexit ]
  %13 = load i32, ptr %7, align 8, !tbaa !13
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %15 = load ptr, ptr %8, align 8, !tbaa !14
  %16 = sext i32 %.02943 to i64
  %xtraiter = and i32 %13, 3
  %17 = icmp ult i32 %13, 4
  br i1 %17, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i32 %13, 2147483644
  %invariant.gep = getelementptr i8, ptr %15, i64 8
  %invariant.gep63 = getelementptr i8, ptr %15, i64 16
  %invariant.gep65 = getelementptr i8, ptr %15, i64 24
  br label %18

18:                                               ; preds = %18, %.lr.ph.new
  %indvars.iv = phi i64 [ %16, %.lr.ph.new ], [ %indvars.iv.next.3, %18 ]
  %.035 = phi double [ 0.000000e+00, %.lr.ph.new ], [ %27, %18 ]
  %niter = phi i32 [ 0, %.lr.ph.new ], [ %niter.next.3, %18 ]
  %19 = getelementptr inbounds double, ptr %15, i64 %indvars.iv
  %20 = load double, ptr %19, align 8, !tbaa !15
  %21 = tail call double @llvm.fmuladd.f64(double %20, double %20, double %.035)
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv
  %22 = load double, ptr %gep, align 8, !tbaa !15
  %23 = tail call double @llvm.fmuladd.f64(double %22, double %22, double %21)
  %gep64 = getelementptr double, ptr %invariant.gep63, i64 %indvars.iv
  %24 = load double, ptr %gep64, align 8, !tbaa !15
  %25 = tail call double @llvm.fmuladd.f64(double %24, double %24, double %23)
  %gep66 = getelementptr double, ptr %invariant.gep65, i64 %indvars.iv
  %26 = load double, ptr %gep66, align 8, !tbaa !15
  %27 = tail call double @llvm.fmuladd.f64(double %26, double %26, double %25)
  %indvars.iv.next.3 = add nsw i64 %indvars.iv, 4
  %niter.next.3 = add i32 %niter, 4
  %niter.ncmp.3 = icmp eq i32 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %18, !llvm.loop !16

._crit_edge.loopexit.unr-lcssa:                   ; preds = %18, %.lr.ph
  %.lcssa.ph = phi double [ poison, %.lr.ph ], [ %27, %18 ]
  %indvars.iv.unr = phi i64 [ %16, %.lr.ph ], [ %indvars.iv.next.3, %18 ]
  %.035.unr = phi double [ 0.000000e+00, %.lr.ph ], [ %27, %18 ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.035.epil = phi double [ %30, %.epil.preheader ], [ %.035.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %28 = getelementptr inbounds double, ptr %15, i64 %indvars.iv.epil
  %29 = load double, ptr %28, align 8, !tbaa !15
  %30 = tail call double @llvm.fmuladd.f64(double %29, double %29, double %.035.epil)
  %indvars.iv.next.epil = add nsw i64 %indvars.iv.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_edge.loopexit, label %.epil.preheader, !llvm.loop !18

._crit_edge.loopexit:                             ; preds = %.epil.preheader, %._crit_edge.loopexit.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %30, %.epil.preheader ]
  %31 = add i32 %.02943, %13
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %.1.lcssa = phi i32 [ %.02943, %.preheader ], [ %31, %._crit_edge.loopexit ]
  %.0.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %.lcssa, %._crit_edge.loopexit ]
  %32 = load ptr, ptr %9, align 8, !tbaa !20
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %34 = load double, ptr %33, align 8, !tbaa !21
  %35 = fcmp olt double %.0.lcssa, %34
  br i1 %35, label %36, label %39

36:                                               ; preds = %._crit_edge
  %37 = load ptr, ptr %11, align 8, !tbaa !23
  %38 = getelementptr inbounds i32, ptr %37, i64 %indvars.iv52
  store i32 4, ptr %38, align 4, !tbaa !24
  br label %.loopexit

39:                                               ; preds = %._crit_edge
  %40 = tail call double @sqrt(double noundef %.0.lcssa) #3
  %41 = fdiv double 1.000000e+00, %40
  %42 = load ptr, ptr %10, align 8, !tbaa !25
  %43 = getelementptr inbounds double, ptr %42, i64 %indvars.iv52
  store double %41, ptr %43, align 8, !tbaa !15
  %44 = load i32, ptr %7, align 8, !tbaa !13
  %45 = sub i32 %.1.lcssa, %44
  %46 = icmp sgt i32 %44, 0
  br i1 %46, label %.lr.ph40, label %.loopexit

.lr.ph40:                                         ; preds = %39
  %47 = load ptr, ptr %8, align 8, !tbaa !14
  %48 = sext i32 %45 to i64
  %49 = zext nneg i32 %44 to i64
  %min.iters.check = icmp ult i32 %44, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph40
  %n.vec = and i64 %49, 2147483644
  %ind.end = add nsw i64 %n.vec, %48
  %ind.end55 = trunc nuw nsw i64 %n.vec to i32
  %broadcast.splatinsert = insertelement <2 x double> poison, double %41, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %invariant.gep67 = getelementptr double, ptr %47, i64 %48
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %gep68 = getelementptr double, ptr %invariant.gep67, i64 %index
  %50 = getelementptr inbounds i8, ptr %gep68, i64 16
  %wide.load = load <2 x double>, ptr %gep68, align 8, !tbaa !15
  %wide.load57 = load <2 x double>, ptr %50, align 8, !tbaa !15
  %51 = fmul <2 x double> %broadcast.splat, %wide.load
  %52 = fmul <2 x double> %broadcast.splat, %wide.load57
  store <2 x double> %51, ptr %gep68, align 8, !tbaa !15
  store <2 x double> %52, ptr %50, align 8, !tbaa !15
  %index.next = add nuw i64 %index, 4
  %53 = icmp eq i64 %index.next, %n.vec
  br i1 %53, label %middle.block, label %vector.body, !llvm.loop !26

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %49
  br i1 %cmp.n, label %.loopexit.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph40
  %indvars.iv48.ph = phi i64 [ %48, %.lr.ph40 ], [ %ind.end, %middle.block ]
  %.13137.ph = phi i32 [ 0, %.lr.ph40 ], [ %ind.end55, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv48 = phi i64 [ %indvars.iv.next49, %scalar.ph ], [ %indvars.iv48.ph, %scalar.ph.preheader ]
  %.13137 = phi i32 [ %57, %scalar.ph ], [ %.13137.ph, %scalar.ph.preheader ]
  %54 = getelementptr inbounds double, ptr %47, i64 %indvars.iv48
  %55 = load double, ptr %54, align 8, !tbaa !15
  %56 = fmul double %41, %55
  store double %56, ptr %54, align 8, !tbaa !15
  %57 = add nuw nsw i32 %.13137, 1
  %indvars.iv.next49 = add nsw i64 %indvars.iv48, 1
  %exitcond51.not = icmp eq i32 %57, %44
  br i1 %exitcond51.not, label %.loopexit.loopexit, label %scalar.ph, !llvm.loop !29

.loopexit.loopexit:                               ; preds = %scalar.ph, %middle.block
  %indvars.iv.next49.lcssa = phi i64 [ %ind.end, %middle.block ], [ %indvars.iv.next49, %scalar.ph ]
  %58 = trunc nsw i64 %indvars.iv.next49.lcssa to i32
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %39, %36
  %.3 = phi i32 [ %.1.lcssa, %36 ], [ %45, %39 ], [ %58, %.loopexit.loopexit ]
  %indvars.iv.next53 = add nsw i64 %indvars.iv52, 1
  %59 = load i32, ptr %4, align 4, !tbaa !12
  %60 = sext i32 %59 to i64
  %61 = icmp slt i64 %indvars.iv.next53, %60
  br i1 %61, label %.preheader, label %._crit_edge44, !llvm.loop !30

._crit_edge44:                                    ; preds = %.loopexit, %1
  ret void
}

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nofree nounwind memory(readwrite, inaccessiblemem: write) 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 = { 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, !10, i64 16}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !11, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !10, i64 168, !7, i64 176, !10, i64 184, !10, i64 188, !10, i64 192, !11, i64 200, !7, i64 208, !7, i64 216, !10, i64 224, !7, i64 232}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !10, i64 12}
!13 = !{!6, !10, i64 8}
!14 = !{!6, !7, i64 24}
!15 = !{!11, !11, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = !{!6, !7, i64 208}
!21 = !{!22, !11, i64 16}
!22 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !10, i64 40, !10, i64 44, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88}
!23 = !{!6, !7, i64 64}
!24 = !{!10, !10, i64 0}
!25 = !{!6, !7, i64 72}
!26 = distinct !{!26, !17, !27, !28}
!27 = !{!"llvm.loop.isvectorized", i32 1}
!28 = !{!"llvm.loop.unroll.runtime.disable"}
!29 = distinct !{!29, !17, !28, !27}
!30 = distinct !{!30, !17}


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