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

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

@.str.13 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [38 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl25jacobianellipticfunctionsEddPdS0_S0_S0_PNS_8ae_stateE(double noundef %0, double noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #1 {
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.alglib_impl::ae_frame", align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  store double %0, ptr %8, align 8, !tbaa !5
  store double %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !9
  store ptr %6, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %25 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %25, ptr noundef %15)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 64, i1 false)
  %26 = load ptr, ptr %10, align 8, !tbaa !9
  store double 0.000000e+00, ptr %26, align 8, !tbaa !5
  %27 = load ptr, ptr %11, align 8, !tbaa !9
  store double 0.000000e+00, ptr %27, align 8, !tbaa !5
  %28 = load ptr, ptr %12, align 8, !tbaa !9
  store double 0.000000e+00, ptr %28, align 8, !tbaa !5
  %29 = load ptr, ptr %13, align 8, !tbaa !9
  store double 0.000000e+00, ptr %29, align 8, !tbaa !5
  %30 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 3, ptr noundef %30, i1 noundef zeroext true)
  %31 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 3, ptr noundef %31, i1 noundef zeroext true)
  %32 = load double, ptr %9, align 8, !tbaa !5
  %33 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %32, double noundef 0.000000e+00)
  br i1 %33, label %34, label %37

34:                                               ; preds = %7
  %35 = load double, ptr %9, align 8, !tbaa !5
  %36 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %35, double noundef 1.000000e+00)
  br label %37

37:                                               ; preds = %34, %7
  %38 = phi i1 [ false, %7 ], [ %36, %34 ]
  %39 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef @.str.13, ptr noundef %39)
  %40 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef 9, ptr noundef %40)
  %41 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef 9, ptr noundef %41)
  %42 = load double, ptr %9, align 8, !tbaa !5
  %43 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %42, double noundef 1.000000e-09)
  br i1 %43, label %44, label %83

44:                                               ; preds = %37
  %45 = load double, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %14, align 8, !tbaa !9
  %47 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %45, ptr noundef %46)
  store double %47, ptr %19, align 8, !tbaa !5
  %48 = load double, ptr %8, align 8, !tbaa !5
  %49 = load ptr, ptr %14, align 8, !tbaa !9
  %50 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %48, ptr noundef %49)
  store double %50, ptr %17, align 8, !tbaa !5
  %51 = load double, ptr %9, align 8, !tbaa !5
  %52 = fmul double 2.500000e-01, %51
  %53 = load double, ptr %8, align 8, !tbaa !5
  %54 = load double, ptr %19, align 8, !tbaa !5
  %55 = load double, ptr %17, align 8, !tbaa !5
  %56 = fneg double %54
  %57 = call double @llvm.fmuladd.f64(double %56, double %55, double %53)
  %58 = fmul double %52, %57
  store double %58, ptr %16, align 8, !tbaa !5
  %59 = load double, ptr %19, align 8, !tbaa !5
  %60 = load double, ptr %16, align 8, !tbaa !5
  %61 = load double, ptr %17, align 8, !tbaa !5
  %62 = fneg double %60
  %63 = call double @llvm.fmuladd.f64(double %62, double %61, double %59)
  %64 = load ptr, ptr %10, align 8, !tbaa !9
  store double %63, ptr %64, align 8, !tbaa !5
  %65 = load double, ptr %17, align 8, !tbaa !5
  %66 = load double, ptr %16, align 8, !tbaa !5
  %67 = load double, ptr %19, align 8, !tbaa !5
  %68 = call double @llvm.fmuladd.f64(double %66, double %67, double %65)
  %69 = load ptr, ptr %11, align 8, !tbaa !9
  store double %68, ptr %69, align 8, !tbaa !5
  %70 = load double, ptr %8, align 8, !tbaa !5
  %71 = load double, ptr %16, align 8, !tbaa !5
  %72 = fsub double %70, %71
  %73 = load ptr, ptr %13, align 8, !tbaa !9
  store double %72, ptr %73, align 8, !tbaa !5
  %74 = load double, ptr %9, align 8, !tbaa !5
  %75 = fmul double 5.000000e-01, %74
  %76 = load double, ptr %19, align 8, !tbaa !5
  %77 = fmul double %75, %76
  %78 = load double, ptr %19, align 8, !tbaa !5
  %79 = fneg double %77
  %80 = call double @llvm.fmuladd.f64(double %79, double %78, double 1.000000e+00)
  %81 = load ptr, ptr %12, align 8, !tbaa !9
  store double %80, ptr %81, align 8, !tbaa !5
  %82 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %82)
  store i32 1, ptr %24, align 4
  br label %276

83:                                               ; preds = %37
  %84 = load double, ptr %9, align 8, !tbaa !5
  %85 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %84, double noundef 0x3FEFFFFFFFF24190)
  br i1 %85, label %86, label %151

