; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (integration)

; 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.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

; 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: mustprogress uwtable
define dso_local void @_ZN11alglib_impl25gqgenerategausslobattorecEPNS_9ae_vectorES1_dddlPlS1_S1_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, double noundef %2, double noundef %3, double noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #1 {
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"struct.alglib_impl::ae_frame", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca i64, align 8
  %25 = alloca %"struct.alglib_impl::ae_vector", align 8
  %26 = alloca %"struct.alglib_impl::ae_vector", align 8
  %27 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca double, align 8
  %40 = alloca double, align 8
  %41 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store double %2, ptr %13, align 8, !tbaa !9
  store double %3, ptr %14, align 8, !tbaa !9
  store double %4, ptr %15, align 8, !tbaa !9
  store i64 %5, ptr %16, align 8, !tbaa !11
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  store ptr %9, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  %42 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %42, ptr noundef %21)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 80, i1 false)
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %22, ptr noundef %43, ptr noundef %44, i1 noundef zeroext true)
  store ptr %22, ptr %11, align 8, !tbaa !5
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %23, ptr noundef %45, ptr noundef %46, i1 noundef zeroext true)
  store ptr %23, ptr %12, align 8, !tbaa !5
  %47 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 0, ptr %47, align 8, !tbaa !11
  %48 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %48)
  %49 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %49)
  %50 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %25, i64 noundef 0, i64 noundef 3, ptr noundef %50, i1 noundef zeroext true)
  %51 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %26, i64 noundef 0, i64 noundef 3, ptr noundef %51, i1 noundef zeroext true)
  %52 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %27, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %52, i1 noundef zeroext true)
  %53 = load i64, ptr %16, align 8, !tbaa !11
  %54 = icmp sle i64 %53, 2
  br i1 %54, label %55, label %58

55:                                               ; preds = %10
  %56 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -1, ptr %56, align 8, !tbaa !11
  %57 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %57)
  store i32 1, ptr %41, align 4
  br label %327

58:                                               ; preds = %10
  %59 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 1, ptr %59, align 8, !tbaa !11
  %60 = load i64, ptr %16, align 8, !tbaa !11
  %61 = sub nsw i64 %60, 2
  store i64 %61, ptr %16, align 8, !tbaa !11
  %62 = load i64, ptr %16, align 8, !tbaa !11
  %63 = add nsw i64 %62, 2
  %64 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef %63, ptr noundef %64)
  %65 = load i64, ptr %16, align 8, !tbaa !11
  %66 = add nsw i64 %65, 1
  %67 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %26, i64 noundef %66, ptr noundef %67)
  store i64 1, ptr %24, align 8, !tbaa !11
  br label %68

68:                                               ; preds = %86, %58
  %69 = load i64, ptr %24, align 8, !tbaa !11
  %70 = load i64, ptr %16, align 8, !tbaa !11
  %71 = add nsw i64 %70, 1
  %72 = icmp sle i64 %69, %71
  br i1 %72, label %73, label %89

73:                                               ; preds = %68
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %74, i32 0, i32 4
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  %77 = load i64, ptr %24, align 8, !tbaa !11
  %78 = sub nsw i64 %77, 1
  %79 = getelementptr inbounds double, ptr %76, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !9
  %81 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %82 = load ptr, ptr %81, align 8, !tbaa !13
  %83 = load i64, ptr %24, align 8, !tbaa !11
  %84 = sub nsw i64 %83, 1
  %85 = getelementptr inbounds double, ptr %82, i64 %84
  store double %80, ptr %85, align 8, !tbaa !9
  br label %86

86:                                               ; preds = %73
  %87 = load i64, ptr %24, align 8, !tbaa !11
  %88 = add nsw i64 %87, 1
  store i64 %88, ptr %24, align 8, !tbaa !11
  br label %68, !llvm.loop !14

89:                                               ; preds = %68
  store i64 1, ptr %24, align 8, !tbaa !11
  br label %90

90:                                               ; preds = %119, %89
  %91 = load i64, ptr %24, align 8, !tbaa !11
  %92 = load i64, ptr %16, align 8, !tbaa !11
  %93 = icmp sle i64 %91, %92
  br i1 %93, label %94, label %122

94:                                               ; preds = %90
  %95 = load ptr, ptr %12, 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 !13
  %98 = load i64, ptr %24, align 8, !tbaa !11
  %99 = getelementptr inbounds double, ptr %97, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !9
  %101 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %100, double noundef 0.000000e+00)
  br i1 %101, label %102, label %105

