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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::mincgstate" = type { i64, double, double, double, i64, double, double, i8, i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, %"struct.alglib_impl::ae_vector", double, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, double, %"struct.alglib_impl::ae_vector", double, double, i64, i8, i8, double, %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, i8, i8, i8, %"struct.alglib_impl::rcommstate", i64, i64, i64, i64, %"struct.alglib_impl::linminstate", double, double, double, double, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, i64, %"struct.alglib_impl::smoothnessmonitor", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::linminstate" = type { i8, i8, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"struct.alglib_impl::smoothnessmonitor" = type { i64, i64, i8, %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i8, i8, double, double, i8, %"struct.alglib_impl::optguardreport", double, double, %"struct.alglib_impl::optguardnonc1test0report", %"struct.alglib_impl::optguardnonc1test0report", double, double, %"struct.alglib_impl::optguardnonc1test1report", %"struct.alglib_impl::optguardnonc1test1report", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardreport" = type { i8, i8, i64, double, i8, i8, i8, i64, double, i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardnonc1test0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test1report" = type { i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef, i64 noundef, i64 noundef, double noundef) #2

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

declare void @_ZN11alglib_impl9ae_v_subdEPdlPKdlld(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, double noundef) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl23mincgsetpreclowrankfastEPNS_10mincgstateEPNS_9ae_vectorES3_PNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.alglib_impl::ae_frame", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca double, align 8
  %19 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i64 %4, ptr %11, align 8, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %19) #4
  %21 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %21, ptr noundef %13)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 80, i1 false)
  %22 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %22, i1 noundef zeroext true)
  %23 = load i64, ptr %11, align 8, !tbaa !9
  %24 = icmp eq i64 %23, 0
  br i1 %24, label %25, label %30

25:                                               ; preds = %6
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20mincgsetprecdiagfastEPNS_10mincgstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %26, ptr noundef %27, ptr noundef %28)
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %29)
  store i32 1, ptr %20, align 4
  br label %273

30:                                               ; preds = %6
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.alglib_impl::mincgstate", ptr %31, i32 0, i32 0
  %33 = load i64, ptr %32, align 8, !tbaa !11
  store i64 %33, ptr %17, align 8, !tbaa !9
  %34 = load i64, ptr %11, align 8, !tbaa !9
  %35 = load i64, ptr %11, align 8, !tbaa !9
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %19, i64 noundef %34, i64 noundef %35, ptr noundef %36)
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::mincgstate", ptr %37, i32 0, i32 11
  %39 = load i64, ptr %17, align 8, !tbaa !9
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %38, i64 noundef %39, ptr noundef %40)
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::mincgstate", ptr %41, i32 0, i32 12
  %43 = load i64, ptr %17, align 8, !tbaa !9
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %42, i64 noundef %43, ptr noundef %44)
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::mincgstate", ptr %45, i32 0, i32 13
  %47 = load i64, ptr %11, align 8, !tbaa !9
  %48 = load i64, ptr %17, align 8, !tbaa !9
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %46, i64 noundef %47, i64 noundef %48, ptr noundef %49)
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::mincgstate", ptr %50, i32 0, i32 10
  store i64 2, ptr %51, align 8, !tbaa !25
  %52 = load i64, ptr %11, align 8, !tbaa !9
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::mincgstate", ptr %53, i32 0, i32 14
  store i64 %52, ptr %54, align 8, !tbaa !26
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::mincgstate", ptr %55, i32 0, i32 32
  store i8 1, ptr %56, align 8, !tbaa !27
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %57

57:                                               ; preds = %81, %30
  %58 = load i64, ptr %14, align 8, !tbaa !9
  %59 = load i64, ptr %17, align 8, !tbaa !9
  %60 = sub nsw i64 %59, 1
  %61 = icmp sle i64 %58, %60
  br i1 %61, label %62, label %84

62:                                               ; preds = %57
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %63, i32 0, i32 4
  %65 = load ptr, ptr %64, align 8, !tbaa !28
  %66 = load i64, ptr %14, align 8, !tbaa !9
  %67 = getelementptr inbounds double, ptr %65, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !29
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::mincgstate", ptr %69, i32 0, i32 11
  %71 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %70, i32 0, i32 4
  %72 = load ptr, ptr %71, align 8, !tbaa !28
  %73 = load i64, ptr %14, align 8, !tbaa !9
  %74 = getelementptr inbounds double, ptr %72, i64 %73
  store double %68, ptr %74, align 8, !tbaa !29
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::mincgstate", ptr %75, i32 0, i32 12
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %76, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !28
  %79 = load i64, ptr %14, align 8, !tbaa !9
  %80 = getelementptr inbounds double, ptr %78, i64 %79
  store double 0.000000e+00, ptr %80, align 8, !tbaa !29
  br label %81

81:                                               ; preds = %62
  %82 = load i64, ptr %14, align 8, !tbaa !9
  %83 = add nsw i64 %82, 1
  store i64 %83, ptr %14, align 8, !tbaa !9
  br label %57, !llvm.loop !30

84:                                               ; preds = %57
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %171, %84
  %86 = load i64, ptr %14, align 8, !tbaa !9
  %87 = load i64, ptr %11, align 8, !tbaa !9
  %88 = sub nsw i64 %87, 1
  %89 = icmp sle i64 %86, %88
  br i1 %89, label %90, label %174

90:                                               ; preds = %85
  %91 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %91, ptr %15, align 8, !tbaa !9
  br label %92

92:                                               ; preds = %144, %90
  %93 = load i64, ptr %15, align 8, !tbaa !9
  %94 = load i64, ptr %11, align 8, !tbaa !9
  %95 = sub nsw i64 %94, 1
  %96 = icmp sle i64 %93, %95
  br i1 %96, label %97, label %147

