; 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_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%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.290 = external hidden unnamed_addr constant [64 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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl11sparsescaleEPNS_12sparsematrixElbbbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, i1 noundef zeroext %3, i1 noundef zeroext %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #3 {
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.alglib_impl::ae_frame", align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca double, align 8
  %28 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i64 %1, ptr %10, align 8, !tbaa !9
  %29 = zext i1 %2 to i8
  store i8 %29, ptr %11, align 1, !tbaa !11
  %30 = zext i1 %3 to i8
  store i8 %30, ptr %12, align 1, !tbaa !11
  %31 = zext i1 %4 to i8
  store i8 %31, ptr %13, align 1, !tbaa !11
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, 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 64, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %32 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %32, ptr noundef %17)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %33)
  %34 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %34)
  %35 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 3, ptr noundef %35, i1 noundef zeroext true)
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %36, i32 0, i32 5
  %38 = load i64, ptr %37, align 8, !tbaa !13
  %39 = icmp eq i64 %38, 1
  %40 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %39, ptr noundef @.str.290, ptr noundef %40)
  %41 = load i64, ptr %10, align 8, !tbaa !9
  %42 = icmp eq i64 %41, 0
  br i1 %42, label %46, label %43

43:                                               ; preds = %8
  %44 = load i64, ptr %10, align 8, !tbaa !9
  %45 = icmp eq i64 %44, 1
  br label %46

46:                                               ; preds = %43, %8
  %47 = phi i1 [ true, %8 ], [ %45, %43 ]
  %48 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %47, ptr noundef @.str.290, ptr noundef %48)
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %49, i32 0, i32 7
  %51 = load i64, ptr %50, align 8, !tbaa !17
  store i64 %51, ptr %18, align 8, !tbaa !9
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %52, i32 0, i32 6
  %54 = load i64, ptr %53, align 8, !tbaa !18
  store i64 %54, ptr %19, align 8, !tbaa !9
  %55 = load i64, ptr %10, align 8, !tbaa !9
  %56 = icmp eq i64 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %46
  store i64 1, ptr %10, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %57, %46
  %59 = load i64, ptr %19, align 8, !tbaa !9
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  %61 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %59, double noundef 1.000000e+00, ptr noundef %60, ptr noundef %61)
  %62 = load i64, ptr %18, align 8, !tbaa !9
  %63 = load ptr, ptr %15, align 8, !tbaa !5
  %64 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %62, double noundef 1.000000e+00, ptr noundef %63, ptr noundef %64)
  %65 = load i8, ptr %11, align 1, !tbaa !11, !range !19, !noundef !20
  %66 = trunc i8 %65 to i1
  br i1 %66, label %72, label %67

67:                                               ; preds = %58
  %68 = load i8, ptr %12, align 1, !tbaa !11, !range !19, !noundef !20
  %69 = trunc i8 %68 to i1
  br i1 %69, label %72, label %70

70:                                               ; preds = %67
  %71 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %71)
  store i32 1, ptr %28, align 4
  br label %361

72:                                               ; preds = %67, %58
  %73 = load i64, ptr %10, align 8, !tbaa !9
  %74 = icmp eq i64 %73, 1
  br i1 %74, label %75, label %359

75:                                               ; preds = %72
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %76

76:                                               ; preds = %354, %75
  %77 = load i64, ptr %20, align 8, !tbaa !9
  %78 = icmp sle i64 %77, 1
  br i1 %78, label %79, label %357

79:                                               ; preds = %76
  %80 = load i8, ptr %13, align 1, !tbaa !11, !range !19, !noundef !20
  %81 = trunc i8 %80 to i1
  br i1 %81, label %82, label %85

82:                                               ; preds = %79
  %83 = load i64, ptr %20, align 8, !tbaa !9
  %84 = icmp eq i64 %83, 0
  br i1 %84, label %91, label %85

85:                                               ; preds = %82, %79
  %86 = load i8, ptr %13, align 1, !tbaa !11, !range !19, !noundef !20
  %87 = trunc i8 %86 to i1
  br i1 %87, label %263, label %88

88:                                               ; preds = %85
  %89 = load i64, ptr %20, align 8, !tbaa !9
  %90 = icmp eq i64 %89, 1
  br i1 %90, label %91, label %263

91:                                               ; preds = %88, %82
  %92 = load i8, ptr %12, align 1, !tbaa !11, !range !19, !noundef !20
  %93 = trunc i8 %92 to i1
  br i1 %93, label %94, label %262

94:                                               ; preds = %91
  %95 = load i64, ptr %18, align 8, !tbaa !9
  %96 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %95, ptr noundef %21, ptr noundef %96)
  %97 = load i64, ptr %18, align 8, !tbaa !9
  %98 = load ptr, ptr %15, align 8, !tbaa !5
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rsetvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %97, double noundef 0.000000e+00, ptr noundef %98, ptr noundef %99)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %100

100:                                              ; preds = %162, %94
  %101 = load i64, ptr %22, align 8, !tbaa !9
  %102 = load i64, ptr %19, align 8, !tbaa !9
  %103 = sub nsw i64 %102, 1
  %104 = icmp sle i64 %101, %103
  br i1 %104, label %105, label %165

105:                                              ; preds = %100
  %106 = load ptr, ptr %9, 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 !21
  %110 = load i64, ptr %22, align 8, !tbaa !9
  %111 = getelementptr inbounds i64, ptr %109, i64 %110
  %112 = load i64, ptr %111, align 8, !tbaa !9
  store i64 %112, ptr %24, align 8, !tbaa !9
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %113, i32 0, i32 2
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %114, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !21
  %117 = load i64, ptr %22, align 8, !tbaa !9
  %118 = add nsw i64 %117, 1
  %119 = getelementptr inbounds i64, ptr %116, i64 %118
  %120 = load i64, ptr %119, align 8, !tbaa !9
  %121 = sub nsw i64 %120, 1
  store i64 %121, ptr %25, align 8, !tbaa !9
  %122 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %122, ptr %26, align 8, !tbaa !9
  br label %123

123:                                              ; preds = %158, %105
  %124 = load i64, ptr %26, align 8, !tbaa !9
  %125 = load i64, ptr %25, align 8, !tbaa !9
  %126 = icmp sle i64 %124, %125
  br i1 %126, label %127, label %161

