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

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

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

@.str.34 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [39 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: mustprogress uwtable
define dso_local void @_ZN11alglib_impl4covmEPNS_9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.alglib_impl::ae_frame", align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca double, align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store i64 %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 64, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #4
  %20 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %20, ptr noundef %11)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef %12, ptr noundef %21, ptr noundef %22, i1 noundef zeroext true)
  store ptr %12, ptr %6, align 8, !tbaa !5
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %23)
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 3, ptr noundef %24, i1 noundef zeroext true)
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 3, ptr noundef %25, i1 noundef zeroext true)
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 1, ptr noundef %26, i1 noundef zeroext true)
  %27 = load i64, ptr %7, align 8, !tbaa !9
  %28 = icmp sge i64 %27, 0
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %28, ptr noundef @.str.34, ptr noundef %29)
  %30 = load i64, ptr %8, align 8, !tbaa !9
  %31 = icmp sge i64 %30, 1
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef @.str.35, ptr noundef %32)
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 0
  %35 = load i64, ptr %34, align 8, !tbaa !11
  %36 = load i64, ptr %7, align 8, !tbaa !9
  %37 = icmp sge i64 %35, %36
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %37, ptr noundef @.str.36, ptr noundef %38)
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %39, i32 0, i32 1
  %41 = load i64, ptr %40, align 8, !tbaa !15
  %42 = load i64, ptr %8, align 8, !tbaa !9
  %43 = icmp sge i64 %41, %42
  br i1 %43, label %47, label %44

44:                                               ; preds = %5
  %45 = load i64, ptr %7, align 8, !tbaa !9
  %46 = icmp eq i64 %45, 0
  br label %47

47:                                               ; preds = %44, %5
  %48 = phi i1 [ true, %5 ], [ %46, %44 ]
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.37, ptr noundef %49)
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load i64, ptr %7, align 8, !tbaa !9
  %52 = load i64, ptr %8, align 8, !tbaa !9
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %50, i64 noundef %51, i64 noundef %52, ptr noundef %53)
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %54, ptr noundef @.str.38, ptr noundef %55)
  %56 = load i64, ptr %7, align 8, !tbaa !9
  %57 = icmp sle i64 %56, 1
  br i1 %57, label %58, label %92

58:                                               ; preds = %47
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = load i64, ptr %8, align 8, !tbaa !9
  %61 = load i64, ptr %8, align 8, !tbaa !9
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %59, i64 noundef %60, i64 noundef %61, ptr noundef %62)
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %63

63:                                               ; preds = %87, %58
  %64 = load i64, ptr %13, align 8, !tbaa !9
  %65 = load i64, ptr %8, align 8, !tbaa !9
  %66 = sub nsw i64 %65, 1
  %67 = icmp sle i64 %64, %66
  br i1 %67, label %68, label %90

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

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

74:                                               ; preds = %69
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %75, i32 0, i32 6
  %77 = load ptr, ptr %76, align 8, !tbaa !16
  %78 = load i64, ptr %13, align 8, !tbaa !9
  %79 = getelementptr inbounds ptr, ptr %77, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = load i64, ptr %14, align 8, !tbaa !9
  %82 = getelementptr inbounds double, ptr %80, i64 %81
  store double 0.000000e+00, ptr %82, align 8, !tbaa !17
  br label %83

83:                                               ; preds = %74
  %84 = load i64, ptr %14, align 8, !tbaa !9
  %85 = add nsw i64 %84, 1
  store i64 %85, ptr %14, align 8, !tbaa !9
  br label %69, !llvm.loop !19

86:                                               ; preds = %69
  br label %87

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

90:                                               ; preds = %63
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %91)
  store i32 1, ptr %19, align 4
  br label %261

92:                                               ; preds = %47
  %93 = load i64, ptr %8, align 8, !tbaa !9
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %93, ptr noundef %94)
  %95 = load i64, ptr %8, align 8, !tbaa !9
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %95, ptr noundef %96)
  %97 = load i64, ptr %8, align 8, !tbaa !9
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %97, ptr noundef %98)
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = load i64, ptr %8, align 8, !tbaa !9
  %101 = load i64, ptr %8, align 8, !tbaa !9
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %99, i64 noundef %100, i64 noundef %101, ptr noundef %102)
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %103

103:                                              ; preds = %117, %92
  %104 = load i64, ptr %13, align 8, !tbaa !9
  %105 = load i64, ptr %8, align 8, !tbaa !9
  %106 = sub nsw i64 %105, 1
  %107 = icmp sle i64 %104, %106
  br i1 %107, label %108, label %120

