; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (optimization)

; 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.alglib_impl::precbuflowrank" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

; 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

declare void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl26applylowrankpreconditionerEPNS_9ae_vectorEPNS_14precbuflowrankEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %12, i32 0, i32 0
  %14 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %14, ptr %7, align 8, !tbaa !16
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %15, i32 0, i32 1
  %17 = load i64, ptr %16, align 8, !tbaa !17
  store i64 %17, ptr %8, align 8, !tbaa !16
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %18, i32 0, i32 7
  %20 = load i64, ptr %7, align 8, !tbaa !16
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %20, ptr noundef %21)
  store i64 0, ptr %10, align 8, !tbaa !16
  br label %22

22:                                               ; preds = %48, %3
  %23 = load i64, ptr %10, align 8, !tbaa !16
  %24 = load i64, ptr %7, align 8, !tbaa !16
  %25 = sub nsw i64 %24, 1
  %26 = icmp sle i64 %23, %25
  br i1 %26, label %27, label %51

27:                                               ; preds = %22
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %28, i32 0, i32 2
  %30 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %31 = load ptr, ptr %30, align 8, !tbaa !18
  %32 = load i64, ptr %10, align 8, !tbaa !16
  %33 = getelementptr inbounds double, ptr %31, i64 %32
  %34 = load double, ptr %33, align 8, !tbaa !19
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %37 = load ptr, ptr %36, align 8, !tbaa !18
  %38 = load i64, ptr %10, align 8, !tbaa !16
  %39 = getelementptr inbounds double, ptr %37, i64 %38
  %40 = load double, ptr %39, align 8, !tbaa !19
  %41 = fmul double %34, %40
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %42, i32 0, i32 7
  %44 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %45 = load ptr, ptr %44, align 8, !tbaa !18
  %46 = load i64, ptr %10, align 8, !tbaa !16
  %47 = getelementptr inbounds double, ptr %45, i64 %46
  store double %41, ptr %47, align 8, !tbaa !19
  br label %48

48:                                               ; preds = %27
  %49 = load i64, ptr %10, align 8, !tbaa !16
  %50 = add nsw i64 %49, 1
  store i64 %50, ptr %10, align 8, !tbaa !16
  br label %22, !llvm.loop !21

51:                                               ; preds = %22
  store i64 0, ptr %9, align 8, !tbaa !16
  br label %52

52:                                               ; preds = %122, %51
  %53 = load i64, ptr %9, align 8, !tbaa !16
  %54 = load i64, ptr %8, align 8, !tbaa !16
  %55 = sub nsw i64 %54, 1
  %56 = icmp sle i64 %53, %55
  br i1 %56, label %57, label %125

57:                                               ; preds = %52
  store double 0.000000e+00, ptr %11, align 8, !tbaa !19
  store i64 0, ptr %10, align 8, !tbaa !16
  br label %58

58:                                               ; preds = %82, %57
  %59 = load i64, ptr %10, align 8, !tbaa !16
  %60 = load i64, ptr %7, align 8, !tbaa !16
  %61 = sub nsw i64 %60, 1
  %62 = icmp sle i64 %59, %61
  br i1 %62, label %63, label %85

63:                                               ; preds = %58
  %64 = load double, ptr %11, align 8, !tbaa !19
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %65, i32 0, i32 3
  %67 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %66, i32 0, i32 6
  %68 = load ptr, ptr %67, align 8, !tbaa !18
  %69 = load i64, ptr %9, align 8, !tbaa !16
  %70 = getelementptr inbounds ptr, ptr %68, i64 %69
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %72 = load i64, ptr %10, align 8, !tbaa !16
  %73 = getelementptr inbounds double, ptr %71, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !19
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %75, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !18
  %78 = load i64, ptr %10, align 8, !tbaa !16
  %79 = getelementptr inbounds double, ptr %77, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !19
  %81 = call double @llvm.fmuladd.f64(double %74, double %80, double %64)
  store double %81, ptr %11, align 8, !tbaa !19
  br label %82