127:                                              ; preds = %123
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %128, i32 0, i32 1
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %129, i32 0, i32 4
  %131 = load ptr, ptr %130, align 8, !tbaa !21
  %132 = load i64, ptr %26, align 8, !tbaa !9
  %133 = getelementptr inbounds i64, ptr %131, i64 %132
  %134 = load i64, ptr %133, align 8, !tbaa !9
  store i64 %134, ptr %23, align 8, !tbaa !9
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %135, i32 0, i32 0
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %136, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !21
  %139 = load i64, ptr %26, align 8, !tbaa !9
  %140 = getelementptr inbounds double, ptr %138, i64 %139
  %141 = load double, ptr %140, align 8, !tbaa !22
  store double %141, ptr %27, align 8, !tbaa !22
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %142, i32 0, i32 4
  %144 = load ptr, ptr %143, align 8, !tbaa !21
  %145 = load i64, ptr %23, align 8, !tbaa !9
  %146 = getelementptr inbounds double, ptr %144, i64 %145
  %147 = load double, ptr %146, align 8, !tbaa !22
  %148 = load double, ptr %27, align 8, !tbaa !22
  %149 = load ptr, ptr %16, align 8, !tbaa !5
  %150 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %148, ptr noundef %149)
  %151 = load ptr, ptr %16, align 8, !tbaa !5
  %152 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %147, double noundef %150, ptr noundef %151)
  %153 = load ptr, ptr %15, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %153, i32 0, i32 4
  %155 = load ptr, ptr %154, align 8, !tbaa !21
  %156 = load i64, ptr %23, align 8, !tbaa !9
  %157 = getelementptr inbounds double, ptr %155, i64 %156
  store double %152, ptr %157, align 8, !tbaa !22
  br label %158

158:                                              ; preds = %127
  %159 = load i64, ptr %26, align 8, !tbaa !9
  %160 = add nsw i64 %159, 1
  store i64 %160, ptr %26, align 8, !tbaa !9
  br label %123, !llvm.loop !24

161:                                              ; preds = %123
  br label %162

162:                                              ; preds = %161
  %163 = load i64, ptr %22, align 8, !tbaa !9
  %164 = add nsw i64 %163, 1
  store i64 %164, ptr %22, align 8, !tbaa !9
  br label %100, !llvm.loop !26

165:                                              ; preds = %100
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %166

166:                                              ; preds = %197, %165
  %167 = load i64, ptr %23, align 8, !tbaa !9
  %168 = load i64, ptr %18, align 8, !tbaa !9
  %169 = sub nsw i64 %168, 1
  %170 = icmp sle i64 %167, %169
  br i1 %170, label %171, label %200

171:                                              ; preds = %166
  %172 = load ptr, ptr %15, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %172, i32 0, i32 4
  %174 = load ptr, ptr %173, align 8, !tbaa !21
  %175 = load i64, ptr %23, align 8, !tbaa !9
  %176 = getelementptr inbounds double, ptr %174, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !22
  %178 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %177, double noundef 0.000000e+00)
  br i1 %178, label %179, label %185

179:                                              ; preds = %171
  %180 = load ptr, ptr %15, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %180, i32 0, i32 4
  %182 = load ptr, ptr %181, align 8, !tbaa !21
  %183 = load i64, ptr %23, align 8, !tbaa !9
  %184 = getelementptr inbounds double, ptr %182, i64 %183
  store double 1.000000e+00, ptr %184, align 8, !tbaa !22
  br label %185

185:                                              ; preds = %179, %171
  %186 = load ptr, ptr %15, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %186, i32 0, i32 4
  %188 = load ptr, ptr %187, align 8, !tbaa !21
  %189 = load i64, ptr %23, align 8, !tbaa !9
  %190 = getelementptr inbounds double, ptr %188, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !22
  %192 = fdiv double 1.000000e+00, %191
  %193 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %194 = load ptr, ptr %193, align 8, !tbaa !21
  %195 = load i64, ptr %23, align 8, !tbaa !9
  %196 = getelementptr inbounds double, ptr %194, i64 %195
  store double %192, ptr %196, align 8, !tbaa !22
  br label %197

197:                                              ; preds = %185
  %198 = load i64, ptr %23, align 8, !tbaa !9
  %199 = add nsw i64 %198, 1
  store i64 %199, ptr %23, align 8, !tbaa !9
  br label %166, !llvm.loop !27

200:                                              ; preds = %166
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %201

201:                                              ; preds = %258, %200
  %202 = load i64, ptr %22, align 8, !tbaa !9
  %203 = load i64, ptr %19, align 8, !tbaa !9
  %204 = sub nsw i64 %203, 1
  %205 = icmp sle i64 %202, %204
  br i1 %205, label %206, label %261

206:                                              ; preds = %201
  %207 = load ptr, ptr %9, align 8, !tbaa !5
  %208 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %207, i32 0, i32 2
  %209 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %208, i32 0, i32 4
  %210 = load ptr, ptr %209, align 8, !tbaa !21
  %211 = load i64, ptr %22, 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 %24, align 8, !tbaa !9
  %214 = load ptr, ptr %9, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %214, i32 0, i32 2
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %215, i32 0, i32 4
  %217 = load ptr, ptr %216, align 8, !tbaa !21
  %218 = load i64, ptr %22, align 8, !tbaa !9
  %219 = add nsw i64 %218, 1
  %220 = getelementptr inbounds i64, ptr %217, i64 %219
  %221 = load i64, ptr %220, align 8, !tbaa !9
  %222 = sub nsw i64 %221, 1
  store i64 %222, ptr %25, align 8, !tbaa !9
  %223 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %223, ptr %26, align 8, !tbaa !9
  br label %224

224:                                              ; preds = %254, %206
  %225 = load i64, ptr %26, align 8, !tbaa !9
  %226 = load i64, ptr %25, align 8, !tbaa !9
  %227 = icmp sle i64 %225, %226
  br i1 %227, label %228, label %257

228:                                              ; preds = %224
  %229 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %230 = load ptr, ptr %229, align 8, !tbaa !21
  %231 = load ptr, ptr %9, align 8, !tbaa !5
  %232 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %231, i32 0, i32 1
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %232, i32 0, i32 4
  %234 = load ptr, ptr %233, align 8, !tbaa !21
  %235 = load i64, ptr %26, align 8, !tbaa !9
  %236 = getelementptr inbounds i64, ptr %234, i64 %235
  %237 = load i64, ptr %236, align 8, !tbaa !9
  %238 = getelementptr inbounds double, ptr %230, i64 %237
  %239 = load double, ptr %238, align 8, !tbaa !22
  %240 = load ptr, ptr %9, align 8, !tbaa !5
  %241 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %240, i32 0, i32 0
  %242 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %241, i32 0, i32 4
  %243 = load ptr, ptr %242, align 8, !tbaa !21
  %244 = load i64, ptr %26, align 8, !tbaa !9
  %245 = getelementptr inbounds double, ptr %243, i64 %244
  %246 = load double, ptr %245, align 8, !tbaa !22
  %247 = fmul double %239, %246
  %248 = load ptr, ptr %9, align 8, !tbaa !5
  %249 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %248, i32 0, i32 0
  %250 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %249, i32 0, i32 4
  %251 = load ptr, ptr %250, align 8, !tbaa !21
  %252 = load i64, ptr %26, align 8, !tbaa !9
  %253 = getelementptr inbounds double, ptr %251, i64 %252
  store double %247, ptr %253, align 8, !tbaa !22
  br label %254

254:                                              ; preds = %228
  %255 = load i64, ptr %26, align 8, !tbaa !9
  %256 = add nsw i64 %255, 1
  store i64 %256, ptr %26, align 8, !tbaa !9
  br label %224, !llvm.loop !28

