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

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

@.str.330 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.331 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.332 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.333 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.334 = external hidden unnamed_addr constant [37 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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl31converttwosidednlctoonesidedoldEPKNS_9ae_vectorES2_lPS0_S3_S3_PlS4_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #2 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store i64 %2, ptr %12, align 8, !tbaa !9
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %23 = load ptr, ptr %16, align 8, !tbaa !5
  store i64 0, ptr %23, align 8, !tbaa !9
  %24 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 0, ptr %24, align 8, !tbaa !9
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %25

25:                                               ; preds = %136, %9
  %26 = load i64, ptr %19, align 8, !tbaa !9
  %27 = load i64, ptr %12, align 8, !tbaa !9
  %28 = sub nsw i64 %27, 1
  %29 = icmp sle i64 %26, %28
  br i1 %29, label %30, label %139

30:                                               ; preds = %25
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  %34 = load i64, ptr %19, align 8, !tbaa !9
  %35 = getelementptr inbounds double, ptr %33, i64 %34
  %36 = load double, ptr %35, align 8, !tbaa !12
  %37 = load ptr, ptr %18, align 8, !tbaa !5
  %38 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %36, ptr noundef %37)
  br i1 %38, label %48, label %39

39:                                               ; preds = %30
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %42 = load ptr, ptr %41, align 8, !tbaa !11
  %43 = load i64, ptr %19, align 8, !tbaa !9
  %44 = getelementptr inbounds double, ptr %42, i64 %43
  %45 = load double, ptr %44, align 8, !tbaa !12
  %46 = load ptr, ptr %18, align 8, !tbaa !5
  %47 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %45, ptr noundef %46)
  br label %48

48:                                               ; preds = %39, %30
  %49 = phi i1 [ true, %30 ], [ %47, %39 ]
  %50 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef @.str.330, ptr noundef %50)
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %51, i32 0, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !11
  %54 = load i64, ptr %19, align 8, !tbaa !9
  %55 = getelementptr inbounds double, ptr %53, i64 %54
  %56 = load double, ptr %55, align 8, !tbaa !12
  %57 = load ptr, ptr %18, align 8, !tbaa !5
  %58 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %56, ptr noundef %57)
  br i1 %58, label %68, label %59

59:                                               ; preds = %48
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %60, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = load i64, ptr %19, align 8, !tbaa !9
  %64 = getelementptr inbounds double, ptr %62, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !12
  %66 = load ptr, ptr %18, align 8, !tbaa !5
  %67 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %65, ptr noundef %66)
  br label %68

68:                                               ; preds = %59, %48
  %69 = phi i1 [ true, %48 ], [ %67, %59 ]
  %70 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %69, ptr noundef @.str.331, ptr noundef %70)
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %71, i32 0, i32 4
  %73 = load ptr, ptr %72, align 8, !tbaa !11
  %74 = load i64, ptr %19, align 8, !tbaa !9
  %75 = getelementptr inbounds double, ptr %73, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !12
  %77 = load ptr, ptr %18, align 8, !tbaa !5
  %78 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %76, ptr noundef %77)
  br i1 %78, label %79, label %107

79:                                               ; preds = %68
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %80, i32 0, i32 4
  %82 = load ptr, ptr %81, align 8, !tbaa !11
  %83 = load i64, ptr %19, align 8, !tbaa !9
  %84 = getelementptr inbounds double, ptr %82, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !12
  %86 = load ptr, ptr %18, align 8, !tbaa !5
  %87 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %85, ptr noundef %86)
  br i1 %87, label %88, label %107

88:                                               ; preds = %79
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %89, i32 0, i32 4
  %91 = load ptr, ptr %90, align 8, !tbaa !11
  %92 = load i64, ptr %19, align 8, !tbaa !9
  %93 = getelementptr inbounds double, ptr %91, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !12
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %95, i32 0, i32 4
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %98 = load i64, ptr %19, align 8, !tbaa !9
  %99 = getelementptr inbounds double, ptr %97, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !12
  %101 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %94, double noundef %100)
  br i1 %101, label %102, label %107

102:                                              ; preds = %88
  %103 = load ptr, ptr %16, align 8, !tbaa !5
  %104 = load i64, ptr %103, align 8, !tbaa !9
  %105 = add nsw i64 %104, 1
  %106 = load ptr, ptr %16, align 8, !tbaa !5
  store i64 %105, ptr %106, align 8, !tbaa !9
  br label %136

107:                                              ; preds = %88, %79, %68
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %108, i32 0, i32 4
  %110 = load ptr, ptr %109, align 8, !tbaa !11
  %111 = load i64, ptr %19, align 8, !tbaa !9
  %112 = getelementptr inbounds double, ptr %110, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !12
  %114 = load ptr, ptr %18, align 8, !tbaa !5
  %115 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %113, ptr noundef %114)
  br i1 %115, label %116, label %121

