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

; 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.1 }
%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 }
%"struct.alglib_impl::matinvreport" = type { double, double }

@.str.377 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.378 = external hidden unnamed_addr constant [42 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 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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18_matinvreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl16rmatrixtrinverseEPNS_9ae_matrixElbbPlPNS_12matinvreportEPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl17smatrixgevdreduceEPNS_9ae_matrixElbS1_blS1_PbPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, i1 noundef zeroext %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #3 {
  %10 = alloca i1, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca i8, align 1
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.alglib_impl::ae_frame", align 8
  %21 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca %"struct.alglib_impl::ae_vector", align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca double, align 8
  %28 = alloca %"struct.alglib_impl::matinvreport", align 8
  %29 = alloca i64, align 8
  %30 = alloca i8, align 1
  %31 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store i64 %1, ptr %12, align 8, !tbaa !9
  %32 = zext i1 %2 to i8
  store i8 %32, ptr %13, align 1, !tbaa !11
  store ptr %3, ptr %14, align 8, !tbaa !5
  %33 = zext i1 %4 to i8
  store i8 %33, ptr %15, align 1, !tbaa !11
  store i64 %5, ptr %16, align 8, !tbaa !9
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #4
  %34 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %34, ptr noundef %20)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 16, i1 false)
  %35 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %35)
  %36 = load ptr, ptr %18, align 8, !tbaa !5
  store i8 0, ptr %36, align 1, !tbaa !11
  %37 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 3, ptr noundef %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %23, i64 noundef 0, i64 noundef 3, ptr noundef %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %24, i64 noundef 0, i64 noundef 3, ptr noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_matinvreport_initEPvPNS_8ae_stateEb(ptr noundef %28, ptr noundef %41, i1 noundef zeroext true)
  %42 = load i64, ptr %12, align 8, !tbaa !9
  %43 = icmp sgt i64 %42, 0
  %44 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef @.str.377, ptr noundef %44)
  %45 = load i64, ptr %16, align 8, !tbaa !9
  %46 = icmp eq i64 %45, 1
  br i1 %46, label %53, label %47

47:                                               ; preds = %9
  %48 = load i64, ptr %16, align 8, !tbaa !9
  %49 = icmp eq i64 %48, 2
  br i1 %49, label %53, label %50

50:                                               ; preds = %47
  %51 = load i64, ptr %16, align 8, !tbaa !9
  %52 = icmp eq i64 %51, 3
  br label %53

53:                                               ; preds = %50, %47, %9
  %54 = phi i1 [ true, %47 ], [ true, %9 ], [ %52, %50 ]
  %55 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %54, ptr noundef @.str.378, ptr noundef %55)
  store i8 1, ptr %30, align 1, !tbaa !11
  %56 = load i64, ptr %16, align 8, !tbaa !9
  %57 = icmp eq i64 %56, 1
  br i1 %57, label %58, label %336

58:                                               ; preds = %53
  %59 = load i64, ptr %12, align 8, !tbaa !9
  %60 = sub nsw i64 %59, 1
  %61 = add nsw i64 %60, 1
  %62 = load i64, ptr %12, align 8, !tbaa !9
  %63 = sub nsw i64 %62, 1
  %64 = add nsw i64 %63, 1
  %65 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %21, i64 noundef %61, i64 noundef %64, ptr noundef %65)
  %66 = load i8, ptr %15, align 1, !tbaa !11, !range !13, !noundef !14
  %67 = trunc i8 %66 to i1
  br i1 %67, label %68, label %100

68:                                               ; preds = %58
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %69

69:                                               ; preds = %96, %68
  %70 = load i64, ptr %25, align 8, !tbaa !9
  %71 = load i64, ptr %12, align 8, !tbaa !9
  %72 = sub nsw i64 %71, 1
  %73 = icmp sle i64 %70, %72
  br i1 %73, label %74, label %99

74:                                               ; preds = %69
  %75 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %76 = load ptr, ptr %75, align 8, !tbaa !15
  %77 = load i64, ptr %25, align 8, !tbaa !9
  %78 = getelementptr inbounds ptr, ptr %76, i64 %77
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = load i64, ptr %25, align 8, !tbaa !9
  %81 = getelementptr inbounds double, ptr %79, i64 %80
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 2
  %83 = load i64, ptr %82, align 8, !tbaa !16
  %84 = load ptr, ptr %14, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %84, i32 0, i32 6
  %86 = load ptr, ptr %85, align 8, !tbaa !15
  %87 = load i64, ptr %25, align 8, !tbaa !9
  %88 = getelementptr inbounds ptr, ptr %86, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = load i64, ptr %25, align 8, !tbaa !9
  %91 = getelementptr inbounds double, ptr %89, i64 %90
  %92 = load i64, ptr %25, align 8, !tbaa !9
  %93 = load i64, ptr %12, align 8, !tbaa !9
  %94 = sub nsw i64 %93, 1
  %95 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %92, i64 noundef %94)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %81, i64 noundef %83, ptr noundef %91, i64 noundef 1, i64 noundef %95)
  br label %96

96:                                               ; preds = %74
  %97 = load i64, ptr %25, align 8, !tbaa !9
  %98 = add nsw i64 %97, 1
  store i64 %98, ptr %25, align 8, !tbaa !9
  br label %69, !llvm.loop !19

99:                                               ; preds = %69
  br label %126

100:                                              ; preds = %58
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %101

101:                                              ; preds = %122, %100
  %102 = load i64, ptr %25, align 8, !tbaa !9
  %103 = load i64, ptr %12, align 8, !tbaa !9
  %104 = sub nsw i64 %103, 1
  %105 = icmp sle i64 %102, %104
  br i1 %105, label %106, label %125

106:                                              ; preds = %101
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %108 = load ptr, ptr %107, align 8, !tbaa !15
  %109 = load i64, ptr %25, align 8, !tbaa !9
  %110 = getelementptr inbounds ptr, ptr %108, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = getelementptr inbounds double, ptr %111, i64 0
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %113, i32 0, i32 6
  %115 = load ptr, ptr %114, align 8, !tbaa !15
  %116 = load i64, ptr %25, align 8, !tbaa !9
  %117 = getelementptr inbounds ptr, ptr %115, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = getelementptr inbounds double, ptr %118, i64 0
  %120 = load i64, ptr %25, align 8, !tbaa !9
  %121 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %120)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %112, i64 noundef 1, ptr noundef %119, i64 noundef 1, i64 noundef %121)
  br label %122

122:                                              ; preds = %106
  %123 = load i64, ptr %25, align 8, !tbaa !9
  %124 = add nsw i64 %123, 1
  store i64 %124, ptr %25, align 8, !tbaa !9
  br label %101, !llvm.loop !21

125:                                              ; preds = %101
  br label %126

126:                                              ; preds = %125, %99
  %127 = load i64, ptr %12, align 8, !tbaa !9
  %128 = load ptr, ptr %19, align 8, !tbaa !5
  %129 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %21, i64 noundef %127, i1 noundef zeroext false, ptr noundef %128)
  br i1 %129, label %134, label %130

130:                                              ; preds = %126
  store i8 0, ptr %30, align 1, !tbaa !11
  %131 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %131)
  %132 = load i8, ptr %30, align 1, !tbaa !11, !range !13, !noundef !14
  %133 = trunc i8 %132 to i1
  store i1 %133, ptr %10, align 1
  store i32 1, ptr %31, align 4
  br label %735

134:                                              ; preds = %126
  %135 = load i64, ptr %12, align 8, !tbaa !9
  %136 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixtrinverseEPNS_9ae_matrixElbbPlPNS_12matinvreportEPNS_8ae_stateE(ptr noundef %21, i64 noundef %135, i1 noundef zeroext false, i1 noundef zeroext false, ptr noundef %29, ptr noundef %28, ptr noundef %136)
  %137 = load i64, ptr %29, align 8, !tbaa !9
  %138 = icmp sle i64 %137, 0
  br i1 %138, label %139, label %143

139:                                              ; preds = %134
  store i8 0, ptr %30, align 1, !tbaa !11
  %140 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %140)
  %141 = load i8, ptr %30, align 1, !tbaa !11, !range !13, !noundef !14
  %142 = trunc i8 %141 to i1
  store i1 %142, ptr %10, align 1
  store i32 1, ptr %31, align 4
  br label %735

143:                                              ; preds = %134
  %144 = load i64, ptr %12, align 8, !tbaa !9
  %145 = add nsw i64 %144, 1
  %146 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef %145, ptr noundef %146)
  %147 = load i64, ptr %12, align 8, !tbaa !9
  %148 = add nsw i64 %147, 1
  %149 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %23, i64 noundef %148, ptr noundef %149)
  %150 = load ptr, ptr %17, align 8, !tbaa !5
  %151 = load i64, ptr %12, align 8, !tbaa !9
  %152 = sub nsw i64 %151, 1
  %153 = add nsw i64 %152, 1
  %154 = load i64, ptr %12, align 8, !tbaa !9
  %155 = sub nsw i64 %154, 1
  %156 = add nsw i64 %155, 1
  %157 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %150, i64 noundef %153, i64 noundef %156, ptr noundef %157)
  store i64 1, ptr %26, align 8, !tbaa !9
  br label %158

158:                                              ; preds = %242, %143
  %159 = load i64, ptr %26, align 8, !tbaa !9
  %160 = load i64, ptr %12, align 8, !tbaa !9
  %161 = icmp sle i64 %159, %160
  br i1 %161, label %162, label %245

162:                                              ; preds = %158
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %164 = load ptr, ptr %163, align 8, !tbaa !15
  %165 = getelementptr inbounds double, ptr %164, i64 1
  %166 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %167 = load ptr, ptr %166, align 8, !tbaa !15
  %168 = load i64, ptr %26, align 8, !tbaa !9
  %169 = sub nsw i64 %168, 1
  %170 = getelementptr inbounds ptr, ptr %167, i64 %169
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = getelementptr inbounds double, ptr %171, i64 0
  %173 = load i64, ptr %26, align 8, !tbaa !9
  %174 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %173)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %165, i64 noundef 1, ptr noundef %172, i64 noundef 1, i64 noundef %174)
  %175 = load ptr, ptr %11, align 8, !tbaa !5
  %176 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %177 = trunc i8 %176 to i1
  %178 = load i64, ptr %26, align 8, !tbaa !9
  %179 = sub nsw i64 %178, 1
  %180 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef %175, i1 noundef zeroext %177, i64 noundef 0, i64 noundef %179, ptr noundef %22, double noundef 1.000000e+00, ptr noundef %23, ptr noundef %180)
  %181 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %182 = trunc i8 %181 to i1
  br i1 %182, label %183, label %195

183:                                              ; preds = %162
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  %185 = load i64, ptr %26, align 8, !tbaa !9
  %186 = sub nsw i64 %185, 1
  %187 = load i64, ptr %26, align 8, !tbaa !9
  %188 = load i64, ptr %12, align 8, !tbaa !9
  %189 = sub nsw i64 %188, 1
  %190 = load i64, ptr %26, align 8, !tbaa !9
  %191 = load i64, ptr %26, align 8, !tbaa !9
  %192 = add nsw i64 %191, 1
  %193 = load i64, ptr %12, align 8, !tbaa !9
  %194 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef %184, i64 noundef 0, i64 noundef %186, i64 noundef %187, i64 noundef %189, i1 noundef zeroext true, ptr noundef %22, i64 noundef 1, i64 noundef %190, double noundef 1.000000e+00, ptr noundef %23, i64 noundef %192, i64 noundef %193, double noundef 0.000000e+00, ptr noundef %194)
  br label %207