82:                                               ; preds = %63
  %83 = load i64, ptr %10, align 8, !tbaa !16
  %84 = add nsw i64 %83, 1
  store i64 %84, ptr %10, align 8, !tbaa !16
  br label %58, !llvm.loop !23

85:                                               ; preds = %58
  store i64 0, ptr %10, align 8, !tbaa !16
  br label %86

86:                                               ; preds = %118, %85
  %87 = load i64, ptr %10, align 8, !tbaa !16
  %88 = load i64, ptr %7, align 8, !tbaa !16
  %89 = sub nsw i64 %88, 1
  %90 = icmp sle i64 %87, %89
  br i1 %90, label %91, label %121

91:                                               ; preds = %86
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %92, i32 0, i32 7
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !18
  %96 = load i64, ptr %10, align 8, !tbaa !16
  %97 = getelementptr inbounds double, ptr %95, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !19
  %99 = load double, ptr %11, align 8, !tbaa !19
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %100, i32 0, i32 3
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %101, i32 0, i32 6
  %103 = load ptr, ptr %102, align 8, !tbaa !18
  %104 = load i64, ptr %9, align 8, !tbaa !16
  %105 = getelementptr inbounds ptr, ptr %103, i64 %104
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = load i64, ptr %10, align 8, !tbaa !16
  %108 = getelementptr inbounds double, ptr %106, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !19
  %110 = fneg double %99
  %111 = call double @llvm.fmuladd.f64(double %110, double %109, double %98)
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %112, i32 0, i32 7
  %114 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %113, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !18
  %116 = load i64, ptr %10, align 8, !tbaa !16
  %117 = getelementptr inbounds double, ptr %115, i64 %116
  store double %111, ptr %117, align 8, !tbaa !19
  br label %118

118:                                              ; preds = %91
  %119 = load i64, ptr %10, align 8, !tbaa !16
  %120 = add nsw i64 %119, 1
  store i64 %120, ptr %10, align 8, !tbaa !16
  br label %86, !llvm.loop !24

121:                                              ; preds = %86
  br label %122

122:                                              ; preds = %121
  %123 = load i64, ptr %9, align 8, !tbaa !16
  %124 = add nsw i64 %123, 1
  store i64 %124, ptr %9, align 8, !tbaa !16
  br label %52, !llvm.loop !25

125:                                              ; preds = %52
  store i64 0, ptr %9, align 8, !tbaa !16
  br label %126

126:                                              ; preds = %144, %125
  %127 = load i64, ptr %9, align 8, !tbaa !16
  %128 = load i64, ptr %7, align 8, !tbaa !16
  %129 = sub nsw i64 %128, 1
  %130 = icmp sle i64 %127, %129
  br i1 %130, label %131, label %147

131:                                              ; preds = %126
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.alglib_impl::precbuflowrank", ptr %132, i32 0, i32 7
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %133, i32 0, i32 4
  %135 = load ptr, ptr %134, align 8, !tbaa !18
  %136 = load i64, ptr %9, align 8, !tbaa !16
  %137 = getelementptr inbounds double, ptr %135, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !19
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %139, i32 0, i32 4
  %141 = load ptr, ptr %140, align 8, !tbaa !18
  %142 = load i64, ptr %9, align 8, !tbaa !16
  %143 = getelementptr inbounds double, ptr %141, i64 %142
  store double %138, ptr %143, align 8, !tbaa !19
  br label %144

144:                                              ; preds = %131
  %145 = load i64, ptr %9, align 8, !tbaa !16
  %146 = add nsw i64 %145, 1
  store i64 %146, ptr %9, align 8, !tbaa !16
  br label %126, !llvm.loop !26

147:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !11, i64 0, !11, i64 8, !12, i64 16, !15, i64 80, !12, i64 160, !15, i64 224, !15, i64 304, !12, i64 384}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!16 = !{!11, !11, i64 0}
!17 = !{!10, !11, i64 8}
!18 = !{!7, !7, 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}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !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"

declare void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr 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: mustprogress uwtable
define dso_local void @_ZN11alglib_impl26applylowrankpreconditionerEPNS_9ae_vectorEPNS_14precbuflowrankEPNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = load i64, ptr %1, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %1, i64 8
  %6 = load i64, ptr %5, align 8, !tbaa !15
  %7 = getelementptr inbounds i8, ptr %1, i64 384
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %4, ptr noundef %2)
  %.not.not54 = icmp sgt i64 %4, 0
  br i1 %.not.not54, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %8 = getelementptr inbounds i8, ptr %1, i64 72
  %9 = getelementptr inbounds i8, ptr %0, i64 56
  %10 = getelementptr inbounds i8, ptr %1, i64 440
  %11 = add nsw i64 %4, -1
  %xtraiter = and i64 %4, 1
  %12 = icmp eq i64 %11, 0
  br i1 %12, label %.preheader53.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %4, 9223372036854775806
  br label %92

.preheader53.unr-lcssa:                           ; preds = %92, %.lr.ph
  %.04355.unr = phi i64 [ 0, %.lr.ph ], [ %112, %92 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader53, label %.preheader53.epilog-lcssa

.preheader53.epilog-lcssa:                        ; preds = %.preheader53.unr-lcssa
  %13 = load ptr, ptr %8, align 8, !tbaa !16
  %14 = getelementptr inbounds double, ptr %13, i64 %.04355.unr
  %15 = load double, ptr %14, align 8, !tbaa !17
  %16 = load ptr, ptr %9, align 8, !tbaa !16
  %17 = getelementptr inbounds double, ptr %16, i64 %.04355.unr
  %18 = load double, ptr %17, align 8, !tbaa !17
  %19 = fmul double %15, %18
  %20 = load ptr, ptr %10, align 8, !tbaa !16
  %21 = getelementptr inbounds double, ptr %20, i64 %.04355.unr
  store double %19, ptr %21, align 8, !tbaa !17
  br label %.preheader53

.preheader53:                                     ; preds = %.preheader53.unr-lcssa, %.preheader53.epilog-lcssa
  %.not.not4763 = icmp sgt i64 %6, 0
  br i1 %.not.not4763, label %.preheader52.lr.ph, label %.preheader

.preheader52.lr.ph:                               ; preds = %.preheader53
  %22 = getelementptr inbounds i8, ptr %1, i64 152
  %23 = getelementptr inbounds i8, ptr %0, i64 56
  %24 = getelementptr inbounds i8, ptr %1, i64 440
  br i1 %.not.not54, label %.preheader52.us.us.preheader, label %._crit_edge

.preheader52.us.us.preheader:                     ; preds = %.preheader52.lr.ph
  %xtraiter84 = and i64 %4, 3
  %25 = icmp ult i64 %4, 4
  %unroll_iter87 = and i64 %4, 9223372036854775804
  %lcmp.mod85.not = icmp eq i64 %xtraiter84, 0
  %xtraiter90 = and i64 %4, 1
  %26 = icmp eq i64 %11, 0
  %unroll_iter93 = and i64 %4, 9223372036854775806
  %lcmp.mod92.not = icmp eq i64 %xtraiter90, 0
  br label %.preheader52.us.us

.preheader52.us.us:                               ; preds = %.preheader52.us.us.preheader, %._crit_edge.us.us
  %.04464.us.us = phi i64 [ %91, %._crit_edge.us.us ], [ 0, %.preheader52.us.us.preheader ]
  %27 = load ptr, ptr %22, align 8, !tbaa !16
  %28 = getelementptr inbounds ptr, ptr %27, i64 %.04464.us.us
  %29 = load ptr, ptr %28, align 8, !tbaa !19
  %30 = load ptr, ptr %23, align 8, !tbaa !16
  br i1 %25, label %..preheader51_crit_edge.us.us.unr-lcssa, label %.preheader52.us.us.new

..preheader51_crit_edge.us.us.new:                ; preds = %..preheader51_crit_edge.us.us, %..preheader51_crit_edge.us.us.new
  %.261.us.us = phi i64 [ %50, %..preheader51_crit_edge.us.us.new ], [ 0, %..preheader51_crit_edge.us.us ]
  %niter94 = phi i64 [ %niter94.next.1, %..preheader51_crit_edge.us.us.new ], [ 0, %..preheader51_crit_edge.us.us ]
  %31 = load ptr, ptr %24, align 8, !tbaa !16
  %32 = getelementptr inbounds double, ptr %31, i64 %.261.us.us
  %33 = load double, ptr %32, align 8, !tbaa !17
  %34 = load ptr, ptr %22, align 8, !tbaa !16
  %35 = getelementptr inbounds ptr, ptr %34, i64 %.04464.us.us
  %36 = load ptr, ptr %35, align 8, !tbaa !19
  %37 = getelementptr inbounds double, ptr %36, i64 %.261.us.us
  %38 = load double, ptr %37, align 8, !tbaa !17
  %39 = tail call double @llvm.fmuladd.f64(double %81, double %38, double %33)
  store double %39, ptr %32, align 8, !tbaa !17
  %40 = or disjoint i64 %.261.us.us, 1
  %41 = load ptr, ptr %24, align 8, !tbaa !16
  %42 = getelementptr inbounds double, ptr %41, i64 %40
  %43 = load double, ptr %42, align 8, !tbaa !17
  %44 = load ptr, ptr %22, align 8, !tbaa !16
  %45 = getelementptr inbounds ptr, ptr %44, i64 %.04464.us.us
  %46 = load ptr, ptr %45, align 8, !tbaa !19
  %47 = getelementptr inbounds double, ptr %46, i64 %40
  %48 = load double, ptr %47, align 8, !tbaa !17
  %49 = tail call double @llvm.fmuladd.f64(double %81, double %48, double %43)
  store double %49, ptr %42, align 8, !tbaa !17
  %50 = add nuw nsw i64 %.261.us.us, 2
  %niter94.next.1 = add i64 %niter94, 2
  %niter94.ncmp.1 = icmp eq i64 %niter94.next.1, %unroll_iter93
  br i1 %niter94.ncmp.1, label %._crit_edge.us.us.unr-lcssa, label %..preheader51_crit_edge.us.us.new, !llvm.loop !20

.preheader52.us.us.new:                           ; preds = %.preheader52.us.us, %.preheader52.us.us.new
  %.058.us.us = phi double [ %73, %.preheader52.us.us.new ], [ 0.000000e+00, %.preheader52.us.us ]
  %.157.us.us = phi i64 [ %74, %.preheader52.us.us.new ], [ 0, %.preheader52.us.us ]
  %niter88 = phi i64 [ %niter88.next.3, %.preheader52.us.us.new ], [ 0, %.preheader52.us.us ]
  %51 = getelementptr inbounds double, ptr %29, i64 %.157.us.us
  %52 = load double, ptr %51, align 8, !tbaa !17
  %53 = getelementptr inbounds double, ptr %30, i64 %.157.us.us
  %54 = load double, ptr %53, align 8, !tbaa !17
  %55 = tail call double @llvm.fmuladd.f64(double %52, double %54, double %.058.us.us)
  %56 = or disjoint i64 %.157.us.us, 1
  %57 = getelementptr inbounds double, ptr %29, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !17
  %59 = getelementptr inbounds double, ptr %30, i64 %56
  %60 = load double, ptr %59, align 8, !tbaa !17
  %61 = tail call double @llvm.fmuladd.f64(double %58, double %60, double %55)
  %62 = or disjoint i64 %.157.us.us, 2
  %63 = getelementptr inbounds double, ptr %29, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !17
  %65 = getelementptr inbounds double, ptr %30, i64 %62
  %66 = load double, ptr %65, align 8, !tbaa !17
  %67 = tail call double @llvm.fmuladd.f64(double %64, double %66, double %61)
  %68 = or disjoint i64 %.157.us.us, 3
  %69 = getelementptr inbounds double, ptr %29, i64 %68
  %70 = load double, ptr %69, align 8, !tbaa !17
  %71 = getelementptr inbounds double, ptr %30, i64 %68
  %72 = load double, ptr %71, align 8, !tbaa !17
  %73 = tail call double @llvm.fmuladd.f64(double %70, double %72, double %67)
  %74 = add nuw nsw i64 %.157.us.us, 4
  %niter88.next.3 = add i64 %niter88, 4
  %niter88.ncmp.3 = icmp eq i64 %niter88.next.3, %unroll_iter87
  br i1 %niter88.ncmp.3, label %..preheader51_crit_edge.us.us.unr-lcssa, label %.preheader52.us.us.new, !llvm.loop !22

..preheader51_crit_edge.us.us.unr-lcssa:          ; preds = %.preheader52.us.us.new, %.preheader52.us.us
  %.lcssa.ph = phi double [ poison, %.preheader52.us.us ], [ %73, %.preheader52.us.us.new ]
  %.058.us.us.unr = phi double [ 0.000000e+00, %.preheader52.us.us ], [ %73, %.preheader52.us.us.new ]
  %.157.us.us.unr = phi i64 [ 0, %.preheader52.us.us ], [ %74, %.preheader52.us.us.new ]
  br i1 %lcmp.mod85.not, label %..preheader51_crit_edge.us.us, label %.epil.preheader83

.epil.preheader83:                                ; preds = %..preheader51_crit_edge.us.us.unr-lcssa, %.epil.preheader83
  %.058.us.us.epil = phi double [ %79, %.epil.preheader83 ], [ %.058.us.us.unr, %..preheader51_crit_edge.us.us.unr-lcssa ]
  %.157.us.us.epil = phi i64 [ %80, %.epil.preheader83 ], [ %.157.us.us.unr, %..preheader51_crit_edge.us.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader83 ], [ 0, %..preheader51_crit_edge.us.us.unr-lcssa ]
  %75 = getelementptr inbounds double, ptr %29, i64 %.157.us.us.epil
  %76 = load double, ptr %75, align 8, !tbaa !17
  %77 = getelementptr inbounds double, ptr %30, i64 %.157.us.us.epil
  %78 = load double, ptr %77, align 8, !tbaa !17
  %79 = tail call double @llvm.fmuladd.f64(double %76, double %78, double %.058.us.us.epil)
  %80 = add nuw nsw i64 %.157.us.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter84
  br i1 %epil.iter.cmp.not, label %..preheader51_crit_edge.us.us, label %.epil.preheader83, !llvm.loop !23

..preheader51_crit_edge.us.us:                    ; preds = %.epil.preheader83, %..preheader51_crit_edge.us.us.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %..preheader51_crit_edge.us.us.unr-lcssa ], [ %79, %.epil.preheader83 ]
  %81 = fneg double %.lcssa
  br i1 %26, label %._crit_edge.us.us.unr-lcssa, label %..preheader51_crit_edge.us.us.new

