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

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

@.str.716 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.717 = external hidden unnamed_addr constant [53 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl23biharmonicevaluatorinitEPNS_19biharmonicevaluatorElPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"struct.alglib_impl::ae_complex", align 8
  %11 = alloca %"struct.alglib_impl::ae_complex", align 8
  %12 = alloca %"struct.alglib_impl::ae_complex", align 8
  %13 = alloca %"struct.alglib_impl::ae_complex", align 8
  %14 = alloca %"struct.alglib_impl::ae_complex", align 8
  %15 = alloca %"struct.alglib_impl::ae_complex", align 8
  %16 = alloca %"struct.alglib_impl::ae_complex", align 8
  %17 = alloca %"struct.alglib_impl::ae_complex", align 8
  %18 = alloca %"struct.alglib_impl::ae_complex", align 8
  %19 = alloca %"struct.alglib_impl::ae_complex", align 8
  %20 = alloca %"struct.alglib_impl::ae_complex", align 8
  %21 = alloca %"struct.alglib_impl::ae_complex", align 8
  %22 = alloca %"struct.alglib_impl::ae_complex", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  %23 = load i64, ptr %5, align 8, !tbaa !9
  %24 = icmp sge i64 %23, 2
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef @.str.716, ptr noundef %25)
  %26 = load i64, ptr %5, align 8, !tbaa !9
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %27, i32 0, i32 0
  store i64 %26, ptr %28, align 8, !tbaa !11
  %29 = load i64, ptr %5, align 8, !tbaa !9
  %30 = mul nsw i64 2, %29
  %31 = add nsw i64 %30, 3
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %32, i32 0, i32 1
  store i64 %31, ptr %33, align 8, !tbaa !16
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %34, i32 0, i32 5
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %36, i32 0, i32 1
  %38 = load i64, ptr %37, align 8, !tbaa !16
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %35, i64 noundef %38, ptr noundef %39)
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %40, i32 0, i32 7
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %42, i32 0, i32 1
  %44 = load i64, ptr %43, align 8, !tbaa !16
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %41, i64 noundef %44, ptr noundef %45)
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %46, i32 0, i32 6
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %48, i32 0, i32 1
  %50 = load i64, ptr %49, align 8, !tbaa !16
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %47, i64 noundef %50, ptr noundef %51)
  %52 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %10, i32 0, i32 0
  store double 0.000000e+00, ptr %52, align 8, !tbaa !17
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %10, i32 0, i32 1
  store double 1.000000e+00, ptr %53, align 8, !tbaa !20
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %11, i32 0, i32 0
  store double 0.000000e+00, ptr %54, align 8, !tbaa !17
  %55 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %11, i32 0, i32 1
  store double -1.000000e+00, ptr %55, align 8, !tbaa !20
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %56, i32 0, i32 5
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %57, i32 0, i32 4
  %59 = load ptr, ptr %58, align 8, !tbaa !21
  %60 = getelementptr inbounds double, ptr %59, i64 0
  store double 1.000000e+00, ptr %60, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  %61 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %62 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %63 = extractvalue { double, double } %61, 0
  store double %63, ptr %62, align 8
  %64 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %65 = extractvalue { double, double } %61, 1
  store double %65, ptr %64, align 8
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %66, i32 0, i32 7
  %68 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %67, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !21
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %69, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %70, ptr align 8 %12, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #4
  %71 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %72 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %73 = extractvalue { double, double } %71, 0
  store double %73, ptr %72, align 8
  %74 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %75 = extractvalue { double, double } %71, 1
  store double %75, ptr %74, align 8
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %76, i32 0, i32 6
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %77, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !21
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %79, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %80, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  store i64 1, ptr %7, align 8, !tbaa !9
  br label %81

81:                                               ; preds = %156, %3
  %82 = load i64, ptr %7, align 8, !tbaa !9
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %83, i32 0, i32 1
  %85 = load i64, ptr %84, align 8, !tbaa !16
  %86 = sub nsw i64 %85, 1
  %87 = icmp sle i64 %82, %86
  br i1 %87, label %88, label %159

88:                                               ; preds = %81
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %89, i32 0, i32 5
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %90, i32 0, i32 4
  %92 = load ptr, ptr %91, align 8, !tbaa !21
  %93 = load i64, ptr %7, align 8, !tbaa !9
  %94 = sub nsw i64 %93, 1
  %95 = getelementptr inbounds double, ptr %92, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !22
  %97 = fmul double %96, -1.000000e+00
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %98, i32 0, i32 5
  %100 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %99, i32 0, i32 4
  %101 = load ptr, ptr %100, align 8, !tbaa !21
  %102 = load i64, ptr %7, align 8, !tbaa !9
  %103 = getelementptr inbounds double, ptr %101, i64 %102
  store double %97, ptr %103, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %104, i32 0, i32 7
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %105, i32 0, i32 4
  %107 = load ptr, ptr %106, align 8, !tbaa !21
  %108 = load i64, ptr %7, align 8, !tbaa !9
  %109 = sub nsw i64 %108, 1
  %110 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %107, i64 %109
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %110, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !23
  %111 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %112 = load double, ptr %111, align 8
  %113 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %114 = load double, ptr %113, align 8
  %115 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %116 = load double, ptr %115, align 8
  %117 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %118 = load double, ptr %117, align 8
  %119 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %112, double %114, double %116, double %118)
  %120 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %121 = extractvalue { double, double } %119, 0
  store double %121, ptr %120, align 8
  %122 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %123 = extractvalue { double, double } %119, 1
  store double %123, ptr %122, align 8
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %124, i32 0, i32 7
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %125, i32 0, i32 4
  %127 = load ptr, ptr %126, align 8, !tbaa !21
  %128 = load i64, ptr %7, align 8, !tbaa !9
  %129 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %127, i64 %128
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %129, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %130, i32 0, i32 6
  %132 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %131, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !21
  %134 = load i64, ptr %7, align 8, !tbaa !9
  %135 = sub nsw i64 %134, 1
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %133, i64 %135
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %136, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %10, i64 16, i1 false), !tbaa.struct !23
  %137 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %138 = load double, ptr %137, align 8
  %139 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %140 = load double, ptr %139, align 8
  %141 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %142 = load double, ptr %141, align 8
  %143 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %144 = load double, ptr %143, align 8
  %145 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %138, double %140, double %142, double %144)
  %146 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %147 = extractvalue { double, double } %145, 0
  store double %147, ptr %146, align 8
  %148 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %149 = extractvalue { double, double } %145, 1
  store double %149, ptr %148, align 8
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %150, i32 0, i32 6
  %152 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %151, i32 0, i32 4
  %153 = load ptr, ptr %152, align 8, !tbaa !21
  %154 = load i64, ptr %7, align 8, !tbaa !9
  %155 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %153, i64 %154
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %155, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  br label %156

156:                                              ; preds = %88
  %157 = load i64, ptr %7, align 8, !tbaa !9
  %158 = add nsw i64 %157, 1
  store i64 %158, ptr %7, align 8, !tbaa !9
  br label %81, !llvm.loop !24

159:                                              ; preds = %81
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %160, i32 0, i32 3
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %162, i32 0, i32 1
  %164 = load i64, ptr %163, align 8, !tbaa !16
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %161, i64 noundef %164, ptr noundef %165)
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %166, i32 0, i32 4
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %168, i32 0, i32 1
  %170 = load i64, ptr %169, align 8, !tbaa !16
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %167, i64 noundef %170, ptr noundef %171)
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %172, i32 0, i32 3
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %173, i32 0, i32 4
  %175 = load ptr, ptr %174, align 8, !tbaa !21
  %176 = getelementptr inbounds double, ptr %175, i64 0
  store double 1.000000e+00, ptr %176, align 8, !tbaa !22
  store i64 1, ptr %7, align 8, !tbaa !9
  br label %177

177:                                              ; preds = %202, %159
  %178 = load i64, ptr %7, align 8, !tbaa !9
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %179, i32 0, i32 1
  %181 = load i64, ptr %180, align 8, !tbaa !16
  %182 = sub nsw i64 %181, 1
  %183 = icmp sle i64 %178, %182
  br i1 %183, label %184, label %205

184:                                              ; preds = %177
  %185 = load i64, ptr %7, align 8, !tbaa !9
  %186 = sitofp i64 %185 to double
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %187, i32 0, i32 3
  %189 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %188, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !21
  %191 = load i64, ptr %7, align 8, !tbaa !9
  %192 = sub nsw i64 %191, 1
  %193 = getelementptr inbounds double, ptr %190, i64 %192
  %194 = load double, ptr %193, align 8, !tbaa !22
  %195 = fmul double %186, %194
  %196 = load ptr, ptr %4, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %196, i32 0, i32 3
  %198 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %197, i32 0, i32 4
  %199 = load ptr, ptr %198, align 8, !tbaa !21
  %200 = load i64, ptr %7, align 8, !tbaa !9
  %201 = getelementptr inbounds double, ptr %199, i64 %200
  store double %195, ptr %201, align 8, !tbaa !22
  br label %202

