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

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

%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::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 }

@.str.103 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [133 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [52 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_impl8sparsemvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  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
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 0
  %27 = load i64, ptr %26, align 8, !tbaa !9
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %28, i32 0, i32 7
  %30 = load i64, ptr %29, align 8, !tbaa !14
  %31 = icmp sge i64 %27, %30
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef @.str.103, ptr noundef %32)
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 5
  %35 = load i64, ptr %34, align 8, !tbaa !16
  %36 = icmp eq i64 %35, 1
  br i1 %36, label %42, label %37

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

42:                                               ; preds = %37, %4
  %43 = phi i1 [ true, %4 ], [ %41, %37 ]
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef @.str.104, ptr noundef %44)
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = load ptr, ptr %5, 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 !17
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %45, i64 noundef %48, ptr noundef %49)
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %50, i32 0, i32 7
  %52 = load i64, ptr %51, align 8, !tbaa !14
  store i64 %52, ptr %18, align 8, !tbaa !18
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %53, i32 0, i32 6
  %55 = load i64, ptr %54, align 8, !tbaa !17
  store i64 %55, ptr %19, align 8, !tbaa !18
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %56, i32 0, i32 5
  %58 = load i64, ptr %57, align 8, !tbaa !16
  %59 = icmp eq i64 %58, 1
  br i1 %59, label %60, label %156

60:                                               ; preds = %42
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %61, i32 0, i32 9
  %63 = load i64, ptr %62, align 8, !tbaa !19
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %64, i32 0, i32 2
  %66 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %65, i32 0, i32 4
  %67 = load ptr, ptr %66, align 8, !tbaa !20
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %68, i32 0, i32 6
  %70 = load i64, ptr %69, align 8, !tbaa !17
  %71 = getelementptr inbounds i64, ptr %67, i64 %70
  %72 = load i64, ptr %71, align 8, !tbaa !18
  %73 = icmp eq i64 %63, %72
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %73, ptr noundef @.str.105, ptr noundef %74)
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %75, i32 0, i32 6
  %77 = load i64, ptr %76, align 8, !tbaa !17
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %78, i32 0, i32 7
  %80 = load i64, ptr %79, align 8, !tbaa !14
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %83, i32 0, i32 1
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %85, i32 0, i32 2
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = call noundef zeroext i1 @_ZN11alglib_impl16sparsegemvcrsmklEllldPNS_9ae_vectorES1_S1_S1_ldS1_lPNS_8ae_stateE(i64 noundef 0, i64 noundef %77, i64 noundef %80, double noundef 1.000000e+00, ptr noundef %82, ptr noundef %84, ptr noundef %86, ptr noundef %87, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %88, i64 noundef 0, ptr noundef %89)
  br i1 %90, label %91, label %92

91:                                               ; preds = %60
  store i32 1, ptr %24, align 4
  br label %299

92:                                               ; preds = %60
  store i64 0, ptr %12, align 8, !tbaa !18
  br label %93

93:                                               ; preds = %152, %92
  %94 = load i64, ptr %12, align 8, !tbaa !18
  %95 = load i64, ptr %19, align 8, !tbaa !18
  %96 = sub nsw i64 %95, 1
  %97 = icmp sle i64 %94, %96
  br i1 %97, label %98, label %155

98:                                               ; preds = %93
  store double 0.000000e+00, ptr %9, align 8, !tbaa !21
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %99, i32 0, i32 2
  %101 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %100, i32 0, i32 4
  %102 = load ptr, ptr %101, align 8, !tbaa !20
  %103 = load i64, ptr %12, align 8, !tbaa !18
  %104 = getelementptr inbounds i64, ptr %102, i64 %103
  %105 = load i64, ptr %104, align 8, !tbaa !18
  store i64 %105, ptr %14, align 8, !tbaa !18
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %106, i32 0, i32 2
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %107, i32 0, i32 4
  %109 = load ptr, ptr %108, align 8, !tbaa !20
  %110 = load i64, ptr %12, align 8, !tbaa !18
  %111 = add nsw i64 %110, 1
  %112 = getelementptr inbounds i64, ptr %109, i64 %111
  %113 = load i64, ptr %112, align 8, !tbaa !18
  %114 = sub nsw i64 %113, 1
  store i64 %114, ptr %15, align 8, !tbaa !18
  %115 = load i64, ptr %14, align 8, !tbaa !18
  store i64 %115, ptr %13, align 8, !tbaa !18
  br label %116

