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

@_ZN11alglib_implL20sparse_maxloadfactorE = external hidden global double, align 8
@.str.81 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [74 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, double noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store i64 %2, ptr %8, align 8, !tbaa !9
  store double %3, ptr %9, align 8, !tbaa !11
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #3
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %16, i32 0, i32 5
  %18 = load i64, ptr %17, align 8, !tbaa !13
  %19 = icmp eq i64 %18, 0
  br i1 %19, label %30, label %20

20:                                               ; preds = %5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %21, i32 0, i32 5
  %23 = load i64, ptr %22, align 8, !tbaa !13
  %24 = icmp eq i64 %23, 1
  br i1 %24, label %30, label %25

25:                                               ; preds = %20
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %26, i32 0, i32 5
  %28 = load i64, ptr %27, align 8, !tbaa !13
  %29 = icmp eq i64 %28, 2
  br label %30

30:                                               ; preds = %25, %20, %5
  %31 = phi i1 [ true, %20 ], [ true, %5 ], [ %29, %25 ]
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef @.str.81, ptr noundef %32)
  %33 = load i64, ptr %7, align 8, !tbaa !9
  %34 = icmp sge i64 %33, 0
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef @.str.82, ptr noundef %35)
  %36 = load i64, ptr %7, align 8, !tbaa !9
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %37, i32 0, i32 6
  %39 = load i64, ptr %38, align 8, !tbaa !18
  %40 = icmp slt i64 %36, %39
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %40, ptr noundef @.str.83, ptr noundef %41)
  %42 = load i64, ptr %8, align 8, !tbaa !9
  %43 = icmp sge i64 %42, 0
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef @.str.84, ptr noundef %44)
  %45 = load i64, ptr %8, align 8, !tbaa !9
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %46, i32 0, i32 7
  %48 = load i64, ptr %47, align 8, !tbaa !19
  %49 = icmp slt i64 %45, %48
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef @.str.85, ptr noundef %50)
  %51 = load double, ptr %9, align 8, !tbaa !11
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %51, ptr noundef %52)
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %53, ptr noundef @.str.86, ptr noundef %54)
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %55, i32 0, i32 5
  %57 = load i64, ptr %56, align 8, !tbaa !13
  %58 = icmp eq i64 %57, 0
  br i1 %58, label %59, label %203

59:                                               ; preds = %30
  store i64 -1, ptr %12, align 8, !tbaa !9
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %60, i32 0, i32 10
  %62 = load i64, ptr %61, align 8, !tbaa !20
  store i64 %62, ptr %13, align 8, !tbaa !9
  %63 = load double, ptr @_ZN11alglib_implL20sparse_maxloadfactorE, align 8, !tbaa !11
  %64 = fsub double 1.000000e+00, %63
  %65 = load i64, ptr %13, align 8, !tbaa !9
  %66 = sitofp i64 %65 to double
  %67 = fmul double %64, %66
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %68, i32 0, i32 8
  %70 = load i64, ptr %69, align 8, !tbaa !21
  %71 = sitofp i64 %70 to double
  %72 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %67, double noundef %71)
  br i1 %72, label %73, label %79

73:                                               ; preds = %59
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparseresizematrixEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %74, ptr noundef %75)
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %76, i32 0, i32 10
  %78 = load i64, ptr %77, align 8, !tbaa !20
  store i64 %78, ptr %13, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %73, %59
  %80 = load i64, ptr %7, align 8, !tbaa !9
  %81 = load i64, ptr %8, align 8, !tbaa !9
  %82 = load i64, ptr %13, align 8, !tbaa !9
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = call noundef i64 @_ZN11alglib_implL11sparse_hashElllPNS_8ae_stateE(i64 noundef %80, i64 noundef %81, i64 noundef %82, ptr noundef %83)
  store i64 %84, ptr %11, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %202, %79
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %86, i32 0, i32 1
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %87, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !22
  %90 = load i64, ptr %11, align 8, !tbaa !9
  %91 = mul nsw i64 2, %90
  %92 = getelementptr inbounds i64, ptr %89, i64 %91
  %93 = load i64, ptr %92, align 8, !tbaa !9
  %94 = icmp eq i64 %93, -1
  br i1 %94, label %95, label %139

95:                                               ; preds = %85
  %96 = load double, ptr %9, align 8, !tbaa !11
  %97 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %96, double noundef 0.000000e+00)
  br i1 %97, label %98, label %138

98:                                               ; preds = %95
  %99 = load i64, ptr %12, align 8, !tbaa !9
  %100 = icmp ne i64 %99, -1
  br i1 %100, label %101, label %103

101:                                              ; preds = %98
  %102 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %102, ptr %11, align 8, !tbaa !9
  br label %103

103:                                              ; preds = %101, %98
  %104 = load double, ptr %9, align 8, !tbaa !11
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %105, i32 0, i32 0
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %106, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !22
  %109 = load i64, ptr %11, align 8, !tbaa !9
  %110 = getelementptr inbounds double, ptr %108, i64 %109
  store double %104, ptr %110, align 8, !tbaa !11
  %111 = load i64, ptr %7, align 8, !tbaa !9
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %112, i32 0, i32 1
  %114 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %113, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !22
  %116 = load i64, ptr %11, align 8, !tbaa !9
  %117 = mul nsw i64 2, %116
  %118 = getelementptr inbounds i64, ptr %115, i64 %117
  store i64 %111, ptr %118, align 8, !tbaa !9
  %119 = load i64, ptr %8, align 8, !tbaa !9
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %120, i32 0, i32 1
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %121, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !22
  %124 = load i64, ptr %11, align 8, !tbaa !9
  %125 = mul nsw i64 2, %124
  %126 = add nsw i64 %125, 1
  %127 = getelementptr inbounds i64, ptr %123, i64 %126
  store i64 %119, ptr %127, align 8, !tbaa !9
  %128 = load i64, ptr %12, align 8, !tbaa !9
  %129 = icmp eq i64 %128, -1
  br i1 %129, label %130, label %137

130:                                              ; preds = %103
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %131, i32 0, i32 8
  %133 = load i64, ptr %132, align 8, !tbaa !21
  %134 = sub nsw i64 %133, 1
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %135, i32 0, i32 8
  store i64 %134, ptr %136, align 8, !tbaa !21
  br label %137

137:                                              ; preds = %130, %103
  br label %138

138:                                              ; preds = %137, %95
  store i32 1, ptr %15, align 4
  br label %319

139:                                              ; preds = %85
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %140, i32 0, i32 1
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %141, i32 0, i32 4
  %143 = load ptr, ptr %142, align 8, !tbaa !22
  %144 = load i64, ptr %11, align 8, !tbaa !9
  %145 = mul nsw i64 2, %144
  %146 = getelementptr inbounds i64, ptr %143, i64 %145
  %147 = load i64, ptr %146, align 8, !tbaa !9
  %148 = load i64, ptr %7, align 8, !tbaa !9
  %149 = icmp eq i64 %147, %148
  br i1 %149, label %150, label %182

150:                                              ; preds = %139
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %151, i32 0, i32 1
  %153 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %152, i32 0, i32 4
  %154 = load ptr, ptr %153, align 8, !tbaa !22
  %155 = load i64, ptr %11, align 8, !tbaa !9
  %156 = mul nsw i64 2, %155
  %157 = add nsw i64 %156, 1
  %158 = getelementptr inbounds i64, ptr %154, i64 %157
  %159 = load i64, ptr %158, align 8, !tbaa !9
  %160 = load i64, ptr %8, align 8, !tbaa !9
  %161 = icmp eq i64 %159, %160
  br i1 %161, label %162, label %182

162:                                              ; preds = %150
  %163 = load double, ptr %9, align 8, !tbaa !11
  %164 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %163, double noundef 0.000000e+00)
  br i1 %164, label %165, label %173

165:                                              ; preds = %162
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %166, i32 0, i32 1
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %167, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !22
  %170 = load i64, ptr %11, align 8, !tbaa !9
  %171 = mul nsw i64 2, %170
  %172 = getelementptr inbounds i64, ptr %169, i64 %171
  store i64 -2, ptr %172, align 8, !tbaa !9
  br label %181

173:                                              ; preds = %162
  %174 = load double, ptr %9, align 8, !tbaa !11
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  %176 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %175, i32 0, i32 0
  %177 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %176, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !22
  %179 = load i64, ptr %11, align 8, !tbaa !9
  %180 = getelementptr inbounds double, ptr %178, i64 %179
  store double %174, ptr %180, align 8, !tbaa !11
  br label %181

181:                                              ; preds = %173, %165
  store i32 1, ptr %15, align 4
  br label %319

182:                                              ; preds = %150, %139
  %183 = load i64, ptr %12, align 8, !tbaa !9
  %184 = icmp eq i64 %183, -1
  br i1 %184, label %185, label %197

185:                                              ; preds = %182
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %186, i32 0, i32 1
  %188 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %187, i32 0, i32 4
  %189 = load ptr, ptr %188, align 8, !tbaa !22
  %190 = load i64, ptr %11, align 8, !tbaa !9
  %191 = mul nsw i64 2, %190
  %192 = getelementptr inbounds i64, ptr %189, i64 %191
  %193 = load i64, ptr %192, align 8, !tbaa !9
  %194 = icmp eq i64 %193, -2
  br i1 %194, label %195, label %197

195:                                              ; preds = %185
  %196 = load i64, ptr %11, align 8, !tbaa !9
  store i64 %196, ptr %12, align 8, !tbaa !9
  br label %197

197:                                              ; preds = %195, %185, %182
  %198 = load i64, ptr %11, align 8, !tbaa !9
  %199 = add nsw i64 %198, 1
  %200 = load i64, ptr %13, align 8, !tbaa !9
  %201 = srem i64 %199, %200
  store i64 %201, ptr %11, align 8, !tbaa !9
  br label %202

202:                                              ; preds = %197
  br label %85, !llvm.loop !23

203:                                              ; preds = %30
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %204, i32 0, i32 5
  %206 = load i64, ptr %205, align 8, !tbaa !13
  %207 = icmp eq i64 %206, 1
  br i1 %207, label %208, label %302

208:                                              ; preds = %203
  %209 = load ptr, ptr %6, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %209, i32 0, i32 2
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %210, i32 0, i32 4
  %212 = load ptr, ptr %211, align 8, !tbaa !22
  %213 = load i64, ptr %7, align 8, !tbaa !9
  %214 = getelementptr inbounds i64, ptr %212, i64 %213
  %215 = load i64, ptr %214, align 8, !tbaa !9
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %216, i32 0, i32 9
  %218 = load i64, ptr %217, align 8, !tbaa !25
  %219 = icmp sle i64 %215, %218
  %220 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %219, ptr noundef @.str.87, ptr noundef %220)
  %221 = load ptr, ptr %6, align 8, !tbaa !5
  %222 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %221, i32 0, i32 2
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %222, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !22
  %225 = load i64, ptr %7, align 8, !tbaa !9
  %226 = add nsw i64 %225, 1
  %227 = getelementptr inbounds i64, ptr %224, i64 %226
  %228 = load i64, ptr %227, align 8, !tbaa !9
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %229, i32 0, i32 9
  %231 = load i64, ptr %230, align 8, !tbaa !25
  %232 = icmp sgt i64 %228, %231
  %233 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %232, ptr noundef @.str.88, ptr noundef %233)
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  %235 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %234, i32 0, i32 9
  %236 = load i64, ptr %235, align 8, !tbaa !25
  %237 = load ptr, ptr %6, align 8, !tbaa !5
  %238 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %237, i32 0, i32 2
  %239 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %238, i32 0, i32 4
  %240 = load ptr, ptr %239, align 8, !tbaa !22
  %241 = load i64, ptr %7, align 8, !tbaa !9
  %242 = getelementptr inbounds i64, ptr %240, i64 %241
  %243 = load i64, ptr %242, align 8, !tbaa !9
  %244 = icmp eq i64 %236, %243
  br i1 %244, label %258, label %245

245:                                              ; preds = %208
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %246, i32 0, i32 1
  %248 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %247, i32 0, i32 4
  %249 = load ptr, ptr %248, align 8, !tbaa !22
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %250, i32 0, i32 9
  %252 = load i64, ptr %251, align 8, !tbaa !25
  %253 = sub nsw i64 %252, 1
  %254 = getelementptr inbounds i64, ptr %249, i64 %253
  %255 = load i64, ptr %254, align 8, !tbaa !9
  %256 = load i64, ptr %8, align 8, !tbaa !9
  %257 = icmp slt i64 %255, %256
  br label %258

258:                                              ; preds = %245, %208
  %259 = phi i1 [ true, %208 ], [ %257, %245 ]
  %260 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %259, ptr noundef @.str.89, ptr noundef %260)
  %261 = load double, ptr %9, align 8, !tbaa !11
  %262 = load ptr, ptr %6, align 8, !tbaa !5
  %263 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %262, i32 0, i32 0
  %264 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %263, i32 0, i32 4
  %265 = load ptr, ptr %264, align 8, !tbaa !22
  %266 = load ptr, ptr %6, align 8, !tbaa !5
  %267 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %266, i32 0, i32 9
  %268 = load i64, ptr %267, align 8, !tbaa !25
  %269 = getelementptr inbounds double, ptr %265, i64 %268
  store double %261, ptr %269, align 8, !tbaa !11
  %270 = load i64, ptr %8, align 8, !tbaa !9
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %271, i32 0, i32 1
  %273 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %272, i32 0, i32 4
  %274 = load ptr, ptr %273, align 8, !tbaa !22
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  %276 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %275, i32 0, i32 9
  %277 = load i64, ptr %276, align 8, !tbaa !25
  %278 = getelementptr inbounds i64, ptr %274, i64 %277
  store i64 %270, ptr %278, align 8, !tbaa !9
  %279 = load ptr, ptr %6, align 8, !tbaa !5
  %280 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %279, i32 0, i32 9
  %281 = load i64, ptr %280, align 8, !tbaa !25
  %282 = add nsw i64 %281, 1
  %283 = load ptr, ptr %6, align 8, !tbaa !5
  %284 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %283, i32 0, i32 9
  store i64 %282, ptr %284, align 8, !tbaa !25
  %285 = load ptr, ptr %6, align 8, !tbaa !5
  %286 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %285, i32 0, i32 9
  %287 = load i64, ptr %286, align 8, !tbaa !25
  %288 = load ptr, ptr %6, align 8, !tbaa !5
  %289 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %288, i32 0, i32 2
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %289, i32 0, i32 4
  %291 = load ptr, ptr %290, align 8, !tbaa !22
  %292 = load ptr, ptr %6, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %292, i32 0, i32 6
  %294 = load i64, ptr %293, align 8, !tbaa !18
  %295 = getelementptr inbounds i64, ptr %291, i64 %294
  %296 = load i64, ptr %295, align 8, !tbaa !9
  %297 = icmp eq i64 %287, %296
  br i1 %297, label %298, label %301

298:                                              ; preds = %258
  %299 = load ptr, ptr %6, align 8, !tbaa !5
  %300 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparseinitduidxEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %299, ptr noundef %300)
  br label %301

301:                                              ; preds = %298, %258
  store i32 1, ptr %15, align 4
  br label %319

302:                                              ; preds = %203
  %303 = load ptr, ptr %6, align 8, !tbaa !5
  %304 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %303, i32 0, i32 5
  %305 = load i64, ptr %304, align 8, !tbaa !13
  %306 = icmp eq i64 %305, 2
  br i1 %306, label %307, label %318

307:                                              ; preds = %302
  %308 = load ptr, ptr %6, align 8, !tbaa !5
  %309 = load i64, ptr %7, align 8, !tbaa !9
  %310 = load i64, ptr %8, align 8, !tbaa !9
  %311 = load double, ptr %9, align 8, !tbaa !11
  %312 = load ptr, ptr %10, align 8, !tbaa !5
  %313 = call noundef zeroext i1 @_ZN11alglib_impl21sparserewriteexistingEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %308, i64 noundef %309, i64 noundef %310, double noundef %311, ptr noundef %312)
  %314 = zext i1 %313 to i8
  store i8 %314, ptr %14, align 1, !tbaa !26
  %315 = load i8, ptr %14, align 1, !tbaa !26, !range !27, !noundef !28
  %316 = trunc i8 %315 to i1
  %317 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %316, ptr noundef @.str.90, ptr noundef %317)
  store i32 1, ptr %15, align 4
  br label %319

318:                                              ; preds = %302
  store i32 0, ptr %15, align 4
  br label %319

319:                                              ; preds = %318, %307, %301, %181, %138
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  %320 = load i32, ptr %15, align 4
  switch i32 %320, label %322 [
    i32 0, label %321
    i32 1, label %321
  ]

321:                                              ; preds = %319, %319
  ret void

322:                                              ; preds = %319
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18sparseresizematrixEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl21sparserewriteexistingEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15sparseinitduidxEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #2

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

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZN11alglib_implL11sparse_hashElllPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double 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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 320}
!14 = !{!"_ZTSN11alglib_impl12sparsematrixE", !15, i64 0, !15, i64 64, !15, i64 128, !15, i64 192, !15, i64 256, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !16, i64 16, !17, i64 24, !7, i64 56}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!14, !10, i64 328}
!19 = !{!14, !10, i64 336}
!20 = !{!14, !10, i64 360}
!21 = !{!14, !10, i64 344}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!14, !10, i64 352}
!26 = !{!16, !16, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}


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

@_ZN11alglib_implL20sparse_maxloadfactorE = external hidden local_unnamed_addr global double, align 8
@.str.81 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [74 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, double noundef %3, ptr noundef %4) local_unnamed_addr #1 {
switch.edge:
  %5 = getelementptr inbounds i8, ptr %0, i64 320
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %switch = icmp ult i64 %6, 3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %switch, ptr noundef nonnull @.str.81, ptr noundef %4)
  %7 = icmp sgt i64 %1, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.82, ptr noundef %4)
  %8 = getelementptr inbounds i8, ptr %0, i64 328
  %9 = load i64, ptr %8, align 8, !tbaa !14
  %10 = icmp sgt i64 %9, %1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.83, ptr noundef %4)
  %11 = icmp sgt i64 %2, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.84, ptr noundef %4)
  %12 = getelementptr inbounds i8, ptr %0, i64 336
  %13 = load i64, ptr %12, align 8, !tbaa !15
  %14 = icmp sgt i64 %13, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.85, ptr noundef %4)
  %15 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %3, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.86, ptr noundef %4)
  %16 = load i64, ptr %5, align 8, !tbaa !5
  switch i64 %16, label %123 [
    i64 0, label %17
    i64 1, label %78
    i64 2, label %121
  ]

17:                                               ; preds = %switch.edge
  %18 = getelementptr inbounds i8, ptr %0, i64 360
  %19 = load i64, ptr %18, align 8, !tbaa !16
  %20 = load double, ptr @_ZN11alglib_implL20sparse_maxloadfactorE, align 8, !tbaa !17
  %21 = fsub double 1.000000e+00, %20
  %22 = sitofp i64 %19 to double
  %23 = fmul double %21, %22
  %24 = getelementptr inbounds i8, ptr %0, i64 344
  %25 = load i64, ptr %24, align 8, !tbaa !19
  %26 = sitofp i64 %25 to double
  %27 = tail call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %23, double noundef %26)
  br i1 %27, label %28, label %30

28:                                               ; preds = %17
  tail call void @_ZN11alglib_impl18sparseresizematrixEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %4)
  %29 = load i64, ptr %18, align 8, !tbaa !16
  br label %30

30:                                               ; preds = %28, %17
  %.099 = phi i64 [ %29, %28 ], [ %19, %17 ]
  %31 = tail call noundef i64 @_ZN11alglib_implL11sparse_hashElllPNS_8ae_stateE(i64 noundef %1, i64 noundef %2, i64 noundef %.099, ptr noundef %4)
  %32 = getelementptr inbounds i8, ptr %0, i64 120
  %33 = load ptr, ptr %32, align 8, !tbaa !20
  %34 = shl nsw i64 %31, 1
  %35 = getelementptr inbounds i64, ptr %33, i64 %34
  %36 = load i64, ptr %35, align 8, !tbaa !21
  %37 = icmp eq i64 %36, -1
  br i1 %37, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %69, %30
  %.0100.lcssa = phi i64 [ -1, %30 ], [ %.1101, %69 ]
  %.0.lcssa = phi i64 [ %31, %30 ], [ %73, %69 ]
  %38 = tail call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %3, double noundef 0.000000e+00)
  br i1 %38, label %39, label %123

39:                                               ; preds = %._crit_edge
  %.not = icmp eq i64 %.0100.lcssa, -1
  %spec.select = select i1 %.not, i64 %.0.lcssa, i64 %.0100.lcssa
  %40 = getelementptr inbounds i8, ptr %0, i64 56
  %41 = load ptr, ptr %40, align 8, !tbaa !20
  %42 = getelementptr inbounds double, ptr %41, i64 %spec.select
  store double %3, ptr %42, align 8, !tbaa !17
  %43 = load ptr, ptr %32, align 8, !tbaa !20
  %44 = shl nsw i64 %spec.select, 1
  %45 = getelementptr inbounds i64, ptr %43, i64 %44
  store i64 %1, ptr %45, align 8, !tbaa !21
  %46 = load ptr, ptr %32, align 8, !tbaa !20
  %47 = or disjoint i64 %44, 1
  %48 = getelementptr inbounds i64, ptr %46, i64 %47
  store i64 %2, ptr %48, align 8, !tbaa !21
  br i1 %.not, label %49, label %123

49:                                               ; preds = %39
  %50 = load i64, ptr %24, align 8, !tbaa !19
  %51 = add nsw i64 %50, -1
  store i64 %51, ptr %24, align 8, !tbaa !19
  br label %123

.lr.ph:                                           ; preds = %30, %69
  %52 = phi i64 [ %76, %69 ], [ %36, %30 ]
  %53 = phi i64 [ %74, %69 ], [ %34, %30 ]
  %.0114 = phi i64 [ %73, %69 ], [ %31, %30 ]
  %.0100113 = phi i64 [ %.1101, %69 ], [ -1, %30 ]
  %54 = icmp eq i64 %52, %1
  br i1 %54, label %55, label %69

55:                                               ; preds = %.lr.ph
  %56 = or disjoint i64 %53, 1
  %57 = getelementptr inbounds i64, ptr %33, i64 %56
  %58 = load i64, ptr %57, align 8, !tbaa !21
  %59 = icmp eq i64 %58, %2
  br i1 %59, label %60, label %69

60:                                               ; preds = %55
  %61 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %3, double noundef 0.000000e+00)
  br i1 %61, label %62, label %65

62:                                               ; preds = %60
  %63 = load ptr, ptr %32, align 8, !tbaa !20
  %64 = getelementptr inbounds i64, ptr %63, i64 %53
  store i64 -2, ptr %64, align 8, !tbaa !21
  br label %123

65:                                               ; preds = %60
  %66 = getelementptr inbounds i8, ptr %0, i64 56
  %67 = load ptr, ptr %66, align 8, !tbaa !20
  %68 = getelementptr inbounds double, ptr %67, i64 %.0114
  store double %3, ptr %68, align 8, !tbaa !17
  br label %123

69:                                               ; preds = %55, %.lr.ph
  %70 = icmp eq i64 %.0100113, -1
  %71 = icmp eq i64 %52, -2
  %spec.select106 = select i1 %71, i64 %.0114, i64 -1
  %.1101 = select i1 %70, i64 %spec.select106, i64 %.0100113
  %72 = add nsw i64 %.0114, 1
  %73 = srem i64 %72, %.099
  %74 = shl nsw i64 %73, 1
  %75 = getelementptr inbounds i64, ptr %33, i64 %74
  %76 = load i64, ptr %75, align 8, !tbaa !21
  %77 = icmp eq i64 %76, -1
  br i1 %77, label %._crit_edge, label %.lr.ph, !llvm.loop !22

78:                                               ; preds = %switch.edge
  %79 = getelementptr inbounds i8, ptr %0, i64 184
  %80 = load ptr, ptr %79, align 8, !tbaa !20
  %81 = getelementptr inbounds i64, ptr %80, i64 %1
  %82 = load i64, ptr %81, align 8, !tbaa !21
  %83 = getelementptr inbounds i8, ptr %0, i64 352
  %84 = load i64, ptr %83, align 8, !tbaa !24
  %85 = icmp sle i64 %82, %84
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %85, ptr noundef nonnull @.str.87, ptr noundef %4)
  %86 = load ptr, ptr %79, align 8, !tbaa !20
  %87 = getelementptr i64, ptr %86, i64 %1
  %88 = getelementptr i8, ptr %87, i64 8
  %89 = load i64, ptr %88, align 8, !tbaa !21
  %90 = load i64, ptr %83, align 8, !tbaa !24
  %91 = icmp sgt i64 %89, %90
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %91, ptr noundef nonnull @.str.88, ptr noundef %4)
  %92 = load i64, ptr %83, align 8, !tbaa !24
  %93 = load ptr, ptr %79, align 8, !tbaa !20
  %94 = getelementptr inbounds i64, ptr %93, i64 %1
  %95 = load i64, ptr %94, align 8, !tbaa !21
  %96 = icmp eq i64 %92, %95
  br i1 %96, label %104, label %97

97:                                               ; preds = %78
  %98 = getelementptr inbounds i8, ptr %0, i64 120
  %99 = load ptr, ptr %98, align 8, !tbaa !20
  %100 = getelementptr i64, ptr %99, i64 %92
  %101 = getelementptr i8, ptr %100, i64 -8
  %102 = load i64, ptr %101, align 8, !tbaa !21
  %103 = icmp slt i64 %102, %2
  br label %104

104:                                              ; preds = %97, %78
  %105 = phi i1 [ true, %78 ], [ %103, %97 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %105, ptr noundef nonnull @.str.89, ptr noundef %4)
  %106 = getelementptr inbounds i8, ptr %0, i64 56
  %107 = load ptr, ptr %106, align 8, !tbaa !20
  %108 = load i64, ptr %83, align 8, !tbaa !24
  %109 = getelementptr inbounds double, ptr %107, i64 %108
  store double %3, ptr %109, align 8, !tbaa !17
  %110 = getelementptr inbounds i8, ptr %0, i64 120
  %111 = load ptr, ptr %110, align 8, !tbaa !20
  %112 = getelementptr inbounds i64, ptr %111, i64 %108
  store i64 %2, ptr %112, align 8, !tbaa !21
  %113 = load i64, ptr %83, align 8, !tbaa !24
  %114 = add nsw i64 %113, 1
  store i64 %114, ptr %83, align 8, !tbaa !24
  %115 = load ptr, ptr %79, align 8, !tbaa !20
  %116 = load i64, ptr %8, align 8, !tbaa !14
  %117 = getelementptr inbounds i64, ptr %115, i64 %116
  %118 = load i64, ptr %117, align 8, !tbaa !21
  %119 = icmp eq i64 %114, %118
  br i1 %119, label %120, label %123

120:                                              ; preds = %104
  tail call void @_ZN11alglib_impl15sparseinitduidxEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %4)
  br label %123

121:                                              ; preds = %switch.edge
  %122 = tail call noundef zeroext i1 @_ZN11alglib_impl21sparserewriteexistingEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %1, i64 noundef %2, double noundef %3, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %122, ptr noundef nonnull @.str.90, ptr noundef %4)
  br label %123

123:                                              ; preds = %switch.edge, %104, %120, %62, %65, %._crit_edge, %49, %39, %121
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18sparseresizematrixEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl21sparserewriteexistingEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15sparseinitduidxEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZN11alglib_implL11sparse_hashElllPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double 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" }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 320}
!6 = !{!"_ZTSN11alglib_impl12sparsematrixE", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 192, !7, i64 256, !8, i64 320, !8, i64 328, !8, i64 336, !8, i64 344, !8, i64 352, !8, i64 360}
!7 = !{!"_ZTSN11alglib_impl9ae_vectorE", !8, i64 0, !8, i64 8, !11, i64 16, !12, i64 24, !9, i64 56}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!6, !8, i64 328}
!15 = !{!6, !8, i64 336}
!16 = !{!6, !8, i64 360}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !9, i64 0}
!19 = !{!6, !8, i64 344}
!20 = !{!9, !9, i64 0}
!21 = !{!8, !8, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!6, !8, i64 352}


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