116:                                              ; preds = %107
  %117 = load ptr, ptr %17, align 8, !tbaa !5
  %118 = load i64, ptr %117, align 8, !tbaa !9
  %119 = add nsw i64 %118, 1
  %120 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 %119, ptr %120, align 8, !tbaa !9
  br label %121

121:                                              ; preds = %116, %107
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %122, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !11
  %125 = load i64, ptr %19, align 8, !tbaa !9
  %126 = getelementptr inbounds double, ptr %124, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !12
  %128 = load ptr, ptr %18, align 8, !tbaa !5
  %129 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %127, ptr noundef %128)
  br i1 %129, label %130, label %135

130:                                              ; preds = %121
  %131 = load ptr, ptr %17, align 8, !tbaa !5
  %132 = load i64, ptr %131, align 8, !tbaa !9
  %133 = add nsw i64 %132, 1
  %134 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 %133, ptr %134, align 8, !tbaa !9
  br label %135

135:                                              ; preds = %130, %121
  br label %136

136:                                              ; preds = %135, %102
  %137 = load i64, ptr %19, align 8, !tbaa !9
  %138 = add nsw i64 %137, 1
  store i64 %138, ptr %19, align 8, !tbaa !9
  br label %25, !llvm.loop !14

139:                                              ; preds = %25
  %140 = load ptr, ptr %16, align 8, !tbaa !5
  %141 = load i64, ptr %140, align 8, !tbaa !9
  %142 = load ptr, ptr %17, align 8, !tbaa !5
  %143 = load i64, ptr %142, align 8, !tbaa !9
  %144 = add nsw i64 %141, %143
  %145 = icmp eq i64 %144, 0
  br i1 %145, label %146, label %147

146:                                              ; preds = %139
  store i32 1, ptr %22, align 4
  br label %401

147:                                              ; preds = %139
  store i64 0, ptr %20, align 8, !tbaa !9
  %148 = load ptr, ptr %16, align 8, !tbaa !5
  %149 = load i64, ptr %148, align 8, !tbaa !9
  store i64 %149, ptr %21, align 8, !tbaa !9
  %150 = load ptr, ptr %16, align 8, !tbaa !5
  %151 = load i64, ptr %150, align 8, !tbaa !9
  %152 = load ptr, ptr %17, align 8, !tbaa !5
  %153 = load i64, ptr %152, align 8, !tbaa !9
  %154 = add nsw i64 %151, %153
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl7iallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %154, ptr noundef %155, ptr noundef %156)
  %157 = load ptr, ptr %16, align 8, !tbaa !5
  %158 = load i64, ptr %157, align 8, !tbaa !9
  %159 = load ptr, ptr %17, align 8, !tbaa !5
  %160 = load i64, ptr %159, align 8, !tbaa !9
  %161 = add nsw i64 %158, %160
  %162 = load ptr, ptr %14, align 8, !tbaa !5
  %163 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %161, ptr noundef %162, ptr noundef %163)
  %164 = load ptr, ptr %16, align 8, !tbaa !5
  %165 = load i64, ptr %164, align 8, !tbaa !9
  %166 = load ptr, ptr %17, align 8, !tbaa !5
  %167 = load i64, ptr %166, align 8, !tbaa !9
  %168 = add nsw i64 %165, %167
  %169 = load ptr, ptr %15, align 8, !tbaa !5
  %170 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %168, ptr noundef %169, ptr noundef %170)
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %171

171:                                              ; preds = %384, %147
  %172 = load i64, ptr %19, align 8, !tbaa !9
  %173 = load i64, ptr %12, align 8, !tbaa !9
  %174 = sub nsw i64 %173, 1
  %175 = icmp sle i64 %172, %174
  br i1 %175, label %176, label %387

176:                                              ; preds = %171
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %177, i32 0, i32 4
  %179 = load ptr, ptr %178, align 8, !tbaa !11
  %180 = load i64, ptr %19, align 8, !tbaa !9
  %181 = getelementptr inbounds double, ptr %179, i64 %180
  %182 = load double, ptr %181, align 8, !tbaa !12
  %183 = load ptr, ptr %18, align 8, !tbaa !5
  %184 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %182, ptr noundef %183)
  br i1 %184, label %195, label %185

185:                                              ; preds = %176
  %186 = load ptr, ptr %11, 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 !11
  %189 = load i64, ptr %19, align 8, !tbaa !9
  %190 = getelementptr inbounds double, ptr %188, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !12
  %192 = load ptr, ptr %18, align 8, !tbaa !5
  %193 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %191, ptr noundef %192)
  br i1 %193, label %195, label %194

194:                                              ; preds = %185
  br label %384

195:                                              ; preds = %185, %176
  %196 = load ptr, ptr %10, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %196, i32 0, i32 4
  %198 = load ptr, ptr %197, align 8, !tbaa !11
  %199 = load i64, ptr %19, align 8, !tbaa !9
  %200 = getelementptr inbounds double, ptr %198, i64 %199
  %201 = load double, ptr %200, align 8, !tbaa !12
  %202 = load ptr, ptr %18, align 8, !tbaa !5
  %203 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %201, ptr noundef %202)
  br i1 %203, label %204, label %307