116:                                              ; preds = %142, %98
  %117 = load i64, ptr %13, align 8, !tbaa !18
  %118 = load i64, ptr %15, align 8, !tbaa !18
  %119 = icmp sle i64 %117, %118
  br i1 %119, label %120, label %145

120:                                              ; preds = %116
  %121 = load double, ptr %9, align 8, !tbaa !21
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %122, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !20
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %125, i32 0, i32 1
  %127 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %126, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !20
  %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
  %132 = getelementptr inbounds double, ptr %124, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !21
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %135, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !20
  %138 = load i64, ptr %13, align 8, !tbaa !18
  %139 = getelementptr inbounds double, ptr %137, i64 %138
  %140 = load double, ptr %139, align 8, !tbaa !21
  %141 = call double @llvm.fmuladd.f64(double %133, double %140, double %121)
  store double %141, ptr %9, align 8, !tbaa !21
  br label %142

142:                                              ; preds = %120
  %143 = load i64, ptr %13, align 8, !tbaa !18
  %144 = add nsw i64 %143, 1
  store i64 %144, ptr %13, align 8, !tbaa !18
  br label %116, !llvm.loop !23

145:                                              ; preds = %116
  %146 = load double, ptr %9, align 8, !tbaa !21
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %147, i32 0, i32 4
  %149 = load ptr, ptr %148, align 8, !tbaa !20
  %150 = load i64, ptr %12, align 8, !tbaa !18
  %151 = getelementptr inbounds double, ptr %149, i64 %150
  store double %146, ptr %151, align 8, !tbaa !21
  br label %152

152:                                              ; preds = %145
  %153 = load i64, ptr %12, align 8, !tbaa !18
  %154 = add nsw i64 %153, 1
  store i64 %154, ptr %12, align 8, !tbaa !18
  br label %93, !llvm.loop !25

155:                                              ; preds = %93
  store i32 1, ptr %24, align 4
  br label %299

156:                                              ; preds = %42
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %157, i32 0, i32 5
  %159 = load i64, ptr %158, align 8, !tbaa !16
  %160 = icmp eq i64 %159, 2
  br i1 %160, label %161, label %298

161:                                              ; preds = %156
  %162 = load ptr, ptr %5, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %162, i32 0, i32 6
  %164 = load i64, ptr %163, align 8, !tbaa !17
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %165, i32 0, i32 7
  %167 = load i64, ptr %166, align 8, !tbaa !14
  %168 = icmp eq i64 %164, %167
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %168, ptr noundef @.str.106, ptr noundef %169)
  store i64 0, ptr %12, align 8, !tbaa !18
  br label %170

170:                                              ; preds = %294, %161
  %171 = load i64, ptr %12, align 8, !tbaa !18
  %172 = load i64, ptr %18, align 8, !tbaa !18
  %173 = sub nsw i64 %172, 1
  %174 = icmp sle i64 %171, %173
  br i1 %174, label %175, label %297