202:                                              ; preds = %184
  %203 = load i64, ptr %7, align 8, !tbaa !9
  %204 = add nsw i64 %203, 1
  store i64 %204, ptr %7, align 8, !tbaa !9
  br label %177, !llvm.loop !26

205:                                              ; preds = %177
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %206

206:                                              ; preds = %229, %205
  %207 = load i64, ptr %7, align 8, !tbaa !9
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %208, i32 0, i32 1
  %210 = load i64, ptr %209, align 8, !tbaa !16
  %211 = sub nsw i64 %210, 1
  %212 = icmp sle i64 %207, %211
  br i1 %212, label %213, label %232

213:                                              ; preds = %206
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %214, i32 0, i32 3
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %215, i32 0, i32 4
  %217 = load ptr, ptr %216, align 8, !tbaa !21
  %218 = load i64, ptr %7, align 8, !tbaa !9
  %219 = getelementptr inbounds double, ptr %217, i64 %218
  %220 = load double, ptr %219, align 8, !tbaa !22
  %221 = load ptr, ptr %6, align 8, !tbaa !5
  %222 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %220, ptr noundef %221)
  %223 = load ptr, ptr %4, align 8, !tbaa !5
  %224 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %223, i32 0, i32 4
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %224, i32 0, i32 4
  %226 = load ptr, ptr %225, align 8, !tbaa !21
  %227 = load i64, ptr %7, align 8, !tbaa !9
  %228 = getelementptr inbounds double, ptr %226, i64 %227
  store double %222, ptr %228, align 8, !tbaa !22
  br label %229

229:                                              ; preds = %213
  %230 = load i64, ptr %7, align 8, !tbaa !9
  %231 = add nsw i64 %230, 1
  store i64 %231, ptr %7, align 8, !tbaa !9
  br label %206, !llvm.loop !27

232:                                              ; preds = %206
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %233, i32 0, i32 2
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %235, i32 0, i32 1
  %237 = load i64, ptr %236, align 8, !tbaa !16
  %238 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %234, i64 noundef %237, ptr noundef %238)
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %239, i32 0, i32 1
  %241 = load i64, ptr %240, align 8, !tbaa !16
  %242 = icmp sge i64 %241, 2
  %243 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %242, ptr noundef @.str.717, ptr noundef %243)
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %244, i32 0, i32 2
  %246 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %245, i32 0, i32 4
  %247 = load ptr, ptr %246, align 8, !tbaa !21
  %248 = getelementptr inbounds double, ptr %247, i64 0
  store double 1.000000e+00, ptr %248, align 8, !tbaa !22
  %249 = load ptr, ptr %4, align 8, !tbaa !5
  %250 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %249, i32 0, i32 2
  %251 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %250, i32 0, i32 4
  %252 = load ptr, ptr %251, align 8, !tbaa !21
  %253 = getelementptr inbounds double, ptr %252, i64 1
  store double 1.000000e+00, ptr %253, align 8, !tbaa !22
  store i64 2, ptr %7, align 8, !tbaa !9
  br label %254

254:                                              ; preds = %279, %232
  %255 = load i64, ptr %7, align 8, !tbaa !9
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %256, i32 0, i32 1
  %258 = load i64, ptr %257, align 8, !tbaa !16
  %259 = sub nsw i64 %258, 1
  %260 = icmp sle i64 %255, %259
  br i1 %260, label %261, label %282

261:                                              ; preds = %254
  %262 = load i64, ptr %7, align 8, !tbaa !9
  %263 = sitofp i64 %262 to double
  %264 = load ptr, ptr %4, align 8, !tbaa !5
  %265 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %264, i32 0, i32 2
  %266 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %265, i32 0, i32 4
  %267 = load ptr, ptr %266, align 8, !tbaa !21
  %268 = load i64, ptr %7, align 8, !tbaa !9
  %269 = sub nsw i64 %268, 2
  %270 = getelementptr inbounds double, ptr %267, i64 %269
  %271 = load double, ptr %270, align 8, !tbaa !22
  %272 = fmul double %263, %271
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  %274 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %273, i32 0, i32 2
  %275 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %274, i32 0, i32 4
  %276 = load ptr, ptr %275, align 8, !tbaa !21
  %277 = load i64, ptr %7, align 8, !tbaa !9
  %278 = getelementptr inbounds double, ptr %276, i64 %277
  store double %272, ptr %278, align 8, !tbaa !22
  br label %279

279:                                              ; preds = %261
  %280 = load i64, ptr %7, align 8, !tbaa !9
  %281 = add nsw i64 %280, 1
  store i64 %281, ptr %7, align 8, !tbaa !9
  br label %254, !llvm.loop !28

282:                                              ; preds = %254
  %283 = load i64, ptr %5, align 8, !tbaa !9
  %284 = add nsw i64 %283, 1
  %285 = load i64, ptr %5, align 8, !tbaa !9
  %286 = add nsw i64 %285, 1
  %287 = mul nsw i64 %284, %286
  %288 = load ptr, ptr %4, align 8, !tbaa !5
  %289 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %288, i32 0, i32 9
  %290 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %287, double noundef 0.000000e+00, ptr noundef %289, ptr noundef %290)
  %291 = load i64, ptr %5, align 8, !tbaa !9
  %292 = add nsw i64 %291, 1
  %293 = load i64, ptr %5, align 8, !tbaa !9
  %294 = add nsw i64 %293, 1
  %295 = mul nsw i64 %292, %294
  %296 = load ptr, ptr %4, align 8, !tbaa !5
  %297 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %296, i32 0, i32 10
  %298 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %295, double noundef 0.000000e+00, ptr noundef %297, ptr noundef %298)
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %299

299:                                              ; preds = %356, %282
  %300 = load i64, ptr %8, align 8, !tbaa !9
  %301 = load i64, ptr %5, align 8, !tbaa !9
  %302 = icmp sle i64 %300, %301
  br i1 %302, label %303, label %359

303:                                              ; preds = %299
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %304

304:                                              ; preds = %352, %303
  %305 = load i64, ptr %9, align 8, !tbaa !9
  %306 = load i64, ptr %8, align 8, !tbaa !9
  %307 = sub nsw i64 %306, 1
  %308 = icmp sle i64 %305, %307
  br i1 %308, label %309, label %355

309:                                              ; preds = %304
  %310 = load i64, ptr %8, align 8, !tbaa !9
  %311 = mul nsw i64 2, %310
  %312 = sub nsw i64 %311, 1
  %313 = sitofp i64 %312 to double
  %314 = load i64, ptr %8, align 8, !tbaa !9
  %315 = load i64, ptr %9, align 8, !tbaa !9
  %316 = sub nsw i64 %314, %315
  %317 = sitofp i64 %316 to double
  %318 = fdiv double %313, %317
  %319 = load ptr, ptr %4, align 8, !tbaa !5
  %320 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %319, i32 0, i32 9
  %321 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %320, i32 0, i32 4
  %322 = load ptr, ptr %321, align 8, !tbaa !21
  %323 = load i64, ptr %8, align 8, !tbaa !9
  %324 = load i64, ptr %5, align 8, !tbaa !9
  %325 = add nsw i64 %324, 1
  %326 = mul nsw i64 %323, %325
  %327 = load i64, ptr %9, align 8, !tbaa !9
  %328 = add nsw i64 %326, %327
  %329 = getelementptr inbounds double, ptr %322, i64 %328
  store double %318, ptr %329, align 8, !tbaa !22
  %330 = load i64, ptr %8, align 8, !tbaa !9
  %331 = load i64, ptr %9, align 8, !tbaa !9
  %332 = add nsw i64 %330, %331
  %333 = sub nsw i64 %332, 1
  %334 = sitofp i64 %333 to double
  %335 = fneg double %334
  %336 = load i64, ptr %8, align 8, !tbaa !9
  %337 = load i64, ptr %9, align 8, !tbaa !9
  %338 = sub nsw i64 %336, %337
  %339 = sitofp i64 %338 to double
  %340 = fdiv double %335, %339
  %341 = load ptr, ptr %4, align 8, !tbaa !5
  %342 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %341, i32 0, i32 10
  %343 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %342, i32 0, i32 4
  %344 = load ptr, ptr %343, align 8, !tbaa !21
  %345 = load i64, ptr %8, align 8, !tbaa !9
  %346 = load i64, ptr %5, align 8, !tbaa !9
  %347 = add nsw i64 %346, 1
  %348 = mul nsw i64 %345, %347
  %349 = load i64, ptr %9, align 8, !tbaa !9
  %350 = add nsw i64 %348, %349
  %351 = getelementptr inbounds double, ptr %344, i64 %350
  store double %340, ptr %351, align 8, !tbaa !22
  br label %352

