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

@.str.124 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [55 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_impl18rmatrixlusolvefastEPKNS_9ae_matrixEPKNS_9ae_vectorElPS3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #3
  %16 = load i64, ptr %9, align 8, !tbaa !9
  %17 = icmp sgt i64 %16, 0
  %18 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef @.str.125, ptr noundef %18)
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 0
  %21 = load i64, ptr %20, align 8, !tbaa !11
  %22 = load i64, ptr %9, align 8, !tbaa !9
  %23 = icmp sge i64 %21, %22
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef @.str.126, ptr noundef %24)
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %25, i32 0, i32 1
  %27 = load i64, ptr %26, align 8, !tbaa !15
  %28 = load i64, ptr %9, align 8, !tbaa !9
  %29 = icmp sge i64 %27, %28
  %30 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef @.str.127, ptr noundef %30)
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 0
  %33 = load i64, ptr %32, align 8, !tbaa !16
  %34 = load i64, ptr %9, align 8, !tbaa !9
  %35 = icmp sge i64 %33, %34
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef @.str.128, ptr noundef %36)
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 0
  %39 = load i64, ptr %38, align 8, !tbaa !16
  %40 = load i64, ptr %9, align 8, !tbaa !9
  %41 = icmp sge i64 %39, %40
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %41, ptr noundef @.str.129, ptr noundef %42)
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = load i64, ptr %9, align 8, !tbaa !9
  %45 = load i64, ptr %9, align 8, !tbaa !9
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %43, i64 noundef %44, i64 noundef %45, ptr noundef %46)
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %47, ptr noundef @.str.130, ptr noundef %48)
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = load i64, ptr %9, align 8, !tbaa !9
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %49, i64 noundef %50, ptr noundef %51)
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef @.str.131, ptr noundef %53)
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %54

54:                                               ; preds = %79, %5
  %55 = load i64, ptr %12, align 8, !tbaa !9
  %56 = load i64, ptr %9, align 8, !tbaa !9
  %57 = sub nsw i64 %56, 1
  %58 = icmp sle i64 %55, %57
  br i1 %58, label %59, label %82

59:                                               ; preds = %54
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %60, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !18
  %63 = load i64, ptr %12, align 8, !tbaa !9
  %64 = getelementptr inbounds i64, ptr %62, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %66 = icmp sge i64 %65, 0
  br i1 %66, label %67, label %76

67:                                               ; preds = %59
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %68, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !18
  %71 = load i64, ptr %12, align 8, !tbaa !9
  %72 = getelementptr inbounds i64, ptr %70, i64 %71
  %73 = load i64, ptr %72, align 8, !tbaa !9
  %74 = load i64, ptr %9, align 8, !tbaa !9
  %75 = icmp slt i64 %73, %74
  br label %76

76:                                               ; preds = %67, %59
  %77 = phi i1 [ false, %59 ], [ %75, %67 ]
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %77, ptr noundef @.str.124, ptr noundef %78)
  br label %79

79:                                               ; preds = %76
  %80 = load i64, ptr %12, align 8, !tbaa !9
  %81 = add nsw i64 %80, 1
  store i64 %81, ptr %12, align 8, !tbaa !9
  br label %54, !llvm.loop !19

82:                                               ; preds = %54
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %83

83:                                               ; preds = %118, %82
  %84 = load i64, ptr %12, align 8, !tbaa !9
  %85 = load i64, ptr %9, align 8, !tbaa !9
  %86 = sub nsw i64 %85, 1
  %87 = icmp sle i64 %84, %86
  br i1 %87, label %88, label %121

88:                                               ; preds = %83
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %89, i32 0, i32 6
  %91 = load ptr, ptr %90, align 8, !tbaa !18
  %92 = load i64, ptr %12, align 8, !tbaa !9
  %93 = getelementptr inbounds ptr, ptr %91, i64 %92
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = load i64, ptr %12, align 8, !tbaa !9
  %96 = getelementptr inbounds double, ptr %94, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !21
  %98 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %97, double noundef 0.000000e+00)
  br i1 %98, label %99, label %117

99:                                               ; preds = %88
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %100

100:                                              ; preds = %111, %99
  %101 = load i64, ptr %13, align 8, !tbaa !9
  %102 = load i64, ptr %9, align 8, !tbaa !9
  %103 = sub nsw i64 %102, 1
  %104 = icmp sle i64 %101, %103
  br i1 %104, label %105, label %114