97:                                               ; preds = %92
  store double 0.000000e+00, ptr %18, align 8, !tbaa !29
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %98

98:                                               ; preds = %132, %97
  %99 = load i64, ptr %16, align 8, !tbaa !9
  %100 = load i64, ptr %17, align 8, !tbaa !9
  %101 = sub nsw i64 %100, 1
  %102 = icmp sle i64 %99, %101
  br i1 %102, label %103, label %135

103:                                              ; preds = %98
  %104 = load double, ptr %18, align 8, !tbaa !29
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %105, i32 0, i32 6
  %107 = load ptr, ptr %106, align 8, !tbaa !28
  %108 = load i64, ptr %14, align 8, !tbaa !9
  %109 = getelementptr inbounds ptr, ptr %107, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = load i64, ptr %16, align 8, !tbaa !9
  %112 = getelementptr inbounds double, ptr %110, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !29
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %114, i32 0, i32 6
  %116 = load ptr, ptr %115, align 8, !tbaa !28
  %117 = load i64, ptr %15, align 8, !tbaa !9
  %118 = getelementptr inbounds ptr, ptr %116, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = load i64, ptr %16, align 8, !tbaa !9
  %121 = getelementptr inbounds double, ptr %119, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !29
  %123 = fmul double %113, %122
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %124, i32 0, i32 4
  %126 = load ptr, ptr %125, align 8, !tbaa !28
  %127 = load i64, ptr %16, align 8, !tbaa !9
  %128 = getelementptr inbounds double, ptr %126, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !29
  %130 = fdiv double %123, %129
  %131 = fadd double %104, %130
  store double %131, ptr %18, align 8, !tbaa !29
  br label %132

132:                                              ; preds = %103
  %133 = load i64, ptr %16, align 8, !tbaa !9
  %134 = add nsw i64 %133, 1
  store i64 %134, ptr %16, align 8, !tbaa !9
  br label %98, !llvm.loop !32

135:                                              ; preds = %98
  %136 = load double, ptr %18, align 8, !tbaa !29
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %138 = load ptr, ptr %137, align 8, !tbaa !28
  %139 = load i64, ptr %14, align 8, !tbaa !9
  %140 = getelementptr inbounds ptr, ptr %138, i64 %139
  %141 = load ptr, ptr %140, align 8, !tbaa !5
  %142 = load i64, ptr %15, align 8, !tbaa !9
  %143 = getelementptr inbounds double, ptr %141, i64 %142
  store double %136, ptr %143, align 8, !tbaa !29
  br label %144

144:                                              ; preds = %135
  %145 = load i64, ptr %15, align 8, !tbaa !9
  %146 = add nsw i64 %145, 1
  store i64 %146, ptr %15, align 8, !tbaa !9
  br label %92, !llvm.loop !33

147:                                              ; preds = %92
  %148 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %149 = load ptr, ptr %148, align 8, !tbaa !28
  %150 = load i64, ptr %14, align 8, !tbaa !9
  %151 = getelementptr inbounds ptr, ptr %149, i64 %150
  %152 = load ptr, ptr %151, align 8, !tbaa !5
  %153 = load i64, ptr %14, align 8, !tbaa !9
  %154 = getelementptr inbounds double, ptr %152, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !29
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %156, i32 0, i32 4
  %158 = load ptr, ptr %157, align 8, !tbaa !28
  %159 = load i64, ptr %14, align 8, !tbaa !9
  %160 = getelementptr inbounds double, ptr %158, i64 %159
  %161 = load double, ptr %160, align 8, !tbaa !29
  %162 = fdiv double 1.000000e+00, %161
  %163 = fadd double %155, %162
  %164 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %165 = load ptr, ptr %164, align 8, !tbaa !28
  %166 = load i64, ptr %14, align 8, !tbaa !9
  %167 = getelementptr inbounds ptr, ptr %165, i64 %166
  %168 = load ptr, ptr %167, align 8, !tbaa !5
  %169 = load i64, ptr %14, align 8, !tbaa !9
  %170 = getelementptr inbounds double, ptr %168, i64 %169
  store double %163, ptr %170, align 8, !tbaa !29
  br label %171

171:                                              ; preds = %147
  %172 = load i64, ptr %14, align 8, !tbaa !9
  %173 = add nsw i64 %172, 1
  store i64 %173, ptr %14, align 8, !tbaa !9
  br label %85, !llvm.loop !34

174:                                              ; preds = %85
  %175 = load i64, ptr %11, align 8, !tbaa !9
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.alglib_impl::mincgstate", ptr %176, i32 0, i32 60
  %178 = load ptr, ptr %12, align 8, !tbaa !5
  %179 = call noundef zeroext i1 @_ZN11alglib_impl20spdmatrixcholeskyrecEPNS_9ae_matrixEllbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %19, i64 noundef 0, i64 noundef %175, i1 noundef zeroext true, ptr noundef %177, ptr noundef %178)
  br i1 %179, label %184, label %180

180:                                              ; preds = %174
  %181 = load ptr, ptr %7, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.alglib_impl::mincgstate", ptr %181, i32 0, i32 14
  store i64 0, ptr %182, align 8, !tbaa !26
  %183 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %183)
  store i32 1, ptr %20, align 4
  br label %273

184:                                              ; preds = %174
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %185

185:                                              ; preds = %268, %184
  %186 = load i64, ptr %14, align 8, !tbaa !9
  %187 = load i64, ptr %11, align 8, !tbaa !9
  %188 = sub nsw i64 %187, 1
  %189 = icmp sle i64 %186, %188
  br i1 %189, label %190, label %271

