; LLVM IR from Dimandragon/non-parametric-dsp :: 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::sparsematrix" = type { %"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", i64, i64, i64, i64, i64, i64 }
%"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 }

@.str.503 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.504 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.505 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.506 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.507 = external hidden unnamed_addr constant [74 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

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

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare void @_ZN11alglib_impl7rallocmEllPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl11rmatrixcopyEllPKNS_9ae_matrixEllPS0_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

declare void @_ZN11alglib_impl5rsetmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, i64 noundef, double noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl16rmatrixtransposeEllPKNS_9ae_matrixEllPS0_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl6rdotrrElPKNS_9ae_matrixElS2_lPNS_8ae_stateE(i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl32quadraticlinearconverttodenseltrEPKNS_9ae_vectorElPKNS_9ae_matrixEPKNS_12sparsematrixElbPS0_PS3_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, i1 noundef zeroext %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #2 {
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i8, align 1
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca double, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i64 %1, ptr %11, align 8, !tbaa !9
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store i64 %4, ptr %14, align 8, !tbaa !9
  %24 = zext i1 %5 to i8
  store i8 %24, ptr %15, align 1, !tbaa !11
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %25 = load i64, ptr %14, align 8, !tbaa !9
  %26 = icmp eq i64 %25, 0
  br i1 %26, label %30, label %27

27:                                               ; preds = %9
  %28 = load i64, ptr %14, align 8, !tbaa !9
  %29 = icmp eq i64 %28, 1
  br label %30

30:                                               ; preds = %27, %9
  %31 = phi i1 [ true, %9 ], [ %29, %27 ]
  %32 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef @.str.503, ptr noundef %32)
  %33 = load i64, ptr %11, align 8, !tbaa !9
  %34 = icmp sge i64 %33, 1
  %35 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef @.str.504, ptr noundef %35)
  %36 = load i64, ptr %11, align 8, !tbaa !9
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = load ptr, ptr %16, align 8, !tbaa !5
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %36, ptr noundef %37, ptr noundef %38, ptr noundef %39)
  %40 = load i64, ptr %11, align 8, !tbaa !9
  %41 = load i64, ptr %11, align 8, !tbaa !9
  %42 = load ptr, ptr %17, align 8, !tbaa !5
  %43 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocmEllPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %40, i64 noundef %41, ptr noundef %42, ptr noundef %43)
  %44 = load i64, ptr %14, align 8, !tbaa !9
  %45 = icmp eq i64 %44, 0
  br i1 %45, label %46, label %62

46:                                               ; preds = %30
  %47 = load i8, ptr %15, align 1, !tbaa !11, !range !13, !noundef !14
  %48 = trunc i8 %47 to i1
  br i1 %48, label %49, label %55

49:                                               ; preds = %46
  %50 = load i64, ptr %11, align 8, !tbaa !9
  %51 = load i64, ptr %11, align 8, !tbaa !9
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = load ptr, ptr %17, align 8, !tbaa !5
  %54 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl16rmatrixtransposeEllPKNS_9ae_matrixEllPS0_llPNS_8ae_stateE(i64 noundef %50, i64 noundef %51, ptr noundef %52, i64 noundef 0, i64 noundef 0, ptr noundef %53, i64 noundef 0, i64 noundef 0, ptr noundef %54)
  br label %61

55:                                               ; preds = %46
  %56 = load i64, ptr %11, align 8, !tbaa !9
  %57 = load i64, ptr %11, align 8, !tbaa !9
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = load ptr, ptr %17, align 8, !tbaa !5
  %60 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixcopyEllPKNS_9ae_matrixEllPS0_llPNS_8ae_stateE(i64 noundef %56, i64 noundef %57, ptr noundef %58, i64 noundef 0, i64 noundef 0, ptr noundef %59, i64 noundef 0, i64 noundef 0, ptr noundef %60)
  br label %61

61:                                               ; preds = %55, %49
  br label %62

62:                                               ; preds = %61, %30
  %63 = load i64, ptr %14, align 8, !tbaa !9
  %64 = icmp eq i64 %63, 1
  br i1 %64, label %65, label %233