108:                                              ; preds = %103
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %110 = load ptr, ptr %109, align 8, !tbaa !16
  %111 = load i64, ptr %13, align 8, !tbaa !9
  %112 = getelementptr inbounds double, ptr %110, i64 %111
  store double 0.000000e+00, ptr %112, align 8, !tbaa !17
  %113 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %114 = load ptr, ptr %113, align 8, !tbaa !16
  %115 = load i64, ptr %13, align 8, !tbaa !9
  %116 = getelementptr inbounds i8, ptr %114, i64 %115
  store i8 1, ptr %116, align 1, !tbaa !22
  br label %117

117:                                              ; preds = %108
  %118 = load i64, ptr %13, align 8, !tbaa !9
  %119 = add nsw i64 %118, 1
  store i64 %119, ptr %13, align 8, !tbaa !9
  br label %103, !llvm.loop !23

120:                                              ; preds = %103
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %122 = load ptr, ptr %121, align 8, !tbaa !16
  %123 = getelementptr inbounds double, ptr %122, i64 0
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %124, i32 0, i32 6
  %126 = load ptr, ptr %125, align 8, !tbaa !16
  %127 = getelementptr inbounds ptr, ptr %126, i64 0
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  %129 = getelementptr inbounds double, ptr %128, i64 0
  %130 = load i64, ptr %8, align 8, !tbaa !9
  %131 = sub nsw i64 %130, 1
  %132 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %131)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %123, i64 noundef 1, ptr noundef %129, i64 noundef 1, i64 noundef %132)
  %133 = load i64, ptr %7, align 8, !tbaa !9
  %134 = sitofp i64 %133 to double
  %135 = fdiv double 1.000000e+00, %134
  store double %135, ptr %15, align 8, !tbaa !17
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %136

136:                                              ; preds = %195, %120
  %137 = load i64, ptr %13, align 8, !tbaa !9
  %138 = load i64, ptr %7, align 8, !tbaa !9
  %139 = sub nsw i64 %138, 1
  %140 = icmp sle i64 %137, %139
  br i1 %140, label %141, label %198

141:                                              ; preds = %136
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %143 = load ptr, ptr %142, align 8, !tbaa !16
  %144 = getelementptr inbounds double, ptr %143, i64 0
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %145, i32 0, i32 6
  %147 = load ptr, ptr %146, align 8, !tbaa !16
  %148 = load i64, ptr %13, align 8, !tbaa !9
  %149 = getelementptr inbounds ptr, ptr %147, i64 %148
  %150 = load ptr, ptr %149, align 8, !tbaa !5
  %151 = getelementptr inbounds double, ptr %150, i64 0
  %152 = load i64, ptr %8, align 8, !tbaa !9
  %153 = sub nsw i64 %152, 1
  %154 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %153)
  %155 = load double, ptr %15, align 8, !tbaa !17
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %144, i64 noundef 1, ptr noundef %151, i64 noundef 1, i64 noundef %154, double noundef %155)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %156

156:                                              ; preds = %191, %141
  %157 = load i64, ptr %14, align 8, !tbaa !9
  %158 = load i64, ptr %8, align 8, !tbaa !9
  %159 = sub nsw i64 %158, 1
  %160 = icmp sle i64 %157, %159
  br i1 %160, label %161, label %194

161:                                              ; preds = %156
  %162 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %163 = load ptr, ptr %162, align 8, !tbaa !16
  %164 = load i64, ptr %14, align 8, !tbaa !9
  %165 = getelementptr inbounds i8, ptr %163, i64 %164
  %166 = load i8, ptr %165, align 1, !tbaa !22, !range !24, !noundef !25
  %167 = trunc i8 %166 to i1
  br i1 %167, label %168, label %184

168:                                              ; preds = %161
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %169, i32 0, i32 6
  %171 = load ptr, ptr %170, align 8, !tbaa !16
  %172 = load i64, ptr %13, align 8, !tbaa !9
  %173 = getelementptr inbounds ptr, ptr %171, i64 %172
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %175 = load i64, ptr %14, align 8, !tbaa !9
  %176 = getelementptr inbounds double, ptr %174, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !17
  %178 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %179 = load ptr, ptr %178, align 8, !tbaa !16
  %180 = load i64, ptr %14, align 8, !tbaa !9
  %181 = getelementptr inbounds double, ptr %179, i64 %180
  %182 = load double, ptr %181, align 8, !tbaa !17
  %183 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %177, double noundef %182)
  br label %184