105:                                              ; preds = %100
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %106, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !18
  %109 = load i64, ptr %13, align 8, !tbaa !9
  %110 = getelementptr inbounds double, ptr %108, i64 %109
  store double 0.000000e+00, ptr %110, align 8, !tbaa !21
  br label %111

111:                                              ; preds = %105
  %112 = load i64, ptr %13, align 8, !tbaa !9
  %113 = add nsw i64 %112, 1
  store i64 %113, ptr %13, align 8, !tbaa !9
  br label %100, !llvm.loop !23

114:                                              ; preds = %100
  store i8 0, ptr %14, align 1, !tbaa !24
  %115 = load i8, ptr %14, align 1, !tbaa !24, !range !25, !noundef !26
  %116 = trunc i8 %115 to i1
  store i1 %116, ptr %6, align 1
  store i32 1, ptr %15, align 4
  br label %129

117:                                              ; preds = %88
  br label %118

118:                                              ; preds = %117
  %119 = load i64, ptr %12, align 8, !tbaa !9
  %120 = add nsw i64 %119, 1
  store i64 %120, ptr %12, align 8, !tbaa !9
  br label %83, !llvm.loop !27

121:                                              ; preds = %83
  store i8 1, ptr %14, align 1, !tbaa !24
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = load i64, ptr %9, align 8, !tbaa !9
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_implL32directdensesolvers_rbasiclusolveEPKNS_9ae_matrixEPKNS_9ae_vectorElPS3_PNS_8ae_stateE(ptr noundef %122, ptr noundef %123, i64 noundef %124, ptr noundef %125, ptr noundef %126)
  %127 = load i8, ptr %14, align 1, !tbaa !24, !range !25, !noundef !26
  %128 = trunc i8 %127 to i1
  store i1 %128, ptr %6, align 1
  store i32 1, ptr %15, align 4
  br label %129

129:                                              ; preds = %121, %114
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  %130 = load i1, ptr %6, align 1
  ret i1 %130
}

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

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

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

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


; 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.124 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [55 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_impl18rmatrixlusolvefastEPKNS_9ae_matrixEPKNS_9ae_vectorElPS3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = icmp sgt i64 %2, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %6, ptr noundef nonnull @.str.125, ptr noundef %4)
  %7 = load i64, ptr %0, align 8, !tbaa !5
  %8 = icmp sge i64 %7, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.126, ptr noundef %4)
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load i64, ptr %9, align 8, !tbaa !13
  %11 = icmp sge i64 %10, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.127, ptr noundef %4)
  %12 = load i64, ptr %1, align 8, !tbaa !14
  %13 = icmp sge i64 %12, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.128, ptr noundef %4)
  %14 = load i64, ptr %3, align 8, !tbaa !14
  %15 = icmp sge i64 %14, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.129, ptr noundef %4)
  %16 = tail call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %2, i64 noundef %2, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.130, ptr noundef %4)
  %17 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %2, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.131, ptr noundef %4)
  br i1 %6, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5
  %18 = getelementptr inbounds i8, ptr %1, i64 56
  br label %24

.lr.ph64:                                         ; preds = %24
  %19 = getelementptr inbounds i8, ptr %0, i64 72
  %20 = load ptr, ptr %19, align 8, !tbaa !16
  %21 = load ptr, ptr %20, align 8, !tbaa !17
  %22 = load double, ptr %21, align 8, !tbaa !18
  %23 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %22, double noundef 0.000000e+00)
  br i1 %23, label %.lr.ph67, label %.lr.ph78

24:                                               ; preds = %.lr.ph, %24
  %.05060 = phi i64 [ 0, %.lr.ph ], [ %28, %24 ]
  %25 = load ptr, ptr %18, align 8, !tbaa !16
  %26 = getelementptr inbounds i64, ptr %25, i64 %.05060
  %27 = load i64, ptr %26, align 8, !tbaa !20
  %spec.select = icmp ult i64 %27, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.124, ptr noundef %4)
  %28 = add nuw nsw i64 %.05060, 1
  %exitcond.not = icmp eq i64 %28, %2
  br i1 %exitcond.not, label %.lr.ph64, label %24, !llvm.loop !21

.lr.ph78:                                         ; preds = %.lr.ph64, %30
  %.16277 = phi i64 [ %29, %30 ], [ 0, %.lr.ph64 ]
  %29 = add nuw nsw i64 %.16277, 1
  %exitcond70 = icmp eq i64 %29, %2
  br i1 %exitcond70, label %._crit_edge, label %30, !llvm.loop !23

