; LLVM IR from Dimandragon/non-parametric-dsp :: 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.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::matinvreport" = type { i64, double, double }

@.str.516 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.517 = 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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

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_matrixElbbPNS_12matinvreportEPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl17smatrixgevdreduceEPNS_9ae_matrixElbPKS0_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 i8, align 1
  %30 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store i64 %1, ptr %12, align 8, !tbaa !9
  %31 = zext i1 %2 to i8
  store i8 %31, ptr %13, align 1, !tbaa !11
  store ptr %3, ptr %14, align 8, !tbaa !5
  %32 = zext i1 %4 to i8
  store i8 %32, 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 24, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #4
  %33 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %33, 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 24, i1 false)
  %34 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %34)
  %35 = load ptr, ptr %18, align 8, !tbaa !5
  store i8 0, ptr %35, align 1, !tbaa !11
  %36 = 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 %36, i1 noundef zeroext true)
  %37 = 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 %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 %23, 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 %24, 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_impl18_matinvreport_initEPvPNS_8ae_stateEb(ptr noundef %28, ptr noundef %40, i1 noundef zeroext true)
  %41 = load i64, ptr %12, align 8, !tbaa !9
  %42 = icmp sgt i64 %41, 0
  %43 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef @.str.516, ptr noundef %43)
  %44 = load i64, ptr %16, align 8, !tbaa !9
  %45 = icmp eq i64 %44, 1
  br i1 %45, label %52, label %46

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

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

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

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

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

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

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

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

98:                                               ; preds = %68
  br label %125

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

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

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

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

124:                                              ; preds = %100
  br label %125

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

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

133:                                              ; preds = %125
  %134 = load i64, ptr %12, align 8, !tbaa !9
  %135 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixtrinverseEPNS_9ae_matrixElbbPNS_12matinvreportEPNS_8ae_stateE(ptr noundef %21, i64 noundef %134, i1 noundef zeroext false, i1 noundef zeroext false, ptr noundef %28, ptr noundef %135)
  %136 = getelementptr inbounds %"struct.alglib_impl::matinvreport", ptr %28, i32 0, i32 0
  %137 = load i64, ptr %136, align 8, !tbaa !22
  %138 = icmp sle i64 %137, 0
  br i1 %138, label %139, label %143

139:                                              ; preds = %133
  store i8 0, ptr %29, 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 %29, 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 %30, align 4
  br label %736

143:                                              ; preds = %133
  %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_impl29symmetricmatrixvectormultiplyEPKNS_9ae_matrixEbllPKNS_9ae_vectorEdPS3_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_impl20matrixvectormultiplyEPKNS_9ae_matrixEllllbPKNS_9ae_vectorElldPS3_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_impl20matrixvectormultiplyEPKNS_9ae_matrixEllllbPKNS_9ae_vectorElldPS3_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 !25
  %227 = load double, ptr %27, align 8, !tbaa !25
  %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 !25
  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 !26

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 !27

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 !28

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 !25
  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 !29

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 !30

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 !31

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 %29, 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 %30, align 4
  br label %736

336:                                              ; preds = %52
  %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 %732

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 !32

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 !33

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 %29, 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 %29, 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 %30, align 4
  br label %736

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_impl29symmetricmatrixvectormultiplyEPKNS_9ae_matrixEbllPKNS_9ae_vectorEdPS3_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_impl20matrixvectormultiplyEPKNS_9ae_matrixEllllbPKNS_9ae_vectorElldPS3_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_impl20matrixvectormultiplyEPKNS_9ae_matrixEllllbPKNS_9ae_vectorElldPS3_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 !25
  %550 = load double, ptr %27, align 8, !tbaa !25
  %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 !25
  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 !34

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 !35

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 !36

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

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_matrixElbbPNS_12matinvreportEPNS_8ae_stateE(ptr noundef %21, i64 noundef %599, i1 noundef zeroext true, i1 noundef zeroext false, ptr noundef %28, ptr noundef %600)
  %601 = getelementptr inbounds %"struct.alglib_impl::matinvreport", ptr %28, i32 0, i32 0
  %602 = load i64, ptr %601, align 8, !tbaa !22
  %603 = icmp sle i64 %602, 0
  br i1 %603, label %604, label %608

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

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