._crit_edge.us.us.unr-lcssa:                      ; preds = %..preheader51_crit_edge.us.us.new, %..preheader51_crit_edge.us.us
  %.261.us.us.unr = phi i64 [ 0, %..preheader51_crit_edge.us.us ], [ %50, %..preheader51_crit_edge.us.us.new ]
  br i1 %lcmp.mod92.not, label %._crit_edge.us.us, label %._crit_edge.us.us.epilog-lcssa

._crit_edge.us.us.epilog-lcssa:                   ; preds = %._crit_edge.us.us.unr-lcssa
  %82 = load ptr, ptr %24, align 8, !tbaa !16
  %83 = getelementptr inbounds double, ptr %82, i64 %.261.us.us.unr
  %84 = load double, ptr %83, align 8, !tbaa !17
  %85 = load ptr, ptr %22, align 8, !tbaa !16
  %86 = getelementptr inbounds ptr, ptr %85, i64 %.04464.us.us
  %87 = load ptr, ptr %86, align 8, !tbaa !19
  %88 = getelementptr inbounds double, ptr %87, i64 %.261.us.us.unr
  %89 = load double, ptr %88, align 8, !tbaa !17
  %90 = tail call double @llvm.fmuladd.f64(double %81, double %89, double %84)
  store double %90, ptr %83, align 8, !tbaa !17
  br label %._crit_edge.us.us

