; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src (solvers)

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

%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::sparsesolverreport" = type { i64, i64, i64, double }

@.str.465 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.466 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.467 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.468 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.469 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.470 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.471 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.472 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.473 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.474 = external hidden unnamed_addr constant [30 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_impl13sparselusolveEPKNS_12sparsematrixEPKNS_9ae_vectorES5_S5_PS3_PNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca double, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  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
  %20 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %20)
  %21 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl25_sparsesolverreport_clearEPv(ptr noundef %21)
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = load ptr, ptr %14, align 8, !tbaa !5
  %24 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %22, ptr noundef %23)
  store i64 %24, ptr %18, align 8, !tbaa !9
  %25 = load i64, ptr %18, align 8, !tbaa !9
  %26 = icmp sgt i64 %25, 0
  %27 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef @.str.465, ptr noundef %27)
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = load ptr, ptr %14, align 8, !tbaa !5
  %30 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %28, ptr noundef %29)
  %31 = load i64, ptr %18, align 8, !tbaa !9
  %32 = icmp eq i64 %30, %31
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef @.str.466, ptr noundef %33)
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  %36 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %34, ptr noundef %35)
  %37 = load i64, ptr %18, align 8, !tbaa !9
  %38 = icmp eq i64 %36, %37
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef @.str.467, ptr noundef %39)
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  %42 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %40, ptr noundef %41)
  %43 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef @.str.468, ptr noundef %43)
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 0
  %46 = load i64, ptr %45, align 8, !tbaa !11
  %47 = load i64, ptr %18, align 8, !tbaa !9
  %48 = icmp sge i64 %46, %47
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.469, ptr noundef %49)
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = load i64, ptr %18, align 8, !tbaa !9
  %52 = load ptr, ptr %14, align 8, !tbaa !5
  %53 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %50, i64 noundef %51, ptr noundef %52)
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %53, ptr noundef @.str.470, ptr noundef %54)
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %55, i32 0, i32 0
  %57 = load i64, ptr %56, align 8, !tbaa !11
  %58 = load i64, ptr %18, align 8, !tbaa !9
  %59 = icmp sge i64 %57, %58
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %59, ptr noundef @.str.471, ptr noundef %60)
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %61, i32 0, i32 0
  %63 = load i64, ptr %62, align 8, !tbaa !11
  %64 = load i64, ptr %18, align 8, !tbaa !9
  %65 = icmp sge i64 %63, %64
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %65, ptr noundef @.str.472, ptr noundef %66)
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %113, %7
  %68 = load i64, ptr %15, align 8, !tbaa !9
  %69 = load i64, ptr %18, align 8, !tbaa !9
  %70 = sub nsw i64 %69, 1
  %71 = icmp sle i64 %68, %70
  br i1 %71, label %72, label %116

72:                                               ; preds = %67
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !15
  %76 = load i64, ptr %15, align 8, !tbaa !9
  %77 = getelementptr inbounds i64, ptr %75, i64 %76
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = load i64, ptr %15, align 8, !tbaa !9
  %80 = icmp sge i64 %78, %79
  br i1 %80, label %81, label %90

81:                                               ; preds = %72
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !15
  %85 = load i64, ptr %15, align 8, !tbaa !9
  %86 = getelementptr inbounds i64, ptr %84, i64 %85
  %87 = load i64, ptr %86, align 8, !tbaa !9
  %88 = load i64, ptr %18, align 8, !tbaa !9
  %89 = icmp slt i64 %87, %88
  br label %90

90:                                               ; preds = %81, %72
  %91 = phi i1 [ false, %72 ], [ %89, %81 ]
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %91, ptr noundef @.str.473, ptr noundef %92)
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !15
  %96 = load i64, ptr %15, align 8, !tbaa !9
  %97 = getelementptr inbounds i64, ptr %95, i64 %96
  %98 = load i64, ptr %97, align 8, !tbaa !9
  %99 = load i64, ptr %15, align 8, !tbaa !9
  %100 = icmp sge i64 %98, %99
  br i1 %100, label %101, label %110

101:                                              ; preds = %90
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !15
  %105 = load i64, ptr %15, align 8, !tbaa !9
  %106 = getelementptr inbounds i64, ptr %104, i64 %105
  %107 = load i64, ptr %106, align 8, !tbaa !9
  %108 = load i64, ptr %18, align 8, !tbaa !9
  %109 = icmp slt i64 %107, %108
  br label %110

110:                                              ; preds = %101, %90
  %111 = phi i1 [ false, %90 ], [ %109, %101 ]
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %111, ptr noundef @.str.474, ptr noundef %112)
  br label %113

113:                                              ; preds = %110
  %114 = load i64, ptr %15, align 8, !tbaa !9
  %115 = add nsw i64 %114, 1
  store i64 %115, ptr %15, align 8, !tbaa !9
  br label %67, !llvm.loop !16

