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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11rmatrixsyrkElldPNS_9ae_matrixEllldS1_llbPNS_8ae_stateE(i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, ptr noundef) #1

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

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare noundef i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef) #2

declare noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl20spdmatrixcholeskyrecEPNS_9ae_matrixEllbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i1 noundef zeroext %3, ptr noundef %4, ptr noundef %5) #1 {
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  store i64 %2, ptr %10, align 8, !tbaa !9
  %20 = zext i1 %3 to i8
  store i8 %20, ptr %11, align 1, !tbaa !11
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #3
  %21 = load ptr, ptr %13, align 8, !tbaa !5
  %22 = call noundef i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef %21)
  store i64 %22, ptr %16, align 8, !tbaa !9
  %23 = load ptr, ptr %13, align 8, !tbaa !5
  %24 = call noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef %23)
  store i64 %24, ptr %17, align 8, !tbaa !9
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 0
  %27 = load i64, ptr %26, align 8, !tbaa !13
  %28 = load i64, ptr %10, align 8, !tbaa !9
  %29 = mul nsw i64 2, %28
  %30 = icmp slt i64 %27, %29
  br i1 %30, label %31, label %36

31:                                               ; preds = %6
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = load i64, ptr %10, align 8, !tbaa !9
  %34 = mul nsw i64 2, %33
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %34, ptr noundef %35)
  br label %36

36:                                               ; preds = %31, %6
  %37 = load i64, ptr %10, align 8, !tbaa !9
  %38 = icmp slt i64 %37, 1
  br i1 %38, label %39, label %42

39:                                               ; preds = %36
  store i8 0, ptr %18, align 1, !tbaa !11
  %40 = load i8, ptr %18, align 1, !tbaa !11, !range !16, !noundef !17
  %41 = trunc i8 %40 to i1
  store i1 %41, ptr %7, align 1
  store i32 1, ptr %19, align 4
  br label %229

42:                                               ; preds = %36
  %43 = load i64, ptr %10, align 8, !tbaa !9
  %44 = icmp eq i64 %43, 1
  br i1 %44, label %45, label %80

45:                                               ; preds = %42
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %46, i32 0, i32 6
  %48 = load ptr, ptr %47, align 8, !tbaa !18
  %49 = load i64, ptr %9, align 8, !tbaa !9
  %50 = getelementptr inbounds ptr, ptr %48, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = load i64, ptr %9, align 8, !tbaa !9
  %53 = getelementptr inbounds double, ptr %51, i64 %52
  %54 = load double, ptr %53, align 8, !tbaa !19
  %55 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %54, double noundef 0.000000e+00)
  br i1 %55, label %56, label %76

56:                                               ; preds = %45
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %57, i32 0, i32 6
  %59 = load ptr, ptr %58, align 8, !tbaa !18
  %60 = load i64, ptr %9, align 8, !tbaa !9
  %61 = getelementptr inbounds ptr, ptr %59, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = load i64, ptr %9, align 8, !tbaa !9
  %64 = getelementptr inbounds double, ptr %62, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !19
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %65, ptr noundef %66)
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %68, i32 0, i32 6
  %70 = load ptr, ptr %69, align 8, !tbaa !18
  %71 = load i64, ptr %9, align 8, !tbaa !9
  %72 = getelementptr inbounds ptr, ptr %70, i64 %71
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = load i64, ptr %9, align 8, !tbaa !9
  %75 = getelementptr inbounds double, ptr %73, i64 %74
  store double %67, ptr %75, align 8, !tbaa !19
  store i8 1, ptr %18, align 1, !tbaa !11
  br label %77

76:                                               ; preds = %45
  store i8 0, ptr %18, align 1, !tbaa !11
  br label %77

77:                                               ; preds = %76, %56
  %78 = load i8, ptr %18, align 1, !tbaa !11, !range !16, !noundef !17
  %79 = trunc i8 %78 to i1
  store i1 %79, ptr %7, align 1
  store i32 1, ptr %19, align 4
  br label %229

