; LLVM IR from venumb/ZSPACE :: cpp/depends/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.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { 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: 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: mustprogress uwtable
define dso_local void @_ZN11alglib_impl19rmatrixlusolvemfastEPNS_9ae_matrixEPNS_9ae_vectorElS1_lPlPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) #1 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i64 %2, ptr %10, align 8, !tbaa !9
  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
  store ptr %6, ptr %14, align 8, !tbaa !5
  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 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %20 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 0, ptr %20, align 8, !tbaa !9
  %21 = load i64, ptr %10, align 8, !tbaa !9
  %22 = icmp sle i64 %21, 0
  br i1 %22, label %26, label %23

23:                                               ; preds = %7
  %24 = load i64, ptr %12, align 8, !tbaa !9
  %25 = icmp sle i64 %24, 0
  br i1 %25, label %26, label %28

26:                                               ; preds = %23, %7
  %27 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 -1, ptr %27, align 8, !tbaa !9
  store i32 1, ptr %19, align 4
  br label %166

28:                                               ; preds = %23
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %29

29:                                               ; preds = %76, %28
  %30 = load i64, ptr %16, align 8, !tbaa !9
  %31 = load i64, ptr %10, align 8, !tbaa !9
  %32 = sub nsw i64 %31, 1
  %33 = icmp sle i64 %30, %32
  br i1 %33, label %34, label %79

34:                                               ; preds = %29
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %35, i32 0, i32 6
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  %38 = load i64, ptr %16, align 8, !tbaa !9
  %39 = getelementptr inbounds ptr, ptr %37, i64 %38
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = load i64, ptr %16, align 8, !tbaa !9
  %42 = getelementptr inbounds double, ptr %40, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !12
  %44 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %43, double noundef 0.000000e+00)
  br i1 %44, label %45, label %75

45:                                               ; preds = %34
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %70, %45
  %47 = load i64, ptr %17, align 8, !tbaa !9
  %48 = load i64, ptr %10, align 8, !tbaa !9
  %49 = sub nsw i64 %48, 1
  %50 = icmp sle i64 %47, %49
  br i1 %50, label %51, label %73

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

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

57:                                               ; preds = %52
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %58, i32 0, i32 6
  %60 = load ptr, ptr %59, align 8, !tbaa !11
  %61 = load i64, ptr %17, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %60, i64 %61
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = load i64, ptr %18, align 8, !tbaa !9
  %65 = getelementptr inbounds double, ptr %63, i64 %64
  store double 0.000000e+00, ptr %65, align 8, !tbaa !12
  br label %66

66:                                               ; preds = %57
  %67 = load i64, ptr %18, align 8, !tbaa !9
  %68 = add nsw i64 %67, 1
  store i64 %68, ptr %18, align 8, !tbaa !9
  br label %52, !llvm.loop !14

69:                                               ; preds = %52
  br label %70

70:                                               ; preds = %69
  %71 = load i64, ptr %17, align 8, !tbaa !9
  %72 = add nsw i64 %71, 1
  store i64 %72, ptr %17, align 8, !tbaa !9
  br label %46, !llvm.loop !16

73:                                               ; preds = %46
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 -3, ptr %74, align 8, !tbaa !9
  store i32 1, ptr %19, align 4
  br label %166

75:                                               ; preds = %34
  br label %76

76:                                               ; preds = %75
  %77 = load i64, ptr %16, align 8, !tbaa !9
  %78 = add nsw i64 %77, 1
  store i64 %78, ptr %16, align 8, !tbaa !9
  br label %29, !llvm.loop !17

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

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

85:                                               ; preds = %80
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %86, i32 0, i32 4
  %88 = load ptr, ptr %87, align 8, !tbaa !11
  %89 = load i64, ptr %16, align 8, !tbaa !9
  %90 = getelementptr inbounds i64, ptr %88, i64 %89
  %91 = load i64, ptr %90, align 8, !tbaa !9
  %92 = load i64, ptr %16, align 8, !tbaa !9
  %93 = icmp ne i64 %91, %92
  br i1 %93, label %94, label %150

94:                                               ; preds = %85
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %146, %94
  %96 = load i64, ptr %17, align 8, !tbaa !9
  %97 = load i64, ptr %12, align 8, !tbaa !9
  %98 = sub nsw i64 %97, 1
  %99 = icmp sle i64 %96, %98
  br i1 %99, label %100, label %149