86:                                               ; preds = %83
  %87 = load double, ptr %9, align 8, !tbaa !5
  %88 = fsub double 1.000000e+00, %87
  %89 = fmul double 2.500000e-01, %88
  store double %89, ptr %16, align 8, !tbaa !5
  %90 = load double, ptr %8, align 8, !tbaa !5
  %91 = load ptr, ptr %14, align 8, !tbaa !9
  %92 = call noundef double @_ZN11alglib_impl7ae_coshEdPNS_8ae_stateE(double noundef %90, ptr noundef %91)
  store double %92, ptr %17, align 8, !tbaa !5
  %93 = load double, ptr %8, align 8, !tbaa !5
  %94 = load ptr, ptr %14, align 8, !tbaa !9
  %95 = call noundef double @_ZN11alglib_impl7ae_tanhEdPNS_8ae_stateE(double noundef %93, ptr noundef %94)
  store double %95, ptr %19, align 8, !tbaa !5
  %96 = load double, ptr %17, align 8, !tbaa !5
  %97 = fdiv double 1.000000e+00, %96
  store double %97, ptr %18, align 8, !tbaa !5
  %98 = load double, ptr %17, align 8, !tbaa !5
  %99 = load double, ptr %8, align 8, !tbaa !5
  %100 = load ptr, ptr %14, align 8, !tbaa !9
  %101 = call noundef double @_ZN11alglib_impl7ae_sinhEdPNS_8ae_stateE(double noundef %99, ptr noundef %100)
  %102 = fmul double %98, %101
  store double %102, ptr %20, align 8, !tbaa !5
  %103 = load double, ptr %19, align 8, !tbaa !5
  %104 = load double, ptr %16, align 8, !tbaa !5
  %105 = load double, ptr %20, align 8, !tbaa !5
  %106 = load double, ptr %8, align 8, !tbaa !5
  %107 = fsub double %105, %106
  %108 = fmul double %104, %107
  %109 = load double, ptr %17, align 8, !tbaa !5
  %110 = load double, ptr %17, align 8, !tbaa !5
  %111 = fmul double %109, %110
  %112 = fdiv double %108, %111
  %113 = fadd double %103, %112
  %114 = load ptr, ptr %10, align 8, !tbaa !9
  store double %113, ptr %114, align 8, !tbaa !5
  %115 = load double, ptr %8, align 8, !tbaa !5
  %116 = load ptr, ptr %14, align 8, !tbaa !9
  %117 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %115, ptr noundef %116)
  %118 = load ptr, ptr %14, align 8, !tbaa !9
  %119 = call noundef double @_ZN11alglib_impl7ae_atanEdPNS_8ae_stateE(double noundef %117, ptr noundef %118)
  %120 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %119, double 0xBFF921FB54442D18)
  %121 = load double, ptr %16, align 8, !tbaa !5
  %122 = load double, ptr %20, align 8, !tbaa !5
  %123 = load double, ptr %8, align 8, !tbaa !5
  %124 = fsub double %122, %123
  %125 = fmul double %121, %124
  %126 = load double, ptr %17, align 8, !tbaa !5
  %127 = fdiv double %125, %126
  %128 = fadd double %120, %127
  %129 = load ptr, ptr %13, align 8, !tbaa !9
  store double %128, ptr %129, align 8, !tbaa !5
  %130 = load double, ptr %16, align 8, !tbaa !5
  %131 = load double, ptr %19, align 8, !tbaa !5
  %132 = fmul double %130, %131
  %133 = load double, ptr %18, align 8, !tbaa !5
  %134 = fmul double %132, %133
  store double %134, ptr %16, align 8, !tbaa !5
  %135 = load double, ptr %18, align 8, !tbaa !5
  %136 = load double, ptr %16, align 8, !tbaa !5
  %137 = load double, ptr %20, align 8, !tbaa !5
  %138 = load double, ptr %8, align 8, !tbaa !5
  %139 = fsub double %137, %138
  %140 = fneg double %136
  %141 = call double @llvm.fmuladd.f64(double %140, double %139, double %135)
  %142 = load ptr, ptr %11, align 8, !tbaa !9
  store double %141, ptr %142, align 8, !tbaa !5
  %143 = load double, ptr %18, align 8, !tbaa !5
  %144 = load double, ptr %16, align 8, !tbaa !5
  %145 = load double, ptr %20, align 8, !tbaa !5
  %146 = load double, ptr %8, align 8, !tbaa !5
  %147 = fadd double %145, %146
  %148 = call double @llvm.fmuladd.f64(double %144, double %147, double %143)
  %149 = load ptr, ptr %12, align 8, !tbaa !9
  store double %148, ptr %149, align 8, !tbaa !5
  %150 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %150)
  store i32 1, ptr %24, align 4
  br label %276