190:                                              ; preds = %185
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  %192 = getelementptr inbounds %"struct.alglib_impl::mincgstate", ptr %191, i32 0, i32 13
  %193 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %192, i32 0, i32 6
  %194 = load ptr, ptr %193, align 8, !tbaa !28
  %195 = load i64, ptr %14, align 8, !tbaa !9
  %196 = getelementptr inbounds ptr, ptr %194, i64 %195
  %197 = load ptr, ptr %196, align 8, !tbaa !5
  %198 = getelementptr inbounds double, ptr %197, i64 0
  %199 = load ptr, ptr %10, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %199, i32 0, i32 6
  %201 = load ptr, ptr %200, align 8, !tbaa !28
  %202 = load i64, ptr %14, align 8, !tbaa !9
  %203 = getelementptr inbounds ptr, ptr %201, i64 %202
  %204 = load ptr, ptr %203, align 8, !tbaa !5
  %205 = getelementptr inbounds double, ptr %204, i64 0
  %206 = load i64, ptr %17, align 8, !tbaa !9
  %207 = sub nsw i64 %206, 1
  %208 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %207)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %198, i64 noundef 1, ptr noundef %205, i64 noundef 1, i64 noundef %208)
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %209

209:                                              ; preds = %243, %190
  %210 = load i64, ptr %15, align 8, !tbaa !9
  %211 = load i64, ptr %14, align 8, !tbaa !9
  %212 = sub nsw i64 %211, 1
  %213 = icmp sle i64 %210, %212
  br i1 %213, label %214, label %246

214:                                              ; preds = %209
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %216 = load ptr, ptr %215, align 8, !tbaa !28
  %217 = load i64, ptr %15, align 8, !tbaa !9
  %218 = getelementptr inbounds ptr, ptr %216, i64 %217
  %219 = load ptr, ptr %218, align 8, !tbaa !5
  %220 = load i64, ptr %14, align 8, !tbaa !9
  %221 = getelementptr inbounds double, ptr %219, i64 %220
  %222 = load double, ptr %221, align 8, !tbaa !29
  store double %222, ptr %18, align 8, !tbaa !29
  %223 = load ptr, ptr %7, align 8, !tbaa !5
  %224 = getelementptr inbounds %"struct.alglib_impl::mincgstate", ptr %223, i32 0, i32 13
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %224, i32 0, i32 6
  %226 = load ptr, ptr %225, align 8, !tbaa !28
  %227 = load i64, ptr %14, align 8, !tbaa !9
  %228 = getelementptr inbounds ptr, ptr %226, i64 %227
  %229 = load ptr, ptr %228, align 8, !tbaa !5
  %230 = getelementptr inbounds double, ptr %229, i64 0
  %231 = load ptr, ptr %7, align 8, !tbaa !5
  %232 = getelementptr inbounds %"struct.alglib_impl::mincgstate", ptr %231, i32 0, i32 13
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %232, i32 0, i32 6
  %234 = load ptr, ptr %233, align 8, !tbaa !28
  %235 = load i64, ptr %15, align 8, !tbaa !9
  %236 = getelementptr inbounds ptr, ptr %234, i64 %235
  %237 = load ptr, ptr %236, align 8, !tbaa !5
  %238 = getelementptr inbounds double, ptr %237, i64 0
  %239 = load i64, ptr %17, align 8, !tbaa !9
  %240 = sub nsw i64 %239, 1
  %241 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %240)
  %242 = load double, ptr %18, align 8, !tbaa !29
  call void @_ZN11alglib_impl9ae_v_subdEPdlPKdlld(ptr noundef %230, i64 noundef 1, ptr noundef %238, i64 noundef 1, i64 noundef %241, double noundef %242)
  br label %243

243:                                              ; preds = %214
  %244 = load i64, ptr %15, align 8, !tbaa !9
  %245 = add nsw i64 %244, 1
  store i64 %245, ptr %15, align 8, !tbaa !9
  br label %209, !llvm.loop !35

246:                                              ; preds = %209
  %247 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %248 = load ptr, ptr %247, align 8, !tbaa !28
  %249 = load i64, ptr %14, align 8, !tbaa !9
  %250 = getelementptr inbounds ptr, ptr %248, i64 %249
  %251 = load ptr, ptr %250, align 8, !tbaa !5
  %252 = load i64, ptr %14, align 8, !tbaa !9
  %253 = getelementptr inbounds double, ptr %251, i64 %252
  %254 = load double, ptr %253, align 8, !tbaa !29
  %255 = fdiv double 1.000000e+00, %254
  store double %255, ptr %18, align 8, !tbaa !29
  %256 = load ptr, ptr %7, align 8, !tbaa !5
  %257 = getelementptr inbounds %"struct.alglib_impl::mincgstate", ptr %256, i32 0, i32 13
  %258 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %257, i32 0, i32 6
  %259 = load ptr, ptr %258, align 8, !tbaa !28
  %260 = load i64, ptr %14, align 8, !tbaa !9
  %261 = getelementptr inbounds ptr, ptr %259, i64 %260
  %262 = load ptr, ptr %261, align 8, !tbaa !5
  %263 = getelementptr inbounds double, ptr %262, i64 0
  %264 = load i64, ptr %17, align 8, !tbaa !9
  %265 = sub nsw i64 %264, 1
  %266 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %265)
  %267 = load double, ptr %18, align 8, !tbaa !29
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %263, i64 noundef 1, i64 noundef %266, double noundef %267)
  br label %268

268:                                              ; preds = %246
  %269 = load i64, ptr %14, align 8, !tbaa !9
  %270 = add nsw i64 %269, 1
  store i64 %270, ptr %14, align 8, !tbaa !9
  br label %185, !llvm.loop !36