._crit_edge.us.us:                                ; preds = %._crit_edge.us.us.unr-lcssa, %._crit_edge.us.us.epilog-lcssa
  %91 = add nuw nsw i64 %.04464.us.us, 1
  %exitcond80.not = icmp eq i64 %91, %6
  br i1 %exitcond80.not, label %.preheader, label %.preheader52.us.us, !llvm.loop !25

92:                                               ; preds = %92, %.lr.ph.new
  %.04355 = phi i64 [ 0, %.lr.ph.new ], [ %112, %92 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %92 ]
  %93 = load ptr, ptr %8, align 8, !tbaa !16
  %94 = getelementptr inbounds double, ptr %93, i64 %.04355
  %95 = load double, ptr %94, align 8, !tbaa !17
  %96 = load ptr, ptr %9, align 8, !tbaa !16
  %97 = getelementptr inbounds double, ptr %96, i64 %.04355
  %98 = load double, ptr %97, align 8, !tbaa !17
  %99 = fmul double %95, %98
  %100 = load ptr, ptr %10, align 8, !tbaa !16
  %101 = getelementptr inbounds double, ptr %100, i64 %.04355
  store double %99, ptr %101, align 8, !tbaa !17
  %102 = or disjoint i64 %.04355, 1
  %103 = load ptr, ptr %8, align 8, !tbaa !16
  %104 = getelementptr inbounds double, ptr %103, i64 %102
  %105 = load double, ptr %104, align 8, !tbaa !17
  %106 = load ptr, ptr %9, align 8, !tbaa !16
  %107 = getelementptr inbounds double, ptr %106, i64 %102
  %108 = load double, ptr %107, align 8, !tbaa !17
  %109 = fmul double %105, %108
  %110 = load ptr, ptr %10, align 8, !tbaa !16
  %111 = getelementptr inbounds double, ptr %110, i64 %102
  store double %109, ptr %111, align 8, !tbaa !17
  %112 = add nuw nsw i64 %.04355, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader53.unr-lcssa, label %92, !llvm.loop !26