102:                                              ; preds = %94
  %103 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -2, ptr %103, align 8, !tbaa !11
  %104 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %104)
  store i32 1, ptr %41, align 4
  br label %327

105:                                              ; preds = %94
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %106, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !13
  %109 = load i64, ptr %24, align 8, !tbaa !11
  %110 = getelementptr inbounds double, ptr %108, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !9
  %112 = load ptr, ptr %20, align 8, !tbaa !5
  %113 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %111, ptr noundef %112)
  %114 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !13
  %116 = load i64, ptr %24, align 8, !tbaa !11
  %117 = sub nsw i64 %116, 1
  %118 = getelementptr inbounds double, ptr %115, i64 %117
  store double %113, ptr %118, align 8, !tbaa !9
  br label %119

119:                                              ; preds = %105
  %120 = load i64, ptr %24, align 8, !tbaa !11
  %121 = add nsw i64 %120, 1
  store i64 %121, ptr %24, align 8, !tbaa !11
  br label %90, !llvm.loop !16

122:                                              ; preds = %90
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %123, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !13
  %126 = getelementptr inbounds double, ptr %125, i64 0
  store double 0.000000e+00, ptr %126, align 8, !tbaa !9
  store double 0.000000e+00, ptr %28, align 8, !tbaa !9
  store double 1.000000e+00, ptr %29, align 8, !tbaa !9
  store double 0.000000e+00, ptr %30, align 8, !tbaa !9
  store double 1.000000e+00, ptr %31, align 8, !tbaa !9
  store i64 1, ptr %24, align 8, !tbaa !11
  br label %127

127:                                              ; preds = %179, %122
  %128 = load i64, ptr %24, align 8, !tbaa !11
  %129 = load i64, ptr %16, align 8, !tbaa !11
  %130 = add nsw i64 %129, 1
  %131 = icmp sle i64 %128, %130
  br i1 %131, label %132, label %182

132:                                              ; preds = %127
  %133 = load double, ptr %14, align 8, !tbaa !9
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %134, i32 0, i32 4
  %136 = load ptr, ptr %135, align 8, !tbaa !13
  %137 = load i64, ptr %24, align 8, !tbaa !11
  %138 = sub nsw i64 %137, 1
  %139 = getelementptr inbounds double, ptr %136, i64 %138
  %140 = load double, ptr %139, align 8, !tbaa !9
  %141 = fsub double %133, %140
  %142 = load double, ptr %29, align 8, !tbaa !9
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %143, i32 0, i32 4
  %145 = load ptr, ptr %144, align 8, !tbaa !13
  %146 = load i64, ptr %24, align 8, !tbaa !11
  %147 = sub nsw i64 %146, 1
  %148 = getelementptr inbounds double, ptr %145, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !9
  %150 = load double, ptr %28, align 8, !tbaa !9
  %151 = fmul double %149, %150
  %152 = fneg double %151
  %153 = call double @llvm.fmuladd.f64(double %141, double %142, double %152)
  store double %153, ptr %32, align 8, !tbaa !9
  %154 = load double, ptr %29, align 8, !tbaa !9
  store double %154, ptr %28, align 8, !tbaa !9
  %155 = load double, ptr %32, align 8, !tbaa !9
  store double %155, ptr %29, align 8, !tbaa !9
  %156 = load double, ptr %15, align 8, !tbaa !9
  %157 = load ptr, ptr %11, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %157, i32 0, i32 4
  %159 = load ptr, ptr %158, align 8, !tbaa !13
  %160 = load i64, ptr %24, align 8, !tbaa !11
  %161 = sub nsw i64 %160, 1
  %162 = getelementptr inbounds double, ptr %159, i64 %161
  %163 = load double, ptr %162, align 8, !tbaa !9
  %164 = fsub double %156, %163
  %165 = load double, ptr %31, align 8, !tbaa !9
  %166 = load ptr, ptr %12, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %166, i32 0, i32 4
  %168 = load ptr, ptr %167, align 8, !tbaa !13
  %169 = load i64, ptr %24, align 8, !tbaa !11
  %170 = sub nsw i64 %169, 1
  %171 = getelementptr inbounds double, ptr %168, i64 %170
  %172 = load double, ptr %171, align 8, !tbaa !9
  %173 = load double, ptr %30, align 8, !tbaa !9
  %174 = fmul double %172, %173
  %175 = fneg double %174
  %176 = call double @llvm.fmuladd.f64(double %164, double %165, double %175)
  store double %176, ptr %32, align 8, !tbaa !9
  %177 = load double, ptr %31, align 8, !tbaa !9
  store double %177, ptr %30, align 8, !tbaa !9
  %178 = load double, ptr %32, align 8, !tbaa !9
  store double %178, ptr %31, align 8, !tbaa !9
  br label %179