204:                                              ; preds = %195
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %205, i32 0, i32 4
  %207 = load ptr, ptr %206, align 8, !tbaa !11
  %208 = load i64, ptr %19, align 8, !tbaa !9
  %209 = getelementptr inbounds double, ptr %207, i64 %208
  %210 = load double, ptr %209, align 8, !tbaa !12
  %211 = load ptr, ptr %18, align 8, !tbaa !5
  %212 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %210, ptr noundef %211)
  br i1 %212, label %213, label %307

213:                                              ; preds = %204
  %214 = load ptr, ptr %10, 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 !11
  %217 = load i64, ptr %19, align 8, !tbaa !9
  %218 = getelementptr inbounds double, ptr %216, i64 %217
  %219 = load double, ptr %218, align 8, !tbaa !12
  %220 = load ptr, ptr %11, 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 !11
  %223 = load i64, ptr %19, align 8, !tbaa !9
  %224 = getelementptr inbounds double, ptr %222, i64 %223
  %225 = load double, ptr %224, align 8, !tbaa !12
  %226 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %219, double noundef %225)
  br i1 %226, label %227, label %253

227:                                              ; preds = %213
  %228 = load i64, ptr %19, align 8, !tbaa !9
  %229 = load ptr, ptr %13, align 8, !tbaa !5
  %230 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %229, i32 0, i32 4
  %231 = load ptr, ptr %230, align 8, !tbaa !11
  %232 = load i64, ptr %20, align 8, !tbaa !9
  %233 = getelementptr inbounds i64, ptr %231, i64 %232
  store i64 %228, ptr %233, align 8, !tbaa !9
  %234 = load ptr, ptr %14, align 8, !tbaa !5
  %235 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %234, i32 0, i32 4
  %236 = load ptr, ptr %235, align 8, !tbaa !11
  %237 = load i64, ptr %20, align 8, !tbaa !9
  %238 = getelementptr inbounds double, ptr %236, i64 %237
  store double 1.000000e+00, ptr %238, align 8, !tbaa !12
  %239 = load ptr, ptr %10, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %239, i32 0, i32 4
  %241 = load ptr, ptr %240, align 8, !tbaa !11
  %242 = load i64, ptr %19, align 8, !tbaa !9
  %243 = getelementptr inbounds double, ptr %241, i64 %242
  %244 = load double, ptr %243, align 8, !tbaa !12
  %245 = fneg double %244
  %246 = load ptr, ptr %15, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %246, i32 0, i32 4
  %248 = load ptr, ptr %247, align 8, !tbaa !11
  %249 = load i64, ptr %20, align 8, !tbaa !9
  %250 = getelementptr inbounds double, ptr %248, i64 %249
  store double %245, ptr %250, align 8, !tbaa !12
  %251 = load i64, ptr %20, align 8, !tbaa !9
  %252 = add nsw i64 %251, 1
  store i64 %252, ptr %20, align 8, !tbaa !9
  br label %384