80:                                               ; preds = %42
  %81 = load i64, ptr %10, align 8, !tbaa !9
  %82 = load i64, ptr %17, align 8, !tbaa !9
  %83 = icmp sle i64 %81, %82
  br i1 %83, label %84, label %96

84:                                               ; preds = %80
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = load i64, ptr %9, align 8, !tbaa !9
  %87 = load i64, ptr %10, align 8, !tbaa !9
  %88 = load i8, ptr %11, align 1, !tbaa !11, !range !16, !noundef !17
  %89 = trunc i8 %88 to i1
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  %91 = call noundef zeroext i1 @_ZN11alglib_impl20spdmatrixcholeskymklEPNS_9ae_matrixEllbPbPNS_8ae_stateE(ptr noundef %85, i64 noundef %86, i64 noundef %87, i1 noundef zeroext %89, ptr noundef %18, ptr noundef %90)
  br i1 %91, label %92, label %95

92:                                               ; preds = %84
  %93 = load i8, ptr %18, align 1, !tbaa !11, !range !16, !noundef !17
  %94 = trunc i8 %93 to i1
  store i1 %94, ptr %7, align 1
  store i32 1, ptr %19, align 4
  br label %229

95:                                               ; preds = %84
  br label %96

96:                                               ; preds = %95, %80
  %97 = load i64, ptr %10, align 8, !tbaa !9
  %98 = load i64, ptr %16, align 8, !tbaa !9
  %99 = icmp sle i64 %97, %98
  br i1 %99, label %100, label %112

100:                                              ; preds = %96
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = load i64, ptr %9, align 8, !tbaa !9
  %103 = load i64, ptr %10, align 8, !tbaa !9
  %104 = load i8, ptr %11, align 1, !tbaa !11, !range !16, !noundef !17
  %105 = trunc i8 %104 to i1
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = load ptr, ptr %13, align 8, !tbaa !5
  %108 = call noundef zeroext i1 @_ZN11alglib_implL24trfac_spdmatrixcholesky2EPNS_9ae_matrixEllbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %101, i64 noundef %102, i64 noundef %103, i1 noundef zeroext %105, ptr noundef %106, ptr noundef %107)
  %109 = zext i1 %108 to i8
  store i8 %109, ptr %18, align 1, !tbaa !11
  %110 = load i8, ptr %18, align 1, !tbaa !11, !range !16, !noundef !17
  %111 = trunc i8 %110 to i1
  store i1 %111, ptr %7, align 1
  store i32 1, ptr %19, align 4
  br label %229

112:                                              ; preds = %96
  %113 = load i64, ptr %10, align 8, !tbaa !9
  %114 = load i64, ptr %17, align 8, !tbaa !9
  %115 = icmp sgt i64 %113, %114
  br i1 %115, label %116, label %121

116:                                              ; preds = %112
  %117 = load i64, ptr %17, align 8, !tbaa !9
  store i64 %117, ptr %14, align 8, !tbaa !9
  %118 = load i64, ptr %10, align 8, !tbaa !9
  %119 = load i64, ptr %14, align 8, !tbaa !9
  %120 = sub nsw i64 %118, %119
  store i64 %120, ptr %15, align 8, !tbaa !9
  br label %125

121:                                              ; preds = %112
  %122 = load i64, ptr %10, align 8, !tbaa !9
  %123 = load i64, ptr %16, align 8, !tbaa !9
  %124 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl10tiledsplitEllPlS0_PNS_8ae_stateE(i64 noundef %122, i64 noundef %123, ptr noundef %14, ptr noundef %15, ptr noundef %124)
  br label %125