65:                                               ; preds = %62
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %66, i32 0, i32 5
  %68 = load i64, ptr %67, align 8, !tbaa !15
  %69 = icmp eq i64 %68, 1
  %70 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %69, ptr noundef @.str.505, ptr noundef %70)
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %71, i32 0, i32 6
  %73 = load i64, ptr %72, align 8, !tbaa !19
  %74 = load i64, ptr %11, align 8, !tbaa !9
  %75 = icmp eq i64 %73, %74
  %76 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %75, ptr noundef @.str.506, ptr noundef %76)
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %77, i32 0, i32 7
  %79 = load i64, ptr %78, align 8, !tbaa !20
  %80 = load i64, ptr %11, align 8, !tbaa !9
  %81 = icmp eq i64 %79, %80
  %82 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %81, ptr noundef @.str.506, ptr noundef %82)
  %83 = load i64, ptr %11, align 8, !tbaa !9
  %84 = load i64, ptr %11, align 8, !tbaa !9
  %85 = load ptr, ptr %17, align 8, !tbaa !5
  %86 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rsetmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %83, i64 noundef %84, double noundef 0.000000e+00, ptr noundef %85, ptr noundef %86)
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %87

87:                                               ; preds = %229, %65
  %88 = load i64, ptr %19, align 8, !tbaa !9
  %89 = load i64, ptr %11, align 8, !tbaa !9
  %90 = sub nsw i64 %89, 1
  %91 = icmp sle i64 %88, %90
  br i1 %91, label %92, label %232

92:                                               ; preds = %87
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %93, i32 0, i32 3
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !21
  %97 = load i64, ptr %19, align 8, !tbaa !9
  %98 = getelementptr inbounds i64, ptr %96, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !9
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %100, i32 0, i32 4
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %101, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !21
  %104 = load i64, ptr %19, align 8, !tbaa !9
  %105 = getelementptr inbounds i64, ptr %103, i64 %104
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = icmp ne i64 %99, %106
  br i1 %107, label %108, label %130

108:                                              ; preds = %92
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %109, i32 0, i32 0
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %110, i32 0, i32 4
  %112 = load ptr, ptr %111, align 8, !tbaa !21
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %113, i32 0, i32 3
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %114, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !21
  %117 = load i64, ptr %19, align 8, !tbaa !9
  %118 = getelementptr inbounds i64, ptr %116, i64 %117
  %119 = load i64, ptr %118, align 8, !tbaa !9
  %120 = getelementptr inbounds double, ptr %112, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !22
  %122 = load ptr, ptr %17, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %122, i32 0, i32 6
  %124 = load ptr, ptr %123, align 8, !tbaa !21
  %125 = load i64, ptr %19, align 8, !tbaa !9
  %126 = getelementptr inbounds ptr, ptr %124, i64 %125
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = load i64, ptr %19, align 8, !tbaa !9
  %129 = getelementptr inbounds double, ptr %127, i64 %128
  store double %121, ptr %129, align 8, !tbaa !22
  br label %130

130:                                              ; preds = %108, %92
  %131 = load i8, ptr %15, align 1, !tbaa !11, !range !13, !noundef !14
  %132 = trunc i8 %131 to i1
  br i1 %132, label %133, label %181

133:                                              ; preds = %130
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %134, i32 0, i32 4
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %135, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !21
  %138 = load i64, ptr %19, align 8, !tbaa !9
  %139 = getelementptr inbounds i64, ptr %137, i64 %138
  %140 = load i64, ptr %139, align 8, !tbaa !9
  store i64 %140, ptr %21, align 8, !tbaa !9
  %141 = load ptr, ptr %13, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %141, i32 0, i32 2
  %143 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %142, i32 0, i32 4
  %144 = load ptr, ptr %143, align 8, !tbaa !21
  %145 = load i64, ptr %19, align 8, !tbaa !9
  %146 = add nsw i64 %145, 1
  %147 = getelementptr inbounds i64, ptr %144, i64 %146
  %148 = load i64, ptr %147, align 8, !tbaa !9
  %149 = sub nsw i64 %148, 1
  store i64 %149, ptr %22, align 8, !tbaa !9
  %150 = load i64, ptr %21, align 8, !tbaa !9
  store i64 %150, ptr %20, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %177, %133
  %152 = load i64, ptr %20, align 8, !tbaa !9
  %153 = load i64, ptr %22, align 8, !tbaa !9
  %154 = icmp sle i64 %152, %153
  br i1 %154, label %155, label %180