.preheader:                                       ; preds = %._crit_edge.us.us, %.preheader53
  br i1 %.not.not54, label %.lr.ph76, label %._crit_edge

.lr.ph76:                                         ; preds = %.preheader
  %113 = getelementptr inbounds i8, ptr %1, i64 440
  %114 = getelementptr inbounds i8, ptr %0, i64 56
  %xtraiter96 = and i64 %4, 3
  %115 = icmp ult i64 %4, 4
  br i1 %115, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph76.new

.lr.ph76.new:                                     ; preds = %.lr.ph76
  %unroll_iter99 = and i64 %4, 9223372036854775804
  br label %116

116:                                              ; preds = %116, %.lr.ph76.new
  %.14575 = phi i64 [ 0, %.lr.ph76.new ], [ %140, %116 ]
  %niter100 = phi i64 [ 0, %.lr.ph76.new ], [ %niter100.next.3, %116 ]
  %117 = load ptr, ptr %113, align 8, !tbaa !16
  %118 = getelementptr inbounds double, ptr %117, i64 %.14575
  %119 = load double, ptr %118, align 8, !tbaa !17
  %120 = load ptr, ptr %114, align 8, !tbaa !16
  %121 = getelementptr inbounds double, ptr %120, i64 %.14575
  store double %119, ptr %121, align 8, !tbaa !17
  %122 = or disjoint i64 %.14575, 1
  %123 = load ptr, ptr %113, align 8, !tbaa !16
  %124 = getelementptr inbounds double, ptr %123, i64 %122
  %125 = load double, ptr %124, align 8, !tbaa !17
  %126 = load ptr, ptr %114, align 8, !tbaa !16
  %127 = getelementptr inbounds double, ptr %126, i64 %122
  store double %125, ptr %127, align 8, !tbaa !17
  %128 = or disjoint i64 %.14575, 2
  %129 = load ptr, ptr %113, align 8, !tbaa !16
  %130 = getelementptr inbounds double, ptr %129, i64 %128
  %131 = load double, ptr %130, align 8, !tbaa !17
  %132 = load ptr, ptr %114, align 8, !tbaa !16
  %133 = getelementptr inbounds double, ptr %132, i64 %128
  store double %131, ptr %133, align 8, !tbaa !17
  %134 = or disjoint i64 %.14575, 3
  %135 = load ptr, ptr %113, align 8, !tbaa !16
  %136 = getelementptr inbounds double, ptr %135, i64 %134
  %137 = load double, ptr %136, align 8, !tbaa !17
  %138 = load ptr, ptr %114, align 8, !tbaa !16
  %139 = getelementptr inbounds double, ptr %138, i64 %134
  store double %137, ptr %139, align 8, !tbaa !17
  %140 = add nuw nsw i64 %.14575, 4
  %niter100.next.3 = add i64 %niter100, 4
  %niter100.ncmp.3 = icmp eq i64 %niter100.next.3, %unroll_iter99
  br i1 %niter100.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %116, !llvm.loop !27

