; LLVM IR from Dimandragon/non-parametric-dsp :: 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_impl25gqgenerategausslobattorecEPKNS_9ae_vectorES2_dddlPlPS0_S4_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_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %22, ptr noundef %43, ptr noundef %44, i1 noundef zeroext true)
  %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_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %23, ptr noundef %45, ptr noundef %46, i1 noundef zeroext true)
  %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 %319

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 = %85, %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 %88

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

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

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

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

93:                                               ; preds = %89
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !13
  %96 = load i64, ptr %24, align 8, !tbaa !11
  %97 = getelementptr inbounds double, ptr %95, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !9
  %99 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %98, double noundef 0.000000e+00)
  br i1 %99, label %100, label %103

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

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

116:                                              ; preds = %103
  %117 = load i64, ptr %24, align 8, !tbaa !11
  %118 = add nsw i64 %117, 1
  store i64 %118, ptr %24, align 8, !tbaa !11
  br label %89, !llvm.loop !16

119:                                              ; preds = %89
  %120 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %121 = load ptr, ptr %120, align 8, !tbaa !13
  %122 = getelementptr inbounds double, ptr %121, i64 0
  store double 0.000000e+00, ptr %122, 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 %123

123:                                              ; preds = %171, %119
  %124 = load i64, ptr %24, align 8, !tbaa !11
  %125 = load i64, ptr %16, align 8, !tbaa !11
  %126 = add nsw i64 %125, 1
  %127 = icmp sle i64 %124, %126
  br i1 %127, label %128, label %174

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

171:                                              ; preds = %128
  %172 = load i64, ptr %24, align 8, !tbaa !11
  %173 = add nsw i64 %172, 1
  store i64 %173, ptr %24, align 8, !tbaa !11
  br label %123, !llvm.loop !17

174:                                              ; preds = %123
  %175 = load double, ptr %29, align 8, !tbaa !9
  store double %175, ptr %33, align 8, !tbaa !9
  %176 = load double, ptr %28, align 8, !tbaa !9
  store double %176, ptr %34, align 8, !tbaa !9
  %177 = load double, ptr %31, align 8, !tbaa !9
  store double %177, ptr %35, align 8, !tbaa !9
  %178 = load double, ptr %30, align 8, !tbaa !9
  store double %178, ptr %36, align 8, !tbaa !9
  %179 = load double, ptr %14, align 8, !tbaa !9
  %180 = load double, ptr %29, align 8, !tbaa !9
  %181 = fmul double %179, %180
  store double %181, ptr %37, align 8, !tbaa !9
  %182 = load double, ptr %15, align 8, !tbaa !9
  %183 = load double, ptr %31, align 8, !tbaa !9
  %184 = fmul double %182, %183
  store double %184, ptr %38, align 8, !tbaa !9
  %185 = load double, ptr %33, align 8, !tbaa !9
  %186 = load ptr, ptr %20, align 8, !tbaa !5
  %187 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %185, ptr noundef %186)
  %188 = load double, ptr %35, align 8, !tbaa !9
  %189 = load ptr, ptr %20, align 8, !tbaa !5
  %190 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %188, ptr noundef %189)
  %191 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %187, double noundef %190)
  br i1 %191, label %192, label %217

192:                                              ; preds = %174
  %193 = load double, ptr %36, align 8, !tbaa !9
  %194 = load double, ptr %34, align 8, !tbaa !9
  %195 = load double, ptr %35, align 8, !tbaa !9
  %196 = fmul double %194, %195
  %197 = load double, ptr %33, align 8, !tbaa !9
  %198 = fdiv double %196, %197
  %199 = fsub double %193, %198
  store double %199, ptr %36, align 8, !tbaa !9
  %200 = load double, ptr %38, align 8, !tbaa !9
  %201 = load double, ptr %37, align 8, !tbaa !9
  %202 = load double, ptr %35, align 8, !tbaa !9
  %203 = fmul double %201, %202
  %204 = load double, ptr %33, align 8, !tbaa !9
  %205 = fdiv double %203, %204
  %206 = fsub double %200, %205
  store double %206, ptr %38, align 8, !tbaa !9
  %207 = load double, ptr %38, align 8, !tbaa !9
  %208 = load double, ptr %36, align 8, !tbaa !9
  %209 = fdiv double %207, %208
  store double %209, ptr %40, align 8, !tbaa !9
  %210 = load double, ptr %37, align 8, !tbaa !9
  %211 = load double, ptr %40, align 8, !tbaa !9
  %212 = load double, ptr %34, align 8, !tbaa !9
  %213 = fneg double %211
  %214 = call double @llvm.fmuladd.f64(double %213, double %212, double %210)
  %215 = load double, ptr %33, align 8, !tbaa !9
  %216 = fdiv double %214, %215
  store double %216, ptr %39, align 8, !tbaa !9
  br label %242