184:                                              ; preds = %168, %161
  %185 = phi i1 [ false, %161 ], [ %183, %168 ]
  %186 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %187 = load ptr, ptr %186, align 8, !tbaa !16
  %188 = load i64, ptr %14, align 8, !tbaa !9
  %189 = getelementptr inbounds i8, ptr %187, i64 %188
  %190 = zext i1 %185 to i8
  store i8 %190, ptr %189, align 1, !tbaa !22
  br label %191

191:                                              ; preds = %184
  %192 = load i64, ptr %14, align 8, !tbaa !9
  %193 = add nsw i64 %192, 1
  store i64 %193, ptr %14, align 8, !tbaa !9
  br label %156, !llvm.loop !26

194:                                              ; preds = %156
  br label %195

195:                                              ; preds = %194
  %196 = load i64, ptr %13, align 8, !tbaa !9
  %197 = add nsw i64 %196, 1
  store i64 %197, ptr %13, align 8, !tbaa !9
  br label %136, !llvm.loop !27

198:                                              ; preds = %136
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %199

199:                                              ; preds = %244, %198
  %200 = load i64, ptr %13, align 8, !tbaa !9
  %201 = load i64, ptr %7, align 8, !tbaa !9
  %202 = sub nsw i64 %201, 1
  %203 = icmp sle i64 %200, %202
  br i1 %203, label %204, label %247

204:                                              ; preds = %199
  %205 = load ptr, ptr %6, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %205, i32 0, i32 6
  %207 = load ptr, ptr %206, align 8, !tbaa !16
  %208 = load i64, ptr %13, align 8, !tbaa !9
  %209 = getelementptr inbounds ptr, ptr %207, i64 %208
  %210 = load ptr, ptr %209, align 8, !tbaa !5
  %211 = getelementptr inbounds double, ptr %210, i64 0
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %213 = load ptr, ptr %212, align 8, !tbaa !16
  %214 = getelementptr inbounds double, ptr %213, i64 0
  %215 = load i64, ptr %8, align 8, !tbaa !9
  %216 = sub nsw i64 %215, 1
  %217 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %216)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %211, i64 noundef 1, ptr noundef %214, i64 noundef 1, i64 noundef %217)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %218

218:                                              ; preds = %240, %204
  %219 = load i64, ptr %14, align 8, !tbaa !9
  %220 = load i64, ptr %8, align 8, !tbaa !9
  %221 = sub nsw i64 %220, 1
  %222 = icmp sle i64 %219, %221
  br i1 %222, label %223, label %243

223:                                              ; preds = %218
  %224 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %225 = load ptr, ptr %224, align 8, !tbaa !16
  %226 = load i64, ptr %14, align 8, !tbaa !9
  %227 = getelementptr inbounds i8, ptr %225, i64 %226
  %228 = load i8, ptr %227, align 1, !tbaa !22, !range !24, !noundef !25
  %229 = trunc i8 %228 to i1
  br i1 %229, label %230, label %239

230:                                              ; preds = %223
  %231 = load ptr, ptr %6, align 8, !tbaa !5
  %232 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %231, i32 0, i32 6
  %233 = load ptr, ptr %232, align 8, !tbaa !16
  %234 = load i64, ptr %13, align 8, !tbaa !9
  %235 = getelementptr inbounds ptr, ptr %233, i64 %234
  %236 = load ptr, ptr %235, align 8, !tbaa !5
  %237 = load i64, ptr %14, align 8, !tbaa !9
  %238 = getelementptr inbounds double, ptr %236, i64 %237
  store double 0.000000e+00, ptr %238, align 8, !tbaa !17
  br label %239

239:                                              ; preds = %230, %223
  br label %240

240:                                              ; preds = %239
  %241 = load i64, ptr %14, align 8, !tbaa !9
  %242 = add nsw i64 %241, 1
  store i64 %242, ptr %14, align 8, !tbaa !9
  br label %218, !llvm.loop !28

243:                                              ; preds = %218
  br label %244

244:                                              ; preds = %243
  %245 = load i64, ptr %13, align 8, !tbaa !9
  %246 = add nsw i64 %245, 1
  store i64 %246, ptr %13, align 8, !tbaa !9
  br label %199, !llvm.loop !29