253:                                              ; preds = %213
  %254 = load i64, ptr %19, align 8, !tbaa !9
  %255 = load ptr, ptr %13, align 8, !tbaa !5
  %256 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %255, i32 0, i32 4
  %257 = load ptr, ptr %256, align 8, !tbaa !11
  %258 = load i64, ptr %21, align 8, !tbaa !9
  %259 = add nsw i64 %258, 0
  %260 = getelementptr inbounds i64, ptr %257, i64 %259
  store i64 %254, ptr %260, align 8, !tbaa !9
  %261 = load ptr, ptr %14, align 8, !tbaa !5
  %262 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %261, i32 0, i32 4
  %263 = load ptr, ptr %262, align 8, !tbaa !11
  %264 = load i64, ptr %21, align 8, !tbaa !9
  %265 = add nsw i64 %264, 0
  %266 = getelementptr inbounds double, ptr %263, i64 %265
  store double -1.000000e+00, ptr %266, align 8, !tbaa !12
  %267 = load ptr, ptr %10, align 8, !tbaa !5
  %268 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %267, i32 0, i32 4
  %269 = load ptr, ptr %268, align 8, !tbaa !11
  %270 = load i64, ptr %19, align 8, !tbaa !9
  %271 = getelementptr inbounds double, ptr %269, i64 %270
  %272 = load double, ptr %271, align 8, !tbaa !12
  %273 = load ptr, ptr %15, align 8, !tbaa !5
  %274 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %273, i32 0, i32 4
  %275 = load ptr, ptr %274, align 8, !tbaa !11
  %276 = load i64, ptr %21, align 8, !tbaa !9
  %277 = add nsw i64 %276, 0
  %278 = getelementptr inbounds double, ptr %275, i64 %277
  store double %272, ptr %278, align 8, !tbaa !12
  %279 = load i64, ptr %19, align 8, !tbaa !9
  %280 = load ptr, ptr %13, align 8, !tbaa !5
  %281 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %280, i32 0, i32 4
  %282 = load ptr, ptr %281, align 8, !tbaa !11
  %283 = load i64, ptr %21, align 8, !tbaa !9
  %284 = add nsw i64 %283, 1
  %285 = getelementptr inbounds i64, ptr %282, i64 %284
  store i64 %279, ptr %285, align 8, !tbaa !9
  %286 = load ptr, ptr %14, align 8, !tbaa !5
  %287 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %286, i32 0, i32 4
  %288 = load ptr, ptr %287, align 8, !tbaa !11
  %289 = load i64, ptr %21, align 8, !tbaa !9
  %290 = add nsw i64 %289, 1
  %291 = getelementptr inbounds double, ptr %288, i64 %290
  store double 1.000000e+00, ptr %291, align 8, !tbaa !12
  %292 = load ptr, ptr %11, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %292, i32 0, i32 4
  %294 = load ptr, ptr %293, align 8, !tbaa !11
  %295 = load i64, ptr %19, align 8, !tbaa !9
  %296 = getelementptr inbounds double, ptr %294, i64 %295
  %297 = load double, ptr %296, align 8, !tbaa !12
  %298 = fneg double %297
  %299 = load ptr, ptr %15, align 8, !tbaa !5
  %300 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %299, i32 0, i32 4
  %301 = load ptr, ptr %300, align 8, !tbaa !11
  %302 = load i64, ptr %21, align 8, !tbaa !9
  %303 = add nsw i64 %302, 1
  %304 = getelementptr inbounds double, ptr %301, i64 %303
  store double %298, ptr %304, align 8, !tbaa !12
  %305 = load i64, ptr %21, align 8, !tbaa !9
  %306 = add nsw i64 %305, 2
  store i64 %306, ptr %21, align 8, !tbaa !9
  br label %384

307:                                              ; preds = %204, %195
  %308 = load ptr, ptr %10, align 8, !tbaa !5
  %309 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %308, i32 0, i32 4
  %310 = load ptr, ptr %309, align 8, !tbaa !11
  %311 = load i64, ptr %19, align 8, !tbaa !9
  %312 = getelementptr inbounds double, ptr %310, i64 %311
  %313 = load double, ptr %312, align 8, !tbaa !12
  %314 = load ptr, ptr %18, align 8, !tbaa !5
  %315 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %313, ptr noundef %314)
  br i1 %315, label %316, label %344

316:                                              ; preds = %307
  %317 = load i64, ptr %19, align 8, !tbaa !9
  %318 = load ptr, ptr %13, align 8, !tbaa !5
  %319 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %318, i32 0, i32 4
  %320 = load ptr, ptr %319, align 8, !tbaa !11
  %321 = load i64, ptr %21, align 8, !tbaa !9
  %322 = add nsw i64 %321, 0
  %323 = getelementptr inbounds i64, ptr %320, i64 %322
  store i64 %317, ptr %323, align 8, !tbaa !9
  %324 = load ptr, ptr %14, align 8, !tbaa !5
  %325 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %324, i32 0, i32 4
  %326 = load ptr, ptr %325, align 8, !tbaa !11
  %327 = load i64, ptr %21, align 8, !tbaa !9
  %328 = add nsw i64 %327, 0
  %329 = getelementptr inbounds double, ptr %326, i64 %328
  store double -1.000000e+00, ptr %329, align 8, !tbaa !12
  %330 = load ptr, ptr %10, align 8, !tbaa !5
  %331 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %330, i32 0, i32 4
  %332 = load ptr, ptr %331, align 8, !tbaa !11
  %333 = load i64, ptr %19, align 8, !tbaa !9
  %334 = getelementptr inbounds double, ptr %332, i64 %333
  %335 = load double, ptr %334, align 8, !tbaa !12
  %336 = load ptr, ptr %15, align 8, !tbaa !5
  %337 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %336, i32 0, i32 4
  %338 = load ptr, ptr %337, align 8, !tbaa !11
  %339 = load i64, ptr %21, align 8, !tbaa !9
  %340 = add nsw i64 %339, 0
  %341 = getelementptr inbounds double, ptr %338, i64 %340
  store double %335, ptr %341, align 8, !tbaa !12
  %342 = load i64, ptr %21, align 8, !tbaa !9
  %343 = add nsw i64 %342, 1
  store i64 %343, ptr %21, align 8, !tbaa !9
  br label %384

344:                                              ; preds = %307
  %345 = load ptr, ptr %11, align 8, !tbaa !5
  %346 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %345, i32 0, i32 4
  %347 = load ptr, ptr %346, align 8, !tbaa !11
  %348 = load i64, ptr %19, align 8, !tbaa !9
  %349 = getelementptr inbounds double, ptr %347, i64 %348
  %350 = load double, ptr %349, align 8, !tbaa !12
  %351 = load ptr, ptr %18, align 8, !tbaa !5
  %352 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %350, ptr noundef %351)
  br i1 %352, label %353, label %382