352:                                              ; preds = %309
  %353 = load i64, ptr %9, align 8, !tbaa !9
  %354 = add nsw i64 %353, 1
  store i64 %354, ptr %9, align 8, !tbaa !9
  br label %304, !llvm.loop !29

355:                                              ; preds = %304
  br label %356

356:                                              ; preds = %355
  %357 = load i64, ptr %8, align 8, !tbaa !9
  %358 = add nsw i64 %357, 1
  store i64 %358, ptr %8, align 8, !tbaa !9
  br label %299, !llvm.loop !30

359:                                              ; preds = %299
  %360 = load i64, ptr %5, align 8, !tbaa !9
  %361 = add nsw i64 %360, 1
  %362 = load ptr, ptr %4, align 8, !tbaa !5
  %363 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %362, i32 0, i32 11
  %364 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %361, double noundef 0.000000e+00, ptr noundef %363, ptr noundef %364)
  %365 = load i64, ptr %5, align 8, !tbaa !9
  %366 = add nsw i64 %365, 1
  %367 = load i64, ptr %5, align 8, !tbaa !9
  %368 = add nsw i64 %367, 1
  %369 = mul nsw i64 %366, %368
  %370 = load ptr, ptr %4, align 8, !tbaa !5
  %371 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %370, i32 0, i32 12
  %372 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %369, double noundef 0.000000e+00, ptr noundef %371, ptr noundef %372)
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %373

373:                                              ; preds = %421, %359
  %374 = load i64, ptr %9, align 8, !tbaa !9
  %375 = load i64, ptr %5, align 8, !tbaa !9
  %376 = icmp sle i64 %374, %375
  br i1 %376, label %377, label %424

377:                                              ; preds = %373
  %378 = load ptr, ptr %4, align 8, !tbaa !5
  %379 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %378, i32 0, i32 5
  %380 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %379, i32 0, i32 4
  %381 = load ptr, ptr %380, align 8, !tbaa !21
  %382 = load i64, ptr %9, align 8, !tbaa !9
  %383 = getelementptr inbounds double, ptr %381, i64 %382
  %384 = load double, ptr %383, align 8, !tbaa !22
  %385 = load ptr, ptr %4, align 8, !tbaa !5
  %386 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %385, i32 0, i32 2
  %387 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %386, i32 0, i32 4
  %388 = load ptr, ptr %387, align 8, !tbaa !21
  %389 = load i64, ptr %9, align 8, !tbaa !9
  %390 = mul nsw i64 2, %389
  %391 = sub nsw i64 %390, 1
  %392 = load ptr, ptr %6, align 8, !tbaa !5
  %393 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %391, i64 noundef 0, ptr noundef %392)
  %394 = getelementptr inbounds double, ptr %388, i64 %393
  %395 = load double, ptr %394, align 8, !tbaa !22
  %396 = fmul double %384, %395
  %397 = load ptr, ptr %4, align 8, !tbaa !5
  %398 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %397, i32 0, i32 11
  %399 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %398, i32 0, i32 4
  %400 = load ptr, ptr %399, align 8, !tbaa !21
  %401 = load i64, ptr %9, align 8, !tbaa !9
  %402 = getelementptr inbounds double, ptr %400, i64 %401
  store double %396, ptr %402, align 8, !tbaa !22
  %403 = load ptr, ptr %4, align 8, !tbaa !5
  %404 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %403, i32 0, i32 11
  %405 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %404, i32 0, i32 4
  %406 = load ptr, ptr %405, align 8, !tbaa !21
  %407 = load i64, ptr %9, align 8, !tbaa !9
  %408 = getelementptr inbounds double, ptr %406, i64 %407
  %409 = load double, ptr %408, align 8, !tbaa !22
  %410 = load ptr, ptr %4, align 8, !tbaa !5
  %411 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %410, i32 0, i32 12
  %412 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %411, i32 0, i32 4
  %413 = load ptr, ptr %412, align 8, !tbaa !21
  %414 = load i64, ptr %9, align 8, !tbaa !9
  %415 = load i64, ptr %5, align 8, !tbaa !9
  %416 = add nsw i64 %415, 1
  %417 = mul nsw i64 %414, %416
  %418 = load i64, ptr %9, align 8, !tbaa !9
  %419 = add nsw i64 %417, %418
  %420 = getelementptr inbounds double, ptr %413, i64 %419
  store double %409, ptr %420, align 8, !tbaa !22
  br label %421

421:                                              ; preds = %377
  %422 = load i64, ptr %9, align 8, !tbaa !9
  %423 = add nsw i64 %422, 1
  store i64 %423, ptr %9, align 8, !tbaa !9
  br label %373, !llvm.loop !31

424:                                              ; preds = %373
  %425 = load i64, ptr %5, align 8, !tbaa !9
  %426 = add nsw i64 %425, 1
  %427 = load i64, ptr %5, align 8, !tbaa !9
  %428 = add nsw i64 %427, 1
  %429 = mul nsw i64 %426, %428
  %430 = load ptr, ptr %4, align 8, !tbaa !5
  %431 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %430, i32 0, i32 8
  %432 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %429, double noundef 0.000000e+00, ptr noundef %431, ptr noundef %432)
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %433

433:                                              ; preds = %485, %424
  %434 = load i64, ptr %8, align 8, !tbaa !9
  %435 = load i64, ptr %5, align 8, !tbaa !9
  %436 = icmp sle i64 %434, %435
  br i1 %436, label %437, label %488

437:                                              ; preds = %433
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %438

438:                                              ; preds = %481, %437
  %439 = load i64, ptr %9, align 8, !tbaa !9
  %440 = load i64, ptr %8, align 8, !tbaa !9
  %441 = icmp sle i64 %439, %440
  br i1 %441, label %442, label %484

442:                                              ; preds = %438
  %443 = load ptr, ptr %4, align 8, !tbaa !5
  %444 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %443, i32 0, i32 5
  %445 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %444, i32 0, i32 4
  %446 = load ptr, ptr %445, align 8, !tbaa !21
  %447 = load i64, ptr %9, align 8, !tbaa !9
  %448 = getelementptr inbounds double, ptr %446, i64 %447
  %449 = load double, ptr %448, align 8, !tbaa !22
  %450 = load ptr, ptr %4, align 8, !tbaa !5
  %451 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %450, i32 0, i32 4
  %452 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %451, i32 0, i32 4
  %453 = load ptr, ptr %452, align 8, !tbaa !21
  %454 = load i64, ptr %8, align 8, !tbaa !9
  %455 = load i64, ptr %9, align 8, !tbaa !9
  %456 = sub nsw i64 %454, %455
  %457 = getelementptr inbounds double, ptr %453, i64 %456
  %458 = load double, ptr %457, align 8, !tbaa !22
  %459 = fmul double %449, %458
  %460 = load ptr, ptr %4, align 8, !tbaa !5
  %461 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %460, i32 0, i32 4
  %462 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %461, i32 0, i32 4
  %463 = load ptr, ptr %462, align 8, !tbaa !21
  %464 = load i64, ptr %8, align 8, !tbaa !9
  %465 = load i64, ptr %9, align 8, !tbaa !9
  %466 = add nsw i64 %464, %465
  %467 = getelementptr inbounds double, ptr %463, i64 %466
  %468 = load double, ptr %467, align 8, !tbaa !22
  %469 = fdiv double %459, %468
  %470 = load ptr, ptr %4, align 8, !tbaa !5
  %471 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %470, i32 0, i32 8
  %472 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %471, i32 0, i32 4
  %473 = load ptr, ptr %472, align 8, !tbaa !21
  %474 = load i64, ptr %8, align 8, !tbaa !9
  %475 = load i64, ptr %5, align 8, !tbaa !9
  %476 = add nsw i64 %475, 1
  %477 = mul nsw i64 %474, %476
  %478 = load i64, ptr %9, align 8, !tbaa !9
  %479 = add nsw i64 %477, %478
  %480 = getelementptr inbounds double, ptr %473, i64 %479
  store double %469, ptr %480, align 8, !tbaa !22
  br label %481

481:                                              ; preds = %442
  %482 = load i64, ptr %9, align 8, !tbaa !9
  %483 = add nsw i64 %482, 1
  store i64 %483, ptr %9, align 8, !tbaa !9
  br label %438, !llvm.loop !32

484:                                              ; preds = %438
  br label %485

485:                                              ; preds = %484
  %486 = load i64, ptr %8, align 8, !tbaa !9
  %487 = add nsw i64 %486, 1
  store i64 %487, ptr %8, align 8, !tbaa !9
  br label %433, !llvm.loop !33

