; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src (solvers)

; 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_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 }

@.str.282 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.283 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.284 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.285 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.286 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.287 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.288 = external hidden unnamed_addr constant [66 x i8], align 1

; 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_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl27spdmatrixcholeskysolvemfastEPKNS_9ae_matrixElbPS0_lPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) #2 {
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  %19 = zext i1 %2 to i8
  store i8 %19, ptr %10, align 1, !tbaa !11
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i64 %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #3
  %20 = load i64, ptr %9, align 8, !tbaa !9
  %21 = icmp sgt i64 %20, 0
  %22 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef @.str.282, ptr noundef %22)
  %23 = load i64, ptr %12, align 8, !tbaa !9
  %24 = icmp sgt i64 %23, 0
  %25 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef @.str.283, ptr noundef %25)
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %26, i32 0, i32 0
  %28 = load i64, ptr %27, align 8, !tbaa !13
  %29 = load i64, ptr %9, align 8, !tbaa !9
  %30 = icmp sge i64 %28, %29
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef @.str.284, ptr noundef %31)
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %32, i32 0, i32 1
  %34 = load i64, ptr %33, align 8, !tbaa !16
  %35 = load i64, ptr %9, align 8, !tbaa !9
  %36 = icmp sge i64 %34, %35
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef @.str.285, ptr noundef %37)
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %38, i32 0, i32 0
  %40 = load i64, ptr %39, align 8, !tbaa !13
  %41 = load i64, ptr %9, align 8, !tbaa !9
  %42 = icmp sge i64 %40, %41
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef @.str.286, ptr noundef %43)
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %44, i32 0, i32 1
  %46 = load i64, ptr %45, align 8, !tbaa !16
  %47 = load i64, ptr %12, align 8, !tbaa !9
  %48 = icmp sge i64 %46, %47
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.287, ptr noundef %49)
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = load i64, ptr %9, align 8, !tbaa !9
  %52 = load i8, ptr %10, align 1, !tbaa !11, !range !17, !noundef !18
  %53 = trunc i8 %52 to i1
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = call noundef zeroext i1 @_ZN11alglib_impl17isfinitertrmatrixEPKNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %50, i64 noundef %51, i1 noundef zeroext %53, ptr noundef %54)
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %55, ptr noundef @.str.288, ptr noundef %56)
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = load i64, ptr %9, align 8, !tbaa !9
  %59 = load i64, ptr %12, align 8, !tbaa !9
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %57, i64 noundef %58, i64 noundef %59, ptr noundef %60)
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %61, ptr noundef @.str.288, ptr noundef %62)
  store i8 1, ptr %17, align 1, !tbaa !11
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %63

63:                                               ; preds = %111, %6
  %64 = load i64, ptr %16, align 8, !tbaa !9
  %65 = load i64, ptr %9, align 8, !tbaa !9
  %66 = sub nsw i64 %65, 1
  %67 = icmp sle i64 %64, %66
  br i1 %67, label %68, label %114

68:                                               ; preds = %63
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %69, i32 0, i32 6
  %71 = load ptr, ptr %70, align 8, !tbaa !19
  %72 = load i64, ptr %16, align 8, !tbaa !9
  %73 = getelementptr inbounds ptr, ptr %71, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = load i64, ptr %16, align 8, !tbaa !9
  %76 = getelementptr inbounds double, ptr %74, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !20
  %78 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %77, double noundef 0.000000e+00)
  br i1 %78, label %79, label %110

79:                                               ; preds = %68
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %80

80:                                               ; preds = %104, %79
  %81 = load i64, ptr %14, align 8, !tbaa !9
  %82 = load i64, ptr %9, align 8, !tbaa !9
  %83 = sub nsw i64 %82, 1
  %84 = icmp sle i64 %81, %83
  br i1 %84, label %85, label %107

85:                                               ; preds = %80
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %86