179:                                              ; preds = %132
  %180 = load i64, ptr %24, align 8, !tbaa !11
  %181 = add nsw i64 %180, 1
  store i64 %181, ptr %24, align 8, !tbaa !11
  br label %127, !llvm.loop !17

182:                                              ; preds = %127
  %183 = load double, ptr %29, align 8, !tbaa !9
  store double %183, ptr %33, align 8, !tbaa !9
  %184 = load double, ptr %28, align 8, !tbaa !9
  store double %184, ptr %34, align 8, !tbaa !9
  %185 = load double, ptr %31, align 8, !tbaa !9
  store double %185, ptr %35, align 8, !tbaa !9
  %186 = load double, ptr %30, align 8, !tbaa !9
  store double %186, ptr %36, align 8, !tbaa !9
  %187 = load double, ptr %14, align 8, !tbaa !9
  %188 = load double, ptr %29, align 8, !tbaa !9
  %189 = fmul double %187, %188
  store double %189, ptr %37, align 8, !tbaa !9
  %190 = load double, ptr %15, align 8, !tbaa !9
  %191 = load double, ptr %31, align 8, !tbaa !9
  %192 = fmul double %190, %191
  store double %192, ptr %38, align 8, !tbaa !9
  %193 = load double, ptr %33, align 8, !tbaa !9
  %194 = load ptr, ptr %20, align 8, !tbaa !5
  %195 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %193, ptr noundef %194)
  %196 = load double, ptr %35, align 8, !tbaa !9
  %197 = load ptr, ptr %20, align 8, !tbaa !5
  %198 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %196, ptr noundef %197)
  %199 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %195, double noundef %198)
  br i1 %199, label %200, label %225

200:                                              ; preds = %182
  %201 = load double, ptr %36, align 8, !tbaa !9
  %202 = load double, ptr %34, align 8, !tbaa !9
  %203 = load double, ptr %35, align 8, !tbaa !9
  %204 = fmul double %202, %203
  %205 = load double, ptr %33, align 8, !tbaa !9
  %206 = fdiv double %204, %205
  %207 = fsub double %201, %206
  store double %207, ptr %36, align 8, !tbaa !9
  %208 = load double, ptr %38, align 8, !tbaa !9
  %209 = load double, ptr %37, align 8, !tbaa !9
  %210 = load double, ptr %35, align 8, !tbaa !9
  %211 = fmul double %209, %210
  %212 = load double, ptr %33, align 8, !tbaa !9
  %213 = fdiv double %211, %212
  %214 = fsub double %208, %213
  store double %214, ptr %38, align 8, !tbaa !9
  %215 = load double, ptr %38, align 8, !tbaa !9
  %216 = load double, ptr %36, align 8, !tbaa !9
  %217 = fdiv double %215, %216
  store double %217, ptr %40, align 8, !tbaa !9
  %218 = load double, ptr %37, align 8, !tbaa !9
  %219 = load double, ptr %40, align 8, !tbaa !9
  %220 = load double, ptr %34, align 8, !tbaa !9
  %221 = fneg double %219
  %222 = call double @llvm.fmuladd.f64(double %221, double %220, double %218)
  %223 = load double, ptr %33, align 8, !tbaa !9
  %224 = fdiv double %222, %223
  store double %224, ptr %39, align 8, !tbaa !9
  br label %250

225:                                              ; preds = %182
  %226 = load double, ptr %34, align 8, !tbaa !9
  %227 = load double, ptr %36, align 8, !tbaa !9
  %228 = load double, ptr %33, align 8, !tbaa !9
  %229 = fmul double %227, %228
  %230 = load double, ptr %35, align 8, !tbaa !9
  %231 = fdiv double %229, %230
  %232 = fsub double %226, %231
  store double %232, ptr %34, align 8, !tbaa !9
  %233 = load double, ptr %37, align 8, !tbaa !9
  %234 = load double, ptr %38, align 8, !tbaa !9
  %235 = load double, ptr %33, align 8, !tbaa !9
  %236 = fmul double %234, %235
  %237 = load double, ptr %35, align 8, !tbaa !9
  %238 = fdiv double %236, %237
  %239 = fsub double %233, %238
  store double %239, ptr %37, align 8, !tbaa !9
  %240 = load double, ptr %37, align 8, !tbaa !9
  %241 = load double, ptr %34, align 8, !tbaa !9
  %242 = fdiv double %240, %241
  store double %242, ptr %40, align 8, !tbaa !9
  %243 = load double, ptr %38, align 8, !tbaa !9
  %244 = load double, ptr %40, align 8, !tbaa !9
  %245 = load double, ptr %36, align 8, !tbaa !9
  %246 = fneg double %244
  %247 = call double @llvm.fmuladd.f64(double %246, double %245, double %243)
  %248 = load double, ptr %35, align 8, !tbaa !9
  %249 = fdiv double %247, %248
  store double %249, ptr %39, align 8, !tbaa !9
  br label %250

250:                                              ; preds = %225, %200
  %251 = load double, ptr %40, align 8, !tbaa !9
  %252 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %251, double noundef 0.000000e+00)
  br i1 %252, label %253, label %256

253:                                              ; preds = %250
  %254 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -3, ptr %254, align 8, !tbaa !11
  %255 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %255)
  store i32 1, ptr %41, align 4
  br label %327

256:                                              ; preds = %250
  %257 = load double, ptr %39, align 8, !tbaa !9
  %258 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %259 = load ptr, ptr %258, align 8, !tbaa !13
  %260 = load i64, ptr %16, align 8, !tbaa !11
  %261 = add nsw i64 %260, 1
  %262 = getelementptr inbounds double, ptr %259, i64 %261
  store double %257, ptr %262, align 8, !tbaa !9
  %263 = load double, ptr %40, align 8, !tbaa !9
  %264 = load ptr, ptr %20, align 8, !tbaa !5
  %265 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %263, ptr noundef %264)
  %266 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %267 = load ptr, ptr %266, align 8, !tbaa !13
  %268 = load i64, ptr %16, align 8, !tbaa !11
  %269 = getelementptr inbounds double, ptr %267, i64 %268
  store double %265, ptr %269, align 8, !tbaa !9
  %270 = load i64, ptr %16, align 8, !tbaa !11
  %271 = add nsw i64 %270, 2
  %272 = load ptr, ptr %20, align 8, !tbaa !5
  %273 = call noundef zeroext i1 @_ZN11alglib_impl12smatrixtdevdEPNS_9ae_vectorES1_llPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %25, ptr noundef %26, i64 noundef %271, i64 noundef 3, ptr noundef %27, ptr noundef %272)
  br i1 %273, label %277, label %274

274:                                              ; preds = %256
  %275 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -3, ptr %275, align 8, !tbaa !11
  %276 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %276)
  store i32 1, ptr %41, align 4
  br label %327

277:                                              ; preds = %256
  %278 = load ptr, ptr %18, align 8, !tbaa !5
  %279 = load i64, ptr %16, align 8, !tbaa !11
  %280 = add nsw i64 %279, 2
  %281 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %278, i64 noundef %280, ptr noundef %281)
  %282 = load ptr, ptr %19, align 8, !tbaa !5
  %283 = load i64, ptr %16, align 8, !tbaa !11
  %284 = add nsw i64 %283, 2
  %285 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %282, i64 noundef %284, ptr noundef %285)
  store i64 1, ptr %24, align 8, !tbaa !11
  br label %286

286:                                              ; preds = %322, %277
  %287 = load i64, ptr %24, align 8, !tbaa !11
  %288 = load i64, ptr %16, align 8, !tbaa !11
  %289 = add nsw i64 %288, 2
  %290 = icmp sle i64 %287, %289
  br i1 %290, label %291, label %325

291:                                              ; preds = %286
  %292 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %293 = load ptr, ptr %292, align 8, !tbaa !13
  %294 = load i64, ptr %24, align 8, !tbaa !11
  %295 = sub nsw i64 %294, 1
  %296 = getelementptr inbounds double, ptr %293, i64 %295
  %297 = load double, ptr %296, align 8, !tbaa !9
  %298 = load ptr, ptr %18, align 8, !tbaa !5
  %299 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %298, i32 0, i32 4
  %300 = load ptr, ptr %299, align 8, !tbaa !13
  %301 = load i64, ptr %24, align 8, !tbaa !11
  %302 = sub nsw i64 %301, 1
  %303 = getelementptr inbounds double, ptr %300, i64 %302
  store double %297, ptr %303, align 8, !tbaa !9
  %304 = load double, ptr %13, align 8, !tbaa !9
  %305 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %27, i32 0, i32 6
  %306 = load ptr, ptr %305, align 8, !tbaa !13
  %307 = getelementptr inbounds ptr, ptr %306, i64 0
  %308 = load ptr, ptr %307, align 8, !tbaa !5
  %309 = load i64, ptr %24, align 8, !tbaa !11
  %310 = sub nsw i64 %309, 1
  %311 = getelementptr inbounds double, ptr %308, i64 %310
  %312 = load double, ptr %311, align 8, !tbaa !9
  %313 = load ptr, ptr %20, align 8, !tbaa !5
  %314 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %312, ptr noundef %313)
  %315 = fmul double %304, %314
  %316 = load ptr, ptr %19, 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 !13
  %319 = load i64, ptr %24, align 8, !tbaa !11
  %320 = sub nsw i64 %319, 1
  %321 = getelementptr inbounds double, ptr %318, i64 %320
  store double %315, ptr %321, align 8, !tbaa !9
  br label %322

322:                                              ; preds = %291
  %323 = load i64, ptr %24, align 8, !tbaa !11
  %324 = add nsw i64 %323, 1
  store i64 %324, ptr %24, align 8, !tbaa !11
  br label %286, !llvm.loop !18

325:                                              ; preds = %286
  %326 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %326)
  store i32 0, ptr %41, align 4
  br label %327

327:                                              ; preds = %325, %274, %253, %102, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #5
  %328 = load i32, ptr %41, align 4
  switch i32 %328, label %330 [
    i32 0, label %329
    i32 1, label %329
  ]

329:                                              ; preds = %327, %327
  ret void

330:                                              ; preds = %327
  unreachable
}

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

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

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #3

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

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

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

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) #3

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) #3

declare noundef zeroext i1 @_ZN11alglib_impl12smatrixtdevdEPNS_9ae_vectorES1_llPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #3

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) #3

declare void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) #3

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

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !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"

%"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.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

; 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 uwtable
define dso_local void @_ZN11alglib_impl25gqgenerategausslobattorecEPNS_9ae_vectorES1_dddlPlS1_S1_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, double noundef %2, double noundef %3, double noundef %4, i64 noundef %5, ptr nocapture noundef writeonly %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) local_unnamed_addr #1 {
  %11 = alloca %"struct.alglib_impl::ae_frame", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_matrix", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %16) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %9, ptr noundef nonnull %11)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %16, i8 0, i64 80, i1 false)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %12, ptr noundef %0, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %13, ptr noundef %1, ptr noundef %9, i1 noundef zeroext true)
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %7)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %8)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 3, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %9, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %9, i1 noundef zeroext true)
  %17 = icmp slt i64 %5, 3
  br i1 %17, label %._crit_edge158.sink.split, label %.new

.new:                                             ; preds = %10
  store i64 1, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %5, ptr noundef %9)
  %18 = add nsw i64 %5, -1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %18, ptr noundef %9)
  %19 = getelementptr inbounds i8, ptr %12, i64 56
  %20 = getelementptr inbounds i8, ptr %14, i64 56
  %21 = add nsw i64 %5, -1
  %xtraiter = and i64 %21, 1
  %unroll_iter = and i64 %21, -2
  br label %30

.lr.ph.unr-lcssa.loopexit:                        ; preds = %30
  %22 = add nuw nsw i64 %.0133139, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph, label %.lr.ph.epilog-lcssa

.lr.ph.epilog-lcssa:                              ; preds = %.lr.ph.unr-lcssa.loopexit
  %23 = load ptr, ptr %19, align 8, !tbaa !9
  %24 = getelementptr inbounds double, ptr %23, i64 %22
  %25 = load double, ptr %24, align 8, !tbaa !10
  %26 = load ptr, ptr %20, align 8, !tbaa !9
  %27 = getelementptr inbounds double, ptr %26, i64 %22
  store double %25, ptr %27, align 8, !tbaa !10
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.unr-lcssa.loopexit, %.lr.ph.epilog-lcssa
  %28 = getelementptr inbounds i8, ptr %13, i64 56
  %29 = getelementptr inbounds i8, ptr %15, i64 56
  br label %43

30:                                               ; preds = %30, %.new
  %.0133139 = phi i64 [ 1, %.new ], [ %42, %30 ]
  %niter = phi i64 [ 0, %.new ], [ %niter.next.1, %30 ]
  %31 = load ptr, ptr %19, align 8, !tbaa !9
  %32 = add nsw i64 %.0133139, -1
  %33 = getelementptr inbounds double, ptr %31, i64 %32
  %34 = load double, ptr %33, align 8, !tbaa !10
  %35 = load ptr, ptr %20, align 8, !tbaa !9
  %36 = getelementptr inbounds double, ptr %35, i64 %32
  store double %34, ptr %36, align 8, !tbaa !10
  %37 = load ptr, ptr %19, align 8, !tbaa !9
  %38 = getelementptr inbounds double, ptr %37, i64 %.0133139
  %39 = load double, ptr %38, align 8, !tbaa !10
  %40 = load ptr, ptr %20, align 8, !tbaa !9
  %41 = getelementptr inbounds double, ptr %40, i64 %.0133139
  store double %39, ptr %41, align 8, !tbaa !10
  %42 = add nuw nsw i64 %.0133139, 2
  %niter.next.1 = add nuw i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.lr.ph.unr-lcssa.loopexit, label %30, !llvm.loop !12

43:                                               ; preds = %.lr.ph, %48
  %.1141 = phi i64 [ 1, %.lr.ph ], [ %56, %48 ]
  %44 = load ptr, ptr %28, align 8, !tbaa !9
  %45 = getelementptr inbounds double, ptr %44, i64 %.1141
  %46 = load double, ptr %45, align 8, !tbaa !10
  %47 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %46, double noundef 0.000000e+00)
  br i1 %47, label %._crit_edge158.sink.split, label %48

48:                                               ; preds = %43
  %49 = load ptr, ptr %28, align 8, !tbaa !9
  %50 = getelementptr inbounds double, ptr %49, i64 %.1141
  %51 = load double, ptr %50, align 8, !tbaa !10
  %52 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %51, ptr noundef %9)
  %53 = load ptr, ptr %29, align 8, !tbaa !9
  %54 = getelementptr double, ptr %53, i64 %.1141
  %55 = getelementptr i8, ptr %54, i64 -8
  store double %52, ptr %55, align 8, !tbaa !10
  %56 = add nuw i64 %.1141, 1
  %exitcond161.not = icmp eq i64 %56, %18
  br i1 %exitcond161.not, label %.lr.ph149, label %43, !llvm.loop !14

.lr.ph149:                                        ; preds = %48
  %57 = getelementptr inbounds i8, ptr %13, i64 56
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  store double 0.000000e+00, ptr %58, align 8, !tbaa !10
  %59 = load ptr, ptr %19, align 8, !tbaa !9
  %60 = load ptr, ptr %57, align 8, !tbaa !9
  %smax = call i64 @llvm.smax.i64(i64 %5, i64 2)
  %61 = insertelement <2 x double> poison, double %4, i64 0
  %62 = insertelement <2 x double> %61, double %3, i64 1
  %63 = add nsw i64 %smax, -1
  %xtraiter169 = and i64 %63, 1
  %unroll_iter174 = and i64 %63, -2
  br label %64

64:                                               ; preds = %64, %.lr.ph149
  %.2143 = phi i64 [ 1, %.lr.ph149 ], [ %92, %64 ]
  %65 = phi <2 x double> [ <double 1.000000e+00, double 1.000000e+00>, %.lr.ph149 ], [ %91, %64 ]
  %66 = phi <2 x double> [ zeroinitializer, %.lr.ph149 ], [ %79, %64 ]
  %niter175 = phi i64 [ 0, %.lr.ph149 ], [ %niter175.next.1, %64 ]
  %67 = add nsw i64 %.2143, -1
  %68 = getelementptr inbounds double, ptr %59, i64 %67
  %69 = load double, ptr %68, align 8, !tbaa !10
  %70 = getelementptr inbounds double, ptr %60, i64 %67
  %71 = load double, ptr %70, align 8, !tbaa !10
  %72 = fneg double %71
  %73 = insertelement <2 x double> poison, double %69, i64 0
  %74 = shufflevector <2 x double> %73, <2 x double> poison, <2 x i32> zeroinitializer
  %75 = fsub <2 x double> %62, %74
  %76 = insertelement <2 x double> poison, double %72, i64 0
  %77 = shufflevector <2 x double> %76, <2 x double> poison, <2 x i32> zeroinitializer
  %78 = fmul <2 x double> %66, %77
  %79 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %75, <2 x double> %65, <2 x double> %78)
  %80 = getelementptr inbounds double, ptr %59, i64 %.2143
  %81 = load double, ptr %80, align 8, !tbaa !10
  %82 = getelementptr inbounds double, ptr %60, i64 %.2143
  %83 = load double, ptr %82, align 8, !tbaa !10
  %84 = fneg double %83
  %85 = insertelement <2 x double> poison, double %81, i64 0
  %86 = shufflevector <2 x double> %85, <2 x double> poison, <2 x i32> zeroinitializer
  %87 = fsub <2 x double> %62, %86
  %88 = insertelement <2 x double> poison, double %84, i64 0
  %89 = shufflevector <2 x double> %88, <2 x double> poison, <2 x i32> zeroinitializer
  %90 = fmul <2 x double> %65, %89
  %91 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %87, <2 x double> %79, <2 x double> %90)
  %92 = add nuw nsw i64 %.2143, 2
  %niter175.next.1 = add nuw i64 %niter175, 2
  %niter175.ncmp.1 = icmp eq i64 %niter175.next.1, %unroll_iter174
  br i1 %niter175.ncmp.1, label %._crit_edge150.unr-lcssa.loopexit, label %64, !llvm.loop !15

._crit_edge150.unr-lcssa.loopexit:                ; preds = %64
  %93 = add nuw nsw i64 %.2143, 1
  %lcmp.mod171.not = icmp eq i64 %xtraiter169, 0
  br i1 %lcmp.mod171.not, label %._crit_edge150, label %._crit_edge150.epilog-lcssa

._crit_edge150.epilog-lcssa:                      ; preds = %._crit_edge150.unr-lcssa.loopexit
  %94 = getelementptr inbounds double, ptr %59, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !10
  %96 = getelementptr inbounds double, ptr %60, i64 %93
  %97 = load double, ptr %96, align 8, !tbaa !10
  %98 = fneg double %97
  %99 = insertelement <2 x double> poison, double %95, i64 0
  %100 = shufflevector <2 x double> %99, <2 x double> poison, <2 x i32> zeroinitializer
  %101 = fsub <2 x double> %62, %100
  %102 = insertelement <2 x double> poison, double %98, i64 0
  %103 = shufflevector <2 x double> %102, <2 x double> poison, <2 x i32> zeroinitializer
  %104 = fmul <2 x double> %79, %103
  %105 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %101, <2 x double> %91, <2 x double> %104)
  br label %._crit_edge150

._crit_edge150:                                   ; preds = %._crit_edge150.unr-lcssa.loopexit, %._crit_edge150.epilog-lcssa
  %.lcssa167 = phi <2 x double> [ %79, %._crit_edge150.unr-lcssa.loopexit ], [ %91, %._crit_edge150.epilog-lcssa ]
  %.lcssa = phi <2 x double> [ %91, %._crit_edge150.unr-lcssa.loopexit ], [ %105, %._crit_edge150.epilog-lcssa ]
  %106 = extractelement <2 x double> %.lcssa, i64 1
  %107 = fmul double %106, %3
  %108 = extractelement <2 x double> %.lcssa, i64 0
  %109 = fmul double %108, %4
  %110 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %106, ptr noundef %9)
  %111 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %108, ptr noundef %9)
  %112 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %110, double noundef %111)
  br i1 %112, label %113, label %129

113:                                              ; preds = %._crit_edge150
  %114 = insertelement <2 x double> %.lcssa167, double %107, i64 0
  %115 = shufflevector <2 x double> %.lcssa, <2 x double> poison, <2 x i32> zeroinitializer
  %116 = fmul <2 x double> %114, %115
  %117 = shufflevector <2 x double> %.lcssa, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %118 = fdiv <2 x double> %116, %117
  %119 = insertelement <2 x double> poison, double %109, i64 0
  %120 = shufflevector <2 x double> %119, <2 x double> %.lcssa167, <2 x i32> <i32 0, i32 2>
  %121 = fsub <2 x double> %120, %118
  %122 = extractelement <2 x double> %121, i64 0
  %123 = extractelement <2 x double> %121, i64 1
  %124 = fdiv double %122, %123
  %125 = fneg double %124
  %126 = extractelement <2 x double> %.lcssa167, i64 1
  %127 = call double @llvm.fmuladd.f64(double %125, double %126, double %107)
  %128 = fdiv double %127, %106
  br label %145