217:                                              ; preds = %174
  %218 = load double, ptr %34, align 8, !tbaa !9
  %219 = load double, ptr %36, align 8, !tbaa !9
  %220 = load double, ptr %33, align 8, !tbaa !9
  %221 = fmul double %219, %220
  %222 = load double, ptr %35, align 8, !tbaa !9
  %223 = fdiv double %221, %222
  %224 = fsub double %218, %223
  store double %224, ptr %34, align 8, !tbaa !9
  %225 = load double, ptr %37, align 8, !tbaa !9
  %226 = load double, ptr %38, align 8, !tbaa !9
  %227 = load double, ptr %33, align 8, !tbaa !9
  %228 = fmul double %226, %227
  %229 = load double, ptr %35, align 8, !tbaa !9
  %230 = fdiv double %228, %229
  %231 = fsub double %225, %230
  store double %231, ptr %37, align 8, !tbaa !9
  %232 = load double, ptr %37, align 8, !tbaa !9
  %233 = load double, ptr %34, align 8, !tbaa !9
  %234 = fdiv double %232, %233
  store double %234, ptr %40, align 8, !tbaa !9
  %235 = load double, ptr %38, align 8, !tbaa !9
  %236 = load double, ptr %40, align 8, !tbaa !9
  %237 = load double, ptr %36, align 8, !tbaa !9
  %238 = fneg double %236
  %239 = call double @llvm.fmuladd.f64(double %238, double %237, double %235)
  %240 = load double, ptr %35, align 8, !tbaa !9
  %241 = fdiv double %239, %240
  store double %241, ptr %39, align 8, !tbaa !9
  br label %242

242:                                              ; preds = %217, %192
  %243 = load double, ptr %40, align 8, !tbaa !9
  %244 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %243, double noundef 0.000000e+00)
  br i1 %244, label %245, label %248

245:                                              ; preds = %242
  %246 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -3, ptr %246, align 8, !tbaa !11
  %247 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %247)
  store i32 1, ptr %41, align 4
  br label %319

248:                                              ; preds = %242
  %249 = load double, ptr %39, align 8, !tbaa !9
  %250 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %251 = load ptr, ptr %250, align 8, !tbaa !13
  %252 = load i64, ptr %16, align 8, !tbaa !11
  %253 = add nsw i64 %252, 1
  %254 = getelementptr inbounds double, ptr %251, i64 %253
  store double %249, ptr %254, align 8, !tbaa !9
  %255 = load double, ptr %40, align 8, !tbaa !9
  %256 = load ptr, ptr %20, align 8, !tbaa !5
  %257 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %255, ptr noundef %256)
  %258 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %259 = load ptr, ptr %258, align 8, !tbaa !13
  %260 = load i64, ptr %16, align 8, !tbaa !11
  %261 = getelementptr inbounds double, ptr %259, i64 %260
  store double %257, ptr %261, align 8, !tbaa !9
  %262 = load i64, ptr %16, align 8, !tbaa !11
  %263 = add nsw i64 %262, 2
  %264 = load ptr, ptr %20, align 8, !tbaa !5
  %265 = call noundef zeroext i1 @_ZN11alglib_impl12smatrixtdevdEPNS_9ae_vectorEPKS0_llPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %25, ptr noundef %26, i64 noundef %263, i64 noundef 3, ptr noundef %27, ptr noundef %264)
  br i1 %265, label %269, label %266

266:                                              ; preds = %248
  %267 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -3, ptr %267, align 8, !tbaa !11
  %268 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %268)
  store i32 1, ptr %41, align 4
  br label %319

269:                                              ; preds = %248
  %270 = load ptr, ptr %18, align 8, !tbaa !5
  %271 = load i64, ptr %16, align 8, !tbaa !11
  %272 = add nsw i64 %271, 2
  %273 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %270, i64 noundef %272, ptr noundef %273)
  %274 = load ptr, ptr %19, align 8, !tbaa !5
  %275 = load i64, ptr %16, align 8, !tbaa !11
  %276 = add nsw i64 %275, 2
  %277 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %274, i64 noundef %276, ptr noundef %277)
  store i64 1, ptr %24, align 8, !tbaa !11
  br label %278

278:                                              ; preds = %314, %269
  %279 = load i64, ptr %24, align 8, !tbaa !11
  %280 = load i64, ptr %16, align 8, !tbaa !11
  %281 = add nsw i64 %280, 2
  %282 = icmp sle i64 %279, %281
  br i1 %282, label %283, label %317

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

314:                                              ; preds = %283
  %315 = load i64, ptr %24, align 8, !tbaa !11
  %316 = add nsw i64 %315, 1
  store i64 %316, ptr %24, align 8, !tbaa !11
  br label %278, !llvm.loop !18

317:                                              ; preds = %278
  %318 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %318)
  store i32 0, ptr %41, align 4
  br label %319

319:                                              ; preds = %317, %266, %245, %100, %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
  %320 = load i32, ptr %41, align 4
  switch i32 %320, label %322 [
    i32 0, label %321
    i32 1, label %321
  ]

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

322:                                              ; preds = %319
  unreachable
}

; Function Attrs: 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_vectorEPKS0_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_vectorEPKS0_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_impl25gqgenerategausslobattorecEPKNS_9ae_vectorES2_dddlPlPS0_S4_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_vectorEPKS0_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_vectorEPKS0_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_edge150.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 %.0121131, 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
  %.0121131 = 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 %.0121131, -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 %.0121131
  %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 %.0121131
  store double %39, ptr %41, align 8, !tbaa !10
  %42 = add nuw nsw i64 %.0121131, 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
  %.1133 = phi i64 [ 1, %.lr.ph ], [ %56, %48 ]
  %44 = load ptr, ptr %28, align 8, !tbaa !9
  %45 = getelementptr inbounds double, ptr %44, i64 %.1133
  %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_edge150.sink.split, label %48

48:                                               ; preds = %43
  %49 = load ptr, ptr %28, align 8, !tbaa !9
  %50 = getelementptr inbounds double, ptr %49, i64 %.1133
  %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 %.1133
  %55 = getelementptr i8, ptr %54, i64 -8
  store double %52, ptr %55, align 8, !tbaa !10
  %56 = add nuw i64 %.1133, 1
  %exitcond153.not = icmp eq i64 %56, %18
  br i1 %exitcond153.not, label %.lr.ph141, label %43, !llvm.loop !14

.lr.ph141:                                        ; 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
  %xtraiter161 = and i64 %63, 1
  %unroll_iter166 = and i64 %63, -2
  br label %64

64:                                               ; preds = %64, %.lr.ph141
  %.2139 = phi i64 [ 1, %.lr.ph141 ], [ %92, %64 ]
  %65 = phi <2 x double> [ <double 1.000000e+00, double 1.000000e+00>, %.lr.ph141 ], [ %91, %64 ]
  %66 = phi <2 x double> [ zeroinitializer, %.lr.ph141 ], [ %79, %64 ]
  %niter167 = phi i64 [ 0, %.lr.ph141 ], [ %niter167.next.1, %64 ]
  %67 = add nsw i64 %.2139, -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 %.2139
  %81 = load double, ptr %80, align 8, !tbaa !10
  %82 = getelementptr inbounds double, ptr %60, i64 %.2139
  %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 %.2139, 2
  %niter167.next.1 = add nuw i64 %niter167, 2
  %niter167.ncmp.1 = icmp eq i64 %niter167.next.1, %unroll_iter166
  br i1 %niter167.ncmp.1, label %._crit_edge142.unr-lcssa.loopexit, label %64, !llvm.loop !15

._crit_edge142.unr-lcssa.loopexit:                ; preds = %64
  %93 = add nuw nsw i64 %.2139, 1
  %lcmp.mod163.not = icmp eq i64 %xtraiter161, 0
  br i1 %lcmp.mod163.not, label %._crit_edge142, label %._crit_edge142.epilog-lcssa

._crit_edge142.epilog-lcssa:                      ; preds = %._crit_edge142.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_edge142

._crit_edge142:                                   ; preds = %._crit_edge142.unr-lcssa.loopexit, %._crit_edge142.epilog-lcssa
  %.lcssa159 = phi <2 x double> [ %79, %._crit_edge142.unr-lcssa.loopexit ], [ %91, %._crit_edge142.epilog-lcssa ]
  %.lcssa = phi <2 x double> [ %91, %._crit_edge142.unr-lcssa.loopexit ], [ %105, %._crit_edge142.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_edge142
  %114 = insertelement <2 x double> %.lcssa159, 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> %.lcssa159, <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> %.lcssa159, 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_edge142
  %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> %.lcssa159, <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> %.lcssa159, 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> %.lcssa159, 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
  %.0120 = 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_edge150.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 %.0120, 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_vectorEPKS0_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.ph149, label %._crit_edge150.sink.split

.lr.ph149:                                        ; 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
  %smax155 = call i64 @llvm.smax.i64(i64 %5, i64 1)
  br label %159

159:                                              ; preds = %.lr.ph149, %159
  %.3147 = phi i64 [ 1, %.lr.ph149 ], [ %174, %159 ]
  %160 = load ptr, ptr %20, align 8, !tbaa !9
  %161 = add nsw i64 %.3147, -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 %.3147, 1
  %exitcond156.not = icmp eq i64 %.3147, %smax155
  br i1 %exitcond156.not, label %._crit_edge150, label %159, !llvm.loop !18

._crit_edge150.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_edge150

._crit_edge150:                                   ; preds = %159, %._crit_edge150.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_vectorEPKS0_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_vectorEPKS0_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