155:                                              ; preds = %151
  %156 = load ptr, ptr %13, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %156, i32 0, i32 0
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %157, i32 0, i32 4
  %159 = load ptr, ptr %158, align 8, !tbaa !21
  %160 = load i64, ptr %20, align 8, !tbaa !9
  %161 = getelementptr inbounds double, ptr %159, i64 %160
  %162 = load double, ptr %161, align 8, !tbaa !22
  %163 = load ptr, ptr %17, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %163, i32 0, i32 6
  %165 = load ptr, ptr %164, align 8, !tbaa !21
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %166, i32 0, i32 1
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %167, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !21
  %170 = load i64, ptr %20, align 8, !tbaa !9
  %171 = getelementptr inbounds i64, ptr %169, i64 %170
  %172 = load i64, ptr %171, align 8, !tbaa !9
  %173 = getelementptr inbounds ptr, ptr %165, i64 %172
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %175 = load i64, ptr %19, align 8, !tbaa !9
  %176 = getelementptr inbounds double, ptr %174, i64 %175
  store double %162, ptr %176, align 8, !tbaa !22
  br label %177

177:                                              ; preds = %155
  %178 = load i64, ptr %20, align 8, !tbaa !9
  %179 = add nsw i64 %178, 1
  store i64 %179, ptr %20, align 8, !tbaa !9
  br label %151, !llvm.loop !24

180:                                              ; preds = %151
  br label %228

181:                                              ; preds = %130
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %182, i32 0, i32 2
  %184 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %183, i32 0, i32 4
  %185 = load ptr, ptr %184, align 8, !tbaa !21
  %186 = load i64, ptr %19, align 8, !tbaa !9
  %187 = getelementptr inbounds i64, ptr %185, i64 %186
  %188 = load i64, ptr %187, align 8, !tbaa !9
  store i64 %188, ptr %21, align 8, !tbaa !9
  %189 = load ptr, ptr %13, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %189, i32 0, i32 3
  %191 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %190, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !21
  %193 = load i64, ptr %19, align 8, !tbaa !9
  %194 = getelementptr inbounds i64, ptr %192, i64 %193
  %195 = load i64, ptr %194, align 8, !tbaa !9
  %196 = sub nsw i64 %195, 1
  store i64 %196, ptr %22, align 8, !tbaa !9
  %197 = load i64, ptr %21, align 8, !tbaa !9
  store i64 %197, ptr %20, align 8, !tbaa !9
  br label %198

198:                                              ; preds = %224, %181
  %199 = load i64, ptr %20, align 8, !tbaa !9
  %200 = load i64, ptr %22, align 8, !tbaa !9
  %201 = icmp sle i64 %199, %200
  br i1 %201, label %202, label %227

202:                                              ; preds = %198
  %203 = load ptr, ptr %13, align 8, !tbaa !5
  %204 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %203, i32 0, i32 0
  %205 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %204, i32 0, i32 4
  %206 = load ptr, ptr %205, align 8, !tbaa !21
  %207 = load i64, ptr %20, align 8, !tbaa !9
  %208 = getelementptr inbounds double, ptr %206, i64 %207
  %209 = load double, ptr %208, align 8, !tbaa !22
  %210 = load ptr, ptr %17, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %210, i32 0, i32 6
  %212 = load ptr, ptr %211, align 8, !tbaa !21
  %213 = load i64, ptr %19, align 8, !tbaa !9
  %214 = getelementptr inbounds ptr, ptr %212, i64 %213
  %215 = load ptr, ptr %214, align 8, !tbaa !5
  %216 = load ptr, ptr %13, align 8, !tbaa !5
  %217 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %216, i32 0, i32 1
  %218 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %217, i32 0, i32 4
  %219 = load ptr, ptr %218, align 8, !tbaa !21
  %220 = load i64, ptr %20, align 8, !tbaa !9
  %221 = getelementptr inbounds i64, ptr %219, i64 %220
  %222 = load i64, ptr %221, align 8, !tbaa !9
  %223 = getelementptr inbounds double, ptr %215, i64 %222
  store double %209, ptr %223, align 8, !tbaa !22
  br label %224

