; LLVM IR from Dimandragon/non-parametric-dsp :: 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.1 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.1 = 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.174 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.176 = external hidden unnamed_addr constant [133 x i8], align 1
@.str.177 = 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_impl8sparsemvEPKNS_12sparsematrixEPKNS_9ae_vectorEPS3_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.174, 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.175, 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.176, 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_impl16sparsegemvcrsmklEllldPKNS_9ae_vectorES2_S2_S2_ldPS0_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 %286

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 %286

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 %285

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.177, ptr noundef %169)
  store i64 0, ptr %12, align 8, !tbaa !18
  br label %170

170:                                              ; preds = %280, %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 %283

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 %279

261:                                              ; preds = %252
  %262 = load i64, ptr %21, align 8, !tbaa !18
  %263 = load ptr, ptr %6, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %263, i32 0, i32 4
  %265 = load ptr, ptr %264, align 8, !tbaa !20
  %266 = load i64, ptr %12, align 8, !tbaa !18
  %267 = getelementptr inbounds double, ptr %265, i64 %266
  %268 = load double, ptr %267, align 8, !tbaa !21
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %269, i32 0, i32 0
  %271 = load i64, ptr %23, align 8, !tbaa !18
  %272 = load i64, ptr %21, align 8, !tbaa !18
  %273 = sub nsw i64 %271, %272
  %274 = load ptr, ptr %7, align 8, !tbaa !5
  %275 = load i64, ptr %12, align 8, !tbaa !18
  %276 = load i64, ptr %21, align 8, !tbaa !18
  %277 = sub nsw i64 %275, %276
  %278 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl6raddvxEldPKNS_9ae_vectorElPS0_lPNS_8ae_stateE(i64 noundef %262, double noundef %268, ptr noundef %270, i64 noundef %273, ptr noundef %274, i64 noundef %277, ptr noundef %278)
  br label %279

279:                                              ; preds = %261, %252
  br label %280

280:                                              ; preds = %279
  %281 = load i64, ptr %12, align 8, !tbaa !18
  %282 = add nsw i64 %281, 1
  store i64 %282, ptr %12, align 8, !tbaa !18
  br label %170, !llvm.loop !26

283:                                              ; preds = %170
  %284 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl8touchintEPlPNS_8ae_stateE(ptr noundef %17, ptr noundef %284)
  store i32 1, ptr %24, align 4
  br label %286

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

286:                                              ; preds = %285, %283, %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
  %287 = load i32, ptr %24, align 4
  switch i32 %287, label %289 [
    i32 0, label %288
    i32 1, label %288
  ]

288:                                              ; preds = %286, %286
  ret void

289:                                              ; preds = %286
  unreachable
}

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

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 zeroext i1 @_ZN11alglib_impl16sparsegemvcrsmklEllldPKNS_9ae_vectorES2_S2_S2_ldPS0_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

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

declare void @_ZN11alglib_impl8touchintEPlPNS_8ae_stateE(ptr noundef, ptr 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.174 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.176 = external hidden unnamed_addr constant [133 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [52 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl8sparsemvEPKNS_12sparsematrixEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %6 = load i64, ptr %1, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 336
  %8 = load i64, ptr %7, align 8, !tbaa !13
  %9 = icmp sge i64 %6, %8
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.174, ptr noundef %3)
  %10 = getelementptr inbounds i8, ptr %0, i64 320
  %11 = load i64, ptr %10, align 8, !tbaa !15
  %12 = add i64 %11, -1
  %spec.select = icmp ult i64 %12, 2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.175, ptr noundef %3)
  %13 = getelementptr inbounds i8, ptr %0, i64 328
  %14 = load i64, ptr %13, align 8, !tbaa !16
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef %14, ptr noundef %3)
  %15 = load i64, ptr %7, align 8, !tbaa !13
  %16 = load i64, ptr %13, align 8, !tbaa !16
  %17 = load i64, ptr %10, align 8, !tbaa !15
  switch i64 %17, label %.loopexit [
    i64 1, label %18
    i64 2, label %90
  ]

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

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

35:                                               ; preds = %.lr.ph112, %._crit_edge109
  %.094111 = phi i64 [ 0, %.lr.ph112 ], [ %39, %._crit_edge109 ]
  %36 = load ptr, ptr %22, align 8, !tbaa !18
  %37 = getelementptr inbounds i64, ptr %36, i64 %.094111
  %38 = load i64, ptr %37, align 8, !tbaa !19
  %39 = add nuw nsw i64 %.094111, 1
  %40 = getelementptr inbounds i64, ptr %36, i64 %39
  %41 = load i64, ptr %40, align 8, !tbaa !19
  %.not.not101104 = icmp slt i64 %38, %41
  br i1 %.not.not101104, label %.lr.ph108, label %._crit_edge109

.lr.ph108:                                        ; preds = %35
  %42 = load ptr, ptr %31, align 8, !tbaa !18
  %43 = load ptr, ptr %32, align 8, !tbaa !18
  %44 = load ptr, ptr %33, align 8, !tbaa !18
  %45 = sub i64 %41, %38
  %xtraiter = and i64 %45, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.preheader

.prol.preheader:                                  ; preds = %.lr.ph108, %.prol.preheader
  %.0106.prol = phi double [ %52, %.prol.preheader ], [ 0.000000e+00, %.lr.ph108 ]
  %.095105.prol = phi i64 [ %53, %.prol.preheader ], [ %38, %.lr.ph108 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.prol.preheader ], [ 0, %.lr.ph108 ]
  %46 = getelementptr inbounds i64, ptr %43, i64 %.095105.prol
  %47 = load i64, ptr %46, align 8, !tbaa !19
  %48 = getelementptr inbounds double, ptr %42, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !20
  %50 = getelementptr inbounds double, ptr %44, i64 %.095105.prol
  %51 = load double, ptr %50, align 8, !tbaa !20
  %52 = tail call double @llvm.fmuladd.f64(double %49, double %51, double %.0106.prol)
  %53 = add nsw i64 %.095105.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.ph108
  %.lcssa.unr = phi double [ poison, %.lr.ph108 ], [ %52, %.prol.preheader ]
  %.0106.unr = phi double [ 0.000000e+00, %.lr.ph108 ], [ %52, %.prol.preheader ]
  %.095105.unr = phi i64 [ %38, %.lr.ph108 ], [ %53, %.prol.preheader ]
  %54 = sub i64 %38, %41
  %55 = icmp ugt i64 %54, -4
  br i1 %55, label %._crit_edge109, label %.lr.ph108.new

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

._crit_edge109:                                   ; preds = %.prol.loopexit, %.lr.ph108.new, %35
  %.0.lcssa = phi double [ 0.000000e+00, %35 ], [ %.lcssa.unr, %.prol.loopexit ], [ %86, %.lr.ph108.new ]
  %88 = load ptr, ptr %34, align 8, !tbaa !18
  %89 = getelementptr inbounds double, ptr %88, i64 %.094111
  store double %.0.lcssa, ptr %89, align 8, !tbaa !20
  %exitcond114.not = icmp eq i64 %39, %16
  br i1 %exitcond114.not, label %.loopexit, label %35, !llvm.loop !26

90:                                               ; preds = %4
  %91 = icmp eq i64 %16, %15
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %91, ptr noundef nonnull @.str.177, ptr noundef %3)
  %.not.not102 = icmp sgt i64 %15, 0
  br i1 %.not.not102, label %.lr.ph, label %._crit_edge

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

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

120:                                              ; preds = %98
  %121 = add nsw i64 %112, -1
  %122 = sub nsw i64 %.1103, %107
  %123 = add nsw i64 %.1103, -1
  store i64 %123, ptr %5, align 8, !tbaa !19
  %124 = getelementptr inbounds double, ptr %111, i64 %101
  %125 = getelementptr inbounds double, ptr %115, i64 %122
  %126 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %101, i64 noundef %121)
  %127 = tail call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %124, i64 noundef 1, ptr noundef %125, i64 noundef 1, i64 noundef %126)
  %128 = fadd double %118, %127
  br label %129

129:                                              ; preds = %120, %98
  %.093 = phi double [ %128, %120 ], [ %118, %98 ]
  %130 = load ptr, ptr %97, align 8, !tbaa !18
  %131 = getelementptr inbounds double, ptr %130, i64 %.1103
  store double %.093, ptr %131, align 8, !tbaa !20
  %132 = icmp sgt i64 %110, 0
  br i1 %132, label %133, label %139

133:                                              ; preds = %129
  %134 = load ptr, ptr %96, align 8, !tbaa !18
  %135 = getelementptr inbounds double, ptr %134, i64 %.1103
  %136 = load double, ptr %135, align 8, !tbaa !20
  %137 = sub nsw i64 %104, %110
  %138 = sub nsw i64 %.1103, %110
  tail call void @_ZN11alglib_impl6raddvxEldPKNS_9ae_vectorElPS0_lPNS_8ae_stateE(i64 noundef %110, double noundef %136, ptr noundef nonnull %0, i64 noundef %137, ptr noundef nonnull %2, i64 noundef %138, ptr noundef %3)
  br label %139

139:                                              ; preds = %129, %133
  %exitcond.not = icmp eq i64 %102, %15
  br i1 %exitcond.not, label %._crit_edge, label %98, !llvm.loop !27

._crit_edge:                                      ; preds = %139, %90
  call void @_ZN11alglib_impl8touchintEPlPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef %3)
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge109, %4, %18, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  ret void
}

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

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

; Function Attrs: mustprogress 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) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl16sparsegemvcrsmklEllldPKNS_9ae_vectorES2_S2_S2_ldPS0_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 #1

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

declare void @_ZN11alglib_impl8touchintEPlPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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 = { mustprogress 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, !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