271:                                              ; preds = %185
  %272 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %272)
  store i32 0, ptr %20, align 4
  br label %273

273:                                              ; preds = %271, %180, %25
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  %274 = load i32, ptr %20, align 4
  switch i32 %274, label %276 [
    i32 0, label %275
    i32 1, label %275
  ]

275:                                              ; preds = %273, %273
  ret void

276:                                              ; preds = %273
  unreachable
}

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, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl10mincgstateE", !10, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !10, i64 32, !13, i64 40, !13, i64 48, !14, i64 56, !14, i64 57, !10, i64 64, !10, i64 72, !15, i64 80, !15, i64 144, !17, i64 208, !10, i64 288, !15, i64 296, !13, i64 360, !10, i64 368, !10, i64 376, !10, i64 384, !15, i64 392, !15, i64 456, !15, i64 520, !15, i64 584, !15, i64 648, !13, i64 712, !13, i64 720, !13, i64 728, !15, i64 736, !13, i64 800, !13, i64 808, !10, i64 816, !14, i64 824, !14, i64 825, !13, i64 832, !15, i64 840, !10, i64 904, !15, i64 912, !13, i64 976, !15, i64 984, !14, i64 1048, !14, i64 1049, !14, i64 1050, !14, i64 1051, !14, i64 1052, !14, i64 1053, !14, i64 1054, !18, i64 1056, !10, i64 1320, !10, i64 1328, !10, i64 1336, !10, i64 1344, !20, i64 1352, !13, i64 1544, !13, i64 1552, !13, i64 1560, !13, i64 1568, !13, i64 1576, !13, i64 1584, !13, i64 1592, !15, i64 1600, !15, i64 1664, !15, i64 1728, !13, i64 1792, !10, i64 1800, !21, i64 1808, !15, i64 5776}
!13 = !{!"double", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !14, i64 16, !16, i64 24, !7, i64 56}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !16, i64 40, !7, i64 72}
!18 = !{!"_ZTSN11alglib_impl10rcommstateE", !19, i64 0, !15, i64 8, !15, i64 72, !15, i64 136, !15, i64 200}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSN11alglib_impl11linminstateE", !14, i64 0, !14, i64 1, !10, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184}
!21 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !10, i64 0, !10, i64 8, !14, i64 16, !15, i64 24, !10, i64 88, !15, i64 96, !15, i64 160, !15, i64 224, !17, i64 288, !15, i64 368, !15, i64 432, !10, i64 496, !14, i64 504, !14, i64 505, !13, i64 512, !13, i64 520, !14, i64 528, !22, i64 536, !13, i64 832, !13, i64 840, !23, i64 848, !23, i64 1152, !13, i64 1456, !13, i64 1464, !24, i64 1472, !24, i64 1784, !14, i64 2096, !15, i64 2104, !15, i64 2168, !17, i64 2232, !18, i64 2312, !15, i64 2576, !15, i64 2640, !15, i64 2704, !15, i64 2768, !15, i64 2832, !15, i64 2896, !15, i64 2960, !15, i64 3024, !17, i64 3088, !17, i64 3168, !15, i64 3248, !15, i64 3312, !15, i64 3376, !15, i64 3440, !15, i64 3504, !15, i64 3568, !15, i64 3632, !15, i64 3696, !15, i64 3760, !15, i64 3824, !17, i64 3888}
!22 = !{!"_ZTSN11alglib_impl14optguardreportE", !14, i64 0, !14, i64 1, !10, i64 8, !13, i64 16, !14, i64 24, !14, i64 25, !14, i64 26, !10, i64 32, !13, i64 40, !14, i64 48, !10, i64 56, !10, i64 64, !15, i64 72, !17, i64 136, !17, i64 216}
!23 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !14, i64 0, !10, i64 8, !15, i64 16, !15, i64 80, !10, i64 144, !15, i64 152, !15, i64 216, !10, i64 280, !10, i64 288, !10, i64 296}
!24 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !14, i64 0, !10, i64 8, !10, i64 16, !15, i64 24, !15, i64 88, !10, i64 152, !15, i64 160, !15, i64 224, !10, i64 288, !10, i64 296, !10, i64 304}
!25 = !{!12, !10, i64 72}
!26 = !{!12, !10, i64 288}
!27 = !{!12, !14, i64 824}
!28 = !{!7, !7, i64 0}
!29 = !{!13, !13, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = distinct !{!33, !31}
!34 = distinct !{!34, !31}
!35 = distinct !{!35, !31}
!36 = distinct !{!36, !31}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr 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_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl23mincgsetpreclowrankfastEPNS_10mincgstateEPNS_9ae_vectorES3_PNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, i64 noundef %4, ptr noundef %5) local_unnamed_addr #3 {
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %5, ptr noundef nonnull %7)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %8, i8 0, i64 80, i1 false)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %5, i1 noundef zeroext true)
  %9 = icmp eq i64 %4, 0
  br i1 %9, label %10, label %11

10:                                               ; preds = %6
  call void @_ZN11alglib_impl20mincgsetprecdiagfastEPNS_10mincgstateEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %5)
  br label %._crit_edge125

11:                                               ; preds = %6
  %12 = load i64, ptr %0, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %4, i64 noundef %4, ptr noundef %5)
  %13 = getelementptr inbounds i8, ptr %0, i64 80
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %12, ptr noundef %5)
  %14 = getelementptr inbounds i8, ptr %0, i64 144
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %12, ptr noundef %5)
  %15 = getelementptr inbounds i8, ptr %0, i64 208
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %4, i64 noundef %12, ptr noundef %5)
  %16 = getelementptr inbounds i8, ptr %0, i64 72
  store i64 2, ptr %16, align 8, !tbaa !23
  %17 = getelementptr inbounds i8, ptr %0, i64 288
  store i64 %4, ptr %17, align 8, !tbaa !24
  %18 = getelementptr inbounds i8, ptr %0, i64 824
  store i8 1, ptr %18, align 8, !tbaa !25
  %.not.not108 = icmp sgt i64 %12, 0
  br i1 %.not.not108, label %.lr.ph, label %.preheader107.thread