125:                                              ; preds = %121, %116
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = load i64, ptr %9, align 8, !tbaa !9
  %128 = load i64, ptr %14, align 8, !tbaa !9
  %129 = load i8, ptr %11, align 1, !tbaa !11, !range !16, !noundef !17
  %130 = trunc i8 %129 to i1
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = load ptr, ptr %13, align 8, !tbaa !5
  %133 = call noundef zeroext i1 @_ZN11alglib_impl20spdmatrixcholeskyrecEPNS_9ae_matrixEllbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %126, i64 noundef %127, i64 noundef %128, i1 noundef zeroext %130, ptr noundef %131, ptr noundef %132)
  %134 = zext i1 %133 to i8
  store i8 %134, ptr %18, align 1, !tbaa !11
  %135 = load i8, ptr %18, align 1, !tbaa !11, !range !16, !noundef !17
  %136 = trunc i8 %135 to i1
  br i1 %136, label %140, label %137

137:                                              ; preds = %125
  %138 = load i8, ptr %18, align 1, !tbaa !11, !range !16, !noundef !17
  %139 = trunc i8 %138 to i1
  store i1 %139, ptr %7, align 1
  store i32 1, ptr %19, align 4
  br label %229

140:                                              ; preds = %125
  %141 = load i64, ptr %15, align 8, !tbaa !9
  %142 = icmp sgt i64 %141, 0
  br i1 %142, label %143, label %226

143:                                              ; preds = %140
  %144 = load i8, ptr %11, align 1, !tbaa !11, !range !16, !noundef !17
  %145 = trunc i8 %144 to i1
  br i1 %145, label %146, label %177

146:                                              ; preds = %143
  %147 = load i64, ptr %14, align 8, !tbaa !9
  %148 = load i64, ptr %15, align 8, !tbaa !9
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = load i64, ptr %9, align 8, !tbaa !9
  %151 = load i64, ptr %9, align 8, !tbaa !9
  %152 = load i8, ptr %11, align 1, !tbaa !11, !range !16, !noundef !17
  %153 = trunc i8 %152 to i1
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = load i64, ptr %9, align 8, !tbaa !9
  %156 = load i64, ptr %9, align 8, !tbaa !9
  %157 = load i64, ptr %14, align 8, !tbaa !9
  %158 = add nsw i64 %156, %157
  %159 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %147, i64 noundef %148, ptr noundef %149, i64 noundef %150, i64 noundef %151, i1 noundef zeroext %153, i1 noundef zeroext false, i64 noundef 1, ptr noundef %154, i64 noundef %155, i64 noundef %158, ptr noundef %159)
  %160 = load i64, ptr %15, align 8, !tbaa !9
  %161 = load i64, ptr %14, align 8, !tbaa !9
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = load i64, ptr %9, align 8, !tbaa !9
  %164 = load i64, ptr %9, align 8, !tbaa !9
  %165 = load i64, ptr %14, align 8, !tbaa !9
  %166 = add nsw i64 %164, %165
  %167 = load ptr, ptr %8, align 8, !tbaa !5
  %168 = load i64, ptr %9, align 8, !tbaa !9
  %169 = load i64, ptr %14, align 8, !tbaa !9
  %170 = add nsw i64 %168, %169
  %171 = load i64, ptr %9, align 8, !tbaa !9
  %172 = load i64, ptr %14, align 8, !tbaa !9
  %173 = add nsw i64 %171, %172
  %174 = load i8, ptr %11, align 1, !tbaa !11, !range !16, !noundef !17
  %175 = trunc i8 %174 to i1
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixsyrkElldPNS_9ae_matrixEllldS1_llbPNS_8ae_stateE(i64 noundef %160, i64 noundef %161, double noundef -1.000000e+00, ptr noundef %162, i64 noundef %163, i64 noundef %166, i64 noundef 1, double noundef 1.000000e+00, ptr noundef %167, i64 noundef %170, i64 noundef %173, i1 noundef zeroext %175, ptr noundef %176)
  br label %208

