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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl7lrbuildEPNS_9ae_matrixEllPlPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.alglib_impl::ae_frame", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca i64, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  store i64 %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %20 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %20, ptr noundef %15)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  %21 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 0, ptr %21, align 8, !tbaa !9
  %22 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_linearmodel_clearEPv(ptr noundef %22)
  %23 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15_lrreport_clearEPv(ptr noundef %23)
  %24 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 3, ptr noundef %24, i1 noundef zeroext true)
  %25 = load i64, ptr %9, align 8, !tbaa !9
  %26 = load i64, ptr %10, align 8, !tbaa !9
  %27 = add nsw i64 %26, 1
  %28 = icmp sle i64 %25, %27
  br i1 %28, label %32, label %29

29:                                               ; preds = %7
  %30 = load i64, ptr %10, align 8, !tbaa !9
  %31 = icmp slt i64 %30, 1
  br i1 %31, label %32, label %35

32:                                               ; preds = %29, %7
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 -1, ptr %33, align 8, !tbaa !9
  %34 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %34)
  store i32 1, ptr %19, align 4
  br label %102

35:                                               ; preds = %29
  %36 = load i64, ptr %9, align 8, !tbaa !9
  %37 = sub nsw i64 %36, 1
  %38 = add nsw i64 %37, 1
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %38, ptr noundef %39)
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %40

40:                                               ; preds = %50, %35
  %41 = load i64, ptr %17, align 8, !tbaa !9
  %42 = load i64, ptr %9, align 8, !tbaa !9
  %43 = sub nsw i64 %42, 1
  %44 = icmp sle i64 %41, %43
  br i1 %44, label %45, label %53

45:                                               ; preds = %40
  %46 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  %48 = load i64, ptr %17, align 8, !tbaa !9
  %49 = getelementptr inbounds double, ptr %47, i64 %48
  store double 1.000000e+00, ptr %49, align 8, !tbaa !12
  br label %50

50:                                               ; preds = %45
  %51 = load i64, ptr %17, align 8, !tbaa !9
  %52 = add nsw i64 %51, 1
  store i64 %52, ptr %17, align 8, !tbaa !9
  br label %40, !llvm.loop !14

53:                                               ; preds = %40
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = load i64, ptr %9, align 8, !tbaa !9
  %56 = load i64, ptr %10, align 8, !tbaa !9
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = load ptr, ptr %13, align 8, !tbaa !5
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl8lrbuildsEPNS_9ae_matrixEPNS_9ae_vectorEllPlPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr noundef %54, ptr noundef %16, i64 noundef %55, i64 noundef %56, ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %60)
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = load i64, ptr %61, align 8, !tbaa !9
  %63 = icmp slt i64 %62, 0
  br i1 %63, label %64, label %66

64:                                               ; preds = %53
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %65)
  store i32 1, ptr %19, align 4
  br label %102

66:                                               ; preds = %53
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::lrreport", ptr %67, i32 0, i32 1
  %69 = load double, ptr %68, align 8, !tbaa !16
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %69, ptr noundef %70)
  %72 = load i64, ptr %9, align 8, !tbaa !9
  %73 = sitofp i64 %72 to double
  %74 = fmul double %71, %73
  %75 = load i64, ptr %9, align 8, !tbaa !9
  %76 = load i64, ptr %10, align 8, !tbaa !9
  %77 = sub nsw i64 %75, %76
  %78 = sub nsw i64 %77, 1
  %79 = sitofp i64 %78 to double
  %80 = fdiv double %74, %79
  store double %80, ptr %18, align 8, !tbaa !12
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %81

81:                                               ; preds = %97, %66
  %82 = load i64, ptr %17, align 8, !tbaa !9
  %83 = load i64, ptr %10, align 8, !tbaa !9
  %84 = icmp sle i64 %82, %83
  br i1 %84, label %85, label %100

85:                                               ; preds = %81
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::lrreport", ptr %86, i32 0, i32 0
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %87, i32 0, i32 6
  %89 = load ptr, ptr %88, align 8, !tbaa !11
  %90 = load i64, ptr %17, align 8, !tbaa !9
  %91 = getelementptr inbounds ptr, ptr %89, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  %93 = getelementptr inbounds double, ptr %92, i64 0
  %94 = load i64, ptr %10, align 8, !tbaa !9
  %95 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %94)
  %96 = load double, ptr %18, align 8, !tbaa !12
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %93, i64 noundef 1, i64 noundef %95, double noundef %96)
  br label %97

97:                                               ; preds = %85
  %98 = load i64, ptr %17, align 8, !tbaa !9
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %17, align 8, !tbaa !9
  br label %81, !llvm.loop !22

100:                                              ; preds = %81
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %101)
  store i32 0, ptr %19, align 4
  br label %102

102:                                              ; preds = %100, %64, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  %103 = load i32, ptr %19, align 4
  switch i32 %103, label %105 [
    i32 0, label %104
    i32 1, label %104
  ]

104:                                              ; preds = %102, %102
  ret void

105:                                              ; preds = %102
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl8lrbuildsEPNS_9ae_matrixEPNS_9ae_vectorEllPlPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #3

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #3

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) #3