353:                                              ; preds = %344
  %354 = load i64, ptr %19, align 8, !tbaa !9
  %355 = load ptr, ptr %13, align 8, !tbaa !5
  %356 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %355, i32 0, i32 4
  %357 = load ptr, ptr %356, align 8, !tbaa !11
  %358 = load i64, ptr %21, align 8, !tbaa !9
  %359 = add nsw i64 %358, 0
  %360 = getelementptr inbounds i64, ptr %357, i64 %359
  store i64 %354, ptr %360, align 8, !tbaa !9
  %361 = load ptr, ptr %14, align 8, !tbaa !5
  %362 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %361, i32 0, i32 4
  %363 = load ptr, ptr %362, align 8, !tbaa !11
  %364 = load i64, ptr %21, align 8, !tbaa !9
  %365 = add nsw i64 %364, 0
  %366 = getelementptr inbounds double, ptr %363, i64 %365
  store double 1.000000e+00, ptr %366, align 8, !tbaa !12
  %367 = load ptr, ptr %11, align 8, !tbaa !5
  %368 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %367, i32 0, i32 4
  %369 = load ptr, ptr %368, align 8, !tbaa !11
  %370 = load i64, ptr %19, align 8, !tbaa !9
  %371 = getelementptr inbounds double, ptr %369, i64 %370
  %372 = load double, ptr %371, align 8, !tbaa !12
  %373 = fneg double %372
  %374 = load ptr, ptr %15, align 8, !tbaa !5
  %375 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %374, i32 0, i32 4
  %376 = load ptr, ptr %375, align 8, !tbaa !11
  %377 = load i64, ptr %21, align 8, !tbaa !9
  %378 = add nsw i64 %377, 0
  %379 = getelementptr inbounds double, ptr %376, i64 %378
  store double %373, ptr %379, align 8, !tbaa !12
  %380 = load i64, ptr %21, align 8, !tbaa !9
  %381 = add nsw i64 %380, 1
  store i64 %381, ptr %21, align 8, !tbaa !9
  br label %384

382:                                              ; preds = %344
  %383 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.332, ptr noundef %383)
  br label %384

384:                                              ; preds = %382, %353, %316, %253, %227, %194
  %385 = load i64, ptr %19, align 8, !tbaa !9
  %386 = add nsw i64 %385, 1
  store i64 %386, ptr %19, align 8, !tbaa !9
  br label %171, !llvm.loop !16

387:                                              ; preds = %171
  %388 = load i64, ptr %20, align 8, !tbaa !9
  %389 = load ptr, ptr %16, align 8, !tbaa !5
  %390 = load i64, ptr %389, align 8, !tbaa !9
  %391 = icmp eq i64 %388, %390
  %392 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %391, ptr noundef @.str.333, ptr noundef %392)
  %393 = load i64, ptr %21, align 8, !tbaa !9
  %394 = load ptr, ptr %16, align 8, !tbaa !5
  %395 = load i64, ptr %394, align 8, !tbaa !9
  %396 = load ptr, ptr %17, align 8, !tbaa !5
  %397 = load i64, ptr %396, align 8, !tbaa !9
  %398 = add nsw i64 %395, %397
  %399 = icmp eq i64 %393, %398
  %400 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %399, ptr noundef @.str.334, ptr noundef %400)
  store i32 0, ptr %22, align 4
  br label %401

401:                                              ; preds = %387, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  %402 = load i32, ptr %22, align 4
  switch i32 %402, label %404 [
    i32 0, label %403
    i32 1, label %403
  ]

403:                                              ; preds = %401, %401
  ret void

404:                                              ; preds = %401
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; 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.330 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.331 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.332 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.333 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.334 = external hidden unnamed_addr constant [37 x i8], align 1

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl31converttwosidednlctoonesidedoldEPKNS_9ae_vectorES2_lPS0_S3_S3_PlS4_PNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr nocapture noundef %6, ptr nocapture noundef %7, ptr noundef %8) local_unnamed_addr #1 {
  store i64 0, ptr %6, align 8, !tbaa !5
  store i64 0, ptr %7, align 8, !tbaa !5
  %.not.not144 = icmp sgt i64 %2, 0
  br i1 %.not.not144, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %9
  %10 = getelementptr inbounds i8, ptr %0, i64 56
  %11 = getelementptr inbounds i8, ptr %1, i64 56
  br label %12

12:                                               ; preds = %.lr.ph, %67
  %.0139145 = phi i64 [ 0, %.lr.ph ], [ %68, %67 ]
  %13 = load ptr, ptr %10, align 8, !tbaa !9
  %14 = getelementptr inbounds double, ptr %13, i64 %.0139145
  %15 = load double, ptr %14, align 8, !tbaa !10
  %16 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %15, ptr noundef %8)
  br i1 %16, label %22, label %17