488:                                              ; preds = %433
  %489 = load i64, ptr %5, align 8, !tbaa !9
  %490 = add nsw i64 %489, 1
  %491 = load i64, ptr %5, align 8, !tbaa !9
  %492 = add nsw i64 %491, 1
  %493 = mul nsw i64 %490, %492
  %494 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 0.000000e+00)
  %495 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %496 = extractvalue { double, double } %494, 0
  store double %496, ptr %495, align 8
  %497 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %498 = extractvalue { double, double } %494, 1
  store double %498, ptr %497, align 8
  %499 = load ptr, ptr %4, align 8, !tbaa !5
  %500 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %499, i32 0, i32 15
  %501 = load ptr, ptr %6, align 8, !tbaa !5
  %502 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %503 = load double, ptr %502, align 8
  %504 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %505 = load double, ptr %504, align 8
  call void @_ZN11alglib_impl10csetallocvElNS_10ae_complexEPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %493, double %503, double %505, ptr noundef %500, ptr noundef %501)
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %506

506:                                              ; preds = %573, %488
  %507 = load i64, ptr %8, align 8, !tbaa !9
  %508 = load i64, ptr %5, align 8, !tbaa !9
  %509 = icmp sle i64 %507, %508
  br i1 %509, label %510, label %576

510:                                              ; preds = %506
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %511

511:                                              ; preds = %569, %510
  %512 = load i64, ptr %9, align 8, !tbaa !9
  %513 = load i64, ptr %8, align 8, !tbaa !9
  %514 = icmp sle i64 %512, %513
  br i1 %514, label %515, label %572

515:                                              ; preds = %511
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %516 = load ptr, ptr %4, align 8, !tbaa !5
  %517 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %516, i32 0, i32 7
  %518 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %517, i32 0, i32 4
  %519 = load ptr, ptr %518, align 8, !tbaa !21
  %520 = load i64, ptr %9, align 8, !tbaa !9
  %521 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %519, i64 %520
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %521, i64 16, i1 false), !tbaa.struct !23
  %522 = load ptr, ptr %4, align 8, !tbaa !5
  %523 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %522, i32 0, i32 5
  %524 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %523, i32 0, i32 4
  %525 = load ptr, ptr %524, align 8, !tbaa !21
  %526 = load i64, ptr %8, align 8, !tbaa !9
  %527 = getelementptr inbounds double, ptr %525, i64 %526
  %528 = load double, ptr %527, align 8, !tbaa !22
  %529 = load ptr, ptr %4, align 8, !tbaa !5
  %530 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %529, i32 0, i32 4
  %531 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %530, i32 0, i32 4
  %532 = load ptr, ptr %531, align 8, !tbaa !21
  %533 = load i64, ptr %8, align 8, !tbaa !9
  %534 = load i64, ptr %9, align 8, !tbaa !9
  %535 = add nsw i64 %533, %534
  %536 = getelementptr inbounds double, ptr %532, i64 %535
  %537 = load double, ptr %536, align 8, !tbaa !22
  %538 = load ptr, ptr %4, align 8, !tbaa !5
  %539 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %538, i32 0, i32 4
  %540 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %539, i32 0, i32 4
  %541 = load ptr, ptr %540, align 8, !tbaa !21
  %542 = load i64, ptr %8, align 8, !tbaa !9
  %543 = load i64, ptr %9, align 8, !tbaa !9
  %544 = sub nsw i64 %542, %543
  %545 = getelementptr inbounds double, ptr %541, i64 %544
  %546 = load double, ptr %545, align 8, !tbaa !22
  %547 = fmul double %537, %546
  %548 = fdiv double %528, %547
  %549 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %550 = load double, ptr %549, align 8
  %551 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %552 = load double, ptr %551, align 8
  %553 = call { double, double } @_ZN11alglib_impl10ae_c_mul_dENS_10ae_complexEd(double %550, double %552, double noundef %548)
  %554 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %555 = extractvalue { double, double } %553, 0
  store double %555, ptr %554, align 8
  %556 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %557 = extractvalue { double, double } %553, 1
  store double %557, ptr %556, align 8
  %558 = load ptr, ptr %4, align 8, !tbaa !5
  %559 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %558, i32 0, i32 15
  %560 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %559, i32 0, i32 4
  %561 = load ptr, ptr %560, align 8, !tbaa !21
  %562 = load i64, ptr %8, align 8, !tbaa !9
  %563 = load i64, ptr %5, align 8, !tbaa !9
  %564 = add nsw i64 %563, 1
  %565 = mul nsw i64 %562, %564
  %566 = load i64, ptr %9, align 8, !tbaa !9
  %567 = add nsw i64 %565, %566
  %568 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %561, i64 %567
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %568, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  br label %569

569:                                              ; preds = %515
  %570 = load i64, ptr %9, align 8, !tbaa !9
  %571 = add nsw i64 %570, 1
  store i64 %571, ptr %9, align 8, !tbaa !9
  br label %511, !llvm.loop !34

572:                                              ; preds = %511
  br label %573

573:                                              ; preds = %572
  %574 = load i64, ptr %8, align 8, !tbaa !9
  %575 = add nsw i64 %574, 1
  store i64 %575, ptr %8, align 8, !tbaa !9
  br label %506, !llvm.loop !35

576:                                              ; preds = %506
  %577 = load i64, ptr %5, align 8, !tbaa !9
  %578 = add nsw i64 %577, 1
  %579 = load ptr, ptr %4, align 8, !tbaa !5
  %580 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %579, i32 0, i32 13
  %581 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %578, double noundef 0.000000e+00, ptr noundef %580, ptr noundef %581)
  %582 = load i64, ptr %5, align 8, !tbaa !9
  %583 = add nsw i64 %582, 1
  %584 = load ptr, ptr %4, align 8, !tbaa !5
  %585 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %584, i32 0, i32 14
  %586 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %583, double noundef 0.000000e+00, ptr noundef %585, ptr noundef %586)
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %587

587:                                              ; preds = %635, %576
  %588 = load i64, ptr %8, align 8, !tbaa !9
  %589 = load i64, ptr %5, align 8, !tbaa !9
  %590 = icmp sle i64 %588, %589
  br i1 %590, label %591, label %638

591:                                              ; preds = %587
  %592 = load ptr, ptr %4, align 8, !tbaa !5
  %593 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %592, i32 0, i32 5
  %594 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %593, i32 0, i32 4
  %595 = load ptr, ptr %594, align 8, !tbaa !21
  %596 = load i64, ptr %8, align 8, !tbaa !9
  %597 = getelementptr inbounds double, ptr %595, i64 %596
  %598 = load double, ptr %597, align 8, !tbaa !22
  %599 = fneg double %598
  %600 = load i64, ptr %8, align 8, !tbaa !9
  %601 = mul nsw i64 2, %600
  %602 = sub nsw i64 %601, 1
  %603 = sitofp i64 %602 to double
  %604 = fdiv double %599, %603
  %605 = load ptr, ptr %4, align 8, !tbaa !5
  %606 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %605, i32 0, i32 14
  %607 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %606, i32 0, i32 4
  %608 = load ptr, ptr %607, align 8, !tbaa !21
  %609 = load i64, ptr %8, align 8, !tbaa !9
  %610 = getelementptr inbounds double, ptr %608, i64 %609
  store double %604, ptr %610, align 8, !tbaa !22
  %611 = load i64, ptr %8, align 8, !tbaa !9
  %612 = load i64, ptr %5, align 8, !tbaa !9
  %613 = sub nsw i64 %612, 2
  %614 = icmp sle i64 %611, %613
  br i1 %614, label %615, label %634

615:                                              ; preds = %591
  %616 = load ptr, ptr %4, align 8, !tbaa !5
  %617 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %616, i32 0, i32 5
  %618 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %617, i32 0, i32 4
  %619 = load ptr, ptr %618, align 8, !tbaa !21
  %620 = load i64, ptr %8, align 8, !tbaa !9
  %621 = getelementptr inbounds double, ptr %619, i64 %620
  %622 = load double, ptr %621, align 8, !tbaa !22
  %623 = load i64, ptr %8, align 8, !tbaa !9
  %624 = mul nsw i64 2, %623
  %625 = add nsw i64 %624, 3
  %626 = sitofp i64 %625 to double
  %627 = fdiv double %622, %626
  %628 = load ptr, ptr %4, align 8, !tbaa !5
  %629 = getelementptr inbounds %"struct.alglib_impl::biharmonicevaluator", ptr %628, i32 0, i32 13
  %630 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %629, i32 0, i32 4
  %631 = load ptr, ptr %630, align 8, !tbaa !21
  %632 = load i64, ptr %8, align 8, !tbaa !9
  %633 = getelementptr inbounds double, ptr %631, i64 %632
  store double %627, ptr %633, align 8, !tbaa !22
  br label %634

634:                                              ; preds = %615, %591
  br label %635