151:                                              ; preds = %83
  %152 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %153 = load ptr, ptr %152, align 8, !tbaa !11
  %154 = getelementptr inbounds double, ptr %153, i64 0
  store double 1.000000e+00, ptr %154, align 8, !tbaa !5
  %155 = load double, ptr %9, align 8, !tbaa !5
  %156 = fsub double 1.000000e+00, %155
  %157 = load ptr, ptr %14, align 8, !tbaa !9
  %158 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %156, ptr noundef %157)
  store double %158, ptr %17, align 8, !tbaa !5
  %159 = load double, ptr %9, align 8, !tbaa !5
  %160 = load ptr, ptr %14, align 8, !tbaa !9
  %161 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %159, ptr noundef %160)
  %162 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %163 = load ptr, ptr %162, align 8, !tbaa !11
  %164 = getelementptr inbounds double, ptr %163, i64 0
  store double %161, ptr %164, align 8, !tbaa !5
  store double 1.000000e+00, ptr %20, align 8, !tbaa !5
  store i64 0, ptr %23, align 8, !tbaa !12
  br label %165

165:                                              ; preds = %185, %151
  %166 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %167 = load ptr, ptr %166, align 8, !tbaa !11
  %168 = load i64, ptr %23, align 8, !tbaa !12
  %169 = getelementptr inbounds double, ptr %167, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !11
  %173 = load i64, ptr %23, align 8, !tbaa !12
  %174 = getelementptr inbounds double, ptr %172, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !5
  %176 = fdiv double %170, %175
  %177 = load ptr, ptr %14, align 8, !tbaa !9
  %178 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %176, ptr noundef %177)
  %179 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %178, double noundef 5.000000e-16)
  br i1 %179, label %180, label %217

180:                                              ; preds = %165
  %181 = load i64, ptr %23, align 8, !tbaa !12
  %182 = icmp sgt i64 %181, 7
  br i1 %182, label %183, label %185

183:                                              ; preds = %180
  %184 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.14, ptr noundef %184)
  br label %217

185:                                              ; preds = %180
  %186 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %187 = load ptr, ptr %186, align 8, !tbaa !11
  %188 = load i64, ptr %23, align 8, !tbaa !12
  %189 = getelementptr inbounds double, ptr %187, i64 %188
  %190 = load double, ptr %189, align 8, !tbaa !5
  store double %190, ptr %16, align 8, !tbaa !5
  %191 = load i64, ptr %23, align 8, !tbaa !12
  %192 = add nsw i64 %191, 1
  store i64 %192, ptr %23, align 8, !tbaa !12
  %193 = load double, ptr %16, align 8, !tbaa !5
  %194 = load double, ptr %17, align 8, !tbaa !5
  %195 = fsub double %193, %194
  %196 = fmul double 5.000000e-01, %195
  %197 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %198 = load ptr, ptr %197, align 8, !tbaa !11
  %199 = load i64, ptr %23, align 8, !tbaa !12
  %200 = getelementptr inbounds double, ptr %198, i64 %199
  store double %196, ptr %200, align 8, !tbaa !5
  %201 = load double, ptr %16, align 8, !tbaa !5
  %202 = load double, ptr %17, align 8, !tbaa !5
  %203 = fmul double %201, %202
  %204 = load ptr, ptr %14, align 8, !tbaa !9
  %205 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %203, ptr noundef %204)
  store double %205, ptr %19, align 8, !tbaa !5
  %206 = load double, ptr %16, align 8, !tbaa !5
  %207 = load double, ptr %17, align 8, !tbaa !5
  %208 = fadd double %206, %207
  %209 = fmul double 5.000000e-01, %208
  %210 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %211 = load ptr, ptr %210, align 8, !tbaa !11
  %212 = load i64, ptr %23, align 8, !tbaa !12
  %213 = getelementptr inbounds double, ptr %211, i64 %212
  store double %209, ptr %213, align 8, !tbaa !5
  %214 = load double, ptr %19, align 8, !tbaa !5
  store double %214, ptr %17, align 8, !tbaa !5
  %215 = load double, ptr %20, align 8, !tbaa !5
  %216 = fmul double %215, 2.000000e+00
  store double %216, ptr %20, align 8, !tbaa !5
  br label %165, !llvm.loop !14

217:                                              ; preds = %183, %165
  %218 = load double, ptr %20, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %220 = load ptr, ptr %219, align 8, !tbaa !11
  %221 = load i64, ptr %23, align 8, !tbaa !12
  %222 = getelementptr inbounds double, ptr %220, i64 %221
  %223 = load double, ptr %222, align 8, !tbaa !5
  %224 = fmul double %218, %223
  %225 = load double, ptr %8, align 8, !tbaa !5
  %226 = fmul double %224, %225
  store double %226, ptr %18, align 8, !tbaa !5
  br label %227