257:                                              ; preds = %224
  br label %258

258:                                              ; preds = %257
  %259 = load i64, ptr %22, align 8, !tbaa !9
  %260 = add nsw i64 %259, 1
  store i64 %260, ptr %22, align 8, !tbaa !9
  br label %201, !llvm.loop !29

261:                                              ; preds = %201
  br label %262

262:                                              ; preds = %261, %91
  br label %353

263:                                              ; preds = %88, %85
  %264 = load i8, ptr %11, align 1, !tbaa !11, !range !19, !noundef !20
  %265 = trunc i8 %264 to i1
  br i1 %265, label %266, label %352

266:                                              ; preds = %263
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %267

267:                                              ; preds = %348, %266
  %268 = load i64, ptr %22, align 8, !tbaa !9
  %269 = load i64, ptr %19, align 8, !tbaa !9
  %270 = sub nsw i64 %269, 1
  %271 = icmp sle i64 %268, %270
  br i1 %271, label %272, label %351

272:                                              ; preds = %267
  %273 = load ptr, ptr %9, align 8, !tbaa !5
  %274 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %273, i32 0, i32 2
  %275 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %274, i32 0, i32 4
  %276 = load ptr, ptr %275, align 8, !tbaa !21
  %277 = load i64, ptr %22, align 8, !tbaa !9
  %278 = getelementptr inbounds i64, ptr %276, i64 %277
  %279 = load i64, ptr %278, align 8, !tbaa !9
  store i64 %279, ptr %24, align 8, !tbaa !9
  %280 = load ptr, ptr %9, align 8, !tbaa !5
  %281 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %280, i32 0, i32 2
  %282 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %281, i32 0, i32 4
  %283 = load ptr, ptr %282, align 8, !tbaa !21
  %284 = load i64, ptr %22, align 8, !tbaa !9
  %285 = add nsw i64 %284, 1
  %286 = getelementptr inbounds i64, ptr %283, i64 %285
  %287 = load i64, ptr %286, align 8, !tbaa !9
  %288 = sub nsw i64 %287, 1
  store i64 %288, ptr %25, align 8, !tbaa !9
  store double 0.000000e+00, ptr %27, align 8, !tbaa !22
  %289 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %289, ptr %26, align 8, !tbaa !9
  br label %290

290:                                              ; preds = %307, %272
  %291 = load i64, ptr %26, align 8, !tbaa !9
  %292 = load i64, ptr %25, align 8, !tbaa !9
  %293 = icmp sle i64 %291, %292
  br i1 %293, label %294, label %310

294:                                              ; preds = %290
  %295 = load double, ptr %27, align 8, !tbaa !22
  %296 = load ptr, ptr %9, align 8, !tbaa !5
  %297 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %296, i32 0, i32 0
  %298 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %297, i32 0, i32 4
  %299 = load ptr, ptr %298, align 8, !tbaa !21
  %300 = load i64, ptr %26, align 8, !tbaa !9
  %301 = getelementptr inbounds double, ptr %299, i64 %300
  %302 = load double, ptr %301, align 8, !tbaa !22
  %303 = load ptr, ptr %16, align 8, !tbaa !5
  %304 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %302, ptr noundef %303)
  %305 = load ptr, ptr %16, align 8, !tbaa !5
  %306 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %295, double noundef %304, ptr noundef %305)
  store double %306, ptr %27, align 8, !tbaa !22
  br label %307

307:                                              ; preds = %294
  %308 = load i64, ptr %26, align 8, !tbaa !9
  %309 = add nsw i64 %308, 1
  store i64 %309, ptr %26, align 8, !tbaa !9
  br label %290, !llvm.loop !30

310:                                              ; preds = %290
  %311 = load double, ptr %27, align 8, !tbaa !22
  %312 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %311, double noundef 0.000000e+00)
  br i1 %312, label %313, label %314

313:                                              ; preds = %310
  store double 1.000000e+00, ptr %27, align 8, !tbaa !22
  br label %314

314:                                              ; preds = %313, %310
  %315 = load double, ptr %27, align 8, !tbaa !22
  %316 = load ptr, ptr %14, align 8, !tbaa !5
  %317 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %316, i32 0, i32 4
  %318 = load ptr, ptr %317, align 8, !tbaa !21
  %319 = load i64, ptr %22, align 8, !tbaa !9
  %320 = getelementptr inbounds double, ptr %318, i64 %319
  store double %315, ptr %320, align 8, !tbaa !22
  %321 = load double, ptr %27, align 8, !tbaa !22
  %322 = fdiv double 1.000000e+00, %321
  store double %322, ptr %27, align 8, !tbaa !22
  %323 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %323, ptr %26, align 8, !tbaa !9
  br label %324

324:                                              ; preds = %344, %314
  %325 = load i64, ptr %26, align 8, !tbaa !9
  %326 = load i64, ptr %25, align 8, !tbaa !9
  %327 = icmp sle i64 %325, %326
  br i1 %327, label %328, label %347

328:                                              ; preds = %324
  %329 = load double, ptr %27, align 8, !tbaa !22
  %330 = load ptr, ptr %9, align 8, !tbaa !5
  %331 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %330, i32 0, i32 0
  %332 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %331, i32 0, i32 4
  %333 = load ptr, ptr %332, align 8, !tbaa !21
  %334 = load i64, ptr %26, align 8, !tbaa !9
  %335 = getelementptr inbounds double, ptr %333, i64 %334
  %336 = load double, ptr %335, align 8, !tbaa !22
  %337 = fmul double %329, %336
  %338 = load ptr, ptr %9, align 8, !tbaa !5
  %339 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %338, i32 0, i32 0
  %340 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %339, i32 0, i32 4
  %341 = load ptr, ptr %340, align 8, !tbaa !21
  %342 = load i64, ptr %26, align 8, !tbaa !9
  %343 = getelementptr inbounds double, ptr %341, i64 %342
  store double %337, ptr %343, align 8, !tbaa !22
  br label %344

344:                                              ; preds = %328
  %345 = load i64, ptr %26, align 8, !tbaa !9
  %346 = add nsw i64 %345, 1
  store i64 %346, ptr %26, align 8, !tbaa !9
  br label %324, !llvm.loop !31

347:                                              ; preds = %324
  br label %348

348:                                              ; preds = %347
  %349 = load i64, ptr %22, align 8, !tbaa !9
  %350 = add nsw i64 %349, 1
  store i64 %350, ptr %22, align 8, !tbaa !9
  br label %267, !llvm.loop !32

351:                                              ; preds = %267
  br label %352

352:                                              ; preds = %351, %263
  br label %353

353:                                              ; preds = %352, %262
  br label %354

354:                                              ; preds = %353
  %355 = load i64, ptr %20, align 8, !tbaa !9
  %356 = add nsw i64 %355, 1
  store i64 %356, ptr %20, align 8, !tbaa !9
  br label %76, !llvm.loop !33

357:                                              ; preds = %76
  %358 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %358)
  store i32 1, ptr %28, align 4
  br label %361

359:                                              ; preds = %72
  %360 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %360)
  store i32 0, ptr %28, align 4
  br label %361

361:                                              ; preds = %359, %357, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  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 64, 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 32, ptr %17) #4
  %362 = load i32, ptr %28, align 4
  switch i32 %362, label %364 [
    i32 0, label %363
    i32 1, label %363
  ]

363:                                              ; preds = %361, %361
  ret void

364:                                              ; preds = %361
  unreachable
}

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #2

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) #2

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

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl5rsetvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "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 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, !12, i64 0}
!12 = !{!"bool", !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, !12, i64 16, !16, i64 24, !7, i64 56}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!14, !10, i64 336}
!18 = !{!14, !10, i64 328}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !25}
!29 = distinct !{!29, !25}
!30 = distinct !{!30, !25}
!31 = distinct !{!31, !25}
!32 = distinct !{!32, !25}
!33 = distinct !{!33, !25}


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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

@.str.290 = external hidden unnamed_addr constant [64 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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl11sparsescaleEPNS_12sparsematrixElbbbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr nocapture noundef readonly %0, i64 noundef %1, i1 noundef zeroext %2, i1 noundef zeroext %3, i1 noundef zeroext %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #3 {
  %9 = alloca %"struct.alglib_impl::ae_frame", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %7, ptr noundef nonnull %9)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %5)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %6)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  %11 = getelementptr inbounds i8, ptr %0, i64 320
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %13 = icmp eq i64 %12, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.290, ptr noundef %7)
  %14 = icmp ult i64 %1, 2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.290, ptr noundef %7)
  %15 = getelementptr inbounds i8, ptr %0, i64 336
  %16 = load i64, ptr %15, align 8, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %0, i64 328
  %18 = load i64, ptr %17, align 8, !tbaa !15
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %18, double noundef 1.000000e+00, ptr noundef %5, ptr noundef %7)
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %16, double noundef 1.000000e+00, ptr noundef %6, ptr noundef %7)
  %brmerge = or i1 %2, %3
  %brmerge185.demorgan = and i1 %brmerge, %14
  br i1 %brmerge185.demorgan, label %.preheader142, label %.loopexit138.1

.preheader142:                                    ; preds = %8
  %.not.not150 = icmp sgt i64 %18, 0
  %19 = getelementptr inbounds i8, ptr %0, i64 184
  %20 = getelementptr inbounds i8, ptr %0, i64 56
  %21 = getelementptr inbounds i8, ptr %5, i64 56
  %22 = getelementptr inbounds i8, ptr %0, i64 120
  %23 = getelementptr inbounds i8, ptr %6, i64 56
  %.not.not131161 = icmp sgt i64 %16, 0
  %24 = getelementptr inbounds i8, ptr %10, i64 56
  br i1 %4, label %25, label %103

25:                                               ; preds = %.preheader142
  br i1 %3, label %26, label %.loopexit138.thread

26:                                               ; preds = %25
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %16, ptr noundef nonnull %10, ptr noundef %7)
  call void @_ZN11alglib_impl5rsetvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %16, double noundef 0.000000e+00, ptr noundef %6, ptr noundef %7)
  br i1 %.not.not150, label %.lr.ph160, label %.preheader139

.loopexit136:                                     ; preds = %.lr.ph156, %.lr.ph160
  %exitcond177.not = icmp eq i64 %30, %18
  br i1 %exitcond177.not, label %.preheader139, label %.lr.ph160, !llvm.loop !16

.preheader139:                                    ; preds = %.loopexit136, %26
  br i1 %.not.not131161, label %.lr.ph163, label %.preheader

.lr.ph160:                                        ; preds = %26, %.loopexit136
  %.0121158 = phi i64 [ %30, %.loopexit136 ], [ 0, %26 ]
  %27 = load ptr, ptr %19, align 8, !tbaa !18
  %28 = getelementptr inbounds i64, ptr %27, i64 %.0121158
  %29 = load i64, ptr %28, align 8, !tbaa !19
  %30 = add nuw nsw i64 %.0121158, 1
  %31 = getelementptr inbounds i64, ptr %27, i64 %30
  %32 = load i64, ptr %31, align 8, !tbaa !19
  %.not.not134153 = icmp slt i64 %29, %32
  br i1 %.not.not134153, label %.lr.ph156, label %.loopexit136

.lr.ph156:                                        ; preds = %.lr.ph160, %.lr.ph156
  %.0118154 = phi i64 [ %46, %.lr.ph156 ], [ %29, %.lr.ph160 ]
  %33 = load ptr, ptr %22, align 8, !tbaa !18
  %34 = getelementptr inbounds i64, ptr %33, i64 %.0118154
  %35 = load i64, ptr %34, align 8, !tbaa !19
  %36 = load ptr, ptr %20, align 8, !tbaa !18
  %37 = getelementptr inbounds double, ptr %36, i64 %.0118154
  %38 = load double, ptr %37, align 8, !tbaa !20
  %39 = load ptr, ptr %23, align 8, !tbaa !18
  %40 = getelementptr inbounds double, ptr %39, i64 %35
  %41 = load double, ptr %40, align 8, !tbaa !20
  %42 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %38, ptr noundef %7)
  %43 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %41, double noundef %42, ptr noundef %7)
  %44 = load ptr, ptr %23, align 8, !tbaa !18
  %45 = getelementptr inbounds double, ptr %44, i64 %35
  store double %43, ptr %45, align 8, !tbaa !20
  %46 = add i64 %.0118154, 1
  %exitcond176.not = icmp eq i64 %46, %32
  br i1 %exitcond176.not, label %.loopexit136, label %.lr.ph156, !llvm.loop !22

.preheader:                                       ; preds = %54, %.preheader139
  br i1 %.not.not150, label %.lr.ph170, label %.loopexit138

.lr.ph163:                                        ; preds = %.preheader139, %54
  %.0120162 = phi i64 [ %61, %54 ], [ 0, %.preheader139 ]
  %47 = load ptr, ptr %23, align 8, !tbaa !18
  %48 = getelementptr inbounds double, ptr %47, i64 %.0120162
  %49 = load double, ptr %48, align 8, !tbaa !20
  %50 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %49, double noundef 0.000000e+00)
  br i1 %50, label %51, label %54

51:                                               ; preds = %.lr.ph163
  %52 = load ptr, ptr %23, align 8, !tbaa !18
  %53 = getelementptr inbounds double, ptr %52, i64 %.0120162
  store double 1.000000e+00, ptr %53, align 8, !tbaa !20
  br label %54

54:                                               ; preds = %51, %.lr.ph163
  %55 = load ptr, ptr %23, align 8, !tbaa !18
  %56 = getelementptr inbounds double, ptr %55, i64 %.0120162
  %57 = load double, ptr %56, align 8, !tbaa !20
  %58 = fdiv double 1.000000e+00, %57
  %59 = load ptr, ptr %24, align 8, !tbaa !18
  %60 = getelementptr inbounds double, ptr %59, i64 %.0120162
  store double %58, ptr %60, align 8, !tbaa !20
  %61 = add nuw nsw i64 %.0120162, 1
  %exitcond178.not = icmp eq i64 %61, %16
  br i1 %exitcond178.not, label %.preheader, label %.lr.ph163, !llvm.loop !23

.loopexit:                                        ; preds = %.lr.ph167.prol.loopexit, %.lr.ph167, %.lr.ph170
  %exitcond180.not = icmp eq i64 %65, %18
  br i1 %exitcond180.not, label %.loopexit138, label %.lr.ph170, !llvm.loop !24

.lr.ph170:                                        ; preds = %.preheader, %.loopexit
  %.1122169 = phi i64 [ %65, %.loopexit ], [ 0, %.preheader ]
  %62 = load ptr, ptr %19, align 8, !tbaa !18
  %63 = getelementptr inbounds i64, ptr %62, i64 %.1122169
  %64 = load i64, ptr %63, align 8, !tbaa !19
  %65 = add nuw nsw i64 %.1122169, 1
  %66 = getelementptr inbounds i64, ptr %62, i64 %65
  %67 = load i64, ptr %66, align 8, !tbaa !19
  %.not.not133164 = icmp slt i64 %64, %67
  br i1 %.not.not133164, label %.lr.ph167.preheader, label %.loopexit

.lr.ph167.preheader:                              ; preds = %.lr.ph170
  %68 = sub i64 %67, %64
  %.neg = add i64 %64, 1
  %xtraiter194 = and i64 %68, 1
  %lcmp.mod195.not = icmp eq i64 %xtraiter194, 0
  br i1 %lcmp.mod195.not, label %.lr.ph167.prol.loopexit, label %.lr.ph167.prol

.lr.ph167.prol:                                   ; preds = %.lr.ph167.preheader
  %69 = load ptr, ptr %24, align 8, !tbaa !18
  %70 = load ptr, ptr %22, align 8, !tbaa !18
  %71 = getelementptr inbounds i64, ptr %70, i64 %64
  %72 = load i64, ptr %71, align 8, !tbaa !19
  %73 = getelementptr inbounds double, ptr %69, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !20
  %75 = load ptr, ptr %20, align 8, !tbaa !18
  %76 = getelementptr inbounds double, ptr %75, i64 %64
  %77 = load double, ptr %76, align 8, !tbaa !20
  %78 = fmul double %74, %77
  store double %78, ptr %76, align 8, !tbaa !20
  %79 = add nsw i64 %64, 1
  br label %.lr.ph167.prol.loopexit

.lr.ph167.prol.loopexit:                          ; preds = %.lr.ph167.prol, %.lr.ph167.preheader
  %.1119165.unr = phi i64 [ %64, %.lr.ph167.preheader ], [ %79, %.lr.ph167.prol ]
  %80 = icmp eq i64 %67, %.neg
  br i1 %80, label %.loopexit, label %.lr.ph167

.lr.ph167:                                        ; preds = %.lr.ph167.prol.loopexit, %.lr.ph167
  %.1119165 = phi i64 [ %102, %.lr.ph167 ], [ %.1119165.unr, %.lr.ph167.prol.loopexit ]
  %81 = load ptr, ptr %24, align 8, !tbaa !18
  %82 = load ptr, ptr %22, align 8, !tbaa !18
  %83 = getelementptr inbounds i64, ptr %82, i64 %.1119165
  %84 = load i64, ptr %83, align 8, !tbaa !19
  %85 = getelementptr inbounds double, ptr %81, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !20
  %87 = load ptr, ptr %20, align 8, !tbaa !18
  %88 = getelementptr inbounds double, ptr %87, i64 %.1119165
  %89 = load double, ptr %88, align 8, !tbaa !20
  %90 = fmul double %86, %89
  store double %90, ptr %88, align 8, !tbaa !20
  %91 = add nsw i64 %.1119165, 1
  %92 = load ptr, ptr %24, align 8, !tbaa !18
  %93 = load ptr, ptr %22, align 8, !tbaa !18
  %94 = getelementptr inbounds i64, ptr %93, i64 %91
  %95 = load i64, ptr %94, align 8, !tbaa !19
  %96 = getelementptr inbounds double, ptr %92, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !20
  %98 = load ptr, ptr %20, align 8, !tbaa !18
  %99 = getelementptr inbounds double, ptr %98, i64 %91
  %100 = load double, ptr %99, align 8, !tbaa !20
  %101 = fmul double %97, %100
  store double %101, ptr %99, align 8, !tbaa !20
  %102 = add nsw i64 %.1119165, 2
  %exitcond179.not.1 = icmp eq i64 %102, %67
  br i1 %exitcond179.not.1, label %.loopexit, label %.lr.ph167, !llvm.loop !25

103:                                              ; preds = %.preheader142
  %brmerge172.not = and i1 %.not.not150, %2
  br i1 %brmerge172.not, label %.lr.ph152, label %.loopexit138.thread181

.loopexit137:                                     ; preds = %.lr.ph149.prol.loopexit, %.lr.ph149, %._crit_edge
  %exitcond175.not = icmp eq i64 %107, %18
  br i1 %exitcond175.not, label %.loopexit138, label %.lr.ph152, !llvm.loop !26

.lr.ph152:                                        ; preds = %103, %.loopexit137
  %.2123151 = phi i64 [ %107, %.loopexit137 ], [ 0, %103 ]
  %104 = load ptr, ptr %19, align 8, !tbaa !18
  %105 = getelementptr inbounds i64, ptr %104, i64 %.2123151
  %106 = load i64, ptr %105, align 8, !tbaa !19
  %107 = add nuw nsw i64 %.2123151, 1
  %108 = getelementptr inbounds i64, ptr %104, i64 %107
  %109 = load i64, ptr %108, align 8, !tbaa !19
  %.not.not128143 = icmp slt i64 %106, %109
  br i1 %.not.not128143, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph152, %.lr.ph
  %.0145 = phi double [ %114, %.lr.ph ], [ 0.000000e+00, %.lr.ph152 ]
  %.2144 = phi i64 [ %115, %.lr.ph ], [ %106, %.lr.ph152 ]
  %110 = load ptr, ptr %20, align 8, !tbaa !18
  %111 = getelementptr inbounds double, ptr %110, i64 %.2144
  %112 = load double, ptr %111, align 8, !tbaa !20
  %113 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %112, ptr noundef %7)
  %114 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0145, double noundef %113, ptr noundef %7)
  %115 = add i64 %.2144, 1
  %exitcond.not = icmp eq i64 %115, %109
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !27

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph152
  %.0.lcssa = phi double [ 0.000000e+00, %.lr.ph152 ], [ %114, %.lr.ph ]
  %116 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %.0.lcssa, double noundef 0.000000e+00)
  %.1 = select i1 %116, double 1.000000e+00, double %.0.lcssa
  %117 = load ptr, ptr %21, align 8, !tbaa !18
  %118 = getelementptr inbounds double, ptr %117, i64 %.2123151
  store double %.1, ptr %118, align 8, !tbaa !20
  %119 = fdiv double 1.000000e+00, %.1
  br i1 %.not.not128143, label %.lr.ph149.preheader, label %.loopexit137

.lr.ph149.preheader:                              ; preds = %._crit_edge
  %120 = sub i64 %109, %106
  %xtraiter = and i64 %120, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph149.prol.loopexit, label %.lr.ph149.prol

.lr.ph149.prol:                                   ; preds = %.lr.ph149.preheader, %.lr.ph149.prol
  %.3147.prol = phi i64 [ %125, %.lr.ph149.prol ], [ %106, %.lr.ph149.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph149.prol ], [ 0, %.lr.ph149.preheader ]
  %121 = load ptr, ptr %20, align 8, !tbaa !18
  %122 = getelementptr inbounds double, ptr %121, i64 %.3147.prol
  %123 = load double, ptr %122, align 8, !tbaa !20
  %124 = fmul double %119, %123
  store double %124, ptr %122, align 8, !tbaa !20
  %125 = add nsw i64 %.3147.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 %.lr.ph149.prol.loopexit, label %.lr.ph149.prol, !llvm.loop !28

.lr.ph149.prol.loopexit:                          ; preds = %.lr.ph149.prol, %.lr.ph149.preheader
  %.3147.unr = phi i64 [ %106, %.lr.ph149.preheader ], [ %125, %.lr.ph149.prol ]
  %126 = sub i64 %106, %109
  %127 = icmp ugt i64 %126, -4
  br i1 %127, label %.loopexit137, label %.lr.ph149

.lr.ph149:                                        ; preds = %.lr.ph149.prol.loopexit, %.lr.ph149
  %.3147 = phi i64 [ %147, %.lr.ph149 ], [ %.3147.unr, %.lr.ph149.prol.loopexit ]
  %128 = load ptr, ptr %20, align 8, !tbaa !18
  %129 = getelementptr inbounds double, ptr %128, i64 %.3147
  %130 = load double, ptr %129, align 8, !tbaa !20
  %131 = fmul double %119, %130
  store double %131, ptr %129, align 8, !tbaa !20
  %132 = load ptr, ptr %20, align 8, !tbaa !18
  %133 = getelementptr double, ptr %132, i64 %.3147
  %134 = getelementptr i8, ptr %133, i64 8
  %135 = load double, ptr %134, align 8, !tbaa !20
  %136 = fmul double %119, %135
  store double %136, ptr %134, align 8, !tbaa !20
  %137 = load ptr, ptr %20, align 8, !tbaa !18
  %138 = getelementptr double, ptr %137, i64 %.3147
  %139 = getelementptr i8, ptr %138, i64 16
  %140 = load double, ptr %139, align 8, !tbaa !20
  %141 = fmul double %119, %140
  store double %141, ptr %139, align 8, !tbaa !20
  %142 = load ptr, ptr %20, align 8, !tbaa !18
  %143 = getelementptr double, ptr %142, i64 %.3147
  %144 = getelementptr i8, ptr %143, i64 24
  %145 = load double, ptr %144, align 8, !tbaa !20
  %146 = fmul double %119, %145
  store double %146, ptr %144, align 8, !tbaa !20
  %147 = add nsw i64 %.3147, 4
  %exitcond174.not.3 = icmp eq i64 %147, %109
  br i1 %exitcond174.not.3, label %.loopexit137, label %.lr.ph149, !llvm.loop !30

.loopexit138:                                     ; preds = %.loopexit137, %.loopexit, %.preheader
  br i1 %4, label %.loopexit138.thread, label %.loopexit138.thread181

.loopexit138.thread:                              ; preds = %25, %.loopexit138
  %brmerge172.not.1 = and i1 %.not.not150, %2
  br i1 %brmerge172.not.1, label %.lr.ph152.1, label %.loopexit138.1

.lr.ph152.1:                                      ; preds = %.loopexit138.thread, %.loopexit137.1
  %.2123151.1 = phi i64 [ %151, %.loopexit137.1 ], [ 0, %.loopexit138.thread ]
  %148 = load ptr, ptr %19, align 8, !tbaa !18
  %149 = getelementptr inbounds i64, ptr %148, i64 %.2123151.1
  %150 = load i64, ptr %149, align 8, !tbaa !19
  %151 = add nuw nsw i64 %.2123151.1, 1
  %152 = getelementptr inbounds i64, ptr %148, i64 %151
  %153 = load i64, ptr %152, align 8, !tbaa !19
  %.not.not128143.1 = icmp slt i64 %150, %153
  br i1 %.not.not128143.1, label %.lr.ph.1, label %._crit_edge.1

.lr.ph.1:                                         ; preds = %.lr.ph152.1, %.lr.ph.1
  %.0145.1 = phi double [ %158, %.lr.ph.1 ], [ 0.000000e+00, %.lr.ph152.1 ]
  %.2144.1 = phi i64 [ %159, %.lr.ph.1 ], [ %150, %.lr.ph152.1 ]
  %154 = load ptr, ptr %20, align 8, !tbaa !18
  %155 = getelementptr inbounds double, ptr %154, i64 %.2144.1
  %156 = load double, ptr %155, align 8, !tbaa !20
  %157 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %156, ptr noundef %7)
  %158 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0145.1, double noundef %157, ptr noundef %7)
  %159 = add i64 %.2144.1, 1
  %exitcond.1.not = icmp eq i64 %159, %153
  br i1 %exitcond.1.not, label %._crit_edge.1, label %.lr.ph.1, !llvm.loop !27

._crit_edge.1:                                    ; preds = %.lr.ph.1, %.lr.ph152.1
  %.0.lcssa.1 = phi double [ 0.000000e+00, %.lr.ph152.1 ], [ %158, %.lr.ph.1 ]
  %160 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %.0.lcssa.1, double noundef 0.000000e+00)
  %.1.1 = select i1 %160, double 1.000000e+00, double %.0.lcssa.1
  %161 = load ptr, ptr %21, align 8, !tbaa !18
  %162 = getelementptr inbounds double, ptr %161, i64 %.2123151.1
  store double %.1.1, ptr %162, align 8, !tbaa !20
  %163 = fdiv double 1.000000e+00, %.1.1
  br i1 %.not.not128143.1, label %.lr.ph149.1.preheader, label %.loopexit137.1

.lr.ph149.1.preheader:                            ; preds = %._crit_edge.1
  %164 = sub i64 %153, %150
  %xtraiter202 = and i64 %164, 3
  %lcmp.mod203.not = icmp eq i64 %xtraiter202, 0
  br i1 %lcmp.mod203.not, label %.lr.ph149.1.prol.loopexit, label %.lr.ph149.1.prol