195:                                              ; preds = %162
  %196 = load ptr, ptr %11, align 8, !tbaa !5
  %197 = load i64, ptr %26, align 8, !tbaa !9
  %198 = load i64, ptr %12, align 8, !tbaa !9
  %199 = sub nsw i64 %198, 1
  %200 = load i64, ptr %26, align 8, !tbaa !9
  %201 = sub nsw i64 %200, 1
  %202 = load i64, ptr %26, align 8, !tbaa !9
  %203 = load i64, ptr %26, align 8, !tbaa !9
  %204 = add nsw i64 %203, 1
  %205 = load i64, ptr %12, align 8, !tbaa !9
  %206 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef %196, i64 noundef %197, i64 noundef %199, i64 noundef 0, i64 noundef %201, i1 noundef zeroext false, ptr noundef %22, i64 noundef 1, i64 noundef %202, double noundef 1.000000e+00, ptr noundef %23, i64 noundef %204, i64 noundef %205, double noundef 0.000000e+00, ptr noundef %206)
  br label %207

207:                                              ; preds = %195, %183
  store i64 1, ptr %25, align 8, !tbaa !9
  br label %208

208:                                              ; preds = %238, %207
  %209 = load i64, ptr %25, align 8, !tbaa !9
  %210 = load i64, ptr %12, align 8, !tbaa !9
  %211 = icmp sle i64 %209, %210
  br i1 %211, label %212, label %241

212:                                              ; preds = %208
  %213 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %214 = load ptr, ptr %213, align 8, !tbaa !15
  %215 = load i64, ptr %25, align 8, !tbaa !9
  %216 = sub nsw i64 %215, 1
  %217 = getelementptr inbounds ptr, ptr %214, i64 %216
  %218 = load ptr, ptr %217, align 8, !tbaa !5
  %219 = getelementptr inbounds double, ptr %218, i64 0
  %220 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %221 = load ptr, ptr %220, align 8, !tbaa !15
  %222 = getelementptr inbounds double, ptr %221, i64 1
  %223 = load i64, ptr %25, align 8, !tbaa !9
  %224 = sub nsw i64 %223, 1
  %225 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %224)
  %226 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %219, i64 noundef 1, ptr noundef %222, i64 noundef 1, i64 noundef %225)
  store double %226, ptr %27, align 8, !tbaa !22
  %227 = load double, ptr %27, align 8, !tbaa !22
  %228 = load ptr, ptr %17, align 8, !tbaa !5
  %229 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %228, i32 0, i32 6
  %230 = load ptr, ptr %229, align 8, !tbaa !15
  %231 = load i64, ptr %25, align 8, !tbaa !9
  %232 = sub nsw i64 %231, 1
  %233 = getelementptr inbounds ptr, ptr %230, i64 %232
  %234 = load ptr, ptr %233, align 8, !tbaa !5
  %235 = load i64, ptr %26, align 8, !tbaa !9
  %236 = sub nsw i64 %235, 1
  %237 = getelementptr inbounds double, ptr %234, i64 %236
  store double %227, ptr %237, align 8, !tbaa !22
  br label %238

238:                                              ; preds = %212
  %239 = load i64, ptr %25, align 8, !tbaa !9
  %240 = add nsw i64 %239, 1
  store i64 %240, ptr %25, align 8, !tbaa !9
  br label %208, !llvm.loop !24

241:                                              ; preds = %208
  br label %242

242:                                              ; preds = %241
  %243 = load i64, ptr %26, align 8, !tbaa !9
  %244 = add nsw i64 %243, 1
  store i64 %244, ptr %26, align 8, !tbaa !9
  br label %158, !llvm.loop !25

245:                                              ; preds = %158
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %246

246:                                              ; preds = %269, %245
  %247 = load i64, ptr %25, align 8, !tbaa !9
  %248 = load i64, ptr %12, align 8, !tbaa !9
  %249 = sub nsw i64 %248, 1
  %250 = icmp sle i64 %247, %249
  br i1 %250, label %251, label %272

251:                                              ; preds = %246
  %252 = load ptr, ptr %11, align 8, !tbaa !5
  %253 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %252, i32 0, i32 6
  %254 = load ptr, ptr %253, align 8, !tbaa !15
  %255 = load i64, ptr %25, align 8, !tbaa !9
  %256 = getelementptr inbounds ptr, ptr %254, i64 %255
  %257 = load ptr, ptr %256, align 8, !tbaa !5
  %258 = getelementptr inbounds double, ptr %257, i64 0
  %259 = load ptr, ptr %17, align 8, !tbaa !5
  %260 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %259, i32 0, i32 6
  %261 = load ptr, ptr %260, align 8, !tbaa !15
  %262 = load i64, ptr %25, align 8, !tbaa !9
  %263 = getelementptr inbounds ptr, ptr %261, i64 %262
  %264 = load ptr, ptr %263, align 8, !tbaa !5
  %265 = getelementptr inbounds double, ptr %264, i64 0
  %266 = load i64, ptr %12, align 8, !tbaa !9
  %267 = sub nsw i64 %266, 1
  %268 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %267)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %258, i64 noundef 1, ptr noundef %265, i64 noundef 1, i64 noundef %268)
  br label %269

269:                                              ; preds = %251
  %270 = load i64, ptr %25, align 8, !tbaa !9
  %271 = add nsw i64 %270, 1
  store i64 %271, ptr %25, align 8, !tbaa !9
  br label %246, !llvm.loop !26

272:                                              ; preds = %246
  %273 = load ptr, ptr %18, align 8, !tbaa !5
  store i8 1, ptr %273, align 1, !tbaa !11
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %274

274:                                              ; preds = %298, %272
  %275 = load i64, ptr %25, align 8, !tbaa !9
  %276 = load i64, ptr %12, align 8, !tbaa !9
  %277 = sub nsw i64 %276, 1
  %278 = icmp sle i64 %275, %277
  br i1 %278, label %279, label %301

279:                                              ; preds = %274
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %280

280:                                              ; preds = %294, %279
  %281 = load i64, ptr %26, align 8, !tbaa !9
  %282 = load i64, ptr %25, align 8, !tbaa !9
  %283 = sub nsw i64 %282, 1
  %284 = icmp sle i64 %281, %283
  br i1 %284, label %285, label %297

285:                                              ; preds = %280
  %286 = load ptr, ptr %17, align 8, !tbaa !5
  %287 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %286, i32 0, i32 6
  %288 = load ptr, ptr %287, align 8, !tbaa !15
  %289 = load i64, ptr %25, align 8, !tbaa !9
  %290 = getelementptr inbounds ptr, ptr %288, i64 %289
  %291 = load ptr, ptr %290, align 8, !tbaa !5
  %292 = load i64, ptr %26, align 8, !tbaa !9
  %293 = getelementptr inbounds double, ptr %291, i64 %292
  store double 0.000000e+00, ptr %293, align 8, !tbaa !22
  br label %294

294:                                              ; preds = %285
  %295 = load i64, ptr %26, align 8, !tbaa !9
  %296 = add nsw i64 %295, 1
  store i64 %296, ptr %26, align 8, !tbaa !9
  br label %280, !llvm.loop !27

297:                                              ; preds = %280
  br label %298

298:                                              ; preds = %297
  %299 = load i64, ptr %25, align 8, !tbaa !9
  %300 = add nsw i64 %299, 1
  store i64 %300, ptr %25, align 8, !tbaa !9
  br label %274, !llvm.loop !28

301:                                              ; preds = %274
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %302

302:                                              ; preds = %329, %301
  %303 = load i64, ptr %25, align 8, !tbaa !9
  %304 = load i64, ptr %12, align 8, !tbaa !9
  %305 = sub nsw i64 %304, 1
  %306 = icmp sle i64 %303, %305
  br i1 %306, label %307, label %332

307:                                              ; preds = %302
  %308 = load ptr, ptr %17, align 8, !tbaa !5
  %309 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %308, i32 0, i32 6
  %310 = load ptr, ptr %309, align 8, !tbaa !15
  %311 = load i64, ptr %25, align 8, !tbaa !9
  %312 = getelementptr inbounds ptr, ptr %310, i64 %311
  %313 = load ptr, ptr %312, align 8, !tbaa !5
  %314 = load i64, ptr %25, align 8, !tbaa !9
  %315 = getelementptr inbounds double, ptr %313, i64 %314
  %316 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %317 = load ptr, ptr %316, align 8, !tbaa !15
  %318 = load i64, ptr %25, align 8, !tbaa !9
  %319 = getelementptr inbounds ptr, ptr %317, i64 %318
  %320 = load ptr, ptr %319, align 8, !tbaa !5
  %321 = load i64, ptr %25, align 8, !tbaa !9
  %322 = getelementptr inbounds double, ptr %320, i64 %321
  %323 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 2
  %324 = load i64, ptr %323, align 8, !tbaa !16
  %325 = load i64, ptr %25, align 8, !tbaa !9
  %326 = load i64, ptr %12, align 8, !tbaa !9
  %327 = sub nsw i64 %326, 1
  %328 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %325, i64 noundef %327)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %315, i64 noundef 1, ptr noundef %322, i64 noundef %324, i64 noundef %328)
  br label %329

329:                                              ; preds = %307
  %330 = load i64, ptr %25, align 8, !tbaa !9
  %331 = add nsw i64 %330, 1
  store i64 %331, ptr %25, align 8, !tbaa !9
  br label %302, !llvm.loop !29

332:                                              ; preds = %302
  %333 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %333)
  %334 = load i8, ptr %30, align 1, !tbaa !11, !range !13, !noundef !14
  %335 = trunc i8 %334 to i1
  store i1 %335, ptr %10, align 1
  store i32 1, ptr %31, align 4
  br label %735

336:                                              ; preds = %53
  %337 = load i64, ptr %16, align 8, !tbaa !9
  %338 = icmp eq i64 %337, 2
  br i1 %338, label %342, label %339

339:                                              ; preds = %336
  %340 = load i64, ptr %16, align 8, !tbaa !9
  %341 = icmp eq i64 %340, 3
  br i1 %341, label %342, label %731

342:                                              ; preds = %339, %336
  %343 = load i64, ptr %12, align 8, !tbaa !9
  %344 = sub nsw i64 %343, 1
  %345 = add nsw i64 %344, 1
  %346 = load i64, ptr %12, align 8, !tbaa !9
  %347 = sub nsw i64 %346, 1
  %348 = add nsw i64 %347, 1
  %349 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %21, i64 noundef %345, i64 noundef %348, ptr noundef %349)
  %350 = load i8, ptr %15, align 1, !tbaa !11, !range !13, !noundef !14
  %351 = trunc i8 %350 to i1
  br i1 %351, label %352, label %382

352:                                              ; preds = %342
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %353

353:                                              ; preds = %378, %352
  %354 = load i64, ptr %25, align 8, !tbaa !9
  %355 = load i64, ptr %12, align 8, !tbaa !9
  %356 = sub nsw i64 %355, 1
  %357 = icmp sle i64 %354, %356
  br i1 %357, label %358, label %381