177:                                              ; preds = %143
  %178 = load i64, ptr %15, align 8, !tbaa !9
  %179 = load i64, ptr %14, align 8, !tbaa !9
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = load i64, ptr %9, align 8, !tbaa !9
  %182 = load i64, ptr %9, align 8, !tbaa !9
  %183 = load i8, ptr %11, align 1, !tbaa !11, !range !16, !noundef !17
  %184 = trunc i8 %183 to i1
  %185 = load ptr, ptr %8, align 8, !tbaa !5
  %186 = load i64, ptr %9, align 8, !tbaa !9
  %187 = load i64, ptr %14, align 8, !tbaa !9
  %188 = add nsw i64 %186, %187
  %189 = load i64, ptr %9, align 8, !tbaa !9
  %190 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %178, i64 noundef %179, ptr noundef %180, i64 noundef %181, i64 noundef %182, i1 noundef zeroext %184, i1 noundef zeroext false, i64 noundef 1, ptr noundef %185, i64 noundef %188, i64 noundef %189, ptr noundef %190)
  %191 = load i64, ptr %15, align 8, !tbaa !9
  %192 = load i64, ptr %14, align 8, !tbaa !9
  %193 = load ptr, ptr %8, align 8, !tbaa !5
  %194 = load i64, ptr %9, align 8, !tbaa !9
  %195 = load i64, ptr %14, align 8, !tbaa !9
  %196 = add nsw i64 %194, %195
  %197 = load i64, ptr %9, align 8, !tbaa !9
  %198 = load ptr, ptr %8, align 8, !tbaa !5
  %199 = load i64, ptr %9, align 8, !tbaa !9
  %200 = load i64, ptr %14, align 8, !tbaa !9
  %201 = add nsw i64 %199, %200
  %202 = load i64, ptr %9, align 8, !tbaa !9
  %203 = load i64, ptr %14, align 8, !tbaa !9
  %204 = add nsw i64 %202, %203
  %205 = load i8, ptr %11, align 1, !tbaa !11, !range !16, !noundef !17
  %206 = trunc i8 %205 to i1
  %207 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixsyrkElldPNS_9ae_matrixEllldS1_llbPNS_8ae_stateE(i64 noundef %191, i64 noundef %192, double noundef -1.000000e+00, ptr noundef %193, i64 noundef %196, i64 noundef %197, i64 noundef 0, double noundef 1.000000e+00, ptr noundef %198, i64 noundef %201, i64 noundef %204, i1 noundef zeroext %206, ptr noundef %207)
  br label %208

208:                                              ; preds = %177, %146
  %209 = load ptr, ptr %8, align 8, !tbaa !5
  %210 = load i64, ptr %9, align 8, !tbaa !9
  %211 = load i64, ptr %14, align 8, !tbaa !9
  %212 = add nsw i64 %210, %211
  %213 = load i64, ptr %15, align 8, !tbaa !9
  %214 = load i8, ptr %11, align 1, !tbaa !11, !range !16, !noundef !17
  %215 = trunc i8 %214 to i1
  %216 = load ptr, ptr %12, align 8, !tbaa !5
  %217 = load ptr, ptr %13, align 8, !tbaa !5
  %218 = call noundef zeroext i1 @_ZN11alglib_impl20spdmatrixcholeskyrecEPNS_9ae_matrixEllbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %209, i64 noundef %212, i64 noundef %213, i1 noundef zeroext %215, ptr noundef %216, ptr noundef %217)
  %219 = zext i1 %218 to i8
  store i8 %219, ptr %18, align 1, !tbaa !11
  %220 = load i8, ptr %18, align 1, !tbaa !11, !range !16, !noundef !17
  %221 = trunc i8 %220 to i1
  br i1 %221, label %225, label %222

222:                                              ; preds = %208
  %223 = load i8, ptr %18, align 1, !tbaa !11, !range !16, !noundef !17
  %224 = trunc i8 %223 to i1
  store i1 %224, ptr %7, align 1
  store i32 1, ptr %19, align 4
  br label %229

225:                                              ; preds = %208
  br label %226

226:                                              ; preds = %225, %140
  %227 = load i8, ptr %18, align 1, !tbaa !11, !range !16, !noundef !17
  %228 = trunc i8 %227 to i1
  store i1 %228, ptr %7, align 1
  store i32 1, ptr %19, align 4
  br label %229