247:                                              ; preds = %199
  %248 = load i64, ptr %8, align 8, !tbaa !9
  %249 = load i64, ptr %7, align 8, !tbaa !9
  %250 = load i64, ptr %7, align 8, !tbaa !9
  %251 = sub nsw i64 %250, 1
  %252 = sitofp i64 %251 to double
  %253 = fdiv double 1.000000e+00, %252
  %254 = load ptr, ptr %6, align 8, !tbaa !5
  %255 = load ptr, ptr %9, align 8, !tbaa !5
  %256 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixsyrkElldPNS_9ae_matrixEllldS1_llbPNS_8ae_stateE(i64 noundef %248, i64 noundef %249, double noundef %253, ptr noundef %254, i64 noundef 0, i64 noundef 0, i64 noundef 1, double noundef 0.000000e+00, ptr noundef %255, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, ptr noundef %256)
  %257 = load ptr, ptr %9, align 8, !tbaa !5
  %258 = load i64, ptr %8, align 8, !tbaa !9
  %259 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl26rmatrixenforcesymmetricityEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %257, i64 noundef %258, i1 noundef zeroext true, ptr noundef %259)
  %260 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %260)
  store i32 0, ptr %19, align 4
  br label %261

261:                                              ; preds = %247, %90
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 64, 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 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  %262 = load i32, ptr %19, align 4
  switch i32 %262, label %264 [
    i32 0, label %263
    i32 1, label %263
  ]

263:                                              ; preds = %261, %261
  ret void

264:                                              ; preds = %261
  unreachable
}

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(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 noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) #2

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

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #2

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

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

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

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

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

declare 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) #2

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

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!12, !10, i64 8}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!13, !13, i64 0}
!23 = distinct !{!23, !20}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}


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

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

@.str.34 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [39 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 uwtable
define dso_local void @_ZN11alglib_impl4covmEPNS_9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = alloca %"struct.alglib_impl::ae_frame", align 8
  %7 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %4, ptr noundef nonnull %6)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %7, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl19ae_matrix_init_copyEPNS_9ae_matrixES1_PNS_8ae_stateEb(ptr noundef nonnull %7, ptr noundef %0, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %3)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 1, ptr noundef %4, i1 noundef zeroext true)
  %11 = icmp sgt i64 %1, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.34, ptr noundef %4)
  %12 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %12, ptr noundef nonnull @.str.35, ptr noundef %4)
  %13 = load i64, ptr %7, align 8, !tbaa !5
  %14 = icmp sge i64 %13, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.36, ptr noundef %4)
  %15 = getelementptr inbounds i8, ptr %7, i64 8
  %16 = load i64, ptr %15, align 8, !tbaa !13
  %17 = icmp sge i64 %16, %2
  %18 = icmp eq i64 %1, 0
  %19 = or i1 %18, %17
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.37, ptr noundef %4)
  %20 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %1, i64 noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.38, ptr noundef %4)
  %21 = icmp slt i64 %1, 2
  br i1 %21, label %22, label %51

22:                                               ; preds = %5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %3, i64 noundef %2, i64 noundef %2, ptr noundef %4)
  br i1 %12, label %.preheader.lr.ph, label %._crit_edge135