358:                                              ; preds = %353
  %359 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %360 = load ptr, ptr %359, align 8, !tbaa !15
  %361 = load i64, ptr %25, align 8, !tbaa !9
  %362 = getelementptr inbounds ptr, ptr %360, i64 %361
  %363 = load ptr, ptr %362, align 8, !tbaa !5
  %364 = load i64, ptr %25, align 8, !tbaa !9
  %365 = getelementptr inbounds double, ptr %363, i64 %364
  %366 = load ptr, ptr %14, align 8, !tbaa !5
  %367 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %366, i32 0, i32 6
  %368 = load ptr, ptr %367, align 8, !tbaa !15
  %369 = load i64, ptr %25, align 8, !tbaa !9
  %370 = getelementptr inbounds ptr, ptr %368, i64 %369
  %371 = load ptr, ptr %370, align 8, !tbaa !5
  %372 = load i64, ptr %25, align 8, !tbaa !9
  %373 = getelementptr inbounds double, ptr %371, i64 %372
  %374 = load i64, ptr %25, align 8, !tbaa !9
  %375 = load i64, ptr %12, align 8, !tbaa !9
  %376 = sub nsw i64 %375, 1
  %377 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %374, i64 noundef %376)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %365, i64 noundef 1, ptr noundef %373, i64 noundef 1, i64 noundef %377)
  br label %378

378:                                              ; preds = %358
  %379 = load i64, ptr %25, align 8, !tbaa !9
  %380 = add nsw i64 %379, 1
  store i64 %380, ptr %25, align 8, !tbaa !9
  br label %353, !llvm.loop !30

381:                                              ; preds = %353
  br label %415

382:                                              ; preds = %342
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %383

383:                                              ; preds = %411, %382
  %384 = load i64, ptr %25, align 8, !tbaa !9
  %385 = load i64, ptr %12, align 8, !tbaa !9
  %386 = sub nsw i64 %385, 1
  %387 = icmp sle i64 %384, %386
  br i1 %387, label %388, label %414

388:                                              ; preds = %383
  %389 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %390 = load ptr, ptr %389, align 8, !tbaa !15
  %391 = load i64, ptr %25, align 8, !tbaa !9
  %392 = getelementptr inbounds ptr, ptr %390, i64 %391
  %393 = load ptr, ptr %392, align 8, !tbaa !5
  %394 = load i64, ptr %25, align 8, !tbaa !9
  %395 = getelementptr inbounds double, ptr %393, i64 %394
  %396 = load ptr, ptr %14, align 8, !tbaa !5
  %397 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %396, i32 0, i32 6
  %398 = load ptr, ptr %397, align 8, !tbaa !15
  %399 = load i64, ptr %25, align 8, !tbaa !9
  %400 = getelementptr inbounds ptr, ptr %398, i64 %399
  %401 = load ptr, ptr %400, align 8, !tbaa !5
  %402 = load i64, ptr %25, align 8, !tbaa !9
  %403 = getelementptr inbounds double, ptr %401, i64 %402
  %404 = load ptr, ptr %14, align 8, !tbaa !5
  %405 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %404, i32 0, i32 2
  %406 = load i64, ptr %405, align 8, !tbaa !16
  %407 = load i64, ptr %25, align 8, !tbaa !9
  %408 = load i64, ptr %12, align 8, !tbaa !9
  %409 = sub nsw i64 %408, 1
  %410 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %407, i64 noundef %409)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %395, i64 noundef 1, ptr noundef %403, i64 noundef %406, i64 noundef %410)
  br label %411

411:                                              ; preds = %388
  %412 = load i64, ptr %25, align 8, !tbaa !9
  %413 = add nsw i64 %412, 1
  store i64 %413, ptr %25, align 8, !tbaa !9
  br label %383, !llvm.loop !31

414:                                              ; preds = %383
  br label %415

415:                                              ; preds = %414, %381
  %416 = load i64, ptr %12, align 8, !tbaa !9
  %417 = load ptr, ptr %19, align 8, !tbaa !5
  %418 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %21, i64 noundef %416, i1 noundef zeroext true, ptr noundef %417)
  br i1 %418, label %423, label %419

419:                                              ; preds = %415
  store i8 0, ptr %30, align 1, !tbaa !11
  %420 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %420)
  %421 = load i8, ptr %30, align 1, !tbaa !11, !range !13, !noundef !14
  %422 = trunc i8 %421 to i1
  store i1 %422, ptr %10, align 1
  store i32 1, ptr %31, align 4
  br label %735

423:                                              ; preds = %415
  %424 = load i64, ptr %12, align 8, !tbaa !9
  %425 = add nsw i64 %424, 1
  %426 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef %425, ptr noundef %426)
  %427 = load i64, ptr %12, align 8, !tbaa !9
  %428 = add nsw i64 %427, 1
  %429 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %23, i64 noundef %428, ptr noundef %429)
  %430 = load i64, ptr %12, align 8, !tbaa !9
  %431 = add nsw i64 %430, 1
  %432 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %24, i64 noundef %431, ptr noundef %432)
  %433 = load ptr, ptr %17, align 8, !tbaa !5
  %434 = load i64, ptr %12, align 8, !tbaa !9
  %435 = sub nsw i64 %434, 1
  %436 = add nsw i64 %435, 1
  %437 = load i64, ptr %12, align 8, !tbaa !9
  %438 = sub nsw i64 %437, 1
  %439 = add nsw i64 %438, 1
  %440 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %433, i64 noundef %436, i64 noundef %439, ptr noundef %440)
  store i64 1, ptr %26, align 8, !tbaa !9
  br label %441

441:                                              ; preds = %565, %423
  %442 = load i64, ptr %26, align 8, !tbaa !9
  %443 = load i64, ptr %12, align 8, !tbaa !9
  %444 = icmp sle i64 %442, %443
  br i1 %444, label %445, label %568

445:                                              ; preds = %441
  %446 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %447 = load ptr, ptr %446, align 8, !tbaa !15
  %448 = getelementptr inbounds double, ptr %447, i64 1
  %449 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %450 = load ptr, ptr %449, align 8, !tbaa !15
  %451 = load i64, ptr %26, align 8, !tbaa !9
  %452 = sub nsw i64 %451, 1
  %453 = getelementptr inbounds ptr, ptr %450, i64 %452
  %454 = load ptr, ptr %453, align 8, !tbaa !5
  %455 = load i64, ptr %26, align 8, !tbaa !9
  %456 = sub nsw i64 %455, 1
  %457 = getelementptr inbounds double, ptr %454, i64 %456
  %458 = load i64, ptr %12, align 8, !tbaa !9
  %459 = load i64, ptr %26, align 8, !tbaa !9
  %460 = sub nsw i64 %458, %459
  %461 = add nsw i64 %460, 1
  %462 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %461)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %448, i64 noundef 1, ptr noundef %457, i64 noundef 1, i64 noundef %462)
  %463 = load ptr, ptr %11, align 8, !tbaa !5
  %464 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %465 = trunc i8 %464 to i1
  %466 = load i64, ptr %26, align 8, !tbaa !9
  %467 = sub nsw i64 %466, 1
  %468 = load i64, ptr %12, align 8, !tbaa !9
  %469 = sub nsw i64 %468, 1
  %470 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef %463, i1 noundef zeroext %465, i64 noundef %467, i64 noundef %469, ptr noundef %22, double noundef 1.000000e+00, ptr noundef %24, ptr noundef %470)
  %471 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %472 = load ptr, ptr %471, align 8, !tbaa !15
  %473 = load i64, ptr %26, align 8, !tbaa !9
  %474 = getelementptr inbounds double, ptr %472, i64 %473
  %475 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %476 = load ptr, ptr %475, align 8, !tbaa !15
  %477 = getelementptr inbounds double, ptr %476, i64 1
  %478 = load i64, ptr %26, align 8, !tbaa !9
  %479 = load i64, ptr %12, align 8, !tbaa !9
  %480 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %478, i64 noundef %479)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %474, i64 noundef 1, ptr noundef %477, i64 noundef 1, i64 noundef %480)
  %481 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %482 = load ptr, ptr %481, align 8, !tbaa !15
  %483 = load i64, ptr %26, align 8, !tbaa !9
  %484 = getelementptr inbounds double, ptr %482, i64 %483
  %485 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %486 = load ptr, ptr %485, align 8, !tbaa !15
  %487 = load i64, ptr %26, align 8, !tbaa !9
  %488 = sub nsw i64 %487, 1
  %489 = getelementptr inbounds ptr, ptr %486, i64 %488
  %490 = load ptr, ptr %489, align 8, !tbaa !5
  %491 = load i64, ptr %26, align 8, !tbaa !9
  %492 = sub nsw i64 %491, 1
  %493 = getelementptr inbounds double, ptr %490, i64 %492
  %494 = load i64, ptr %26, align 8, !tbaa !9
  %495 = load i64, ptr %12, align 8, !tbaa !9
  %496 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %494, i64 noundef %495)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %484, i64 noundef 1, ptr noundef %493, i64 noundef 1, i64 noundef %496)
  %497 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %498 = trunc i8 %497 to i1
  br i1 %498, label %499, label %512

499:                                              ; preds = %445
  %500 = load ptr, ptr %11, align 8, !tbaa !5
  %501 = load i64, ptr %26, align 8, !tbaa !9
  %502 = sub nsw i64 %501, 2
  %503 = load i64, ptr %26, align 8, !tbaa !9
  %504 = sub nsw i64 %503, 1
  %505 = load i64, ptr %12, align 8, !tbaa !9
  %506 = sub nsw i64 %505, 1
  %507 = load i64, ptr %26, align 8, !tbaa !9
  %508 = load i64, ptr %12, align 8, !tbaa !9
  %509 = load i64, ptr %26, align 8, !tbaa !9
  %510 = sub nsw i64 %509, 1
  %511 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef %500, i64 noundef 0, i64 noundef %502, i64 noundef %504, i64 noundef %506, i1 noundef zeroext false, ptr noundef %22, i64 noundef %507, i64 noundef %508, double noundef 1.000000e+00, ptr noundef %23, i64 noundef 1, i64 noundef %510, double noundef 0.000000e+00, ptr noundef %511)
  br label %525

512:                                              ; preds = %445
  %513 = load ptr, ptr %11, align 8, !tbaa !5
  %514 = load i64, ptr %26, align 8, !tbaa !9
  %515 = sub nsw i64 %514, 1
  %516 = load i64, ptr %12, align 8, !tbaa !9
  %517 = sub nsw i64 %516, 1
  %518 = load i64, ptr %26, align 8, !tbaa !9
  %519 = sub nsw i64 %518, 2
  %520 = load i64, ptr %26, align 8, !tbaa !9
  %521 = load i64, ptr %12, align 8, !tbaa !9
  %522 = load i64, ptr %26, align 8, !tbaa !9
  %523 = sub nsw i64 %522, 1
  %524 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef %513, i64 noundef %515, i64 noundef %517, i64 noundef 0, i64 noundef %519, i1 noundef zeroext true, ptr noundef %22, i64 noundef %520, i64 noundef %521, double noundef 1.000000e+00, ptr noundef %23, i64 noundef 1, i64 noundef %523, double noundef 0.000000e+00, ptr noundef %524)
  br label %525

525:                                              ; preds = %512, %499
  store i64 1, ptr %25, align 8, !tbaa !9
  br label %526

526:                                              ; preds = %561, %525
  %527 = load i64, ptr %25, align 8, !tbaa !9
  %528 = load i64, ptr %12, align 8, !tbaa !9
  %529 = icmp sle i64 %527, %528
  br i1 %529, label %530, label %564