17:                                               ; preds = %12
  %18 = load ptr, ptr %10, align 8, !tbaa !9
  %19 = getelementptr inbounds double, ptr %18, i64 %.0139145
  %20 = load double, ptr %19, align 8, !tbaa !10
  %21 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %20, ptr noundef %8)
  br label %22

22:                                               ; preds = %17, %12
  %23 = phi i1 [ true, %12 ], [ %21, %17 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef nonnull @.str.330, ptr noundef %8)
  %24 = load ptr, ptr %11, align 8, !tbaa !9
  %25 = getelementptr inbounds double, ptr %24, i64 %.0139145
  %26 = load double, ptr %25, align 8, !tbaa !10
  %27 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %26, ptr noundef %8)
  br i1 %27, label %33, label %28

28:                                               ; preds = %22
  %29 = load ptr, ptr %11, align 8, !tbaa !9
  %30 = getelementptr inbounds double, ptr %29, i64 %.0139145
  %31 = load double, ptr %30, align 8, !tbaa !10
  %32 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %31, ptr noundef %8)
  br label %33

33:                                               ; preds = %28, %22
  %34 = phi i1 [ true, %22 ], [ %32, %28 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef nonnull @.str.331, ptr noundef %8)
  %35 = load ptr, ptr %10, align 8, !tbaa !9
  %36 = getelementptr inbounds double, ptr %35, i64 %.0139145
  %37 = load double, ptr %36, align 8, !tbaa !10
  %38 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %37, ptr noundef %8)
  br i1 %38, label %39, label %52

39:                                               ; preds = %33
  %40 = load ptr, ptr %11, align 8, !tbaa !9
  %41 = getelementptr inbounds double, ptr %40, i64 %.0139145
  %42 = load double, ptr %41, align 8, !tbaa !10
  %43 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %42, ptr noundef %8)
  br i1 %43, label %44, label %52

44:                                               ; preds = %39
  %45 = load ptr, ptr %10, align 8, !tbaa !9
  %46 = getelementptr inbounds double, ptr %45, i64 %.0139145
  %47 = load double, ptr %46, align 8, !tbaa !10
  %48 = load ptr, ptr %11, align 8, !tbaa !9
  %49 = getelementptr inbounds double, ptr %48, i64 %.0139145
  %50 = load double, ptr %49, align 8, !tbaa !10
  %51 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %47, double noundef %50)
  br i1 %51, label %.sink.split, label %52

52:                                               ; preds = %44, %39, %33
  %53 = load ptr, ptr %10, align 8, !tbaa !9
  %54 = getelementptr inbounds double, ptr %53, i64 %.0139145
  %55 = load double, ptr %54, align 8, !tbaa !10
  %56 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %55, ptr noundef %8)
  br i1 %56, label %57, label %60

57:                                               ; preds = %52
  %58 = load i64, ptr %7, align 8, !tbaa !5
  %59 = add nsw i64 %58, 1
  store i64 %59, ptr %7, align 8, !tbaa !5
  br label %60

60:                                               ; preds = %57, %52
  %61 = load ptr, ptr %11, align 8, !tbaa !9
  %62 = getelementptr inbounds double, ptr %61, i64 %.0139145
  %63 = load double, ptr %62, align 8, !tbaa !10
  %64 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %63, ptr noundef %8)
  br i1 %64, label %.sink.split, label %67

.sink.split:                                      ; preds = %60, %44
  %.sink = phi ptr [ %6, %44 ], [ %7, %60 ]
  %65 = load i64, ptr %.sink, align 8, !tbaa !5
  %66 = add nsw i64 %65, 1
  store i64 %66, ptr %.sink, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %.sink.split, %60
  %68 = add nuw nsw i64 %.0139145, 1
  %exitcond.not = icmp eq i64 %68, %2
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %12, !llvm.loop !12

._crit_edge.loopexit:                             ; preds = %67
  %.pre = load i64, ptr %7, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %9
  %69 = phi i64 [ %.pre, %._crit_edge.loopexit ], [ 0, %9 ]
  %70 = load i64, ptr %6, align 8, !tbaa !5
  %71 = add nsw i64 %69, %70
  %72 = icmp eq i64 %71, 0
  br i1 %72, label %188, label %73

73:                                               ; preds = %._crit_edge
  tail call void @_ZN11alglib_impl7iallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %71, ptr noundef %3, ptr noundef %8)
  %74 = load i64, ptr %6, align 8, !tbaa !5
  %75 = load i64, ptr %7, align 8, !tbaa !5
  %76 = add nsw i64 %75, %74
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %76, ptr noundef %4, ptr noundef %8)
  %77 = load i64, ptr %6, align 8, !tbaa !5
  %78 = load i64, ptr %7, align 8, !tbaa !5
  %79 = add nsw i64 %78, %77
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %79, ptr noundef %5, ptr noundef %8)
  br i1 %.not.not144, label %.lr.ph152, label %._crit_edge153

.lr.ph152:                                        ; preds = %73
  %80 = getelementptr inbounds i8, ptr %0, i64 56
  %81 = getelementptr inbounds i8, ptr %1, i64 56
  %82 = getelementptr inbounds i8, ptr %3, i64 56
  %83 = getelementptr inbounds i8, ptr %4, i64 56
  %84 = getelementptr inbounds i8, ptr %5, i64 56
  br label %85

85:                                               ; preds = %.lr.ph152, %180
  %.0150 = phi i64 [ %70, %.lr.ph152 ], [ %.1, %180 ]
  %.0137149 = phi i64 [ 0, %.lr.ph152 ], [ %.1138, %180 ]
  %.1140148 = phi i64 [ 0, %.lr.ph152 ], [ %181, %180 ]
  %86 = load ptr, ptr %80, align 8, !tbaa !9
  %87 = getelementptr inbounds double, ptr %86, i64 %.1140148
  %88 = load double, ptr %87, align 8, !tbaa !10
  %89 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %88, ptr noundef %8)
  br i1 %89, label %95, label %90

90:                                               ; preds = %85
  %91 = load ptr, ptr %81, align 8, !tbaa !9
  %92 = getelementptr inbounds double, ptr %91, i64 %.1140148
  %93 = load double, ptr %92, align 8, !tbaa !10
  %94 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %93, ptr noundef %8)
  br i1 %94, label %95, label %180

95:                                               ; preds = %90, %85
  %96 = load ptr, ptr %80, align 8, !tbaa !9
  %97 = getelementptr inbounds double, ptr %96, i64 %.1140148
  %98 = load double, ptr %97, align 8, !tbaa !10
  %99 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %98, ptr noundef %8)
  br i1 %99, label %100, label %146

100:                                              ; preds = %95
  %101 = load ptr, ptr %81, align 8, !tbaa !9
  %102 = getelementptr inbounds double, ptr %101, i64 %.1140148
  %103 = load double, ptr %102, align 8, !tbaa !10
  %104 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %103, ptr noundef %8)
  br i1 %104, label %105, label %146

105:                                              ; preds = %100
  %106 = load ptr, ptr %80, align 8, !tbaa !9
  %107 = getelementptr inbounds double, ptr %106, i64 %.1140148
  %108 = load double, ptr %107, align 8, !tbaa !10
  %109 = load ptr, ptr %81, align 8, !tbaa !9
  %110 = getelementptr inbounds double, ptr %109, i64 %.1140148
  %111 = load double, ptr %110, align 8, !tbaa !10
  %112 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %108, double noundef %111)
  %113 = load ptr, ptr %82, align 8, !tbaa !9
  br i1 %112, label %114, label %125

114:                                              ; preds = %105
  %115 = getelementptr inbounds i64, ptr %113, i64 %.0137149
  store i64 %.1140148, ptr %115, align 8, !tbaa !5
  %116 = load ptr, ptr %83, align 8, !tbaa !9
  %117 = getelementptr inbounds double, ptr %116, i64 %.0137149
  store double 1.000000e+00, ptr %117, align 8, !tbaa !10
  %118 = load ptr, ptr %80, align 8, !tbaa !9
  %119 = getelementptr inbounds double, ptr %118, i64 %.1140148
  %120 = load double, ptr %119, align 8, !tbaa !10
  %121 = fneg double %120
  %122 = load ptr, ptr %84, align 8, !tbaa !9
  %123 = getelementptr inbounds double, ptr %122, i64 %.0137149
  store double %121, ptr %123, align 8, !tbaa !10
  %124 = add nsw i64 %.0137149, 1
  br label %180

125:                                              ; preds = %105
  %126 = getelementptr inbounds i64, ptr %113, i64 %.0150
  store i64 %.1140148, ptr %126, align 8, !tbaa !5
  %127 = load ptr, ptr %83, align 8, !tbaa !9
  %128 = getelementptr inbounds double, ptr %127, i64 %.0150
  store double -1.000000e+00, ptr %128, align 8, !tbaa !10
  %129 = load ptr, ptr %80, align 8, !tbaa !9
  %130 = getelementptr inbounds double, ptr %129, i64 %.1140148
  %131 = load double, ptr %130, align 8, !tbaa !10
  %132 = load ptr, ptr %84, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %132, i64 %.0150
  store double %131, ptr %133, align 8, !tbaa !10
  %134 = load ptr, ptr %82, align 8, !tbaa !9
  %135 = add nsw i64 %.0150, 1
  %136 = getelementptr inbounds i64, ptr %134, i64 %135
  store i64 %.1140148, ptr %136, align 8, !tbaa !5
  %137 = load ptr, ptr %83, align 8, !tbaa !9
  %138 = getelementptr inbounds double, ptr %137, i64 %135
  store double 1.000000e+00, ptr %138, align 8, !tbaa !10
  %139 = load ptr, ptr %81, align 8, !tbaa !9
  %140 = getelementptr inbounds double, ptr %139, i64 %.1140148
  %141 = load double, ptr %140, align 8, !tbaa !10
  %142 = fneg double %141
  %143 = load ptr, ptr %84, align 8, !tbaa !9
  %144 = getelementptr inbounds double, ptr %143, i64 %135
  store double %142, ptr %144, align 8, !tbaa !10
  %145 = add nsw i64 %.0150, 2
  br label %180