.preheader.lr.ph:                                 ; preds = %22
  %23 = getelementptr inbounds i8, ptr %3, i64 72
  %xtraiter161 = and i64 %2, 3
  %24 = icmp ult i64 %2, 4
  %unroll_iter163 = and i64 %2, 9223372036854775804
  %lcmp.mod162.not = icmp eq i64 %xtraiter161, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge132.us, %.preheader.lr.ph
  %.094134.us = phi i64 [ 0, %.preheader.lr.ph ], [ %50, %._crit_edge132.us ]
  br i1 %24, label %._crit_edge132.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.0130.us = phi i64 [ %44, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter164 = phi i64 [ %niter164.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %25 = load ptr, ptr %23, align 8, !tbaa !14
  %26 = getelementptr inbounds ptr, ptr %25, i64 %.094134.us
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  %28 = getelementptr inbounds double, ptr %27, i64 %.0130.us
  store double 0.000000e+00, ptr %28, align 8, !tbaa !16
  %29 = or disjoint i64 %.0130.us, 1
  %30 = load ptr, ptr %23, align 8, !tbaa !14
  %31 = getelementptr inbounds ptr, ptr %30, i64 %.094134.us
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  %33 = getelementptr inbounds double, ptr %32, i64 %29
  store double 0.000000e+00, ptr %33, align 8, !tbaa !16
  %34 = or disjoint i64 %.0130.us, 2
  %35 = load ptr, ptr %23, align 8, !tbaa !14
  %36 = getelementptr inbounds ptr, ptr %35, i64 %.094134.us
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  %38 = getelementptr inbounds double, ptr %37, i64 %34
  store double 0.000000e+00, ptr %38, align 8, !tbaa !16
  %39 = or disjoint i64 %.0130.us, 3
  %40 = load ptr, ptr %23, align 8, !tbaa !14
  %41 = getelementptr inbounds ptr, ptr %40, i64 %.094134.us
  %42 = load ptr, ptr %41, align 8, !tbaa !15
  %43 = getelementptr inbounds double, ptr %42, i64 %39
  store double 0.000000e+00, ptr %43, align 8, !tbaa !16
  %44 = add nuw nsw i64 %.0130.us, 4
  %niter164.next.3 = add i64 %niter164, 4
  %niter164.ncmp.3 = icmp eq i64 %niter164.next.3, %unroll_iter163
  br i1 %niter164.ncmp.3, label %._crit_edge132.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !18

._crit_edge132.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.0130.us.unr = phi i64 [ 0, %.preheader.us ], [ %44, %.preheader.us.new ]
  br i1 %lcmp.mod162.not, label %._crit_edge132.us, label %.epil.preheader160

.epil.preheader160:                               ; preds = %._crit_edge132.us.unr-lcssa, %.epil.preheader160
  %.0130.us.epil = phi i64 [ %49, %.epil.preheader160 ], [ %.0130.us.unr, %._crit_edge132.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader160 ], [ 0, %._crit_edge132.us.unr-lcssa ]
  %45 = load ptr, ptr %23, align 8, !tbaa !14
  %46 = getelementptr inbounds ptr, ptr %45, i64 %.094134.us
  %47 = load ptr, ptr %46, align 8, !tbaa !15
  %48 = getelementptr inbounds double, ptr %47, i64 %.0130.us.epil
  store double 0.000000e+00, ptr %48, align 8, !tbaa !16
  %49 = add nuw nsw i64 %.0130.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter161
  br i1 %epil.iter.cmp.not, label %._crit_edge132.us, label %.epil.preheader160, !llvm.loop !20

._crit_edge132.us:                                ; preds = %.epil.preheader160, %._crit_edge132.us.unr-lcssa
  %50 = add nuw nsw i64 %.094134.us, 1
  %exitcond148.not = icmp eq i64 %50, %2
  br i1 %exitcond148.not, label %._crit_edge135, label %.preheader.us, !llvm.loop !22

51:                                               ; preds = %5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %3, i64 noundef %2, i64 noundef %2, ptr noundef %4)
  br i1 %12, label %.lr.ph, label %.lr.ph119

.lr.ph:                                           ; preds = %51
  %52 = getelementptr inbounds i8, ptr %8, i64 56
  %53 = getelementptr inbounds i8, ptr %10, i64 56
  %xtraiter = and i64 %2, 1
  %54 = icmp eq i64 %2, 1
  br i1 %54, label %.lr.ph119.loopexit.unr-lcssa, label %.lr.ph.new

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

55:                                               ; preds = %55, %.lr.ph.new
  %.195110 = phi i64 [ 0, %.lr.ph.new ], [ %65, %55 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %55 ]
  %56 = load ptr, ptr %52, align 8, !tbaa !14
  %57 = getelementptr inbounds double, ptr %56, i64 %.195110
  store double 0.000000e+00, ptr %57, align 8, !tbaa !16
  %58 = load ptr, ptr %53, align 8, !tbaa !14
  %59 = getelementptr inbounds i8, ptr %58, i64 %.195110
  store i8 1, ptr %59, align 1, !tbaa !23
  %60 = or disjoint i64 %.195110, 1
  %61 = load ptr, ptr %52, align 8, !tbaa !14
  %62 = getelementptr inbounds double, ptr %61, i64 %60
  store double 0.000000e+00, ptr %62, align 8, !tbaa !16
  %63 = load ptr, ptr %53, align 8, !tbaa !14
  %64 = getelementptr inbounds i8, ptr %63, i64 %60
  store i8 1, ptr %64, align 1, !tbaa !23
  %65 = add nuw nsw i64 %.195110, 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 %.lr.ph119.loopexit.unr-lcssa, label %55, !llvm.loop !24

.lr.ph119.loopexit.unr-lcssa:                     ; preds = %55, %.lr.ph
  %.195110.unr = phi i64 [ 0, %.lr.ph ], [ %65, %55 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph119, label %.lr.ph119.loopexit.epilog-lcssa

.lr.ph119.loopexit.epilog-lcssa:                  ; preds = %.lr.ph119.loopexit.unr-lcssa
  %66 = load ptr, ptr %52, align 8, !tbaa !14
  %67 = getelementptr inbounds double, ptr %66, i64 %.195110.unr
  store double 0.000000e+00, ptr %67, align 8, !tbaa !16
  %68 = load ptr, ptr %53, align 8, !tbaa !14
  %69 = getelementptr inbounds i8, ptr %68, i64 %.195110.unr
  store i8 1, ptr %69, align 1, !tbaa !23
  br label %.lr.ph119

.lr.ph119:                                        ; preds = %.lr.ph119.loopexit.epilog-lcssa, %.lr.ph119.loopexit.unr-lcssa, %51
  %70 = add nsw i64 %2, -1
  %71 = getelementptr inbounds i8, ptr %9, i64 56
  %72 = load ptr, ptr %71, align 8, !tbaa !14
  %73 = getelementptr inbounds i8, ptr %7, i64 72
  %74 = load ptr, ptr %73, align 8, !tbaa !14
  %75 = load ptr, ptr %74, align 8, !tbaa !15
  %76 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %70)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %72, i64 noundef 1, ptr noundef %75, i64 noundef 1, i64 noundef %76)
  %77 = uitofp nneg i64 %1 to double
  %78 = fdiv double 1.000000e+00, %77
  %79 = getelementptr inbounds i8, ptr %8, i64 56
  %80 = getelementptr inbounds i8, ptr %10, i64 56
  %smax140 = call i64 @llvm.smax.i64(i64 %1, i64 1)
  br i1 %12, label %.lr.ph114.us, label %.lr.ph119.split