86:                                               ; preds = %100, %85
  %87 = load i64, ptr %15, align 8, !tbaa !9
  %88 = load i64, ptr %12, align 8, !tbaa !9
  %89 = sub nsw i64 %88, 1
  %90 = icmp sle i64 %87, %89
  br i1 %90, label %91, label %103

91:                                               ; preds = %86
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %92, i32 0, i32 6
  %94 = load ptr, ptr %93, align 8, !tbaa !19
  %95 = load i64, ptr %14, align 8, !tbaa !9
  %96 = getelementptr inbounds ptr, ptr %94, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = load i64, ptr %15, align 8, !tbaa !9
  %99 = getelementptr inbounds double, ptr %97, i64 %98
  store double 0.000000e+00, ptr %99, align 8, !tbaa !20
  br label %100

100:                                              ; preds = %91
  %101 = load i64, ptr %15, align 8, !tbaa !9
  %102 = add nsw i64 %101, 1
  store i64 %102, ptr %15, align 8, !tbaa !9
  br label %86, !llvm.loop !22

103:                                              ; preds = %86
  br label %104

104:                                              ; preds = %103
  %105 = load i64, ptr %14, align 8, !tbaa !9
  %106 = add nsw i64 %105, 1
  store i64 %106, ptr %14, align 8, !tbaa !9
  br label %80, !llvm.loop !24

107:                                              ; preds = %80
  store i8 0, ptr %17, align 1, !tbaa !11
  %108 = load i8, ptr %17, align 1, !tbaa !11, !range !17, !noundef !18
  %109 = trunc i8 %108 to i1
  store i1 %109, ptr %7, align 1
  store i32 1, ptr %18, align 4
  br label %142

110:                                              ; preds = %68
  br label %111

111:                                              ; preds = %110
  %112 = load i64, ptr %16, align 8, !tbaa !9
  %113 = add nsw i64 %112, 1
  store i64 %113, ptr %16, align 8, !tbaa !9
  br label %63, !llvm.loop !25

114:                                              ; preds = %63
  %115 = load i8, ptr %10, align 1, !tbaa !11, !range !17, !noundef !18
  %116 = trunc i8 %115 to i1
  br i1 %116, label %117, label %128

117:                                              ; preds = %114
  %118 = load i64, ptr %9, align 8, !tbaa !9
  %119 = load i64, ptr %12, align 8, !tbaa !9
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %118, i64 noundef %119, ptr noundef %120, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 1, ptr noundef %121, i64 noundef 0, i64 noundef 0, ptr noundef %122)
  %123 = load i64, ptr %9, align 8, !tbaa !9
  %124 = load i64, ptr %12, align 8, !tbaa !9
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %123, i64 noundef %124, ptr noundef %125, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %126, i64 noundef 0, i64 noundef 0, ptr noundef %127)
  br label %139

128:                                              ; preds = %114
  %129 = load i64, ptr %9, align 8, !tbaa !9
  %130 = load i64, ptr %12, align 8, !tbaa !9
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %129, i64 noundef %130, ptr noundef %131, i64 noundef 0, i64 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false, i64 noundef 0, ptr noundef %132, i64 noundef 0, i64 noundef 0, ptr noundef %133)
  %134 = load i64, ptr %9, align 8, !tbaa !9
  %135 = load i64, ptr %12, align 8, !tbaa !9
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %134, i64 noundef %135, ptr noundef %136, i64 noundef 0, i64 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false, i64 noundef 1, ptr noundef %137, i64 noundef 0, i64 noundef 0, ptr noundef %138)
  br label %139

139:                                              ; preds = %128, %117
  %140 = load i8, ptr %17, align 1, !tbaa !11, !range !17, !noundef !18
  %141 = trunc i8 %140 to i1
  store i1 %141, ptr %7, align 1
  store i32 1, ptr %18, align 4
  br label %142

142:                                              ; preds = %139, %107
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  %143 = load i1, ptr %7, align 1
  ret i1 %143
}

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