175:                                              ; preds = %170
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %176, i32 0, i32 2
  %178 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %177, i32 0, i32 4
  %179 = load ptr, ptr %178, align 8, !tbaa !20
  %180 = load i64, ptr %12, align 8, !tbaa !18
  %181 = getelementptr inbounds i64, ptr %179, i64 %180
  %182 = load i64, ptr %181, align 8, !tbaa !18
  store i64 %182, ptr %22, align 8, !tbaa !18
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %183, i32 0, i32 2
  %185 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %184, i32 0, i32 4
  %186 = load ptr, ptr %185, align 8, !tbaa !20
  %187 = load i64, ptr %12, align 8, !tbaa !18
  %188 = add nsw i64 %187, 1
  %189 = getelementptr inbounds i64, ptr %186, i64 %188
  %190 = load i64, ptr %189, align 8, !tbaa !18
  store i64 %190, ptr %23, align 8, !tbaa !18
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %191, i32 0, i32 3
  %193 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %192, i32 0, i32 4
  %194 = load ptr, ptr %193, align 8, !tbaa !20
  %195 = load i64, ptr %12, align 8, !tbaa !18
  %196 = getelementptr inbounds i64, ptr %194, i64 %195
  %197 = load i64, ptr %196, align 8, !tbaa !18
  store i64 %197, ptr %20, align 8, !tbaa !18
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %198, i32 0, i32 4
  %200 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %199, i32 0, i32 4
  %201 = load ptr, ptr %200, align 8, !tbaa !20
  %202 = load i64, ptr %12, align 8, !tbaa !18
  %203 = getelementptr inbounds i64, ptr %201, i64 %202
  %204 = load i64, ptr %203, align 8, !tbaa !18
  store i64 %204, ptr %21, align 8, !tbaa !18
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %205, i32 0, i32 0
  %207 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %206, i32 0, i32 4
  %208 = load ptr, ptr %207, align 8, !tbaa !20
  %209 = load i64, ptr %22, align 8, !tbaa !18
  %210 = load i64, ptr %20, align 8, !tbaa !18
  %211 = add nsw i64 %209, %210
  %212 = getelementptr inbounds double, ptr %208, i64 %211
  %213 = load double, ptr %212, align 8, !tbaa !21
  %214 = load ptr, ptr %6, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %214, i32 0, i32 4
  %216 = load ptr, ptr %215, align 8, !tbaa !20
  %217 = load i64, ptr %12, align 8, !tbaa !18
  %218 = getelementptr inbounds double, ptr %216, i64 %217
  %219 = load double, ptr %218, align 8, !tbaa !21
  %220 = fmul double %213, %219
  store double %220, ptr %10, align 8, !tbaa !21
  %221 = load i64, ptr %20, align 8, !tbaa !18
  %222 = icmp sgt i64 %221, 0
  br i1 %222, label %223, label %252

223:                                              ; preds = %175
  %224 = load i64, ptr %22, align 8, !tbaa !18
  store i64 %224, ptr %14, align 8, !tbaa !18
  %225 = load i64, ptr %22, align 8, !tbaa !18
  %226 = load i64, ptr %20, align 8, !tbaa !18
  %227 = add nsw i64 %225, %226
  %228 = sub nsw i64 %227, 1
  store i64 %228, ptr %15, align 8, !tbaa !18
  %229 = load i64, ptr %12, align 8, !tbaa !18
  %230 = load i64, ptr %20, align 8, !tbaa !18
  %231 = sub nsw i64 %229, %230
  store i64 %231, ptr %16, align 8, !tbaa !18
  %232 = load i64, ptr %12, align 8, !tbaa !18
  %233 = sub nsw i64 %232, 1
  store i64 %233, ptr %17, align 8, !tbaa !18
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %234, i32 0, i32 0
  %236 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %235, i32 0, i32 4
  %237 = load ptr, ptr %236, align 8, !tbaa !20
  %238 = load i64, ptr %14, align 8, !tbaa !18
  %239 = getelementptr inbounds double, ptr %237, i64 %238
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %240, i32 0, i32 4
  %242 = load ptr, ptr %241, align 8, !tbaa !20
  %243 = load i64, ptr %16, align 8, !tbaa !18
  %244 = getelementptr inbounds double, ptr %242, i64 %243
  %245 = load i64, ptr %14, align 8, !tbaa !18
  %246 = load i64, ptr %15, align 8, !tbaa !18
  %247 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %245, i64 noundef %246)
  %248 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %239, i64 noundef 1, ptr noundef %244, i64 noundef 1, i64 noundef %247)
  store double %248, ptr %11, align 8, !tbaa !21
  %249 = load double, ptr %10, align 8, !tbaa !21
  %250 = load double, ptr %11, align 8, !tbaa !21
  %251 = fadd double %249, %250
  store double %251, ptr %10, align 8, !tbaa !21
  br label %252

252:                                              ; preds = %223, %175
  %253 = load double, ptr %10, align 8, !tbaa !21
  %254 = load ptr, ptr %7, align 8, !tbaa !5
  %255 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %254, i32 0, i32 4
  %256 = load ptr, ptr %255, align 8, !tbaa !20
  %257 = load i64, ptr %12, align 8, !tbaa !18
  %258 = getelementptr inbounds double, ptr %256, i64 %257
  store double %253, ptr %258, align 8, !tbaa !21
  %259 = load i64, ptr %21, align 8, !tbaa !18
  %260 = icmp sgt i64 %259, 0
  br i1 %260, label %261, label %293