224:                                              ; preds = %202
  %225 = load i64, ptr %20, align 8, !tbaa !9
  %226 = add nsw i64 %225, 1
  store i64 %226, ptr %20, align 8, !tbaa !9
  br label %198, !llvm.loop !26

227:                                              ; preds = %198
  br label %228

228:                                              ; preds = %227, %180
  br label %229

229:                                              ; preds = %228
  %230 = load i64, ptr %19, align 8, !tbaa !9
  %231 = add nsw i64 %230, 1
  store i64 %231, ptr %19, align 8, !tbaa !9
  br label %87, !llvm.loop !27

232:                                              ; preds = %87
  br label %233

233:                                              ; preds = %232, %62
  store double 0.000000e+00, ptr %23, align 8, !tbaa !22
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %234

234:                                              ; preds = %250, %233
  %235 = load i64, ptr %19, align 8, !tbaa !9
  %236 = load i64, ptr %11, align 8, !tbaa !9
  %237 = sub nsw i64 %236, 1
  %238 = icmp sle i64 %235, %237
  br i1 %238, label %239, label %253

239:                                              ; preds = %234
  %240 = load double, ptr %23, align 8, !tbaa !22
  %241 = load i64, ptr %19, align 8, !tbaa !9
  %242 = add nsw i64 %241, 1
  %243 = load ptr, ptr %17, align 8, !tbaa !5
  %244 = load i64, ptr %19, align 8, !tbaa !9
  %245 = load ptr, ptr %17, align 8, !tbaa !5
  %246 = load i64, ptr %19, align 8, !tbaa !9
  %247 = load ptr, ptr %18, align 8, !tbaa !5
  %248 = call noundef double @_ZN11alglib_impl6rdotrrElPKNS_9ae_matrixElS2_lPNS_8ae_stateE(i64 noundef %242, ptr noundef %243, i64 noundef %244, ptr noundef %245, i64 noundef %246, ptr noundef %247)
  %249 = fadd double %240, %248
  store double %249, ptr %23, align 8, !tbaa !22
  br label %250

250:                                              ; preds = %239
  %251 = load i64, ptr %19, align 8, !tbaa !9
  %252 = add nsw i64 %251, 1
  store i64 %252, ptr %19, align 8, !tbaa !9
  br label %234, !llvm.loop !28

253:                                              ; preds = %234
  %254 = load double, ptr %23, align 8, !tbaa !22
  %255 = load ptr, ptr %18, align 8, !tbaa !5
  %256 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %254, ptr noundef %255)
  %257 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %256, ptr noundef @.str.507, ptr noundef %257)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !10, i64 320}
!16 = !{!"_ZTSN11alglib_impl12sparsematrixE", !17, i64 0, !17, i64 64, !17, i64 128, !17, i64 192, !17, i64 256, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360}
!17 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !12, i64 16, !18, i64 24, !7, i64 56}
!18 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!16, !10, i64 328}
!20 = !{!16, !10, i64 336}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !25}


; 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"

@.str.503 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.504 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.505 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.506 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.507 = external hidden unnamed_addr constant [74 x i8], align 1

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

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl7rallocmEllPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl11rmatrixcopyEllPKNS_9ae_matrixEllPS0_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl5rsetmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl16rmatrixtransposeEllPKNS_9ae_matrixEllPS0_llPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

declare noundef double @_ZN11alglib_impl6rdotrrElPKNS_9ae_matrixElS2_lPNS_8ae_stateE(i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl32quadraticlinearconverttodenseltrEPKNS_9ae_vectorElPKNS_9ae_matrixEPKNS_12sparsematrixElbPS0_PS3_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, i64 noundef %4, i1 noundef zeroext %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #1 {
  %10 = icmp ult i64 %4, 2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.503, ptr noundef %8)
  %11 = icmp sgt i64 %1, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.504, ptr noundef %8)
  tail call void @_ZN11alglib_impl11rcopyallocvElPKNS_9ae_vectorEPS0_PNS_8ae_stateE(i64 noundef %1, ptr noundef %0, ptr noundef %6, ptr noundef %8)
  tail call void @_ZN11alglib_impl7rallocmEllPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %1, i64 noundef %1, ptr noundef %7, ptr noundef %8)
  switch i64 %4, label %.loopexit100 [
    i64 0, label %12
    i64 1, label %15
  ]

12:                                               ; preds = %9
  br i1 %5, label %13, label %14

13:                                               ; preds = %12
  tail call void @_ZN11alglib_impl16rmatrixtransposeEllPKNS_9ae_matrixEllPS0_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %1, ptr noundef %2, i64 noundef 0, i64 noundef 0, ptr noundef %7, i64 noundef 0, i64 noundef 0, ptr noundef %8)
  br label %.loopexit100

14:                                               ; preds = %12
  tail call void @_ZN11alglib_impl11rmatrixcopyEllPKNS_9ae_matrixEllPS0_llPNS_8ae_stateE(i64 noundef %1, i64 noundef %1, ptr noundef %2, i64 noundef 0, i64 noundef 0, ptr noundef %7, i64 noundef 0, i64 noundef 0, ptr noundef %8)
  br label %.loopexit100

15:                                               ; preds = %9
  %16 = getelementptr inbounds i8, ptr %3, i64 320
  %17 = load i64, ptr %16, align 8, !tbaa !5
  %18 = icmp eq i64 %17, 1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.505, ptr noundef %8)
  %19 = getelementptr inbounds i8, ptr %3, i64 328
  %20 = load i64, ptr %19, align 8, !tbaa !14
  %21 = icmp eq i64 %20, %1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.506, ptr noundef %8)
  %22 = getelementptr inbounds i8, ptr %3, i64 336
  %23 = load i64, ptr %22, align 8, !tbaa !15
  %24 = icmp eq i64 %23, %1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef nonnull @.str.506, ptr noundef %8)
  tail call void @_ZN11alglib_impl5rsetmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %1, i64 noundef %1, double noundef 0.000000e+00, ptr noundef %7, ptr noundef %8)
  br i1 %11, label %.lr.ph109, label %._crit_edge

.lr.ph109:                                        ; preds = %15
  %25 = getelementptr inbounds i8, ptr %3, i64 248
  %26 = getelementptr inbounds i8, ptr %3, i64 312
  %27 = getelementptr inbounds i8, ptr %3, i64 56
  %28 = getelementptr inbounds i8, ptr %7, i64 72
  %29 = getelementptr inbounds i8, ptr %3, i64 184
  %30 = getelementptr inbounds i8, ptr %3, i64 120
  br i1 %5, label %.lr.ph109.split.us, label %.lr.ph109.split

.lr.ph109.split.us:                               ; preds = %.lr.ph109, %.loopexit.us
  %.093107.us = phi i64 [ %86, %.loopexit.us ], [ 0, %.lr.ph109 ]
  %31 = load ptr, ptr %25, align 8, !tbaa !16
  %32 = getelementptr inbounds i64, ptr %31, i64 %.093107.us
  %33 = load i64, ptr %32, align 8, !tbaa !17
  %34 = load ptr, ptr %26, align 8, !tbaa !16
  %35 = getelementptr inbounds i64, ptr %34, i64 %.093107.us
  %36 = load i64, ptr %35, align 8, !tbaa !17
  %.not.us = icmp eq i64 %33, %36
  br i1 %.not.us, label %45, label %37

37:                                               ; preds = %.lr.ph109.split.us
  %38 = load ptr, ptr %27, align 8, !tbaa !16
  %39 = getelementptr inbounds double, ptr %38, i64 %33
  %40 = load double, ptr %39, align 8, !tbaa !18
  %41 = load ptr, ptr %28, align 8, !tbaa !16
  %42 = getelementptr inbounds ptr, ptr %41, i64 %.093107.us
  %43 = load ptr, ptr %42, align 8, !tbaa !20
  %44 = getelementptr inbounds double, ptr %43, i64 %.093107.us
  store double %40, ptr %44, align 8, !tbaa !18
  %.pre120 = load ptr, ptr %26, align 8, !tbaa !16
  %.phi.trans.insert121 = getelementptr inbounds i64, ptr %.pre120, i64 %.093107.us
  %.pre122 = load i64, ptr %.phi.trans.insert121, align 8, !tbaa !17
  br label %45

45:                                               ; preds = %37, %.lr.ph109.split.us
  %46 = phi i64 [ %.pre122, %37 ], [ %33, %.lr.ph109.split.us ]
  %47 = load ptr, ptr %29, align 8, !tbaa !16
  %48 = getelementptr inbounds i64, ptr %47, i64 %.093107.us
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  %50 = load i64, ptr %49, align 8, !tbaa !17
  %.not98.not103.us = icmp slt i64 %46, %50
  br i1 %.not98.not103.us, label %.lr.ph105.us.preheader, label %.loopexit.us

.lr.ph105.us.preheader:                           ; preds = %45
  %51 = sub i64 %50, %46
  %.neg128 = add i64 %46, 1
  %xtraiter126 = and i64 %51, 1
  %lcmp.mod127.not = icmp eq i64 %xtraiter126, 0
  br i1 %lcmp.mod127.not, label %.lr.ph105.us.prol.loopexit, label %.lr.ph105.us.prol

.lr.ph105.us.prol:                                ; preds = %.lr.ph105.us.preheader
  %52 = load ptr, ptr %27, align 8, !tbaa !16
  %53 = getelementptr inbounds double, ptr %52, i64 %46
  %54 = load double, ptr %53, align 8, !tbaa !18
  %55 = load ptr, ptr %28, align 8, !tbaa !16
  %56 = load ptr, ptr %30, align 8, !tbaa !16
  %57 = getelementptr inbounds i64, ptr %56, i64 %46
  %58 = load i64, ptr %57, align 8, !tbaa !17
  %59 = getelementptr inbounds ptr, ptr %55, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !20
  %61 = getelementptr inbounds double, ptr %60, i64 %.093107.us
  store double %54, ptr %61, align 8, !tbaa !18
  %62 = add nsw i64 %46, 1
  br label %.lr.ph105.us.prol.loopexit

.lr.ph105.us.prol.loopexit:                       ; preds = %.lr.ph105.us.prol, %.lr.ph105.us.preheader
  %.092104.us.unr = phi i64 [ %46, %.lr.ph105.us.preheader ], [ %62, %.lr.ph105.us.prol ]
  %63 = icmp eq i64 %50, %.neg128
  br i1 %63, label %.loopexit.us, label %.lr.ph105.us

.lr.ph105.us:                                     ; preds = %.lr.ph105.us.prol.loopexit, %.lr.ph105.us
  %.092104.us = phi i64 [ %85, %.lr.ph105.us ], [ %.092104.us.unr, %.lr.ph105.us.prol.loopexit ]
  %64 = load ptr, ptr %27, align 8, !tbaa !16
  %65 = getelementptr inbounds double, ptr %64, i64 %.092104.us
  %66 = load double, ptr %65, align 8, !tbaa !18
  %67 = load ptr, ptr %28, align 8, !tbaa !16
  %68 = load ptr, ptr %30, align 8, !tbaa !16
  %69 = getelementptr inbounds i64, ptr %68, i64 %.092104.us
  %70 = load i64, ptr %69, align 8, !tbaa !17
  %71 = getelementptr inbounds ptr, ptr %67, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !20
  %73 = getelementptr inbounds double, ptr %72, i64 %.093107.us
  store double %66, ptr %73, align 8, !tbaa !18
  %74 = add nsw i64 %.092104.us, 1
  %75 = load ptr, ptr %27, align 8, !tbaa !16
  %76 = getelementptr inbounds double, ptr %75, i64 %74
  %77 = load double, ptr %76, align 8, !tbaa !18
  %78 = load ptr, ptr %28, align 8, !tbaa !16
  %79 = load ptr, ptr %30, align 8, !tbaa !16
  %80 = getelementptr inbounds i64, ptr %79, i64 %74
  %81 = load i64, ptr %80, align 8, !tbaa !17
  %82 = getelementptr inbounds ptr, ptr %78, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !20
  %84 = getelementptr inbounds double, ptr %83, i64 %.093107.us
  store double %77, ptr %84, align 8, !tbaa !18
  %85 = add nsw i64 %.092104.us, 2
  %exitcond116.not.1 = icmp eq i64 %85, %50
  br i1 %exitcond116.not.1, label %.loopexit.us, label %.lr.ph105.us, !llvm.loop !21