146:                                              ; preds = %100, %95
  %147 = load ptr, ptr %80, align 8, !tbaa !9
  %148 = getelementptr inbounds double, ptr %147, i64 %.1140148
  %149 = load double, ptr %148, align 8, !tbaa !10
  %150 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %149, ptr noundef %8)
  br i1 %150, label %151, label %162

151:                                              ; preds = %146
  %152 = load ptr, ptr %82, align 8, !tbaa !9
  %153 = getelementptr inbounds i64, ptr %152, i64 %.0150
  store i64 %.1140148, ptr %153, align 8, !tbaa !5
  %154 = load ptr, ptr %83, align 8, !tbaa !9
  %155 = getelementptr inbounds double, ptr %154, i64 %.0150
  store double -1.000000e+00, ptr %155, align 8, !tbaa !10
  %156 = load ptr, ptr %80, align 8, !tbaa !9
  %157 = getelementptr inbounds double, ptr %156, i64 %.1140148
  %158 = load double, ptr %157, align 8, !tbaa !10
  %159 = load ptr, ptr %84, align 8, !tbaa !9
  %160 = getelementptr inbounds double, ptr %159, i64 %.0150
  store double %158, ptr %160, align 8, !tbaa !10
  %161 = add nsw i64 %.0150, 1
  br label %180

162:                                              ; preds = %146
  %163 = load ptr, ptr %81, align 8, !tbaa !9
  %164 = getelementptr inbounds double, ptr %163, i64 %.1140148
  %165 = load double, ptr %164, align 8, !tbaa !10
  %166 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %165, ptr noundef %8)
  br i1 %166, label %167, label %179

167:                                              ; preds = %162
  %168 = load ptr, ptr %82, align 8, !tbaa !9
  %169 = getelementptr inbounds i64, ptr %168, i64 %.0150
  store i64 %.1140148, ptr %169, align 8, !tbaa !5
  %170 = load ptr, ptr %83, align 8, !tbaa !9
  %171 = getelementptr inbounds double, ptr %170, i64 %.0150
  store double 1.000000e+00, ptr %171, align 8, !tbaa !10
  %172 = load ptr, ptr %81, align 8, !tbaa !9
  %173 = getelementptr inbounds double, ptr %172, i64 %.1140148
  %174 = load double, ptr %173, align 8, !tbaa !10
  %175 = fneg double %174
  %176 = load ptr, ptr %84, align 8, !tbaa !9
  %177 = getelementptr inbounds double, ptr %176, i64 %.0150
  store double %175, ptr %177, align 8, !tbaa !10
  %178 = add nsw i64 %.0150, 1
  br label %180

179:                                              ; preds = %162
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.332, ptr noundef %8)
  br label %180

180:                                              ; preds = %90, %179, %167, %151, %125, %114
  %.1138 = phi i64 [ %124, %114 ], [ %.0137149, %125 ], [ %.0137149, %151 ], [ %.0137149, %167 ], [ %.0137149, %179 ], [ %.0137149, %90 ]
  %.1 = phi i64 [ %.0150, %114 ], [ %145, %125 ], [ %161, %151 ], [ %178, %167 ], [ %.0150, %179 ], [ %.0150, %90 ]
  %181 = add nuw nsw i64 %.1140148, 1
  %exitcond155.not = icmp eq i64 %181, %2
  br i1 %exitcond155.not, label %._crit_edge153, label %85, !llvm.loop !14

._crit_edge153:                                   ; preds = %180, %73
  %.0137.lcssa = phi i64 [ 0, %73 ], [ %.1138, %180 ]
  %.0.lcssa = phi i64 [ %70, %73 ], [ %.1, %180 ]
  %182 = load i64, ptr %6, align 8, !tbaa !5
  %183 = icmp eq i64 %.0137.lcssa, %182
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %183, ptr noundef nonnull @.str.333, ptr noundef %8)
  %184 = load i64, ptr %6, align 8, !tbaa !5
  %185 = load i64, ptr %7, align 8, !tbaa !5
  %186 = add nsw i64 %185, %184
  %187 = icmp eq i64 %.0.lcssa, %186
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %187, ptr noundef nonnull @.str.334, ptr noundef %8)
  br label %188

188:                                              ; preds = %._crit_edge, %._crit_edge153
  ret void
}

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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