261:                                              ; preds = %252
  %262 = load i64, ptr %23, align 8, !tbaa !18
  %263 = load i64, ptr %21, align 8, !tbaa !18
  %264 = sub nsw i64 %262, %263
  store i64 %264, ptr %14, align 8, !tbaa !18
  %265 = load i64, ptr %23, align 8, !tbaa !18
  %266 = sub nsw i64 %265, 1
  store i64 %266, ptr %15, align 8, !tbaa !18
  %267 = load i64, ptr %12, align 8, !tbaa !18
  %268 = load i64, ptr %21, align 8, !tbaa !18
  %269 = sub nsw i64 %267, %268
  store i64 %269, ptr %16, align 8, !tbaa !18
  %270 = load i64, ptr %12, align 8, !tbaa !18
  %271 = sub nsw i64 %270, 1
  store i64 %271, ptr %17, align 8, !tbaa !18
  %272 = load ptr, ptr %6, align 8, !tbaa !5
  %273 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %272, i32 0, i32 4
  %274 = load ptr, ptr %273, align 8, !tbaa !20
  %275 = load i64, ptr %12, align 8, !tbaa !18
  %276 = getelementptr inbounds double, ptr %274, i64 %275
  %277 = load double, ptr %276, align 8, !tbaa !21
  store double %277, ptr %10, align 8, !tbaa !21
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %278, i32 0, i32 4
  %280 = load ptr, ptr %279, align 8, !tbaa !20
  %281 = load i64, ptr %16, align 8, !tbaa !18
  %282 = getelementptr inbounds double, ptr %280, i64 %281
  %283 = load ptr, ptr %5, align 8, !tbaa !5
  %284 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %283, i32 0, i32 0
  %285 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %284, i32 0, i32 4
  %286 = load ptr, ptr %285, align 8, !tbaa !20
  %287 = load i64, ptr %14, align 8, !tbaa !18
  %288 = getelementptr inbounds double, ptr %286, i64 %287
  %289 = load i64, ptr %16, align 8, !tbaa !18
  %290 = load i64, ptr %17, align 8, !tbaa !18
  %291 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %289, i64 noundef %290)
  %292 = load double, ptr %10, align 8, !tbaa !21
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %282, i64 noundef 1, ptr noundef %288, i64 noundef 1, i64 noundef %291, double noundef %292)
  br label %293

293:                                              ; preds = %261, %252
  br label %294

294:                                              ; preds = %293
  %295 = load i64, ptr %12, align 8, !tbaa !18
  %296 = add nsw i64 %295, 1
  store i64 %296, ptr %12, align 8, !tbaa !18
  br label %170, !llvm.loop !26

297:                                              ; preds = %170
  store i32 1, ptr %24, align 4
  br label %299

298:                                              ; preds = %156
  store i32 0, ptr %24, align 4
  br label %299

299:                                              ; preds = %298, %297, %155, %91
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %300 = load i32, ptr %24, align 4
  switch i32 %300, label %302 [
    i32 0, label %301
    i32 1, label %301
  ]

301:                                              ; preds = %299, %299
  ret void

302:                                              ; preds = %299
  unreachable
}

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

declare noundef zeroext i1 @_ZN11alglib_impl16sparsegemvcrsmklEllldPNS_9ae_vectorES1_S1_S1_ldS1_lPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, double noundef, 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, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !12, i64 16, !13, i64 24, !7, i64 56}
!11 = !{!"long", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!15, !11, i64 336}
!15 = !{!"_ZTSN11alglib_impl12sparsematrixE", !10, i64 0, !10, i64 64, !10, i64 128, !10, i64 192, !10, i64 256, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360}
!16 = !{!15, !11, i64 320}
!17 = !{!15, !11, i64 328}
!18 = !{!11, !11, i64 0}
!19 = !{!15, !11, i64 352}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}


; 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.103 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [133 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [52 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_impl8sparsemvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = load i64, ptr %1, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 336
  %7 = load i64, ptr %6, align 8, !tbaa !13
  %8 = icmp sge i64 %5, %7
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.103, ptr noundef %3)
  %9 = getelementptr inbounds i8, ptr %0, i64 320
  %10 = load i64, ptr %9, align 8, !tbaa !15
  %11 = add i64 %10, -1
  %spec.select = icmp ult i64 %11, 2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.104, ptr noundef %3)
  %12 = getelementptr inbounds i8, ptr %0, i64 328
  %13 = load i64, ptr %12, align 8, !tbaa !16
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef %13, ptr noundef %3)
  %14 = load i64, ptr %6, align 8, !tbaa !13
  %15 = load i64, ptr %12, align 8, !tbaa !16
  %16 = load i64, ptr %9, align 8, !tbaa !15
  switch i64 %16, label %.loopexit [
    i64 1, label %17
    i64 2, label %89
  ]

17:                                               ; preds = %4
  %18 = getelementptr inbounds i8, ptr %0, i64 352
  %19 = load i64, ptr %18, align 8, !tbaa !17
  %20 = getelementptr inbounds i8, ptr %0, i64 128
  %21 = getelementptr inbounds i8, ptr %0, i64 184
  %22 = load ptr, ptr %21, align 8, !tbaa !18
  %23 = getelementptr inbounds i64, ptr %22, i64 %15
  %24 = load i64, ptr %23, align 8, !tbaa !19
  %25 = icmp eq i64 %19, %24
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.105, ptr noundef %3)
  %26 = load i64, ptr %12, align 8, !tbaa !16
  %27 = load i64, ptr %6, align 8, !tbaa !13
  %28 = getelementptr inbounds i8, ptr %0, i64 64
  %29 = tail call noundef zeroext i1 @_ZN11alglib_impl16sparsegemvcrsmklEllldPNS_9ae_vectorES1_S1_S1_ldS1_lPNS_8ae_stateE(i64 noundef 0, i64 noundef %26, i64 noundef %27, double noundef 1.000000e+00, ptr noundef nonnull %0, ptr noundef nonnull %28, ptr noundef nonnull %20, ptr noundef nonnull %1, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %2, i64 noundef 0, ptr noundef %3)
  %.not.not104113 = icmp slt i64 %15, 1
  %or.cond.not = select i1 %29, i1 true, i1 %.not.not104113
  br i1 %or.cond.not, label %.loopexit, label %.lr.ph115

.lr.ph115:                                        ; preds = %17
  %30 = getelementptr inbounds i8, ptr %1, i64 56
  %31 = getelementptr inbounds i8, ptr %0, i64 120
  %32 = getelementptr inbounds i8, ptr %0, i64 56
  %33 = getelementptr inbounds i8, ptr %2, i64 56
  br label %34

34:                                               ; preds = %.lr.ph115, %._crit_edge
  %.098114 = phi i64 [ 0, %.lr.ph115 ], [ %38, %._crit_edge ]
  %35 = load ptr, ptr %21, align 8, !tbaa !18
  %36 = getelementptr inbounds i64, ptr %35, i64 %.098114
  %37 = load i64, ptr %36, align 8, !tbaa !19
  %38 = add nuw nsw i64 %.098114, 1
  %39 = getelementptr inbounds i64, ptr %35, i64 %38
  %40 = load i64, ptr %39, align 8, !tbaa !19
  %.not.not105109 = icmp slt i64 %37, %40
  br i1 %.not.not105109, label %.lr.ph112, label %._crit_edge

.lr.ph112:                                        ; preds = %34
  %41 = load ptr, ptr %30, align 8, !tbaa !18
  %42 = load ptr, ptr %31, align 8, !tbaa !18
  %43 = load ptr, ptr %32, align 8, !tbaa !18
  %44 = sub i64 %40, %37
  %xtraiter = and i64 %44, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.preheader

.prol.preheader:                                  ; preds = %.lr.ph112, %.prol.preheader
  %.0111.prol = phi double [ %51, %.prol.preheader ], [ 0.000000e+00, %.lr.ph112 ]
  %.099110.prol = phi i64 [ %52, %.prol.preheader ], [ %37, %.lr.ph112 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.prol.preheader ], [ 0, %.lr.ph112 ]
  %45 = getelementptr inbounds i64, ptr %42, i64 %.099110.prol
  %46 = load i64, ptr %45, align 8, !tbaa !19
  %47 = getelementptr inbounds double, ptr %41, i64 %46
  %48 = load double, ptr %47, align 8, !tbaa !20
  %49 = getelementptr inbounds double, ptr %43, i64 %.099110.prol
  %50 = load double, ptr %49, align 8, !tbaa !20
  %51 = tail call double @llvm.fmuladd.f64(double %48, double %50, double %.0111.prol)
  %52 = add nsw i64 %.099110.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.prol.loopexit, label %.prol.preheader, !llvm.loop !22

.prol.loopexit:                                   ; preds = %.prol.preheader, %.lr.ph112
  %.lcssa.unr = phi double [ poison, %.lr.ph112 ], [ %51, %.prol.preheader ]
  %.0111.unr = phi double [ 0.000000e+00, %.lr.ph112 ], [ %51, %.prol.preheader ]
  %.099110.unr = phi i64 [ %37, %.lr.ph112 ], [ %52, %.prol.preheader ]
  %53 = sub i64 %37, %40
  %54 = icmp ugt i64 %53, -4
  br i1 %54, label %._crit_edge, label %.lr.ph112.new

.lr.ph112.new:                                    ; preds = %.prol.loopexit, %.lr.ph112.new
  %.0111 = phi double [ %85, %.lr.ph112.new ], [ %.0111.unr, %.prol.loopexit ]
  %.099110 = phi i64 [ %86, %.lr.ph112.new ], [ %.099110.unr, %.prol.loopexit ]
  %55 = getelementptr inbounds i64, ptr %42, i64 %.099110
  %56 = load i64, ptr %55, align 8, !tbaa !19
  %57 = getelementptr inbounds double, ptr %41, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !20
  %59 = getelementptr inbounds double, ptr %43, i64 %.099110
  %60 = load double, ptr %59, align 8, !tbaa !20
  %61 = tail call double @llvm.fmuladd.f64(double %58, double %60, double %.0111)
  %62 = add nsw i64 %.099110, 1
  %63 = getelementptr inbounds i64, ptr %42, i64 %62
  %64 = load i64, ptr %63, align 8, !tbaa !19
  %65 = getelementptr inbounds double, ptr %41, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !20
  %67 = getelementptr inbounds double, ptr %43, i64 %62
  %68 = load double, ptr %67, align 8, !tbaa !20
  %69 = tail call double @llvm.fmuladd.f64(double %66, double %68, double %61)
  %70 = add nsw i64 %.099110, 2
  %71 = getelementptr inbounds i64, ptr %42, i64 %70
  %72 = load i64, ptr %71, align 8, !tbaa !19
  %73 = getelementptr inbounds double, ptr %41, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !20
  %75 = getelementptr inbounds double, ptr %43, i64 %70
  %76 = load double, ptr %75, align 8, !tbaa !20
  %77 = tail call double @llvm.fmuladd.f64(double %74, double %76, double %69)
  %78 = add nsw i64 %.099110, 3
  %79 = getelementptr inbounds i64, ptr %42, i64 %78
  %80 = load i64, ptr %79, align 8, !tbaa !19
  %81 = getelementptr inbounds double, ptr %41, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !20
  %83 = getelementptr inbounds double, ptr %43, i64 %78
  %84 = load double, ptr %83, align 8, !tbaa !20
  %85 = tail call double @llvm.fmuladd.f64(double %82, double %84, double %77)
  %86 = add nsw i64 %.099110, 4
  %exitcond117.not.3 = icmp eq i64 %86, %40
  br i1 %exitcond117.not.3, label %._crit_edge, label %.lr.ph112.new, !llvm.loop !24

._crit_edge:                                      ; preds = %.prol.loopexit, %.lr.ph112.new, %34
  %.0.lcssa = phi double [ 0.000000e+00, %34 ], [ %.lcssa.unr, %.prol.loopexit ], [ %85, %.lr.ph112.new ]
  %87 = load ptr, ptr %33, align 8, !tbaa !18
  %88 = getelementptr inbounds double, ptr %87, i64 %.098114
  store double %.0.lcssa, ptr %88, align 8, !tbaa !20
  %exitcond118.not = icmp eq i64 %38, %15
  br i1 %exitcond118.not, label %.loopexit, label %34, !llvm.loop !26