227:                                              ; preds = %252, %217
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !11
  %230 = load i64, ptr %23, align 8, !tbaa !12
  %231 = getelementptr inbounds double, ptr %229, i64 %230
  %232 = load double, ptr %231, align 8, !tbaa !5
  %233 = load double, ptr %18, align 8, !tbaa !5
  %234 = load ptr, ptr %14, align 8, !tbaa !9
  %235 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %233, ptr noundef %234)
  %236 = fmul double %232, %235
  %237 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %238 = load ptr, ptr %237, align 8, !tbaa !11
  %239 = load i64, ptr %23, align 8, !tbaa !12
  %240 = getelementptr inbounds double, ptr %238, i64 %239
  %241 = load double, ptr %240, align 8, !tbaa !5
  %242 = fdiv double %236, %241
  store double %242, ptr %19, align 8, !tbaa !5
  %243 = load double, ptr %18, align 8, !tbaa !5
  store double %243, ptr %17, align 8, !tbaa !5
  %244 = load double, ptr %19, align 8, !tbaa !5
  %245 = load ptr, ptr %14, align 8, !tbaa !9
  %246 = call noundef double @_ZN11alglib_impl7ae_asinEdPNS_8ae_stateE(double noundef %244, ptr noundef %245)
  %247 = load double, ptr %18, align 8, !tbaa !5
  %248 = fadd double %246, %247
  %249 = fdiv double %248, 2.000000e+00
  store double %249, ptr %18, align 8, !tbaa !5
  %250 = load i64, ptr %23, align 8, !tbaa !12
  %251 = sub nsw i64 %250, 1
  store i64 %251, ptr %23, align 8, !tbaa !12
  br label %252

252:                                              ; preds = %227
  %253 = load i64, ptr %23, align 8, !tbaa !12
  %254 = icmp ne i64 %253, 0
  br i1 %254, label %227, label %255, !llvm.loop !16

255:                                              ; preds = %252
  %256 = load double, ptr %18, align 8, !tbaa !5
  %257 = load ptr, ptr %14, align 8, !tbaa !9
  %258 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %256, ptr noundef %257)
  %259 = load ptr, ptr %10, align 8, !tbaa !9
  store double %258, ptr %259, align 8, !tbaa !5
  %260 = load double, ptr %18, align 8, !tbaa !5
  %261 = load ptr, ptr %14, align 8, !tbaa !9
  %262 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %260, ptr noundef %261)
  store double %262, ptr %19, align 8, !tbaa !5
  %263 = load double, ptr %19, align 8, !tbaa !5
  %264 = load ptr, ptr %11, align 8, !tbaa !9
  store double %263, ptr %264, align 8, !tbaa !5
  %265 = load double, ptr %19, align 8, !tbaa !5
  %266 = load double, ptr %18, align 8, !tbaa !5
  %267 = load double, ptr %17, align 8, !tbaa !5
  %268 = fsub double %266, %267
  %269 = load ptr, ptr %14, align 8, !tbaa !9
  %270 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %268, ptr noundef %269)
  %271 = fdiv double %265, %270
  %272 = load ptr, ptr %12, align 8, !tbaa !9
  store double %271, ptr %272, align 8, !tbaa !5
  %273 = load double, ptr %18, align 8, !tbaa !5
  %274 = load ptr, ptr %13, align 8, !tbaa !9
  store double %273, ptr %274, align 8, !tbaa !5
  %275 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %275)
  store i32 0, ptr %24, align 4
  br label %276

276:                                              ; preds = %255, %86, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  %277 = load i32, ptr %24, align 4
  switch i32 %277, label %279 [
    i32 0, label %278
    i32 1, label %278
  ]

278:                                              ; preds = %276, %276
  ret void

279:                                              ; preds = %276
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

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

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

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 = { "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 nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


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

%"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 }

@.str.13 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [38 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl25jacobianellipticfunctionsEddPdS0_S0_S0_PNS_8ae_stateE(double noundef %0, double noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5, ptr noundef %6) local_unnamed_addr #1 {
  %8 = alloca %"struct.alglib_impl::ae_frame", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %6, ptr noundef nonnull %8)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  store double 0.000000e+00, ptr %2, align 8, !tbaa !5
  store double 0.000000e+00, ptr %3, align 8, !tbaa !5
  store double 0.000000e+00, ptr %4, align 8, !tbaa !5
  store double 0.000000e+00, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  %11 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %1, double noundef 0.000000e+00)
  br i1 %11, label %12, label %14

12:                                               ; preds = %7
  %13 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %1, double noundef 1.000000e+00)
  br label %14

14:                                               ; preds = %12, %7
  %15 = phi i1 [ false, %7 ], [ %13, %12 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.13, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef 9, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef 9, ptr noundef %6)
  %16 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %1, double noundef 1.000000e-09)
  br i1 %16, label %17, label %31

17:                                               ; preds = %14
  %18 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %0, ptr noundef %6)
  %19 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %0, ptr noundef %6)
  %20 = fmul double %1, 2.500000e-01
  %21 = fneg double %18
  %22 = call double @llvm.fmuladd.f64(double %21, double %19, double %0)
  %23 = fmul double %20, %22
  %24 = fneg double %23
  %25 = call double @llvm.fmuladd.f64(double %24, double %19, double %18)
  store double %25, ptr %2, align 8, !tbaa !5
  %26 = call double @llvm.fmuladd.f64(double %23, double %18, double %19)
  store double %26, ptr %3, align 8, !tbaa !5
  %27 = fsub double %0, %23
  store double %27, ptr %5, align 8, !tbaa !5
  %28 = fmul double %1, -5.000000e-01
  %29 = fmul double %28, %18
  %30 = call double @llvm.fmuladd.f64(double %29, double %18, double 1.000000e+00)
  store double %30, ptr %4, align 8, !tbaa !5
  br label %270

31:                                               ; preds = %14
  %32 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %1, double noundef 0x3FEFFFFFFFF24190)
  br i1 %32, label %33, label %57

33:                                               ; preds = %31
  %34 = fsub double 1.000000e+00, %1
  %35 = fmul double %34, 2.500000e-01
  %36 = call noundef double @_ZN11alglib_impl7ae_coshEdPNS_8ae_stateE(double noundef %0, ptr noundef %6)
  %37 = call noundef double @_ZN11alglib_impl7ae_tanhEdPNS_8ae_stateE(double noundef %0, ptr noundef %6)
  %38 = fdiv double 1.000000e+00, %36
  %39 = call noundef double @_ZN11alglib_impl7ae_sinhEdPNS_8ae_stateE(double noundef %0, ptr noundef %6)
  %40 = fmul double %36, %39
  %41 = fsub double %40, %0
  %42 = fmul double %35, %41
  %43 = fmul double %36, %36
  %44 = fdiv double %42, %43
  %45 = fadd double %37, %44
  store double %45, ptr %2, align 8, !tbaa !5
  %46 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %0, ptr noundef %6)
  %47 = call noundef double @_ZN11alglib_impl7ae_atanEdPNS_8ae_stateE(double noundef %46, ptr noundef %6)
  %48 = call double @llvm.fmuladd.f64(double %47, double 2.000000e+00, double 0xBFF921FB54442D18)
  %49 = fdiv double %42, %36
  %50 = fadd double %48, %49
  store double %50, ptr %5, align 8, !tbaa !5
  %51 = fmul double %35, %37
  %52 = fmul double %38, %51
  %53 = fneg double %52
  %54 = call double @llvm.fmuladd.f64(double %53, double %41, double %38)
  store double %54, ptr %3, align 8, !tbaa !5
  %55 = fadd double %40, %0
  %56 = call double @llvm.fmuladd.f64(double %52, double %55, double %38)
  store double %56, ptr %4, align 8, !tbaa !5
  br label %270

57:                                               ; preds = %31
  %58 = getelementptr inbounds i8, ptr %9, i64 56
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  store double 1.000000e+00, ptr %59, align 8, !tbaa !5
  %60 = fsub double 1.000000e+00, %1
  %61 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %60, ptr noundef %6)
  %62 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %1, ptr noundef %6)
  %63 = getelementptr inbounds i8, ptr %10, i64 56
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  store double %62, ptr %64, align 8, !tbaa !5
  %65 = load ptr, ptr %63, align 8, !tbaa !9
  %66 = load double, ptr %65, align 8, !tbaa !5
  %67 = load ptr, ptr %58, align 8, !tbaa !9
  %68 = load double, ptr %67, align 8, !tbaa !5
  %69 = fdiv double %66, %68
  %70 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %69, ptr noundef %6)
  %71 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %70, double noundef 5.000000e-16)
  br i1 %71, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %57
  %72 = load ptr, ptr %58, align 8, !tbaa !9
  %73 = load double, ptr %72, align 8, !tbaa !5
  %74 = fsub double %73, %61
  %75 = fmul double %74, 5.000000e-01
  %76 = load ptr, ptr %63, align 8, !tbaa !9
  %77 = getelementptr inbounds i8, ptr %76, i64 8
  store double %75, ptr %77, align 8, !tbaa !5
  %78 = fmul double %61, %73
  %79 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %78, ptr noundef %6)
  %80 = fadd double %61, %73
  %81 = fmul double %80, 5.000000e-01
  %82 = load ptr, ptr %58, align 8, !tbaa !9
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  store double %81, ptr %83, align 8, !tbaa !5
  %84 = load ptr, ptr %63, align 8, !tbaa !9
  %85 = getelementptr inbounds i8, ptr %84, i64 8
  %86 = load double, ptr %85, align 8, !tbaa !5
  %87 = load ptr, ptr %58, align 8, !tbaa !9
  %88 = getelementptr inbounds i8, ptr %87, i64 8
  %89 = load double, ptr %88, align 8, !tbaa !5
  %90 = fdiv double %86, %89
  %91 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %90, ptr noundef %6)
  %92 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %91, double noundef 5.000000e-16)
  br i1 %92, label %.lr.ph.1, label %.loopexit, !llvm.loop !10