610:                                              ; preds = %634, %608
  %611 = load i64, ptr %25, align 8, !tbaa !9
  %612 = load i64, ptr %12, align 8, !tbaa !9
  %613 = sub nsw i64 %612, 1
  %614 = icmp sle i64 %611, %613
  br i1 %614, label %615, label %637

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

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

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

630:                                              ; preds = %621
  %631 = load i64, ptr %26, align 8, !tbaa !9
  %632 = add nsw i64 %631, 1
  store i64 %632, ptr %26, align 8, !tbaa !9
  br label %616, !llvm.loop !37

633:                                              ; preds = %616
  br label %634

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

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

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

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

663:                                              ; preds = %643
  %664 = load i64, ptr %25, align 8, !tbaa !9
  %665 = add nsw i64 %664, 1
  store i64 %665, ptr %25, align 8, !tbaa !9
  br label %638, !llvm.loop !39

666:                                              ; preds = %638
  br label %731

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

669:                                              ; preds = %695, %667
  %670 = load i64, ptr %25, align 8, !tbaa !9
  %671 = load i64, ptr %12, align 8, !tbaa !9
  %672 = sub nsw i64 %671, 1
  %673 = icmp sle i64 %670, %672
  br i1 %673, label %674, label %698

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

677:                                              ; preds = %691, %674
  %678 = load i64, ptr %26, align 8, !tbaa !9
  %679 = load i64, ptr %12, align 8, !tbaa !9
  %680 = sub nsw i64 %679, 1
  %681 = icmp sle i64 %678, %680
  br i1 %681, label %682, label %694

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

691:                                              ; preds = %682
  %692 = load i64, ptr %26, align 8, !tbaa !9
  %693 = add nsw i64 %692, 1
  store i64 %693, ptr %26, align 8, !tbaa !9
  br label %677, !llvm.loop !40

694:                                              ; preds = %677
  br label %695

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

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

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

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

727:                                              ; preds = %704
  %728 = load i64, ptr %25, align 8, !tbaa !9
  %729 = add nsw i64 %728, 1
  store i64 %729, ptr %25, align 8, !tbaa !9
  br label %699, !llvm.loop !42

730:                                              ; preds = %699
  br label %731

731:                                              ; preds = %730, %666
  br label %732

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

736:                                              ; preds = %732, %604, %419, %332, %139, %129
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 24, 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
  %737 = load i1, ptr %10, align 1
  ret i1 %737
}

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

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

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, 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_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, 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_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #2

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

declare void @_ZN11alglib_impl20matrixvectormultiplyEPKNS_9ae_matrixEllllbPKNS_9ae_vectorElldPS3_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, !10, i64 0}
!23 = !{!"_ZTSN11alglib_impl12matinvreportE", !10, i64 0, !24, i64 8, !24, i64 16}
!24 = !{!"double", !7, i64 0}
!25 = !{!24, !24, i64 0}
!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}
!41 = distinct !{!41, !20}
!42 = distinct !{!42, !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.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::matinvreport" = type { i64, double, double }

@.str.516 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.517 = 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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

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_matrixElbbPNS_12matinvreportEPNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl17smatrixgevdreduceEPNS_9ae_matrixElbPKS0_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
  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 24, ptr nonnull %15) #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(24) %15, i8 0, i64 24, 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)
  %16 = icmp sgt i64 %1, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.516, ptr noundef %8)
  %17 = icmp eq i64 %5, 1
  %18 = icmp eq i64 %5, 2
  %19 = add i64 %5, -1
  %spec.select = icmp ult i64 %19, 3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.517, ptr noundef %8)
  br i1 %17, label %20, label %137

20:                                               ; preds = %9
  %21 = 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 = %20
  br i1 %16, label %.lr.ph356, label %.loopexit

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

.preheader304:                                    ; preds = %20
  br i1 %16, label %.lr.ph359, label %.loopexit

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

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

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

.loopexit:                                        ; preds = %39, %27, %.preheader305, %.preheader304
  %48 = 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 %48, label %49, label %._crit_edge382

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

52:                                               ; preds = %49
  %53 = add i64 %1, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %53, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %53, 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 = %52
  %54 = getelementptr inbounds i8, ptr %12, i64 56
  %55 = getelementptr inbounds i8, ptr %11, i64 72
  %56 = getelementptr inbounds i8, ptr %13, i64 56
  %57 = getelementptr inbounds i8, ptr %6, i64 72
  br label %60

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

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

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

69:                                               ; preds = %60
  call void @_ZN11alglib_impl20matrixvectormultiplyEPKNS_9ae_matrixEllllbPKNS_9ae_vectorElldPS3_lldPNS_8ae_stateE(ptr noundef %0, i64 noundef 0, i64 noundef %64, i64 noundef %.0366, i64 noundef %21, 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 %68, i64 noundef %1, double noundef 0.000000e+00, ptr noundef %8)
  br label %.lr.ph363.preheader

70:                                               ; preds = %60
  call void @_ZN11alglib_impl20matrixvectormultiplyEPKNS_9ae_matrixEllllbPKNS_9ae_vectorElldPS3_lldPNS_8ae_stateE(ptr noundef %0, i64 noundef %.0366, i64 noundef %21, i64 noundef 0, i64 noundef %64, 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 %68, i64 noundef %1, double noundef 0.000000e+00, ptr noundef %8)
  br label %.lr.ph363.preheader

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

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

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

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

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

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

.preheader302:                                    ; preds = %.preheader302.lr.ph, %._crit_edge376
  %.4271378 = phi i64 [ 0, %.preheader302.lr.ph ], [ %124, %._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
  %95 = icmp ult i64 %.4271378, 4
  br i1 %95, 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 %16, label %.lr.ph381, label %._crit_edge382

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

.lr.ph375:                                        ; preds = %.lr.ph375, %.lr.ph375.preheader.new
  %.1374 = phi i64 [ 0, %.lr.ph375.preheader.new ], [ %118, %.lr.ph375 ]
  %niter423 = phi i64 [ 0, %.lr.ph375.preheader.new ], [ %niter423.next.3, %.lr.ph375 ]
  %99 = load ptr, ptr %94, align 8, !tbaa !9
  %100 = getelementptr inbounds ptr, ptr %99, i64 %.4271378
  %101 = load ptr, ptr %100, align 8, !tbaa !10
  %102 = getelementptr inbounds double, ptr %101, i64 %.1374
  store double 0.000000e+00, ptr %102, align 8, !tbaa !22
  %103 = or disjoint i64 %.1374, 1
  %104 = load ptr, ptr %94, align 8, !tbaa !9
  %105 = getelementptr inbounds ptr, ptr %104, i64 %.4271378
  %106 = load ptr, ptr %105, align 8, !tbaa !10
  %107 = getelementptr inbounds double, ptr %106, i64 %103
  store double 0.000000e+00, ptr %107, align 8, !tbaa !22
  %108 = or disjoint i64 %.1374, 2
  %109 = load ptr, ptr %94, align 8, !tbaa !9
  %110 = getelementptr inbounds ptr, ptr %109, i64 %.4271378
  %111 = load ptr, ptr %110, align 8, !tbaa !10
  %112 = getelementptr inbounds double, ptr %111, i64 %108
  store double 0.000000e+00, ptr %112, align 8, !tbaa !22
  %113 = or disjoint i64 %.1374, 3
  %114 = load ptr, ptr %94, align 8, !tbaa !9
  %115 = getelementptr inbounds ptr, ptr %114, i64 %.4271378
  %116 = load ptr, ptr %115, align 8, !tbaa !10
  %117 = getelementptr inbounds double, ptr %116, i64 %113
  store double 0.000000e+00, ptr %117, align 8, !tbaa !22
  %118 = 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 !26

._crit_edge376.loopexit.unr-lcssa:                ; preds = %.lr.ph375, %.lr.ph375.preheader
  %.1374.unr = phi i64 [ 0, %.lr.ph375.preheader ], [ %118, %.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 [ %123, %.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 ]
  %119 = load ptr, ptr %94, align 8, !tbaa !9
  %120 = getelementptr inbounds ptr, ptr %119, i64 %.4271378
  %121 = load ptr, ptr %120, align 8, !tbaa !10
  %122 = getelementptr inbounds double, ptr %121, i64 %.1374.epil
  store double 0.000000e+00, ptr %122, align 8, !tbaa !22
  %123 = 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 !27

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

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

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

139:                                              ; preds = %137
  %140 = 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 = %139
  br i1 %16, label %.lr.ph, label %.loopexit315

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

.preheader314:                                    ; preds = %139
  br i1 %16, label %.lr.ph322, label %.loopexit315

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

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

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

.loopexit315:                                     ; preds = %157, %146, %.preheader316, %.preheader314
  %169 = 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 %169, label %170, label %._crit_edge382

170:                                              ; preds = %.loopexit315
  %171 = add i64 %1, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %171, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %171, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %171, 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 = %170
  %172 = getelementptr inbounds i8, ptr %12, i64 56
  %173 = getelementptr inbounds i8, ptr %11, i64 72
  %174 = getelementptr inbounds i8, ptr %13, i64 56
  %175 = getelementptr inbounds i8, ptr %14, i64 56
  %176 = getelementptr inbounds i8, ptr %6, i64 72
  br label %179

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

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

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

202:                                              ; preds = %179
  call void @_ZN11alglib_impl20matrixvectormultiplyEPKNS_9ae_matrixEllllbPKNS_9ae_vectorElldPS3_lldPNS_8ae_stateE(ptr noundef %0, i64 noundef 0, i64 noundef %201, i64 noundef %183, i64 noundef %140, 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 %183, double noundef 0.000000e+00, ptr noundef %8)
  br label %.lr.ph325.preheader

203:                                              ; preds = %179
  call void @_ZN11alglib_impl20matrixvectormultiplyEPKNS_9ae_matrixEllllbPKNS_9ae_vectorElldPS3_lldPNS_8ae_stateE(ptr noundef %0, i64 noundef %183, i64 noundef %140, i64 noundef 0, i64 noundef %201, 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 %183, double noundef 0.000000e+00, ptr noundef %8)
  br label %.lr.ph325.preheader

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

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

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

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

._crit_edge333:                                   ; preds = %219, %170
  br i1 %18, label %228, label %273

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

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

231:                                              ; preds = %228
  store i8 1, ptr %7, align 1, !tbaa !5
  br i1 %16, label %.preheader309.lr.ph, label %._crit_edge382

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

.preheader309:                                    ; preds = %.preheader309.lr.ph, %._crit_edge348
  %.10350 = phi i64 [ 0, %.preheader309.lr.ph ], [ %261, %._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
  %233 = icmp ult i64 %.10350, 4
  br i1 %233, 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 %16, label %.lr.ph353, label %._crit_edge382

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

.lr.ph347:                                        ; preds = %.lr.ph347, %.lr.ph347.preheader.new
  %.3346 = phi i64 [ 0, %.lr.ph347.preheader.new ], [ %255, %.lr.ph347 ]
  %niter418 = phi i64 [ 0, %.lr.ph347.preheader.new ], [ %niter418.next.3, %.lr.ph347 ]
  %236 = load ptr, ptr %232, align 8, !tbaa !9
  %237 = getelementptr inbounds ptr, ptr %236, i64 %.10350
  %238 = load ptr, ptr %237, align 8, !tbaa !10
  %239 = getelementptr inbounds double, ptr %238, i64 %.3346
  store double 0.000000e+00, ptr %239, align 8, !tbaa !22
  %240 = or disjoint i64 %.3346, 1
  %241 = load ptr, ptr %232, align 8, !tbaa !9
  %242 = getelementptr inbounds ptr, ptr %241, i64 %.10350
  %243 = load ptr, ptr %242, align 8, !tbaa !10
  %244 = getelementptr inbounds double, ptr %243, i64 %240
  store double 0.000000e+00, ptr %244, align 8, !tbaa !22
  %245 = or disjoint i64 %.3346, 2
  %246 = load ptr, ptr %232, align 8, !tbaa !9
  %247 = getelementptr inbounds ptr, ptr %246, i64 %.10350
  %248 = load ptr, ptr %247, align 8, !tbaa !10
  %249 = getelementptr inbounds double, ptr %248, i64 %245
  store double 0.000000e+00, ptr %249, align 8, !tbaa !22
  %250 = or disjoint i64 %.3346, 3
  %251 = load ptr, ptr %232, align 8, !tbaa !9
  %252 = getelementptr inbounds ptr, ptr %251, i64 %.10350
  %253 = load ptr, ptr %252, align 8, !tbaa !10
  %254 = getelementptr inbounds double, ptr %253, i64 %250
  store double 0.000000e+00, ptr %254, align 8, !tbaa !22
  %255 = 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 !36

._crit_edge348.loopexit.unr-lcssa:                ; preds = %.lr.ph347, %.lr.ph347.preheader
  %.3346.unr = phi i64 [ 0, %.lr.ph347.preheader ], [ %255, %.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 [ %260, %.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 ]
  %256 = load ptr, ptr %232, align 8, !tbaa !9
  %257 = getelementptr inbounds ptr, ptr %256, i64 %.10350
  %258 = load ptr, ptr %257, align 8, !tbaa !10
  %259 = getelementptr inbounds double, ptr %258, i64 %.3346.epil
  store double 0.000000e+00, ptr %259, align 8, !tbaa !22
  %260 = 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 !37

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

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

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

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

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

.loopexit312:                                     ; preds = %.lr.ph337, %291
  %276 = add nuw nsw i64 %.12339, 2
  %.not289.not334.1 = icmp slt i64 %276, %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 [ %281, %.lr.ph337.1 ], [ %276, %.loopexit312 ]
  %277 = load ptr, ptr %274, align 8, !tbaa !9
  %278 = getelementptr inbounds ptr, ptr %277, i64 %292
  %279 = load ptr, ptr %278, align 8, !tbaa !10
  %280 = getelementptr inbounds double, ptr %279, i64 %.4335.1
  store double 0.000000e+00, ptr %280, align 8, !tbaa !22
  %281 = add nuw nsw i64 %.4335.1, 1
  %.not289.not.1 = icmp slt i64 %281, %1
  br i1 %.not289.not.1, label %.lr.ph337.1, label %.loopexit312.1, !llvm.loop !40

.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 %291, !llvm.loop !41

.preheader310.unr-lcssa:                          ; preds = %.loopexit312.1, %.lr.ph341
  %.12339.unr = phi i64 [ 0, %.lr.ph341 ], [ %276, %.loopexit312.1 ]
  %lcmp.mod.not = icmp ne i64 %xtraiter, 0
  %282 = add nuw nsw i64 %.12339.unr, 1
  %.not289.not334.epil = icmp slt i64 %282, %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 [ %287, %.lr.ph337.epil ], [ %282, %.preheader310.unr-lcssa ]
  %283 = load ptr, ptr %274, align 8, !tbaa !9
  %284 = getelementptr inbounds ptr, ptr %283, i64 %.12339.unr
  %285 = load ptr, ptr %284, align 8, !tbaa !10
  %286 = getelementptr inbounds double, ptr %285, i64 %.4335.epil
  store double 0.000000e+00, ptr %286, align 8, !tbaa !22
  %287 = add nuw nsw i64 %.4335.epil, 1
  %.not289.not.epil = icmp slt i64 %287, %1
  br i1 %.not289.not.epil, label %.lr.ph337.epil, label %.preheader310, !llvm.loop !40

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

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

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

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

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

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

._crit_edge382:                                   ; preds = %298, %262, %125, %._crit_edge382.sink.split, %137, %.preheader307, %.preheader310, %231, %273, %228, %.loopexit315, %.preheader, %._crit_edge372, %49, %.loopexit
  %.0272 = phi i1 [ false, %.loopexit ], [ false, %49 ], [ true, %._crit_edge372 ], [ true, %.preheader ], [ false, %.loopexit315 ], [ false, %228 ], [ true, %273 ], [ true, %231 ], [ true, %.preheader310 ], [ true, %.preheader307 ], [ true, %137 ], [ true, %._crit_edge382.sink.split ], [ true, %125 ], [ true, %262 ], [ true, %298 ]
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %8)
  call void @llvm.lifetime.end.p0(i64 24, 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 i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 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 noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, 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_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_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) 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_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPKNS_9ae_matrixEbllPKNS_9ae_vectorEdPS3_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_impl20matrixvectormultiplyEPKNS_9ae_matrixEllllbPKNS_9ae_vectorElldPS3_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 = !{!20, !14, i64 0}
!20 = !{!"_ZTSN11alglib_impl12matinvreportE", !14, i64 0, !21, i64 8, !21, i64 16}
!21 = !{!"double", !7, i64 0}
!22 = !{!21, !21, i64 0}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.unroll.disable"}
!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, !17}
!37 = distinct !{!37, !28}
!38 = distinct !{!38, !17}
!39 = distinct !{!39, !17}
!40 = distinct !{!40, !17}
!41 = distinct !{!41, !17}
!42 = distinct !{!42, !17}


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