; 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.106 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.109 = 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_impl9sparsemtvEPNS_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 i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca double, align 8
  %17 = alloca double, 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 %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %25, i32 0, i32 5
  %27 = load i64, ptr %26, align 8, !tbaa !9
  %28 = icmp eq i64 %27, 1
  br i1 %28, label %34, label %29

29:                                               ; preds = %4
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %30, i32 0, i32 5
  %32 = load i64, ptr %31, align 8, !tbaa !9
  %33 = icmp eq i64 %32, 2
  br label %34

34:                                               ; preds = %29, %4
  %35 = phi i1 [ true, %4 ], [ %33, %29 ]
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef @.str.107, ptr noundef %36)
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 0
  %39 = load i64, ptr %38, align 8, !tbaa !15
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %40, i32 0, i32 6
  %42 = load i64, ptr %41, align 8, !tbaa !16
  %43 = icmp sge i64 %39, %42
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef @.str.108, ptr noundef %44)
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %45, i32 0, i32 7
  %47 = load i64, ptr %46, align 8, !tbaa !17
  store i64 %47, ptr %18, align 8, !tbaa !18
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %48, i32 0, i32 6
  %50 = load i64, ptr %49, align 8, !tbaa !16
  store i64 %50, ptr %19, align 8, !tbaa !18
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = load i64, ptr %18, align 8, !tbaa !18
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %51, i64 noundef %52, ptr noundef %53)
  store i64 0, ptr %9, align 8, !tbaa !18
  br label %54

54:                                               ; preds = %65, %34
  %55 = load i64, ptr %9, align 8, !tbaa !18
  %56 = load i64, ptr %18, align 8, !tbaa !18
  %57 = sub nsw i64 %56, 1
  %58 = icmp sle i64 %55, %57
  br i1 %58, label %59, label %68

59:                                               ; preds = %54
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %60, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !19
  %63 = load i64, ptr %9, align 8, !tbaa !18
  %64 = getelementptr inbounds double, ptr %62, i64 %63
  store double 0.000000e+00, ptr %64, align 8, !tbaa !20
  br label %65

65:                                               ; preds = %59
  %66 = load i64, ptr %9, align 8, !tbaa !18
  %67 = add nsw i64 %66, 1
  store i64 %67, ptr %9, align 8, !tbaa !18
  br label %54, !llvm.loop !22

68:                                               ; preds = %54
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %69, i32 0, i32 5
  %71 = load i64, ptr %70, align 8, !tbaa !9
  %72 = icmp eq i64 %71, 1
  br i1 %72, label %73, label %173

73:                                               ; preds = %68
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %74, i32 0, i32 9
  %76 = load i64, ptr %75, align 8, !tbaa !24
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %77, i32 0, i32 2
  %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 %19, align 8, !tbaa !18
  %82 = getelementptr inbounds i64, ptr %80, i64 %81
  %83 = load i64, ptr %82, align 8, !tbaa !18
  %84 = icmp eq i64 %76, %83
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %84, ptr noundef @.str.109, ptr noundef %85)
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %86, i32 0, i32 6
  %88 = load i64, ptr %87, align 8, !tbaa !16
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %89, i32 0, i32 7
  %91 = load i64, ptr %90, align 8, !tbaa !17
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %92, i32 0, i32 0
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %94, i32 0, i32 1
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %96, i32 0, i32 2
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = call noundef zeroext i1 @_ZN11alglib_impl16sparsegemvcrsmklEllldPNS_9ae_vectorES1_S1_S1_ldS1_lPNS_8ae_stateE(i64 noundef 1, i64 noundef %88, i64 noundef %91, double noundef 1.000000e+00, ptr noundef %93, ptr noundef %95, ptr noundef %97, ptr noundef %98, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %99, i64 noundef 0, ptr noundef %100)
  br i1 %101, label %102, label %103

102:                                              ; preds = %73
  store i32 1, ptr %24, align 4
  br label %316

103:                                              ; preds = %73
  store i64 0, ptr %9, align 8, !tbaa !18
  br label %104

104:                                              ; preds = %169, %103
  %105 = load i64, ptr %9, align 8, !tbaa !18
  %106 = load i64, ptr %19, align 8, !tbaa !18
  %107 = sub nsw i64 %106, 1
  %108 = icmp sle i64 %105, %107
  br i1 %108, label %109, label %172

109:                                              ; preds = %104
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %110, i32 0, i32 2
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %111, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !19
  %114 = load i64, ptr %9, align 8, !tbaa !18
  %115 = getelementptr inbounds i64, ptr %113, i64 %114
  %116 = load i64, ptr %115, align 8, !tbaa !18
  store i64 %116, ptr %11, align 8, !tbaa !18
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %117, i32 0, i32 2
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %118, i32 0, i32 4
  %120 = load ptr, ptr %119, align 8, !tbaa !19
  %121 = load i64, ptr %9, align 8, !tbaa !18
  %122 = add nsw i64 %121, 1
  %123 = getelementptr inbounds i64, ptr %120, i64 %122
  %124 = load i64, ptr %123, align 8, !tbaa !18
  store i64 %124, ptr %12, align 8, !tbaa !18
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %125, i32 0, i32 4
  %127 = load ptr, ptr %126, align 8, !tbaa !19
  %128 = load i64, ptr %9, align 8, !tbaa !18
  %129 = getelementptr inbounds double, ptr %127, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !20
  store double %130, ptr %16, align 8, !tbaa !20
  %131 = load i64, ptr %11, align 8, !tbaa !18
  store i64 %131, ptr %10, align 8, !tbaa !18
  br label %132

132:                                              ; preds = %165, %109
  %133 = load i64, ptr %10, align 8, !tbaa !18
  %134 = load i64, ptr %12, align 8, !tbaa !18
  %135 = sub nsw i64 %134, 1
  %136 = icmp sle i64 %133, %135
  br i1 %136, label %137, label %168

137:                                              ; preds = %132
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %138, i32 0, i32 1
  %140 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %139, i32 0, i32 4
  %141 = load ptr, ptr %140, align 8, !tbaa !19
  %142 = load i64, ptr %10, align 8, !tbaa !18
  %143 = getelementptr inbounds i64, ptr %141, i64 %142
  %144 = load i64, ptr %143, align 8, !tbaa !18
  store i64 %144, ptr %13, align 8, !tbaa !18
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %145, i32 0, i32 4
  %147 = load ptr, ptr %146, align 8, !tbaa !19
  %148 = load i64, ptr %13, align 8, !tbaa !18
  %149 = getelementptr inbounds double, ptr %147, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !20
  %151 = load double, ptr %16, align 8, !tbaa !20
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %152, i32 0, i32 0
  %154 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %153, i32 0, i32 4
  %155 = load ptr, ptr %154, align 8, !tbaa !19
  %156 = load i64, ptr %10, align 8, !tbaa !18
  %157 = getelementptr inbounds double, ptr %155, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !20
  %159 = call double @llvm.fmuladd.f64(double %151, double %158, double %150)
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %160, i32 0, i32 4
  %162 = load ptr, ptr %161, align 8, !tbaa !19
  %163 = load i64, ptr %13, align 8, !tbaa !18
  %164 = getelementptr inbounds double, ptr %162, i64 %163
  store double %159, ptr %164, align 8, !tbaa !20
  br label %165

165:                                              ; preds = %137
  %166 = load i64, ptr %10, align 8, !tbaa !18
  %167 = add nsw i64 %166, 1
  store i64 %167, ptr %10, align 8, !tbaa !18
  br label %132, !llvm.loop !25

168:                                              ; preds = %132
  br label %169

169:                                              ; preds = %168
  %170 = load i64, ptr %9, align 8, !tbaa !18
  %171 = add nsw i64 %170, 1
  store i64 %171, ptr %9, align 8, !tbaa !18
  br label %104, !llvm.loop !26

172:                                              ; preds = %104
  store i32 1, ptr %24, align 4
  br label %316

173:                                              ; preds = %68
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %174, i32 0, i32 5
  %176 = load i64, ptr %175, align 8, !tbaa !9
  %177 = icmp eq i64 %176, 2
  br i1 %177, label %178, label %315

178:                                              ; preds = %173
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %179, i32 0, i32 6
  %181 = load i64, ptr %180, align 8, !tbaa !16
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %182, i32 0, i32 7
  %184 = load i64, ptr %183, align 8, !tbaa !17
  %185 = icmp eq i64 %181, %184
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %185, ptr noundef @.str.106, ptr noundef %186)
  store i64 0, ptr %9, align 8, !tbaa !18
  br label %187

187:                                              ; preds = %311, %178
  %188 = load i64, ptr %9, align 8, !tbaa !18
  %189 = load i64, ptr %18, align 8, !tbaa !18
  %190 = sub nsw i64 %189, 1
  %191 = icmp sle i64 %188, %190
  br i1 %191, label %192, label %314

192:                                              ; preds = %187
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %193, i32 0, i32 2
  %195 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %194, i32 0, i32 4
  %196 = load ptr, ptr %195, align 8, !tbaa !19
  %197 = load i64, ptr %9, align 8, !tbaa !18
  %198 = getelementptr inbounds i64, ptr %196, i64 %197
  %199 = load i64, ptr %198, align 8, !tbaa !18
  store i64 %199, ptr %20, align 8, !tbaa !18
  %200 = load ptr, ptr %5, align 8, !tbaa !5
  %201 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %200, i32 0, i32 2
  %202 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %201, i32 0, i32 4
  %203 = load ptr, ptr %202, align 8, !tbaa !19
  %204 = load i64, ptr %9, align 8, !tbaa !18
  %205 = add nsw i64 %204, 1
  %206 = getelementptr inbounds i64, ptr %203, i64 %205
  %207 = load i64, ptr %206, align 8, !tbaa !18
  store i64 %207, ptr %21, align 8, !tbaa !18
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %208, i32 0, i32 3
  %210 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %209, i32 0, i32 4
  %211 = load ptr, ptr %210, align 8, !tbaa !19
  %212 = load i64, ptr %9, align 8, !tbaa !18
  %213 = getelementptr inbounds i64, ptr %211, i64 %212
  %214 = load i64, ptr %213, align 8, !tbaa !18
  store i64 %214, ptr %22, align 8, !tbaa !18
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %215, i32 0, i32 4
  %217 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %216, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !19
  %219 = load i64, ptr %9, align 8, !tbaa !18
  %220 = getelementptr inbounds i64, ptr %218, i64 %219
  %221 = load i64, ptr %220, align 8, !tbaa !18
  store i64 %221, ptr %23, align 8, !tbaa !18
  %222 = load i64, ptr %22, align 8, !tbaa !18
  %223 = icmp sgt i64 %222, 0
  br i1 %223, label %224, label %256

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

256:                                              ; preds = %224, %192
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %257, i32 0, i32 0
  %259 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %258, i32 0, i32 4
  %260 = load ptr, ptr %259, align 8, !tbaa !19
  %261 = load i64, ptr %20, align 8, !tbaa !18
  %262 = load i64, ptr %22, align 8, !tbaa !18
  %263 = add nsw i64 %261, %262
  %264 = getelementptr inbounds double, ptr %260, i64 %263
  %265 = load double, ptr %264, align 8, !tbaa !20
  %266 = load ptr, ptr %6, align 8, !tbaa !5
  %267 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %266, i32 0, i32 4
  %268 = load ptr, ptr %267, align 8, !tbaa !19
  %269 = load i64, ptr %9, align 8, !tbaa !18
  %270 = getelementptr inbounds double, ptr %268, i64 %269
  %271 = load double, ptr %270, align 8, !tbaa !20
  %272 = fmul double %265, %271
  store double %272, ptr %16, align 8, !tbaa !20
  %273 = load i64, ptr %23, align 8, !tbaa !18
  %274 = icmp sgt i64 %273, 0
  br i1 %274, label %275, label %304

275:                                              ; preds = %256
  %276 = load i64, ptr %21, align 8, !tbaa !18
  %277 = load i64, ptr %23, align 8, !tbaa !18
  %278 = sub nsw i64 %276, %277
  store i64 %278, ptr %11, align 8, !tbaa !18
  %279 = load i64, ptr %21, align 8, !tbaa !18
  %280 = sub nsw i64 %279, 1
  store i64 %280, ptr %12, align 8, !tbaa !18
  %281 = load i64, ptr %9, align 8, !tbaa !18
  %282 = load i64, ptr %23, align 8, !tbaa !18
  %283 = sub nsw i64 %281, %282
  store i64 %283, ptr %14, align 8, !tbaa !18
  %284 = load i64, ptr %9, align 8, !tbaa !18
  %285 = sub nsw i64 %284, 1
  store i64 %285, ptr %15, align 8, !tbaa !18
  %286 = load ptr, ptr %5, align 8, !tbaa !5
  %287 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %286, i32 0, i32 0
  %288 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %287, i32 0, i32 4
  %289 = load ptr, ptr %288, align 8, !tbaa !19
  %290 = load i64, ptr %11, align 8, !tbaa !18
  %291 = getelementptr inbounds double, ptr %289, i64 %290
  %292 = load ptr, ptr %6, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %292, i32 0, i32 4
  %294 = load ptr, ptr %293, align 8, !tbaa !19
  %295 = load i64, ptr %14, align 8, !tbaa !18
  %296 = getelementptr inbounds double, ptr %294, i64 %295
  %297 = load i64, ptr %11, align 8, !tbaa !18
  %298 = load i64, ptr %12, align 8, !tbaa !18
  %299 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %297, i64 noundef %298)
  %300 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %291, i64 noundef 1, ptr noundef %296, i64 noundef 1, i64 noundef %299)
  store double %300, ptr %17, align 8, !tbaa !20
  %301 = load double, ptr %16, align 8, !tbaa !20
  %302 = load double, ptr %17, align 8, !tbaa !20
  %303 = fadd double %301, %302
  store double %303, ptr %16, align 8, !tbaa !20
  br label %304

304:                                              ; preds = %275, %256
  %305 = load double, ptr %16, align 8, !tbaa !20
  %306 = load ptr, ptr %7, align 8, !tbaa !5
  %307 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %306, i32 0, i32 4
  %308 = load ptr, ptr %307, align 8, !tbaa !19
  %309 = load i64, ptr %9, align 8, !tbaa !18
  %310 = getelementptr inbounds double, ptr %308, i64 %309
  store double %305, ptr %310, align 8, !tbaa !20
  br label %311

311:                                              ; preds = %304
  %312 = load i64, ptr %9, align 8, !tbaa !18
  %313 = add nsw i64 %312, 1
  store i64 %313, ptr %9, align 8, !tbaa !18
  br label %187, !llvm.loop !27

314:                                              ; preds = %187
  store i32 1, ptr %24, align 4
  br label %316

315:                                              ; preds = %173
  store i32 0, ptr %24, align 4
  br label %316

316:                                              ; preds = %315, %314, %172, %102
  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
  %317 = load i32, ptr %24, align 4
  switch i32 %317, label %319 [
    i32 0, label %318
    i32 1, label %318
  ]

318:                                              ; preds = %316, %316
  ret void

319:                                              ; preds = %316
  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, !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 = !{!11, !12, i64 0}
!16 = !{!10, !12, i64 328}
!17 = !{!10, !12, i64 336}
!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.106 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.109 = 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_impl9sparsemtvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = getelementptr inbounds i8, ptr %0, i64 320
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %7 = add i64 %6, -1
  %spec.select = icmp ult i64 %7, 2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.107, ptr noundef %3)
  %8 = load i64, ptr %1, align 8, !tbaa !14
  %9 = getelementptr inbounds i8, ptr %0, i64 328
  %10 = load i64, ptr %9, align 8, !tbaa !15
  %11 = icmp sge i64 %8, %10
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.108, ptr noundef %3)
  %12 = getelementptr inbounds i8, ptr %0, i64 336
  %13 = load i64, ptr %12, align 8, !tbaa !16
  %14 = load i64, ptr %9, align 8, !tbaa !15
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef %13, ptr noundef %3)
  %.not.not116 = icmp sgt i64 %13, 0
  br i1 %.not.not116, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %15 = getelementptr inbounds i8, ptr %2, i64 56
  %xtraiter = and i64 %13, 3
  %16 = icmp ult i64 %13, 4
  br i1 %16, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

17:                                               ; preds = %17, %.lr.ph.new
  %.0117 = phi i64 [ 0, %.lr.ph.new ], [ %29, %17 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %17 ]
  %18 = load ptr, ptr %15, align 8, !tbaa !17
  %19 = getelementptr inbounds double, ptr %18, i64 %.0117
  store double 0.000000e+00, ptr %19, align 8, !tbaa !18
  %20 = or disjoint i64 %.0117, 1
  %21 = load ptr, ptr %15, align 8, !tbaa !17
  %22 = getelementptr inbounds double, ptr %21, i64 %20
  store double 0.000000e+00, ptr %22, align 8, !tbaa !18
  %23 = or disjoint i64 %.0117, 2
  %24 = load ptr, ptr %15, align 8, !tbaa !17
  %25 = getelementptr inbounds double, ptr %24, i64 %23
  store double 0.000000e+00, ptr %25, align 8, !tbaa !18
  %26 = or disjoint i64 %.0117, 3
  %27 = load ptr, ptr %15, align 8, !tbaa !17
  %28 = getelementptr inbounds double, ptr %27, i64 %26
  store double 0.000000e+00, ptr %28, align 8, !tbaa !18
  %29 = add nuw nsw i64 %.0117, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %17, !llvm.loop !20

._crit_edge.loopexit.unr-lcssa:                   ; preds = %17, %.lr.ph
  %.0117.unr = phi i64 [ 0, %.lr.ph ], [ %29, %17 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.0117.epil = phi i64 [ %32, %.epil.preheader ], [ %.0117.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %30 = load ptr, ptr %15, align 8, !tbaa !17
  %31 = getelementptr inbounds double, ptr %30, i64 %.0117.epil
  store double 0.000000e+00, ptr %31, align 8, !tbaa !18
  %32 = add nuw nsw i64 %.0117.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !22

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %4
  %33 = load i64, ptr %5, align 8, !tbaa !5
  switch i64 %33, label %.loopexit114 [
    i64 1, label %34
    i64 2, label %96
  ]

34:                                               ; preds = %._crit_edge
  %35 = getelementptr inbounds i8, ptr %0, i64 352
  %36 = load i64, ptr %35, align 8, !tbaa !24
  %37 = getelementptr inbounds i8, ptr %0, i64 128
  %38 = getelementptr inbounds i8, ptr %0, i64 184
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  %40 = getelementptr inbounds i64, ptr %39, i64 %14
  %41 = load i64, ptr %40, align 8, !tbaa !25
  %42 = icmp eq i64 %36, %41
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef nonnull @.str.109, ptr noundef %3)
  %43 = load i64, ptr %9, align 8, !tbaa !15
  %44 = load i64, ptr %12, align 8, !tbaa !16
  %45 = getelementptr inbounds i8, ptr %0, i64 64
  %46 = tail call noundef zeroext i1 @_ZN11alglib_impl16sparsegemvcrsmklEllldPNS_9ae_vectorES1_S1_S1_ldS1_lPNS_8ae_stateE(i64 noundef 1, i64 noundef %43, i64 noundef %44, double noundef 1.000000e+00, ptr noundef nonnull %0, ptr noundef nonnull %45, ptr noundef nonnull %37, ptr noundef nonnull %1, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %2, i64 noundef 0, ptr noundef %3)
  %.not.not112126 = icmp slt i64 %14, 1
  %or.cond.not = select i1 %46, i1 true, i1 %.not.not112126
  br i1 %or.cond.not, label %.loopexit114, label %.lr.ph128

.lr.ph128:                                        ; preds = %34
  %47 = getelementptr inbounds i8, ptr %1, i64 56
  %48 = getelementptr inbounds i8, ptr %0, i64 120
  %49 = getelementptr inbounds i8, ptr %2, i64 56
  %50 = getelementptr inbounds i8, ptr %0, i64 56
  br label %51

.loopexit:                                        ; preds = %.lr.ph125.prol.loopexit, %.lr.ph125, %51
  %exitcond132.not = icmp eq i64 %55, %14
  br i1 %exitcond132.not, label %.loopexit114, label %51, !llvm.loop !26

51:                                               ; preds = %.lr.ph128, %.loopexit
  %.1127 = phi i64 [ 0, %.lr.ph128 ], [ %55, %.loopexit ]
  %52 = load ptr, ptr %38, align 8, !tbaa !17
  %53 = getelementptr inbounds i64, ptr %52, i64 %.1127
  %54 = load i64, ptr %53, align 8, !tbaa !25
  %55 = add nuw nsw i64 %.1127, 1
  %56 = getelementptr inbounds i64, ptr %52, i64 %55
  %57 = load i64, ptr %56, align 8, !tbaa !25
  %58 = load ptr, ptr %47, align 8, !tbaa !17
  %59 = getelementptr inbounds double, ptr %58, i64 %.1127
  %60 = load double, ptr %59, align 8, !tbaa !18
  %.not.not113122 = icmp slt i64 %54, %57
  br i1 %.not.not113122, label %.lr.ph125.preheader, label %.loopexit

.lr.ph125.preheader:                              ; preds = %51
  %61 = sub i64 %57, %54
  %.neg = add i64 %54, 1
  %xtraiter136 = and i64 %61, 1
  %lcmp.mod137.not = icmp eq i64 %xtraiter136, 0
  br i1 %lcmp.mod137.not, label %.lr.ph125.prol.loopexit, label %.lr.ph125.prol

.lr.ph125.prol:                                   ; preds = %.lr.ph125.preheader
  %62 = load ptr, ptr %48, align 8, !tbaa !17
  %63 = getelementptr inbounds i64, ptr %62, i64 %54
  %64 = load i64, ptr %63, align 8, !tbaa !25
  %65 = load ptr, ptr %49, align 8, !tbaa !17
  %66 = getelementptr inbounds double, ptr %65, i64 %64
  %67 = load double, ptr %66, align 8, !tbaa !18
  %68 = load ptr, ptr %50, align 8, !tbaa !17
  %69 = getelementptr inbounds double, ptr %68, i64 %54
  %70 = load double, ptr %69, align 8, !tbaa !18
  %71 = tail call double @llvm.fmuladd.f64(double %60, double %70, double %67)
  store double %71, ptr %66, align 8, !tbaa !18
  %72 = add nsw i64 %54, 1
  br label %.lr.ph125.prol.loopexit

.lr.ph125.prol.loopexit:                          ; preds = %.lr.ph125.prol, %.lr.ph125.preheader
  %.0104123.unr = phi i64 [ %54, %.lr.ph125.preheader ], [ %72, %.lr.ph125.prol ]
  %73 = icmp eq i64 %57, %.neg
  br i1 %73, label %.loopexit, label %.lr.ph125

.lr.ph125:                                        ; preds = %.lr.ph125.prol.loopexit, %.lr.ph125
  %.0104123 = phi i64 [ %95, %.lr.ph125 ], [ %.0104123.unr, %.lr.ph125.prol.loopexit ]
  %74 = load ptr, ptr %48, align 8, !tbaa !17
  %75 = getelementptr inbounds i64, ptr %74, i64 %.0104123
  %76 = load i64, ptr %75, align 8, !tbaa !25
  %77 = load ptr, ptr %49, align 8, !tbaa !17
  %78 = getelementptr inbounds double, ptr %77, i64 %76
  %79 = load double, ptr %78, align 8, !tbaa !18
  %80 = load ptr, ptr %50, align 8, !tbaa !17
  %81 = getelementptr inbounds double, ptr %80, i64 %.0104123
  %82 = load double, ptr %81, align 8, !tbaa !18
  %83 = tail call double @llvm.fmuladd.f64(double %60, double %82, double %79)
  store double %83, ptr %78, align 8, !tbaa !18
  %84 = add nsw i64 %.0104123, 1
  %85 = load ptr, ptr %48, align 8, !tbaa !17
  %86 = getelementptr inbounds i64, ptr %85, i64 %84
  %87 = load i64, ptr %86, align 8, !tbaa !25
  %88 = load ptr, ptr %49, align 8, !tbaa !17
  %89 = getelementptr inbounds double, ptr %88, i64 %87
  %90 = load double, ptr %89, align 8, !tbaa !18
  %91 = load ptr, ptr %50, align 8, !tbaa !17
  %92 = getelementptr inbounds double, ptr %91, i64 %84
  %93 = load double, ptr %92, align 8, !tbaa !18
  %94 = tail call double @llvm.fmuladd.f64(double %60, double %93, double %90)
  store double %94, ptr %89, align 8, !tbaa !18
  %95 = add nsw i64 %.0104123, 2
  %exitcond131.not.1 = icmp eq i64 %95, %57
  br i1 %exitcond131.not.1, label %.loopexit, label %.lr.ph125, !llvm.loop !27

96:                                               ; preds = %._crit_edge
  %97 = load i64, ptr %9, align 8, !tbaa !15
  %98 = load i64, ptr %12, align 8, !tbaa !16
  %99 = icmp eq i64 %97, %98
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %99, ptr noundef nonnull @.str.106, ptr noundef %3)
  br i1 %.not.not116, label %.lr.ph121, label %.loopexit114

.lr.ph121:                                        ; preds = %96
  %100 = getelementptr inbounds i8, ptr %0, i64 184
  %101 = getelementptr inbounds i8, ptr %0, i64 248
  %102 = getelementptr inbounds i8, ptr %0, i64 312
  %103 = getelementptr inbounds i8, ptr %1, i64 56
  %104 = getelementptr inbounds i8, ptr %2, i64 56
  %105 = getelementptr inbounds i8, ptr %0, i64 56
  br label %106

106:                                              ; preds = %.lr.ph121, %150
  %.2119 = phi i64 [ 0, %.lr.ph121 ], [ %110, %150 ]
  %107 = load ptr, ptr %100, align 8, !tbaa !17
  %108 = getelementptr inbounds i64, ptr %107, i64 %.2119
  %109 = load i64, ptr %108, align 8, !tbaa !25
  %110 = add nuw nsw i64 %.2119, 1
  %111 = getelementptr inbounds i64, ptr %107, i64 %110
  %112 = load i64, ptr %111, align 8, !tbaa !25
  %113 = load ptr, ptr %101, align 8, !tbaa !17
  %114 = getelementptr inbounds i64, ptr %113, i64 %.2119
  %115 = load i64, ptr %114, align 8, !tbaa !25
  %116 = load ptr, ptr %102, align 8, !tbaa !17
  %117 = getelementptr inbounds i64, ptr %116, i64 %.2119
  %118 = load i64, ptr %117, align 8, !tbaa !25
  %119 = icmp sgt i64 %115, 0
  br i1 %119, label %120, label %131

120:                                              ; preds = %106
  %121 = sub nsw i64 %.2119, %115
  %122 = add nsw i64 %.2119, -1
  %123 = load ptr, ptr %103, align 8, !tbaa !17
  %124 = getelementptr inbounds double, ptr %123, i64 %.2119
  %125 = load double, ptr %124, align 8, !tbaa !18
  %126 = load ptr, ptr %104, align 8, !tbaa !17
  %127 = getelementptr inbounds double, ptr %126, i64 %121
  %128 = load ptr, ptr %105, align 8, !tbaa !17
  %129 = getelementptr inbounds double, ptr %128, i64 %109
  %130 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %121, i64 noundef %122)
  tail call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %127, i64 noundef 1, ptr noundef %129, i64 noundef 1, i64 noundef %130, double noundef %125)
  br label %131

131:                                              ; preds = %120, %106
  %132 = load ptr, ptr %105, align 8, !tbaa !17
  %133 = getelementptr double, ptr %132, i64 %109
  %134 = getelementptr double, ptr %133, i64 %115
  %135 = load double, ptr %134, align 8, !tbaa !18
  %136 = load ptr, ptr %103, align 8, !tbaa !17
  %137 = getelementptr inbounds double, ptr %136, i64 %.2119
  %138 = load double, ptr %137, align 8, !tbaa !18
  %139 = fmul double %135, %138
  %140 = icmp sgt i64 %118, 0
  br i1 %140, label %141, label %150

141:                                              ; preds = %131
  %142 = sub nsw i64 %112, %118
  %143 = add nsw i64 %112, -1
  %144 = sub nsw i64 %.2119, %118
  %145 = getelementptr inbounds double, ptr %132, i64 %142
  %146 = getelementptr inbounds double, ptr %136, i64 %144
  %147 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %142, i64 noundef %143)
  %148 = tail call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %145, i64 noundef 1, ptr noundef %146, i64 noundef 1, i64 noundef %147)
  %149 = fadd double %139, %148
  br label %150

150:                                              ; preds = %141, %131
  %.0105 = phi double [ %149, %141 ], [ %139, %131 ]
  %151 = load ptr, ptr %104, align 8, !tbaa !17
  %152 = getelementptr inbounds double, ptr %151, i64 %.2119
  store double %.0105, ptr %152, align 8, !tbaa !18
  %exitcond130.not = icmp eq i64 %110, %13
  br i1 %exitcond130.not, label %.loopexit114, label %106, !llvm.loop !28

.loopexit114:                                     ; preds = %150, %.loopexit, %96, %._crit_edge, %34
  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, !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 = !{!7, !8, i64 0}
!15 = !{!6, !8, i64 328}
!16 = !{!6, !8, i64 336}
!17 = !{!9, !9, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !9, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}
!24 = !{!6, !8, i64 352}
!25 = !{!8, !8, i64 0}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !21}


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