._crit_edge.loopexit.unr-lcssa:                   ; preds = %116, %.lr.ph76
  %.14575.unr = phi i64 [ 0, %.lr.ph76 ], [ %140, %116 ]
  %lcmp.mod98.not = icmp eq i64 %xtraiter96, 0
  br i1 %lcmp.mod98.not, label %._crit_edge, label %.epil.preheader95

.epil.preheader95:                                ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader95
  %.14575.epil = phi i64 [ %146, %.epil.preheader95 ], [ %.14575.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter97 = phi i64 [ %epil.iter97.next, %.epil.preheader95 ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %141 = load ptr, ptr %113, align 8, !tbaa !16
  %142 = getelementptr inbounds double, ptr %141, i64 %.14575.epil
  %143 = load double, ptr %142, align 8, !tbaa !17
  %144 = load ptr, ptr %114, align 8, !tbaa !16
  %145 = getelementptr inbounds double, ptr %144, i64 %.14575.epil
  store double %143, ptr %145, align 8, !tbaa !17
  %146 = add nuw nsw i64 %.14575.epil, 1
  %epil.iter97.next = add i64 %epil.iter97, 1
  %epil.iter97.cmp.not = icmp eq i64 %epil.iter97.next, %xtraiter96
  br i1 %epil.iter97.cmp.not, label %._crit_edge, label %.epil.preheader95, !llvm.loop !28

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader95, %3, %.preheader52.lr.ph, %.preheader
  ret void
}

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

!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, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !7, i64 0, !7, i64 8, !10, i64 16, !14, i64 80, !10, i64 160, !14, i64 224, !14, i64 304, !10, i64 384}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 56}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !12, i64 40, !8, i64 72}
!15 = !{!6, !7, i64 8}
!16 = !{!8, !8, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !8, i64 0}
!19 = !{!13, !13, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !24}


; Effective O3 passes: ADCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass