; 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::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 }

@.str.110 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [134 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9sparsemv2EPNS_12sparsematrixEPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  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 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %34, i32 0, i32 5
  %36 = load i64, ptr %35, align 8, !tbaa !9
  %37 = icmp eq i64 %36, 1
  br i1 %37, label %43, label %38

38:                                               ; preds = %5
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %39, i32 0, i32 5
  %41 = load i64, ptr %40, align 8, !tbaa !9
  %42 = icmp eq i64 %41, 2
  br label %43

43:                                               ; preds = %38, %5
  %44 = phi i1 [ true, %5 ], [ %42, %38 ]
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef @.str.110, ptr noundef %45)
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %46, i32 0, i32 6
  %48 = load i64, ptr %47, align 8, !tbaa !15
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %49, i32 0, i32 7
  %51 = load i64, ptr %50, align 8, !tbaa !16
  %52 = icmp eq i64 %48, %51
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef @.str.111, ptr noundef %53)
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %54, i32 0, i32 0
  %56 = load i64, ptr %55, align 8, !tbaa !17
  store i64 %56, ptr %11, align 8, !tbaa !18
  %57 = load i64, ptr %11, align 8, !tbaa !18
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %58, i32 0, i32 7
  %60 = load i64, ptr %59, align 8, !tbaa !16
  %61 = icmp sge i64 %57, %60
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %61, ptr noundef @.str.112, ptr noundef %62)
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %63, i32 0, i32 7
  %65 = load i64, ptr %64, align 8, !tbaa !16
  store i64 %65, ptr %24, align 8, !tbaa !18
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = load i64, ptr %11, align 8, !tbaa !18
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %66, i64 noundef %67, ptr noundef %68)
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = load i64, ptr %11, align 8, !tbaa !18
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %69, i64 noundef %70, ptr noundef %71)
  store i64 0, ptr %13, align 8, !tbaa !18
  br label %72

72:                                               ; preds = %88, %43
  %73 = load i64, ptr %13, align 8, !tbaa !18
  %74 = load i64, ptr %24, align 8, !tbaa !18
  %75 = sub nsw i64 %74, 1
  %76 = icmp sle i64 %73, %75
  br i1 %76, label %77, label %91

77:                                               ; preds = %72
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %78, i32 0, i32 4
  %80 = load ptr, ptr %79, align 8, !tbaa !19
  %81 = load i64, ptr %13, align 8, !tbaa !18
  %82 = getelementptr inbounds double, ptr %80, i64 %81
  store double 0.000000e+00, ptr %82, align 8, !tbaa !20
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %83, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !19
  %86 = load i64, ptr %13, align 8, !tbaa !18
  %87 = getelementptr inbounds double, ptr %85, i64 %86
  store double 0.000000e+00, ptr %87, align 8, !tbaa !20
  br label %88

88:                                               ; preds = %77
  %89 = load i64, ptr %13, align 8, !tbaa !18
  %90 = add nsw i64 %89, 1
  store i64 %90, ptr %13, align 8, !tbaa !18
  br label %72, !llvm.loop !22

91:                                               ; preds = %72
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %92, i32 0, i32 5
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = icmp eq i64 %94, 1
  br i1 %95, label %96, label %198

96:                                               ; preds = %91
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %97, i32 0, i32 9
  %99 = load i64, ptr %98, align 8, !tbaa !24
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %100, i32 0, i32 2
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %101, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !19
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %104, i32 0, i32 6
  %106 = load i64, ptr %105, align 8, !tbaa !15
  %107 = getelementptr inbounds i64, ptr %103, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !18
  %109 = icmp eq i64 %99, %108
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %109, ptr noundef @.str.113, ptr noundef %110)
  store i64 0, ptr %13, align 8, !tbaa !18
  br label %111

111:                                              ; preds = %194, %96
  %112 = load i64, ptr %13, align 8, !tbaa !18
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %113, i32 0, i32 6
  %115 = load i64, ptr %114, align 8, !tbaa !15
  %116 = sub nsw i64 %115, 1
  %117 = icmp sle i64 %112, %116
  br i1 %117, label %118, label %197

118:                                              ; preds = %111
  store double 0.000000e+00, ptr %12, align 8, !tbaa !20
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %119, i32 0, i32 4
  %121 = load ptr, ptr %120, align 8, !tbaa !19
  %122 = load i64, ptr %13, align 8, !tbaa !18
  %123 = getelementptr inbounds double, ptr %121, i64 %122
  %124 = load double, ptr %123, align 8, !tbaa !20
  store double %124, ptr %15, align 8, !tbaa !20
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %125, i32 0, i32 2
  %127 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %126, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !19
  %129 = load i64, ptr %13, align 8, !tbaa !18
  %130 = getelementptr inbounds i64, ptr %128, i64 %129
  %131 = load i64, ptr %130, align 8, !tbaa !18
  store i64 %131, ptr %22, align 8, !tbaa !18
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %132, i32 0, i32 2
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %133, i32 0, i32 4
  %135 = load ptr, ptr %134, align 8, !tbaa !19
  %136 = load i64, ptr %13, align 8, !tbaa !18
  %137 = add nsw i64 %136, 1
  %138 = getelementptr inbounds i64, ptr %135, i64 %137
  %139 = load i64, ptr %138, align 8, !tbaa !18
  %140 = sub nsw i64 %139, 1
  store i64 %140, ptr %23, align 8, !tbaa !18
  %141 = load i64, ptr %22, align 8, !tbaa !18
  store i64 %141, ptr %14, align 8, !tbaa !18
  br label %142

142:                                              ; preds = %184, %118
  %143 = load i64, ptr %14, align 8, !tbaa !18
  %144 = load i64, ptr %23, align 8, !tbaa !18
  %145 = icmp sle i64 %143, %144
  br i1 %145, label %146, label %187

146:                                              ; preds = %142
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %147, i32 0, i32 1
  %149 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %148, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !19
  %151 = load i64, ptr %14, align 8, !tbaa !18
  %152 = getelementptr inbounds i64, ptr %150, i64 %151
  %153 = load i64, ptr %152, align 8, !tbaa !18
  store i64 %153, ptr %21, align 8, !tbaa !18
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %154, i32 0, i32 0
  %156 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %155, i32 0, i32 4
  %157 = load ptr, ptr %156, align 8, !tbaa !19
  %158 = load i64, ptr %14, align 8, !tbaa !18
  %159 = getelementptr inbounds double, ptr %157, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !20
  store double %160, ptr %16, align 8, !tbaa !20
  %161 = load double, ptr %12, align 8, !tbaa !20
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %162, i32 0, i32 4
  %164 = load ptr, ptr %163, align 8, !tbaa !19
  %165 = load i64, ptr %21, align 8, !tbaa !18
  %166 = getelementptr inbounds double, ptr %164, i64 %165
  %167 = load double, ptr %166, align 8, !tbaa !20
  %168 = load double, ptr %16, align 8, !tbaa !20
  %169 = call double @llvm.fmuladd.f64(double %167, double %168, double %161)
  store double %169, ptr %12, align 8, !tbaa !20
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %170, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !19
  %173 = load i64, ptr %21, align 8, !tbaa !18
  %174 = getelementptr inbounds double, ptr %172, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !20
  %176 = load double, ptr %15, align 8, !tbaa !20
  %177 = load double, ptr %16, align 8, !tbaa !20
  %178 = call double @llvm.fmuladd.f64(double %176, double %177, double %175)
  %179 = load ptr, ptr %9, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %179, i32 0, i32 4
  %181 = load ptr, ptr %180, align 8, !tbaa !19
  %182 = load i64, ptr %21, align 8, !tbaa !18
  %183 = getelementptr inbounds double, ptr %181, i64 %182
  store double %178, ptr %183, align 8, !tbaa !20
  br label %184

184:                                              ; preds = %146
  %185 = load i64, ptr %14, align 8, !tbaa !18
  %186 = add nsw i64 %185, 1
  store i64 %186, ptr %14, align 8, !tbaa !18
  br label %142, !llvm.loop !25

187:                                              ; preds = %142
  %188 = load double, ptr %12, align 8, !tbaa !20
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %189, i32 0, i32 4
  %191 = load ptr, ptr %190, align 8, !tbaa !19
  %192 = load i64, ptr %13, align 8, !tbaa !18
  %193 = getelementptr inbounds double, ptr %191, i64 %192
  store double %188, ptr %193, align 8, !tbaa !20
  br label %194

194:                                              ; preds = %187
  %195 = load i64, ptr %13, align 8, !tbaa !18
  %196 = add nsw i64 %195, 1
  store i64 %196, ptr %13, align 8, !tbaa !18
  br label %111, !llvm.loop !26

197:                                              ; preds = %111
  store i32 1, ptr %33, align 4
  br label %379

198:                                              ; preds = %91
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %199, i32 0, i32 5
  %201 = load i64, ptr %200, align 8, !tbaa !9
  %202 = icmp eq i64 %201, 2
  br i1 %202, label %203, label %378

203:                                              ; preds = %198
  store i64 0, ptr %13, align 8, !tbaa !18
  br label %204

204:                                              ; preds = %374, %203
  %205 = load i64, ptr %13, align 8, !tbaa !18
  %206 = load i64, ptr %24, align 8, !tbaa !18
  %207 = sub nsw i64 %206, 1
  %208 = icmp sle i64 %205, %207
  br i1 %208, label %209, label %377

209:                                              ; preds = %204
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %210, i32 0, i32 2
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %211, i32 0, i32 4
  %213 = load ptr, ptr %212, align 8, !tbaa !19
  %214 = load i64, ptr %13, align 8, !tbaa !18
  %215 = getelementptr inbounds i64, ptr %213, i64 %214
  %216 = load i64, ptr %215, align 8, !tbaa !18
  store i64 %216, ptr %25, align 8, !tbaa !18
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  %218 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %217, i32 0, i32 2
  %219 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %218, i32 0, i32 4
  %220 = load ptr, ptr %219, align 8, !tbaa !19
  %221 = load i64, ptr %13, align 8, !tbaa !18
  %222 = add nsw i64 %221, 1
  %223 = getelementptr inbounds i64, ptr %220, i64 %222
  %224 = load i64, ptr %223, align 8, !tbaa !18
  store i64 %224, ptr %26, align 8, !tbaa !18
  %225 = load ptr, ptr %6, align 8, !tbaa !5
  %226 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %225, i32 0, i32 3
  %227 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %226, i32 0, i32 4
  %228 = load ptr, ptr %227, align 8, !tbaa !19
  %229 = load i64, ptr %13, align 8, !tbaa !18
  %230 = getelementptr inbounds i64, ptr %228, i64 %229
  %231 = load i64, ptr %230, align 8, !tbaa !18
  store i64 %231, ptr %27, align 8, !tbaa !18
  %232 = load ptr, ptr %6, align 8, !tbaa !5
  %233 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %232, i32 0, i32 4
  %234 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %233, i32 0, i32 4
  %235 = load ptr, ptr %234, align 8, !tbaa !19
  %236 = load i64, ptr %13, align 8, !tbaa !18
  %237 = getelementptr inbounds i64, ptr %235, i64 %236
  %238 = load i64, ptr %237, align 8, !tbaa !18
  store i64 %238, ptr %28, align 8, !tbaa !18
  %239 = load ptr, ptr %6, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %239, i32 0, i32 0
  %241 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %240, i32 0, i32 4
  %242 = load ptr, ptr %241, align 8, !tbaa !19
  %243 = load i64, ptr %25, align 8, !tbaa !18
  %244 = load i64, ptr %27, align 8, !tbaa !18
  %245 = add nsw i64 %243, %244
  %246 = getelementptr inbounds double, ptr %242, i64 %245
  %247 = load double, ptr %246, align 8, !tbaa !20
  %248 = load ptr, ptr %7, align 8, !tbaa !5
  %249 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %248, i32 0, i32 4
  %250 = load ptr, ptr %249, align 8, !tbaa !19
  %251 = load i64, ptr %13, align 8, !tbaa !18
  %252 = getelementptr inbounds double, ptr %250, i64 %251
  %253 = load double, ptr %252, align 8, !tbaa !20
  %254 = fmul double %247, %253
  store double %254, ptr %19, align 8, !tbaa !20
  %255 = load double, ptr %19, align 8, !tbaa !20
  store double %255, ptr %20, align 8, !tbaa !20
  %256 = load i64, ptr %27, align 8, !tbaa !18
  %257 = icmp sgt i64 %256, 0
  br i1 %257, label %258, label %308

258:                                              ; preds = %209
  %259 = load i64, ptr %25, align 8, !tbaa !18
  store i64 %259, ptr %29, align 8, !tbaa !18
  %260 = load i64, ptr %25, align 8, !tbaa !18
  %261 = load i64, ptr %27, align 8, !tbaa !18
  %262 = add nsw i64 %260, %261
  %263 = sub nsw i64 %262, 1
  store i64 %263, ptr %30, align 8, !tbaa !18
  %264 = load i64, ptr %13, align 8, !tbaa !18
  %265 = load i64, ptr %27, align 8, !tbaa !18
  %266 = sub nsw i64 %264, %265
  store i64 %266, ptr %31, align 8, !tbaa !18
  %267 = load i64, ptr %13, align 8, !tbaa !18
  %268 = sub nsw i64 %267, 1
  store i64 %268, ptr %32, align 8, !tbaa !18
  %269 = load ptr, ptr %7, align 8, !tbaa !5
  %270 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %269, i32 0, i32 4
  %271 = load ptr, ptr %270, align 8, !tbaa !19
  %272 = load i64, ptr %13, align 8, !tbaa !18
  %273 = getelementptr inbounds double, ptr %271, i64 %272
  %274 = load double, ptr %273, align 8, !tbaa !20
  store double %274, ptr %17, align 8, !tbaa !20
  %275 = load ptr, ptr %9, align 8, !tbaa !5
  %276 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %275, i32 0, i32 4
  %277 = load ptr, ptr %276, align 8, !tbaa !19
  %278 = load i64, ptr %31, align 8, !tbaa !18
  %279 = getelementptr inbounds double, ptr %277, i64 %278
  %280 = load ptr, ptr %6, align 8, !tbaa !5
  %281 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %280, i32 0, i32 0
  %282 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %281, i32 0, i32 4
  %283 = load ptr, ptr %282, align 8, !tbaa !19
  %284 = load i64, ptr %29, align 8, !tbaa !18
  %285 = getelementptr inbounds double, ptr %283, i64 %284
  %286 = load i64, ptr %31, align 8, !tbaa !18
  %287 = load i64, ptr %32, align 8, !tbaa !18
  %288 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %286, i64 noundef %287)
  %289 = load double, ptr %17, align 8, !tbaa !20
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %279, i64 noundef 1, ptr noundef %285, i64 noundef 1, i64 noundef %288, double noundef %289)
  %290 = load ptr, ptr %6, align 8, !tbaa !5
  %291 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %290, i32 0, i32 0
  %292 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %291, i32 0, i32 4
  %293 = load ptr, ptr %292, align 8, !tbaa !19
  %294 = load i64, ptr %29, align 8, !tbaa !18
  %295 = getelementptr inbounds double, ptr %293, i64 %294
  %296 = load ptr, ptr %7, align 8, !tbaa !5
  %297 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %296, i32 0, i32 4
  %298 = load ptr, ptr %297, align 8, !tbaa !19
  %299 = load i64, ptr %31, align 8, !tbaa !18
  %300 = getelementptr inbounds double, ptr %298, i64 %299
  %301 = load i64, ptr %29, align 8, !tbaa !18
  %302 = load i64, ptr %30, align 8, !tbaa !18
  %303 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %301, i64 noundef %302)
  %304 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %295, i64 noundef 1, ptr noundef %300, i64 noundef 1, i64 noundef %303)
  store double %304, ptr %18, align 8, !tbaa !20
  %305 = load double, ptr %19, align 8, !tbaa !20
  %306 = load double, ptr %18, align 8, !tbaa !20
  %307 = fadd double %305, %306
  store double %307, ptr %19, align 8, !tbaa !20
  br label %308

308:                                              ; preds = %258, %209
  %309 = load i64, ptr %28, align 8, !tbaa !18
  %310 = icmp sgt i64 %309, 0
  br i1 %310, label %311, label %361

311:                                              ; preds = %308
  %312 = load i64, ptr %26, align 8, !tbaa !18
  %313 = load i64, ptr %28, align 8, !tbaa !18
  %314 = sub nsw i64 %312, %313
  store i64 %314, ptr %29, align 8, !tbaa !18
  %315 = load i64, ptr %26, align 8, !tbaa !18
  %316 = sub nsw i64 %315, 1
  store i64 %316, ptr %30, align 8, !tbaa !18
  %317 = load i64, ptr %13, align 8, !tbaa !18
  %318 = load i64, ptr %28, align 8, !tbaa !18
  %319 = sub nsw i64 %317, %318
  store i64 %319, ptr %31, align 8, !tbaa !18
  %320 = load i64, ptr %13, align 8, !tbaa !18
  %321 = sub nsw i64 %320, 1
  store i64 %321, ptr %32, align 8, !tbaa !18
  %322 = load ptr, ptr %7, align 8, !tbaa !5
  %323 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %322, i32 0, i32 4
  %324 = load ptr, ptr %323, align 8, !tbaa !19
  %325 = load i64, ptr %13, align 8, !tbaa !18
  %326 = getelementptr inbounds double, ptr %324, i64 %325
  %327 = load double, ptr %326, align 8, !tbaa !20
  store double %327, ptr %17, align 8, !tbaa !20
  %328 = load ptr, ptr %8, align 8, !tbaa !5
  %329 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %328, i32 0, i32 4
  %330 = load ptr, ptr %329, align 8, !tbaa !19
  %331 = load i64, ptr %31, align 8, !tbaa !18
  %332 = getelementptr inbounds double, ptr %330, i64 %331
  %333 = load ptr, ptr %6, align 8, !tbaa !5
  %334 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %333, i32 0, i32 0
  %335 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %334, i32 0, i32 4
  %336 = load ptr, ptr %335, align 8, !tbaa !19
  %337 = load i64, ptr %29, align 8, !tbaa !18
  %338 = getelementptr inbounds double, ptr %336, i64 %337
  %339 = load i64, ptr %31, align 8, !tbaa !18
  %340 = load i64, ptr %32, align 8, !tbaa !18
  %341 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %339, i64 noundef %340)
  %342 = load double, ptr %17, align 8, !tbaa !20
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %332, i64 noundef 1, ptr noundef %338, i64 noundef 1, i64 noundef %341, double noundef %342)
  %343 = load ptr, ptr %6, align 8, !tbaa !5
  %344 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %343, i32 0, i32 0
  %345 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %344, i32 0, i32 4
  %346 = load ptr, ptr %345, align 8, !tbaa !19
  %347 = load i64, ptr %29, align 8, !tbaa !18
  %348 = getelementptr inbounds double, ptr %346, i64 %347
  %349 = load ptr, ptr %7, align 8, !tbaa !5
  %350 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %349, i32 0, i32 4
  %351 = load ptr, ptr %350, align 8, !tbaa !19
  %352 = load i64, ptr %31, align 8, !tbaa !18
  %353 = getelementptr inbounds double, ptr %351, i64 %352
  %354 = load i64, ptr %29, align 8, !tbaa !18
  %355 = load i64, ptr %30, align 8, !tbaa !18
  %356 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %354, i64 noundef %355)
  %357 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %348, i64 noundef 1, ptr noundef %353, i64 noundef 1, i64 noundef %356)
  store double %357, ptr %18, align 8, !tbaa !20
  %358 = load double, ptr %20, align 8, !tbaa !20
  %359 = load double, ptr %18, align 8, !tbaa !20
  %360 = fadd double %358, %359
  store double %360, ptr %20, align 8, !tbaa !20
  br label %361

361:                                              ; preds = %311, %308
  %362 = load double, ptr %19, align 8, !tbaa !20
  %363 = load ptr, ptr %8, align 8, !tbaa !5
  %364 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %363, i32 0, i32 4
  %365 = load ptr, ptr %364, align 8, !tbaa !19
  %366 = load i64, ptr %13, align 8, !tbaa !18
  %367 = getelementptr inbounds double, ptr %365, i64 %366
  store double %362, ptr %367, align 8, !tbaa !20
  %368 = load double, ptr %20, align 8, !tbaa !20
  %369 = load ptr, ptr %9, align 8, !tbaa !5
  %370 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %369, i32 0, i32 4
  %371 = load ptr, ptr %370, align 8, !tbaa !19
  %372 = load i64, ptr %13, align 8, !tbaa !18
  %373 = getelementptr inbounds double, ptr %371, i64 %372
  store double %368, ptr %373, align 8, !tbaa !20
  br label %374

374:                                              ; preds = %361
  %375 = load i64, ptr %13, align 8, !tbaa !18
  %376 = add nsw i64 %375, 1
  store i64 %376, ptr %13, align 8, !tbaa !18
  br label %204, !llvm.loop !27

377:                                              ; preds = %204
  store i32 1, ptr %33, align 4
  br label %379

378:                                              ; preds = %198
  store i32 0, ptr %33, align 4
  br label %379

379:                                              ; preds = %378, %377, %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %380 = load i32, ptr %33, align 4
  switch i32 %380, label %382 [
    i32 0, label %381
    i32 1, label %381
  ]

381:                                              ; preds = %379, %379
  ret void

382:                                              ; preds = %379
  unreachable
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

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

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

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


; 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.110 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [134 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9sparsemv2EPNS_12sparsematrixEPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = getelementptr inbounds i8, ptr %0, i64 320
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = add i64 %7, -1
  %spec.select = icmp ult i64 %8, 2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.110, ptr noundef %4)
  %9 = getelementptr inbounds i8, ptr %0, i64 328
  %10 = load i64, ptr %9, align 8, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %0, i64 336
  %12 = load i64, ptr %11, align 8, !tbaa !15
  %13 = icmp eq i64 %10, %12
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.111, ptr noundef %4)
  %14 = load i64, ptr %1, align 8, !tbaa !16
  %15 = load i64, ptr %11, align 8, !tbaa !15
  %16 = icmp sge i64 %14, %15
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.112, ptr noundef %4)
  %17 = load i64, ptr %11, align 8, !tbaa !15
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef %14, ptr noundef %4)
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %3, i64 noundef %14, ptr noundef %4)
  %.not.not143 = icmp sgt i64 %17, 0
  br i1 %.not.not143, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5
  %18 = getelementptr inbounds i8, ptr %2, i64 56
  %19 = getelementptr inbounds i8, ptr %3, i64 56
  %xtraiter = and i64 %17, 1
  %20 = icmp eq i64 %17, 1
  br i1 %20, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

21:                                               ; preds = %21, %.lr.ph.new
  %.0130144 = phi i64 [ 0, %.lr.ph.new ], [ %31, %21 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %21 ]
  %22 = load ptr, ptr %18, align 8, !tbaa !17
  %23 = getelementptr inbounds double, ptr %22, i64 %.0130144
  store double 0.000000e+00, ptr %23, align 8, !tbaa !18
  %24 = load ptr, ptr %19, align 8, !tbaa !17
  %25 = getelementptr inbounds double, ptr %24, i64 %.0130144
  store double 0.000000e+00, ptr %25, align 8, !tbaa !18
  %26 = or disjoint i64 %.0130144, 1
  %27 = load ptr, ptr %18, align 8, !tbaa !17
  %28 = getelementptr inbounds double, ptr %27, i64 %26
  store double 0.000000e+00, ptr %28, align 8, !tbaa !18
  %29 = load ptr, ptr %19, align 8, !tbaa !17
  %30 = getelementptr inbounds double, ptr %29, i64 %26
  store double 0.000000e+00, ptr %30, align 8, !tbaa !18
  %31 = add nuw nsw i64 %.0130144, 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 %._crit_edge.loopexit.unr-lcssa, label %21, !llvm.loop !20

._crit_edge.loopexit.unr-lcssa:                   ; preds = %21, %.lr.ph
  %.0130144.unr = phi i64 [ 0, %.lr.ph ], [ %31, %21 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %32 = load ptr, ptr %18, align 8, !tbaa !17
  %33 = getelementptr inbounds double, ptr %32, i64 %.0130144.unr
  store double 0.000000e+00, ptr %33, align 8, !tbaa !18
  %34 = load ptr, ptr %19, align 8, !tbaa !17
  %35 = getelementptr inbounds double, ptr %34, i64 %.0130144.unr
  store double 0.000000e+00, ptr %35, align 8, !tbaa !18
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %5
  %36 = load i64, ptr %6, align 8, !tbaa !5
  switch i64 %36, label %.loopexit [
    i64 1, label %44
    i64 2, label %.preheader
  ]

.preheader:                                       ; preds = %._crit_edge
  br i1 %.not.not143, label %.lr.ph147, label %.loopexit

.lr.ph147:                                        ; preds = %.preheader
  %37 = getelementptr inbounds i8, ptr %0, i64 184
  %38 = getelementptr inbounds i8, ptr %0, i64 248
  %39 = getelementptr inbounds i8, ptr %0, i64 312
  %40 = getelementptr inbounds i8, ptr %0, i64 56
  %41 = getelementptr inbounds i8, ptr %1, i64 56
  %42 = getelementptr inbounds i8, ptr %3, i64 56
  %43 = getelementptr inbounds i8, ptr %2, i64 56
  br label %86

44:                                               ; preds = %._crit_edge
  %45 = getelementptr inbounds i8, ptr %0, i64 352
  %46 = load i64, ptr %45, align 8, !tbaa !22
  %47 = getelementptr inbounds i8, ptr %0, i64 184
  %48 = load ptr, ptr %47, align 8, !tbaa !17
  %49 = load i64, ptr %9, align 8, !tbaa !14
  %50 = getelementptr inbounds i64, ptr %48, i64 %49
  %51 = load i64, ptr %50, align 8, !tbaa !23
  %52 = icmp eq i64 %46, %51
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef nonnull @.str.113, ptr noundef %4)
  %53 = load i64, ptr %9, align 8, !tbaa !14
  %.not.not140154 = icmp sgt i64 %53, 0
  br i1 %.not.not140154, label %.lr.ph157, label %.loopexit