.loopexit.us:                                     ; preds = %.lr.ph105.us.prol.loopexit, %.lr.ph105.us, %45
  %86 = add nuw nsw i64 %.093107.us, 1
  %exitcond117.not = icmp eq i64 %86, %1
  br i1 %exitcond117.not, label %.loopexit100, label %.lr.ph109.split.us, !llvm.loop !23

.lr.ph109.split:                                  ; preds = %.lr.ph109, %.loopexit99
  %.093107 = phi i64 [ %141, %.loopexit99 ], [ 0, %.lr.ph109 ]
  %87 = load ptr, ptr %25, align 8, !tbaa !16
  %88 = getelementptr inbounds i64, ptr %87, i64 %.093107
  %89 = load i64, ptr %88, align 8, !tbaa !17
  %90 = load ptr, ptr %26, align 8, !tbaa !16
  %91 = getelementptr inbounds i64, ptr %90, i64 %.093107
  %92 = load i64, ptr %91, align 8, !tbaa !17
  %.not = icmp eq i64 %89, %92
  br i1 %.not, label %101, label %93

93:                                               ; preds = %.lr.ph109.split
  %94 = load ptr, ptr %27, align 8, !tbaa !16
  %95 = getelementptr inbounds double, ptr %94, i64 %89
  %96 = load double, ptr %95, align 8, !tbaa !18
  %97 = load ptr, ptr %28, align 8, !tbaa !16
  %98 = getelementptr inbounds ptr, ptr %97, i64 %.093107
  %99 = load ptr, ptr %98, align 8, !tbaa !20
  %100 = getelementptr inbounds double, ptr %99, i64 %.093107
  store double %96, ptr %100, align 8, !tbaa !18
  %.pre = load ptr, ptr %25, align 8, !tbaa !16
  %.phi.trans.insert = getelementptr inbounds i64, ptr %.pre, i64 %.093107
  %.pre119 = load i64, ptr %.phi.trans.insert, align 8, !tbaa !17
  br label %101

101:                                              ; preds = %93, %.lr.ph109.split
  %102 = phi i64 [ %.pre119, %93 ], [ %89, %.lr.ph109.split ]
  %103 = load ptr, ptr %29, align 8, !tbaa !16
  %104 = getelementptr inbounds i64, ptr %103, i64 %.093107
  %105 = load i64, ptr %104, align 8, !tbaa !17
  %.not97.not101 = icmp slt i64 %105, %102
  br i1 %.not97.not101, label %.lr.ph.preheader, label %.loopexit99