100:                                              ; preds = %95
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %101, i32 0, i32 6
  %103 = load ptr, ptr %102, align 8, !tbaa !11
  %104 = load i64, ptr %16, align 8, !tbaa !9
  %105 = getelementptr inbounds ptr, ptr %103, i64 %104
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = load i64, ptr %17, align 8, !tbaa !9
  %108 = getelementptr inbounds double, ptr %106, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !12
  store double %109, ptr %15, align 8, !tbaa !12
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %110, i32 0, i32 6
  %112 = load ptr, ptr %111, align 8, !tbaa !11
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %113, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !11
  %116 = load i64, ptr %16, align 8, !tbaa !9
  %117 = getelementptr inbounds i64, ptr %115, i64 %116
  %118 = load i64, ptr %117, align 8, !tbaa !9
  %119 = getelementptr inbounds ptr, ptr %112, i64 %118
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  %121 = load i64, ptr %17, align 8, !tbaa !9
  %122 = getelementptr inbounds double, ptr %120, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !12
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %124, i32 0, i32 6
  %126 = load ptr, ptr %125, align 8, !tbaa !11
  %127 = load i64, ptr %16, align 8, !tbaa !9
  %128 = getelementptr inbounds ptr, ptr %126, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  %130 = load i64, ptr %17, align 8, !tbaa !9
  %131 = getelementptr inbounds double, ptr %129, i64 %130
  store double %123, ptr %131, align 8, !tbaa !12
  %132 = load double, ptr %15, align 8, !tbaa !12
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %133, i32 0, i32 6
  %135 = load ptr, ptr %134, align 8, !tbaa !11
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %136, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !11
  %139 = load i64, ptr %16, align 8, !tbaa !9
  %140 = getelementptr inbounds i64, ptr %138, i64 %139
  %141 = load i64, ptr %140, align 8, !tbaa !9
  %142 = getelementptr inbounds ptr, ptr %135, i64 %141
  %143 = load ptr, ptr %142, align 8, !tbaa !5
  %144 = load i64, ptr %17, align 8, !tbaa !9
  %145 = getelementptr inbounds double, ptr %143, i64 %144
  store double %132, ptr %145, align 8, !tbaa !12
  br label %146

146:                                              ; preds = %100
  %147 = load i64, ptr %17, align 8, !tbaa !9
  %148 = add nsw i64 %147, 1
  store i64 %148, ptr %17, align 8, !tbaa !9
  br label %95, !llvm.loop !18

149:                                              ; preds = %95
  br label %150

150:                                              ; preds = %149, %85
  br label %151

151:                                              ; preds = %150
  %152 = load i64, ptr %16, align 8, !tbaa !9
  %153 = add nsw i64 %152, 1
  store i64 %153, ptr %16, align 8, !tbaa !9
  br label %80, !llvm.loop !19

154:                                              ; preds = %80
  %155 = load i64, ptr %10, align 8, !tbaa !9
  %156 = load i64, ptr %12, align 8, !tbaa !9
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = load ptr, ptr %11, align 8, !tbaa !5
  %159 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %155, i64 noundef %156, ptr noundef %157, i64 noundef 0, i64 noundef 0, i1 noundef zeroext false, i1 noundef zeroext true, i64 noundef 0, ptr noundef %158, i64 noundef 0, i64 noundef 0, ptr noundef %159)
  %160 = load i64, ptr %10, align 8, !tbaa !9
  %161 = load i64, ptr %12, align 8, !tbaa !9
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = load ptr, ptr %11, align 8, !tbaa !5
  %164 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %160, i64 noundef %161, ptr noundef %162, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %163, i64 noundef 0, i64 noundef 0, ptr noundef %164)
  %165 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 1, ptr %165, align 8, !tbaa !9
  store i32 0, ptr %19, align 4
  br label %166

166:                                              ; preds = %154, %73, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  %167 = load i32, ptr %19, align 4
  switch i32 %167, label %169 [
    i32 0, label %168
    i32 1, label %168
  ]

168:                                              ; preds = %166, %166
  ret void

169:                                              ; preds = %166
  unreachable
}

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

declare void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_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) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #2 = { "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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !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"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl19rmatrixlusolvemfastEPNS_9ae_matrixEPNS_9ae_vectorElS1_lPlPNS_8ae_stateE(ptr noundef %0, ptr nocapture noundef readonly %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr nocapture noundef writeonly %5, ptr noundef %6) local_unnamed_addr #0 {
  store i64 0, ptr %5, align 8, !tbaa !5
  %8 = icmp slt i64 %2, 1
  %9 = icmp slt i64 %4, 1
  %or.cond = or i1 %8, %9
  br i1 %or.cond, label %._crit_edge82, label %.preheader69

.preheader69:                                     ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  br label %39

11:                                               ; preds = %39
  %12 = add nuw nsw i64 %.05670, 1
  %exitcond.not = icmp eq i64 %12, %2
  br i1 %exitcond.not, label %.preheader68, label %39, !llvm.loop !9

.preheader68:                                     ; preds = %11
  %.not.not6273 = icmp sgt i64 %2, 0
  br i1 %.not.not6273, label %.lr.ph76, label %._crit_edge

.lr.ph76:                                         ; preds = %.preheader68
  %13 = getelementptr inbounds i8, ptr %1, i64 56
  %.not63.not71 = icmp sgt i64 %4, 0
  %14 = getelementptr inbounds i8, ptr %3, i64 72
  br i1 %.not63.not71, label %.lr.ph76.split.us, label %._crit_edge

.lr.ph76.split.us:                                ; preds = %.lr.ph76, %..loopexit_crit_edge.us
  %.15774.us = phi i64 [ %38, %..loopexit_crit_edge.us ], [ 0, %.lr.ph76 ]
  %15 = load ptr, ptr %13, align 8, !tbaa !11
  %16 = getelementptr inbounds i64, ptr %15, i64 %.15774.us
  %17 = load i64, ptr %16, align 8, !tbaa !5
  %.not.us = icmp eq i64 %17, %.15774.us
  br i1 %.not.us, label %..loopexit_crit_edge.us, label %.preheader67.us

.preheader67.us:                                  ; preds = %.lr.ph76.split.us, %.preheader67.us
  %.172.us = phi i64 [ %37, %.preheader67.us ], [ 0, %.lr.ph76.split.us ]
  %18 = load ptr, ptr %14, align 8, !tbaa !11
  %19 = getelementptr inbounds ptr, ptr %18, i64 %.15774.us
  %20 = load ptr, ptr %19, align 8, !tbaa !12
  %21 = getelementptr inbounds double, ptr %20, i64 %.172.us
  %22 = load double, ptr %21, align 8, !tbaa !14
  %23 = load ptr, ptr %13, align 8, !tbaa !11
  %24 = getelementptr inbounds i64, ptr %23, i64 %.15774.us
  %25 = load i64, ptr %24, align 8, !tbaa !5
  %26 = getelementptr inbounds ptr, ptr %18, i64 %25
  %27 = load ptr, ptr %26, align 8, !tbaa !12
  %28 = getelementptr inbounds double, ptr %27, i64 %.172.us
  %29 = load double, ptr %28, align 8, !tbaa !14
  store double %29, ptr %21, align 8, !tbaa !14
  %30 = load ptr, ptr %14, align 8, !tbaa !11
  %31 = load ptr, ptr %13, align 8, !tbaa !11
  %32 = getelementptr inbounds i64, ptr %31, i64 %.15774.us
  %33 = load i64, ptr %32, align 8, !tbaa !5
  %34 = getelementptr inbounds ptr, ptr %30, i64 %33
  %35 = load ptr, ptr %34, align 8, !tbaa !12
  %36 = getelementptr inbounds double, ptr %35, i64 %.172.us
  store double %22, ptr %36, align 8, !tbaa !14
  %37 = add nuw nsw i64 %.172.us, 1
  %exitcond85.not = icmp eq i64 %37, %4
  br i1 %exitcond85.not, label %..loopexit_crit_edge.us, label %.preheader67.us, !llvm.loop !16

..loopexit_crit_edge.us:                          ; preds = %.preheader67.us, %.lr.ph76.split.us
  %38 = add nuw nsw i64 %.15774.us, 1
  %exitcond86.not = icmp eq i64 %38, %2
  br i1 %exitcond86.not, label %._crit_edge, label %.lr.ph76.split.us, !llvm.loop !17

39:                                               ; preds = %.preheader69, %11
  %.05670 = phi i64 [ 0, %.preheader69 ], [ %12, %11 ]
  %40 = load ptr, ptr %10, align 8, !tbaa !11
  %41 = getelementptr inbounds ptr, ptr %40, i64 %.05670
  %42 = load ptr, ptr %41, align 8, !tbaa !12
  %43 = getelementptr inbounds double, ptr %42, i64 %.05670
  %44 = load double, ptr %43, align 8, !tbaa !14
  %45 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %44, double noundef 0.000000e+00)
  br i1 %45, label %.preheader66, label %11

.preheader66:                                     ; preds = %39
  %.not64.not80 = icmp sgt i64 %2, 0
  br i1 %.not64.not80, label %.preheader.lr.ph, label %._crit_edge82

.preheader.lr.ph:                                 ; preds = %.preheader66
  %.not65.not77 = icmp sgt i64 %4, 0
  %46 = getelementptr inbounds i8, ptr %3, i64 72
  br i1 %.not65.not77, label %.preheader.us.preheader, label %._crit_edge82

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter = and i64 %4, 3
  %47 = 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
  %.05581.us = phi i64 [ %73, %._crit_edge79.us ], [ 0, %.preheader.us.preheader ]
  br i1 %47, label %._crit_edge79.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.078.us = phi i64 [ %67, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %48 = load ptr, ptr %46, align 8, !tbaa !11
  %49 = getelementptr inbounds ptr, ptr %48, i64 %.05581.us
  %50 = load ptr, ptr %49, align 8, !tbaa !12
  %51 = getelementptr inbounds double, ptr %50, i64 %.078.us
  store double 0.000000e+00, ptr %51, align 8, !tbaa !14
  %52 = or disjoint i64 %.078.us, 1
  %53 = load ptr, ptr %46, align 8, !tbaa !11
  %54 = getelementptr inbounds ptr, ptr %53, i64 %.05581.us
  %55 = load ptr, ptr %54, align 8, !tbaa !12
  %56 = getelementptr inbounds double, ptr %55, i64 %52
  store double 0.000000e+00, ptr %56, align 8, !tbaa !14
  %57 = or disjoint i64 %.078.us, 2
  %58 = load ptr, ptr %46, align 8, !tbaa !11
  %59 = getelementptr inbounds ptr, ptr %58, i64 %.05581.us
  %60 = load ptr, ptr %59, align 8, !tbaa !12
  %61 = getelementptr inbounds double, ptr %60, i64 %57
  store double 0.000000e+00, ptr %61, align 8, !tbaa !14
  %62 = or disjoint i64 %.078.us, 3
  %63 = load ptr, ptr %46, align 8, !tbaa !11
  %64 = getelementptr inbounds ptr, ptr %63, i64 %.05581.us
  %65 = load ptr, ptr %64, align 8, !tbaa !12
  %66 = getelementptr inbounds double, ptr %65, i64 %62
  store double 0.000000e+00, ptr %66, align 8, !tbaa !14
  %67 = add nuw nsw i64 %.078.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 !18

._crit_edge79.us.unr-lcssa:                       ; preds = %.preheader.us.new, %.preheader.us
  %.078.us.unr = phi i64 [ 0, %.preheader.us ], [ %67, %.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
  %.078.us.epil = phi i64 [ %72, %.epil.preheader ], [ %.078.us.unr, %._crit_edge79.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge79.us.unr-lcssa ]
  %68 = load ptr, ptr %46, align 8, !tbaa !11
  %69 = getelementptr inbounds ptr, ptr %68, i64 %.05581.us
  %70 = load ptr, ptr %69, align 8, !tbaa !12
  %71 = getelementptr inbounds double, ptr %70, i64 %.078.us.epil
  store double 0.000000e+00, ptr %71, align 8, !tbaa !14
  %72 = add nuw nsw i64 %.078.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 !19

._crit_edge79.us:                                 ; preds = %.epil.preheader, %._crit_edge79.us.unr-lcssa
  %73 = add nuw nsw i64 %.05581.us, 1
  %exitcond88.not = icmp eq i64 %73, %2
  br i1 %exitcond88.not, label %._crit_edge82, label %.preheader.us, !llvm.loop !21

._crit_edge:                                      ; preds = %..loopexit_crit_edge.us, %.lr.ph76, %.preheader68
  tail call void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %2, i64 noundef %4, ptr noundef %0, i64 noundef 0, i64 noundef 0, i1 noundef zeroext false, i1 noundef zeroext true, i64 noundef 0, ptr noundef %3, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  tail call void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %2, i64 noundef %4, ptr noundef %0, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %3, i64 noundef 0, i64 noundef 0, ptr noundef %6)
  br label %._crit_edge82

._crit_edge82:                                    ; preds = %._crit_edge79.us, %.preheader66, %.preheader.lr.ph, %7, %._crit_edge
  %.sink = phi i64 [ 1, %._crit_edge ], [ -1, %7 ], [ -3, %.preheader.lr.ph ], [ -3, %.preheader66 ], [ -3, %._crit_edge79.us ]
  store i64 %.sink, ptr %5, align 8, !tbaa !5
  ret void
}

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

declare void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_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 #1

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

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = distinct !{!21, !10}


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