declare void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef, i64 noundef, i64 noundef, double noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18_linearmodel_clearEPv(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15_lrreport_clearEPv(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { "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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !13, i64 80}
!17 = !{!"_ZTSN11alglib_impl8lrreportE", !18, i64 0, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !10, i64 128, !21, i64 136}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !19, i64 32, !20, i64 40, !7, i64 72}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!21 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !19, i64 16, !20, i64 24, !7, i64 56}
!22 = distinct !{!22, !15}


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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl7lrbuildEPNS_9ae_matrixEllPlPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #2 {
  %8 = alloca %"struct.alglib_impl::ae_frame", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %6, ptr noundef nonnull %8)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  store i64 0, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_linearmodel_clearEPv(ptr noundef %4)
  call void @_ZN11alglib_impl15_lrreport_clearEPv(ptr noundef %5)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  %10 = add nsw i64 %2, 1
  %11 = icmp sge i64 %10, %1
  %12 = icmp slt i64 %2, 1
  %or.cond = or i1 %12, %11
  br i1 %or.cond, label %13, label %14

13:                                               ; preds = %7
  store i64 -1, ptr %3, align 8, !tbaa !5
  br label %._crit_edge46

14:                                               ; preds = %7
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %1, ptr noundef %6)
  %.not.not40 = icmp sgt i64 %1, 0
  br i1 %.not.not40, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %14
  %15 = getelementptr inbounds i8, ptr %9, i64 56
  %xtraiter = and i64 %1, 3
  %16 = icmp ult i64 %1, 4
  br i1 %16, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %1, 9223372036854775804
  br label %17

17:                                               ; preds = %17, %.lr.ph.new
  %.041 = phi i64 [ 0, %.lr.ph.new ], [ %29, %17 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %17 ]
  %18 = load ptr, ptr %15, align 8, !tbaa !9
  %19 = getelementptr inbounds double, ptr %18, i64 %.041
  store double 1.000000e+00, ptr %19, align 8, !tbaa !10
  %20 = or disjoint i64 %.041, 1
  %21 = load ptr, ptr %15, align 8, !tbaa !9
  %22 = getelementptr inbounds double, ptr %21, i64 %20
  store double 1.000000e+00, ptr %22, align 8, !tbaa !10
  %23 = or disjoint i64 %.041, 2
  %24 = load ptr, ptr %15, align 8, !tbaa !9
  %25 = getelementptr inbounds double, ptr %24, i64 %23
  store double 1.000000e+00, ptr %25, align 8, !tbaa !10
  %26 = or disjoint i64 %.041, 3
  %27 = load ptr, ptr %15, align 8, !tbaa !9
  %28 = getelementptr inbounds double, ptr %27, i64 %26
  store double 1.000000e+00, ptr %28, align 8, !tbaa !10
  %29 = add nuw nsw i64 %.041, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %17, !llvm.loop !12

._crit_edge.loopexit.unr-lcssa:                   ; preds = %17, %.lr.ph
  %.041.unr = phi i64 [ 0, %.lr.ph ], [ %29, %17 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.041.epil = phi i64 [ %32, %.epil.preheader ], [ %.041.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %30 = load ptr, ptr %15, align 8, !tbaa !9
  %31 = getelementptr inbounds double, ptr %30, i64 %.041.epil
  store double 1.000000e+00, ptr %31, align 8, !tbaa !10
  %32 = add nuw nsw i64 %.041.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !14

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %14
  call void @_ZN11alglib_impl8lrbuildsEPNS_9ae_matrixEPNS_9ae_vectorEllPlPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %9, i64 noundef %1, i64 noundef %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef %5, ptr noundef %6)
  %33 = load i64, ptr %3, align 8, !tbaa !5
  %34 = icmp slt i64 %33, 0
  br i1 %34, label %._crit_edge46, label %.lr.ph45

.lr.ph45:                                         ; preds = %._crit_edge
  %35 = getelementptr inbounds i8, ptr %5, i64 80
  %36 = load double, ptr %35, align 8, !tbaa !16
  %37 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %36, ptr noundef %6)
  %38 = sitofp i64 %1 to double
  %39 = fmul double %37, %38
  %40 = xor i64 %2, -1
  %41 = add i64 %40, %1
  %42 = sitofp i64 %41 to double
  %43 = fdiv double %39, %42
  %44 = getelementptr inbounds i8, ptr %5, i64 72
  br label %45

45:                                               ; preds = %.lr.ph45, %45
  %.143 = phi i64 [ 0, %.lr.ph45 ], [ %50, %45 ]
  %46 = load ptr, ptr %44, align 8, !tbaa !9
  %47 = getelementptr inbounds ptr, ptr %46, i64 %.143
  %48 = load ptr, ptr %47, align 8, !tbaa !23
  %49 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %2)
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %48, i64 noundef 1, i64 noundef %49, double noundef %43)
  %50 = add nuw i64 %.143, 1
  %exitcond48.not = icmp eq i64 %.143, %2
  br i1 %exitcond48.not, label %._crit_edge46, label %45, !llvm.loop !24

._crit_edge46:                                    ; preds = %45, %._crit_edge, %13
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %6)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl8lrbuildsEPNS_9ae_matrixEPNS_9ae_vectorEllPlPNS_11linearmodelEPNS_8lrreportEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #3

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef, i64 noundef, i64 noundef, double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18_linearmodel_clearEPv(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15_lrreport_clearEPv(ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { "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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = !{!17, !11, i64 80}
!17 = !{!"_ZTSN11alglib_impl8lrreportE", !18, i64 0, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !6, i64 128, !22, i64 136}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !19, i64 32, !20, i64 40, !7, i64 72}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !21, i64 0, !21, i64 8, !21, i64 16, !21, i64 24}
!21 = !{!"any pointer", !7, i64 0}
!22 = !{!"_ZTSN11alglib_impl9ae_vectorE", !6, i64 0, !6, i64 8, !19, i64 16, !20, i64 24, !7, i64 56}
!23 = !{!21, !21, i64 0}
!24 = distinct !{!24, !13}


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