635:                                              ; preds = %634
  %636 = load i64, ptr %8, align 8, !tbaa !9
  %637 = add nsw i64 %636, 1
  store i64 %637, ptr %8, align 8, !tbaa !9
  br label %587, !llvm.loop !36

638:                                              ; preds = %587
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void
}

declare { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double, double, double, double) #1

declare void @_ZN11alglib_impl10csetallocvElNS_10ae_complexEPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double, double, ptr noundef, ptr noundef) #1

declare { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef) #1

declare { double, double } @_ZN11alglib_impl10ae_c_mul_dENS_10ae_complexEd(double, double, double noundef) #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl19biharmonicevaluatorE", !10, i64 0, !10, i64 8, !13, i64 16, !13, i64 80, !13, i64 144, !13, i64 208, !13, i64 272, !13, i64 336, !13, i64 400, !13, i64 464, !13, i64 528, !13, i64 592, !13, i64 656, !13, i64 720, !13, i64 784, !13, i64 848}
!13 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !14, i64 16, !15, i64 24, !7, i64 56}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!12, !10, i64 8}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTSN11alglib_impl10ae_complexE", !19, i64 0, !19, i64 8}
!19 = !{!"double", !7, i64 0}
!20 = !{!18, !19, i64 8}
!21 = !{!7, !7, i64 0}
!22 = !{!19, !19, i64 0}
!23 = !{i64 0, i64 8, !22, i64 8, i64 8, !22}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !25}
!29 = distinct !{!29, !25}
!30 = distinct !{!30, !25}
!31 = distinct !{!31, !25}
!32 = distinct !{!32, !25}
!33 = distinct !{!33, !25}
!34 = distinct !{!34, !25}
!35 = distinct !{!35, !25}
!36 = distinct !{!36, !25}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_complex" = type { double, double }

@.str.716 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.717 = external hidden unnamed_addr constant [53 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl23biharmonicevaluatorinitEPNS_19biharmonicevaluatorElPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = icmp sgt i64 %1, 1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %4, ptr noundef nonnull @.str.716, ptr noundef %2)
  store i64 %1, ptr %0, align 8, !tbaa !5
  %5 = shl nsw i64 %1, 1
  %6 = add nsw i64 %5, 3
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %6, ptr %7, align 8, !tbaa !14
  %8 = getelementptr inbounds i8, ptr %0, i64 208
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %6, ptr noundef %2)
  %9 = getelementptr inbounds i8, ptr %0, i64 336
  %10 = load i64, ptr %7, align 8, !tbaa !14
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %10, ptr noundef %2)
  %11 = getelementptr inbounds i8, ptr %0, i64 272
  %12 = load i64, ptr %7, align 8, !tbaa !14
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %12, ptr noundef %2)
  %13 = getelementptr inbounds i8, ptr %0, i64 264
  %14 = load ptr, ptr %13, align 8, !tbaa !15
  store double 1.000000e+00, ptr %14, align 8, !tbaa !16
  %15 = tail call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %16 = extractvalue { double, double } %15, 0
  %17 = extractvalue { double, double } %15, 1
  %18 = getelementptr inbounds i8, ptr %0, i64 392
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  store double %16, ptr %19, align 8, !tbaa !16
  %.sroa.419.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  store double %17, ptr %.sroa.419.0..sroa_idx, align 8, !tbaa !16
  %20 = tail call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %21 = extractvalue { double, double } %20, 0
  %22 = extractvalue { double, double } %20, 1
  %23 = getelementptr inbounds i8, ptr %0, i64 328
  %24 = load ptr, ptr %23, align 8, !tbaa !15
  store double %21, ptr %24, align 8, !tbaa !16
  %.sroa.417.0..sroa_idx = getelementptr inbounds i8, ptr %24, i64 8
  store double %22, ptr %.sroa.417.0..sroa_idx, align 8, !tbaa !16
  %25 = load i64, ptr %7, align 8, !tbaa !14
  %.not.not237 = icmp sgt i64 %25, 1
  br i1 %.not.not237, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3, %.lr.ph
  %.0238 = phi i64 [ %46, %.lr.ph ], [ 1, %3 ]
  %26 = load ptr, ptr %13, align 8, !tbaa !15
  %27 = add nsw i64 %.0238, -1
  %28 = getelementptr inbounds double, ptr %26, i64 %27
  %29 = load double, ptr %28, align 8, !tbaa !16
  %30 = fneg double %29
  %31 = getelementptr inbounds double, ptr %26, i64 %.0238
  store double %30, ptr %31, align 8, !tbaa !16
  %32 = load ptr, ptr %18, align 8, !tbaa !15
  %33 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %32, i64 %27
  %.sroa.012.0.copyload = load double, ptr %33, align 8, !tbaa !16
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %33, i64 8
  %.sroa.213.0.copyload = load double, ptr %.sroa.213.0..sroa_idx, align 8, !tbaa !16
  %34 = tail call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %.sroa.012.0.copyload, double %.sroa.213.0.copyload, double 0.000000e+00, double -1.000000e+00)
  %35 = extractvalue { double, double } %34, 0
  %36 = extractvalue { double, double } %34, 1
  %37 = load ptr, ptr %18, align 8, !tbaa !15
  %38 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %37, i64 %.0238
  store double %35, ptr %38, align 8, !tbaa !16
  %.sroa.415.0..sroa_idx = getelementptr inbounds i8, ptr %38, i64 8
  store double %36, ptr %.sroa.415.0..sroa_idx, align 8, !tbaa !16
  %39 = load ptr, ptr %23, align 8, !tbaa !15
  %40 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %39, i64 %27
  %.sroa.06.0.copyload = load double, ptr %40, align 8, !tbaa !16
  %.sroa.27.0..sroa_idx = getelementptr inbounds i8, ptr %40, i64 8
  %.sroa.27.0.copyload = load double, ptr %.sroa.27.0..sroa_idx, align 8, !tbaa !16
  %41 = tail call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %.sroa.06.0.copyload, double %.sroa.27.0.copyload, double 0.000000e+00, double 1.000000e+00)
  %42 = extractvalue { double, double } %41, 0
  %43 = extractvalue { double, double } %41, 1
  %44 = load ptr, ptr %23, align 8, !tbaa !15
  %45 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %44, i64 %.0238
  store double %42, ptr %45, align 8, !tbaa !16
  %.sroa.49.0..sroa_idx = getelementptr inbounds i8, ptr %45, i64 8
  store double %43, ptr %.sroa.49.0..sroa_idx, align 8, !tbaa !16
  %46 = add nuw nsw i64 %.0238, 1
  %47 = load i64, ptr %7, align 8, !tbaa !14
  %.not.not = icmp slt i64 %46, %47
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph, %3
  %.lcssa236 = phi i64 [ %25, %3 ], [ %47, %.lr.ph ]
  %48 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %48, i64 noundef %.lcssa236, ptr noundef %2)
  %49 = getelementptr inbounds i8, ptr %0, i64 144
  %50 = load i64, ptr %7, align 8, !tbaa !14
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %49, i64 noundef %50, ptr noundef %2)
  %51 = getelementptr inbounds i8, ptr %0, i64 136
  %52 = load ptr, ptr %51, align 8, !tbaa !15
  store double 1.000000e+00, ptr %52, align 8, !tbaa !16
  %53 = load i64, ptr %7, align 8, !tbaa !14
  %.not.not221239 = icmp sgt i64 %53, 1
  br i1 %.not.not221239, label %.lr.ph242.preheader, label %.preheader235

.lr.ph242.preheader:                              ; preds = %._crit_edge
  %54 = add nsw i64 %53, -1
  %xtraiter = and i64 %54, 1
  %55 = icmp eq i64 %53, 2
  br i1 %55, label %.preheader235.loopexit.unr-lcssa, label %.lr.ph242.preheader.new

.lr.ph242.preheader.new:                          ; preds = %.lr.ph242.preheader
  %unroll_iter = and i64 %54, -2
  br label %.lr.ph242

.preheader235.loopexit.unr-lcssa:                 ; preds = %.lr.ph242, %.lr.ph242.preheader
  %.1240.unr = phi i64 [ 1, %.lr.ph242.preheader ], [ %76, %.lr.ph242 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader235, label %.lr.ph242.epil

.lr.ph242.epil:                                   ; preds = %.preheader235.loopexit.unr-lcssa
  %56 = uitofp nneg i64 %.1240.unr to double
  %57 = load ptr, ptr %51, align 8, !tbaa !15
  %58 = getelementptr double, ptr %57, i64 %.1240.unr
  %59 = getelementptr i8, ptr %58, i64 -8
  %60 = load double, ptr %59, align 8, !tbaa !16
  %61 = fmul double %60, %56
  store double %61, ptr %58, align 8, !tbaa !16
  br label %.preheader235

.preheader235:                                    ; preds = %.lr.ph242.epil, %.preheader235.loopexit.unr-lcssa, %._crit_edge
  %.not.not222243 = icmp sgt i64 %53, 0
  br i1 %.not.not222243, label %.lr.ph245, label %._crit_edge246

.lr.ph245:                                        ; preds = %.preheader235
  %62 = getelementptr inbounds i8, ptr %0, i64 200
  br label %77

.lr.ph242:                                        ; preds = %.lr.ph242, %.lr.ph242.preheader.new
  %.1240 = phi i64 [ 1, %.lr.ph242.preheader.new ], [ %76, %.lr.ph242 ]
  %niter = phi i64 [ 0, %.lr.ph242.preheader.new ], [ %niter.next.1, %.lr.ph242 ]
  %63 = uitofp nneg i64 %.1240 to double
  %64 = load ptr, ptr %51, align 8, !tbaa !15
  %65 = getelementptr double, ptr %64, i64 %.1240
  %66 = getelementptr i8, ptr %65, i64 -8
  %67 = load double, ptr %66, align 8, !tbaa !16
  %68 = fmul double %67, %63
  store double %68, ptr %65, align 8, !tbaa !16
  %69 = add nuw nsw i64 %.1240, 1
  %70 = uitofp nneg i64 %69 to double
  %71 = load ptr, ptr %51, align 8, !tbaa !15
  %72 = getelementptr double, ptr %71, i64 %69
  %73 = getelementptr i8, ptr %72, i64 -8
  %74 = load double, ptr %73, align 8, !tbaa !16
  %75 = fmul double %74, %70
  store double %75, ptr %72, align 8, !tbaa !16
  %76 = add nuw nsw i64 %.1240, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader235.loopexit.unr-lcssa, label %.lr.ph242, !llvm.loop !20

77:                                               ; preds = %.lr.ph245, %77
  %.2244 = phi i64 [ 0, %.lr.ph245 ], [ %84, %77 ]
  %78 = load ptr, ptr %51, align 8, !tbaa !15
  %79 = getelementptr inbounds double, ptr %78, i64 %.2244
  %80 = load double, ptr %79, align 8, !tbaa !16
  %81 = tail call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %80, ptr noundef %2)
  %82 = load ptr, ptr %62, align 8, !tbaa !15
  %83 = getelementptr inbounds double, ptr %82, i64 %.2244
  store double %81, ptr %83, align 8, !tbaa !16
  %84 = add nuw nsw i64 %.2244, 1
  %85 = load i64, ptr %7, align 8, !tbaa !14
  %.not.not222 = icmp slt i64 %84, %85
  br i1 %.not.not222, label %77, label %._crit_edge246, !llvm.loop !21

._crit_edge246:                                   ; preds = %77, %.preheader235
  %.lcssa = phi i64 [ %53, %.preheader235 ], [ %85, %77 ]
  %86 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %86, i64 noundef %.lcssa, ptr noundef %2)
  %87 = load i64, ptr %7, align 8, !tbaa !14
  %88 = icmp sgt i64 %87, 1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %88, ptr noundef nonnull @.str.717, ptr noundef %2)
  %89 = getelementptr inbounds i8, ptr %0, i64 72
  %90 = load ptr, ptr %89, align 8, !tbaa !15
  store double 1.000000e+00, ptr %90, align 8, !tbaa !16
  %91 = load ptr, ptr %89, align 8, !tbaa !15
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  store double 1.000000e+00, ptr %92, align 8, !tbaa !16
  %93 = load i64, ptr %7, align 8, !tbaa !14
  %.not.not223248 = icmp sgt i64 %93, 2
  br i1 %.not.not223248, label %.lr.ph251.preheader, label %._crit_edge252

.lr.ph251.preheader:                              ; preds = %._crit_edge246
  %xtraiter299 = and i64 %93, 1
  %94 = icmp eq i64 %93, 3
  br i1 %94, label %._crit_edge252.loopexit.unr-lcssa, label %.lr.ph251.preheader.new

.lr.ph251.preheader.new:                          ; preds = %.lr.ph251.preheader
  %95 = and i64 %93, 9223372036854775806
  %96 = add nsw i64 %95, -4
  br label %.lr.ph251

.lr.ph251:                                        ; preds = %.lr.ph251, %.lr.ph251.preheader.new
  %.3249 = phi i64 [ 2, %.lr.ph251.preheader.new ], [ %110, %.lr.ph251 ]
  %niter302 = phi i64 [ 0, %.lr.ph251.preheader.new ], [ %niter302.next.1, %.lr.ph251 ]
  %97 = uitofp nneg i64 %.3249 to double
  %98 = load ptr, ptr %89, align 8, !tbaa !15
  %99 = getelementptr double, ptr %98, i64 %.3249
  %100 = getelementptr i8, ptr %99, i64 -16
  %101 = load double, ptr %100, align 8, !tbaa !16
  %102 = fmul double %101, %97
  store double %102, ptr %99, align 8, !tbaa !16
  %103 = or disjoint i64 %.3249, 1
  %104 = uitofp nneg i64 %103 to double
  %105 = load ptr, ptr %89, align 8, !tbaa !15
  %106 = getelementptr double, ptr %105, i64 %103
  %107 = getelementptr i8, ptr %106, i64 -16
  %108 = load double, ptr %107, align 8, !tbaa !16
  %109 = fmul double %108, %104
  store double %109, ptr %106, align 8, !tbaa !16
  %110 = add nuw nsw i64 %.3249, 2
  %niter302.next.1 = add i64 %niter302, 2
  %niter302.ncmp.1 = icmp eq i64 %niter302, %96
  br i1 %niter302.ncmp.1, label %._crit_edge252.loopexit.unr-lcssa, label %.lr.ph251, !llvm.loop !22

._crit_edge252.loopexit.unr-lcssa:                ; preds = %.lr.ph251, %.lr.ph251.preheader
  %.3249.unr = phi i64 [ 2, %.lr.ph251.preheader ], [ %110, %.lr.ph251 ]
  %lcmp.mod300.not = icmp eq i64 %xtraiter299, 0
  br i1 %lcmp.mod300.not, label %._crit_edge252, label %.lr.ph251.epil

.lr.ph251.epil:                                   ; preds = %._crit_edge252.loopexit.unr-lcssa
  %111 = uitofp nneg i64 %.3249.unr to double
  %112 = load ptr, ptr %89, align 8, !tbaa !15
  %113 = getelementptr double, ptr %112, i64 %.3249.unr
  %114 = getelementptr i8, ptr %113, i64 -16
  %115 = load double, ptr %114, align 8, !tbaa !16
  %116 = fmul double %115, %111
  store double %116, ptr %113, align 8, !tbaa !16
  br label %._crit_edge252

._crit_edge252:                                   ; preds = %.lr.ph251.epil, %._crit_edge252.loopexit.unr-lcssa, %._crit_edge246
  %117 = add nsw i64 %1, 1
  %118 = mul nsw i64 %117, %117
  %119 = getelementptr inbounds i8, ptr %0, i64 464
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %118, double noundef 0.000000e+00, ptr noundef nonnull %119, ptr noundef %2)
  %120 = getelementptr inbounds i8, ptr %0, i64 528
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %118, double noundef 0.000000e+00, ptr noundef nonnull %120, ptr noundef %2)
  %.not257 = icmp slt i64 %1, 0
  br i1 %.not257, label %._crit_edge264.thread.critedge, label %.preheader234.lr.ph

.preheader234.lr.ph:                              ; preds = %._crit_edge252
  %121 = getelementptr inbounds i8, ptr %0, i64 520
  %122 = getelementptr inbounds i8, ptr %0, i64 584
  br label %.preheader234

.preheader234:                                    ; preds = %.preheader234.lr.ph, %._crit_edge256
  %.0212258 = phi i64 [ 0, %.preheader234.lr.ph ], [ %142, %._crit_edge256 ]
  %.not232.not253.not = icmp eq i64 %.0212258, 0
  br i1 %.not232.not253.not, label %._crit_edge256, label %.lr.ph255

.lr.ph255:                                        ; preds = %.preheader234
  %123 = shl nuw nsw i64 %.0212258, 1
  %124 = add nsw i64 %123, -1
  %125 = sitofp i64 %124 to double
  %126 = mul nuw nsw i64 %.0212258, %117
  %127 = add nsw i64 %.0212258, -1
  br label %128

128:                                              ; preds = %.lr.ph255, %128
  %.0216254 = phi i64 [ 0, %.lr.ph255 ], [ %141, %128 ]
  %129 = sub nsw i64 %.0212258, %.0216254
  %130 = sitofp i64 %129 to double
  %131 = fdiv double %125, %130
  %132 = load ptr, ptr %121, align 8, !tbaa !15
  %133 = add nuw nsw i64 %.0216254, %126
  %134 = getelementptr inbounds double, ptr %132, i64 %133
  store double %131, ptr %134, align 8, !tbaa !16
  %135 = add nuw i64 %127, %.0216254
  %136 = sitofp i64 %135 to double
  %137 = fneg double %136
  %138 = fdiv double %137, %130
  %139 = load ptr, ptr %122, align 8, !tbaa !15
  %140 = getelementptr inbounds double, ptr %139, i64 %133
  store double %138, ptr %140, align 8, !tbaa !16
  %141 = add nuw nsw i64 %.0216254, 1
  %exitcond282.not = icmp eq i64 %141, %.0212258
  br i1 %exitcond282.not, label %._crit_edge256, label %128, !llvm.loop !23

._crit_edge256:                                   ; preds = %128, %.preheader234
  %142 = add nuw i64 %.0212258, 1
  %exitcond283.not = icmp eq i64 %.0212258, %1
  br i1 %exitcond283.not, label %._crit_edge259, label %.preheader234, !llvm.loop !24

._crit_edge259:                                   ; preds = %._crit_edge256
  %143 = getelementptr inbounds i8, ptr %0, i64 592
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %117, double noundef 0.000000e+00, ptr noundef nonnull %143, ptr noundef %2)
  %144 = getelementptr inbounds i8, ptr %0, i64 656
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %118, double noundef 0.000000e+00, ptr noundef nonnull %144, ptr noundef %2)
  br i1 %.not257, label %._crit_edge264.thread, label %.lr.ph263

._crit_edge264.thread.critedge:                   ; preds = %._crit_edge252
  %145 = getelementptr inbounds i8, ptr %0, i64 592
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %117, double noundef 0.000000e+00, ptr noundef nonnull %145, ptr noundef %2)
  %146 = getelementptr inbounds i8, ptr %0, i64 656
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %118, double noundef 0.000000e+00, ptr noundef nonnull %146, ptr noundef %2)
  br label %._crit_edge264.thread

._crit_edge264.thread:                            ; preds = %._crit_edge264.thread.critedge, %._crit_edge259
  %147 = getelementptr inbounds i8, ptr %0, i64 400
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %118, double noundef 0.000000e+00, ptr noundef nonnull %147, ptr noundef %2)
  br label %._crit_edge268

.lr.ph263:                                        ; preds = %._crit_edge259
  %148 = getelementptr inbounds i8, ptr %0, i64 648
  %149 = getelementptr inbounds i8, ptr %0, i64 712
  %.1217231 = add nuw i64 %1, 2
  br label %150

150:                                              ; preds = %.lr.ph263, %150
  %.1217261 = phi i64 [ 0, %.lr.ph263 ], [ %169, %150 ]
  %151 = load ptr, ptr %13, align 8, !tbaa !15
  %152 = getelementptr inbounds double, ptr %151, i64 %.1217261
  %153 = load double, ptr %152, align 8, !tbaa !16
  %154 = load ptr, ptr %89, align 8, !tbaa !15
  %155 = shl nuw nsw i64 %.1217261, 1
  %156 = add nsw i64 %155, -1
  %157 = tail call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %156, i64 noundef 0, ptr noundef %2)
  %158 = getelementptr inbounds double, ptr %154, i64 %157
  %159 = load double, ptr %158, align 8, !tbaa !16
  %160 = fmul double %153, %159
  %161 = load ptr, ptr %148, align 8, !tbaa !15
  %162 = getelementptr inbounds double, ptr %161, i64 %.1217261
  store double %160, ptr %162, align 8, !tbaa !16
  %163 = load ptr, ptr %148, align 8, !tbaa !15
  %164 = getelementptr inbounds double, ptr %163, i64 %.1217261
  %165 = load double, ptr %164, align 8, !tbaa !16
  %166 = load ptr, ptr %149, align 8, !tbaa !15
  %167 = mul i64 %.1217261, %.1217231
  %168 = getelementptr inbounds double, ptr %166, i64 %167
  store double %165, ptr %168, align 8, !tbaa !16
  %169 = add nuw i64 %.1217261, 1
  %exitcond284.not = icmp eq i64 %.1217261, %1
  br i1 %exitcond284.not, label %._crit_edge264, label %150, !llvm.loop !25

._crit_edge264:                                   ; preds = %150
  %170 = getelementptr inbounds i8, ptr %0, i64 400
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %118, double noundef 0.000000e+00, ptr noundef nonnull %170, ptr noundef %2)
  br i1 %.not257, label %._crit_edge272.critedge, label %.preheader233.lr.ph

.preheader233.lr.ph:                              ; preds = %._crit_edge264
  %171 = getelementptr inbounds i8, ptr %0, i64 200
  %172 = getelementptr inbounds i8, ptr %0, i64 456
  br label %.preheader233

.preheader233:                                    ; preds = %.preheader233.lr.ph, %223
  %indvars.iv = phi i64 [ 1, %.preheader233.lr.ph ], [ %indvars.iv.next, %223 ]
  %.1213267 = phi i64 [ 0, %.preheader233.lr.ph ], [ %224, %223 ]
  %173 = mul nuw nsw i64 %.1213267, %117
  %xtraiter303 = and i64 %indvars.iv, 1
  %174 = icmp eq i64 %.1213267, 0
  br i1 %174, label %.unr-lcssa, label %.preheader233.new

.preheader233.new:                                ; preds = %.preheader233
  %unroll_iter305 = and i64 %indvars.iv, -2
  br label %175

175:                                              ; preds = %175, %.preheader233.new
  %.2218265 = phi i64 [ 0, %.preheader233.new ], [ %207, %175 ]
  %niter306 = phi i64 [ 0, %.preheader233.new ], [ %niter306.next.1, %175 ]
  %176 = load ptr, ptr %13, align 8, !tbaa !15
  %177 = getelementptr inbounds double, ptr %176, i64 %.2218265
  %178 = load double, ptr %177, align 8, !tbaa !16
  %179 = load ptr, ptr %171, align 8, !tbaa !15
  %180 = sub nsw i64 %.1213267, %.2218265
  %181 = getelementptr inbounds double, ptr %179, i64 %180
  %182 = load double, ptr %181, align 8, !tbaa !16
  %183 = fmul double %178, %182
  %184 = getelementptr inbounds double, ptr %179, i64 %.1213267
  %185 = getelementptr inbounds double, ptr %184, i64 %.2218265
  %186 = load double, ptr %185, align 8, !tbaa !16
  %187 = fdiv double %183, %186
  %188 = load ptr, ptr %172, align 8, !tbaa !15
  %189 = getelementptr double, ptr %188, i64 %173
  %190 = getelementptr double, ptr %189, i64 %.2218265
  store double %187, ptr %190, align 8, !tbaa !16
  %191 = or disjoint i64 %.2218265, 1
  %192 = load ptr, ptr %13, align 8, !tbaa !15
  %193 = getelementptr inbounds double, ptr %192, i64 %191
  %194 = load double, ptr %193, align 8, !tbaa !16
  %195 = load ptr, ptr %171, align 8, !tbaa !15
  %196 = sub nsw i64 %.1213267, %191
  %197 = getelementptr inbounds double, ptr %195, i64 %196
  %198 = load double, ptr %197, align 8, !tbaa !16
  %199 = fmul double %194, %198
  %200 = getelementptr inbounds double, ptr %195, i64 %.1213267
  %201 = getelementptr inbounds double, ptr %200, i64 %191
  %202 = load double, ptr %201, align 8, !tbaa !16
  %203 = fdiv double %199, %202
  %204 = load ptr, ptr %172, align 8, !tbaa !15
  %205 = getelementptr double, ptr %204, i64 %173
  %206 = getelementptr double, ptr %205, i64 %191
  store double %203, ptr %206, align 8, !tbaa !16
  %207 = add nuw i64 %.2218265, 2
  %niter306.next.1 = add i64 %niter306, 2
  %niter306.ncmp.1 = icmp eq i64 %niter306.next.1, %unroll_iter305
  br i1 %niter306.ncmp.1, label %.unr-lcssa, label %175, !llvm.loop !26

.unr-lcssa:                                       ; preds = %175, %.preheader233
  %.2218265.unr = phi i64 [ 0, %.preheader233 ], [ %207, %175 ]
  %lcmp.mod304.not = icmp eq i64 %xtraiter303, 0
  br i1 %lcmp.mod304.not, label %223, label %.epilog-lcssa

.epilog-lcssa:                                    ; preds = %.unr-lcssa
  %208 = load ptr, ptr %13, align 8, !tbaa !15
  %209 = getelementptr inbounds double, ptr %208, i64 %.2218265.unr
  %210 = load double, ptr %209, align 8, !tbaa !16
  %211 = load ptr, ptr %171, align 8, !tbaa !15
  %212 = sub nsw i64 %.1213267, %.2218265.unr
  %213 = getelementptr inbounds double, ptr %211, i64 %212
  %214 = load double, ptr %213, align 8, !tbaa !16
  %215 = fmul double %210, %214
  %216 = getelementptr inbounds double, ptr %211, i64 %.1213267
  %217 = getelementptr inbounds double, ptr %216, i64 %.2218265.unr
  %218 = load double, ptr %217, align 8, !tbaa !16
  %219 = fdiv double %215, %218
  %220 = load ptr, ptr %172, align 8, !tbaa !15
  %221 = getelementptr double, ptr %220, i64 %173
  %222 = getelementptr double, ptr %221, i64 %.2218265.unr
  store double %219, ptr %222, align 8, !tbaa !16
  br label %223

223:                                              ; preds = %.unr-lcssa, %.epilog-lcssa
  %224 = add nuw i64 %.1213267, 1
  %indvars.iv.next = add nuw i64 %indvars.iv, 1
  %exitcond286.not = icmp eq i64 %.1213267, %1
  br i1 %exitcond286.not, label %._crit_edge268, label %.preheader233, !llvm.loop !27

._crit_edge268:                                   ; preds = %223, %._crit_edge264.thread
  %225 = tail call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 0.000000e+00)
  %226 = extractvalue { double, double } %225, 0
  %227 = extractvalue { double, double } %225, 1
  %228 = getelementptr inbounds i8, ptr %0, i64 848
  tail call void @_ZN11alglib_impl10csetallocvElNS_10ae_complexEPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %118, double %226, double %227, ptr noundef nonnull %228, ptr noundef %2)
  br i1 %.not257, label %._crit_edge277.critedge, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %._crit_edge268
  %229 = getelementptr inbounds i8, ptr %0, i64 200
  %230 = getelementptr inbounds i8, ptr %0, i64 904
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %254
  %indvars.iv287 = phi i64 [ 1, %.preheader.lr.ph ], [ %indvars.iv.next288, %254 ]
  %.2214271 = phi i64 [ 0, %.preheader.lr.ph ], [ %255, %254 ]
  %231 = mul nuw nsw i64 %.2214271, %117
  br label %232

232:                                              ; preds = %.preheader, %232
  %.3219269 = phi i64 [ 0, %.preheader ], [ %253, %232 ]
  %233 = load ptr, ptr %18, align 8, !tbaa !15
  %234 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %233, i64 %.3219269
  %.sroa.0.0.copyload = load double, ptr %234, align 8, !tbaa !16
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %234, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !16
  %235 = load ptr, ptr %13, align 8, !tbaa !15
  %236 = getelementptr inbounds double, ptr %235, i64 %.2214271
  %237 = load double, ptr %236, align 8, !tbaa !16
  %238 = load ptr, ptr %229, align 8, !tbaa !15
  %239 = getelementptr inbounds double, ptr %238, i64 %.2214271
  %240 = getelementptr inbounds double, ptr %239, i64 %.3219269
  %241 = load double, ptr %240, align 8, !tbaa !16
  %242 = sub nsw i64 %.2214271, %.3219269
  %243 = getelementptr inbounds double, ptr %238, i64 %242
  %244 = load double, ptr %243, align 8, !tbaa !16
  %245 = fmul double %241, %244
  %246 = fdiv double %237, %245
  %247 = tail call { double, double } @_ZN11alglib_impl10ae_c_mul_dENS_10ae_complexEd(double %.sroa.0.0.copyload, double %.sroa.2.0.copyload, double noundef %246)
  %248 = extractvalue { double, double } %247, 0
  %249 = extractvalue { double, double } %247, 1
  %250 = load ptr, ptr %230, align 8, !tbaa !15
  %251 = getelementptr %"struct.alglib_impl::ae_complex", ptr %250, i64 %231
  %252 = getelementptr %"struct.alglib_impl::ae_complex", ptr %251, i64 %.3219269
  store double %248, ptr %252, align 8, !tbaa !16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %252, i64 8
  store double %249, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !16
  %253 = add nuw i64 %.3219269, 1
  %exitcond289.not = icmp eq i64 %253, %indvars.iv287
  br i1 %exitcond289.not, label %254, label %232, !llvm.loop !28

254:                                              ; preds = %232
  %255 = add nuw i64 %.2214271, 1
  %indvars.iv.next288 = add nuw i64 %indvars.iv287, 1
  %exitcond290.not = icmp eq i64 %.2214271, %1
  br i1 %exitcond290.not, label %._crit_edge272, label %.preheader, !llvm.loop !29

._crit_edge272.critedge:                          ; preds = %._crit_edge264
  %256 = tail call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 0.000000e+00)
  %257 = extractvalue { double, double } %256, 0
  %258 = extractvalue { double, double } %256, 1
  %259 = getelementptr inbounds i8, ptr %0, i64 848
  tail call void @_ZN11alglib_impl10csetallocvElNS_10ae_complexEPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %118, double %257, double %258, ptr noundef nonnull %259, ptr noundef %2)
  br label %._crit_edge272

._crit_edge272:                                   ; preds = %254, %._crit_edge272.critedge
  %260 = getelementptr inbounds i8, ptr %0, i64 720
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %117, double noundef 0.000000e+00, ptr noundef nonnull %260, ptr noundef %2)
  %261 = getelementptr inbounds i8, ptr %0, i64 784
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %117, double noundef 0.000000e+00, ptr noundef nonnull %261, ptr noundef %2)
  br i1 %.not257, label %._crit_edge277, label %.lr.ph276

.lr.ph276:                                        ; preds = %._crit_edge272
  %262 = getelementptr inbounds i8, ptr %0, i64 840
  %263 = add nsw i64 %1, -2
  %264 = getelementptr inbounds i8, ptr %0, i64 776
  br label %265

265:                                              ; preds = %.lr.ph276, %285
  %.3215274 = phi i64 [ 0, %.lr.ph276 ], [ %286, %285 ]
  %266 = load ptr, ptr %13, align 8, !tbaa !15
  %267 = getelementptr inbounds double, ptr %266, i64 %.3215274
  %268 = load double, ptr %267, align 8, !tbaa !16
  %269 = fneg double %268
  %270 = shl nuw nsw i64 %.3215274, 1
  %271 = add nsw i64 %270, -1
  %272 = sitofp i64 %271 to double
  %273 = fdiv double %269, %272
  %274 = load ptr, ptr %262, align 8, !tbaa !15
  %275 = getelementptr inbounds double, ptr %274, i64 %.3215274
  store double %273, ptr %275, align 8, !tbaa !16
  %.not228 = icmp sgt i64 %.3215274, %263
  br i1 %.not228, label %285, label %276

276:                                              ; preds = %265
  %277 = load ptr, ptr %13, align 8, !tbaa !15
  %278 = getelementptr inbounds double, ptr %277, i64 %.3215274
  %279 = load double, ptr %278, align 8, !tbaa !16
  %280 = add nuw nsw i64 %270, 3
  %281 = uitofp nneg i64 %280 to double
  %282 = fdiv double %279, %281
  %283 = load ptr, ptr %264, align 8, !tbaa !15
  %284 = getelementptr inbounds double, ptr %283, i64 %.3215274
  store double %282, ptr %284, align 8, !tbaa !16
  br label %285

285:                                              ; preds = %265, %276
  %286 = add nuw i64 %.3215274, 1
  %exitcond291.not = icmp eq i64 %.3215274, %1
  br i1 %exitcond291.not, label %._crit_edge277, label %265, !llvm.loop !30

._crit_edge277.critedge:                          ; preds = %._crit_edge268
  %287 = getelementptr inbounds i8, ptr %0, i64 720
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %117, double noundef 0.000000e+00, ptr noundef nonnull %287, ptr noundef %2)
  %288 = getelementptr inbounds i8, ptr %0, i64 784
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %117, double noundef 0.000000e+00, ptr noundef nonnull %288, ptr noundef %2)
  br label %._crit_edge277

._crit_edge277:                                   ; preds = %285, %._crit_edge277.critedge, %._crit_edge272
  ret void
}

declare { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef) local_unnamed_addr #0

declare { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double, double, double, double) local_unnamed_addr #0

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

declare { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef) local_unnamed_addr #0

declare { double, double } @_ZN11alglib_impl10ae_c_mul_dENS_10ae_complexEd(double, double, double noundef) local_unnamed_addr #0

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl19biharmonicevaluatorE", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !10, i64 208, !10, i64 272, !10, i64 336, !10, i64 400, !10, i64 464, !10, i64 528, !10, i64 592, !10, i64 656, !10, i64 720, !10, i64 784, !10, i64 848}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 56}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!6, !7, i64 8}
!15 = !{!8, !8, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}
!28 = distinct !{!28, !19}
!29 = distinct !{!29, !19}
!30 = distinct !{!30, !19}


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