229:                                              ; preds = %226, %222, %137, %100, %92, %77, %39
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  %230 = load i1, ptr %7, align 1
  ret i1 %230
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL24trfac_spdmatrixcholesky2EPNS_9ae_matrixEllbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !12, i64 16, !15, i64 24, !7, i64 56}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}


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

; Function Attrs: mustprogress 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 uwtable
declare dso_local void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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

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

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

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl20spdmatrixcholeskyrecEPNS_9ae_matrixEllbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i1 noundef zeroext %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #3
  %10 = tail call noundef i64 @_ZN11alglib_impl15matrixtilesizeaEPNS_8ae_stateE(ptr noundef %5)
  %11 = tail call noundef i64 @_ZN11alglib_impl15matrixtilesizebEPNS_8ae_stateE(ptr noundef %5)
  %12 = load i64, ptr %4, align 8, !tbaa !5
  %13 = shl nsw i64 %2, 1
  %14 = icmp slt i64 %12, %13
  br i1 %14, label %15, label %16

15:                                               ; preds = %6
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %13, ptr noundef %5)
  br label %16

16:                                               ; preds = %15, %6
  %17 = icmp slt i64 %2, 1
  br i1 %17, label %74, label %18

18:                                               ; preds = %16
  %19 = icmp eq i64 %2, 1
  br i1 %19, label %20, label %39

20:                                               ; preds = %18
  %21 = getelementptr inbounds i8, ptr %0, i64 72
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = getelementptr inbounds ptr, ptr %22, i64 %1
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = getelementptr inbounds double, ptr %24, i64 %1
  %26 = load double, ptr %25, align 8, !tbaa !15
  %27 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %26, double noundef 0.000000e+00)
  br i1 %27, label %28, label %74

28:                                               ; preds = %20
  %29 = load ptr, ptr %21, align 8, !tbaa !13
  %30 = getelementptr inbounds ptr, ptr %29, i64 %1
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  %32 = getelementptr inbounds double, ptr %31, i64 %1
  %33 = load double, ptr %32, align 8, !tbaa !15
  %34 = tail call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %33, ptr noundef %5)
  %35 = load ptr, ptr %21, align 8, !tbaa !13
  %36 = getelementptr inbounds ptr, ptr %35, i64 %1
  %37 = load ptr, ptr %36, align 8, !tbaa !14
  %38 = getelementptr inbounds double, ptr %37, i64 %1
  store double %34, ptr %38, align 8, !tbaa !15
  br label %74

39:                                               ; preds = %18
  %.not = icmp slt i64 %11, %2
  br i1 %.not, label %45, label %40

40:                                               ; preds = %39
  %41 = call noundef zeroext i1 @_ZN11alglib_impl20spdmatrixcholeskymklEPNS_9ae_matrixEllbPbPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i1 noundef zeroext %3, ptr noundef nonnull %9, ptr noundef %5)
  br i1 %41, label %42, label %.thread

42:                                               ; preds = %40
  %43 = load i8, ptr %9, align 1, !tbaa !17, !range !18, !noundef !19
  %44 = trunc nuw i8 %43 to i1
  br label %74

45:                                               ; preds = %39
  %.not92 = icmp slt i64 %10, %2
  br i1 %.not92, label %48, label %46

.thread:                                          ; preds = %40
  %.not9293 = icmp slt i64 %10, %2
  br i1 %.not9293, label %50, label %46

46:                                               ; preds = %.thread, %45
  %47 = call noundef zeroext i1 @_ZN11alglib_implL24trfac_spdmatrixcholesky2EPNS_9ae_matrixEllbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i1 noundef zeroext %3, ptr noundef nonnull %4, ptr noundef %5)
  br label %74

48:                                               ; preds = %45
  store i64 %11, ptr %7, align 8, !tbaa !20
  %49 = sub nsw i64 %2, %11
  store i64 %49, ptr %8, align 8, !tbaa !20
  br label %51

50:                                               ; preds = %.thread
  call void @_ZN11alglib_impl10tiledsplitEllPlS0_PNS_8ae_stateE(i64 noundef %2, i64 noundef %10, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef %5)
  %.pre = load i64, ptr %7, align 8, !tbaa !20
  br label %51