.lr.ph149.1.prol:                                 ; preds = %.lr.ph149.1.preheader, %.lr.ph149.1.prol
  %.3147.1.prol = phi i64 [ %169, %.lr.ph149.1.prol ], [ %150, %.lr.ph149.1.preheader ]
  %prol.iter204 = phi i64 [ %prol.iter204.next, %.lr.ph149.1.prol ], [ 0, %.lr.ph149.1.preheader ]
  %165 = load ptr, ptr %20, align 8, !tbaa !18
  %166 = getelementptr inbounds double, ptr %165, i64 %.3147.1.prol
  %167 = load double, ptr %166, align 8, !tbaa !20
  %168 = fmul double %163, %167
  store double %168, ptr %166, align 8, !tbaa !20
  %169 = add nsw i64 %.3147.1.prol, 1
  %prol.iter204.next = add i64 %prol.iter204, 1
  %prol.iter204.cmp.not = icmp eq i64 %prol.iter204.next, %xtraiter202
  br i1 %prol.iter204.cmp.not, label %.lr.ph149.1.prol.loopexit, label %.lr.ph149.1.prol, !llvm.loop !31

.lr.ph149.1.prol.loopexit:                        ; preds = %.lr.ph149.1.prol, %.lr.ph149.1.preheader
  %.3147.1.unr = phi i64 [ %150, %.lr.ph149.1.preheader ], [ %169, %.lr.ph149.1.prol ]
  %170 = sub i64 %150, %153
  %171 = icmp ugt i64 %170, -4
  br i1 %171, label %.loopexit137.1, label %.lr.ph149.1

.lr.ph149.1:                                      ; preds = %.lr.ph149.1.prol.loopexit, %.lr.ph149.1
  %.3147.1 = phi i64 [ %191, %.lr.ph149.1 ], [ %.3147.1.unr, %.lr.ph149.1.prol.loopexit ]
  %172 = load ptr, ptr %20, align 8, !tbaa !18
  %173 = getelementptr inbounds double, ptr %172, i64 %.3147.1
  %174 = load double, ptr %173, align 8, !tbaa !20
  %175 = fmul double %163, %174
  store double %175, ptr %173, align 8, !tbaa !20
  %176 = load ptr, ptr %20, align 8, !tbaa !18
  %177 = getelementptr double, ptr %176, i64 %.3147.1
  %178 = getelementptr i8, ptr %177, i64 8
  %179 = load double, ptr %178, align 8, !tbaa !20
  %180 = fmul double %163, %179
  store double %180, ptr %178, align 8, !tbaa !20
  %181 = load ptr, ptr %20, align 8, !tbaa !18
  %182 = getelementptr double, ptr %181, i64 %.3147.1
  %183 = getelementptr i8, ptr %182, i64 16
  %184 = load double, ptr %183, align 8, !tbaa !20
  %185 = fmul double %163, %184
  store double %185, ptr %183, align 8, !tbaa !20
  %186 = load ptr, ptr %20, align 8, !tbaa !18
  %187 = getelementptr double, ptr %186, i64 %.3147.1
  %188 = getelementptr i8, ptr %187, i64 24
  %189 = load double, ptr %188, align 8, !tbaa !20
  %190 = fmul double %163, %189
  store double %190, ptr %188, align 8, !tbaa !20
  %191 = add nsw i64 %.3147.1, 4
  %exitcond174.1.not.3 = icmp eq i64 %191, %153
  br i1 %exitcond174.1.not.3, label %.loopexit137.1, label %.lr.ph149.1, !llvm.loop !30

.loopexit137.1:                                   ; preds = %.lr.ph149.1.prol.loopexit, %.lr.ph149.1, %._crit_edge.1
  %exitcond175.1.not = icmp eq i64 %151, %18
  br i1 %exitcond175.1.not, label %.loopexit138.1, label %.lr.ph152.1, !llvm.loop !26

.loopexit138.thread181:                           ; preds = %103, %.loopexit138
  br i1 %3, label %192, label %.loopexit138.1

192:                                              ; preds = %.loopexit138.thread181
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %16, ptr noundef nonnull %10, ptr noundef %7)
  call void @_ZN11alglib_impl5rsetvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %16, double noundef 0.000000e+00, ptr noundef %6, ptr noundef %7)
  br i1 %.not.not150, label %.lr.ph160.1, label %.preheader139.1

.lr.ph160.1:                                      ; preds = %192, %.loopexit136.1
  %.0121158.1 = phi i64 [ %196, %.loopexit136.1 ], [ 0, %192 ]
  %193 = load ptr, ptr %19, align 8, !tbaa !18
  %194 = getelementptr inbounds i64, ptr %193, i64 %.0121158.1
  %195 = load i64, ptr %194, align 8, !tbaa !19
  %196 = add nuw nsw i64 %.0121158.1, 1
  %197 = getelementptr inbounds i64, ptr %193, i64 %196
  %198 = load i64, ptr %197, align 8, !tbaa !19
  %.not.not134153.1 = icmp slt i64 %195, %198
  br i1 %.not.not134153.1, label %.lr.ph156.1, label %.loopexit136.1

.lr.ph156.1:                                      ; preds = %.lr.ph160.1, %.lr.ph156.1
  %.0118154.1 = phi i64 [ %212, %.lr.ph156.1 ], [ %195, %.lr.ph160.1 ]
  %199 = load ptr, ptr %22, align 8, !tbaa !18
  %200 = getelementptr inbounds i64, ptr %199, i64 %.0118154.1
  %201 = load i64, ptr %200, align 8, !tbaa !19
  %202 = load ptr, ptr %20, align 8, !tbaa !18
  %203 = getelementptr inbounds double, ptr %202, i64 %.0118154.1
  %204 = load double, ptr %203, align 8, !tbaa !20
  %205 = load ptr, ptr %23, align 8, !tbaa !18
  %206 = getelementptr inbounds double, ptr %205, i64 %201
  %207 = load double, ptr %206, align 8, !tbaa !20
  %208 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %204, ptr noundef %7)
  %209 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %207, double noundef %208, ptr noundef %7)
  %210 = load ptr, ptr %23, align 8, !tbaa !18
  %211 = getelementptr inbounds double, ptr %210, i64 %201
  store double %209, ptr %211, align 8, !tbaa !20
  %212 = add i64 %.0118154.1, 1
  %exitcond176.1.not = icmp eq i64 %212, %198
  br i1 %exitcond176.1.not, label %.loopexit136.1, label %.lr.ph156.1, !llvm.loop !22

.loopexit136.1:                                   ; preds = %.lr.ph156.1, %.lr.ph160.1
  %exitcond177.1.not = icmp eq i64 %196, %18
  br i1 %exitcond177.1.not, label %.preheader139.1, label %.lr.ph160.1, !llvm.loop !16

.preheader139.1:                                  ; preds = %.loopexit136.1, %192
  br i1 %.not.not131161, label %.lr.ph163.1, label %.preheader.1