93:                                               ; preds = %.lr.ph.7
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.14, ptr noundef %6)
  br label %.loopexit

.lr.ph.1:                                         ; preds = %.lr.ph.preheader
  %94 = load ptr, ptr %58, align 8, !tbaa !9
  %95 = getelementptr inbounds i8, ptr %94, i64 8
  %96 = load double, ptr %95, align 8, !tbaa !5
  %97 = fsub double %96, %79
  %98 = fmul double %97, 5.000000e-01
  %99 = load ptr, ptr %63, align 8, !tbaa !9
  %100 = getelementptr inbounds i8, ptr %99, i64 16
  store double %98, ptr %100, align 8, !tbaa !5
  %101 = fmul double %79, %96
  %102 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %101, ptr noundef %6)
  %103 = fadd double %79, %96
  %104 = fmul double %103, 5.000000e-01
  %105 = load ptr, ptr %58, align 8, !tbaa !9
  %106 = getelementptr inbounds i8, ptr %105, i64 16
  store double %104, ptr %106, align 8, !tbaa !5
  %107 = load ptr, ptr %63, align 8, !tbaa !9
  %108 = getelementptr inbounds i8, ptr %107, i64 16
  %109 = load double, ptr %108, align 8, !tbaa !5
  %110 = load ptr, ptr %58, align 8, !tbaa !9
  %111 = getelementptr inbounds i8, ptr %110, i64 16
  %112 = load double, ptr %111, align 8, !tbaa !5
  %113 = fdiv double %109, %112
  %114 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %113, ptr noundef %6)
  %115 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %114, double noundef 5.000000e-16)
  br i1 %115, label %.lr.ph.2, label %.loopexit, !llvm.loop !10

.lr.ph.2:                                         ; preds = %.lr.ph.1
  %116 = load ptr, ptr %58, align 8, !tbaa !9
  %117 = getelementptr inbounds i8, ptr %116, i64 16
  %118 = load double, ptr %117, align 8, !tbaa !5
  %119 = fsub double %118, %102
  %120 = fmul double %119, 5.000000e-01
  %121 = load ptr, ptr %63, align 8, !tbaa !9
  %122 = getelementptr inbounds i8, ptr %121, i64 24
  store double %120, ptr %122, align 8, !tbaa !5
  %123 = fmul double %102, %118
  %124 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %123, ptr noundef %6)
  %125 = fadd double %102, %118
  %126 = fmul double %125, 5.000000e-01
  %127 = load ptr, ptr %58, align 8, !tbaa !9
  %128 = getelementptr inbounds i8, ptr %127, i64 24
  store double %126, ptr %128, align 8, !tbaa !5
  %129 = load ptr, ptr %63, align 8, !tbaa !9
  %130 = getelementptr inbounds i8, ptr %129, i64 24
  %131 = load double, ptr %130, align 8, !tbaa !5
  %132 = load ptr, ptr %58, align 8, !tbaa !9
  %133 = getelementptr inbounds i8, ptr %132, i64 24
  %134 = load double, ptr %133, align 8, !tbaa !5
  %135 = fdiv double %131, %134
  %136 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %135, ptr noundef %6)
  %137 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %136, double noundef 5.000000e-16)
  br i1 %137, label %.lr.ph.3, label %.loopexit, !llvm.loop !10

.lr.ph.3:                                         ; preds = %.lr.ph.2
  %138 = load ptr, ptr %58, align 8, !tbaa !9
  %139 = getelementptr inbounds i8, ptr %138, i64 24
  %140 = load double, ptr %139, align 8, !tbaa !5
  %141 = fsub double %140, %124
  %142 = fmul double %141, 5.000000e-01
  %143 = load ptr, ptr %63, align 8, !tbaa !9
  %144 = getelementptr inbounds i8, ptr %143, i64 32
  store double %142, ptr %144, align 8, !tbaa !5
  %145 = fmul double %124, %140
  %146 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %145, ptr noundef %6)
  %147 = fadd double %124, %140
  %148 = fmul double %147, 5.000000e-01
  %149 = load ptr, ptr %58, align 8, !tbaa !9
  %150 = getelementptr inbounds i8, ptr %149, i64 32
  store double %148, ptr %150, align 8, !tbaa !5
  %151 = load ptr, ptr %63, align 8, !tbaa !9
  %152 = getelementptr inbounds i8, ptr %151, i64 32
  %153 = load double, ptr %152, align 8, !tbaa !5
  %154 = load ptr, ptr %58, align 8, !tbaa !9
  %155 = getelementptr inbounds i8, ptr %154, i64 32
  %156 = load double, ptr %155, align 8, !tbaa !5
  %157 = fdiv double %153, %156
  %158 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %157, ptr noundef %6)
  %159 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %158, double noundef 5.000000e-16)
  br i1 %159, label %.lr.ph.4, label %.loopexit, !llvm.loop !10

.lr.ph.4:                                         ; preds = %.lr.ph.3
  %160 = load ptr, ptr %58, align 8, !tbaa !9
  %161 = getelementptr inbounds i8, ptr %160, i64 32
  %162 = load double, ptr %161, align 8, !tbaa !5
  %163 = fsub double %162, %146
  %164 = fmul double %163, 5.000000e-01
  %165 = load ptr, ptr %63, align 8, !tbaa !9
  %166 = getelementptr inbounds i8, ptr %165, i64 40
  store double %164, ptr %166, align 8, !tbaa !5
  %167 = fmul double %146, %162
  %168 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %167, ptr noundef %6)
  %169 = fadd double %146, %162
  %170 = fmul double %169, 5.000000e-01
  %171 = load ptr, ptr %58, align 8, !tbaa !9
  %172 = getelementptr inbounds i8, ptr %171, i64 40
  store double %170, ptr %172, align 8, !tbaa !5
  %173 = load ptr, ptr %63, align 8, !tbaa !9
  %174 = getelementptr inbounds i8, ptr %173, i64 40
  %175 = load double, ptr %174, align 8, !tbaa !5
  %176 = load ptr, ptr %58, align 8, !tbaa !9
  %177 = getelementptr inbounds i8, ptr %176, i64 40
  %178 = load double, ptr %177, align 8, !tbaa !5
  %179 = fdiv double %175, %178
  %180 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %179, ptr noundef %6)
  %181 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %180, double noundef 5.000000e-16)
  br i1 %181, label %.lr.ph.5, label %.loopexit, !llvm.loop !10

.lr.ph.5:                                         ; preds = %.lr.ph.4
  %182 = load ptr, ptr %58, align 8, !tbaa !9
  %183 = getelementptr inbounds i8, ptr %182, i64 40
  %184 = load double, ptr %183, align 8, !tbaa !5
  %185 = fsub double %184, %168
  %186 = fmul double %185, 5.000000e-01
  %187 = load ptr, ptr %63, align 8, !tbaa !9
  %188 = getelementptr inbounds i8, ptr %187, i64 48
  store double %186, ptr %188, align 8, !tbaa !5
  %189 = fmul double %168, %184
  %190 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %189, ptr noundef %6)
  %191 = fadd double %168, %184
  %192 = fmul double %191, 5.000000e-01
  %193 = load ptr, ptr %58, align 8, !tbaa !9
  %194 = getelementptr inbounds i8, ptr %193, i64 48
  store double %192, ptr %194, align 8, !tbaa !5
  %195 = load ptr, ptr %63, align 8, !tbaa !9
  %196 = getelementptr inbounds i8, ptr %195, i64 48
  %197 = load double, ptr %196, align 8, !tbaa !5
  %198 = load ptr, ptr %58, align 8, !tbaa !9
  %199 = getelementptr inbounds i8, ptr %198, i64 48
  %200 = load double, ptr %199, align 8, !tbaa !5
  %201 = fdiv double %197, %200
  %202 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %201, ptr noundef %6)
  %203 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %202, double noundef 5.000000e-16)
  br i1 %203, label %.lr.ph.6, label %.loopexit, !llvm.loop !10

.lr.ph.6:                                         ; preds = %.lr.ph.5
  %204 = load ptr, ptr %58, align 8, !tbaa !9
  %205 = getelementptr inbounds i8, ptr %204, i64 48
  %206 = load double, ptr %205, align 8, !tbaa !5
  %207 = fsub double %206, %190
  %208 = fmul double %207, 5.000000e-01
  %209 = load ptr, ptr %63, align 8, !tbaa !9
  %210 = getelementptr inbounds i8, ptr %209, i64 56
  store double %208, ptr %210, align 8, !tbaa !5
  %211 = fmul double %190, %206
  %212 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %211, ptr noundef %6)
  %213 = fadd double %190, %206
  %214 = fmul double %213, 5.000000e-01
  %215 = load ptr, ptr %58, align 8, !tbaa !9
  %216 = getelementptr inbounds i8, ptr %215, i64 56
  store double %214, ptr %216, align 8, !tbaa !5
  %217 = load ptr, ptr %63, align 8, !tbaa !9
  %218 = getelementptr inbounds i8, ptr %217, i64 56
  %219 = load double, ptr %218, align 8, !tbaa !5
  %220 = load ptr, ptr %58, align 8, !tbaa !9
  %221 = getelementptr inbounds i8, ptr %220, i64 56
  %222 = load double, ptr %221, align 8, !tbaa !5
  %223 = fdiv double %219, %222
  %224 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %223, ptr noundef %6)
  %225 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %224, double noundef 5.000000e-16)
  br i1 %225, label %.lr.ph.7, label %.loopexit, !llvm.loop !10

.lr.ph.7:                                         ; preds = %.lr.ph.6
  %226 = load ptr, ptr %58, align 8, !tbaa !9
  %227 = getelementptr inbounds i8, ptr %226, i64 56
  %228 = load double, ptr %227, align 8, !tbaa !5
  %229 = fsub double %228, %212
  %230 = fmul double %229, 5.000000e-01
  %231 = load ptr, ptr %63, align 8, !tbaa !9
  %232 = getelementptr inbounds i8, ptr %231, i64 64
  store double %230, ptr %232, align 8, !tbaa !5
  %233 = fmul double %212, %228
  %234 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %233, ptr noundef %6)
  %235 = fadd double %212, %228
  %236 = fmul double %235, 5.000000e-01
  %237 = load ptr, ptr %58, align 8, !tbaa !9
  %238 = getelementptr inbounds i8, ptr %237, i64 64
  store double %236, ptr %238, align 8, !tbaa !5
  %239 = load ptr, ptr %63, align 8, !tbaa !9
  %240 = getelementptr inbounds i8, ptr %239, i64 64
  %241 = load double, ptr %240, align 8, !tbaa !5
  %242 = fdiv double %241, %236
  %243 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %242, ptr noundef %6)
  %244 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %243, double noundef 5.000000e-16)
  br i1 %244, label %93, label %.loopexit, !llvm.loop !10

.loopexit:                                        ; preds = %.lr.ph.preheader, %.lr.ph.1, %.lr.ph.2, %.lr.ph.3, %.lr.ph.4, %.lr.ph.5, %.lr.ph.6, %.lr.ph.7, %57, %93
  %.0125131 = phi double [ 2.560000e+02, %93 ], [ 1.000000e+00, %57 ], [ 2.000000e+00, %.lr.ph.preheader ], [ 4.000000e+00, %.lr.ph.1 ], [ 8.000000e+00, %.lr.ph.2 ], [ 1.600000e+01, %.lr.ph.3 ], [ 3.200000e+01, %.lr.ph.4 ], [ 6.400000e+01, %.lr.ph.5 ], [ 1.280000e+02, %.lr.ph.6 ], [ 2.560000e+02, %.lr.ph.7 ]
  %.0129 = phi i64 [ 8, %93 ], [ 0, %57 ], [ 1, %.lr.ph.preheader ], [ 2, %.lr.ph.1 ], [ 3, %.lr.ph.2 ], [ 4, %.lr.ph.3 ], [ 5, %.lr.ph.4 ], [ 6, %.lr.ph.5 ], [ 7, %.lr.ph.6 ], [ 8, %.lr.ph.7 ]
  %245 = load ptr, ptr %58, align 8, !tbaa !9
  %246 = getelementptr inbounds double, ptr %245, i64 %.0129
  %247 = load double, ptr %246, align 8, !tbaa !5
  %248 = fmul double %.0125131, %247
  %249 = fmul double %248, %0
  br label %250

250:                                              ; preds = %250, %.loopexit
  %.0126 = phi double [ %249, %.loopexit ], [ %262, %250 ]
  %.1 = phi i64 [ %.0129, %.loopexit ], [ %263, %250 ]
  %251 = load ptr, ptr %63, align 8, !tbaa !9
  %252 = getelementptr inbounds double, ptr %251, i64 %.1
  %253 = load double, ptr %252, align 8, !tbaa !5
  %254 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %.0126, ptr noundef %6)
  %255 = fmul double %253, %254
  %256 = load ptr, ptr %58, align 8, !tbaa !9
  %257 = getelementptr inbounds double, ptr %256, i64 %.1
  %258 = load double, ptr %257, align 8, !tbaa !5
  %259 = fdiv double %255, %258
  %260 = call noundef double @_ZN11alglib_impl7ae_asinEdPNS_8ae_stateE(double noundef %259, ptr noundef %6)
  %261 = fadd double %.0126, %260
  %262 = fmul double %261, 5.000000e-01
  %263 = add nsw i64 %.1, -1
  %.not = icmp eq i64 %263, 0
  br i1 %.not, label %264, label %250, !llvm.loop !12

264:                                              ; preds = %250
  %265 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %262, ptr noundef %6)
  store double %265, ptr %2, align 8, !tbaa !5
  %266 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %262, ptr noundef %6)
  store double %266, ptr %3, align 8, !tbaa !5
  %267 = fsub double %262, %.0126
  %268 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %267, ptr noundef %6)
  %269 = fdiv double %266, %268
  store double %269, ptr %4, align 8, !tbaa !5
  store double %262, ptr %5, align 8, !tbaa !5
  br label %270

270:                                              ; preds = %264, %33, %17
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %6)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

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

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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}


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