89:                                               ; preds = %4
  %90 = icmp eq i64 %15, %14
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %90, ptr noundef nonnull @.str.106, ptr noundef %3)
  %.not.not107 = icmp sgt i64 %14, 0
  br i1 %.not.not107, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %89
  %91 = getelementptr inbounds i8, ptr %0, i64 184
  %92 = getelementptr inbounds i8, ptr %0, i64 248
  %93 = getelementptr inbounds i8, ptr %0, i64 312
  %94 = getelementptr inbounds i8, ptr %0, i64 56
  %95 = getelementptr inbounds i8, ptr %1, i64 56
  %96 = getelementptr inbounds i8, ptr %2, i64 56
  br label %97

97:                                               ; preds = %.lr.ph, %143
  %.1108 = phi i64 [ 0, %.lr.ph ], [ %101, %143 ]
  %98 = load ptr, ptr %91, align 8, !tbaa !18
  %99 = getelementptr inbounds i64, ptr %98, i64 %.1108
  %100 = load i64, ptr %99, align 8, !tbaa !19
  %101 = add nuw nsw i64 %.1108, 1
  %102 = getelementptr inbounds i64, ptr %98, i64 %101
  %103 = load i64, ptr %102, align 8, !tbaa !19
  %104 = load ptr, ptr %92, align 8, !tbaa !18
  %105 = getelementptr inbounds i64, ptr %104, i64 %.1108
  %106 = load i64, ptr %105, align 8, !tbaa !19
  %107 = load ptr, ptr %93, align 8, !tbaa !18
  %108 = getelementptr inbounds i64, ptr %107, i64 %.1108
  %109 = load i64, ptr %108, align 8, !tbaa !19
  %110 = load ptr, ptr %94, align 8, !tbaa !18
  %111 = add nsw i64 %106, %100
  %112 = getelementptr inbounds double, ptr %110, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !20
  %114 = load ptr, ptr %95, align 8, !tbaa !18
  %115 = getelementptr inbounds double, ptr %114, i64 %.1108
  %116 = load double, ptr %115, align 8, !tbaa !20
  %117 = fmul double %113, %116
  %118 = icmp sgt i64 %106, 0
  br i1 %118, label %119, label %127

119:                                              ; preds = %97
  %120 = add nsw i64 %111, -1
  %121 = sub nsw i64 %.1108, %106
  %122 = getelementptr inbounds double, ptr %110, i64 %100
  %123 = getelementptr inbounds double, ptr %114, i64 %121
  %124 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %100, i64 noundef %120)
  %125 = tail call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %122, i64 noundef 1, ptr noundef %123, i64 noundef 1, i64 noundef %124)
  %126 = fadd double %117, %125
  br label %127

127:                                              ; preds = %119, %97
  %.097 = phi double [ %126, %119 ], [ %117, %97 ]
  %128 = load ptr, ptr %96, align 8, !tbaa !18
  %129 = getelementptr inbounds double, ptr %128, i64 %.1108
  store double %.097, ptr %129, align 8, !tbaa !20
  %130 = icmp sgt i64 %109, 0
  br i1 %130, label %131, label %143

131:                                              ; preds = %127
  %132 = sub nsw i64 %103, %109
  %133 = sub nsw i64 %.1108, %109
  %134 = add nsw i64 %.1108, -1
  %135 = load ptr, ptr %95, align 8, !tbaa !18
  %136 = getelementptr inbounds double, ptr %135, i64 %.1108
  %137 = load double, ptr %136, align 8, !tbaa !20
  %138 = load ptr, ptr %96, align 8, !tbaa !18
  %139 = getelementptr inbounds double, ptr %138, i64 %133
  %140 = load ptr, ptr %94, align 8, !tbaa !18
  %141 = getelementptr inbounds double, ptr %140, i64 %132
  %142 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %133, i64 noundef %134)
  tail call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %139, i64 noundef 1, ptr noundef %141, i64 noundef 1, i64 noundef %142, double noundef %137)
  br label %143

143:                                              ; preds = %127, %131
  %exitcond.not = icmp eq i64 %101, %14
  br i1 %exitcond.not, label %.loopexit, label %97, !llvm.loop !27

.loopexit:                                        ; preds = %143, %._crit_edge, %89, %4, %17
  ret void
}

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

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


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