.lr.ph.preheader:                                 ; preds = %101
  %106 = sub i64 %102, %105
  %.neg = add i64 %105, 1
  %xtraiter = and i64 %106, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader
  %107 = load ptr, ptr %27, align 8, !tbaa !16
  %108 = getelementptr inbounds double, ptr %107, i64 %105
  %109 = load double, ptr %108, align 8, !tbaa !18
  %110 = load ptr, ptr %28, align 8, !tbaa !16
  %111 = getelementptr inbounds ptr, ptr %110, i64 %.093107
  %112 = load ptr, ptr %111, align 8, !tbaa !20
  %113 = load ptr, ptr %30, align 8, !tbaa !16
  %114 = getelementptr inbounds i64, ptr %113, i64 %105
  %115 = load i64, ptr %114, align 8, !tbaa !17
  %116 = getelementptr inbounds double, ptr %112, i64 %115
  store double %109, ptr %116, align 8, !tbaa !18
  %117 = add nsw i64 %105, 1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.1102.unr = phi i64 [ %105, %.lr.ph.preheader ], [ %117, %.lr.ph.prol ]
  %118 = icmp eq i64 %102, %.neg
  br i1 %118, label %.loopexit99, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.1102 = phi i64 [ %140, %.lr.ph ], [ %.1102.unr, %.lr.ph.prol.loopexit ]
  %119 = load ptr, ptr %27, align 8, !tbaa !16
  %120 = getelementptr inbounds double, ptr %119, i64 %.1102
  %121 = load double, ptr %120, align 8, !tbaa !18
  %122 = load ptr, ptr %28, align 8, !tbaa !16
  %123 = getelementptr inbounds ptr, ptr %122, i64 %.093107
  %124 = load ptr, ptr %123, align 8, !tbaa !20
  %125 = load ptr, ptr %30, align 8, !tbaa !16
  %126 = getelementptr inbounds i64, ptr %125, i64 %.1102
  %127 = load i64, ptr %126, align 8, !tbaa !17
  %128 = getelementptr inbounds double, ptr %124, i64 %127
  store double %121, ptr %128, align 8, !tbaa !18
  %129 = add nsw i64 %.1102, 1
  %130 = load ptr, ptr %27, align 8, !tbaa !16
  %131 = getelementptr inbounds double, ptr %130, i64 %129
  %132 = load double, ptr %131, align 8, !tbaa !18
  %133 = load ptr, ptr %28, align 8, !tbaa !16
  %134 = getelementptr inbounds ptr, ptr %133, i64 %.093107
  %135 = load ptr, ptr %134, align 8, !tbaa !20
  %136 = load ptr, ptr %30, align 8, !tbaa !16
  %137 = getelementptr inbounds i64, ptr %136, i64 %129
  %138 = load i64, ptr %137, align 8, !tbaa !17
  %139 = getelementptr inbounds double, ptr %135, i64 %138
  store double %132, ptr %139, align 8, !tbaa !18
  %140 = add nsw i64 %.1102, 2
  %exitcond.not.1 = icmp eq i64 %140, %102
  br i1 %exitcond.not.1, label %.loopexit99, label %.lr.ph, !llvm.loop !24

.loopexit99:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %101
  %141 = add nuw nsw i64 %.093107, 1
  %exitcond115.not = icmp eq i64 %141, %1
  br i1 %exitcond115.not, label %.loopexit100, label %.lr.ph109.split, !llvm.loop !23

.loopexit100:                                     ; preds = %.loopexit99, %.loopexit.us, %14, %13, %9
  br i1 %11, label %.lr.ph113, label %._crit_edge

.lr.ph113:                                        ; preds = %.loopexit100, %.lr.ph113
  %.0112 = phi double [ %144, %.lr.ph113 ], [ 0.000000e+00, %.loopexit100 ]
  %.194111 = phi i64 [ %142, %.lr.ph113 ], [ 0, %.loopexit100 ]
  %142 = add nuw nsw i64 %.194111, 1
  %143 = tail call noundef double @_ZN11alglib_impl6rdotrrElPKNS_9ae_matrixElS2_lPNS_8ae_stateE(i64 noundef %142, ptr noundef %7, i64 noundef %.194111, ptr noundef %7, i64 noundef %.194111, ptr noundef %8)
  %144 = fadd double %.0112, %143
  %exitcond118.not = icmp eq i64 %142, %1
  br i1 %exitcond118.not, label %._crit_edge, label %.lr.ph113, !llvm.loop !25

._crit_edge:                                      ; preds = %.lr.ph113, %15, %.loopexit100
  %.0.lcssa = phi double [ 0.000000e+00, %.loopexit100 ], [ 0.000000e+00, %15 ], [ %144, %.lr.ph113 ]
  %145 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %.0.lcssa, ptr noundef %8)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %145, ptr noundef nonnull @.str.507, ptr noundef %8)
  ret void
}

attributes #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 #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" }

!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, !8, i64 320}
!6 = !{!"_ZTSN11alglib_impl12sparsematrixE", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 192, !7, i64 256, !8, i64 320, !8, i64 328, !8, i64 336, !8, i64 344, !8, i64 352, !8, i64 360}
!7 = !{!"_ZTSN11alglib_impl9ae_vectorE", !8, i64 0, !8, i64 8, !11, i64 16, !12, i64 24, !9, i64 56}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!6, !8, i64 328}
!15 = !{!6, !8, i64 336}
!16 = !{!9, !9, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !9, i64 0}
!20 = !{!13, !13, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}


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