.lr.ph114.us:                                     ; preds = %.lr.ph119, %._crit_edge115.us
  %.296117.us = phi i64 [ %107, %._crit_edge115.us ], [ 0, %.lr.ph119 ]
  %81 = load ptr, ptr %79, align 8, !tbaa !14
  %82 = load ptr, ptr %73, align 8, !tbaa !14
  %83 = getelementptr inbounds ptr, ptr %82, i64 %.296117.us
  %84 = load ptr, ptr %83, align 8, !tbaa !15
  %85 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %70)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %81, i64 noundef 1, ptr noundef %84, i64 noundef 1, i64 noundef %85, double noundef %78)
  br label %86

86:                                               ; preds = %.lr.ph114.us, %101
  %.1112.us = phi i64 [ 0, %.lr.ph114.us ], [ %106, %101 ]
  %87 = load ptr, ptr %80, align 8, !tbaa !14
  %88 = getelementptr inbounds i8, ptr %87, i64 %.1112.us
  %89 = load i8, ptr %88, align 1, !tbaa !23, !range !25, !noundef !26
  %90 = trunc nuw i8 %89 to i1
  br i1 %90, label %91, label %101

91:                                               ; preds = %86
  %92 = load ptr, ptr %73, align 8, !tbaa !14
  %93 = getelementptr inbounds ptr, ptr %92, i64 %.296117.us
  %94 = load ptr, ptr %93, align 8, !tbaa !15
  %95 = getelementptr inbounds double, ptr %94, i64 %.1112.us
  %96 = load double, ptr %95, align 8, !tbaa !16
  %97 = load ptr, ptr %71, align 8, !tbaa !14
  %98 = getelementptr inbounds double, ptr %97, i64 %.1112.us
  %99 = load double, ptr %98, align 8, !tbaa !16
  %100 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %96, double noundef %99)
  %.pre = load ptr, ptr %80, align 8, !tbaa !14
  br label %101

101:                                              ; preds = %91, %86
  %102 = phi ptr [ %87, %86 ], [ %.pre, %91 ]
  %103 = phi i1 [ false, %86 ], [ %100, %91 ]
  %104 = getelementptr inbounds i8, ptr %102, i64 %.1112.us
  %105 = zext i1 %103 to i8
  store i8 %105, ptr %104, align 1, !tbaa !23
  %106 = add nuw nsw i64 %.1112.us, 1
  %exitcond139.not = icmp eq i64 %106, %2
  br i1 %exitcond139.not, label %._crit_edge115.us, label %86, !llvm.loop !27