declare void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl17isfinitertrmatrixEPKNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef) #1

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 = { 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 = { 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 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !15, i64 40, !7, i64 72}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!14, !10, i64 8}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}


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

@.str.282 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.283 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.284 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.285 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.286 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.287 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.288 = external hidden unnamed_addr constant [66 x i8], align 1

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl27spdmatrixcholeskysolvemfastEPKNS_9ae_matrixElbPS0_lPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = icmp sgt i64 %1, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.282, ptr noundef %5)
  %8 = icmp sgt i64 %4, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.283, ptr noundef %5)
  %9 = load i64, ptr %0, align 8, !tbaa !5
  %10 = icmp sge i64 %9, %1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.284, ptr noundef %5)
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !13
  %13 = icmp sge i64 %12, %1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.285, ptr noundef %5)
  %14 = load i64, ptr %3, align 8, !tbaa !5
  %15 = icmp sge i64 %14, %1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.286, ptr noundef %5)
  %16 = getelementptr inbounds i8, ptr %3, i64 8
  %17 = load i64, ptr %16, align 8, !tbaa !13
  %18 = icmp sge i64 %17, %4
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.287, ptr noundef %5)
  %19 = tail call noundef zeroext i1 @_ZN11alglib_impl17isfinitertrmatrixEPKNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %5)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.288, ptr noundef %5)
  %20 = tail call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %1, i64 noundef %4, ptr noundef %5)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.288, ptr noundef %5)
  %.not.not73 = icmp slt i64 %1, 1
  br i1 %.not.not73, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %6
  %21 = getelementptr inbounds i8, ptr %0, i64 72
  %22 = load ptr, ptr %21, align 8, !tbaa !14
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  %24 = load double, ptr %23, align 8, !tbaa !16
  %25 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %24, double noundef 0.000000e+00)
  br i1 %25, label %.preheader.lr.ph, label %.lr.ph92

.lr.ph92:                                         ; preds = %.lr.ph, %27
  %.07491 = phi i64 [ %26, %27 ], [ 0, %.lr.ph ]
  %26 = add nuw nsw i64 %.07491, 1
  %exitcond = icmp eq i64 %26, %1
  br i1 %exitcond, label %._crit_edge, label %27, !llvm.loop !18

27:                                               ; preds = %.lr.ph92
  %28 = load ptr, ptr %21, align 8, !tbaa !14
  %29 = getelementptr inbounds ptr, ptr %28, i64 %26
  %30 = load ptr, ptr %29, align 8, !tbaa !15
  %31 = getelementptr inbounds double, ptr %30, i64 %26
  %32 = load double, ptr %31, align 8, !tbaa !16
  %33 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %32, double noundef 0.000000e+00)
  br i1 %33, label %.preheader.lr.ph.loopexit, label %.lr.ph92, !llvm.loop !18