129:                                              ; preds = %._crit_edge150
  %130 = shufflevector <2 x double> %.lcssa, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %131 = insertelement <2 x double> poison, double %109, i64 0
  %132 = shufflevector <2 x double> %131, <2 x double> %.lcssa167, <2 x i32> <i32 0, i32 2>
  %133 = fmul <2 x double> %130, %132
  %134 = shufflevector <2 x double> %.lcssa, <2 x double> poison, <2 x i32> zeroinitializer
  %135 = fdiv <2 x double> %133, %134
  %136 = insertelement <2 x double> %.lcssa167, double %107, i64 0
  %137 = fsub <2 x double> %136, %135
  %138 = extractelement <2 x double> %137, i64 0
  %139 = extractelement <2 x double> %137, i64 1
  %140 = fdiv double %138, %139
  %141 = fneg double %140
  %142 = extractelement <2 x double> %.lcssa167, i64 0
  %143 = call double @llvm.fmuladd.f64(double %141, double %142, double %109)
  %144 = fdiv double %143, %108
  br label %145

145:                                              ; preds = %129, %113
  %.0128 = phi double [ %128, %113 ], [ %144, %129 ]
  %.0 = phi double [ %124, %113 ], [ %140, %129 ]
  %146 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %.0, double noundef 0.000000e+00)
  br i1 %146, label %._crit_edge158.sink.split, label %147

147:                                              ; preds = %145
  %148 = load ptr, ptr %20, align 8, !tbaa !9
  %149 = getelementptr inbounds double, ptr %148, i64 %18
  store double %.0128, ptr %149, align 8, !tbaa !10
  %150 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %.0, ptr noundef %9)
  %151 = getelementptr inbounds i8, ptr %15, i64 56
  %152 = load ptr, ptr %151, align 8, !tbaa !9
  %153 = getelementptr double, ptr %152, i64 %5
  %154 = getelementptr i8, ptr %153, i64 -16
  store double %150, ptr %154, align 8, !tbaa !10
  %155 = call noundef zeroext i1 @_ZN11alglib_impl12smatrixtdevdEPNS_9ae_vectorES1_llPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %15, i64 noundef %5, i64 noundef 3, ptr noundef nonnull %16, ptr noundef %9)
  br i1 %155, label %.lr.ph157, label %._crit_edge158.sink.split

.lr.ph157:                                        ; preds = %147
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %7, i64 noundef %5, ptr noundef %9)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %8, i64 noundef %5, ptr noundef %9)
  %156 = getelementptr inbounds i8, ptr %7, i64 56
  %157 = getelementptr inbounds i8, ptr %16, i64 72
  %158 = getelementptr inbounds i8, ptr %8, i64 56
  %smax163 = call i64 @llvm.smax.i64(i64 %5, i64 1)
  br label %159

159:                                              ; preds = %.lr.ph157, %159
  %.3155 = phi i64 [ 1, %.lr.ph157 ], [ %174, %159 ]
  %160 = load ptr, ptr %20, align 8, !tbaa !9
  %161 = add nsw i64 %.3155, -1
  %162 = getelementptr inbounds double, ptr %160, i64 %161
  %163 = load double, ptr %162, align 8, !tbaa !10
  %164 = load ptr, ptr %156, align 8, !tbaa !9
  %165 = getelementptr inbounds double, ptr %164, i64 %161
  store double %163, ptr %165, align 8, !tbaa !10
  %166 = load ptr, ptr %157, align 8, !tbaa !9
  %167 = load ptr, ptr %166, align 8, !tbaa !16
  %168 = getelementptr inbounds double, ptr %167, i64 %161
  %169 = load double, ptr %168, align 8, !tbaa !10
  %170 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %169, ptr noundef %9)
  %171 = fmul double %170, %2
  %172 = load ptr, ptr %158, align 8, !tbaa !9
  %173 = getelementptr inbounds double, ptr %172, i64 %161
  store double %171, ptr %173, align 8, !tbaa !10
  %174 = add nuw i64 %.3155, 1
  %exitcond164.not = icmp eq i64 %.3155, %smax163
  br i1 %exitcond164.not, label %._crit_edge158, label %159, !llvm.loop !18

._crit_edge158.sink.split:                        ; preds = %43, %147, %145, %10
  %.sink = phi i64 [ -1, %10 ], [ -3, %145 ], [ -3, %147 ], [ -2, %43 ]
  store i64 %.sink, ptr %6, align 8, !tbaa !5
  br label %._crit_edge158

._crit_edge158:                                   ; preds = %159, %._crit_edge158.sink.split
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %9)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  ret void
}

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

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

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #3

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

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

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

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) local_unnamed_addr #3

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN11alglib_impl12smatrixtdevdEPNS_9ae_vectorES1_llPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) local_unnamed_addr #3

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

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) local_unnamed_addr #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!"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}
!15 = distinct !{!15, !13}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = distinct !{!18, !13}


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