51:                                               ; preds = %50, %48
  %52 = phi i64 [ %.pre, %50 ], [ %11, %48 ]
  %53 = call noundef zeroext i1 @_ZN11alglib_impl20spdmatrixcholeskyrecEPNS_9ae_matrixEllbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %52, i1 noundef zeroext %3, ptr noundef nonnull %4, ptr noundef %5)
  %54 = zext i1 %53 to i8
  store i8 %54, ptr %9, align 1, !tbaa !17
  br i1 %53, label %55, label %74

55:                                               ; preds = %51
  %56 = load i64, ptr %8, align 8, !tbaa !20
  %57 = icmp sgt i64 %56, 0
  br i1 %57, label %58, label %74

58:                                               ; preds = %55
  %59 = load i64, ptr %7, align 8, !tbaa !20
  %60 = add nsw i64 %59, %1
  br i1 %3, label %61, label %65

61:                                               ; preds = %58
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %59, i64 noundef %56, ptr noundef %0, i64 noundef %1, i64 noundef %1, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 1, ptr noundef %0, i64 noundef %1, i64 noundef %60, ptr noundef %5)
  %62 = load i64, ptr %8, align 8, !tbaa !20
  %63 = load i64, ptr %7, align 8, !tbaa !20
  %64 = add nsw i64 %63, %1
  call void @_ZN11alglib_impl11rmatrixsyrkElldPNS_9ae_matrixEllldS1_llbPNS_8ae_stateE(i64 noundef %62, i64 noundef %63, double noundef -1.000000e+00, ptr noundef %0, i64 noundef %1, i64 noundef %64, i64 noundef 1, double noundef 1.000000e+00, ptr noundef %0, i64 noundef %64, i64 noundef %64, i1 noundef zeroext true, ptr noundef %5)
  br label %69

65:                                               ; preds = %58
  call void @_ZN11alglib_impl16rmatrixrighttrsmEllPNS_9ae_matrixEllbblS1_llPNS_8ae_stateE(i64 noundef %56, i64 noundef %59, ptr noundef %0, i64 noundef %1, i64 noundef %1, i1 noundef zeroext false, i1 noundef zeroext false, i64 noundef 1, ptr noundef %0, i64 noundef %60, i64 noundef %1, ptr noundef %5)
  %66 = load i64, ptr %8, align 8, !tbaa !20
  %67 = load i64, ptr %7, align 8, !tbaa !20
  %68 = add nsw i64 %67, %1
  call void @_ZN11alglib_impl11rmatrixsyrkElldPNS_9ae_matrixEllldS1_llbPNS_8ae_stateE(i64 noundef %66, i64 noundef %67, double noundef -1.000000e+00, ptr noundef %0, i64 noundef %68, i64 noundef %1, i64 noundef 0, double noundef 1.000000e+00, ptr noundef %0, i64 noundef %68, i64 noundef %68, i1 noundef zeroext false, ptr noundef %5)
  br label %69

69:                                               ; preds = %65, %61
  %70 = load i64, ptr %7, align 8, !tbaa !20
  %71 = add nsw i64 %70, %1
  %72 = load i64, ptr %8, align 8, !tbaa !20
  %73 = call noundef zeroext i1 @_ZN11alglib_impl20spdmatrixcholeskyrecEPNS_9ae_matrixEllbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, i64 noundef %71, i64 noundef %72, i1 noundef zeroext %3, ptr noundef nonnull %4, ptr noundef %5)
  br label %74

74:                                               ; preds = %28, %20, %69, %16, %55, %51, %46, %42
  %.0 = phi i1 [ %44, %42 ], [ %47, %46 ], [ false, %51 ], [ true, %55 ], [ false, %16 ], [ %73, %69 ], [ %27, %20 ], [ %27, %28 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  ret i1 %.0
}

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL24trfac_spdmatrixcholesky2EPNS_9ae_matrixEllbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !8, i64 0}
!17 = !{!10, !10, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass