; 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_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"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 }
%"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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; 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_impl17rmatrixsolvemfastEPNS_9ae_matrixElS1_lPlPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.alglib_impl::ae_frame", align 8
  %14 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %15 = alloca double, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i64 %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i64 %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, 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
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #4
  %21 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %21, ptr noundef %13)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 64, i1 false)
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef %14, ptr noundef %22, ptr noundef %23, i1 noundef zeroext true)
  store ptr %14, ptr %7, align 8, !tbaa !5
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 0, ptr %24, align 8, !tbaa !9
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 2, ptr noundef %25, i1 noundef zeroext true)
  %26 = load i64, ptr %8, align 8, !tbaa !9
  %27 = icmp sle i64 %26, 0
  br i1 %27, label %31, label %28

28:                                               ; preds = %6
  %29 = load i64, ptr %10, align 8, !tbaa !9
  %30 = icmp sle i64 %29, 0
  br i1 %30, label %31, label %34

31:                                               ; preds = %28, %6
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 -1, ptr %32, align 8, !tbaa !9
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %33)
  store i32 1, ptr %20, align 4
  br label %175

34:                                               ; preds = %28
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load i64, ptr %8, align 8, !tbaa !9
  %37 = load i64, ptr %8, align 8, !tbaa !9
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9rmatrixluEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %35, i64 noundef %36, i64 noundef %37, ptr noundef %19, ptr noundef %38)
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %39

39:                                               ; preds = %87, %34
  %40 = load i64, ptr %16, align 8, !tbaa !9
  %41 = load i64, ptr %8, align 8, !tbaa !9
  %42 = sub nsw i64 %41, 1
  %43 = icmp sle i64 %40, %42
  br i1 %43, label %44, label %90

44:                                               ; preds = %39
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %45, i32 0, i32 6
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  %48 = load i64, ptr %16, align 8, !tbaa !9
  %49 = getelementptr inbounds ptr, ptr %47, i64 %48
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %51 = load i64, ptr %16, align 8, !tbaa !9
  %52 = getelementptr inbounds double, ptr %50, i64 %51
  %53 = load double, ptr %52, align 8, !tbaa !12
  %54 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %53, double noundef 0.000000e+00)
  br i1 %54, label %55, label %86

55:                                               ; preds = %44
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %80, %55
  %57 = load i64, ptr %17, align 8, !tbaa !9
  %58 = load i64, ptr %8, align 8, !tbaa !9
  %59 = sub nsw i64 %58, 1
  %60 = icmp sle i64 %57, %59
  br i1 %60, label %61, label %83

61:                                               ; preds = %56
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %62

62:                                               ; preds = %76, %61
  %63 = load i64, ptr %18, align 8, !tbaa !9
  %64 = load i64, ptr %10, align 8, !tbaa !9
  %65 = sub nsw i64 %64, 1
  %66 = icmp sle i64 %63, %65
  br i1 %66, label %67, label %79

67:                                               ; preds = %62
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %68, i32 0, i32 6
  %70 = load ptr, ptr %69, align 8, !tbaa !11
  %71 = load i64, ptr %17, align 8, !tbaa !9
  %72 = getelementptr inbounds ptr, ptr %70, i64 %71
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = load i64, ptr %18, align 8, !tbaa !9
  %75 = getelementptr inbounds double, ptr %73, i64 %74
  store double 0.000000e+00, ptr %75, align 8, !tbaa !12
  br label %76

76:                                               ; preds = %67
  %77 = load i64, ptr %18, align 8, !tbaa !9
  %78 = add nsw i64 %77, 1
  store i64 %78, ptr %18, align 8, !tbaa !9
  br label %62, !llvm.loop !14

79:                                               ; preds = %62
  br label %80

80:                                               ; preds = %79
  %81 = load i64, ptr %17, align 8, !tbaa !9
  %82 = add nsw i64 %81, 1
  store i64 %82, ptr %17, align 8, !tbaa !9
  br label %56, !llvm.loop !16

83:                                               ; preds = %56
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 -3, ptr %84, align 8, !tbaa !9
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %85)
  store i32 1, ptr %20, align 4
  br label %175

86:                                               ; preds = %44
  br label %87

87:                                               ; preds = %86
  %88 = load i64, ptr %16, align 8, !tbaa !9
  %89 = add nsw i64 %88, 1
  store i64 %89, ptr %16, align 8, !tbaa !9
  br label %39, !llvm.loop !17

90:                                               ; preds = %39
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %91

91:                                               ; preds = %159, %90
  %92 = load i64, ptr %16, align 8, !tbaa !9
  %93 = load i64, ptr %8, align 8, !tbaa !9
  %94 = sub nsw i64 %93, 1
  %95 = icmp sle i64 %92, %94
  br i1 %95, label %96, label %162

96:                                               ; preds = %91
  %97 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %98 = load ptr, ptr %97, align 8, !tbaa !11
  %99 = load i64, ptr %16, align 8, !tbaa !9
  %100 = getelementptr inbounds i64, ptr %98, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !9
  %102 = load i64, ptr %16, align 8, !tbaa !9
  %103 = icmp ne i64 %101, %102
  br i1 %103, label %104, label %158

104:                                              ; preds = %96
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %105

105:                                              ; preds = %154, %104
  %106 = load i64, ptr %17, align 8, !tbaa !9
  %107 = load i64, ptr %10, align 8, !tbaa !9
  %108 = sub nsw i64 %107, 1
  %109 = icmp sle i64 %106, %108
  br i1 %109, label %110, label %157

110:                                              ; preds = %105
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %111, i32 0, i32 6
  %113 = load ptr, ptr %112, align 8, !tbaa !11
  %114 = load i64, ptr %16, align 8, !tbaa !9
  %115 = getelementptr inbounds ptr, ptr %113, i64 %114
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %117 = load i64, ptr %17, align 8, !tbaa !9
  %118 = getelementptr inbounds double, ptr %116, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !12
  store double %119, ptr %15, align 8, !tbaa !12
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %120, i32 0, i32 6
  %122 = load ptr, ptr %121, align 8, !tbaa !11
  %123 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !11
  %125 = load i64, ptr %16, align 8, !tbaa !9
  %126 = getelementptr inbounds i64, ptr %124, i64 %125
  %127 = load i64, ptr %126, align 8, !tbaa !9
  %128 = getelementptr inbounds ptr, ptr %122, 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
  %132 = load double, ptr %131, align 8, !tbaa !12
  %133 = load ptr, ptr %9, 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 i64, ptr %16, align 8, !tbaa !9
  %137 = getelementptr inbounds ptr, ptr %135, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  %139 = load i64, ptr %17, align 8, !tbaa !9
  %140 = getelementptr inbounds double, ptr %138, i64 %139
  store double %132, ptr %140, align 8, !tbaa !12
  %141 = load double, ptr %15, align 8, !tbaa !12
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %142, i32 0, i32 6
  %144 = load ptr, ptr %143, align 8, !tbaa !11
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !11
  %147 = load i64, ptr %16, align 8, !tbaa !9
  %148 = getelementptr inbounds i64, ptr %146, i64 %147
  %149 = load i64, ptr %148, align 8, !tbaa !9
  %150 = getelementptr inbounds ptr, ptr %144, i64 %149
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  %152 = load i64, ptr %17, align 8, !tbaa !9
  %153 = getelementptr inbounds double, ptr %151, i64 %152
  store double %141, ptr %153, align 8, !tbaa !12
  br label %154

154:                                              ; preds = %110
  %155 = load i64, ptr %17, align 8, !tbaa !9
  %156 = add nsw i64 %155, 1
  store i64 %156, ptr %17, align 8, !tbaa !9
  br label %105, !llvm.loop !18

157:                                              ; preds = %105
  br label %158

158:                                              ; preds = %157, %96
  br label %159

159:                                              ; preds = %158
  %160 = load i64, ptr %16, align 8, !tbaa !9
  %161 = add nsw i64 %160, 1
  store i64 %161, ptr %16, align 8, !tbaa !9
  br label %91, !llvm.loop !19

162:                                              ; preds = %91
  %163 = load i64, ptr %8, align 8, !tbaa !9
  %164 = load i64, ptr %10, align 8, !tbaa !9
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %163, i64 noundef %164, ptr noundef %165, i64 noundef 0, i64 noundef 0, i1 noundef zeroext false, i1 noundef zeroext true, i64 noundef 0, ptr noundef %166, i64 noundef 0, i64 noundef 0, ptr noundef %167)
  %168 = load i64, ptr %8, align 8, !tbaa !9
  %169 = load i64, ptr %10, align 8, !tbaa !9
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = load ptr, ptr %9, align 8, !tbaa !5
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %168, i64 noundef %169, ptr noundef %170, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %171, i64 noundef 0, i64 noundef 0, ptr noundef %172)
  %173 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 1, ptr %173, align 8, !tbaa !9
  %174 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %174)
  store i32 0, ptr %20, align 4
  br label %175