.lr.ph:                                           ; preds = %11
  %19 = getelementptr inbounds i8, ptr %1, i64 56
  %20 = getelementptr inbounds i8, ptr %0, i64 136
  %21 = getelementptr inbounds i8, ptr %0, i64 200
  %22 = add nsw i64 %12, -1
  %xtraiter = and i64 %12, 1
  %23 = icmp eq i64 %22, 0
  br i1 %23, label %.preheader107.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %12, 9223372036854775806
  br label %94

.preheader107.unr-lcssa:                          ; preds = %94, %.lr.ph
  %.092109.unr = phi i64 [ 0, %.lr.ph ], [ %110, %94 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader107, label %.preheader107.epilog-lcssa

.preheader107.epilog-lcssa:                       ; preds = %.preheader107.unr-lcssa
  %24 = load ptr, ptr %19, align 8, !tbaa !26
  %25 = getelementptr inbounds double, ptr %24, i64 %.092109.unr
  %26 = load double, ptr %25, align 8, !tbaa !27
  %27 = load ptr, ptr %20, align 8, !tbaa !26
  %28 = getelementptr inbounds double, ptr %27, i64 %.092109.unr
  store double %26, ptr %28, align 8, !tbaa !27
  %29 = load ptr, ptr %21, align 8, !tbaa !26
  %30 = getelementptr inbounds double, ptr %29, i64 %.092109.unr
  store double 0.000000e+00, ptr %30, align 8, !tbaa !27
  br label %.preheader107

.preheader107:                                    ; preds = %.preheader107.unr-lcssa, %.preheader107.epilog-lcssa
  %31 = add nsw i64 %12, -1
  %.not.not100115 = icmp sgt i64 %4, 0
  br i1 %.not.not100115, label %.preheader106.lr.ph, label %._crit_edge

.preheader107.thread:                             ; preds = %11
  %32 = add nsw i64 %12, -1
  %.not.not100115132 = icmp sgt i64 %4, 0
  br i1 %.not.not100115132, label %.preheader106.lr.ph.thread, label %._crit_edge

.preheader106.lr.ph.thread:                       ; preds = %.preheader107.thread
  %33 = getelementptr inbounds i8, ptr %8, i64 72
  %34 = getelementptr inbounds i8, ptr %2, i64 56
  br label %.preheader106.preheader

.preheader106.lr.ph:                              ; preds = %.preheader107
  %35 = getelementptr inbounds i8, ptr %3, i64 72
  %36 = getelementptr inbounds i8, ptr %1, i64 56
  %37 = getelementptr inbounds i8, ptr %8, i64 72
  %38 = getelementptr inbounds i8, ptr %2, i64 56
  br i1 %.not.not108, label %.preheader106.us.preheader, label %.preheader106.preheader

.preheader106.us.preheader:                       ; preds = %.preheader106.lr.ph
  %xtraiter141 = and i64 %12, 1
  %39 = icmp eq i64 %22, 0
  %unroll_iter144 = and i64 %12, 9223372036854775806
  %lcmp.mod142.not = icmp eq i64 %xtraiter141, 0
  br label %.preheader106.us

.preheader106.preheader:                          ; preds = %.preheader106.lr.ph.thread, %.preheader106.lr.ph
  %40 = phi ptr [ %34, %.preheader106.lr.ph.thread ], [ %38, %.preheader106.lr.ph ]
  %41 = phi ptr [ %33, %.preheader106.lr.ph.thread ], [ %37, %.preheader106.lr.ph ]
  %42 = phi i64 [ %32, %.preheader106.lr.ph.thread ], [ %31, %.preheader106.lr.ph ]
  br label %.preheader106

.preheader106.us:                                 ; preds = %.preheader106.us.preheader, %.split.us.us
  %.1116.us = phi i64 [ %93, %.split.us.us ], [ 0, %.preheader106.us.preheader ]
  br label %.preheader105.us.us

.preheader105.us.us:                              ; preds = %._crit_edge.us.us, %.preheader106.us
  %.094114.us.us = phi i64 [ %.1116.us, %.preheader106.us ], [ %82, %._crit_edge.us.us ]
  %43 = load ptr, ptr %35, align 8, !tbaa !26
  %44 = getelementptr inbounds ptr, ptr %43, i64 %.1116.us
  %45 = load ptr, ptr %44, align 8, !tbaa !28
  %46 = getelementptr inbounds ptr, ptr %43, i64 %.094114.us.us
  %47 = load ptr, ptr %46, align 8, !tbaa !28
  %48 = load ptr, ptr %36, align 8, !tbaa !26
  br i1 %39, label %._crit_edge.us.us.unr-lcssa, label %.preheader105.us.us.new

.preheader105.us.us.new:                          ; preds = %.preheader105.us.us, %.preheader105.us.us.new
  %.0112.us.us = phi double [ %67, %.preheader105.us.us.new ], [ 0.000000e+00, %.preheader105.us.us ]
  %.093111.us.us = phi i64 [ %68, %.preheader105.us.us.new ], [ 0, %.preheader105.us.us ]
  %niter145 = phi i64 [ %niter145.next.1, %.preheader105.us.us.new ], [ 0, %.preheader105.us.us ]
  %49 = getelementptr inbounds double, ptr %45, i64 %.093111.us.us
  %50 = load double, ptr %49, align 8, !tbaa !27
  %51 = getelementptr inbounds double, ptr %47, i64 %.093111.us.us
  %52 = load double, ptr %51, align 8, !tbaa !27
  %53 = fmul double %50, %52
  %54 = getelementptr inbounds double, ptr %48, i64 %.093111.us.us
  %55 = load double, ptr %54, align 8, !tbaa !27
  %56 = fdiv double %53, %55
  %57 = fadd double %.0112.us.us, %56
  %58 = or disjoint i64 %.093111.us.us, 1
  %59 = getelementptr inbounds double, ptr %45, i64 %58
  %60 = load double, ptr %59, align 8, !tbaa !27
  %61 = getelementptr inbounds double, ptr %47, i64 %58
  %62 = load double, ptr %61, align 8, !tbaa !27
  %63 = fmul double %60, %62
  %64 = getelementptr inbounds double, ptr %48, i64 %58
  %65 = load double, ptr %64, align 8, !tbaa !27
  %66 = fdiv double %63, %65
  %67 = fadd double %57, %66
  %68 = add nuw nsw i64 %.093111.us.us, 2
  %niter145.next.1 = add i64 %niter145, 2
  %niter145.ncmp.1 = icmp eq i64 %niter145.next.1, %unroll_iter144
  br i1 %niter145.ncmp.1, label %._crit_edge.us.us.unr-lcssa, label %.preheader105.us.us.new, !llvm.loop !29

._crit_edge.us.us.unr-lcssa:                      ; preds = %.preheader105.us.us.new, %.preheader105.us.us
  %.lcssa.ph = phi double [ poison, %.preheader105.us.us ], [ %67, %.preheader105.us.us.new ]
  %.0112.us.us.unr = phi double [ 0.000000e+00, %.preheader105.us.us ], [ %67, %.preheader105.us.us.new ]
  %.093111.us.us.unr = phi i64 [ 0, %.preheader105.us.us ], [ %68, %.preheader105.us.us.new ]
  br i1 %lcmp.mod142.not, label %._crit_edge.us.us, label %._crit_edge.us.us.epilog-lcssa

._crit_edge.us.us.epilog-lcssa:                   ; preds = %._crit_edge.us.us.unr-lcssa
  %69 = getelementptr inbounds double, ptr %45, i64 %.093111.us.us.unr
  %70 = load double, ptr %69, align 8, !tbaa !27
  %71 = getelementptr inbounds double, ptr %47, i64 %.093111.us.us.unr
  %72 = load double, ptr %71, align 8, !tbaa !27
  %73 = fmul double %70, %72
  %74 = getelementptr inbounds double, ptr %48, i64 %.093111.us.us.unr
  %75 = load double, ptr %74, align 8, !tbaa !27
  %76 = fdiv double %73, %75
  %77 = fadd double %.0112.us.us.unr, %76
  br label %._crit_edge.us.us

._crit_edge.us.us:                                ; preds = %._crit_edge.us.us.unr-lcssa, %._crit_edge.us.us.epilog-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge.us.us.unr-lcssa ], [ %77, %._crit_edge.us.us.epilog-lcssa ]
  %78 = load ptr, ptr %37, align 8, !tbaa !26
  %79 = getelementptr inbounds ptr, ptr %78, i64 %.1116.us
  %80 = load ptr, ptr %79, align 8, !tbaa !28
  %81 = getelementptr inbounds double, ptr %80, i64 %.094114.us.us
  store double %.lcssa, ptr %81, align 8, !tbaa !27
  %82 = add nuw nsw i64 %.094114.us.us, 1
  %.not.not103.us.us = icmp slt i64 %82, %4
  br i1 %.not.not103.us.us, label %.preheader105.us.us, label %.split.us.us, !llvm.loop !31