.lr.ph157:                                        ; preds = %44
  %54 = getelementptr inbounds i8, ptr %1, i64 56
  %55 = getelementptr inbounds i8, ptr %0, i64 120
  %56 = getelementptr inbounds i8, ptr %0, i64 56
  %57 = getelementptr inbounds i8, ptr %3, i64 56
  %58 = getelementptr inbounds i8, ptr %2, i64 56
  br label %59

59:                                               ; preds = %.lr.ph157, %._crit_edge153
  %.1155 = phi i64 [ 0, %.lr.ph157 ], [ %66, %._crit_edge153 ]
  %60 = load ptr, ptr %54, align 8, !tbaa !17
  %61 = getelementptr inbounds double, ptr %60, i64 %.1155
  %62 = load double, ptr %61, align 8, !tbaa !18
  %63 = load ptr, ptr %47, align 8, !tbaa !17
  %64 = getelementptr inbounds i64, ptr %63, i64 %.1155
  %65 = load i64, ptr %64, align 8, !tbaa !23
  %66 = add nuw nsw i64 %.1155, 1
  %67 = getelementptr inbounds i64, ptr %63, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !23
  %.not.not141148 = icmp slt i64 %65, %68
  br i1 %.not.not141148, label %.lr.ph152, label %._crit_edge153

.lr.ph152:                                        ; preds = %59, %.lr.ph152
  %.0150 = phi double [ %78, %.lr.ph152 ], [ 0.000000e+00, %59 ]
  %.0131149 = phi i64 [ %83, %.lr.ph152 ], [ %65, %59 ]
  %69 = load ptr, ptr %55, align 8, !tbaa !17
  %70 = getelementptr inbounds i64, ptr %69, i64 %.0131149
  %71 = load i64, ptr %70, align 8, !tbaa !23
  %72 = load ptr, ptr %56, align 8, !tbaa !17
  %73 = getelementptr inbounds double, ptr %72, i64 %.0131149
  %74 = load double, ptr %73, align 8, !tbaa !18
  %75 = load ptr, ptr %54, align 8, !tbaa !17
  %76 = getelementptr inbounds double, ptr %75, i64 %71
  %77 = load double, ptr %76, align 8, !tbaa !18
  %78 = tail call double @llvm.fmuladd.f64(double %77, double %74, double %.0150)
  %79 = load ptr, ptr %57, align 8, !tbaa !17
  %80 = getelementptr inbounds double, ptr %79, i64 %71
  %81 = load double, ptr %80, align 8, !tbaa !18
  %82 = tail call double @llvm.fmuladd.f64(double %62, double %74, double %81)
  store double %82, ptr %80, align 8, !tbaa !18
  %83 = add nsw i64 %.0131149, 1
  %exitcond160.not = icmp eq i64 %83, %68
  br i1 %exitcond160.not, label %._crit_edge153, label %.lr.ph152, !llvm.loop !24

._crit_edge153:                                   ; preds = %.lr.ph152, %59
  %.0.lcssa = phi double [ 0.000000e+00, %59 ], [ %78, %.lr.ph152 ]
  %84 = load ptr, ptr %58, align 8, !tbaa !17
  %85 = getelementptr inbounds double, ptr %84, i64 %.1155
  store double %.0.lcssa, ptr %85, align 8, !tbaa !18
  %exitcond161.not = icmp eq i64 %66, %53
  br i1 %exitcond161.not, label %.loopexit, label %59, !llvm.loop !25