116:                                              ; preds = %67
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl22initsparsesolverreportEPNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef %117, ptr noundef %118)
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = load i64, ptr %18, align 8, !tbaa !9
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %119, i64 noundef %120, ptr noundef %121)
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %122

122:                                              ; preds = %177, %116
  %123 = load i64, ptr %15, align 8, !tbaa !9
  %124 = load i64, ptr %18, align 8, !tbaa !9
  %125 = sub nsw i64 %124, 1
  %126 = icmp sle i64 %123, %125
  br i1 %126, label %127, label %180

127:                                              ; preds = %122
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %128, i32 0, i32 3
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %129, i32 0, i32 4
  %131 = load ptr, ptr %130, align 8, !tbaa !15
  %132 = load i64, ptr %15, align 8, !tbaa !9
  %133 = getelementptr inbounds i64, ptr %131, i64 %132
  %134 = load i64, ptr %133, align 8, !tbaa !9
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %135, i32 0, i32 4
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %136, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !15
  %139 = load i64, ptr %15, align 8, !tbaa !9
  %140 = getelementptr inbounds i64, ptr %138, i64 %139
  %141 = load i64, ptr %140, align 8, !tbaa !9
  %142 = icmp eq i64 %134, %141
  br i1 %142, label %158, label %143

143:                                              ; preds = %127
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %144, i32 0, i32 0
  %146 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %145, i32 0, i32 4
  %147 = load ptr, ptr %146, align 8, !tbaa !15
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %148, i32 0, i32 3
  %150 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %149, i32 0, i32 4
  %151 = load ptr, ptr %150, align 8, !tbaa !15
  %152 = load i64, ptr %15, align 8, !tbaa !9
  %153 = getelementptr inbounds i64, ptr %151, i64 %152
  %154 = load i64, ptr %153, align 8, !tbaa !9
  %155 = getelementptr inbounds double, ptr %147, i64 %154
  %156 = load double, ptr %155, align 8, !tbaa !18
  %157 = fcmp oeq double %156, 0.000000e+00
  br i1 %157, label %158, label %176

158:                                              ; preds = %143, %127
  %159 = load ptr, ptr %13, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.alglib_impl::sparsesolverreport", ptr %159, i32 0, i32 0
  store i64 -3, ptr %160, align 8, !tbaa !20
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %161

161:                                              ; preds = %172, %158
  %162 = load i64, ptr %15, align 8, !tbaa !9
  %163 = load i64, ptr %18, align 8, !tbaa !9
  %164 = sub nsw i64 %163, 1
  %165 = icmp sle i64 %162, %164
  br i1 %165, label %166, label %175

166:                                              ; preds = %161
  %167 = load ptr, ptr %12, align 8, !tbaa !5
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %167, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !15
  %170 = load i64, ptr %15, align 8, !tbaa !9
  %171 = getelementptr inbounds double, ptr %169, i64 %170
  store double 0.000000e+00, ptr %171, align 8, !tbaa !18
  br label %172

172:                                              ; preds = %166
  %173 = load i64, ptr %15, align 8, !tbaa !9
  %174 = add nsw i64 %173, 1
  store i64 %174, ptr %15, align 8, !tbaa !9
  br label %161, !llvm.loop !22

175:                                              ; preds = %161
  store i32 1, ptr %19, align 4
  br label %288

176:                                              ; preds = %143
  br label %177

177:                                              ; preds = %176
  %178 = load i64, ptr %15, align 8, !tbaa !9
  %179 = add nsw i64 %178, 1
  store i64 %179, ptr %15, align 8, !tbaa !9
  br label %122, !llvm.loop !23

180:                                              ; preds = %122
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %181

181:                                              ; preds = %198, %180
  %182 = load i64, ptr %15, align 8, !tbaa !9
  %183 = load i64, ptr %18, align 8, !tbaa !9
  %184 = sub nsw i64 %183, 1
  %185 = icmp sle i64 %182, %184
  br i1 %185, label %186, label %201

186:                                              ; preds = %181
  %187 = load ptr, ptr %11, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %187, i32 0, i32 4
  %189 = load ptr, ptr %188, align 8, !tbaa !15
  %190 = load i64, ptr %15, align 8, !tbaa !9
  %191 = getelementptr inbounds double, ptr %189, i64 %190
  %192 = load double, ptr %191, align 8, !tbaa !18
  %193 = load ptr, ptr %12, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %193, i32 0, i32 4
  %195 = load ptr, ptr %194, align 8, !tbaa !15
  %196 = load i64, ptr %15, align 8, !tbaa !9
  %197 = getelementptr inbounds double, ptr %195, i64 %196
  store double %192, ptr %197, align 8, !tbaa !18
  br label %198

198:                                              ; preds = %186
  %199 = load i64, ptr %15, align 8, !tbaa !9
  %200 = add nsw i64 %199, 1
  store i64 %200, ptr %15, align 8, !tbaa !9
  br label %181, !llvm.loop !24

201:                                              ; preds = %181
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %202

202:                                              ; preds = %237, %201
  %203 = load i64, ptr %15, align 8, !tbaa !9
  %204 = load i64, ptr %18, align 8, !tbaa !9
  %205 = sub nsw i64 %204, 1
  %206 = icmp sle i64 %203, %205
  br i1 %206, label %207, label %240

207:                                              ; preds = %202
  %208 = load ptr, ptr %9, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %208, i32 0, i32 4
  %210 = load ptr, ptr %209, align 8, !tbaa !15
  %211 = load i64, ptr %15, align 8, !tbaa !9
  %212 = getelementptr inbounds i64, ptr %210, i64 %211
  %213 = load i64, ptr %212, align 8, !tbaa !9
  store i64 %213, ptr %16, align 8, !tbaa !9
  %214 = load ptr, ptr %12, 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 !15
  %217 = load i64, ptr %15, align 8, !tbaa !9
  %218 = getelementptr inbounds double, ptr %216, i64 %217
  %219 = load double, ptr %218, align 8, !tbaa !18
  store double %219, ptr %17, align 8, !tbaa !18
  %220 = load ptr, ptr %12, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %220, i32 0, i32 4
  %222 = load ptr, ptr %221, align 8, !tbaa !15
  %223 = load i64, ptr %16, align 8, !tbaa !9
  %224 = getelementptr inbounds double, ptr %222, i64 %223
  %225 = load double, ptr %224, align 8, !tbaa !18
  %226 = load ptr, ptr %12, align 8, !tbaa !5
  %227 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %226, i32 0, i32 4
  %228 = load ptr, ptr %227, align 8, !tbaa !15
  %229 = load i64, ptr %15, align 8, !tbaa !9
  %230 = getelementptr inbounds double, ptr %228, i64 %229
  store double %225, ptr %230, align 8, !tbaa !18
  %231 = load double, ptr %17, align 8, !tbaa !18
  %232 = load ptr, ptr %12, align 8, !tbaa !5
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %232, i32 0, i32 4
  %234 = load ptr, ptr %233, align 8, !tbaa !15
  %235 = load i64, ptr %16, align 8, !tbaa !9
  %236 = getelementptr inbounds double, ptr %234, i64 %235
  store double %231, ptr %236, align 8, !tbaa !18
  br label %237

237:                                              ; preds = %207
  %238 = load i64, ptr %15, align 8, !tbaa !9
  %239 = add nsw i64 %238, 1
  store i64 %239, ptr %15, align 8, !tbaa !9
  br label %202, !llvm.loop !25

240:                                              ; preds = %202
  %241 = load ptr, ptr %8, align 8, !tbaa !5
  %242 = load ptr, ptr %12, align 8, !tbaa !5
  %243 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %241, i1 noundef zeroext false, i1 noundef zeroext true, i64 noundef 0, ptr noundef %242, ptr noundef %243)
  %244 = load ptr, ptr %8, align 8, !tbaa !5
  %245 = load ptr, ptr %12, align 8, !tbaa !5
  %246 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %244, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %245, ptr noundef %246)
  %247 = load i64, ptr %18, align 8, !tbaa !9
  %248 = sub nsw i64 %247, 1
  store i64 %248, ptr %15, align 8, !tbaa !9
  br label %249

249:                                              ; preds = %282, %240
  %250 = load i64, ptr %15, align 8, !tbaa !9
  %251 = icmp sge i64 %250, 0
  br i1 %251, label %252, label %285

252:                                              ; preds = %249
  %253 = load ptr, ptr %10, align 8, !tbaa !5
  %254 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %253, i32 0, i32 4
  %255 = load ptr, ptr %254, align 8, !tbaa !15
  %256 = load i64, ptr %15, align 8, !tbaa !9
  %257 = getelementptr inbounds i64, ptr %255, i64 %256
  %258 = load i64, ptr %257, align 8, !tbaa !9
  store i64 %258, ptr %16, align 8, !tbaa !9
  %259 = load ptr, ptr %12, align 8, !tbaa !5
  %260 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %259, i32 0, i32 4
  %261 = load ptr, ptr %260, align 8, !tbaa !15
  %262 = load i64, ptr %15, align 8, !tbaa !9
  %263 = getelementptr inbounds double, ptr %261, i64 %262
  %264 = load double, ptr %263, align 8, !tbaa !18
  store double %264, ptr %17, align 8, !tbaa !18
  %265 = load ptr, ptr %12, align 8, !tbaa !5
  %266 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %265, i32 0, i32 4
  %267 = load ptr, ptr %266, align 8, !tbaa !15
  %268 = load i64, ptr %16, align 8, !tbaa !9
  %269 = getelementptr inbounds double, ptr %267, i64 %268
  %270 = load double, ptr %269, align 8, !tbaa !18
  %271 = load ptr, ptr %12, align 8, !tbaa !5
  %272 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %271, i32 0, i32 4
  %273 = load ptr, ptr %272, align 8, !tbaa !15
  %274 = load i64, ptr %15, align 8, !tbaa !9
  %275 = getelementptr inbounds double, ptr %273, i64 %274
  store double %270, ptr %275, align 8, !tbaa !18
  %276 = load double, ptr %17, align 8, !tbaa !18
  %277 = load ptr, ptr %12, align 8, !tbaa !5
  %278 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %277, i32 0, i32 4
  %279 = load ptr, ptr %278, align 8, !tbaa !15
  %280 = load i64, ptr %16, align 8, !tbaa !9
  %281 = getelementptr inbounds double, ptr %279, i64 %280
  store double %276, ptr %281, align 8, !tbaa !18
  br label %282

282:                                              ; preds = %252
  %283 = load i64, ptr %15, align 8, !tbaa !9
  %284 = add nsw i64 %283, -1
  store i64 %284, ptr %15, align 8, !tbaa !9
  br label %249, !llvm.loop !26

285:                                              ; preds = %249
  %286 = load ptr, ptr %13, align 8, !tbaa !5
  %287 = getelementptr inbounds %"struct.alglib_impl::sparsesolverreport", ptr %286, i32 0, i32 0
  store i64 1, ptr %287, align 8, !tbaa !20
  store i32 0, ptr %19, align 4
  br label %288

288:                                              ; preds = %285, %175
  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
  %289 = load i32, ptr %19, align 4
  switch i32 %289, label %291 [
    i32 0, label %290
    i32 1, label %290
  ]

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

291:                                              ; preds = %288
  unreachable
}

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

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

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

declare noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl22initsparsesolverreportEPNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i64 noundef, 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 = { mustprogress nounwind 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 #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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = !{!21, !10, i64 0}
!21 = !{!"_ZTSN11alglib_impl18sparsesolverreportE", !10, i64 0, !10, i64 8, !10, i64 16, !19, i64 24}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}


; 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.465 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.466 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.467 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.468 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.469 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.470 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.471 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.472 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.473 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.474 = external hidden unnamed_addr constant [30 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_impl13sparselusolveEPKNS_12sparsematrixEPKNS_9ae_vectorES5_S5_PS3_PNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %4)
  tail call void @_ZN11alglib_impl25_sparsesolverreport_clearEPv(ptr noundef %5)
  %8 = tail call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %6)
  %9 = icmp sgt i64 %8, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.465, ptr noundef %6)
  %10 = tail call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %6)
  %11 = icmp eq i64 %10, %8
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.466, ptr noundef %6)
  %12 = tail call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %6)
  %13 = icmp eq i64 %12, %8
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.467, ptr noundef %6)
  %14 = tail call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %0, ptr noundef %6)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.468, ptr noundef %6)
  %15 = load i64, ptr %3, align 8, !tbaa !5
  %16 = icmp sge i64 %15, %8
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.469, ptr noundef %6)
  %17 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %8, ptr noundef %6)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.470, ptr noundef %6)
  %18 = load i64, ptr %1, align 8, !tbaa !5
  %19 = icmp sge i64 %18, %8
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.471, ptr noundef %6)
  %20 = load i64, ptr %2, align 8, !tbaa !5
  %21 = icmp sge i64 %20, %8
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.472, ptr noundef %6)
  br i1 %9, label %.lr.ph, label %._crit_edge131.critedge

.lr.ph:                                           ; preds = %7
  %22 = getelementptr inbounds i8, ptr %1, i64 56
  %23 = getelementptr inbounds i8, ptr %2, i64 56
  br label %24

24:                                               ; preds = %.lr.ph, %24
  %.0120 = phi i64 [ 0, %.lr.ph ], [ %34, %24 ]
  %25 = load ptr, ptr %22, align 8, !tbaa !13
  %26 = getelementptr inbounds i64, ptr %25, i64 %.0120
  %27 = load i64, ptr %26, align 8, !tbaa !14
  %.not = icmp sge i64 %27, %.0120
  %28 = icmp slt i64 %27, %8
  %spec.select = and i1 %.not, %28
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.473, ptr noundef %6)
  %29 = load ptr, ptr %23, align 8, !tbaa !13
  %30 = getelementptr inbounds i64, ptr %29, i64 %.0120
  %31 = load i64, ptr %30, align 8, !tbaa !14
  %.not117 = icmp sge i64 %31, %.0120
  %32 = icmp slt i64 %31, %8
  %33 = and i1 %.not117, %32
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %33, ptr noundef nonnull @.str.474, ptr noundef %6)
  %34 = add nuw nsw i64 %.0120, 1
  %exitcond.not = icmp eq i64 %34, %8
  br i1 %exitcond.not, label %._crit_edge, label %24, !llvm.loop !15

._crit_edge:                                      ; preds = %24
  tail call void @_ZN11alglib_impl22initsparsesolverreportEPNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %6)
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %4, i64 noundef %8, ptr noundef %6)
  br i1 %9, label %.lr.ph124, label %._crit_edge135.critedge

.lr.ph124:                                        ; preds = %._crit_edge
  %35 = getelementptr inbounds i8, ptr %0, i64 248
  %36 = load ptr, ptr %35, align 8, !tbaa !13
  %37 = getelementptr inbounds i8, ptr %0, i64 312
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  %39 = getelementptr inbounds i8, ptr %0, i64 56
  br label %45

40:                                               ; preds = %51
  %41 = add nuw nsw i64 %.1122, 1
  %exitcond140.not = icmp eq i64 %41, %8
  br i1 %exitcond140.not, label %.preheader118, label %45, !llvm.loop !17

.preheader118:                                    ; preds = %40
  br i1 %9, label %.lr.ph127, label %._crit_edge135.critedge

.lr.ph127:                                        ; preds = %.preheader118
  %42 = getelementptr inbounds i8, ptr %3, i64 56
  %43 = getelementptr inbounds i8, ptr %4, i64 56
  %xtraiter = and i64 %8, 3
  %44 = icmp ult i64 %8, 4
  br i1 %44, label %.preheader.unr-lcssa, label %.lr.ph127.new

.lr.ph127.new:                                    ; preds = %.lr.ph127
  %unroll_iter = and i64 %8, 9223372036854775804
  br label %80

45:                                               ; preds = %.lr.ph124, %40
  %.1122 = phi i64 [ 0, %.lr.ph124 ], [ %41, %40 ]
  %46 = getelementptr inbounds i64, ptr %36, i64 %.1122
  %47 = load i64, ptr %46, align 8, !tbaa !14
  %48 = getelementptr inbounds i64, ptr %38, i64 %.1122
  %49 = load i64, ptr %48, align 8, !tbaa !14
  %50 = icmp eq i64 %47, %49
  br i1 %50, label %.lr.ph139, label %51

51:                                               ; preds = %45
  %52 = load ptr, ptr %39, align 8, !tbaa !13
  %53 = getelementptr inbounds double, ptr %52, i64 %47
  %54 = load double, ptr %53, align 8, !tbaa !18
  %55 = fcmp oeq double %54, 0.000000e+00
  br i1 %55, label %.lr.ph139, label %40

.lr.ph139:                                        ; preds = %45, %51
  store i64 -3, ptr %5, align 8, !tbaa !20
  %56 = getelementptr inbounds i8, ptr %4, i64 56
  %smax = tail call i64 @llvm.smax.i64(i64 %8, i64 1)
  %xtraiter154 = and i64 %smax, 3
  %57 = icmp slt i64 %8, 4
  br i1 %57, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph139.new

.lr.ph139.new:                                    ; preds = %.lr.ph139
  %unroll_iter157 = and i64 %smax, 9223372036854775804
  br label %58

58:                                               ; preds = %58, %.lr.ph139.new
  %.2137 = phi i64 [ 0, %.lr.ph139.new ], [ %70, %58 ]
  %niter158 = phi i64 [ 0, %.lr.ph139.new ], [ %niter158.next.3, %58 ]
  %59 = load ptr, ptr %56, align 8, !tbaa !13
  %60 = getelementptr inbounds double, ptr %59, i64 %.2137
  store double 0.000000e+00, ptr %60, align 8, !tbaa !18
  %61 = or disjoint i64 %.2137, 1
  %62 = load ptr, ptr %56, align 8, !tbaa !13
  %63 = getelementptr inbounds double, ptr %62, i64 %61
  store double 0.000000e+00, ptr %63, align 8, !tbaa !18
  %64 = or disjoint i64 %.2137, 2
  %65 = load ptr, ptr %56, align 8, !tbaa !13
  %66 = getelementptr inbounds double, ptr %65, i64 %64
  store double 0.000000e+00, ptr %66, align 8, !tbaa !18
  %67 = or disjoint i64 %.2137, 3
  %68 = load ptr, ptr %56, align 8, !tbaa !13
  %69 = getelementptr inbounds double, ptr %68, i64 %67
  store double 0.000000e+00, ptr %69, align 8, !tbaa !18
  %70 = add nuw nsw i64 %.2137, 4
  %niter158.next.3 = add i64 %niter158, 4
  %niter158.ncmp.3 = icmp eq i64 %niter158.next.3, %unroll_iter157
  br i1 %niter158.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %58, !llvm.loop !22

.preheader.unr-lcssa:                             ; preds = %80, %.lr.ph127
  %.3126.unr = phi i64 [ 0, %.lr.ph127 ], [ %104, %80 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader.unr-lcssa, %.epil.preheader
  %.3126.epil = phi i64 [ %76, %.epil.preheader ], [ %.3126.unr, %.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader.unr-lcssa ]
  %71 = load ptr, ptr %42, align 8, !tbaa !13
  %72 = getelementptr inbounds double, ptr %71, i64 %.3126.epil
  %73 = load double, ptr %72, align 8, !tbaa !18
  %74 = load ptr, ptr %43, align 8, !tbaa !13
  %75 = getelementptr inbounds double, ptr %74, i64 %.3126.epil
  store double %73, ptr %75, align 8, !tbaa !18
  %76 = add nuw nsw i64 %.3126.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 %.preheader, label %.epil.preheader, !llvm.loop !23

.preheader:                                       ; preds = %.epil.preheader, %.preheader.unr-lcssa
  br i1 %9, label %.lr.ph130, label %._crit_edge135.critedge

.lr.ph130:                                        ; preds = %.preheader
  %77 = getelementptr inbounds i8, ptr %1, i64 56
  %78 = getelementptr inbounds i8, ptr %4, i64 56
  %xtraiter146 = and i64 %8, 1
  %79 = icmp eq i64 %8, 1
  br i1 %79, label %._crit_edge131.loopexit.unr-lcssa, label %.lr.ph130.new

.lr.ph130.new:                                    ; preds = %.lr.ph130
  %unroll_iter149 = and i64 %8, 9223372036854775806
  br label %105

80:                                               ; preds = %80, %.lr.ph127.new
  %.3126 = phi i64 [ 0, %.lr.ph127.new ], [ %104, %80 ]
  %niter = phi i64 [ 0, %.lr.ph127.new ], [ %niter.next.3, %80 ]
  %81 = load ptr, ptr %42, align 8, !tbaa !13
  %82 = getelementptr inbounds double, ptr %81, i64 %.3126
  %83 = load double, ptr %82, align 8, !tbaa !18
  %84 = load ptr, ptr %43, align 8, !tbaa !13
  %85 = getelementptr inbounds double, ptr %84, i64 %.3126
  store double %83, ptr %85, align 8, !tbaa !18
  %86 = or disjoint i64 %.3126, 1
  %87 = load ptr, ptr %42, align 8, !tbaa !13
  %88 = getelementptr inbounds double, ptr %87, i64 %86
  %89 = load double, ptr %88, align 8, !tbaa !18
  %90 = load ptr, ptr %43, align 8, !tbaa !13
  %91 = getelementptr inbounds double, ptr %90, i64 %86
  store double %89, ptr %91, align 8, !tbaa !18
  %92 = or disjoint i64 %.3126, 2
  %93 = load ptr, ptr %42, align 8, !tbaa !13
  %94 = getelementptr inbounds double, ptr %93, i64 %92
  %95 = load double, ptr %94, align 8, !tbaa !18
  %96 = load ptr, ptr %43, align 8, !tbaa !13
  %97 = getelementptr inbounds double, ptr %96, i64 %92
  store double %95, ptr %97, align 8, !tbaa !18
  %98 = or disjoint i64 %.3126, 3
  %99 = load ptr, ptr %42, align 8, !tbaa !13
  %100 = getelementptr inbounds double, ptr %99, i64 %98
  %101 = load double, ptr %100, align 8, !tbaa !18
  %102 = load ptr, ptr %43, align 8, !tbaa !13
  %103 = getelementptr inbounds double, ptr %102, i64 %98
  store double %101, ptr %103, align 8, !tbaa !18
  %104 = add nuw nsw i64 %.3126, 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 %.preheader.unr-lcssa, label %80, !llvm.loop !25

105:                                              ; preds = %105, %.lr.ph130.new
  %.4129 = phi i64 [ 0, %.lr.ph130.new ], [ %127, %105 ]
  %niter150 = phi i64 [ 0, %.lr.ph130.new ], [ %niter150.next.1, %105 ]
  %106 = load ptr, ptr %77, align 8, !tbaa !13
  %107 = getelementptr inbounds i64, ptr %106, i64 %.4129
  %108 = load i64, ptr %107, align 8, !tbaa !14
  %109 = load ptr, ptr %78, align 8, !tbaa !13
  %110 = getelementptr inbounds double, ptr %109, i64 %.4129
  %111 = load double, ptr %110, align 8, !tbaa !18
  %112 = getelementptr inbounds double, ptr %109, i64 %108
  %113 = load double, ptr %112, align 8, !tbaa !18
  store double %113, ptr %110, align 8, !tbaa !18
  %114 = load ptr, ptr %78, align 8, !tbaa !13
  %115 = getelementptr inbounds double, ptr %114, i64 %108
  store double %111, ptr %115, align 8, !tbaa !18
  %116 = or disjoint i64 %.4129, 1
  %117 = load ptr, ptr %77, align 8, !tbaa !13
  %118 = getelementptr inbounds i64, ptr %117, i64 %116
  %119 = load i64, ptr %118, align 8, !tbaa !14
  %120 = load ptr, ptr %78, align 8, !tbaa !13
  %121 = getelementptr inbounds double, ptr %120, i64 %116
  %122 = load double, ptr %121, align 8, !tbaa !18
  %123 = getelementptr inbounds double, ptr %120, i64 %119
  %124 = load double, ptr %123, align 8, !tbaa !18
  store double %124, ptr %121, align 8, !tbaa !18
  %125 = load ptr, ptr %78, align 8, !tbaa !13
  %126 = getelementptr inbounds double, ptr %125, i64 %119
  store double %122, ptr %126, align 8, !tbaa !18
  %127 = add nuw nsw i64 %.4129, 2
  %niter150.next.1 = add i64 %niter150, 2
  %niter150.ncmp.1 = icmp eq i64 %niter150.next.1, %unroll_iter149
  br i1 %niter150.ncmp.1, label %._crit_edge131.loopexit.unr-lcssa, label %105, !llvm.loop !26

._crit_edge131.critedge:                          ; preds = %7
  tail call void @_ZN11alglib_impl22initsparsesolverreportEPNS_18sparsesolverreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %6)
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %4, i64 noundef %8, ptr noundef %6)
  br label %._crit_edge131

._crit_edge131.loopexit.unr-lcssa:                ; preds = %105, %.lr.ph130
  %.4129.unr = phi i64 [ 0, %.lr.ph130 ], [ %127, %105 ]
  %lcmp.mod148.not = icmp eq i64 %xtraiter146, 0
  br i1 %lcmp.mod148.not, label %._crit_edge131, label %._crit_edge131.loopexit.epilog-lcssa

._crit_edge131.loopexit.epilog-lcssa:             ; preds = %._crit_edge131.loopexit.unr-lcssa
  %128 = load ptr, ptr %77, align 8, !tbaa !13
  %129 = getelementptr inbounds i64, ptr %128, i64 %.4129.unr
  %130 = load i64, ptr %129, align 8, !tbaa !14
  %131 = load ptr, ptr %78, align 8, !tbaa !13
  %132 = getelementptr inbounds double, ptr %131, i64 %.4129.unr
  %133 = load double, ptr %132, align 8, !tbaa !18
  %134 = getelementptr inbounds double, ptr %131, i64 %130
  %135 = load double, ptr %134, align 8, !tbaa !18
  store double %135, ptr %132, align 8, !tbaa !18
  %136 = load ptr, ptr %78, align 8, !tbaa !13
  %137 = getelementptr inbounds double, ptr %136, i64 %130
  store double %133, ptr %137, align 8, !tbaa !18
  br label %._crit_edge131

._crit_edge131:                                   ; preds = %._crit_edge131.loopexit.epilog-lcssa, %._crit_edge131.loopexit.unr-lcssa, %._crit_edge131.critedge
  tail call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, i1 noundef zeroext false, i1 noundef zeroext true, i64 noundef 0, ptr noundef %4, ptr noundef %6)
  tail call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %4, ptr noundef %6)
  br i1 %9, label %.lr.ph134, label %._crit_edge135

.lr.ph134:                                        ; preds = %._crit_edge131
  %138 = getelementptr inbounds i8, ptr %2, i64 56
  %139 = getelementptr inbounds i8, ptr %4, i64 56
  %xtraiter151 = and i64 %8, 1
  %lcmp.mod152.not = icmp eq i64 %xtraiter151, 0
  br i1 %lcmp.mod152.not, label %.prol.loopexit, label %.prol.loopexit.unr-lcssa

.prol.loopexit.unr-lcssa:                         ; preds = %.lr.ph134
  %.5.prol = add nsw i64 %8, -1
  %140 = load ptr, ptr %138, align 8, !tbaa !13
  %141 = getelementptr inbounds i64, ptr %140, i64 %.5.prol
  %142 = load i64, ptr %141, align 8, !tbaa !14
  %143 = load ptr, ptr %139, align 8, !tbaa !13
  %144 = getelementptr inbounds double, ptr %143, i64 %.5.prol
  %145 = load double, ptr %144, align 8, !tbaa !18
  %146 = getelementptr inbounds double, ptr %143, i64 %142
  %147 = load double, ptr %146, align 8, !tbaa !18
  store double %147, ptr %144, align 8, !tbaa !18
  %148 = load ptr, ptr %139, align 8, !tbaa !13
  %149 = getelementptr inbounds double, ptr %148, i64 %142
  store double %145, ptr %149, align 8, !tbaa !18
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %.lr.ph134
  %.5.in132.unr = phi i64 [ %8, %.lr.ph134 ], [ %.5.prol, %.prol.loopexit.unr-lcssa ]
  %150 = icmp eq i64 %8, 1
  br i1 %150, label %._crit_edge135, label %.lr.ph134.new

.lr.ph134.new:                                    ; preds = %.prol.loopexit, %.lr.ph134.new
  %.5.in132 = phi i64 [ %.5.1, %.lr.ph134.new ], [ %.5.in132.unr, %.prol.loopexit ]
  %.5 = add nsw i64 %.5.in132, -1
  %151 = load ptr, ptr %138, align 8, !tbaa !13
  %152 = getelementptr inbounds i64, ptr %151, i64 %.5
  %153 = load i64, ptr %152, align 8, !tbaa !14
  %154 = load ptr, ptr %139, align 8, !tbaa !13
  %155 = getelementptr inbounds double, ptr %154, i64 %.5
  %156 = load double, ptr %155, align 8, !tbaa !18
  %157 = getelementptr inbounds double, ptr %154, i64 %153
  %158 = load double, ptr %157, align 8, !tbaa !18
  store double %158, ptr %155, align 8, !tbaa !18
  %159 = load ptr, ptr %139, align 8, !tbaa !13
  %160 = getelementptr inbounds double, ptr %159, i64 %153
  store double %156, ptr %160, align 8, !tbaa !18
  %.5.1 = add nsw i64 %.5.in132, -2
  %161 = load ptr, ptr %138, align 8, !tbaa !13
  %162 = getelementptr inbounds i64, ptr %161, i64 %.5.1
  %163 = load i64, ptr %162, align 8, !tbaa !14
  %164 = load ptr, ptr %139, align 8, !tbaa !13
  %165 = getelementptr inbounds double, ptr %164, i64 %.5.1
  %166 = load double, ptr %165, align 8, !tbaa !18
  %167 = getelementptr inbounds double, ptr %164, i64 %163
  %168 = load double, ptr %167, align 8, !tbaa !18
  store double %168, ptr %165, align 8, !tbaa !18
  %169 = load ptr, ptr %139, align 8, !tbaa !13
  %170 = getelementptr inbounds double, ptr %169, i64 %163
  store double %166, ptr %170, align 8, !tbaa !18
  %171 = icmp ugt i64 %.5, 1
  br i1 %171, label %.lr.ph134.new, label %._crit_edge135, !llvm.loop !27

._crit_edge135.critedge:                          ; preds = %.preheader, %.preheader118, %._crit_edge
  tail call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, i1 noundef zeroext false, i1 noundef zeroext true, i64 noundef 0, ptr noundef %4, ptr noundef %6)
  tail call void @_ZN11alglib_impl10sparsetrsvEPKNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %4, ptr noundef %6)
  br label %._crit_edge135

._crit_edge135:                                   ; preds = %.prol.loopexit, %.lr.ph134.new, %._crit_edge135.critedge, %._crit_edge131
  store i64 1, ptr %5, align 8, !tbaa !20
  br label %.loopexit

.loopexit.loopexit.unr-lcssa:                     ; preds = %58, %.lr.ph139
  %.2137.unr = phi i64 [ 0, %.lr.ph139 ], [ %70, %58 ]
  %lcmp.mod156.not = icmp eq i64 %xtraiter154, 0
  br i1 %lcmp.mod156.not, label %.loopexit, label %.epil.preheader153

.epil.preheader153:                               ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader153
  %.2137.epil = phi i64 [ %174, %.epil.preheader153 ], [ %.2137.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter155 = phi i64 [ %epil.iter155.next, %.epil.preheader153 ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %172 = load ptr, ptr %56, align 8, !tbaa !13
  %173 = getelementptr inbounds double, ptr %172, i64 %.2137.epil
  store double 0.000000e+00, ptr %173, align 8, !tbaa !18
  %174 = add nuw nsw i64 %.2137.epil, 1
  %epil.iter155.next = add i64 %epil.iter155, 1
  %epil.iter155.cmp.not = icmp eq i64 %epil.iter155.next, %xtraiter154
  br i1 %epil.iter155.cmp.not, label %.loopexit, label %.epil.preheader153, !llvm.loop !28

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader153, %._crit_edge135
  ret void
}

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

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

declare noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #0

declare noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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

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 nounwind 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) }

!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 = !{!8, !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !8, i64 0}
!20 = !{!21, !7, i64 0}
!21 = !{!"_ZTSN11alglib_impl18sparsesolverreportE", !7, i64 0, !7, i64 8, !7, i64 16, !19, i64 24}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16}
!28 = distinct !{!28, !24}


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