._crit_edge115.us:                                ; preds = %101
  %107 = add nuw nsw i64 %.296117.us, 1
  %exitcond141.not = icmp eq i64 %107, %smax140
  br i1 %exitcond141.not, label %.lr.ph127, label %.lr.ph114.us, !llvm.loop !28

.lr.ph127:                                        ; preds = %.lr.ph119.split, %._crit_edge115.us
  %108 = add nsw i64 %1, -1
  %109 = getelementptr inbounds i8, ptr %8, i64 56
  %110 = getelementptr inbounds i8, ptr %10, i64 56
  %smax145 = call i64 @llvm.smax.i64(i64 %1, i64 1)
  br i1 %12, label %.lr.ph123.us.preheader, label %.lr.ph127.split

.lr.ph123.us.preheader:                           ; preds = %.lr.ph127
  %xtraiter156 = and i64 %2, 1
  %111 = icmp eq i64 %2, 1
  %unroll_iter158 = and i64 %2, 9223372036854775806
  %lcmp.mod157.not = icmp eq i64 %xtraiter156, 0
  br label %.lr.ph123.us

.lr.ph123.us:                                     ; preds = %.lr.ph123.us.preheader, %._crit_edge124.us
  %.3126.us = phi i64 [ %148, %._crit_edge124.us ], [ 0, %.lr.ph123.us.preheader ]
  %112 = load ptr, ptr %73, align 8, !tbaa !14
  %113 = getelementptr inbounds ptr, ptr %112, i64 %.3126.us
  %114 = load ptr, ptr %113, align 8, !tbaa !15
  %115 = load ptr, ptr %109, align 8, !tbaa !14
  %116 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %70)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %114, i64 noundef 1, ptr noundef %115, i64 noundef 1, i64 noundef %116)
  br i1 %111, label %._crit_edge124.us.unr-lcssa, label %.lr.ph123.us.new

.lr.ph123.us.new:                                 ; preds = %.lr.ph123.us, %137
  %.2121.us = phi i64 [ %138, %137 ], [ 0, %.lr.ph123.us ]
  %niter159 = phi i64 [ %niter159.next.1, %137 ], [ 0, %.lr.ph123.us ]
  %117 = load ptr, ptr %110, align 8, !tbaa !14
  %118 = getelementptr inbounds i8, ptr %117, i64 %.2121.us
  %119 = load i8, ptr %118, align 1, !tbaa !23, !range !25, !noundef !26
  %120 = trunc nuw i8 %119 to i1
  br i1 %120, label %121, label %126

121:                                              ; preds = %.lr.ph123.us.new
  %122 = load ptr, ptr %73, align 8, !tbaa !14
  %123 = getelementptr inbounds ptr, ptr %122, i64 %.3126.us
  %124 = load ptr, ptr %123, align 8, !tbaa !15
  %125 = getelementptr inbounds double, ptr %124, i64 %.2121.us
  store double 0.000000e+00, ptr %125, align 8, !tbaa !16
  br label %126

126:                                              ; preds = %121, %.lr.ph123.us.new
  %127 = or disjoint i64 %.2121.us, 1
  %128 = load ptr, ptr %110, align 8, !tbaa !14
  %129 = getelementptr inbounds i8, ptr %128, i64 %127
  %130 = load i8, ptr %129, align 1, !tbaa !23, !range !25, !noundef !26
  %131 = trunc nuw i8 %130 to i1
  br i1 %131, label %132, label %137

132:                                              ; preds = %126
  %133 = load ptr, ptr %73, align 8, !tbaa !14
  %134 = getelementptr inbounds ptr, ptr %133, i64 %.3126.us
  %135 = load ptr, ptr %134, align 8, !tbaa !15
  %136 = getelementptr inbounds double, ptr %135, i64 %127
  store double 0.000000e+00, ptr %136, align 8, !tbaa !16
  br label %137

137:                                              ; preds = %132, %126
  %138 = add nuw nsw i64 %.2121.us, 2
  %niter159.next.1 = add i64 %niter159, 2
  %niter159.ncmp.1 = icmp eq i64 %niter159.next.1, %unroll_iter158
  br i1 %niter159.ncmp.1, label %._crit_edge124.us.unr-lcssa, label %.lr.ph123.us.new, !llvm.loop !29

._crit_edge124.us.unr-lcssa:                      ; preds = %137, %.lr.ph123.us
  %.2121.us.unr = phi i64 [ 0, %.lr.ph123.us ], [ %138, %137 ]
  br i1 %lcmp.mod157.not, label %._crit_edge124.us, label %.epil.preheader155