530:                                              ; preds = %526
  %531 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %532 = load ptr, ptr %531, align 8, !tbaa !15
  %533 = load i64, ptr %25, align 8, !tbaa !9
  %534 = sub nsw i64 %533, 1
  %535 = getelementptr inbounds ptr, ptr %532, i64 %534
  %536 = load ptr, ptr %535, align 8, !tbaa !5
  %537 = load i64, ptr %25, align 8, !tbaa !9
  %538 = sub nsw i64 %537, 1
  %539 = getelementptr inbounds double, ptr %536, i64 %538
  %540 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %541 = load ptr, ptr %540, align 8, !tbaa !15
  %542 = load i64, ptr %25, align 8, !tbaa !9
  %543 = getelementptr inbounds double, ptr %541, i64 %542
  %544 = load i64, ptr %25, align 8, !tbaa !9
  %545 = sub nsw i64 %544, 1
  %546 = load i64, ptr %12, align 8, !tbaa !9
  %547 = sub nsw i64 %546, 1
  %548 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %545, i64 noundef %547)
  %549 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %539, i64 noundef 1, ptr noundef %543, i64 noundef 1, i64 noundef %548)
  store double %549, ptr %27, align 8, !tbaa !22
  %550 = load double, ptr %27, align 8, !tbaa !22
  %551 = load ptr, ptr %17, align 8, !tbaa !5
  %552 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %551, i32 0, i32 6
  %553 = load ptr, ptr %552, align 8, !tbaa !15
  %554 = load i64, ptr %25, align 8, !tbaa !9
  %555 = sub nsw i64 %554, 1
  %556 = getelementptr inbounds ptr, ptr %553, i64 %555
  %557 = load ptr, ptr %556, align 8, !tbaa !5
  %558 = load i64, ptr %26, align 8, !tbaa !9
  %559 = sub nsw i64 %558, 1
  %560 = getelementptr inbounds double, ptr %557, i64 %559
  store double %550, ptr %560, align 8, !tbaa !22
  br label %561

561:                                              ; preds = %530
  %562 = load i64, ptr %25, align 8, !tbaa !9
  %563 = add nsw i64 %562, 1
  store i64 %563, ptr %25, align 8, !tbaa !9
  br label %526, !llvm.loop !32

564:                                              ; preds = %526
  br label %565

565:                                              ; preds = %564
  %566 = load i64, ptr %26, align 8, !tbaa !9
  %567 = add nsw i64 %566, 1
  store i64 %567, ptr %26, align 8, !tbaa !9
  br label %441, !llvm.loop !33

568:                                              ; preds = %441
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %569

569:                                              ; preds = %592, %568
  %570 = load i64, ptr %25, align 8, !tbaa !9
  %571 = load i64, ptr %12, align 8, !tbaa !9
  %572 = sub nsw i64 %571, 1
  %573 = icmp sle i64 %570, %572
  br i1 %573, label %574, label %595

574:                                              ; preds = %569
  %575 = load ptr, ptr %11, align 8, !tbaa !5
  %576 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %575, i32 0, i32 6
  %577 = load ptr, ptr %576, align 8, !tbaa !15
  %578 = load i64, ptr %25, align 8, !tbaa !9
  %579 = getelementptr inbounds ptr, ptr %577, i64 %578
  %580 = load ptr, ptr %579, align 8, !tbaa !5
  %581 = getelementptr inbounds double, ptr %580, i64 0
  %582 = load ptr, ptr %17, align 8, !tbaa !5
  %583 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %582, i32 0, i32 6
  %584 = load ptr, ptr %583, align 8, !tbaa !15
  %585 = load i64, ptr %25, align 8, !tbaa !9
  %586 = getelementptr inbounds ptr, ptr %584, i64 %585
  %587 = load ptr, ptr %586, align 8, !tbaa !5
  %588 = getelementptr inbounds double, ptr %587, i64 0
  %589 = load i64, ptr %12, align 8, !tbaa !9
  %590 = sub nsw i64 %589, 1
  %591 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %590)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %581, i64 noundef 1, ptr noundef %588, i64 noundef 1, i64 noundef %591)
  br label %592

592:                                              ; preds = %574
  %593 = load i64, ptr %25, align 8, !tbaa !9
  %594 = add nsw i64 %593, 1
  store i64 %594, ptr %25, align 8, !tbaa !9
  br label %569, !llvm.loop !34

595:                                              ; preds = %569
  %596 = load i64, ptr %16, align 8, !tbaa !9
  %597 = icmp eq i64 %596, 2
  br i1 %597, label %598, label %666

598:                                              ; preds = %595
  %599 = load i64, ptr %12, align 8, !tbaa !9
  %600 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixtrinverseEPNS_9ae_matrixElbbPlPNS_12matinvreportEPNS_8ae_stateE(ptr noundef %21, i64 noundef %599, i1 noundef zeroext true, i1 noundef zeroext false, ptr noundef %29, ptr noundef %28, ptr noundef %600)
  %601 = load i64, ptr %29, align 8, !tbaa !9
  %602 = icmp sle i64 %601, 0
  br i1 %602, label %603, label %607

603:                                              ; preds = %598
  store i8 0, ptr %30, align 1, !tbaa !11
  %604 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %604)
  %605 = load i8, ptr %30, align 1, !tbaa !11, !range !13, !noundef !14
  %606 = trunc i8 %605 to i1
  store i1 %606, ptr %10, align 1
  store i32 1, ptr %31, align 4
  br label %735

607:                                              ; preds = %598
  %608 = load ptr, ptr %18, align 8, !tbaa !5
  store i8 1, ptr %608, align 1, !tbaa !11
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %609

609:                                              ; preds = %633, %607
  %610 = load i64, ptr %25, align 8, !tbaa !9
  %611 = load i64, ptr %12, align 8, !tbaa !9
  %612 = sub nsw i64 %611, 1
  %613 = icmp sle i64 %610, %612
  br i1 %613, label %614, label %636

614:                                              ; preds = %609
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %615

615:                                              ; preds = %629, %614
  %616 = load i64, ptr %26, align 8, !tbaa !9
  %617 = load i64, ptr %25, align 8, !tbaa !9
  %618 = sub nsw i64 %617, 1
  %619 = icmp sle i64 %616, %618
  br i1 %619, label %620, label %632

620:                                              ; preds = %615
  %621 = load ptr, ptr %17, align 8, !tbaa !5
  %622 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %621, i32 0, i32 6
  %623 = load ptr, ptr %622, align 8, !tbaa !15
  %624 = load i64, ptr %25, align 8, !tbaa !9
  %625 = getelementptr inbounds ptr, ptr %623, i64 %624
  %626 = load ptr, ptr %625, align 8, !tbaa !5
  %627 = load i64, ptr %26, align 8, !tbaa !9
  %628 = getelementptr inbounds double, ptr %626, i64 %627
  store double 0.000000e+00, ptr %628, align 8, !tbaa !22
  br label %629

629:                                              ; preds = %620
  %630 = load i64, ptr %26, align 8, !tbaa !9
  %631 = add nsw i64 %630, 1
  store i64 %631, ptr %26, align 8, !tbaa !9
  br label %615, !llvm.loop !35

632:                                              ; preds = %615
  br label %633

633:                                              ; preds = %632
  %634 = load i64, ptr %25, align 8, !tbaa !9
  %635 = add nsw i64 %634, 1
  store i64 %635, ptr %25, align 8, !tbaa !9
  br label %609, !llvm.loop !36

636:                                              ; preds = %609
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %637

637:                                              ; preds = %662, %636
  %638 = load i64, ptr %25, align 8, !tbaa !9
  %639 = load i64, ptr %12, align 8, !tbaa !9
  %640 = sub nsw i64 %639, 1
  %641 = icmp sle i64 %638, %640
  br i1 %641, label %642, label %665

642:                                              ; preds = %637
  %643 = load ptr, ptr %17, align 8, !tbaa !5
  %644 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %643, i32 0, i32 6
  %645 = load ptr, ptr %644, align 8, !tbaa !15
  %646 = load i64, ptr %25, align 8, !tbaa !9
  %647 = getelementptr inbounds ptr, ptr %645, i64 %646
  %648 = load ptr, ptr %647, align 8, !tbaa !5
  %649 = load i64, ptr %25, align 8, !tbaa !9
  %650 = getelementptr inbounds double, ptr %648, i64 %649
  %651 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %652 = load ptr, ptr %651, align 8, !tbaa !15
  %653 = load i64, ptr %25, align 8, !tbaa !9
  %654 = getelementptr inbounds ptr, ptr %652, i64 %653
  %655 = load ptr, ptr %654, align 8, !tbaa !5
  %656 = load i64, ptr %25, align 8, !tbaa !9
  %657 = getelementptr inbounds double, ptr %655, i64 %656
  %658 = load i64, ptr %25, align 8, !tbaa !9
  %659 = load i64, ptr %12, align 8, !tbaa !9
  %660 = sub nsw i64 %659, 1
  %661 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %658, i64 noundef %660)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %650, i64 noundef 1, ptr noundef %657, i64 noundef 1, i64 noundef %661)
  br label %662

662:                                              ; preds = %642
  %663 = load i64, ptr %25, align 8, !tbaa !9
  %664 = add nsw i64 %663, 1
  store i64 %664, ptr %25, align 8, !tbaa !9
  br label %637, !llvm.loop !37

665:                                              ; preds = %637
  br label %730

666:                                              ; preds = %595
  %667 = load ptr, ptr %18, align 8, !tbaa !5
  store i8 0, ptr %667, align 1, !tbaa !11
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %668

668:                                              ; preds = %694, %666
  %669 = load i64, ptr %25, align 8, !tbaa !9
  %670 = load i64, ptr %12, align 8, !tbaa !9
  %671 = sub nsw i64 %670, 1
  %672 = icmp sle i64 %669, %671
  br i1 %672, label %673, label %697

673:                                              ; preds = %668
  %674 = load i64, ptr %25, align 8, !tbaa !9
  %675 = add nsw i64 %674, 1
  store i64 %675, ptr %26, align 8, !tbaa !9
  br label %676

676:                                              ; preds = %690, %673
  %677 = load i64, ptr %26, align 8, !tbaa !9
  %678 = load i64, ptr %12, align 8, !tbaa !9
  %679 = sub nsw i64 %678, 1
  %680 = icmp sle i64 %677, %679
  br i1 %680, label %681, label %693

681:                                              ; preds = %676
  %682 = load ptr, ptr %17, align 8, !tbaa !5
  %683 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %682, i32 0, i32 6
  %684 = load ptr, ptr %683, align 8, !tbaa !15
  %685 = load i64, ptr %25, align 8, !tbaa !9
  %686 = getelementptr inbounds ptr, ptr %684, i64 %685
  %687 = load ptr, ptr %686, align 8, !tbaa !5
  %688 = load i64, ptr %26, align 8, !tbaa !9
  %689 = getelementptr inbounds double, ptr %687, i64 %688
  store double 0.000000e+00, ptr %689, align 8, !tbaa !22
  br label %690

690:                                              ; preds = %681
  %691 = load i64, ptr %26, align 8, !tbaa !9
  %692 = add nsw i64 %691, 1
  store i64 %692, ptr %26, align 8, !tbaa !9
  br label %676, !llvm.loop !38

693:                                              ; preds = %676
  br label %694

694:                                              ; preds = %693
  %695 = load i64, ptr %25, align 8, !tbaa !9
  %696 = add nsw i64 %695, 1
  store i64 %696, ptr %25, align 8, !tbaa !9
  br label %668, !llvm.loop !39

697:                                              ; preds = %668
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %698

698:                                              ; preds = %726, %697
  %699 = load i64, ptr %25, align 8, !tbaa !9
  %700 = load i64, ptr %12, align 8, !tbaa !9
  %701 = sub nsw i64 %700, 1
  %702 = icmp sle i64 %699, %701
  br i1 %702, label %703, label %729

703:                                              ; preds = %698
  %704 = load ptr, ptr %17, align 8, !tbaa !5
  %705 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %704, i32 0, i32 6
  %706 = load ptr, ptr %705, align 8, !tbaa !15
  %707 = load i64, ptr %25, align 8, !tbaa !9
  %708 = getelementptr inbounds ptr, ptr %706, i64 %707
  %709 = load ptr, ptr %708, align 8, !tbaa !5
  %710 = load i64, ptr %25, align 8, !tbaa !9
  %711 = getelementptr inbounds double, ptr %709, i64 %710
  %712 = load ptr, ptr %17, align 8, !tbaa !5
  %713 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %712, i32 0, i32 2
  %714 = load i64, ptr %713, align 8, !tbaa !16
  %715 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %716 = load ptr, ptr %715, align 8, !tbaa !15
  %717 = load i64, ptr %25, align 8, !tbaa !9
  %718 = getelementptr inbounds ptr, ptr %716, i64 %717
  %719 = load ptr, ptr %718, align 8, !tbaa !5
  %720 = load i64, ptr %25, align 8, !tbaa !9
  %721 = getelementptr inbounds double, ptr %719, i64 %720
  %722 = load i64, ptr %25, align 8, !tbaa !9
  %723 = load i64, ptr %12, align 8, !tbaa !9
  %724 = sub nsw i64 %723, 1
  %725 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %722, i64 noundef %724)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %711, i64 noundef %714, ptr noundef %721, i64 noundef 1, i64 noundef %725)
  br label %726

726:                                              ; preds = %703
  %727 = load i64, ptr %25, align 8, !tbaa !9
  %728 = add nsw i64 %727, 1
  store i64 %728, ptr %25, align 8, !tbaa !9
  br label %698, !llvm.loop !40

729:                                              ; preds = %698
  br label %730

730:                                              ; preds = %729, %665
  br label %731

731:                                              ; preds = %730, %339
  %732 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %732)
  %733 = load i8, ptr %30, align 1, !tbaa !11, !range !13, !noundef !14
  %734 = trunc i8 %733 to i1
  store i1 %734, ptr %10, align 1
  store i32 1, ptr %31, align 4
  br label %735

735:                                              ; preds = %731, %603, %419, %332, %139, %130
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #4
  %736 = load i1, ptr %10, align 1
  ret i1 %736
}

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #2

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #2

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #2

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i64 noundef, i64 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i1 noundef zeroext, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #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 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !10, i64 16}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !18, i64 40, !7, i64 72}
!18 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !7, i64 0}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}
!30 = distinct !{!30, !20}
!31 = distinct !{!31, !20}
!32 = distinct !{!32, !20}
!33 = distinct !{!33, !20}
!34 = distinct !{!34, !20}
!35 = distinct !{!35, !20}
!36 = distinct !{!36, !20}
!37 = distinct !{!37, !20}
!38 = distinct !{!38, !20}
!39 = distinct !{!39, !20}
!40 = distinct !{!40, !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"

%"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.1 }
%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 }
%"struct.alglib_impl::matinvreport" = type { double, double }

@.str.377 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.378 = external hidden unnamed_addr constant [42 x i8], align 1

; 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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18_matinvreport_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl16rmatrixtrinverseEPNS_9ae_matrixElbbPlPNS_12matinvreportEPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl17smatrixgevdreduceEPNS_9ae_matrixElbS1_blS1_PbPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr nocapture noundef readonly %3, i1 noundef zeroext %4, i64 noundef %5, ptr noundef %6, ptr nocapture noundef writeonly %7, ptr noundef %8) local_unnamed_addr #3 {
  %10 = alloca %"struct.alglib_impl::ae_frame", align 8
  %11 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::matinvreport", align 8
  %16 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %8, ptr noundef nonnull %10)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %11, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, i8 0, i64 16, i1 false)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %6)
  store i8 0, ptr %7, align 1, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_matinvreport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %15, ptr noundef %8, i1 noundef zeroext true)
  %17 = icmp sgt i64 %1, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.377, ptr noundef %8)
  %18 = icmp eq i64 %5, 1
  %19 = icmp eq i64 %5, 2
  %20 = add i64 %5, -1
  %spec.select = icmp ult i64 %20, 3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.378, ptr noundef %8)
  br i1 %18, label %21, label %138

21:                                               ; preds = %9
  %22 = add nsw i64 %1, -1
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %1, i64 noundef %1, ptr noundef %8)
  br i1 %4, label %.preheader304, label %.preheader305

.preheader305:                                    ; preds = %21
  br i1 %17, label %.lr.ph356, label %.loopexit

.lr.ph356:                                        ; preds = %.preheader305
  %23 = getelementptr inbounds i8, ptr %11, i64 72
  %24 = getelementptr inbounds i8, ptr %3, i64 72
  br label %40

.preheader304:                                    ; preds = %21
  br i1 %17, label %.lr.ph359, label %.loopexit

.lr.ph359:                                        ; preds = %.preheader304
  %25 = getelementptr inbounds i8, ptr %11, i64 72
  %26 = getelementptr inbounds i8, ptr %11, i64 16
  %27 = getelementptr inbounds i8, ptr %3, i64 72
  br label %28

28:                                               ; preds = %.lr.ph359, %28
  %.0267358 = phi i64 [ 0, %.lr.ph359 ], [ %39, %28 ]
  %29 = load ptr, ptr %25, align 8, !tbaa !9
  %30 = getelementptr inbounds ptr, ptr %29, i64 %.0267358
  %31 = load ptr, ptr %30, align 8, !tbaa !10
  %32 = getelementptr inbounds double, ptr %31, i64 %.0267358
  %33 = load i64, ptr %26, align 8, !tbaa !12
  %34 = load ptr, ptr %27, align 8, !tbaa !9
  %35 = getelementptr inbounds ptr, ptr %34, i64 %.0267358
  %36 = load ptr, ptr %35, align 8, !tbaa !10
  %37 = getelementptr inbounds double, ptr %36, i64 %.0267358
  %38 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.0267358, i64 noundef %22)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %32, i64 noundef %33, ptr noundef %37, i64 noundef 1, i64 noundef %38)
  %39 = add nuw nsw i64 %.0267358, 1
  %exitcond397.not = icmp eq i64 %39, %1
  br i1 %exitcond397.not, label %.loopexit, label %28, !llvm.loop !16

40:                                               ; preds = %.lr.ph356, %40
  %.1268355 = phi i64 [ 0, %.lr.ph356 ], [ %48, %40 ]
  %41 = load ptr, ptr %23, align 8, !tbaa !9
  %42 = getelementptr inbounds ptr, ptr %41, i64 %.1268355
  %43 = load ptr, ptr %42, align 8, !tbaa !10
  %44 = load ptr, ptr %24, align 8, !tbaa !9
  %45 = getelementptr inbounds ptr, ptr %44, i64 %.1268355
  %46 = load ptr, ptr %45, align 8, !tbaa !10
  %47 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.1268355)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %43, i64 noundef 1, ptr noundef %46, i64 noundef 1, i64 noundef %47)
  %48 = add nuw nsw i64 %.1268355, 1
  %exitcond396.not = icmp eq i64 %48, %1
  br i1 %exitcond396.not, label %.loopexit, label %40, !llvm.loop !18

.loopexit:                                        ; preds = %40, %28, %.preheader305, %.preheader304
  %49 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %1, i1 noundef zeroext false, ptr noundef %8)
  br i1 %49, label %50, label %._crit_edge382

50:                                               ; preds = %.loopexit
  call void @_ZN11alglib_impl16rmatrixtrinverseEPNS_9ae_matrixElbbPlPNS_12matinvreportEPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %1, i1 noundef zeroext false, i1 noundef zeroext false, ptr noundef nonnull %16, ptr noundef nonnull %15, ptr noundef %8)
  %51 = load i64, ptr %16, align 8, !tbaa !19
  %52 = icmp slt i64 %51, 1
  br i1 %52, label %._crit_edge382, label %53

53:                                               ; preds = %50
  %54 = add i64 %1, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %54, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %54, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %1, i64 noundef %1, ptr noundef %8)
  %.not296365 = icmp slt i64 %1, 1
  br i1 %.not296365, label %._crit_edge382.sink.split, label %.lr.ph368

.lr.ph368:                                        ; preds = %53
  %55 = getelementptr inbounds i8, ptr %12, i64 56
  %56 = getelementptr inbounds i8, ptr %11, i64 72
  %57 = getelementptr inbounds i8, ptr %13, i64 56
  %58 = getelementptr inbounds i8, ptr %6, i64 72
  br label %61

.preheader303:                                    ; preds = %._crit_edge364
  br i1 %17, label %.lr.ph371, label %._crit_edge382.sink.split

.lr.ph371:                                        ; preds = %.preheader303
  %59 = getelementptr inbounds i8, ptr %0, i64 72
  %60 = getelementptr inbounds i8, ptr %6, i64 72
  br label %86

61:                                               ; preds = %.lr.ph368, %._crit_edge364
  %.0366 = phi i64 [ 1, %.lr.ph368 ], [ %85, %._crit_edge364 ]
  %62 = load ptr, ptr %55, align 8, !tbaa !9
  %63 = getelementptr inbounds i8, ptr %62, i64 8
  %64 = load ptr, ptr %56, align 8, !tbaa !9
  %65 = add nsw i64 %.0366, -1
  %66 = getelementptr inbounds ptr, ptr %64, i64 %65
  %67 = load ptr, ptr %66, align 8, !tbaa !10
  %68 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %.0366)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %63, i64 noundef 1, ptr noundef %67, i64 noundef 1, i64 noundef %68)
  call void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef %0, i1 noundef zeroext %2, i64 noundef 0, i64 noundef %65, ptr noundef nonnull %12, double noundef 1.000000e+00, ptr noundef nonnull %13, ptr noundef %8)
  %69 = add nuw nsw i64 %.0366, 1
  br i1 %2, label %70, label %71

70:                                               ; preds = %61
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef %0, i64 noundef 0, i64 noundef %65, i64 noundef %.0366, i64 noundef %22, i1 noundef zeroext true, ptr noundef nonnull %12, i64 noundef 1, i64 noundef %.0366, double noundef 1.000000e+00, ptr noundef nonnull %13, i64 noundef %69, i64 noundef %1, double noundef 0.000000e+00, ptr noundef %8)
  br label %.lr.ph363.preheader

71:                                               ; preds = %61
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef %0, i64 noundef %.0366, i64 noundef %22, i64 noundef 0, i64 noundef %65, i1 noundef zeroext false, ptr noundef nonnull %12, i64 noundef 1, i64 noundef %.0366, double noundef 1.000000e+00, ptr noundef nonnull %13, i64 noundef %69, i64 noundef %1, double noundef 0.000000e+00, ptr noundef %8)
  br label %.lr.ph363.preheader

.lr.ph363.preheader:                              ; preds = %70, %71
  br label %.lr.ph363

.lr.ph363:                                        ; preds = %.lr.ph363.preheader, %.lr.ph363
  %.2269361 = phi i64 [ %84, %.lr.ph363 ], [ 1, %.lr.ph363.preheader ]
  %72 = load ptr, ptr %56, align 8, !tbaa !9
  %73 = add nsw i64 %.2269361, -1
  %74 = getelementptr inbounds ptr, ptr %72, i64 %73
  %75 = load ptr, ptr %74, align 8, !tbaa !10
  %76 = load ptr, ptr %57, align 8, !tbaa !9
  %77 = getelementptr inbounds i8, ptr %76, i64 8
  %78 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %73)
  %79 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %75, i64 noundef 1, ptr noundef nonnull %77, i64 noundef 1, i64 noundef %78)
  %80 = load ptr, ptr %58, align 8, !tbaa !9
  %81 = getelementptr inbounds ptr, ptr %80, i64 %73
  %82 = load ptr, ptr %81, align 8, !tbaa !10
  %83 = getelementptr inbounds double, ptr %82, i64 %65
  store double %79, ptr %83, align 8, !tbaa !20
  %84 = add nuw i64 %.2269361, 1
  %exitcond398.not = icmp eq i64 %.2269361, %1
  br i1 %exitcond398.not, label %._crit_edge364, label %.lr.ph363, !llvm.loop !22

._crit_edge364:                                   ; preds = %.lr.ph363
  %85 = add nuw i64 %.0366, 1
  %exitcond399.not = icmp eq i64 %.0366, %1
  br i1 %exitcond399.not, label %.preheader303, label %61, !llvm.loop !23

86:                                               ; preds = %.lr.ph371, %86
  %.3270370 = phi i64 [ 0, %.lr.ph371 ], [ %94, %86 ]
  %87 = load ptr, ptr %59, align 8, !tbaa !9
  %88 = getelementptr inbounds ptr, ptr %87, i64 %.3270370
  %89 = load ptr, ptr %88, align 8, !tbaa !10
  %90 = load ptr, ptr %60, align 8, !tbaa !9
  %91 = getelementptr inbounds ptr, ptr %90, i64 %.3270370
  %92 = load ptr, ptr %91, align 8, !tbaa !10
  %93 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %22)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %89, i64 noundef 1, ptr noundef %92, i64 noundef 1, i64 noundef %93)
  %94 = add nuw nsw i64 %.3270370, 1
  %exitcond400.not = icmp eq i64 %94, %1
  br i1 %exitcond400.not, label %._crit_edge372, label %86, !llvm.loop !24

._crit_edge372:                                   ; preds = %86
  store i8 1, ptr %7, align 1, !tbaa !5
  br i1 %17, label %.preheader302.lr.ph, label %._crit_edge382

.preheader302.lr.ph:                              ; preds = %._crit_edge372
  %95 = getelementptr inbounds i8, ptr %6, i64 72
  br label %.preheader302

.preheader302:                                    ; preds = %.preheader302.lr.ph, %._crit_edge376
  %.4271378 = phi i64 [ 0, %.preheader302.lr.ph ], [ %125, %._crit_edge376 ]
  %.not300.not373.not = icmp eq i64 %.4271378, 0
  br i1 %.not300.not373.not, label %._crit_edge376, label %.lr.ph375.preheader

.lr.ph375.preheader:                              ; preds = %.preheader302
  %xtraiter419 = and i64 %.4271378, 3
  %96 = icmp ult i64 %.4271378, 4
  br i1 %96, label %._crit_edge376.loopexit.unr-lcssa, label %.lr.ph375.preheader.new

.lr.ph375.preheader.new:                          ; preds = %.lr.ph375.preheader
  %unroll_iter422 = and i64 %.4271378, 9223372036854775804
  br label %.lr.ph375

.preheader:                                       ; preds = %._crit_edge376
  br i1 %17, label %.lr.ph381, label %._crit_edge382

.lr.ph381:                                        ; preds = %.preheader
  %97 = getelementptr inbounds i8, ptr %6, i64 72
  %98 = getelementptr inbounds i8, ptr %11, i64 72
  %99 = getelementptr inbounds i8, ptr %11, i64 16
  br label %126

.lr.ph375:                                        ; preds = %.lr.ph375, %.lr.ph375.preheader.new
  %.1374 = phi i64 [ 0, %.lr.ph375.preheader.new ], [ %119, %.lr.ph375 ]
  %niter423 = phi i64 [ 0, %.lr.ph375.preheader.new ], [ %niter423.next.3, %.lr.ph375 ]
  %100 = load ptr, ptr %95, align 8, !tbaa !9
  %101 = getelementptr inbounds ptr, ptr %100, i64 %.4271378
  %102 = load ptr, ptr %101, align 8, !tbaa !10
  %103 = getelementptr inbounds double, ptr %102, i64 %.1374
  store double 0.000000e+00, ptr %103, align 8, !tbaa !20
  %104 = or disjoint i64 %.1374, 1
  %105 = load ptr, ptr %95, align 8, !tbaa !9
  %106 = getelementptr inbounds ptr, ptr %105, i64 %.4271378
  %107 = load ptr, ptr %106, align 8, !tbaa !10
  %108 = getelementptr inbounds double, ptr %107, i64 %104
  store double 0.000000e+00, ptr %108, align 8, !tbaa !20
  %109 = or disjoint i64 %.1374, 2
  %110 = load ptr, ptr %95, align 8, !tbaa !9
  %111 = getelementptr inbounds ptr, ptr %110, i64 %.4271378
  %112 = load ptr, ptr %111, align 8, !tbaa !10
  %113 = getelementptr inbounds double, ptr %112, i64 %109
  store double 0.000000e+00, ptr %113, align 8, !tbaa !20
  %114 = or disjoint i64 %.1374, 3
  %115 = load ptr, ptr %95, align 8, !tbaa !9
  %116 = getelementptr inbounds ptr, ptr %115, i64 %.4271378
  %117 = load ptr, ptr %116, align 8, !tbaa !10
  %118 = getelementptr inbounds double, ptr %117, i64 %114
  store double 0.000000e+00, ptr %118, align 8, !tbaa !20
  %119 = add nuw nsw i64 %.1374, 4
  %niter423.next.3 = add i64 %niter423, 4
  %niter423.ncmp.3 = icmp eq i64 %niter423.next.3, %unroll_iter422
  br i1 %niter423.ncmp.3, label %._crit_edge376.loopexit.unr-lcssa, label %.lr.ph375, !llvm.loop !25

._crit_edge376.loopexit.unr-lcssa:                ; preds = %.lr.ph375, %.lr.ph375.preheader
  %.1374.unr = phi i64 [ 0, %.lr.ph375.preheader ], [ %119, %.lr.ph375 ]
  %lcmp.mod421.not = icmp eq i64 %xtraiter419, 0
  br i1 %lcmp.mod421.not, label %._crit_edge376, label %.lr.ph375.epil

.lr.ph375.epil:                                   ; preds = %._crit_edge376.loopexit.unr-lcssa, %.lr.ph375.epil
  %.1374.epil = phi i64 [ %124, %.lr.ph375.epil ], [ %.1374.unr, %._crit_edge376.loopexit.unr-lcssa ]
  %epil.iter420 = phi i64 [ %epil.iter420.next, %.lr.ph375.epil ], [ 0, %._crit_edge376.loopexit.unr-lcssa ]
  %120 = load ptr, ptr %95, align 8, !tbaa !9
  %121 = getelementptr inbounds ptr, ptr %120, i64 %.4271378
  %122 = load ptr, ptr %121, align 8, !tbaa !10
  %123 = getelementptr inbounds double, ptr %122, i64 %.1374.epil
  store double 0.000000e+00, ptr %123, align 8, !tbaa !20
  %124 = add nuw nsw i64 %.1374.epil, 1
  %epil.iter420.next = add i64 %epil.iter420, 1
  %epil.iter420.cmp.not = icmp eq i64 %epil.iter420.next, %xtraiter419
  br i1 %epil.iter420.cmp.not, label %._crit_edge376, label %.lr.ph375.epil, !llvm.loop !26

._crit_edge376:                                   ; preds = %._crit_edge376.loopexit.unr-lcssa, %.lr.ph375.epil, %.preheader302
  %125 = add nuw nsw i64 %.4271378, 1
  %exitcond402.not = icmp eq i64 %125, %1
  br i1 %exitcond402.not, label %.preheader, label %.preheader302, !llvm.loop !28

126:                                              ; preds = %.lr.ph381, %126
  %.5380 = phi i64 [ 0, %.lr.ph381 ], [ %137, %126 ]
  %127 = load ptr, ptr %97, align 8, !tbaa !9
  %128 = getelementptr inbounds ptr, ptr %127, i64 %.5380
  %129 = load ptr, ptr %128, align 8, !tbaa !10
  %130 = getelementptr inbounds double, ptr %129, i64 %.5380
  %131 = load ptr, ptr %98, align 8, !tbaa !9
  %132 = getelementptr inbounds ptr, ptr %131, i64 %.5380
  %133 = load ptr, ptr %132, align 8, !tbaa !10
  %134 = getelementptr inbounds double, ptr %133, i64 %.5380
  %135 = load i64, ptr %99, align 8, !tbaa !12
  %136 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.5380, i64 noundef %22)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %130, i64 noundef 1, ptr noundef %134, i64 noundef %135, i64 noundef %136)
  %137 = add nuw nsw i64 %.5380, 1
  %exitcond403.not = icmp eq i64 %137, %1
  br i1 %exitcond403.not, label %._crit_edge382, label %126, !llvm.loop !29

138:                                              ; preds = %9
  %139 = and i64 %5, -2
  %or.cond3 = icmp eq i64 %139, 2
  br i1 %or.cond3, label %140, label %._crit_edge382

140:                                              ; preds = %138
  %141 = add nsw i64 %1, -1
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %1, i64 noundef %1, ptr noundef %8)
  br i1 %4, label %.preheader314, label %.preheader316

.preheader316:                                    ; preds = %140
  br i1 %17, label %.lr.ph, label %.loopexit315

.lr.ph:                                           ; preds = %.preheader316
  %142 = getelementptr inbounds i8, ptr %11, i64 72
  %143 = getelementptr inbounds i8, ptr %3, i64 72
  %144 = getelementptr inbounds i8, ptr %3, i64 16
  br label %158

.preheader314:                                    ; preds = %140
  br i1 %17, label %.lr.ph322, label %.loopexit315

.lr.ph322:                                        ; preds = %.preheader314
  %145 = getelementptr inbounds i8, ptr %11, i64 72
  %146 = getelementptr inbounds i8, ptr %3, i64 72
  br label %147

147:                                              ; preds = %.lr.ph322, %147
  %.6321 = phi i64 [ 0, %.lr.ph322 ], [ %157, %147 ]
  %148 = load ptr, ptr %145, align 8, !tbaa !9
  %149 = getelementptr inbounds ptr, ptr %148, i64 %.6321
  %150 = load ptr, ptr %149, align 8, !tbaa !10
  %151 = getelementptr inbounds double, ptr %150, i64 %.6321
  %152 = load ptr, ptr %146, align 8, !tbaa !9
  %153 = getelementptr inbounds ptr, ptr %152, i64 %.6321
  %154 = load ptr, ptr %153, align 8, !tbaa !10
  %155 = getelementptr inbounds double, ptr %154, i64 %.6321
  %156 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.6321, i64 noundef %141)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %151, i64 noundef 1, ptr noundef %155, i64 noundef 1, i64 noundef %156)
  %157 = add nuw nsw i64 %.6321, 1
  %exitcond387.not = icmp eq i64 %157, %1
  br i1 %exitcond387.not, label %.loopexit315, label %147, !llvm.loop !30

158:                                              ; preds = %.lr.ph, %158
  %.7319 = phi i64 [ 0, %.lr.ph ], [ %169, %158 ]
  %159 = load ptr, ptr %142, align 8, !tbaa !9
  %160 = getelementptr inbounds ptr, ptr %159, i64 %.7319
  %161 = load ptr, ptr %160, align 8, !tbaa !10
  %162 = getelementptr inbounds double, ptr %161, i64 %.7319
  %163 = load ptr, ptr %143, align 8, !tbaa !9
  %164 = getelementptr inbounds ptr, ptr %163, i64 %.7319
  %165 = load ptr, ptr %164, align 8, !tbaa !10
  %166 = getelementptr inbounds double, ptr %165, i64 %.7319
  %167 = load i64, ptr %144, align 8, !tbaa !12
  %168 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.7319, i64 noundef %141)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %162, i64 noundef 1, ptr noundef %166, i64 noundef %167, i64 noundef %168)
  %169 = add nuw nsw i64 %.7319, 1
  %exitcond.not = icmp eq i64 %169, %1
  br i1 %exitcond.not, label %.loopexit315, label %158, !llvm.loop !31

.loopexit315:                                     ; preds = %158, %147, %.preheader316, %.preheader314
  %170 = call noundef zeroext i1 @_ZN11alglib_impl17spdmatrixcholeskyEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %1, i1 noundef zeroext true, ptr noundef %8)
  br i1 %170, label %171, label %._crit_edge382

171:                                              ; preds = %.loopexit315
  %172 = add i64 %1, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %172, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %172, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %172, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %1, i64 noundef %1, ptr noundef %8)
  %.not326 = icmp slt i64 %1, 1
  br i1 %.not326, label %._crit_edge333, label %.lr.ph329

.lr.ph329:                                        ; preds = %171
  %173 = getelementptr inbounds i8, ptr %12, i64 56
  %174 = getelementptr inbounds i8, ptr %11, i64 72
  %175 = getelementptr inbounds i8, ptr %13, i64 56
  %176 = getelementptr inbounds i8, ptr %14, i64 56
  %177 = getelementptr inbounds i8, ptr %6, i64 72
  br label %180

.preheader313:                                    ; preds = %._crit_edge
  br i1 %17, label %.lr.ph332, label %._crit_edge333.thread

.lr.ph332:                                        ; preds = %.preheader313
  %178 = getelementptr inbounds i8, ptr %0, i64 72
  %179 = getelementptr inbounds i8, ptr %6, i64 72
  br label %220

180:                                              ; preds = %.lr.ph329, %._crit_edge
  %.2327 = phi i64 [ 1, %.lr.ph329 ], [ %219, %._crit_edge ]
  %181 = load ptr, ptr %173, align 8, !tbaa !9
  %182 = getelementptr inbounds i8, ptr %181, i64 8
  %183 = load ptr, ptr %174, align 8, !tbaa !9
  %184 = add nsw i64 %.2327, -1
  %185 = getelementptr inbounds ptr, ptr %183, i64 %184
  %186 = load ptr, ptr %185, align 8, !tbaa !10
  %187 = getelementptr inbounds double, ptr %186, i64 %184
  %188 = sub i64 %172, %.2327
  %189 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %188)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %182, i64 noundef 1, ptr noundef %187, i64 noundef 1, i64 noundef %189)
  call void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef %0, i1 noundef zeroext %2, i64 noundef %184, i64 noundef %141, ptr noundef nonnull %12, double noundef 1.000000e+00, ptr noundef nonnull %14, ptr noundef %8)
  %190 = load ptr, ptr %175, align 8, !tbaa !9
  %191 = getelementptr inbounds double, ptr %190, i64 %.2327
  %192 = load ptr, ptr %176, align 8, !tbaa !9
  %193 = getelementptr inbounds i8, ptr %192, i64 8
  %194 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.2327, i64 noundef %1)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %191, i64 noundef 1, ptr noundef nonnull %193, i64 noundef 1, i64 noundef %194)
  %195 = load ptr, ptr %173, align 8, !tbaa !9
  %196 = getelementptr inbounds double, ptr %195, i64 %.2327
  %197 = load ptr, ptr %174, align 8, !tbaa !9
  %198 = getelementptr inbounds ptr, ptr %197, i64 %184
  %199 = load ptr, ptr %198, align 8, !tbaa !10
  %200 = getelementptr inbounds double, ptr %199, i64 %184
  %201 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.2327, i64 noundef %1)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %196, i64 noundef 1, ptr noundef %200, i64 noundef 1, i64 noundef %201)
  %202 = add nsw i64 %.2327, -2
  br i1 %2, label %203, label %204

203:                                              ; preds = %180
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef %0, i64 noundef 0, i64 noundef %202, i64 noundef %184, i64 noundef %141, i1 noundef zeroext false, ptr noundef nonnull %12, i64 noundef %.2327, i64 noundef %1, double noundef 1.000000e+00, ptr noundef nonnull %13, i64 noundef 1, i64 noundef %184, double noundef 0.000000e+00, ptr noundef %8)
  br label %.lr.ph325.preheader

204:                                              ; preds = %180
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef %0, i64 noundef %184, i64 noundef %141, i64 noundef 0, i64 noundef %202, i1 noundef zeroext true, ptr noundef nonnull %12, i64 noundef %.2327, i64 noundef %1, double noundef 1.000000e+00, ptr noundef nonnull %13, i64 noundef 1, i64 noundef %184, double noundef 0.000000e+00, ptr noundef %8)
  br label %.lr.ph325.preheader

.lr.ph325.preheader:                              ; preds = %203, %204
  br label %.lr.ph325

.lr.ph325:                                        ; preds = %.lr.ph325.preheader, %.lr.ph325
  %.8324 = phi i64 [ %218, %.lr.ph325 ], [ 1, %.lr.ph325.preheader ]
  %205 = load ptr, ptr %174, align 8, !tbaa !9
  %206 = add nsw i64 %.8324, -1
  %207 = getelementptr inbounds ptr, ptr %205, i64 %206
  %208 = load ptr, ptr %207, align 8, !tbaa !10
  %209 = getelementptr inbounds double, ptr %208, i64 %206
  %210 = load ptr, ptr %175, align 8, !tbaa !9
  %211 = getelementptr inbounds double, ptr %210, i64 %.8324
  %212 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %206, i64 noundef %141)
  %213 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %209, i64 noundef 1, ptr noundef nonnull %211, i64 noundef 1, i64 noundef %212)
  %214 = load ptr, ptr %177, align 8, !tbaa !9
  %215 = getelementptr inbounds ptr, ptr %214, i64 %206
  %216 = load ptr, ptr %215, align 8, !tbaa !10
  %217 = getelementptr inbounds double, ptr %216, i64 %184
  store double %213, ptr %217, align 8, !tbaa !20
  %218 = add nuw i64 %.8324, 1
  %exitcond388.not = icmp eq i64 %.8324, %1
  br i1 %exitcond388.not, label %._crit_edge, label %.lr.ph325, !llvm.loop !32

._crit_edge:                                      ; preds = %.lr.ph325
  %219 = add nuw i64 %.2327, 1
  %exitcond389.not = icmp eq i64 %.2327, %1
  br i1 %exitcond389.not, label %.preheader313, label %180, !llvm.loop !33

220:                                              ; preds = %.lr.ph332, %220
  %.9331 = phi i64 [ 0, %.lr.ph332 ], [ %228, %220 ]
  %221 = load ptr, ptr %178, align 8, !tbaa !9
  %222 = getelementptr inbounds ptr, ptr %221, i64 %.9331
  %223 = load ptr, ptr %222, align 8, !tbaa !10
  %224 = load ptr, ptr %179, align 8, !tbaa !9
  %225 = getelementptr inbounds ptr, ptr %224, i64 %.9331
  %226 = load ptr, ptr %225, align 8, !tbaa !10
  %227 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %141)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %223, i64 noundef 1, ptr noundef %226, i64 noundef 1, i64 noundef %227)
  %228 = add nuw nsw i64 %.9331, 1
  %exitcond390.not = icmp eq i64 %228, %1
  br i1 %exitcond390.not, label %._crit_edge333, label %220, !llvm.loop !34

._crit_edge333:                                   ; preds = %220, %171
  br i1 %19, label %229, label %274

._crit_edge333.thread:                            ; preds = %.preheader313
  br i1 %19, label %229, label %._crit_edge382.sink.split

229:                                              ; preds = %._crit_edge333.thread, %._crit_edge333
  call void @_ZN11alglib_impl16rmatrixtrinverseEPNS_9ae_matrixElbbPlPNS_12matinvreportEPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %1, i1 noundef zeroext true, i1 noundef zeroext false, ptr noundef nonnull %16, ptr noundef nonnull %15, ptr noundef %8)
  %230 = load i64, ptr %16, align 8, !tbaa !19
  %231 = icmp slt i64 %230, 1
  br i1 %231, label %._crit_edge382, label %232

232:                                              ; preds = %229
  store i8 1, ptr %7, align 1, !tbaa !5
  br i1 %17, label %.preheader309.lr.ph, label %._crit_edge382

.preheader309.lr.ph:                              ; preds = %232
  %233 = getelementptr inbounds i8, ptr %6, i64 72
  br label %.preheader309

.preheader309:                                    ; preds = %.preheader309.lr.ph, %._crit_edge348
  %.10350 = phi i64 [ 0, %.preheader309.lr.ph ], [ %262, %._crit_edge348 ]
  %.not292.not345.not = icmp eq i64 %.10350, 0
  br i1 %.not292.not345.not, label %._crit_edge348, label %.lr.ph347.preheader

.lr.ph347.preheader:                              ; preds = %.preheader309
  %xtraiter415 = and i64 %.10350, 3
  %234 = icmp ult i64 %.10350, 4
  br i1 %234, label %._crit_edge348.loopexit.unr-lcssa, label %.lr.ph347.preheader.new

.lr.ph347.preheader.new:                          ; preds = %.lr.ph347.preheader
  %unroll_iter417 = and i64 %.10350, 9223372036854775804
  br label %.lr.ph347

.preheader307:                                    ; preds = %._crit_edge348
  br i1 %17, label %.lr.ph353, label %._crit_edge382

.lr.ph353:                                        ; preds = %.preheader307
  %235 = getelementptr inbounds i8, ptr %6, i64 72
  %236 = getelementptr inbounds i8, ptr %11, i64 72
  br label %263

.lr.ph347:                                        ; preds = %.lr.ph347, %.lr.ph347.preheader.new
  %.3346 = phi i64 [ 0, %.lr.ph347.preheader.new ], [ %256, %.lr.ph347 ]
  %niter418 = phi i64 [ 0, %.lr.ph347.preheader.new ], [ %niter418.next.3, %.lr.ph347 ]
  %237 = load ptr, ptr %233, align 8, !tbaa !9
  %238 = getelementptr inbounds ptr, ptr %237, i64 %.10350
  %239 = load ptr, ptr %238, align 8, !tbaa !10
  %240 = getelementptr inbounds double, ptr %239, i64 %.3346
  store double 0.000000e+00, ptr %240, align 8, !tbaa !20
  %241 = or disjoint i64 %.3346, 1
  %242 = load ptr, ptr %233, align 8, !tbaa !9
  %243 = getelementptr inbounds ptr, ptr %242, i64 %.10350
  %244 = load ptr, ptr %243, align 8, !tbaa !10
  %245 = getelementptr inbounds double, ptr %244, i64 %241
  store double 0.000000e+00, ptr %245, align 8, !tbaa !20
  %246 = or disjoint i64 %.3346, 2
  %247 = load ptr, ptr %233, align 8, !tbaa !9
  %248 = getelementptr inbounds ptr, ptr %247, i64 %.10350
  %249 = load ptr, ptr %248, align 8, !tbaa !10
  %250 = getelementptr inbounds double, ptr %249, i64 %246
  store double 0.000000e+00, ptr %250, align 8, !tbaa !20
  %251 = or disjoint i64 %.3346, 3
  %252 = load ptr, ptr %233, align 8, !tbaa !9
  %253 = getelementptr inbounds ptr, ptr %252, i64 %.10350
  %254 = load ptr, ptr %253, align 8, !tbaa !10
  %255 = getelementptr inbounds double, ptr %254, i64 %251
  store double 0.000000e+00, ptr %255, align 8, !tbaa !20
  %256 = add nuw nsw i64 %.3346, 4
  %niter418.next.3 = add i64 %niter418, 4
  %niter418.ncmp.3 = icmp eq i64 %niter418.next.3, %unroll_iter417
  br i1 %niter418.ncmp.3, label %._crit_edge348.loopexit.unr-lcssa, label %.lr.ph347, !llvm.loop !35

._crit_edge348.loopexit.unr-lcssa:                ; preds = %.lr.ph347, %.lr.ph347.preheader
  %.3346.unr = phi i64 [ 0, %.lr.ph347.preheader ], [ %256, %.lr.ph347 ]
  %lcmp.mod416.not = icmp eq i64 %xtraiter415, 0
  br i1 %lcmp.mod416.not, label %._crit_edge348, label %.lr.ph347.epil

.lr.ph347.epil:                                   ; preds = %._crit_edge348.loopexit.unr-lcssa, %.lr.ph347.epil
  %.3346.epil = phi i64 [ %261, %.lr.ph347.epil ], [ %.3346.unr, %._crit_edge348.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph347.epil ], [ 0, %._crit_edge348.loopexit.unr-lcssa ]
  %257 = load ptr, ptr %233, align 8, !tbaa !9
  %258 = getelementptr inbounds ptr, ptr %257, i64 %.10350
  %259 = load ptr, ptr %258, align 8, !tbaa !10
  %260 = getelementptr inbounds double, ptr %259, i64 %.3346.epil
  store double 0.000000e+00, ptr %260, align 8, !tbaa !20
  %261 = add nuw nsw i64 %.3346.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter415
  br i1 %epil.iter.cmp.not, label %._crit_edge348, label %.lr.ph347.epil, !llvm.loop !36

._crit_edge348:                                   ; preds = %._crit_edge348.loopexit.unr-lcssa, %.lr.ph347.epil, %.preheader309
  %262 = add nuw nsw i64 %.10350, 1
  %exitcond394.not = icmp eq i64 %262, %1
  br i1 %exitcond394.not, label %.preheader307, label %.preheader309, !llvm.loop !37

263:                                              ; preds = %.lr.ph353, %263
  %.11352 = phi i64 [ 0, %.lr.ph353 ], [ %273, %263 ]
  %264 = load ptr, ptr %235, align 8, !tbaa !9
  %265 = getelementptr inbounds ptr, ptr %264, i64 %.11352
  %266 = load ptr, ptr %265, align 8, !tbaa !10
  %267 = getelementptr inbounds double, ptr %266, i64 %.11352
  %268 = load ptr, ptr %236, align 8, !tbaa !9
  %269 = getelementptr inbounds ptr, ptr %268, i64 %.11352
  %270 = load ptr, ptr %269, align 8, !tbaa !10
  %271 = getelementptr inbounds double, ptr %270, i64 %.11352
  %272 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.11352, i64 noundef %141)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %267, i64 noundef 1, ptr noundef %271, i64 noundef 1, i64 noundef %272)
  %273 = add nuw nsw i64 %.11352, 1
  %exitcond395.not = icmp eq i64 %273, %1
  br i1 %exitcond395.not, label %._crit_edge382, label %263, !llvm.loop !38

274:                                              ; preds = %._crit_edge333
  store i8 0, ptr %7, align 1, !tbaa !5
  br i1 %17, label %.lr.ph341, label %._crit_edge382

.lr.ph341:                                        ; preds = %274
  %275 = getelementptr inbounds i8, ptr %6, i64 72
  %xtraiter = and i64 %1, 1
  %276 = icmp eq i64 %1, 1
  br i1 %276, label %.preheader310.unr-lcssa, label %.lr.ph341.new

.lr.ph341.new:                                    ; preds = %.lr.ph341
  %unroll_iter = and i64 %1, 9223372036854775806
  br label %292

.loopexit312:                                     ; preds = %.lr.ph337, %292
  %277 = add nuw nsw i64 %.12339, 2
  %.not289.not334.1 = icmp slt i64 %277, %1
  br i1 %.not289.not334.1, label %.lr.ph337.1, label %.loopexit312.1

.lr.ph337.1:                                      ; preds = %.loopexit312, %.lr.ph337.1
  %.4335.1 = phi i64 [ %282, %.lr.ph337.1 ], [ %277, %.loopexit312 ]
  %278 = load ptr, ptr %275, align 8, !tbaa !9
  %279 = getelementptr inbounds ptr, ptr %278, i64 %293
  %280 = load ptr, ptr %279, align 8, !tbaa !10
  %281 = getelementptr inbounds double, ptr %280, i64 %.4335.1
  store double 0.000000e+00, ptr %281, align 8, !tbaa !20
  %282 = add nuw nsw i64 %.4335.1, 1
  %.not289.not.1 = icmp slt i64 %282, %1
  br i1 %.not289.not.1, label %.lr.ph337.1, label %.loopexit312.1, !llvm.loop !39

.loopexit312.1:                                   ; preds = %.lr.ph337.1, %.loopexit312
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader310.unr-lcssa, label %292, !llvm.loop !40

.preheader310.unr-lcssa:                          ; preds = %.loopexit312.1, %.lr.ph341
  %.12339.unr = phi i64 [ 0, %.lr.ph341 ], [ %277, %.loopexit312.1 ]
  %lcmp.mod.not = icmp ne i64 %xtraiter, 0
  %283 = add nuw nsw i64 %.12339.unr, 1
  %.not289.not334.epil = icmp slt i64 %283, %1
  %or.cond = select i1 %lcmp.mod.not, i1 %.not289.not334.epil, i1 false
  br i1 %or.cond, label %.lr.ph337.epil, label %.preheader310

.lr.ph337.epil:                                   ; preds = %.preheader310.unr-lcssa, %.lr.ph337.epil
  %.4335.epil = phi i64 [ %288, %.lr.ph337.epil ], [ %283, %.preheader310.unr-lcssa ]
  %284 = load ptr, ptr %275, align 8, !tbaa !9
  %285 = getelementptr inbounds ptr, ptr %284, i64 %.12339.unr
  %286 = load ptr, ptr %285, align 8, !tbaa !10
  %287 = getelementptr inbounds double, ptr %286, i64 %.4335.epil
  store double 0.000000e+00, ptr %287, align 8, !tbaa !20
  %288 = add nuw nsw i64 %.4335.epil, 1
  %.not289.not.epil = icmp slt i64 %288, %1
  br i1 %.not289.not.epil, label %.lr.ph337.epil, label %.preheader310, !llvm.loop !39

.preheader310:                                    ; preds = %.lr.ph337.epil, %.preheader310.unr-lcssa
  br i1 %17, label %.lr.ph344, label %._crit_edge382

.lr.ph344:                                        ; preds = %.preheader310
  %289 = getelementptr inbounds i8, ptr %6, i64 72
  %290 = getelementptr inbounds i8, ptr %6, i64 16
  %291 = getelementptr inbounds i8, ptr %11, i64 72
  br label %299

292:                                              ; preds = %.loopexit312.1, %.lr.ph341.new
  %.12339 = phi i64 [ 0, %.lr.ph341.new ], [ %277, %.loopexit312.1 ]
  %niter = phi i64 [ 0, %.lr.ph341.new ], [ %niter.next.1, %.loopexit312.1 ]
  %293 = or disjoint i64 %.12339, 1
  %.not289.not334 = icmp slt i64 %293, %1
  br i1 %.not289.not334, label %.lr.ph337, label %.loopexit312

.lr.ph337:                                        ; preds = %292, %.lr.ph337
  %.4335 = phi i64 [ %298, %.lr.ph337 ], [ %293, %292 ]
  %294 = load ptr, ptr %275, align 8, !tbaa !9
  %295 = getelementptr inbounds ptr, ptr %294, i64 %.12339
  %296 = load ptr, ptr %295, align 8, !tbaa !10
  %297 = getelementptr inbounds double, ptr %296, i64 %.4335
  store double 0.000000e+00, ptr %297, align 8, !tbaa !20
  %298 = add nuw nsw i64 %.4335, 1
  %.not289.not = icmp slt i64 %298, %1
  br i1 %.not289.not, label %.lr.ph337, label %.loopexit312, !llvm.loop !39

299:                                              ; preds = %.lr.ph344, %299
  %.13343 = phi i64 [ 0, %.lr.ph344 ], [ %310, %299 ]
  %300 = load ptr, ptr %289, align 8, !tbaa !9
  %301 = getelementptr inbounds ptr, ptr %300, i64 %.13343
  %302 = load ptr, ptr %301, align 8, !tbaa !10
  %303 = getelementptr inbounds double, ptr %302, i64 %.13343
  %304 = load i64, ptr %290, align 8, !tbaa !12
  %305 = load ptr, ptr %291, align 8, !tbaa !9
  %306 = getelementptr inbounds ptr, ptr %305, i64 %.13343
  %307 = load ptr, ptr %306, align 8, !tbaa !10
  %308 = getelementptr inbounds double, ptr %307, i64 %.13343
  %309 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.13343, i64 noundef %141)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %303, i64 noundef %304, ptr noundef %308, i64 noundef 1, i64 noundef %309)
  %310 = add nuw nsw i64 %.13343, 1
  %exitcond392.not = icmp eq i64 %310, %1
  br i1 %exitcond392.not, label %._crit_edge382, label %299, !llvm.loop !41

._crit_edge382.sink.split:                        ; preds = %._crit_edge333.thread, %53, %.preheader303
  %.sink = phi i8 [ 1, %.preheader303 ], [ 1, %53 ], [ 0, %._crit_edge333.thread ]
  store i8 %.sink, ptr %7, align 1, !tbaa !5
  br label %._crit_edge382

._crit_edge382:                                   ; preds = %299, %263, %126, %._crit_edge382.sink.split, %138, %.preheader307, %.preheader310, %232, %274, %229, %.loopexit315, %.preheader, %._crit_edge372, %50, %.loopexit
  %.0272 = phi i1 [ false, %.loopexit ], [ false, %50 ], [ true, %._crit_edge372 ], [ true, %.preheader ], [ false, %.loopexit315 ], [ false, %229 ], [ true, %274 ], [ true, %232 ], [ true, %.preheader310 ], [ true, %.preheader307 ], [ true, %138 ], [ true, %._crit_edge382.sink.split ], [ true, %126 ], [ true, %263 ], [ true, %299 ]
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
  ret i1 %.0272
}

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i64 noundef, i64 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i1 noundef zeroext, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "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 = { 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 #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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !14, i64 16}
!13 = !{!"_ZTSN11alglib_impl9ae_matrixE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !6, i64 32, !15, i64 40, !7, i64 72}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!14, !14, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.unroll.disable"}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !17}
!32 = distinct !{!32, !17}
!33 = distinct !{!33, !17}
!34 = distinct !{!34, !17}
!35 = distinct !{!35, !17}
!36 = distinct !{!36, !27}
!37 = distinct !{!37, !17}
!38 = distinct !{!38, !17}
!39 = distinct !{!39, !17}
!40 = distinct !{!40, !17}
!41 = distinct !{!41, !17}


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