175:                                              ; preds = %162, %83, %31
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #4
  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 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  %176 = load i32, ptr %20, align 4
  switch i32 %176, label %178 [
    i32 0, label %177
    i32 1, label %177
  ]

177:                                              ; preds = %175, %175
  ret void

178:                                              ; preds = %175
  unreachable
}

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

declare void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #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_impl9rmatrixluEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #3

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

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) #3

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

%"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_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%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: 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; 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 uwtable
define dso_local void @_ZN11alglib_impl17rmatrixsolvemfastEPNS_9ae_matrixElS1_lPlPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr nocapture noundef writeonly %4, ptr noundef %5) local_unnamed_addr #2 {
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 80, 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 %5, ptr noundef nonnull %7)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %8, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef nonnull %8, ptr noundef %0, ptr noundef %5, i1 noundef zeroext true)
  store i64 0, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 2, ptr noundef %5, i1 noundef zeroext true)
  %10 = icmp slt i64 %1, 1
  %11 = icmp slt i64 %3, 1
  %or.cond = or i1 %10, %11
  br i1 %or.cond, label %._crit_edge89, label %12

12:                                               ; preds = %6
  call void @_ZN11alglib_impl9rmatrixluEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %1, i64 noundef %1, ptr noundef nonnull %9, ptr noundef %5)
  %13 = getelementptr inbounds i8, ptr %8, i64 72
  br label %42

14:                                               ; preds = %42
  %15 = add nuw nsw i64 %.06477, 1
  %exitcond.not = icmp eq i64 %15, %1
  br i1 %exitcond.not, label %.preheader76, label %42, !llvm.loop !9

.preheader76:                                     ; preds = %14
  %.not.not7080 = icmp sgt i64 %1, 0
  br i1 %.not.not7080, label %.lr.ph83, label %._crit_edge

.lr.ph83:                                         ; preds = %.preheader76
  %16 = getelementptr inbounds i8, ptr %9, i64 56
  %.not71.not78 = icmp sgt i64 %3, 0
  %17 = getelementptr inbounds i8, ptr %2, i64 72
  br i1 %.not71.not78, label %.lr.ph83.split.us, label %._crit_edge

.lr.ph83.split.us:                                ; preds = %.lr.ph83, %..loopexit_crit_edge.us
  %.16581.us = phi i64 [ %41, %..loopexit_crit_edge.us ], [ 0, %.lr.ph83 ]
  %18 = load ptr, ptr %16, align 8, !tbaa !11
  %19 = getelementptr inbounds i64, ptr %18, i64 %.16581.us
  %20 = load i64, ptr %19, align 8, !tbaa !5
  %.not.us = icmp eq i64 %20, %.16581.us
  br i1 %.not.us, label %..loopexit_crit_edge.us, label %.preheader75.us

.preheader75.us:                                  ; preds = %.lr.ph83.split.us, %.preheader75.us
  %.179.us = phi i64 [ %40, %.preheader75.us ], [ 0, %.lr.ph83.split.us ]
  %21 = load ptr, ptr %17, align 8, !tbaa !11
  %22 = getelementptr inbounds ptr, ptr %21, i64 %.16581.us
  %23 = load ptr, ptr %22, align 8, !tbaa !12
  %24 = getelementptr inbounds double, ptr %23, i64 %.179.us
  %25 = load double, ptr %24, align 8, !tbaa !14
  %26 = load ptr, ptr %16, align 8, !tbaa !11
  %27 = getelementptr inbounds i64, ptr %26, i64 %.16581.us
  %28 = load i64, ptr %27, align 8, !tbaa !5
  %29 = getelementptr inbounds ptr, ptr %21, i64 %28
  %30 = load ptr, ptr %29, align 8, !tbaa !12
  %31 = getelementptr inbounds double, ptr %30, i64 %.179.us
  %32 = load double, ptr %31, align 8, !tbaa !14
  store double %32, ptr %24, align 8, !tbaa !14
  %33 = load ptr, ptr %17, align 8, !tbaa !11
  %34 = load ptr, ptr %16, align 8, !tbaa !11
  %35 = getelementptr inbounds i64, ptr %34, i64 %.16581.us
  %36 = load i64, ptr %35, align 8, !tbaa !5
  %37 = getelementptr inbounds ptr, ptr %33, i64 %36
  %38 = load ptr, ptr %37, align 8, !tbaa !12
  %39 = getelementptr inbounds double, ptr %38, i64 %.179.us
  store double %25, ptr %39, align 8, !tbaa !14
  %40 = add nuw nsw i64 %.179.us, 1
  %exitcond92.not = icmp eq i64 %40, %3
  br i1 %exitcond92.not, label %..loopexit_crit_edge.us, label %.preheader75.us, !llvm.loop !16

..loopexit_crit_edge.us:                          ; preds = %.preheader75.us, %.lr.ph83.split.us
  %41 = add nuw nsw i64 %.16581.us, 1
  %exitcond93.not = icmp eq i64 %41, %1
  br i1 %exitcond93.not, label %._crit_edge, label %.lr.ph83.split.us, !llvm.loop !17

42:                                               ; preds = %12, %14
  %.06477 = phi i64 [ 0, %12 ], [ %15, %14 ]
  %43 = load ptr, ptr %13, align 8, !tbaa !11
  %44 = getelementptr inbounds ptr, ptr %43, i64 %.06477
  %45 = load ptr, ptr %44, align 8, !tbaa !12
  %46 = getelementptr inbounds double, ptr %45, i64 %.06477
  %47 = load double, ptr %46, align 8, !tbaa !14
  %48 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %47, double noundef 0.000000e+00)
  br i1 %48, label %.preheader74, label %14

.preheader74:                                     ; preds = %42
  %.not72.not87 = icmp sgt i64 %1, 0
  br i1 %.not72.not87, label %.preheader.lr.ph, label %._crit_edge89

.preheader.lr.ph:                                 ; preds = %.preheader74
  %.not73.not84 = icmp sgt i64 %3, 0
  %49 = getelementptr inbounds i8, ptr %2, i64 72
  br i1 %.not73.not84, label %.preheader.us.preheader, label %._crit_edge89

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

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge86.us
  %.06388.us = phi i64 [ %76, %._crit_edge86.us ], [ 0, %.preheader.us.preheader ]
  br i1 %50, label %._crit_edge86.us.unr-lcssa, label %.preheader.us.new

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

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

.epil.preheader:                                  ; preds = %._crit_edge86.us.unr-lcssa, %.epil.preheader
  %.085.us.epil = phi i64 [ %75, %.epil.preheader ], [ %.085.us.unr, %._crit_edge86.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge86.us.unr-lcssa ]
  %71 = load ptr, ptr %49, align 8, !tbaa !11
  %72 = getelementptr inbounds ptr, ptr %71, i64 %.06388.us
  %73 = load ptr, ptr %72, align 8, !tbaa !12
  %74 = getelementptr inbounds double, ptr %73, i64 %.085.us.epil
  store double 0.000000e+00, ptr %74, align 8, !tbaa !14
  %75 = add nuw nsw i64 %.085.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_edge86.us, label %.epil.preheader, !llvm.loop !19

._crit_edge86.us:                                 ; preds = %.epil.preheader, %._crit_edge86.us.unr-lcssa
  %76 = add nuw nsw i64 %.06388.us, 1
  %exitcond95.not = icmp eq i64 %76, %1
  br i1 %exitcond95.not, label %._crit_edge89, label %.preheader.us, !llvm.loop !21

._crit_edge:                                      ; preds = %..loopexit_crit_edge.us, %.lr.ph83, %.preheader76
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %3, ptr noundef nonnull %8, i64 noundef 0, i64 noundef 0, i1 noundef zeroext false, i1 noundef zeroext true, i64 noundef 0, ptr noundef %2, i64 noundef 0, i64 noundef 0, ptr noundef %5)
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %3, ptr noundef nonnull %8, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %2, i64 noundef 0, i64 noundef 0, ptr noundef %5)
  br label %._crit_edge89

._crit_edge89:                                    ; preds = %._crit_edge86.us, %.preheader74, %.preheader.lr.ph, %6, %._crit_edge
  %.sink = phi i64 [ 1, %._crit_edge ], [ -1, %6 ], [ -3, %.preheader.lr.ph ], [ -3, %.preheader74 ], [ -3, %._crit_edge86.us ]
  store i64 %.sink, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  ret void
}

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) 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_impl9rmatrixluEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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 #3

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 = 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