.epil.preheader155:                               ; preds = %._crit_edge124.us.unr-lcssa
  %139 = load ptr, ptr %110, align 8, !tbaa !14
  %140 = getelementptr inbounds i8, ptr %139, i64 %.2121.us.unr
  %141 = load i8, ptr %140, align 1, !tbaa !23, !range !25, !noundef !26
  %142 = trunc nuw i8 %141 to i1
  br i1 %142, label %143, label %._crit_edge124.us

143:                                              ; preds = %.epil.preheader155
  %144 = load ptr, ptr %73, align 8, !tbaa !14
  %145 = getelementptr inbounds ptr, ptr %144, i64 %.3126.us
  %146 = load ptr, ptr %145, align 8, !tbaa !15
  %147 = getelementptr inbounds double, ptr %146, i64 %.2121.us.unr
  store double 0.000000e+00, ptr %147, align 8, !tbaa !16
  br label %._crit_edge124.us

._crit_edge124.us:                                ; preds = %.epil.preheader155, %143, %._crit_edge124.us.unr-lcssa
  %148 = add nuw nsw i64 %.3126.us, 1
  %exitcond146.not = icmp eq i64 %148, %smax145
  br i1 %exitcond146.not, label %._crit_edge128, label %.lr.ph123.us, !llvm.loop !30

.lr.ph119.split:                                  ; preds = %.lr.ph119, %.lr.ph119.split
  %.296117 = phi i64 [ %154, %.lr.ph119.split ], [ 0, %.lr.ph119 ]
  %149 = load ptr, ptr %79, align 8, !tbaa !14
  %150 = load ptr, ptr %73, align 8, !tbaa !14
  %151 = getelementptr inbounds ptr, ptr %150, i64 %.296117
  %152 = load ptr, ptr %151, align 8, !tbaa !15
  %153 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %70)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %149, i64 noundef 1, ptr noundef %152, i64 noundef 1, i64 noundef %153, double noundef %78)
  %154 = add nuw nsw i64 %.296117, 1
  %exitcond138.not = icmp eq i64 %154, %smax140
  br i1 %exitcond138.not, label %.lr.ph127, label %.lr.ph119.split, !llvm.loop !28

.lr.ph127.split:                                  ; preds = %.lr.ph127, %.lr.ph127.split
  %.3126 = phi i64 [ %160, %.lr.ph127.split ], [ 0, %.lr.ph127 ]
  %155 = load ptr, ptr %73, align 8, !tbaa !14
  %156 = getelementptr inbounds ptr, ptr %155, i64 %.3126
  %157 = load ptr, ptr %156, align 8, !tbaa !15
  %158 = load ptr, ptr %109, align 8, !tbaa !14
  %159 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %70)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %157, i64 noundef 1, ptr noundef %158, i64 noundef 1, i64 noundef %159)
  %160 = add nuw nsw i64 %.3126, 1
  %exitcond143.not = icmp eq i64 %160, %smax145
  br i1 %exitcond143.not, label %._crit_edge128, label %.lr.ph127.split, !llvm.loop !30

._crit_edge128:                                   ; preds = %.lr.ph127.split, %._crit_edge124.us
  %161 = uitofp nneg i64 %108 to double
  %162 = fdiv double 1.000000e+00, %161
  call void @_ZN11alglib_impl11rmatrixsyrkElldPNS_9ae_matrixEllldS1_llbPNS_8ae_stateE(i64 noundef %2, i64 noundef %1, double noundef %162, ptr noundef nonnull %7, i64 noundef 0, i64 noundef 0, i64 noundef 1, double noundef 0.000000e+00, ptr noundef %3, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, ptr noundef %4)
  call void @_ZN11alglib_impl26rmatrixenforcesymmetricityEPNS_9ae_matrixElbPNS_8ae_stateE(ptr noundef %3, i64 noundef %2, i1 noundef zeroext true, ptr noundef %4)
  br label %._crit_edge135

._crit_edge135:                                   ; preds = %._crit_edge132.us, %22, %._crit_edge128
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %4)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  ret void
}

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr 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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(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 noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 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_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

declare 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 #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #4

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!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 = !{!6, !7, i64 8}
!14 = !{!8, !8, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = distinct !{!22, !19}
!23 = !{!10, !10, i64 0}
!24 = distinct !{!24, !19}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = distinct !{!27, !19}
!28 = distinct !{!28, !19}
!29 = distinct !{!29, !19}
!30 = distinct !{!30, !19}


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