.split.us.us:                                     ; preds = %._crit_edge.us.us
  %83 = load ptr, ptr %37, align 8, !tbaa !26
  %84 = getelementptr inbounds ptr, ptr %83, i64 %.1116.us
  %85 = load ptr, ptr %84, align 8, !tbaa !28
  %86 = getelementptr inbounds double, ptr %85, i64 %.1116.us
  %87 = load double, ptr %86, align 8, !tbaa !27
  %88 = load ptr, ptr %38, align 8, !tbaa !26
  %89 = getelementptr inbounds double, ptr %88, i64 %.1116.us
  %90 = load double, ptr %89, align 8, !tbaa !27
  %91 = fdiv double 1.000000e+00, %90
  %92 = fadd double %87, %91
  store double %92, ptr %86, align 8, !tbaa !27
  %93 = add nuw nsw i64 %.1116.us, 1
  %exitcond129.not = icmp eq i64 %93, %4
  br i1 %exitcond129.not, label %._crit_edge, label %.preheader106.us, !llvm.loop !32

94:                                               ; preds = %94, %.lr.ph.new
  %.092109 = phi i64 [ 0, %.lr.ph.new ], [ %110, %94 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %94 ]
  %95 = load ptr, ptr %19, align 8, !tbaa !26
  %96 = getelementptr inbounds double, ptr %95, i64 %.092109
  %97 = load double, ptr %96, align 8, !tbaa !27
  %98 = load ptr, ptr %20, align 8, !tbaa !26
  %99 = getelementptr inbounds double, ptr %98, i64 %.092109
  store double %97, ptr %99, align 8, !tbaa !27
  %100 = load ptr, ptr %21, align 8, !tbaa !26
  %101 = getelementptr inbounds double, ptr %100, i64 %.092109
  store double 0.000000e+00, ptr %101, align 8, !tbaa !27
  %102 = or disjoint i64 %.092109, 1
  %103 = load ptr, ptr %19, align 8, !tbaa !26
  %104 = getelementptr inbounds double, ptr %103, i64 %102
  %105 = load double, ptr %104, align 8, !tbaa !27
  %106 = load ptr, ptr %20, align 8, !tbaa !26
  %107 = getelementptr inbounds double, ptr %106, i64 %102
  store double %105, ptr %107, align 8, !tbaa !27
  %108 = load ptr, ptr %21, align 8, !tbaa !26
  %109 = getelementptr inbounds double, ptr %108, i64 %102
  store double 0.000000e+00, ptr %109, align 8, !tbaa !27
  %110 = add nuw nsw i64 %.092109, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader107.unr-lcssa, label %94, !llvm.loop !33