30:                                               ; preds = %.lr.ph78
  %31 = load ptr, ptr %19, align 8, !tbaa !16
  %32 = getelementptr inbounds ptr, ptr %31, i64 %29
  %33 = load ptr, ptr %32, align 8, !tbaa !17
  %34 = getelementptr inbounds double, ptr %33, i64 %29
  %35 = load double, ptr %34, align 8, !tbaa !18
  %36 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %35, double noundef 0.000000e+00)
  br i1 %36, label %.lr.ph67.loopexit, label %.lr.ph78, !llvm.loop !23

.lr.ph67.loopexit:                                ; preds = %30
  %.not.not54.le = icmp sge i64 %29, %2
  br label %.lr.ph67

.lr.ph67:                                         ; preds = %.lr.ph67.loopexit, %.lr.ph64
  %.not.not5463.lcssa = phi i1 [ false, %.lr.ph64 ], [ %.not.not54.le, %.lr.ph67.loopexit ]
  %37 = getelementptr inbounds i8, ptr %3, i64 56
  %xtraiter = and i64 %2, 3
  %38 = icmp ult i64 %2, 4
  br i1 %38, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph67.new

.lr.ph67.new:                                     ; preds = %.lr.ph67
  %unroll_iter = and i64 %2, 9223372036854775804
  br label %39

39:                                               ; preds = %39, %.lr.ph67.new
  %.066 = phi i64 [ 0, %.lr.ph67.new ], [ %51, %39 ]
  %niter = phi i64 [ 0, %.lr.ph67.new ], [ %niter.next.3, %39 ]
  %40 = load ptr, ptr %37, align 8, !tbaa !16
  %41 = getelementptr inbounds double, ptr %40, i64 %.066
  store double 0.000000e+00, ptr %41, align 8, !tbaa !18
  %42 = or disjoint i64 %.066, 1
  %43 = load ptr, ptr %37, align 8, !tbaa !16
  %44 = getelementptr inbounds double, ptr %43, i64 %42
  store double 0.000000e+00, ptr %44, align 8, !tbaa !18
  %45 = or disjoint i64 %.066, 2
  %46 = load ptr, ptr %37, align 8, !tbaa !16
  %47 = getelementptr inbounds double, ptr %46, i64 %45
  store double 0.000000e+00, ptr %47, align 8, !tbaa !18
  %48 = or disjoint i64 %.066, 3
  %49 = load ptr, ptr %37, align 8, !tbaa !16
  %50 = getelementptr inbounds double, ptr %49, i64 %48
  store double 0.000000e+00, ptr %50, align 8, !tbaa !18
  %51 = add nuw nsw i64 %.066, 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 %.loopexit.loopexit.unr-lcssa, label %39, !llvm.loop !24

._crit_edge:                                      ; preds = %.lr.ph78, %5
  tail call void @_ZN11alglib_implL32directdensesolvers_rbasiclusolveEPKNS_9ae_matrixEPKNS_9ae_vectorElPS3_PNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %1, i64 noundef %2, ptr noundef nonnull %3, ptr noundef %4)
  br label %.loopexit

.loopexit.loopexit.unr-lcssa:                     ; preds = %39, %.lr.ph67
  %.066.unr = phi i64 [ 0, %.lr.ph67 ], [ %51, %39 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader
  %.066.epil = phi i64 [ %54, %.epil.preheader ], [ %.066.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %52 = load ptr, ptr %37, align 8, !tbaa !16
  %53 = getelementptr inbounds double, ptr %52, i64 %.066.epil
  store double 0.000000e+00, ptr %53, align 8, !tbaa !18
  %54 = add nuw nsw i64 %.066.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 %.loopexit, label %.epil.preheader, !llvm.loop !25

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader, %._crit_edge
  %.not.not5458 = phi i1 [ true, %._crit_edge ], [ %.not.not5463.lcssa, %.epil.preheader ], [ %.not.not5463.lcssa, %.loopexit.loopexit.unr-lcssa ]
  ret i1 %.not.not5458
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL32directdensesolvers_rbasiclusolveEPKNS_9ae_matrixEPKNS_9ae_vectorElPS3_PNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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 = !{!15, !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!16 = !{!8, !8, i64 0}
!17 = !{!12, !12, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !8, i64 0}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.unroll.disable"}


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