86:                                               ; preds = %.lr.ph147, %145
  %.2146 = phi i64 [ 0, %.lr.ph147 ], [ %90, %145 ]
  %87 = load ptr, ptr %37, align 8, !tbaa !17
  %88 = getelementptr inbounds i64, ptr %87, i64 %.2146
  %89 = load i64, ptr %88, align 8, !tbaa !23
  %90 = add nuw nsw i64 %.2146, 1
  %91 = getelementptr inbounds i64, ptr %87, i64 %90
  %92 = load i64, ptr %91, align 8, !tbaa !23
  %93 = load ptr, ptr %38, align 8, !tbaa !17
  %94 = getelementptr inbounds i64, ptr %93, i64 %.2146
  %95 = load i64, ptr %94, align 8, !tbaa !23
  %96 = load ptr, ptr %39, align 8, !tbaa !17
  %97 = getelementptr inbounds i64, ptr %96, i64 %.2146
  %98 = load i64, ptr %97, align 8, !tbaa !23
  %99 = load ptr, ptr %40, align 8, !tbaa !17
  %100 = add nsw i64 %95, %89
  %101 = getelementptr inbounds double, ptr %99, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !18
  %103 = load ptr, ptr %41, align 8, !tbaa !17
  %104 = getelementptr inbounds double, ptr %103, i64 %.2146
  %105 = load double, ptr %104, align 8, !tbaa !18
  %106 = fmul double %102, %105
  %107 = icmp sgt i64 %95, 0
  br i1 %107, label %108, label %123

108:                                              ; preds = %86
  %109 = add nsw i64 %100, -1
  %110 = sub nsw i64 %.2146, %95
  %111 = add nsw i64 %.2146, -1
  %112 = load ptr, ptr %42, align 8, !tbaa !17
  %113 = getelementptr inbounds double, ptr %112, i64 %110
  %114 = getelementptr inbounds double, ptr %99, i64 %89
  %115 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %110, i64 noundef %111)
  tail call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %113, i64 noundef 1, ptr noundef %114, i64 noundef 1, i64 noundef %115, double noundef %105)
  %116 = load ptr, ptr %40, align 8, !tbaa !17
  %117 = getelementptr inbounds double, ptr %116, i64 %89
  %118 = load ptr, ptr %41, align 8, !tbaa !17
  %119 = getelementptr inbounds double, ptr %118, i64 %110
  %120 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %89, i64 noundef %109)
  %121 = tail call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %117, i64 noundef 1, ptr noundef %119, i64 noundef 1, i64 noundef %120)
  %122 = fadd double %106, %121
  br label %123

123:                                              ; preds = %108, %86
  %.0132 = phi double [ %122, %108 ], [ %106, %86 ]
  %124 = icmp sgt i64 %98, 0
  br i1 %124, label %125, label %145

125:                                              ; preds = %123
  %126 = sub nsw i64 %92, %98
  %127 = add nsw i64 %92, -1
  %128 = sub nsw i64 %.2146, %98
  %129 = add nsw i64 %.2146, -1
  %130 = load ptr, ptr %41, align 8, !tbaa !17
  %131 = getelementptr inbounds double, ptr %130, i64 %.2146
  %132 = load double, ptr %131, align 8, !tbaa !18
  %133 = load ptr, ptr %43, align 8, !tbaa !17
  %134 = getelementptr inbounds double, ptr %133, i64 %128
  %135 = load ptr, ptr %40, align 8, !tbaa !17
  %136 = getelementptr inbounds double, ptr %135, i64 %126
  %137 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %128, i64 noundef %129)
  tail call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %134, i64 noundef 1, ptr noundef %136, i64 noundef 1, i64 noundef %137, double noundef %132)
  %138 = load ptr, ptr %40, align 8, !tbaa !17
  %139 = getelementptr inbounds double, ptr %138, i64 %126
  %140 = load ptr, ptr %41, align 8, !tbaa !17
  %141 = getelementptr inbounds double, ptr %140, i64 %128
  %142 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %126, i64 noundef %127)
  %143 = tail call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %139, i64 noundef 1, ptr noundef %141, i64 noundef 1, i64 noundef %142)
  %144 = fadd double %106, %143
  br label %145

145:                                              ; preds = %125, %123
  %.0133 = phi double [ %144, %125 ], [ %106, %123 ]
  %146 = load ptr, ptr %43, align 8, !tbaa !17
  %147 = getelementptr inbounds double, ptr %146, i64 %.2146
  store double %.0132, ptr %147, align 8, !tbaa !18
  %148 = load ptr, ptr %42, align 8, !tbaa !17
  %149 = getelementptr inbounds double, ptr %148, i64 %.2146
  store double %.0133, ptr %149, align 8, !tbaa !18
  %exitcond159.not = icmp eq i64 %90, %17
  br i1 %exitcond159.not, label %.loopexit, label %86, !llvm.loop !26

.loopexit:                                        ; preds = %145, %._crit_edge153, %.preheader, %44, %._crit_edge
  ret void
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

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

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

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

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" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = !{!7, !8, i64 0}
!17 = !{!9, !9, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !9, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!6, !8, i64 352}
!23 = !{!8, !8, i64 0}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}


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