.preheader106:                                    ; preds = %.preheader106.preheader, %.split
  %.1116 = phi i64 [ %126, %.split ], [ 0, %.preheader106.preheader ]
  br label %.preheader105

.preheader105:                                    ; preds = %.preheader106, %.preheader105
  %.094114 = phi i64 [ %.1116, %.preheader106 ], [ %115, %.preheader105 ]
  %111 = load ptr, ptr %41, align 8, !tbaa !26
  %112 = getelementptr inbounds ptr, ptr %111, i64 %.1116
  %113 = load ptr, ptr %112, align 8, !tbaa !28
  %114 = getelementptr inbounds double, ptr %113, i64 %.094114
  store double 0.000000e+00, ptr %114, align 8, !tbaa !27
  %115 = add nuw nsw i64 %.094114, 1
  %.not.not103 = icmp slt i64 %115, %4
  br i1 %.not.not103, label %.preheader105, label %.split, !llvm.loop !31

.split:                                           ; preds = %.preheader105
  %116 = load ptr, ptr %41, align 8, !tbaa !26
  %117 = getelementptr inbounds ptr, ptr %116, i64 %.1116
  %118 = load ptr, ptr %117, align 8, !tbaa !28
  %119 = getelementptr inbounds double, ptr %118, i64 %.1116
  %120 = load double, ptr %119, align 8, !tbaa !27
  %121 = load ptr, ptr %40, align 8, !tbaa !26
  %122 = getelementptr inbounds double, ptr %121, i64 %.1116
  %123 = load double, ptr %122, align 8, !tbaa !27
  %124 = fdiv double 1.000000e+00, %123
  %125 = fadd double %120, %124
  store double %125, ptr %119, align 8, !tbaa !27
  %126 = add nuw nsw i64 %.1116, 1
  %exitcond127.not = icmp eq i64 %126, %4
  br i1 %exitcond127.not, label %._crit_edge, label %.preheader106, !llvm.loop !32

._crit_edge:                                      ; preds = %.split, %.split.us.us, %.preheader107.thread, %.preheader107
  %.not.not100115133 = phi i1 [ false, %.preheader107.thread ], [ false, %.preheader107 ], [ true, %.split.us.us ], [ true, %.split ]
  %127 = phi i64 [ %32, %.preheader107.thread ], [ %31, %.preheader107 ], [ %31, %.split.us.us ], [ %42, %.split ]
  %128 = getelementptr inbounds i8, ptr %0, i64 1600
  %129 = call noundef zeroext i1 @_ZN11alglib_impl20spdmatrixcholeskyrecEPNS_9ae_matrixEllbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef 0, i64 noundef %4, i1 noundef zeroext true, ptr noundef nonnull %128, ptr noundef %5)
  br i1 %129, label %.preheader, label %133

.preheader:                                       ; preds = %._crit_edge
  br i1 %.not.not100115133, label %.lr.ph124, label %._crit_edge125

.lr.ph124:                                        ; preds = %.preheader
  %130 = getelementptr inbounds i8, ptr %0, i64 280
  %131 = getelementptr inbounds i8, ptr %3, i64 72
  %132 = getelementptr inbounds i8, ptr %8, i64 72
  br label %134

133:                                              ; preds = %._crit_edge
  store i64 0, ptr %17, align 8, !tbaa !24
  br label %._crit_edge125

134:                                              ; preds = %.lr.ph124, %._crit_edge121
  %.2123 = phi i64 [ 0, %.lr.ph124 ], [ %164, %._crit_edge121 ]
  %135 = load ptr, ptr %130, align 8, !tbaa !26
  %136 = getelementptr inbounds ptr, ptr %135, i64 %.2123
  %137 = load ptr, ptr %136, align 8, !tbaa !28
  %138 = load ptr, ptr %131, align 8, !tbaa !26
  %139 = getelementptr inbounds ptr, ptr %138, i64 %.2123
  %140 = load ptr, ptr %139, align 8, !tbaa !28
  %141 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %127)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %137, i64 noundef 1, ptr noundef %140, i64 noundef 1, i64 noundef %141)
  %.not.not102117.not = icmp eq i64 %.2123, 0
  br i1 %.not.not102117.not, label %._crit_edge121, label %.lr.ph120

.lr.ph120:                                        ; preds = %134, %.lr.ph120
  %.195118 = phi i64 [ %153, %.lr.ph120 ], [ 0, %134 ]
  %142 = load ptr, ptr %132, align 8, !tbaa !26
  %143 = getelementptr inbounds ptr, ptr %142, i64 %.195118
  %144 = load ptr, ptr %143, align 8, !tbaa !28
  %145 = getelementptr inbounds double, ptr %144, i64 %.2123
  %146 = load double, ptr %145, align 8, !tbaa !27
  %147 = load ptr, ptr %130, align 8, !tbaa !26
  %148 = getelementptr inbounds ptr, ptr %147, i64 %.2123
  %149 = load ptr, ptr %148, align 8, !tbaa !28
  %150 = getelementptr inbounds ptr, ptr %147, i64 %.195118
  %151 = load ptr, ptr %150, align 8, !tbaa !28
  %152 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %127)
  call void @_ZN11alglib_impl9ae_v_subdEPdlPKdlld(ptr noundef %149, i64 noundef 1, ptr noundef %151, i64 noundef 1, i64 noundef %152, double noundef %146)
  %153 = add nuw nsw i64 %.195118, 1
  %exitcond130.not = icmp eq i64 %153, %.2123
  br i1 %exitcond130.not, label %._crit_edge121, label %.lr.ph120, !llvm.loop !34

._crit_edge121:                                   ; preds = %.lr.ph120, %134
  %154 = load ptr, ptr %132, align 8, !tbaa !26
  %155 = getelementptr inbounds ptr, ptr %154, i64 %.2123
  %156 = load ptr, ptr %155, align 8, !tbaa !28
  %157 = getelementptr inbounds double, ptr %156, i64 %.2123
  %158 = load double, ptr %157, align 8, !tbaa !27
  %159 = fdiv double 1.000000e+00, %158
  %160 = load ptr, ptr %130, align 8, !tbaa !26
  %161 = getelementptr inbounds ptr, ptr %160, i64 %.2123
  %162 = load ptr, ptr %161, align 8, !tbaa !28
  %163 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %127)
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %162, i64 noundef 1, i64 noundef %163, double noundef %159)
  %164 = add nuw nsw i64 %.2123, 1
  %exitcond131.not = icmp eq i64 %164, %4
  br i1 %exitcond131.not, label %._crit_edge125, label %134, !llvm.loop !35

._crit_edge125:                                   ; preds = %._crit_edge121, %.preheader, %133, %10
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  ret void
}

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, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl10mincgstateE", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !7, i64 32, !10, i64 40, !10, i64 48, !11, i64 56, !11, i64 57, !7, i64 64, !7, i64 72, !12, i64 80, !12, i64 144, !15, i64 208, !7, i64 288, !12, i64 296, !10, i64 360, !7, i64 368, !7, i64 376, !7, i64 384, !12, i64 392, !12, i64 456, !12, i64 520, !12, i64 584, !12, i64 648, !10, i64 712, !10, i64 720, !10, i64 728, !12, i64 736, !10, i64 800, !10, i64 808, !7, i64 816, !11, i64 824, !11, i64 825, !10, i64 832, !12, i64 840, !7, i64 904, !12, i64 912, !10, i64 976, !12, i64 984, !11, i64 1048, !11, i64 1049, !11, i64 1050, !11, i64 1051, !11, i64 1052, !11, i64 1053, !11, i64 1054, !16, i64 1056, !7, i64 1320, !7, i64 1328, !7, i64 1336, !7, i64 1344, !18, i64 1352, !10, i64 1544, !10, i64 1552, !10, i64 1560, !10, i64 1568, !10, i64 1576, !10, i64 1584, !10, i64 1592, !12, i64 1600, !12, i64 1664, !12, i64 1728, !10, i64 1792, !7, i64 1800, !19, i64 1808, !12, i64 5776}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !13, i64 24, !8, i64 56}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !13, i64 40, !8, i64 72}
!16 = !{!"_ZTSN11alglib_impl10rcommstateE", !17, i64 0, !12, i64 8, !12, i64 72, !12, i64 136, !12, i64 200}
!17 = !{!"int", !8, i64 0}
!18 = !{!"_ZTSN11alglib_impl11linminstateE", !11, i64 0, !11, i64 1, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184}
!19 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !7, i64 88, !12, i64 96, !12, i64 160, !12, i64 224, !15, i64 288, !12, i64 368, !12, i64 432, !7, i64 496, !11, i64 504, !11, i64 505, !10, i64 512, !10, i64 520, !11, i64 528, !20, i64 536, !10, i64 832, !10, i64 840, !21, i64 848, !21, i64 1152, !10, i64 1456, !10, i64 1464, !22, i64 1472, !22, i64 1784, !11, i64 2096, !12, i64 2104, !12, i64 2168, !15, i64 2232, !16, i64 2312, !12, i64 2576, !12, i64 2640, !12, i64 2704, !12, i64 2768, !12, i64 2832, !12, i64 2896, !12, i64 2960, !12, i64 3024, !15, i64 3088, !15, i64 3168, !12, i64 3248, !12, i64 3312, !12, i64 3376, !12, i64 3440, !12, i64 3504, !12, i64 3568, !12, i64 3632, !12, i64 3696, !12, i64 3760, !12, i64 3824, !15, i64 3888}
!20 = !{!"_ZTSN11alglib_impl14optguardreportE", !11, i64 0, !11, i64 1, !7, i64 8, !10, i64 16, !11, i64 24, !11, i64 25, !11, i64 26, !7, i64 32, !10, i64 40, !11, i64 48, !7, i64 56, !7, i64 64, !12, i64 72, !15, i64 136, !15, i64 216}
!21 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !11, i64 0, !7, i64 8, !12, i64 16, !12, i64 80, !7, i64 144, !12, i64 152, !12, i64 216, !7, i64 280, !7, i64 288, !7, i64 296}
!22 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !11, i64 0, !7, i64 8, !7, i64 16, !12, i64 24, !12, i64 88, !7, i64 152, !12, i64 160, !12, i64 224, !7, i64 288, !7, i64 296, !7, i64 304}
!23 = !{!6, !7, i64 72}
!24 = !{!6, !7, i64 288}
!25 = !{!6, !11, i64 824}
!26 = !{!8, !8, i64 0}
!27 = !{!10, !10, i64 0}
!28 = !{!14, !14, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = distinct !{!32, !30}
!33 = distinct !{!33, !30}
!34 = distinct !{!34, !30}
!35 = distinct !{!35, !30}


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