.lr.ph163.1:                                      ; preds = %.preheader139.1, %220
  %.0120162.1 = phi i64 [ %227, %220 ], [ 0, %.preheader139.1 ]
  %213 = load ptr, ptr %23, align 8, !tbaa !18
  %214 = getelementptr inbounds double, ptr %213, i64 %.0120162.1
  %215 = load double, ptr %214, align 8, !tbaa !20
  %216 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %215, double noundef 0.000000e+00)
  br i1 %216, label %217, label %220

217:                                              ; preds = %.lr.ph163.1
  %218 = load ptr, ptr %23, align 8, !tbaa !18
  %219 = getelementptr inbounds double, ptr %218, i64 %.0120162.1
  store double 1.000000e+00, ptr %219, align 8, !tbaa !20
  br label %220

220:                                              ; preds = %217, %.lr.ph163.1
  %221 = load ptr, ptr %23, align 8, !tbaa !18
  %222 = getelementptr inbounds double, ptr %221, i64 %.0120162.1
  %223 = load double, ptr %222, align 8, !tbaa !20
  %224 = fdiv double 1.000000e+00, %223
  %225 = load ptr, ptr %24, align 8, !tbaa !18
  %226 = getelementptr inbounds double, ptr %225, i64 %.0120162.1
  store double %224, ptr %226, align 8, !tbaa !20
  %227 = add nuw nsw i64 %.0120162.1, 1
  %exitcond178.1.not = icmp eq i64 %227, %16
  br i1 %exitcond178.1.not, label %.preheader.1, label %.lr.ph163.1, !llvm.loop !23

.preheader.1:                                     ; preds = %220, %.preheader139.1
  br i1 %.not.not150, label %.lr.ph170.1, label %.loopexit138.1

.lr.ph170.1:                                      ; preds = %.preheader.1, %.loopexit.1
  %.1122169.1 = phi i64 [ %231, %.loopexit.1 ], [ 0, %.preheader.1 ]
  %228 = load ptr, ptr %19, align 8, !tbaa !18
  %229 = getelementptr inbounds i64, ptr %228, i64 %.1122169.1
  %230 = load i64, ptr %229, align 8, !tbaa !19
  %231 = add nuw nsw i64 %.1122169.1, 1
  %232 = getelementptr inbounds i64, ptr %228, i64 %231
  %233 = load i64, ptr %232, align 8, !tbaa !19
  %.not.not133164.1 = icmp slt i64 %230, %233
  br i1 %.not.not133164.1, label %.lr.ph167.1.preheader, label %.loopexit.1

.lr.ph167.1.preheader:                            ; preds = %.lr.ph170.1
  %234 = sub i64 %233, %230
  %.neg205 = add i64 %230, 1
  %xtraiter199 = and i64 %234, 1
  %lcmp.mod200.not = icmp eq i64 %xtraiter199, 0
  br i1 %lcmp.mod200.not, label %.lr.ph167.1.prol.loopexit, label %.lr.ph167.1.prol

.lr.ph167.1.prol:                                 ; preds = %.lr.ph167.1.preheader
  %235 = load ptr, ptr %24, align 8, !tbaa !18
  %236 = load ptr, ptr %22, align 8, !tbaa !18
  %237 = getelementptr inbounds i64, ptr %236, i64 %230
  %238 = load i64, ptr %237, align 8, !tbaa !19
  %239 = getelementptr inbounds double, ptr %235, i64 %238
  %240 = load double, ptr %239, align 8, !tbaa !20
  %241 = load ptr, ptr %20, align 8, !tbaa !18
  %242 = getelementptr inbounds double, ptr %241, i64 %230
  %243 = load double, ptr %242, align 8, !tbaa !20
  %244 = fmul double %240, %243
  store double %244, ptr %242, align 8, !tbaa !20
  %245 = add nsw i64 %230, 1
  br label %.lr.ph167.1.prol.loopexit

.lr.ph167.1.prol.loopexit:                        ; preds = %.lr.ph167.1.prol, %.lr.ph167.1.preheader
  %.1119165.1.unr = phi i64 [ %230, %.lr.ph167.1.preheader ], [ %245, %.lr.ph167.1.prol ]
  %246 = icmp eq i64 %233, %.neg205
  br i1 %246, label %.loopexit.1, label %.lr.ph167.1

.lr.ph167.1:                                      ; preds = %.lr.ph167.1.prol.loopexit, %.lr.ph167.1
  %.1119165.1 = phi i64 [ %268, %.lr.ph167.1 ], [ %.1119165.1.unr, %.lr.ph167.1.prol.loopexit ]
  %247 = load ptr, ptr %24, align 8, !tbaa !18
  %248 = load ptr, ptr %22, align 8, !tbaa !18
  %249 = getelementptr inbounds i64, ptr %248, i64 %.1119165.1
  %250 = load i64, ptr %249, align 8, !tbaa !19
  %251 = getelementptr inbounds double, ptr %247, i64 %250
  %252 = load double, ptr %251, align 8, !tbaa !20
  %253 = load ptr, ptr %20, align 8, !tbaa !18
  %254 = getelementptr inbounds double, ptr %253, i64 %.1119165.1
  %255 = load double, ptr %254, align 8, !tbaa !20
  %256 = fmul double %252, %255
  store double %256, ptr %254, align 8, !tbaa !20
  %257 = add nsw i64 %.1119165.1, 1
  %258 = load ptr, ptr %24, align 8, !tbaa !18
  %259 = load ptr, ptr %22, align 8, !tbaa !18
  %260 = getelementptr inbounds i64, ptr %259, i64 %257
  %261 = load i64, ptr %260, align 8, !tbaa !19
  %262 = getelementptr inbounds double, ptr %258, i64 %261
  %263 = load double, ptr %262, align 8, !tbaa !20
  %264 = load ptr, ptr %20, align 8, !tbaa !18
  %265 = getelementptr inbounds double, ptr %264, i64 %257
  %266 = load double, ptr %265, align 8, !tbaa !20
  %267 = fmul double %263, %266
  store double %267, ptr %265, align 8, !tbaa !20
  %268 = add nsw i64 %.1119165.1, 2
  %exitcond179.1.not.1 = icmp eq i64 %268, %233
  br i1 %exitcond179.1.not.1, label %.loopexit.1, label %.lr.ph167.1, !llvm.loop !25

.loopexit.1:                                      ; preds = %.lr.ph167.1.prol.loopexit, %.lr.ph167.1, %.lr.ph170.1
  %exitcond180.1.not = icmp eq i64 %231, %18
  br i1 %exitcond180.1.not, label %.loopexit138.1, label %.lr.ph170.1, !llvm.loop !24

.loopexit138.1:                                   ; preds = %.loopexit.1, %.loopexit137.1, %8, %.loopexit138.thread, %.loopexit138.thread181, %.preheader.1
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %7)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #4
  ret void
}

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl5rsetvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "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 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, !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 336}
!15 = !{!6, !8, i64 328}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!9, !9, i64 0}
!19 = !{!8, !8, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !9, i64 0}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.unroll.disable"}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !29}


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