.preheader.lr.ph.loopexit:                        ; preds = %27
  %.not.not.le = icmp sge i64 %26, %1
  br label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader.lr.ph.loopexit, %.lr.ph
  %.not.not75.lcssa = phi i1 [ false, %.lr.ph ], [ %.not.not.le, %.preheader.lr.ph.loopexit ]
  %34 = getelementptr inbounds i8, ptr %3, i64 72
  br i1 %8, label %.preheader.us.preheader, label %.loopexit

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter = and i64 %4, 3
  %35 = icmp ult i64 %4, 4
  %unroll_iter = and i64 %4, 9223372036854775804
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge79.us
  %.06581.us = phi i64 [ %61, %._crit_edge79.us ], [ 0, %.preheader.us.preheader ]
  br i1 %35, label %._crit_edge79.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.06477.us = phi i64 [ %55, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %36 = load ptr, ptr %34, align 8, !tbaa !14
  %37 = getelementptr inbounds ptr, ptr %36, i64 %.06581.us
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = getelementptr inbounds double, ptr %38, i64 %.06477.us
  store double 0.000000e+00, ptr %39, align 8, !tbaa !16
  %40 = or disjoint i64 %.06477.us, 1
  %41 = load ptr, ptr %34, align 8, !tbaa !14
  %42 = getelementptr inbounds ptr, ptr %41, i64 %.06581.us
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  %44 = getelementptr inbounds double, ptr %43, i64 %40
  store double 0.000000e+00, ptr %44, align 8, !tbaa !16
  %45 = or disjoint i64 %.06477.us, 2
  %46 = load ptr, ptr %34, align 8, !tbaa !14
  %47 = getelementptr inbounds ptr, ptr %46, i64 %.06581.us
  %48 = load ptr, ptr %47, align 8, !tbaa !15
  %49 = getelementptr inbounds double, ptr %48, i64 %45
  store double 0.000000e+00, ptr %49, align 8, !tbaa !16
  %50 = or disjoint i64 %.06477.us, 3
  %51 = load ptr, ptr %34, align 8, !tbaa !14
  %52 = getelementptr inbounds ptr, ptr %51, i64 %.06581.us
  %53 = load ptr, ptr %52, align 8, !tbaa !15
  %54 = getelementptr inbounds double, ptr %53, i64 %50
  store double 0.000000e+00, ptr %54, align 8, !tbaa !16
  %55 = add nuw nsw i64 %.06477.us, 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_edge79.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !20

._crit_edge79.us.unr-lcssa:                       ; preds = %.preheader.us.new, %.preheader.us
  %.06477.us.unr = phi i64 [ 0, %.preheader.us ], [ %55, %.preheader.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge79.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge79.us.unr-lcssa, %.epil.preheader
  %.06477.us.epil = phi i64 [ %60, %.epil.preheader ], [ %.06477.us.unr, %._crit_edge79.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge79.us.unr-lcssa ]
  %56 = load ptr, ptr %34, align 8, !tbaa !14
  %57 = getelementptr inbounds ptr, ptr %56, i64 %.06581.us
  %58 = load ptr, ptr %57, align 8, !tbaa !15
  %59 = getelementptr inbounds double, ptr %58, i64 %.06477.us.epil
  store double 0.000000e+00, ptr %59, align 8, !tbaa !16
  %60 = add nuw nsw i64 %.06477.us.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_edge79.us, label %.epil.preheader, !llvm.loop !21

._crit_edge79.us:                                 ; preds = %.epil.preheader, %._crit_edge79.us.unr-lcssa
  %61 = add nuw nsw i64 %.06581.us, 1
  %exitcond86.not = icmp eq i64 %61, %1
  br i1 %exitcond86.not, label %.loopexit, label %.preheader.us, !llvm.loop !23

._crit_edge:                                      ; preds = %.lr.ph92, %6
  br i1 %2, label %62, label %63

62:                                               ; preds = %._crit_edge
  tail call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %4, ptr noundef nonnull %0, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 1, ptr noundef nonnull %3, i64 noundef 0, i64 noundef 0, ptr noundef %5)
  tail call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %4, ptr noundef nonnull %0, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef nonnull %3, i64 noundef 0, i64 noundef 0, ptr noundef %5)
  br label %.loopexit

63:                                               ; preds = %._crit_edge
  tail call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %4, ptr noundef nonnull %0, i64 noundef 0, i64 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false, i64 noundef 0, ptr noundef nonnull %3, i64 noundef 0, i64 noundef 0, ptr noundef %5)
  tail call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %4, ptr noundef nonnull %0, i64 noundef 0, i64 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false, i64 noundef 1, ptr noundef nonnull %3, i64 noundef 0, i64 noundef 0, ptr noundef %5)
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge79.us, %.preheader.lr.ph, %62, %63
  %.not.not72 = phi i1 [ true, %62 ], [ true, %63 ], [ %.not.not75.lcssa, %.preheader.lr.ph ], [ %.not.not75.lcssa, %._crit_edge79.us ]
  ret i1 %.not.not72
}

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN11alglib_impl17isfinitertrmatrixEPKNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #0

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


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