; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z12testspline1dbPN11alglib_impl8ae_stateE)

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

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.617 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.618 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.619 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.620 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.621 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.622 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.623 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.624 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.625 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.626 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.627 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.628 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.629 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.630 = external hidden unnamed_addr constant [42 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

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

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

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

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

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

declare i32 @printf(ptr noundef, ...) #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) #1

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

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

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

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

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

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

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z12testspline1dbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #4 {
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca double, align 8
  %20 = alloca i64, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i8, align 1
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca %"struct.alglib_impl::ae_vector", align 8
  %32 = alloca %"struct.alglib_impl::ae_vector", align 8
  %33 = alloca %"struct.alglib_impl::ae_vector", align 8
  %34 = alloca %"struct.alglib_impl::ae_vector", align 8
  %35 = alloca %"struct.alglib_impl::ae_vector", align 8
  %36 = alloca %"struct.alglib_impl::ae_vector", align 8
  %37 = alloca %"struct.alglib_impl::ae_vector", align 8
  %38 = alloca %"struct.alglib_impl::ae_vector", align 8
  %39 = alloca %"struct.alglib_impl::ae_vector", align 8
  %40 = alloca %"struct.alglib_impl::ae_vector", align 8
  %41 = alloca i64, align 8
  %42 = alloca %"struct.alglib_impl::ae_vector", align 8
  %43 = alloca %"struct.alglib_impl::ae_vector", align 8
  %44 = alloca %"struct.alglib_impl::ae_vector", align 8
  %45 = alloca %"struct.alglib_impl::ae_vector", align 8
  %46 = alloca %"struct.alglib_impl::ae_vector", align 8
  %47 = alloca %"struct.alglib_impl::spline1dinterpolant", align 8
  %48 = alloca %"struct.alglib_impl::spline1dinterpolant", align 8
  %49 = alloca double, align 8
  %50 = alloca double, align 8
  %51 = alloca double, align 8
  %52 = alloca double, align 8
  %53 = alloca double, align 8
  %54 = alloca double, align 8
  %55 = alloca double, align 8
  %56 = alloca double, align 8
  %57 = alloca double, align 8
  %58 = alloca double, align 8
  %59 = alloca double, align 8
  %60 = alloca double, align 8
  %61 = alloca double, align 8
  %62 = alloca double, align 8
  %63 = alloca double, align 8
  %64 = alloca double, align 8
  %65 = alloca double, align 8
  %66 = alloca double, align 8
  %67 = alloca double, align 8
  %68 = alloca double, align 8
  %69 = alloca double, align 8
  %70 = alloca double, align 8
  %71 = alloca double, align 8
  %72 = alloca double, align 8
  %73 = alloca double, align 8
  %74 = alloca double, align 8
  %75 = alloca double, align 8
  %76 = alloca double, align 8
  %77 = alloca double, align 8
  %78 = alloca i64, align 8
  %79 = alloca i8, align 1
  %80 = zext i1 %0 to i8
  store i8 %80, ptr %3, align 1, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 1, 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 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %39) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %40) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %42) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %43) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %44) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %45) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %46) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr %47) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr %48) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %75) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %76) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %77) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %78) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %79) #5
  %81 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %81, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %33, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %34, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %35, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %36, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %37, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %38, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %39, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %40, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %42, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %43, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %44, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %45, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %46, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %47, i8 0, i64 160, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %48, i8 0, i64 160, i1 false)
  %82 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %31, i64 noundef 0, i64 noundef 3, ptr noundef %82, i1 noundef zeroext true)
  %83 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %32, i64 noundef 0, i64 noundef 3, ptr noundef %83, i1 noundef zeroext true)
  %84 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %33, i64 noundef 0, i64 noundef 3, ptr noundef %84, i1 noundef zeroext true)
  %85 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %34, i64 noundef 0, i64 noundef 3, ptr noundef %85, i1 noundef zeroext true)
  %86 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %35, i64 noundef 0, i64 noundef 3, ptr noundef %86, i1 noundef zeroext true)
  %87 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %36, i64 noundef 0, i64 noundef 3, ptr noundef %87, i1 noundef zeroext true)
  %88 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %37, i64 noundef 0, i64 noundef 3, ptr noundef %88, i1 noundef zeroext true)
  %89 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %38, i64 noundef 0, i64 noundef 3, ptr noundef %89, i1 noundef zeroext true)
  %90 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %39, i64 noundef 0, i64 noundef 3, ptr noundef %90, i1 noundef zeroext true)
  %91 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %40, i64 noundef 0, i64 noundef 3, ptr noundef %91, i1 noundef zeroext true)
  %92 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %42, i64 noundef 0, i64 noundef 3, ptr noundef %92, i1 noundef zeroext true)
  %93 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %43, i64 noundef 0, i64 noundef 3, ptr noundef %93, i1 noundef zeroext true)
  %94 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %44, i64 noundef 0, i64 noundef 3, ptr noundef %94, i1 noundef zeroext true)
  %95 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %45, i64 noundef 0, i64 noundef 3, ptr noundef %95, i1 noundef zeroext true)
  %96 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %46, i64 noundef 0, i64 noundef 2, ptr noundef %96, i1 noundef zeroext true)
  %97 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef %47, ptr noundef %97, i1 noundef zeroext true)
  %98 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef %48, ptr noundef %98, i1 noundef zeroext true)
  store i8 0, ptr %6, align 1, !tbaa !5
  store i64 20, ptr %20, align 8, !tbaa !11
  store double 5.000000e-03, ptr %21, align 8, !tbaa !13
  store double 1.000000e-05, ptr %22, align 8, !tbaa !13
  store i64 10, ptr %23, align 8, !tbaa !11
  store double 0x3D95FD7FE1796496, ptr %19, align 8, !tbaa !13
  store i8 0, ptr %11, align 1, !tbaa !5
  store i8 0, ptr %8, align 1, !tbaa !5
  store i8 0, ptr %7, align 1, !tbaa !5
  store i8 0, ptr %9, align 1, !tbaa !5
  store i8 0, ptr %10, align 1, !tbaa !5
  store i8 0, ptr %12, align 1, !tbaa !5
  store i8 0, ptr %14, align 1, !tbaa !5
  store i8 0, ptr %13, align 1, !tbaa !5
  store i8 0, ptr %15, align 1, !tbaa !5
  store i8 0, ptr %16, align 1, !tbaa !5
  store i8 0, ptr %18, align 1, !tbaa !5
  store i64 2, ptr %27, align 8, !tbaa !11
  br label %99

99:                                               ; preds = %1696, %2
  %100 = load i64, ptr %27, align 8, !tbaa !11
  %101 = load i64, ptr %23, align 8, !tbaa !11
  %102 = icmp sle i64 %100, %101
  br i1 %102, label %103, label %1699

103:                                              ; preds = %99
  %104 = load i64, ptr %27, align 8, !tbaa !11
  %105 = sub nsw i64 %104, 1
  %106 = add nsw i64 %105, 1
  %107 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %106, ptr noundef %107)
  %108 = load i64, ptr %27, align 8, !tbaa !11
  %109 = sub nsw i64 %108, 1
  %110 = add nsw i64 %109, 1
  %111 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %110, ptr noundef %111)
  %112 = load i64, ptr %27, align 8, !tbaa !11
  %113 = sub nsw i64 %112, 1
  %114 = add nsw i64 %113, 1
  %115 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %33, i64 noundef %114, ptr noundef %115)
  %116 = load i64, ptr %27, align 8, !tbaa !11
  %117 = sub nsw i64 %116, 1
  %118 = add nsw i64 %117, 1
  %119 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %37, i64 noundef %118, ptr noundef %119)
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %120

120:                                              ; preds = %1692, %103
  %121 = load i64, ptr %30, align 8, !tbaa !11
  %122 = load i64, ptr %20, align 8, !tbaa !11
  %123 = icmp sle i64 %121, %122
  br i1 %123, label %124, label %1695

124:                                              ; preds = %120
  %125 = load ptr, ptr %4, align 8, !tbaa !9
  %126 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %125)
  %127 = fsub double -1.000000e+00, %126
  store double %127, ptr %49, align 8, !tbaa !13
  %128 = load ptr, ptr %4, align 8, !tbaa !9
  %129 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %128)
  %130 = fadd double 1.000000e+00, %129
  store double %130, ptr %50, align 8, !tbaa !13
  %131 = load ptr, ptr %4, align 8, !tbaa !9
  %132 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %131)
  %133 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %132, double -1.000000e+00)
  store double %133, ptr %51, align 8, !tbaa !13
  %134 = load ptr, ptr %4, align 8, !tbaa !9
  %135 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %134)
  %136 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %135, double -1.000000e+00)
  store double %136, ptr %52, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %137

137:                                              ; preds = %221, %124
  %138 = load i64, ptr %28, align 8, !tbaa !11
  %139 = load i64, ptr %27, align 8, !tbaa !11
  %140 = sub nsw i64 %139, 1
  %141 = icmp sle i64 %138, %140
  br i1 %141, label %142, label %224

142:                                              ; preds = %137
  %143 = load double, ptr %50, align 8, !tbaa !13
  %144 = load double, ptr %49, align 8, !tbaa !13
  %145 = fadd double %143, %144
  %146 = load double, ptr %50, align 8, !tbaa !13
  %147 = load double, ptr %49, align 8, !tbaa !13
  %148 = fsub double %146, %147
  %149 = fmul double 5.000000e-01, %148
  %150 = load i64, ptr %28, align 8, !tbaa !11
  %151 = mul nsw i64 2, %150
  %152 = add nsw i64 %151, 1
  %153 = sitofp i64 %152 to double
  %154 = fmul double 0x400921FB54442D18, %153
  %155 = load i64, ptr %27, align 8, !tbaa !11
  %156 = mul nsw i64 2, %155
  %157 = sitofp i64 %156 to double
  %158 = fdiv double %154, %157
  %159 = load ptr, ptr %4, align 8, !tbaa !9
  %160 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %158, ptr noundef %159)
  %161 = fmul double %149, %160
  %162 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %145, double %161)
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %164 = load ptr, ptr %163, align 8, !tbaa !15
  %165 = load i64, ptr %28, align 8, !tbaa !11
  %166 = getelementptr inbounds double, ptr %164, i64 %165
  store double %162, ptr %166, align 8, !tbaa !13
  %167 = load i64, ptr %28, align 8, !tbaa !11
  %168 = icmp eq i64 %167, 0
  br i1 %168, label %169, label %175

169:                                              ; preds = %142
  %170 = load double, ptr %49, align 8, !tbaa !13
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !15
  %173 = load i64, ptr %28, align 8, !tbaa !11
  %174 = getelementptr inbounds double, ptr %172, i64 %173
  store double %170, ptr %174, align 8, !tbaa !13
  br label %175

175:                                              ; preds = %169, %142
  %176 = load i64, ptr %28, align 8, !tbaa !11
  %177 = load i64, ptr %27, align 8, !tbaa !11
  %178 = sub nsw i64 %177, 1
  %179 = icmp eq i64 %176, %178
  br i1 %179, label %180, label %186

180:                                              ; preds = %175
  %181 = load double, ptr %50, align 8, !tbaa !13
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !15
  %184 = load i64, ptr %28, align 8, !tbaa !11
  %185 = getelementptr inbounds double, ptr %183, i64 %184
  store double %181, ptr %185, align 8, !tbaa !13
  br label %186

186:                                              ; preds = %180, %175
  %187 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %188 = load ptr, ptr %187, align 8, !tbaa !15
  %189 = load i64, ptr %28, align 8, !tbaa !11
  %190 = getelementptr inbounds double, ptr %188, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !13
  %192 = call double @llvm.fmuladd.f64(double 0x40105616905F83B6, double %191, double 4.000000e-01)
  %193 = load ptr, ptr %4, align 8, !tbaa !9
  %194 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %192, ptr noundef %193)
  %195 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %196 = load ptr, ptr %195, align 8, !tbaa !15
  %197 = load i64, ptr %28, align 8, !tbaa !11
  %198 = getelementptr inbounds double, ptr %196, i64 %197
  store double %194, ptr %198, align 8, !tbaa !13
  %199 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %200 = load ptr, ptr %199, align 8, !tbaa !15
  %201 = load i64, ptr %28, align 8, !tbaa !11
  %202 = getelementptr inbounds double, ptr %200, i64 %201
  %203 = load double, ptr %202, align 8, !tbaa !13
  %204 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %205 = load ptr, ptr %204, align 8, !tbaa !15
  %206 = load i64, ptr %28, align 8, !tbaa !11
  %207 = getelementptr inbounds double, ptr %205, i64 %206
  store double %203, ptr %207, align 8, !tbaa !13
  %208 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %209 = load ptr, ptr %208, align 8, !tbaa !15
  %210 = load i64, ptr %28, align 8, !tbaa !11
  %211 = getelementptr inbounds double, ptr %209, i64 %210
  %212 = load double, ptr %211, align 8, !tbaa !13
  %213 = call double @llvm.fmuladd.f64(double 0x40105616905F83B6, double %212, double 4.000000e-01)
  %214 = load ptr, ptr %4, align 8, !tbaa !9
  %215 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %213, ptr noundef %214)
  %216 = fmul double 0xC0105616905F83B6, %215
  %217 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !15
  %219 = load i64, ptr %28, align 8, !tbaa !11
  %220 = getelementptr inbounds double, ptr %218, i64 %219
  store double %216, ptr %220, align 8, !tbaa !13
  br label %221

221:                                              ; preds = %186
  %222 = load i64, ptr %28, align 8, !tbaa !11
  %223 = add nsw i64 %222, 1
  store i64 %223, ptr %28, align 8, !tbaa !11
  br label %137, !llvm.loop !16

224:                                              ; preds = %137
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %226 = load ptr, ptr %225, align 8, !tbaa !15
  %227 = getelementptr inbounds double, ptr %226, i64 0
  %228 = load double, ptr %227, align 8, !tbaa !13
  %229 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %230 = load ptr, ptr %229, align 8, !tbaa !15
  %231 = load i64, ptr %27, align 8, !tbaa !11
  %232 = sub nsw i64 %231, 1
  %233 = getelementptr inbounds double, ptr %230, i64 %232
  store double %228, ptr %233, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %234

234:                                              ; preds = %324, %224
  %235 = load i64, ptr %28, align 8, !tbaa !11
  %236 = load i64, ptr %27, align 8, !tbaa !11
  %237 = sub nsw i64 %236, 1
  %238 = icmp sle i64 %235, %237
  br i1 %238, label %239, label %327

239:                                              ; preds = %234
  %240 = load i64, ptr %27, align 8, !tbaa !11
  %241 = load ptr, ptr %4, align 8, !tbaa !9
  %242 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %240, ptr noundef %241)
  store i64 %242, ptr %29, align 8, !tbaa !11
  %243 = load i64, ptr %29, align 8, !tbaa !11
  %244 = load i64, ptr %28, align 8, !tbaa !11
  %245 = icmp ne i64 %243, %244
  br i1 %245, label %246, label %323

246:                                              ; preds = %239
  %247 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %248 = load ptr, ptr %247, align 8, !tbaa !15
  %249 = load i64, ptr %28, align 8, !tbaa !11
  %250 = getelementptr inbounds double, ptr %248, i64 %249
  %251 = load double, ptr %250, align 8, !tbaa !13
  store double %251, ptr %53, align 8, !tbaa !13
  %252 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %253 = load ptr, ptr %252, align 8, !tbaa !15
  %254 = load i64, ptr %29, align 8, !tbaa !11
  %255 = getelementptr inbounds double, ptr %253, i64 %254
  %256 = load double, ptr %255, align 8, !tbaa !13
  %257 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %258 = load ptr, ptr %257, align 8, !tbaa !15
  %259 = load i64, ptr %28, align 8, !tbaa !11
  %260 = getelementptr inbounds double, ptr %258, i64 %259
  store double %256, ptr %260, align 8, !tbaa !13
  %261 = load double, ptr %53, align 8, !tbaa !13
  %262 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %263 = load ptr, ptr %262, align 8, !tbaa !15
  %264 = load i64, ptr %29, align 8, !tbaa !11
  %265 = getelementptr inbounds double, ptr %263, i64 %264
  store double %261, ptr %265, align 8, !tbaa !13
  %266 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %267 = load ptr, ptr %266, align 8, !tbaa !15
  %268 = load i64, ptr %28, align 8, !tbaa !11
  %269 = getelementptr inbounds double, ptr %267, i64 %268
  %270 = load double, ptr %269, align 8, !tbaa !13
  store double %270, ptr %53, align 8, !tbaa !13
  %271 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %272 = load ptr, ptr %271, align 8, !tbaa !15
  %273 = load i64, ptr %29, align 8, !tbaa !11
  %274 = getelementptr inbounds double, ptr %272, i64 %273
  %275 = load double, ptr %274, align 8, !tbaa !13
  %276 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %277 = load ptr, ptr %276, align 8, !tbaa !15
  %278 = load i64, ptr %28, align 8, !tbaa !11
  %279 = getelementptr inbounds double, ptr %277, i64 %278
  store double %275, ptr %279, align 8, !tbaa !13
  %280 = load double, ptr %53, align 8, !tbaa !13
  %281 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %282 = load ptr, ptr %281, align 8, !tbaa !15
  %283 = load i64, ptr %29, align 8, !tbaa !11
  %284 = getelementptr inbounds double, ptr %282, i64 %283
  store double %280, ptr %284, align 8, !tbaa !13
  %285 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %286 = load ptr, ptr %285, align 8, !tbaa !15
  %287 = load i64, ptr %28, align 8, !tbaa !11
  %288 = getelementptr inbounds double, ptr %286, i64 %287
  %289 = load double, ptr %288, align 8, !tbaa !13
  store double %289, ptr %53, align 8, !tbaa !13
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %291 = load ptr, ptr %290, align 8, !tbaa !15
  %292 = load i64, ptr %29, align 8, !tbaa !11
  %293 = getelementptr inbounds double, ptr %291, i64 %292
  %294 = load double, ptr %293, align 8, !tbaa !13
  %295 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %296 = load ptr, ptr %295, align 8, !tbaa !15
  %297 = load i64, ptr %28, align 8, !tbaa !11
  %298 = getelementptr inbounds double, ptr %296, i64 %297
  store double %294, ptr %298, align 8, !tbaa !13
  %299 = load double, ptr %53, align 8, !tbaa !13
  %300 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %301 = load ptr, ptr %300, align 8, !tbaa !15
  %302 = load i64, ptr %29, align 8, !tbaa !11
  %303 = getelementptr inbounds double, ptr %301, i64 %302
  store double %299, ptr %303, align 8, !tbaa !13
  %304 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %305 = load ptr, ptr %304, align 8, !tbaa !15
  %306 = load i64, ptr %28, align 8, !tbaa !11
  %307 = getelementptr inbounds double, ptr %305, i64 %306
  %308 = load double, ptr %307, align 8, !tbaa !13
  store double %308, ptr %53, align 8, !tbaa !13
  %309 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %310 = load ptr, ptr %309, align 8, !tbaa !15
  %311 = load i64, ptr %29, align 8, !tbaa !11
  %312 = getelementptr inbounds double, ptr %310, i64 %311
  %313 = load double, ptr %312, align 8, !tbaa !13
  %314 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %315 = load ptr, ptr %314, align 8, !tbaa !15
  %316 = load i64, ptr %28, align 8, !tbaa !11
  %317 = getelementptr inbounds double, ptr %315, i64 %316
  store double %313, ptr %317, align 8, !tbaa !13
  %318 = load double, ptr %53, align 8, !tbaa !13
  %319 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %320 = load ptr, ptr %319, align 8, !tbaa !15
  %321 = load i64, ptr %29, align 8, !tbaa !11
  %322 = getelementptr inbounds double, ptr %320, i64 %321
  store double %318, ptr %322, align 8, !tbaa !13
  br label %323

323:                                              ; preds = %246, %239
  br label %324

324:                                              ; preds = %323
  %325 = load i64, ptr %28, align 8, !tbaa !11
  %326 = add nsw i64 %325, 1
  store i64 %326, ptr %28, align 8, !tbaa !11
  br label %234, !llvm.loop !18

327:                                              ; preds = %234
  %328 = load i64, ptr %27, align 8, !tbaa !11
  %329 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl19spline1dbuildlinearEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %328, ptr noundef %47, ptr noundef %329)
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %330

330:                                              ; preds = %354, %327
  %331 = load i64, ptr %28, align 8, !tbaa !11
  %332 = load i64, ptr %27, align 8, !tbaa !11
  %333 = sub nsw i64 %332, 1
  %334 = icmp sle i64 %331, %333
  br i1 %334, label %335, label %357

335:                                              ; preds = %330
  %336 = load double, ptr %75, align 8, !tbaa !13
  %337 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %338 = load ptr, ptr %337, align 8, !tbaa !15
  %339 = load i64, ptr %28, align 8, !tbaa !11
  %340 = getelementptr inbounds double, ptr %338, i64 %339
  %341 = load double, ptr %340, align 8, !tbaa !13
  %342 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %343 = load ptr, ptr %342, align 8, !tbaa !15
  %344 = load i64, ptr %28, align 8, !tbaa !11
  %345 = getelementptr inbounds double, ptr %343, i64 %344
  %346 = load double, ptr %345, align 8, !tbaa !13
  %347 = load ptr, ptr %4, align 8, !tbaa !9
  %348 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %346, ptr noundef %347)
  %349 = fsub double %341, %348
  %350 = load ptr, ptr %4, align 8, !tbaa !9
  %351 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %349, ptr noundef %350)
  %352 = load ptr, ptr %4, align 8, !tbaa !9
  %353 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %336, double noundef %351, ptr noundef %352)
  store double %353, ptr %75, align 8, !tbaa !13
  br label %354

354:                                              ; preds = %335
  %355 = load i64, ptr %28, align 8, !tbaa !11
  %356 = add nsw i64 %355, 1
  store i64 %356, ptr %28, align 8, !tbaa !11
  br label %330, !llvm.loop !19

357:                                              ; preds = %330
  %358 = load i8, ptr %11, align 1, !tbaa !5, !range !20, !noundef !21
  %359 = trunc i8 %358 to i1
  br i1 %359, label %364, label %360

360:                                              ; preds = %357
  %361 = load double, ptr %75, align 8, !tbaa !13
  %362 = load double, ptr %19, align 8, !tbaa !13
  %363 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %361, double noundef %362)
  br label %364

364:                                              ; preds = %360, %357
  %365 = phi i1 [ true, %357 ], [ %363, %360 ]
  %366 = zext i1 %365 to i8
  store i8 %366, ptr %11, align 1, !tbaa !5
  %367 = load double, ptr %49, align 8, !tbaa !13
  %368 = load double, ptr %50, align 8, !tbaa !13
  %369 = load double, ptr %21, align 8, !tbaa !13
  %370 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %367, double noundef %368, ptr noundef %47, double noundef %369, ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %370)
  %371 = load double, ptr %49, align 8, !tbaa !13
  %372 = load double, ptr %50, align 8, !tbaa !13
  %373 = load double, ptr %21, align 8, !tbaa !13
  %374 = fdiv double %373, 3.000000e+00
  %375 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %371, double noundef %372, ptr noundef %47, double noundef %374, ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %375)
  %376 = load i8, ptr %11, align 1, !tbaa !5, !range !20, !noundef !21
  %377 = trunc i8 %376 to i1
  br i1 %377, label %383, label %378

378:                                              ; preds = %364
  %379 = load double, ptr %60, align 8, !tbaa !13
  %380 = load double, ptr %57, align 8, !tbaa !13
  %381 = fdiv double %379, %380
  %382 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %381, double noundef 1.200000e+00)
  br label %383

383:                                              ; preds = %378, %364
  %384 = phi i1 [ true, %364 ], [ %382, %378 ]
  %385 = zext i1 %384 to i8
  store i8 %385, ptr %11, align 1, !tbaa !5
  store i64 -1, ptr %24, align 8, !tbaa !11
  br label %386

386:                                              ; preds = %1188, %383
  %387 = load i64, ptr %24, align 8, !tbaa !11
  %388 = icmp sle i64 %387, 2
  br i1 %388, label %389, label %1191

389:                                              ; preds = %386
  store i64 -1, ptr %25, align 8, !tbaa !11
  br label %390

390:                                              ; preds = %1184, %389
  %391 = load i64, ptr %25, align 8, !tbaa !11
  %392 = icmp sle i64 %391, 2
  br i1 %392, label %393, label %1187

393:                                              ; preds = %390
  %394 = load i64, ptr %24, align 8, !tbaa !11
  %395 = icmp eq i64 %394, -1
  br i1 %395, label %399, label %396

396:                                              ; preds = %393
  %397 = load i64, ptr %25, align 8, !tbaa !11
  %398 = icmp eq i64 %397, -1
  br label %399

399:                                              ; preds = %396, %393
  %400 = phi i1 [ true, %393 ], [ %398, %396 ]
  %401 = zext i1 %400 to i8
  store i8 %401, ptr %26, align 1, !tbaa !5
  %402 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %403 = trunc i8 %402 to i1
  br i1 %403, label %404, label %409

404:                                              ; preds = %399
  %405 = load i64, ptr %24, align 8, !tbaa !11
  %406 = load i64, ptr %25, align 8, !tbaa !11
  %407 = icmp ne i64 %405, %406
  br i1 %407, label %408, label %409

408:                                              ; preds = %404
  br label %1184

409:                                              ; preds = %404, %399
  %410 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %411 = trunc i8 %410 to i1
  br i1 %411, label %412, label %419

412:                                              ; preds = %409
  %413 = load i64, ptr %27, align 8, !tbaa !11
  %414 = load i64, ptr %24, align 8, !tbaa !11
  %415 = load double, ptr %51, align 8, !tbaa !13
  %416 = load i64, ptr %25, align 8, !tbaa !11
  %417 = load double, ptr %52, align 8, !tbaa !13
  %418 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %33, i64 noundef %413, i64 noundef %414, double noundef %415, i64 noundef %416, double noundef %417, ptr noundef %47, ptr noundef %418)
  br label %426

419:                                              ; preds = %409
  %420 = load i64, ptr %27, align 8, !tbaa !11
  %421 = load i64, ptr %24, align 8, !tbaa !11
  %422 = load double, ptr %51, align 8, !tbaa !13
  %423 = load i64, ptr %25, align 8, !tbaa !11
  %424 = load double, ptr %52, align 8, !tbaa !13
  %425 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %420, i64 noundef %421, double noundef %422, i64 noundef %423, double noundef %424, ptr noundef %47, ptr noundef %425)
  br label %426

426:                                              ; preds = %419, %412
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  %427 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %428 = trunc i8 %427 to i1
  br i1 %428, label %429, label %553

429:                                              ; preds = %426
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %430

430:                                              ; preds = %493, %429
  %431 = load i64, ptr %28, align 8, !tbaa !11
  %432 = load i64, ptr %27, align 8, !tbaa !11
  %433 = sub nsw i64 %432, 1
  %434 = icmp sle i64 %431, %433
  br i1 %434, label %435, label %496

435:                                              ; preds = %430
  %436 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %437 = load ptr, ptr %436, align 8, !tbaa !15
  %438 = load i64, ptr %28, align 8, !tbaa !11
  %439 = getelementptr inbounds double, ptr %437, i64 %438
  %440 = load double, ptr %439, align 8, !tbaa !13
  store double %440, ptr %56, align 8, !tbaa !13
  %441 = load double, ptr %56, align 8, !tbaa !13
  %442 = load double, ptr %50, align 8, !tbaa !13
  %443 = load double, ptr %49, align 8, !tbaa !13
  %444 = fsub double %442, %443
  %445 = load ptr, ptr %4, align 8, !tbaa !9
  %446 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %445)
  %447 = sub nsw i64 %446, 2
  %448 = sitofp i64 %447 to double
  %449 = call double @llvm.fmuladd.f64(double %444, double %448, double %441)
  store double %449, ptr %73, align 8, !tbaa !13
  %450 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %451 = load ptr, ptr %450, align 8, !tbaa !15
  %452 = load i64, ptr %28, align 8, !tbaa !11
  %453 = getelementptr inbounds double, ptr %451, i64 %452
  %454 = load double, ptr %453, align 8, !tbaa !13
  %455 = load double, ptr %73, align 8, !tbaa !13
  %456 = load ptr, ptr %4, align 8, !tbaa !9
  %457 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %455, ptr noundef %456)
  %458 = fsub double %454, %457
  store double %458, ptr %53, align 8, !tbaa !13
  %459 = load double, ptr %75, align 8, !tbaa !13
  %460 = load double, ptr %53, align 8, !tbaa !13
  %461 = load ptr, ptr %4, align 8, !tbaa !9
  %462 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %460, ptr noundef %461)
  %463 = load ptr, ptr %4, align 8, !tbaa !9
  %464 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %459, double noundef %462, ptr noundef %463)
  store double %464, ptr %75, align 8, !tbaa !13
  %465 = load double, ptr %56, align 8, !tbaa !13
  %466 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %465, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %466)
  %467 = load double, ptr %73, align 8, !tbaa !13
  %468 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %467, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %468)
  %469 = load double, ptr %75, align 8, !tbaa !13
  %470 = load double, ptr %66, align 8, !tbaa !13
  %471 = load double, ptr %69, align 8, !tbaa !13
  %472 = fsub double %470, %471
  %473 = load ptr, ptr %4, align 8, !tbaa !9
  %474 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %472, ptr noundef %473)
  %475 = load ptr, ptr %4, align 8, !tbaa !9
  %476 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %469, double noundef %474, ptr noundef %475)
  store double %476, ptr %75, align 8, !tbaa !13
  %477 = load double, ptr %75, align 8, !tbaa !13
  %478 = load double, ptr %67, align 8, !tbaa !13
  %479 = load double, ptr %70, align 8, !tbaa !13
  %480 = fsub double %478, %479
  %481 = load ptr, ptr %4, align 8, !tbaa !9
  %482 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %480, ptr noundef %481)
  %483 = load ptr, ptr %4, align 8, !tbaa !9
  %484 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %477, double noundef %482, ptr noundef %483)
  store double %484, ptr %75, align 8, !tbaa !13
  %485 = load double, ptr %75, align 8, !tbaa !13
  %486 = load double, ptr %68, align 8, !tbaa !13
  %487 = load double, ptr %71, align 8, !tbaa !13
  %488 = fsub double %486, %487
  %489 = load ptr, ptr %4, align 8, !tbaa !9
  %490 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %488, ptr noundef %489)
  %491 = load ptr, ptr %4, align 8, !tbaa !9
  %492 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %485, double noundef %490, ptr noundef %491)
  store double %492, ptr %75, align 8, !tbaa !13
  br label %493

493:                                              ; preds = %435
  %494 = load i64, ptr %28, align 8, !tbaa !11
  %495 = add nsw i64 %494, 1
  store i64 %495, ptr %28, align 8, !tbaa !11
  br label %430, !llvm.loop !22

496:                                              ; preds = %430
  %497 = load double, ptr %49, align 8, !tbaa !13
  %498 = load double, ptr %50, align 8, !tbaa !13
  %499 = load double, ptr %49, align 8, !tbaa !13
  %500 = fsub double %498, %499
  %501 = load ptr, ptr %4, align 8, !tbaa !9
  %502 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %501)
  %503 = call double @llvm.fmuladd.f64(double %500, double %502, double %497)
  store double %503, ptr %56, align 8, !tbaa !13
  %504 = load double, ptr %56, align 8, !tbaa !13
  %505 = load double, ptr %50, align 8, !tbaa !13
  %506 = load double, ptr %49, align 8, !tbaa !13
  %507 = fsub double %505, %506
  %508 = load ptr, ptr %4, align 8, !tbaa !9
  %509 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %508)
  %510 = sub nsw i64 %509, 2
  %511 = sitofp i64 %510 to double
  %512 = call double @llvm.fmuladd.f64(double %507, double %511, double %504)
  store double %512, ptr %73, align 8, !tbaa !13
  %513 = load double, ptr %75, align 8, !tbaa !13
  %514 = load double, ptr %56, align 8, !tbaa !13
  %515 = load ptr, ptr %4, align 8, !tbaa !9
  %516 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %514, ptr noundef %515)
  %517 = load double, ptr %73, align 8, !tbaa !13
  %518 = load ptr, ptr %4, align 8, !tbaa !9
  %519 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %517, ptr noundef %518)
  %520 = fsub double %516, %519
  %521 = load ptr, ptr %4, align 8, !tbaa !9
  %522 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %520, ptr noundef %521)
  %523 = load ptr, ptr %4, align 8, !tbaa !9
  %524 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %513, double noundef %522, ptr noundef %523)
  store double %524, ptr %75, align 8, !tbaa !13
  %525 = load double, ptr %56, align 8, !tbaa !13
  %526 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %525, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %526)
  %527 = load double, ptr %73, align 8, !tbaa !13
  %528 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %527, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %528)
  %529 = load double, ptr %75, align 8, !tbaa !13
  %530 = load double, ptr %66, align 8, !tbaa !13
  %531 = load double, ptr %69, align 8, !tbaa !13
  %532 = fsub double %530, %531
  %533 = load ptr, ptr %4, align 8, !tbaa !9
  %534 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %532, ptr noundef %533)
  %535 = load ptr, ptr %4, align 8, !tbaa !9
  %536 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %529, double noundef %534, ptr noundef %535)
  store double %536, ptr %75, align 8, !tbaa !13
  %537 = load double, ptr %75, align 8, !tbaa !13
  %538 = load double, ptr %67, align 8, !tbaa !13
  %539 = load double, ptr %70, align 8, !tbaa !13
  %540 = fsub double %538, %539
  %541 = load ptr, ptr %4, align 8, !tbaa !9
  %542 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %540, ptr noundef %541)
  %543 = load ptr, ptr %4, align 8, !tbaa !9
  %544 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %537, double noundef %542, ptr noundef %543)
  store double %544, ptr %75, align 8, !tbaa !13
  %545 = load double, ptr %75, align 8, !tbaa !13
  %546 = load double, ptr %68, align 8, !tbaa !13
  %547 = load double, ptr %71, align 8, !tbaa !13
  %548 = fsub double %546, %547
  %549 = load ptr, ptr %4, align 8, !tbaa !9
  %550 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %548, ptr noundef %549)
  %551 = load ptr, ptr %4, align 8, !tbaa !9
  %552 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %545, double noundef %550, ptr noundef %551)
  store double %552, ptr %75, align 8, !tbaa !13
  br label %582

553:                                              ; preds = %426
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %554

554:                                              ; preds = %578, %553
  %555 = load i64, ptr %28, align 8, !tbaa !11
  %556 = load i64, ptr %27, align 8, !tbaa !11
  %557 = sub nsw i64 %556, 1
  %558 = icmp sle i64 %555, %557
  br i1 %558, label %559, label %581

559:                                              ; preds = %554
  %560 = load double, ptr %75, align 8, !tbaa !13
  %561 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %562 = load ptr, ptr %561, align 8, !tbaa !15
  %563 = load i64, ptr %28, align 8, !tbaa !11
  %564 = getelementptr inbounds double, ptr %562, i64 %563
  %565 = load double, ptr %564, align 8, !tbaa !13
  %566 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %567 = load ptr, ptr %566, align 8, !tbaa !15
  %568 = load i64, ptr %28, align 8, !tbaa !11
  %569 = getelementptr inbounds double, ptr %567, i64 %568
  %570 = load double, ptr %569, align 8, !tbaa !13
  %571 = load ptr, ptr %4, align 8, !tbaa !9
  %572 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %570, ptr noundef %571)
  %573 = fsub double %565, %572
  %574 = load ptr, ptr %4, align 8, !tbaa !9
  %575 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %573, ptr noundef %574)
  %576 = load ptr, ptr %4, align 8, !tbaa !9
  %577 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %560, double noundef %575, ptr noundef %576)
  store double %577, ptr %75, align 8, !tbaa !13
  br label %578

578:                                              ; preds = %559
  %579 = load i64, ptr %28, align 8, !tbaa !11
  %580 = add nsw i64 %579, 1
  store i64 %580, ptr %28, align 8, !tbaa !11
  br label %554, !llvm.loop !23

581:                                              ; preds = %554
  br label %582

582:                                              ; preds = %581, %496
  %583 = load i8, ptr %8, align 1, !tbaa !5, !range !20, !noundef !21
  %584 = trunc i8 %583 to i1
  br i1 %584, label %589, label %585

585:                                              ; preds = %582
  %586 = load double, ptr %75, align 8, !tbaa !13
  %587 = load double, ptr %19, align 8, !tbaa !13
  %588 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %586, double noundef %587)
  br label %589

589:                                              ; preds = %585, %582
  %590 = phi i1 [ true, %582 ], [ %588, %585 ]
  %591 = zext i1 %590 to i8
  store i8 %591, ptr %8, align 1, !tbaa !5
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  %592 = load i64, ptr %24, align 8, !tbaa !11
  %593 = icmp eq i64 %592, 0
  br i1 %593, label %594, label %615

594:                                              ; preds = %589
  %595 = load double, ptr %49, align 8, !tbaa !13
  %596 = load double, ptr %22, align 8, !tbaa !13
  %597 = fsub double %595, %596
  %598 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %597, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %598)
  %599 = load double, ptr %49, align 8, !tbaa !13
  %600 = load double, ptr %22, align 8, !tbaa !13
  %601 = fadd double %599, %600
  %602 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %601, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %602)
  %603 = load double, ptr %71, align 8, !tbaa !13
  %604 = load double, ptr %68, align 8, !tbaa !13
  %605 = fsub double %603, %604
  %606 = load double, ptr %22, align 8, !tbaa !13
  %607 = fmul double 2.000000e+00, %606
  %608 = fdiv double %605, %607
  store double %608, ptr %53, align 8, !tbaa !13
  %609 = load double, ptr %75, align 8, !tbaa !13
  %610 = load double, ptr %53, align 8, !tbaa !13
  %611 = load ptr, ptr %4, align 8, !tbaa !9
  %612 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %610, ptr noundef %611)
  %613 = load ptr, ptr %4, align 8, !tbaa !9
  %614 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %609, double noundef %612, ptr noundef %613)
  store double %614, ptr %75, align 8, !tbaa !13
  br label %615

615:                                              ; preds = %594, %589
  %616 = load i64, ptr %24, align 8, !tbaa !11
  %617 = icmp eq i64 %616, 1
  br i1 %617, label %618, label %641

618:                                              ; preds = %615
  %619 = load double, ptr %49, align 8, !tbaa !13
  %620 = load double, ptr %22, align 8, !tbaa !13
  %621 = fadd double %619, %620
  %622 = load ptr, ptr %4, align 8, !tbaa !9
  %623 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %621, ptr noundef %622)
  %624 = load double, ptr %49, align 8, !tbaa !13
  %625 = load double, ptr %22, align 8, !tbaa !13
  %626 = fsub double %624, %625
  %627 = load ptr, ptr %4, align 8, !tbaa !9
  %628 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %626, ptr noundef %627)
  %629 = fsub double %623, %628
  %630 = load double, ptr %22, align 8, !tbaa !13
  %631 = fmul double 2.000000e+00, %630
  %632 = fdiv double %629, %631
  store double %632, ptr %53, align 8, !tbaa !13
  %633 = load double, ptr %75, align 8, !tbaa !13
  %634 = load double, ptr %51, align 8, !tbaa !13
  %635 = load double, ptr %53, align 8, !tbaa !13
  %636 = fsub double %634, %635
  %637 = load ptr, ptr %4, align 8, !tbaa !9
  %638 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %636, ptr noundef %637)
  %639 = load ptr, ptr %4, align 8, !tbaa !9
  %640 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %633, double noundef %638, ptr noundef %639)
  store double %640, ptr %75, align 8, !tbaa !13
  br label %641

641:                                              ; preds = %618, %615
  %642 = load i64, ptr %24, align 8, !tbaa !11
  %643 = icmp eq i64 %642, 2
  br i1 %643, label %644, label %672

644:                                              ; preds = %641
  %645 = load double, ptr %49, align 8, !tbaa !13
  %646 = load double, ptr %22, align 8, !tbaa !13
  %647 = fadd double %645, %646
  %648 = load ptr, ptr %4, align 8, !tbaa !9
  %649 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %647, ptr noundef %648)
  %650 = load double, ptr %49, align 8, !tbaa !13
  %651 = load ptr, ptr %4, align 8, !tbaa !9
  %652 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %650, ptr noundef %651)
  %653 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %652, double %649)
  %654 = load double, ptr %49, align 8, !tbaa !13
  %655 = load double, ptr %22, align 8, !tbaa !13
  %656 = fsub double %654, %655
  %657 = load ptr, ptr %4, align 8, !tbaa !9
  %658 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %656, ptr noundef %657)
  %659 = fadd double %653, %658
  %660 = load double, ptr %22, align 8, !tbaa !13
  %661 = load ptr, ptr %4, align 8, !tbaa !9
  %662 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %660, ptr noundef %661)
  %663 = fdiv double %659, %662
  store double %663, ptr %53, align 8, !tbaa !13
  %664 = load double, ptr %75, align 8, !tbaa !13
  %665 = load double, ptr %51, align 8, !tbaa !13
  %666 = load double, ptr %53, align 8, !tbaa !13
  %667 = fsub double %665, %666
  %668 = load ptr, ptr %4, align 8, !tbaa !9
  %669 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %667, ptr noundef %668)
  %670 = load ptr, ptr %4, align 8, !tbaa !9
  %671 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %664, double noundef %669, ptr noundef %670)
  store double %671, ptr %75, align 8, !tbaa !13
  br label %672

672:                                              ; preds = %644, %641
  %673 = load i64, ptr %25, align 8, !tbaa !11
  %674 = icmp eq i64 %673, 0
  br i1 %674, label %675, label %696

675:                                              ; preds = %672
  %676 = load double, ptr %50, align 8, !tbaa !13
  %677 = load double, ptr %22, align 8, !tbaa !13
  %678 = fsub double %676, %677
  %679 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %678, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %679)
  %680 = load double, ptr %50, align 8, !tbaa !13
  %681 = load double, ptr %22, align 8, !tbaa !13
  %682 = fadd double %680, %681
  %683 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %682, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %683)
  %684 = load double, ptr %71, align 8, !tbaa !13
  %685 = load double, ptr %68, align 8, !tbaa !13
  %686 = fsub double %684, %685
  %687 = load double, ptr %22, align 8, !tbaa !13
  %688 = fmul double 2.000000e+00, %687
  %689 = fdiv double %686, %688
  store double %689, ptr %53, align 8, !tbaa !13
  %690 = load double, ptr %75, align 8, !tbaa !13
  %691 = load double, ptr %53, align 8, !tbaa !13
  %692 = load ptr, ptr %4, align 8, !tbaa !9
  %693 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %691, ptr noundef %692)
  %694 = load ptr, ptr %4, align 8, !tbaa !9
  %695 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %690, double noundef %693, ptr noundef %694)
  store double %695, ptr %75, align 8, !tbaa !13
  br label %696

696:                                              ; preds = %675, %672
  %697 = load i64, ptr %25, align 8, !tbaa !11
  %698 = icmp eq i64 %697, 1
  br i1 %698, label %699, label %722

699:                                              ; preds = %696
  %700 = load double, ptr %50, align 8, !tbaa !13
  %701 = load double, ptr %22, align 8, !tbaa !13
  %702 = fadd double %700, %701
  %703 = load ptr, ptr %4, align 8, !tbaa !9
  %704 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %702, ptr noundef %703)
  %705 = load double, ptr %50, align 8, !tbaa !13
  %706 = load double, ptr %22, align 8, !tbaa !13
  %707 = fsub double %705, %706
  %708 = load ptr, ptr %4, align 8, !tbaa !9
  %709 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %707, ptr noundef %708)
  %710 = fsub double %704, %709
  %711 = load double, ptr %22, align 8, !tbaa !13
  %712 = fmul double 2.000000e+00, %711
  %713 = fdiv double %710, %712
  store double %713, ptr %53, align 8, !tbaa !13
  %714 = load double, ptr %75, align 8, !tbaa !13
  %715 = load double, ptr %52, align 8, !tbaa !13
  %716 = load double, ptr %53, align 8, !tbaa !13
  %717 = fsub double %715, %716
  %718 = load ptr, ptr %4, align 8, !tbaa !9
  %719 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %717, ptr noundef %718)
  %720 = load ptr, ptr %4, align 8, !tbaa !9
  %721 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %714, double noundef %719, ptr noundef %720)
  store double %721, ptr %75, align 8, !tbaa !13
  br label %722

722:                                              ; preds = %699, %696
  %723 = load i64, ptr %25, align 8, !tbaa !11
  %724 = icmp eq i64 %723, 2
  br i1 %724, label %725, label %753

725:                                              ; preds = %722
  %726 = load double, ptr %50, align 8, !tbaa !13
  %727 = load double, ptr %22, align 8, !tbaa !13
  %728 = fadd double %726, %727
  %729 = load ptr, ptr %4, align 8, !tbaa !9
  %730 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %728, ptr noundef %729)
  %731 = load double, ptr %50, align 8, !tbaa !13
  %732 = load ptr, ptr %4, align 8, !tbaa !9
  %733 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %731, ptr noundef %732)
  %734 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %733, double %730)
  %735 = load double, ptr %50, align 8, !tbaa !13
  %736 = load double, ptr %22, align 8, !tbaa !13
  %737 = fsub double %735, %736
  %738 = load ptr, ptr %4, align 8, !tbaa !9
  %739 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %737, ptr noundef %738)
  %740 = fadd double %734, %739
  %741 = load double, ptr %22, align 8, !tbaa !13
  %742 = load ptr, ptr %4, align 8, !tbaa !9
  %743 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %741, ptr noundef %742)
  %744 = fdiv double %740, %743
  store double %744, ptr %53, align 8, !tbaa !13
  %745 = load double, ptr %75, align 8, !tbaa !13
  %746 = load double, ptr %52, align 8, !tbaa !13
  %747 = load double, ptr %53, align 8, !tbaa !13
  %748 = fsub double %746, %747
  %749 = load ptr, ptr %4, align 8, !tbaa !9
  %750 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %748, ptr noundef %749)
  %751 = load ptr, ptr %4, align 8, !tbaa !9
  %752 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %745, double noundef %750, ptr noundef %751)
  store double %752, ptr %75, align 8, !tbaa !13
  br label %753

753:                                              ; preds = %725, %722
  %754 = load i64, ptr %24, align 8, !tbaa !11
  %755 = icmp eq i64 %754, -1
  br i1 %755, label %759, label %756

756:                                              ; preds = %753
  %757 = load i64, ptr %25, align 8, !tbaa !11
  %758 = icmp eq i64 %757, -1
  br i1 %758, label %759, label %790

759:                                              ; preds = %756, %753
  %760 = load double, ptr %49, align 8, !tbaa !13
  %761 = fadd double %760, 5.000000e-14
  %762 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %761, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %762)
  %763 = load double, ptr %50, align 8, !tbaa !13
  %764 = fsub double %763, 5.000000e-14
  %765 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %764, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %765)
  %766 = load double, ptr %75, align 8, !tbaa !13
  %767 = load double, ptr %66, align 8, !tbaa !13
  %768 = load double, ptr %69, align 8, !tbaa !13
  %769 = fsub double %767, %768
  %770 = load ptr, ptr %4, align 8, !tbaa !9
  %771 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %769, ptr noundef %770)
  %772 = load ptr, ptr %4, align 8, !tbaa !9
  %773 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %766, double noundef %771, ptr noundef %772)
  store double %773, ptr %75, align 8, !tbaa !13
  %774 = load double, ptr %75, align 8, !tbaa !13
  %775 = load double, ptr %67, align 8, !tbaa !13
  %776 = load double, ptr %70, align 8, !tbaa !13
  %777 = fsub double %775, %776
  %778 = load ptr, ptr %4, align 8, !tbaa !9
  %779 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %777, ptr noundef %778)
  %780 = load ptr, ptr %4, align 8, !tbaa !9
  %781 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %774, double noundef %779, ptr noundef %780)
  store double %781, ptr %75, align 8, !tbaa !13
  %782 = load double, ptr %75, align 8, !tbaa !13
  %783 = load double, ptr %68, align 8, !tbaa !13
  %784 = load double, ptr %71, align 8, !tbaa !13
  %785 = fsub double %783, %784
  %786 = load ptr, ptr %4, align 8, !tbaa !9
  %787 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %785, ptr noundef %786)
  %788 = load ptr, ptr %4, align 8, !tbaa !9
  %789 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %782, double noundef %787, ptr noundef %788)
  store double %789, ptr %75, align 8, !tbaa !13
  br label %790

790:                                              ; preds = %759, %756
  %791 = load i8, ptr %8, align 1, !tbaa !5, !range !20, !noundef !21
  %792 = trunc i8 %791 to i1
  br i1 %792, label %796, label %793

793:                                              ; preds = %790
  %794 = load double, ptr %75, align 8, !tbaa !13
  %795 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %794, double noundef 1.000000e-03)
  br label %796

796:                                              ; preds = %793, %790
  %797 = phi i1 [ true, %790 ], [ %795, %793 ]
  %798 = zext i1 %797 to i8
  store i8 %798, ptr %8, align 1, !tbaa !5
  %799 = load double, ptr %49, align 8, !tbaa !13
  %800 = load double, ptr %50, align 8, !tbaa !13
  %801 = load double, ptr %21, align 8, !tbaa !13
  %802 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %799, double noundef %800, ptr noundef %47, double noundef %801, ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %802)
  %803 = load double, ptr %49, align 8, !tbaa !13
  %804 = load double, ptr %50, align 8, !tbaa !13
  %805 = load double, ptr %21, align 8, !tbaa !13
  %806 = fdiv double %805, 3.000000e+00
  %807 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %803, double noundef %804, ptr noundef %47, double noundef %806, ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %807)
  %808 = load double, ptr %57, align 8, !tbaa !13
  %809 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %808, double noundef 0x3EB0C6F7A0B5ED8D)
  br i1 %809, label %810, label %821

810:                                              ; preds = %796
  %811 = load i8, ptr %8, align 1, !tbaa !5, !range !20, !noundef !21
  %812 = trunc i8 %811 to i1
  br i1 %812, label %818, label %813

813:                                              ; preds = %810
  %814 = load double, ptr %60, align 8, !tbaa !13
  %815 = load double, ptr %57, align 8, !tbaa !13
  %816 = fdiv double %814, %815
  %817 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %816, double noundef 1.200000e+00)
  br label %818

818:                                              ; preds = %813, %810
  %819 = phi i1 [ true, %810 ], [ %817, %813 ]
  %820 = zext i1 %819 to i8
  store i8 %820, ptr %8, align 1, !tbaa !5
  br label %821

821:                                              ; preds = %818, %796
  %822 = load double, ptr %58, align 8, !tbaa !13
  %823 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %822, double noundef 0x3EB0C6F7A0B5ED8D)
  br i1 %823, label %824, label %835

824:                                              ; preds = %821
  %825 = load i8, ptr %8, align 1, !tbaa !5, !range !20, !noundef !21
  %826 = trunc i8 %825 to i1
  br i1 %826, label %832, label %827

827:                                              ; preds = %824
  %828 = load double, ptr %61, align 8, !tbaa !13
  %829 = load double, ptr %58, align 8, !tbaa !13
  %830 = fdiv double %828, %829
  %831 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %830, double noundef 1.200000e+00)
  br label %832

832:                                              ; preds = %827, %824
  %833 = phi i1 [ true, %824 ], [ %831, %827 ]
  %834 = zext i1 %833 to i8
  store i8 %834, ptr %8, align 1, !tbaa !5
  br label %835

835:                                              ; preds = %832, %821
  %836 = load double, ptr %59, align 8, !tbaa !13
  %837 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %836, double noundef 0x3EB0C6F7A0B5ED8D)
  br i1 %837, label %838, label %849

838:                                              ; preds = %835
  %839 = load i8, ptr %8, align 1, !tbaa !5, !range !20, !noundef !21
  %840 = trunc i8 %839 to i1
  br i1 %840, label %846, label %841

841:                                              ; preds = %838
  %842 = load double, ptr %62, align 8, !tbaa !13
  %843 = load double, ptr %59, align 8, !tbaa !13
  %844 = fdiv double %842, %843
  %845 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %844, double noundef 1.200000e+00)
  br label %846

846:                                              ; preds = %841, %838
  %847 = phi i1 [ true, %838 ], [ %845, %841 ]
  %848 = zext i1 %847 to i8
  store i8 %848, ptr %8, align 1, !tbaa !5
  br label %849

849:                                              ; preds = %846, %835
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  %850 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %851 = trunc i8 %850 to i1
  br i1 %851, label %852, label %859

852:                                              ; preds = %849
  %853 = load i64, ptr %27, align 8, !tbaa !11
  %854 = load i64, ptr %24, align 8, !tbaa !11
  %855 = load double, ptr %51, align 8, !tbaa !13
  %856 = load i64, ptr %25, align 8, !tbaa !11
  %857 = load double, ptr %52, align 8, !tbaa !13
  %858 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21spline1dgriddiffcubicEPNS_9ae_vectorES1_lldldS1_PNS_8ae_stateE(ptr noundef %31, ptr noundef %33, i64 noundef %853, i64 noundef %854, double noundef %855, i64 noundef %856, double noundef %857, ptr noundef %43, ptr noundef %858)
  br label %866

859:                                              ; preds = %849
  %860 = load i64, ptr %27, align 8, !tbaa !11
  %861 = load i64, ptr %24, align 8, !tbaa !11
  %862 = load double, ptr %51, align 8, !tbaa !13
  %863 = load i64, ptr %25, align 8, !tbaa !11
  %864 = load double, ptr %52, align 8, !tbaa !13
  %865 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21spline1dgriddiffcubicEPNS_9ae_vectorES1_lldldS1_PNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %860, i64 noundef %861, double noundef %862, i64 noundef %863, double noundef %864, ptr noundef %43, ptr noundef %865)
  br label %866

866:                                              ; preds = %859, %852
  %867 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 0
  %868 = load i64, ptr %867, align 8, !tbaa !24
  %869 = load i64, ptr %27, align 8, !tbaa !11
  %870 = icmp sge i64 %868, %869
  %871 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %870, ptr noundef @.str.26, ptr noundef %871)
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %872

872:                                              ; preds = %896, %866
  %873 = load i64, ptr %28, align 8, !tbaa !11
  %874 = load i64, ptr %27, align 8, !tbaa !11
  %875 = sub nsw i64 %874, 1
  %876 = icmp sle i64 %873, %875
  br i1 %876, label %877, label %899

877:                                              ; preds = %872
  %878 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %879 = load ptr, ptr %878, align 8, !tbaa !15
  %880 = load i64, ptr %28, align 8, !tbaa !11
  %881 = getelementptr inbounds double, ptr %879, i64 %880
  %882 = load double, ptr %881, align 8, !tbaa !13
  %883 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %882, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %883)
  %884 = load double, ptr %75, align 8, !tbaa !13
  %885 = load double, ptr %67, align 8, !tbaa !13
  %886 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %887 = load ptr, ptr %886, align 8, !tbaa !15
  %888 = load i64, ptr %28, align 8, !tbaa !11
  %889 = getelementptr inbounds double, ptr %887, i64 %888
  %890 = load double, ptr %889, align 8, !tbaa !13
  %891 = fsub double %885, %890
  %892 = load ptr, ptr %4, align 8, !tbaa !9
  %893 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %891, ptr noundef %892)
  %894 = load ptr, ptr %4, align 8, !tbaa !9
  %895 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %884, double noundef %893, ptr noundef %894)
  store double %895, ptr %75, align 8, !tbaa !13
  br label %896

896:                                              ; preds = %877
  %897 = load i64, ptr %28, align 8, !tbaa !11
  %898 = add nsw i64 %897, 1
  store i64 %898, ptr %28, align 8, !tbaa !11
  br label %872, !llvm.loop !27

899:                                              ; preds = %872
  %900 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %901 = trunc i8 %900 to i1
  br i1 %901, label %902, label %909

902:                                              ; preds = %899
  %903 = load i64, ptr %27, align 8, !tbaa !11
  %904 = load i64, ptr %24, align 8, !tbaa !11
  %905 = load double, ptr %51, align 8, !tbaa !13
  %906 = load i64, ptr %25, align 8, !tbaa !11
  %907 = load double, ptr %52, align 8, !tbaa !13
  %908 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl22spline1dgriddiff2cubicEPNS_9ae_vectorES1_lldldS1_S1_PNS_8ae_stateE(ptr noundef %31, ptr noundef %33, i64 noundef %903, i64 noundef %904, double noundef %905, i64 noundef %906, double noundef %907, ptr noundef %43, ptr noundef %44, ptr noundef %908)
  br label %916

909:                                              ; preds = %899
  %910 = load i64, ptr %27, align 8, !tbaa !11
  %911 = load i64, ptr %24, align 8, !tbaa !11
  %912 = load double, ptr %51, align 8, !tbaa !13
  %913 = load i64, ptr %25, align 8, !tbaa !11
  %914 = load double, ptr %52, align 8, !tbaa !13
  %915 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl22spline1dgriddiff2cubicEPNS_9ae_vectorES1_lldldS1_S1_PNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %910, i64 noundef %911, double noundef %912, i64 noundef %913, double noundef %914, ptr noundef %43, ptr noundef %44, ptr noundef %915)
  br label %916

916:                                              ; preds = %909, %902
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %917

917:                                              ; preds = %953, %916
  %918 = load i64, ptr %28, align 8, !tbaa !11
  %919 = load i64, ptr %27, align 8, !tbaa !11
  %920 = sub nsw i64 %919, 1
  %921 = icmp sle i64 %918, %920
  br i1 %921, label %922, label %956

922:                                              ; preds = %917
  %923 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %924 = load ptr, ptr %923, align 8, !tbaa !15
  %925 = load i64, ptr %28, align 8, !tbaa !11
  %926 = getelementptr inbounds double, ptr %924, i64 %925
  %927 = load double, ptr %926, align 8, !tbaa !13
  %928 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %927, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %928)
  %929 = load double, ptr %75, align 8, !tbaa !13
  %930 = load double, ptr %67, align 8, !tbaa !13
  %931 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %932 = load ptr, ptr %931, align 8, !tbaa !15
  %933 = load i64, ptr %28, align 8, !tbaa !11
  %934 = getelementptr inbounds double, ptr %932, i64 %933
  %935 = load double, ptr %934, align 8, !tbaa !13
  %936 = fsub double %930, %935
  %937 = load ptr, ptr %4, align 8, !tbaa !9
  %938 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %936, ptr noundef %937)
  %939 = load ptr, ptr %4, align 8, !tbaa !9
  %940 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %929, double noundef %938, ptr noundef %939)
  store double %940, ptr %75, align 8, !tbaa !13
  %941 = load double, ptr %75, align 8, !tbaa !13
  %942 = load double, ptr %68, align 8, !tbaa !13
  %943 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %944 = load ptr, ptr %943, align 8, !tbaa !15
  %945 = load i64, ptr %28, align 8, !tbaa !11
  %946 = getelementptr inbounds double, ptr %944, i64 %945
  %947 = load double, ptr %946, align 8, !tbaa !13
  %948 = fsub double %942, %947
  %949 = load ptr, ptr %4, align 8, !tbaa !9
  %950 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %948, ptr noundef %949)
  %951 = load ptr, ptr %4, align 8, !tbaa !9
  %952 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %941, double noundef %950, ptr noundef %951)
  store double %952, ptr %75, align 8, !tbaa !13
  br label %953

953:                                              ; preds = %922
  %954 = load i64, ptr %28, align 8, !tbaa !11
  %955 = add nsw i64 %954, 1
  store i64 %955, ptr %28, align 8, !tbaa !11
  br label %917, !llvm.loop !28

956:                                              ; preds = %917
  %957 = load i8, ptr %8, align 1, !tbaa !5, !range !20, !noundef !21
  %958 = trunc i8 %957 to i1
  br i1 %958, label %963, label %959

959:                                              ; preds = %956
  %960 = load double, ptr %75, align 8, !tbaa !13
  %961 = load double, ptr %19, align 8, !tbaa !13
  %962 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %960, double noundef %961)
  br label %963

963:                                              ; preds = %959, %956
  %964 = phi i1 [ true, %956 ], [ %962, %959 ]
  %965 = zext i1 %964 to i8
  store i8 %965, ptr %8, align 1, !tbaa !5
  %966 = load i64, ptr %27, align 8, !tbaa !11
  %967 = mul nsw i64 2, %966
  %968 = load ptr, ptr %4, align 8, !tbaa !9
  %969 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %967, ptr noundef %968)
  %970 = add nsw i64 2, %969
  store i64 %970, ptr %41, align 8, !tbaa !11
  %971 = load i64, ptr %41, align 8, !tbaa !11
  %972 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %45, i64 noundef %971, ptr noundef %972)
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %973

973:                                              ; preds = %994, %963
  %974 = load i64, ptr %28, align 8, !tbaa !11
  %975 = load i64, ptr %41, align 8, !tbaa !11
  %976 = sub nsw i64 %975, 1
  %977 = icmp sle i64 %974, %976
  br i1 %977, label %978, label %997

978:                                              ; preds = %973
  %979 = load double, ptr %49, align 8, !tbaa !13
  %980 = load double, ptr %50, align 8, !tbaa !13
  %981 = fadd double %979, %980
  %982 = load double, ptr %49, align 8, !tbaa !13
  %983 = load double, ptr %50, align 8, !tbaa !13
  %984 = fsub double %982, %983
  %985 = load ptr, ptr %4, align 8, !tbaa !9
  %986 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %985)
  %987 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %986, double -1.000000e+00)
  %988 = fmul double %984, %987
  %989 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %981, double %988)
  %990 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %991 = load ptr, ptr %990, align 8, !tbaa !15
  %992 = load i64, ptr %28, align 8, !tbaa !11
  %993 = getelementptr inbounds double, ptr %991, i64 %992
  store double %989, ptr %993, align 8, !tbaa !13
  br label %994

994:                                              ; preds = %978
  %995 = load i64, ptr %28, align 8, !tbaa !11
  %996 = add nsw i64 %995, 1
  store i64 %996, ptr %28, align 8, !tbaa !11
  br label %973, !llvm.loop !29

997:                                              ; preds = %973
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  %998 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %999 = trunc i8 %998 to i1
  br i1 %999, label %1000, label %1008

1000:                                             ; preds = %997
  %1001 = load i64, ptr %27, align 8, !tbaa !11
  %1002 = load i64, ptr %24, align 8, !tbaa !11
  %1003 = load double, ptr %51, align 8, !tbaa !13
  %1004 = load i64, ptr %25, align 8, !tbaa !11
  %1005 = load double, ptr %52, align 8, !tbaa !13
  %1006 = load i64, ptr %41, align 8, !tbaa !11
  %1007 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl17spline1dconvcubicEPNS_9ae_vectorES1_lldldS1_lS1_PNS_8ae_stateE(ptr noundef %31, ptr noundef %33, i64 noundef %1001, i64 noundef %1002, double noundef %1003, i64 noundef %1004, double noundef %1005, ptr noundef %45, i64 noundef %1006, ptr noundef %42, ptr noundef %1007)
  br label %1016

1008:                                             ; preds = %997
  %1009 = load i64, ptr %27, align 8, !tbaa !11
  %1010 = load i64, ptr %24, align 8, !tbaa !11
  %1011 = load double, ptr %51, align 8, !tbaa !13
  %1012 = load i64, ptr %25, align 8, !tbaa !11
  %1013 = load double, ptr %52, align 8, !tbaa !13
  %1014 = load i64, ptr %41, align 8, !tbaa !11
  %1015 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl17spline1dconvcubicEPNS_9ae_vectorES1_lldldS1_lS1_PNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %1009, i64 noundef %1010, double noundef %1011, i64 noundef %1012, double noundef %1013, ptr noundef %45, i64 noundef %1014, ptr noundef %42, ptr noundef %1015)
  br label %1016

1016:                                             ; preds = %1008, %1000
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1017

1017:                                             ; preds = %1041, %1016
  %1018 = load i64, ptr %28, align 8, !tbaa !11
  %1019 = load i64, ptr %41, align 8, !tbaa !11
  %1020 = sub nsw i64 %1019, 1
  %1021 = icmp sle i64 %1018, %1020
  br i1 %1021, label %1022, label %1044

1022:                                             ; preds = %1017
  %1023 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %1024 = load ptr, ptr %1023, align 8, !tbaa !15
  %1025 = load i64, ptr %28, align 8, !tbaa !11
  %1026 = getelementptr inbounds double, ptr %1024, i64 %1025
  %1027 = load double, ptr %1026, align 8, !tbaa !13
  %1028 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %1027, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %1028)
  %1029 = load double, ptr %75, align 8, !tbaa !13
  %1030 = load double, ptr %66, align 8, !tbaa !13
  %1031 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %1032 = load ptr, ptr %1031, align 8, !tbaa !15
  %1033 = load i64, ptr %28, align 8, !tbaa !11
  %1034 = getelementptr inbounds double, ptr %1032, i64 %1033
  %1035 = load double, ptr %1034, align 8, !tbaa !13
  %1036 = fsub double %1030, %1035
  %1037 = load ptr, ptr %4, align 8, !tbaa !9
  %1038 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1036, ptr noundef %1037)
  %1039 = load ptr, ptr %4, align 8, !tbaa !9
  %1040 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1029, double noundef %1038, ptr noundef %1039)
  store double %1040, ptr %75, align 8, !tbaa !13
  br label %1041

1041:                                             ; preds = %1022
  %1042 = load i64, ptr %28, align 8, !tbaa !11
  %1043 = add nsw i64 %1042, 1
  store i64 %1043, ptr %28, align 8, !tbaa !11
  br label %1017, !llvm.loop !30

1044:                                             ; preds = %1017
  %1045 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %1046 = trunc i8 %1045 to i1
  br i1 %1046, label %1047, label %1055

1047:                                             ; preds = %1044
  %1048 = load i64, ptr %27, align 8, !tbaa !11
  %1049 = load i64, ptr %24, align 8, !tbaa !11
  %1050 = load double, ptr %51, align 8, !tbaa !13
  %1051 = load i64, ptr %25, align 8, !tbaa !11
  %1052 = load double, ptr %52, align 8, !tbaa !13
  %1053 = load i64, ptr %41, align 8, !tbaa !11
  %1054 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21spline1dconvdiffcubicEPNS_9ae_vectorES1_lldldS1_lS1_S1_PNS_8ae_stateE(ptr noundef %31, ptr noundef %33, i64 noundef %1048, i64 noundef %1049, double noundef %1050, i64 noundef %1051, double noundef %1052, ptr noundef %45, i64 noundef %1053, ptr noundef %42, ptr noundef %43, ptr noundef %1054)
  br label %1063

1055:                                             ; preds = %1044
  %1056 = load i64, ptr %27, align 8, !tbaa !11
  %1057 = load i64, ptr %24, align 8, !tbaa !11
  %1058 = load double, ptr %51, align 8, !tbaa !13
  %1059 = load i64, ptr %25, align 8, !tbaa !11
  %1060 = load double, ptr %52, align 8, !tbaa !13
  %1061 = load i64, ptr %41, align 8, !tbaa !11
  %1062 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21spline1dconvdiffcubicEPNS_9ae_vectorES1_lldldS1_lS1_S1_PNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %1056, i64 noundef %1057, double noundef %1058, i64 noundef %1059, double noundef %1060, ptr noundef %45, i64 noundef %1061, ptr noundef %42, ptr noundef %43, ptr noundef %1062)
  br label %1063

1063:                                             ; preds = %1055, %1047
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1064

1064:                                             ; preds = %1100, %1063
  %1065 = load i64, ptr %28, align 8, !tbaa !11
  %1066 = load i64, ptr %41, align 8, !tbaa !11
  %1067 = sub nsw i64 %1066, 1
  %1068 = icmp sle i64 %1065, %1067
  br i1 %1068, label %1069, label %1103

1069:                                             ; preds = %1064
  %1070 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %1071 = load ptr, ptr %1070, align 8, !tbaa !15
  %1072 = load i64, ptr %28, align 8, !tbaa !11
  %1073 = getelementptr inbounds double, ptr %1071, i64 %1072
  %1074 = load double, ptr %1073, align 8, !tbaa !13
  %1075 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %1074, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %1075)
  %1076 = load double, ptr %75, align 8, !tbaa !13
  %1077 = load double, ptr %66, align 8, !tbaa !13
  %1078 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %1079 = load ptr, ptr %1078, align 8, !tbaa !15
  %1080 = load i64, ptr %28, align 8, !tbaa !11
  %1081 = getelementptr inbounds double, ptr %1079, i64 %1080
  %1082 = load double, ptr %1081, align 8, !tbaa !13
  %1083 = fsub double %1077, %1082
  %1084 = load ptr, ptr %4, align 8, !tbaa !9
  %1085 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1083, ptr noundef %1084)
  %1086 = load ptr, ptr %4, align 8, !tbaa !9
  %1087 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1076, double noundef %1085, ptr noundef %1086)
  store double %1087, ptr %75, align 8, !tbaa !13
  %1088 = load double, ptr %75, align 8, !tbaa !13
  %1089 = load double, ptr %67, align 8, !tbaa !13
  %1090 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %1091 = load ptr, ptr %1090, align 8, !tbaa !15
  %1092 = load i64, ptr %28, align 8, !tbaa !11
  %1093 = getelementptr inbounds double, ptr %1091, i64 %1092
  %1094 = load double, ptr %1093, align 8, !tbaa !13
  %1095 = fsub double %1089, %1094
  %1096 = load ptr, ptr %4, align 8, !tbaa !9
  %1097 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1095, ptr noundef %1096)
  %1098 = load ptr, ptr %4, align 8, !tbaa !9
  %1099 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1088, double noundef %1097, ptr noundef %1098)
  store double %1099, ptr %75, align 8, !tbaa !13
  br label %1100

1100:                                             ; preds = %1069
  %1101 = load i64, ptr %28, align 8, !tbaa !11
  %1102 = add nsw i64 %1101, 1
  store i64 %1102, ptr %28, align 8, !tbaa !11
  br label %1064, !llvm.loop !31

1103:                                             ; preds = %1064
  %1104 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %1105 = trunc i8 %1104 to i1
  br i1 %1105, label %1106, label %1114

1106:                                             ; preds = %1103
  %1107 = load i64, ptr %27, align 8, !tbaa !11
  %1108 = load i64, ptr %24, align 8, !tbaa !11
  %1109 = load double, ptr %51, align 8, !tbaa !13
  %1110 = load i64, ptr %25, align 8, !tbaa !11
  %1111 = load double, ptr %52, align 8, !tbaa !13
  %1112 = load i64, ptr %41, align 8, !tbaa !11
  %1113 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl22spline1dconvdiff2cubicEPNS_9ae_vectorES1_lldldS1_lS1_S1_S1_PNS_8ae_stateE(ptr noundef %31, ptr noundef %33, i64 noundef %1107, i64 noundef %1108, double noundef %1109, i64 noundef %1110, double noundef %1111, ptr noundef %45, i64 noundef %1112, ptr noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef %1113)
  br label %1122

1114:                                             ; preds = %1103
  %1115 = load i64, ptr %27, align 8, !tbaa !11
  %1116 = load i64, ptr %24, align 8, !tbaa !11
  %1117 = load double, ptr %51, align 8, !tbaa !13
  %1118 = load i64, ptr %25, align 8, !tbaa !11
  %1119 = load double, ptr %52, align 8, !tbaa !13
  %1120 = load i64, ptr %41, align 8, !tbaa !11
  %1121 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl22spline1dconvdiff2cubicEPNS_9ae_vectorES1_lldldS1_lS1_S1_S1_PNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %1115, i64 noundef %1116, double noundef %1117, i64 noundef %1118, double noundef %1119, ptr noundef %45, i64 noundef %1120, ptr noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef %1121)
  br label %1122

1122:                                             ; preds = %1114, %1106
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1123

1123:                                             ; preds = %1171, %1122
  %1124 = load i64, ptr %28, align 8, !tbaa !11
  %1125 = load i64, ptr %41, align 8, !tbaa !11
  %1126 = sub nsw i64 %1125, 1
  %1127 = icmp sle i64 %1124, %1126
  br i1 %1127, label %1128, label %1174

1128:                                             ; preds = %1123
  %1129 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %1130 = load ptr, ptr %1129, align 8, !tbaa !15
  %1131 = load i64, ptr %28, align 8, !tbaa !11
  %1132 = getelementptr inbounds double, ptr %1130, i64 %1131
  %1133 = load double, ptr %1132, align 8, !tbaa !13
  %1134 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %1133, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %1134)
  %1135 = load double, ptr %75, align 8, !tbaa !13
  %1136 = load double, ptr %66, align 8, !tbaa !13
  %1137 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %1138 = load ptr, ptr %1137, align 8, !tbaa !15
  %1139 = load i64, ptr %28, align 8, !tbaa !11
  %1140 = getelementptr inbounds double, ptr %1138, i64 %1139
  %1141 = load double, ptr %1140, align 8, !tbaa !13
  %1142 = fsub double %1136, %1141
  %1143 = load ptr, ptr %4, align 8, !tbaa !9
  %1144 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1142, ptr noundef %1143)
  %1145 = load ptr, ptr %4, align 8, !tbaa !9
  %1146 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1135, double noundef %1144, ptr noundef %1145)
  store double %1146, ptr %75, align 8, !tbaa !13
  %1147 = load double, ptr %75, align 8, !tbaa !13
  %1148 = load double, ptr %67, align 8, !tbaa !13
  %1149 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %1150 = load ptr, ptr %1149, align 8, !tbaa !15
  %1151 = load i64, ptr %28, align 8, !tbaa !11
  %1152 = getelementptr inbounds double, ptr %1150, i64 %1151
  %1153 = load double, ptr %1152, align 8, !tbaa !13
  %1154 = fsub double %1148, %1153
  %1155 = load ptr, ptr %4, align 8, !tbaa !9
  %1156 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1154, ptr noundef %1155)
  %1157 = load ptr, ptr %4, align 8, !tbaa !9
  %1158 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1147, double noundef %1156, ptr noundef %1157)
  store double %1158, ptr %75, align 8, !tbaa !13
  %1159 = load double, ptr %75, align 8, !tbaa !13
  %1160 = load double, ptr %68, align 8, !tbaa !13
  %1161 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %1162 = load ptr, ptr %1161, align 8, !tbaa !15
  %1163 = load i64, ptr %28, align 8, !tbaa !11
  %1164 = getelementptr inbounds double, ptr %1162, i64 %1163
  %1165 = load double, ptr %1164, align 8, !tbaa !13
  %1166 = fsub double %1160, %1165
  %1167 = load ptr, ptr %4, align 8, !tbaa !9
  %1168 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1166, ptr noundef %1167)
  %1169 = load ptr, ptr %4, align 8, !tbaa !9
  %1170 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1159, double noundef %1168, ptr noundef %1169)
  store double %1170, ptr %75, align 8, !tbaa !13
  br label %1171

1171:                                             ; preds = %1128
  %1172 = load i64, ptr %28, align 8, !tbaa !11
  %1173 = add nsw i64 %1172, 1
  store i64 %1173, ptr %28, align 8, !tbaa !11
  br label %1123, !llvm.loop !32

1174:                                             ; preds = %1123
  %1175 = load i8, ptr %8, align 1, !tbaa !5, !range !20, !noundef !21
  %1176 = trunc i8 %1175 to i1
  br i1 %1176, label %1181, label %1177

1177:                                             ; preds = %1174
  %1178 = load double, ptr %75, align 8, !tbaa !13
  %1179 = load double, ptr %19, align 8, !tbaa !13
  %1180 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1178, double noundef %1179)
  br label %1181

1181:                                             ; preds = %1177, %1174
  %1182 = phi i1 [ true, %1174 ], [ %1180, %1177 ]
  %1183 = zext i1 %1182 to i8
  store i8 %1183, ptr %8, align 1, !tbaa !5
  br label %1184

1184:                                             ; preds = %1181, %408
  %1185 = load i64, ptr %25, align 8, !tbaa !11
  %1186 = add nsw i64 %1185, 1
  store i64 %1186, ptr %25, align 8, !tbaa !11
  br label %390, !llvm.loop !33

1187:                                             ; preds = %390
  br label %1188

1188:                                             ; preds = %1187
  %1189 = load i64, ptr %24, align 8, !tbaa !11
  %1190 = add nsw i64 %1189, 1
  store i64 %1190, ptr %24, align 8, !tbaa !11
  br label %386, !llvm.loop !34

1191:                                             ; preds = %386
  store i64 -1, ptr %24, align 8, !tbaa !11
  br label %1192

1192:                                             ; preds = %1490, %1191
  %1193 = load i64, ptr %24, align 8, !tbaa !11
  %1194 = icmp sle i64 %1193, 0
  br i1 %1194, label %1195, label %1493

1195:                                             ; preds = %1192
  %1196 = load i64, ptr %24, align 8, !tbaa !11
  %1197 = icmp eq i64 %1196, -1
  %1198 = zext i1 %1197 to i8
  store i8 %1198, ptr %26, align 1, !tbaa !5
  %1199 = load ptr, ptr %4, align 8, !tbaa !9
  %1200 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1199)
  %1201 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1200, double noundef 5.000000e-01)
  br i1 %1201, label %1202, label %1209

1202:                                             ; preds = %1195
  %1203 = load ptr, ptr %4, align 8, !tbaa !9
  %1204 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1203)
  %1205 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1204, double noundef 5.000000e-01)
  br i1 %1205, label %1206, label %1207

1206:                                             ; preds = %1202
  store double 0.000000e+00, ptr %76, align 8, !tbaa !13
  br label %1208

1207:                                             ; preds = %1202
  store double 1.000000e+00, ptr %76, align 8, !tbaa !13
  br label %1208

1208:                                             ; preds = %1207, %1206
  br label %1212

1209:                                             ; preds = %1195
  %1210 = load ptr, ptr %4, align 8, !tbaa !9
  %1211 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1210)
  store double %1211, ptr %76, align 8, !tbaa !13
  br label %1212

1212:                                             ; preds = %1209, %1208
  %1213 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %1214 = trunc i8 %1213 to i1
  br i1 %1214, label %1215, label %1220

1215:                                             ; preds = %1212
  %1216 = load i64, ptr %27, align 8, !tbaa !11
  %1217 = load i64, ptr %24, align 8, !tbaa !11
  %1218 = load double, ptr %76, align 8, !tbaa !13
  %1219 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl23spline1dbuildcatmullromEPNS_9ae_vectorES1_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %33, i64 noundef %1216, i64 noundef %1217, double noundef %1218, ptr noundef %47, ptr noundef %1219)
  br label %1225

1220:                                             ; preds = %1212
  %1221 = load i64, ptr %27, align 8, !tbaa !11
  %1222 = load i64, ptr %24, align 8, !tbaa !11
  %1223 = load double, ptr %76, align 8, !tbaa !13
  %1224 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl23spline1dbuildcatmullromEPNS_9ae_vectorES1_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %1221, i64 noundef %1222, double noundef %1223, ptr noundef %47, ptr noundef %1224)
  br label %1225

1225:                                             ; preds = %1220, %1215
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  %1226 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %1227 = trunc i8 %1226 to i1
  br i1 %1227, label %1228, label %1336

1228:                                             ; preds = %1225
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1229

1229:                                             ; preds = %1284, %1228
  %1230 = load i64, ptr %28, align 8, !tbaa !11
  %1231 = load i64, ptr %27, align 8, !tbaa !11
  %1232 = sub nsw i64 %1231, 1
  %1233 = icmp sle i64 %1230, %1232
  br i1 %1233, label %1234, label %1287

1234:                                             ; preds = %1229
  %1235 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1236 = load ptr, ptr %1235, align 8, !tbaa !15
  %1237 = load i64, ptr %28, align 8, !tbaa !11
  %1238 = getelementptr inbounds double, ptr %1236, i64 %1237
  %1239 = load double, ptr %1238, align 8, !tbaa !13
  store double %1239, ptr %56, align 8, !tbaa !13
  %1240 = load double, ptr %56, align 8, !tbaa !13
  %1241 = load double, ptr %50, align 8, !tbaa !13
  %1242 = load double, ptr %49, align 8, !tbaa !13
  %1243 = fsub double %1241, %1242
  %1244 = load ptr, ptr %4, align 8, !tbaa !9
  %1245 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %1244)
  %1246 = sub nsw i64 %1245, 2
  %1247 = sitofp i64 %1246 to double
  %1248 = call double @llvm.fmuladd.f64(double %1243, double %1247, double %1240)
  store double %1248, ptr %73, align 8, !tbaa !13
  %1249 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %1250 = load ptr, ptr %1249, align 8, !tbaa !15
  %1251 = load i64, ptr %28, align 8, !tbaa !11
  %1252 = getelementptr inbounds double, ptr %1250, i64 %1251
  %1253 = load double, ptr %1252, align 8, !tbaa !13
  %1254 = load double, ptr %73, align 8, !tbaa !13
  %1255 = load ptr, ptr %4, align 8, !tbaa !9
  %1256 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1254, ptr noundef %1255)
  %1257 = fsub double %1253, %1256
  store double %1257, ptr %53, align 8, !tbaa !13
  %1258 = load double, ptr %75, align 8, !tbaa !13
  %1259 = load double, ptr %53, align 8, !tbaa !13
  %1260 = load ptr, ptr %4, align 8, !tbaa !9
  %1261 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1259, ptr noundef %1260)
  %1262 = load ptr, ptr %4, align 8, !tbaa !9
  %1263 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1258, double noundef %1261, ptr noundef %1262)
  store double %1263, ptr %75, align 8, !tbaa !13
  %1264 = load double, ptr %56, align 8, !tbaa !13
  %1265 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %1264, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %1265)
  %1266 = load double, ptr %73, align 8, !tbaa !13
  %1267 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %1266, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %1267)
  %1268 = load double, ptr %75, align 8, !tbaa !13
  %1269 = load double, ptr %66, align 8, !tbaa !13
  %1270 = load double, ptr %69, align 8, !tbaa !13
  %1271 = fsub double %1269, %1270
  %1272 = load ptr, ptr %4, align 8, !tbaa !9
  %1273 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1271, ptr noundef %1272)
  %1274 = load ptr, ptr %4, align 8, !tbaa !9
  %1275 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1268, double noundef %1273, ptr noundef %1274)
  store double %1275, ptr %75, align 8, !tbaa !13
  %1276 = load double, ptr %75, align 8, !tbaa !13
  %1277 = load double, ptr %67, align 8, !tbaa !13
  %1278 = load double, ptr %70, align 8, !tbaa !13
  %1279 = fsub double %1277, %1278
  %1280 = load ptr, ptr %4, align 8, !tbaa !9
  %1281 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1279, ptr noundef %1280)
  %1282 = load ptr, ptr %4, align 8, !tbaa !9
  %1283 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1276, double noundef %1281, ptr noundef %1282)
  store double %1283, ptr %75, align 8, !tbaa !13
  br label %1284

1284:                                             ; preds = %1234
  %1285 = load i64, ptr %28, align 8, !tbaa !11
  %1286 = add nsw i64 %1285, 1
  store i64 %1286, ptr %28, align 8, !tbaa !11
  br label %1229, !llvm.loop !35

1287:                                             ; preds = %1229
  %1288 = load double, ptr %49, align 8, !tbaa !13
  %1289 = load double, ptr %50, align 8, !tbaa !13
  %1290 = load double, ptr %49, align 8, !tbaa !13
  %1291 = fsub double %1289, %1290
  %1292 = load ptr, ptr %4, align 8, !tbaa !9
  %1293 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1292)
  %1294 = call double @llvm.fmuladd.f64(double %1291, double %1293, double %1288)
  store double %1294, ptr %56, align 8, !tbaa !13
  %1295 = load double, ptr %56, align 8, !tbaa !13
  %1296 = load double, ptr %50, align 8, !tbaa !13
  %1297 = load double, ptr %49, align 8, !tbaa !13
  %1298 = fsub double %1296, %1297
  %1299 = load ptr, ptr %4, align 8, !tbaa !9
  %1300 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %1299)
  %1301 = sub nsw i64 %1300, 2
  %1302 = sitofp i64 %1301 to double
  %1303 = call double @llvm.fmuladd.f64(double %1298, double %1302, double %1295)
  store double %1303, ptr %73, align 8, !tbaa !13
  %1304 = load double, ptr %75, align 8, !tbaa !13
  %1305 = load double, ptr %56, align 8, !tbaa !13
  %1306 = load ptr, ptr %4, align 8, !tbaa !9
  %1307 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1305, ptr noundef %1306)
  %1308 = load double, ptr %73, align 8, !tbaa !13
  %1309 = load ptr, ptr %4, align 8, !tbaa !9
  %1310 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1308, ptr noundef %1309)
  %1311 = fsub double %1307, %1310
  %1312 = load ptr, ptr %4, align 8, !tbaa !9
  %1313 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1311, ptr noundef %1312)
  %1314 = load ptr, ptr %4, align 8, !tbaa !9
  %1315 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1304, double noundef %1313, ptr noundef %1314)
  store double %1315, ptr %75, align 8, !tbaa !13
  %1316 = load double, ptr %56, align 8, !tbaa !13
  %1317 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %1316, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %1317)
  %1318 = load double, ptr %73, align 8, !tbaa !13
  %1319 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %1318, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %1319)
  %1320 = load double, ptr %75, align 8, !tbaa !13
  %1321 = load double, ptr %66, align 8, !tbaa !13
  %1322 = load double, ptr %69, align 8, !tbaa !13
  %1323 = fsub double %1321, %1322
  %1324 = load ptr, ptr %4, align 8, !tbaa !9
  %1325 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1323, ptr noundef %1324)
  %1326 = load ptr, ptr %4, align 8, !tbaa !9
  %1327 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1320, double noundef %1325, ptr noundef %1326)
  store double %1327, ptr %75, align 8, !tbaa !13
  %1328 = load double, ptr %75, align 8, !tbaa !13
  %1329 = load double, ptr %67, align 8, !tbaa !13
  %1330 = load double, ptr %70, align 8, !tbaa !13
  %1331 = fsub double %1329, %1330
  %1332 = load ptr, ptr %4, align 8, !tbaa !9
  %1333 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1331, ptr noundef %1332)
  %1334 = load ptr, ptr %4, align 8, !tbaa !9
  %1335 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1328, double noundef %1333, ptr noundef %1334)
  store double %1335, ptr %75, align 8, !tbaa !13
  br label %1365

1336:                                             ; preds = %1225
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1337

1337:                                             ; preds = %1361, %1336
  %1338 = load i64, ptr %28, align 8, !tbaa !11
  %1339 = load i64, ptr %27, align 8, !tbaa !11
  %1340 = sub nsw i64 %1339, 1
  %1341 = icmp sle i64 %1338, %1340
  br i1 %1341, label %1342, label %1364

1342:                                             ; preds = %1337
  %1343 = load double, ptr %75, align 8, !tbaa !13
  %1344 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1345 = load ptr, ptr %1344, align 8, !tbaa !15
  %1346 = load i64, ptr %28, align 8, !tbaa !11
  %1347 = getelementptr inbounds double, ptr %1345, i64 %1346
  %1348 = load double, ptr %1347, align 8, !tbaa !13
  %1349 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1350 = load ptr, ptr %1349, align 8, !tbaa !15
  %1351 = load i64, ptr %28, align 8, !tbaa !11
  %1352 = getelementptr inbounds double, ptr %1350, i64 %1351
  %1353 = load double, ptr %1352, align 8, !tbaa !13
  %1354 = load ptr, ptr %4, align 8, !tbaa !9
  %1355 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1353, ptr noundef %1354)
  %1356 = fsub double %1348, %1355
  %1357 = load ptr, ptr %4, align 8, !tbaa !9
  %1358 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1356, ptr noundef %1357)
  %1359 = load ptr, ptr %4, align 8, !tbaa !9
  %1360 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1343, double noundef %1358, ptr noundef %1359)
  store double %1360, ptr %75, align 8, !tbaa !13
  br label %1361

1361:                                             ; preds = %1342
  %1362 = load i64, ptr %28, align 8, !tbaa !11
  %1363 = add nsw i64 %1362, 1
  store i64 %1363, ptr %28, align 8, !tbaa !11
  br label %1337, !llvm.loop !36

1364:                                             ; preds = %1337
  br label %1365

1365:                                             ; preds = %1364, %1287
  %1366 = load i8, ptr %7, align 1, !tbaa !5, !range !20, !noundef !21
  %1367 = trunc i8 %1366 to i1
  br i1 %1367, label %1372, label %1368

1368:                                             ; preds = %1365
  %1369 = load double, ptr %75, align 8, !tbaa !13
  %1370 = load double, ptr %19, align 8, !tbaa !13
  %1371 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1369, double noundef %1370)
  br label %1372

1372:                                             ; preds = %1368, %1365
  %1373 = phi i1 [ true, %1365 ], [ %1371, %1368 ]
  %1374 = zext i1 %1373 to i8
  store i8 %1374, ptr %7, align 1, !tbaa !5
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  %1375 = load i64, ptr %24, align 8, !tbaa !11
  %1376 = icmp eq i64 %1375, 0
  br i1 %1376, label %1377, label %1418

1377:                                             ; preds = %1372
  %1378 = load double, ptr %49, align 8, !tbaa !13
  %1379 = load double, ptr %22, align 8, !tbaa !13
  %1380 = fsub double %1378, %1379
  %1381 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %1380, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %1381)
  %1382 = load double, ptr %49, align 8, !tbaa !13
  %1383 = load double, ptr %22, align 8, !tbaa !13
  %1384 = fadd double %1382, %1383
  %1385 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %1384, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %1385)
  %1386 = load double, ptr %71, align 8, !tbaa !13
  %1387 = load double, ptr %68, align 8, !tbaa !13
  %1388 = fsub double %1386, %1387
  %1389 = load double, ptr %22, align 8, !tbaa !13
  %1390 = fmul double 2.000000e+00, %1389
  %1391 = fdiv double %1388, %1390
  store double %1391, ptr %53, align 8, !tbaa !13
  %1392 = load double, ptr %75, align 8, !tbaa !13
  %1393 = load double, ptr %53, align 8, !tbaa !13
  %1394 = load ptr, ptr %4, align 8, !tbaa !9
  %1395 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1393, ptr noundef %1394)
  %1396 = load ptr, ptr %4, align 8, !tbaa !9
  %1397 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1392, double noundef %1395, ptr noundef %1396)
  store double %1397, ptr %75, align 8, !tbaa !13
  %1398 = load double, ptr %50, align 8, !tbaa !13
  %1399 = load double, ptr %22, align 8, !tbaa !13
  %1400 = fsub double %1398, %1399
  %1401 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %1400, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %1401)
  %1402 = load double, ptr %50, align 8, !tbaa !13
  %1403 = load double, ptr %22, align 8, !tbaa !13
  %1404 = fadd double %1402, %1403
  %1405 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %1404, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %1405)
  %1406 = load double, ptr %71, align 8, !tbaa !13
  %1407 = load double, ptr %68, align 8, !tbaa !13
  %1408 = fsub double %1406, %1407
  %1409 = load double, ptr %22, align 8, !tbaa !13
  %1410 = fmul double 2.000000e+00, %1409
  %1411 = fdiv double %1408, %1410
  store double %1411, ptr %53, align 8, !tbaa !13
  %1412 = load double, ptr %75, align 8, !tbaa !13
  %1413 = load double, ptr %53, align 8, !tbaa !13
  %1414 = load ptr, ptr %4, align 8, !tbaa !9
  %1415 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1413, ptr noundef %1414)
  %1416 = load ptr, ptr %4, align 8, !tbaa !9
  %1417 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1412, double noundef %1415, ptr noundef %1416)
  store double %1417, ptr %75, align 8, !tbaa !13
  br label %1418

1418:                                             ; preds = %1377, %1372
  %1419 = load i64, ptr %24, align 8, !tbaa !11
  %1420 = icmp eq i64 %1419, -1
  br i1 %1420, label %1421, label %1444

1421:                                             ; preds = %1418
  %1422 = load double, ptr %49, align 8, !tbaa !13
  %1423 = fadd double %1422, 5.000000e-14
  %1424 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %1423, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %1424)
  %1425 = load double, ptr %50, align 8, !tbaa !13
  %1426 = fsub double %1425, 5.000000e-14
  %1427 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %1426, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %1427)
  %1428 = load double, ptr %75, align 8, !tbaa !13
  %1429 = load double, ptr %66, align 8, !tbaa !13
  %1430 = load double, ptr %69, align 8, !tbaa !13
  %1431 = fsub double %1429, %1430
  %1432 = load ptr, ptr %4, align 8, !tbaa !9
  %1433 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1431, ptr noundef %1432)
  %1434 = load ptr, ptr %4, align 8, !tbaa !9
  %1435 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1428, double noundef %1433, ptr noundef %1434)
  store double %1435, ptr %75, align 8, !tbaa !13
  %1436 = load double, ptr %75, align 8, !tbaa !13
  %1437 = load double, ptr %67, align 8, !tbaa !13
  %1438 = load double, ptr %70, align 8, !tbaa !13
  %1439 = fsub double %1437, %1438
  %1440 = load ptr, ptr %4, align 8, !tbaa !9
  %1441 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1439, ptr noundef %1440)
  %1442 = load ptr, ptr %4, align 8, !tbaa !9
  %1443 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1436, double noundef %1441, ptr noundef %1442)
  store double %1443, ptr %75, align 8, !tbaa !13
  br label %1444

1444:                                             ; preds = %1421, %1418
  %1445 = load i8, ptr %7, align 1, !tbaa !5, !range !20, !noundef !21
  %1446 = trunc i8 %1445 to i1
  br i1 %1446, label %1450, label %1447

1447:                                             ; preds = %1444
  %1448 = load double, ptr %75, align 8, !tbaa !13
  %1449 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1448, double noundef 1.000000e-03)
  br label %1450

1450:                                             ; preds = %1447, %1444
  %1451 = phi i1 [ true, %1444 ], [ %1449, %1447 ]
  %1452 = zext i1 %1451 to i8
  store i8 %1452, ptr %7, align 1, !tbaa !5
  %1453 = load double, ptr %49, align 8, !tbaa !13
  %1454 = load double, ptr %50, align 8, !tbaa !13
  %1455 = load double, ptr %21, align 8, !tbaa !13
  %1456 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %1453, double noundef %1454, ptr noundef %47, double noundef %1455, ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %1456)
  %1457 = load double, ptr %49, align 8, !tbaa !13
  %1458 = load double, ptr %50, align 8, !tbaa !13
  %1459 = load double, ptr %21, align 8, !tbaa !13
  %1460 = fdiv double %1459, 3.000000e+00
  %1461 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %1457, double noundef %1458, ptr noundef %47, double noundef %1460, ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %1461)
  %1462 = load double, ptr %57, align 8, !tbaa !13
  %1463 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1462, double noundef 0x3EB0C6F7A0B5ED8D)
  br i1 %1463, label %1464, label %1475

1464:                                             ; preds = %1450
  %1465 = load i8, ptr %7, align 1, !tbaa !5, !range !20, !noundef !21
  %1466 = trunc i8 %1465 to i1
  br i1 %1466, label %1472, label %1467

1467:                                             ; preds = %1464
  %1468 = load double, ptr %60, align 8, !tbaa !13
  %1469 = load double, ptr %57, align 8, !tbaa !13
  %1470 = fdiv double %1468, %1469
  %1471 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1470, double noundef 1.200000e+00)
  br label %1472

1472:                                             ; preds = %1467, %1464
  %1473 = phi i1 [ true, %1464 ], [ %1471, %1467 ]
  %1474 = zext i1 %1473 to i8
  store i8 %1474, ptr %7, align 1, !tbaa !5
  br label %1475

1475:                                             ; preds = %1472, %1450
  %1476 = load double, ptr %58, align 8, !tbaa !13
  %1477 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1476, double noundef 0x3EB0C6F7A0B5ED8D)
  br i1 %1477, label %1478, label %1489

1478:                                             ; preds = %1475
  %1479 = load i8, ptr %7, align 1, !tbaa !5, !range !20, !noundef !21
  %1480 = trunc i8 %1479 to i1
  br i1 %1480, label %1486, label %1481

1481:                                             ; preds = %1478
  %1482 = load double, ptr %61, align 8, !tbaa !13
  %1483 = load double, ptr %58, align 8, !tbaa !13
  %1484 = fdiv double %1482, %1483
  %1485 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1484, double noundef 1.200000e+00)
  br label %1486

1486:                                             ; preds = %1481, %1478
  %1487 = phi i1 [ true, %1478 ], [ %1485, %1481 ]
  %1488 = zext i1 %1487 to i8
  store i8 %1488, ptr %7, align 1, !tbaa !5
  br label %1489

1489:                                             ; preds = %1486, %1475
  br label %1490

1490:                                             ; preds = %1489
  %1491 = load i64, ptr %24, align 8, !tbaa !11
  %1492 = add nsw i64 %1491, 1
  store i64 %1492, ptr %24, align 8, !tbaa !11
  br label %1192, !llvm.loop !37

1493:                                             ; preds = %1192
  %1494 = load i64, ptr %27, align 8, !tbaa !11
  %1495 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20spline1dbuildhermiteEPNS_9ae_vectorES1_S1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, ptr noundef %37, i64 noundef %1494, ptr noundef %47, ptr noundef %1495)
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1496

1496:                                             ; preds = %1520, %1493
  %1497 = load i64, ptr %28, align 8, !tbaa !11
  %1498 = load i64, ptr %27, align 8, !tbaa !11
  %1499 = sub nsw i64 %1498, 1
  %1500 = icmp sle i64 %1497, %1499
  br i1 %1500, label %1501, label %1523

1501:                                             ; preds = %1496
  %1502 = load double, ptr %75, align 8, !tbaa !13
  %1503 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1504 = load ptr, ptr %1503, align 8, !tbaa !15
  %1505 = load i64, ptr %28, align 8, !tbaa !11
  %1506 = getelementptr inbounds double, ptr %1504, i64 %1505
  %1507 = load double, ptr %1506, align 8, !tbaa !13
  %1508 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1509 = load ptr, ptr %1508, align 8, !tbaa !15
  %1510 = load i64, ptr %28, align 8, !tbaa !11
  %1511 = getelementptr inbounds double, ptr %1509, i64 %1510
  %1512 = load double, ptr %1511, align 8, !tbaa !13
  %1513 = load ptr, ptr %4, align 8, !tbaa !9
  %1514 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1512, ptr noundef %1513)
  %1515 = fsub double %1507, %1514
  %1516 = load ptr, ptr %4, align 8, !tbaa !9
  %1517 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1515, ptr noundef %1516)
  %1518 = load ptr, ptr %4, align 8, !tbaa !9
  %1519 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1502, double noundef %1517, ptr noundef %1518)
  store double %1519, ptr %75, align 8, !tbaa !13
  br label %1520

1520:                                             ; preds = %1501
  %1521 = load i64, ptr %28, align 8, !tbaa !11
  %1522 = add nsw i64 %1521, 1
  store i64 %1522, ptr %28, align 8, !tbaa !11
  br label %1496, !llvm.loop !38

1523:                                             ; preds = %1496
  %1524 = load i8, ptr %9, align 1, !tbaa !5, !range !20, !noundef !21
  %1525 = trunc i8 %1524 to i1
  br i1 %1525, label %1530, label %1526

1526:                                             ; preds = %1523
  %1527 = load double, ptr %75, align 8, !tbaa !13
  %1528 = load double, ptr %19, align 8, !tbaa !13
  %1529 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1527, double noundef %1528)
  br label %1530

1530:                                             ; preds = %1526, %1523
  %1531 = phi i1 [ true, %1523 ], [ %1529, %1526 ]
  %1532 = zext i1 %1531 to i8
  store i8 %1532, ptr %9, align 1, !tbaa !5
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1533

1533:                                             ; preds = %1573, %1530
  %1534 = load i64, ptr %28, align 8, !tbaa !11
  %1535 = load i64, ptr %27, align 8, !tbaa !11
  %1536 = sub nsw i64 %1535, 1
  %1537 = icmp sle i64 %1534, %1536
  br i1 %1537, label %1538, label %1576

1538:                                             ; preds = %1533
  %1539 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1540 = load ptr, ptr %1539, align 8, !tbaa !15
  %1541 = load i64, ptr %28, align 8, !tbaa !11
  %1542 = getelementptr inbounds double, ptr %1540, i64 %1541
  %1543 = load double, ptr %1542, align 8, !tbaa !13
  %1544 = load double, ptr %22, align 8, !tbaa !13
  %1545 = fadd double %1543, %1544
  %1546 = load ptr, ptr %4, align 8, !tbaa !9
  %1547 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1545, ptr noundef %1546)
  %1548 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1549 = load ptr, ptr %1548, align 8, !tbaa !15
  %1550 = load i64, ptr %28, align 8, !tbaa !11
  %1551 = getelementptr inbounds double, ptr %1549, i64 %1550
  %1552 = load double, ptr %1551, align 8, !tbaa !13
  %1553 = load double, ptr %22, align 8, !tbaa !13
  %1554 = fsub double %1552, %1553
  %1555 = load ptr, ptr %4, align 8, !tbaa !9
  %1556 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1554, ptr noundef %1555)
  %1557 = fsub double %1547, %1556
  %1558 = load double, ptr %22, align 8, !tbaa !13
  %1559 = fmul double 2.000000e+00, %1558
  %1560 = fdiv double %1557, %1559
  store double %1560, ptr %53, align 8, !tbaa !13
  %1561 = load double, ptr %75, align 8, !tbaa !13
  %1562 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %1563 = load ptr, ptr %1562, align 8, !tbaa !15
  %1564 = load i64, ptr %28, align 8, !tbaa !11
  %1565 = getelementptr inbounds double, ptr %1563, i64 %1564
  %1566 = load double, ptr %1565, align 8, !tbaa !13
  %1567 = load double, ptr %53, align 8, !tbaa !13
  %1568 = fsub double %1566, %1567
  %1569 = load ptr, ptr %4, align 8, !tbaa !9
  %1570 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1568, ptr noundef %1569)
  %1571 = load ptr, ptr %4, align 8, !tbaa !9
  %1572 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1561, double noundef %1570, ptr noundef %1571)
  store double %1572, ptr %75, align 8, !tbaa !13
  br label %1573

1573:                                             ; preds = %1538
  %1574 = load i64, ptr %28, align 8, !tbaa !11
  %1575 = add nsw i64 %1574, 1
  store i64 %1575, ptr %28, align 8, !tbaa !11
  br label %1533, !llvm.loop !39

1576:                                             ; preds = %1533
  %1577 = load i8, ptr %9, align 1, !tbaa !5, !range !20, !noundef !21
  %1578 = trunc i8 %1577 to i1
  br i1 %1578, label %1582, label %1579

1579:                                             ; preds = %1576
  %1580 = load double, ptr %75, align 8, !tbaa !13
  %1581 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1580, double noundef 1.000000e-03)
  br label %1582

1582:                                             ; preds = %1579, %1576
  %1583 = phi i1 [ true, %1576 ], [ %1581, %1579 ]
  %1584 = zext i1 %1583 to i8
  store i8 %1584, ptr %9, align 1, !tbaa !5
  %1585 = load double, ptr %49, align 8, !tbaa !13
  %1586 = load double, ptr %50, align 8, !tbaa !13
  %1587 = load double, ptr %21, align 8, !tbaa !13
  %1588 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %1585, double noundef %1586, ptr noundef %47, double noundef %1587, ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %1588)
  %1589 = load double, ptr %49, align 8, !tbaa !13
  %1590 = load double, ptr %50, align 8, !tbaa !13
  %1591 = load double, ptr %21, align 8, !tbaa !13
  %1592 = fdiv double %1591, 3.000000e+00
  %1593 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %1589, double noundef %1590, ptr noundef %47, double noundef %1592, ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %1593)
  %1594 = load i8, ptr %9, align 1, !tbaa !5, !range !20, !noundef !21
  %1595 = trunc i8 %1594 to i1
  br i1 %1595, label %1601, label %1596

1596:                                             ; preds = %1582
  %1597 = load double, ptr %60, align 8, !tbaa !13
  %1598 = load double, ptr %57, align 8, !tbaa !13
  %1599 = fdiv double %1597, %1598
  %1600 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1599, double noundef 1.200000e+00)
  br label %1601

1601:                                             ; preds = %1596, %1582
  %1602 = phi i1 [ true, %1582 ], [ %1600, %1596 ]
  %1603 = zext i1 %1602 to i8
  store i8 %1603, ptr %9, align 1, !tbaa !5
  %1604 = load i8, ptr %9, align 1, !tbaa !5, !range !20, !noundef !21
  %1605 = trunc i8 %1604 to i1
  br i1 %1605, label %1611, label %1606

1606:                                             ; preds = %1601
  %1607 = load double, ptr %61, align 8, !tbaa !13
  %1608 = load double, ptr %58, align 8, !tbaa !13
  %1609 = fdiv double %1607, %1608
  %1610 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1609, double noundef 1.200000e+00)
  br label %1611

1611:                                             ; preds = %1606, %1601
  %1612 = phi i1 [ true, %1601 ], [ %1610, %1606 ]
  %1613 = zext i1 %1612 to i8
  store i8 %1613, ptr %9, align 1, !tbaa !5
  %1614 = load i64, ptr %27, align 8, !tbaa !11
  %1615 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildakimaEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %1614, ptr noundef %47, ptr noundef %1615)
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1616

1616:                                             ; preds = %1640, %1611
  %1617 = load i64, ptr %28, align 8, !tbaa !11
  %1618 = load i64, ptr %27, align 8, !tbaa !11
  %1619 = sub nsw i64 %1618, 1
  %1620 = icmp sle i64 %1617, %1619
  br i1 %1620, label %1621, label %1643

1621:                                             ; preds = %1616
  %1622 = load double, ptr %75, align 8, !tbaa !13
  %1623 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1624 = load ptr, ptr %1623, align 8, !tbaa !15
  %1625 = load i64, ptr %28, align 8, !tbaa !11
  %1626 = getelementptr inbounds double, ptr %1624, i64 %1625
  %1627 = load double, ptr %1626, align 8, !tbaa !13
  %1628 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1629 = load ptr, ptr %1628, align 8, !tbaa !15
  %1630 = load i64, ptr %28, align 8, !tbaa !11
  %1631 = getelementptr inbounds double, ptr %1629, i64 %1630
  %1632 = load double, ptr %1631, align 8, !tbaa !13
  %1633 = load ptr, ptr %4, align 8, !tbaa !9
  %1634 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1632, ptr noundef %1633)
  %1635 = fsub double %1627, %1634
  %1636 = load ptr, ptr %4, align 8, !tbaa !9
  %1637 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1635, ptr noundef %1636)
  %1638 = load ptr, ptr %4, align 8, !tbaa !9
  %1639 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1622, double noundef %1637, ptr noundef %1638)
  store double %1639, ptr %75, align 8, !tbaa !13
  br label %1640

1640:                                             ; preds = %1621
  %1641 = load i64, ptr %28, align 8, !tbaa !11
  %1642 = add nsw i64 %1641, 1
  store i64 %1642, ptr %28, align 8, !tbaa !11
  br label %1616, !llvm.loop !40

1643:                                             ; preds = %1616
  %1644 = load i8, ptr %10, align 1, !tbaa !5, !range !20, !noundef !21
  %1645 = trunc i8 %1644 to i1
  br i1 %1645, label %1650, label %1646

1646:                                             ; preds = %1643
  %1647 = load double, ptr %75, align 8, !tbaa !13
  %1648 = load double, ptr %19, align 8, !tbaa !13
  %1649 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1647, double noundef %1648)
  br label %1650

1650:                                             ; preds = %1646, %1643
  %1651 = phi i1 [ true, %1643 ], [ %1649, %1646 ]
  %1652 = zext i1 %1651 to i8
  store i8 %1652, ptr %10, align 1, !tbaa !5
  %1653 = load double, ptr %49, align 8, !tbaa !13
  %1654 = load double, ptr %50, align 8, !tbaa !13
  %1655 = load double, ptr %21, align 8, !tbaa !13
  %1656 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %1653, double noundef %1654, ptr noundef %47, double noundef %1655, ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %1656)
  %1657 = load double, ptr %49, align 8, !tbaa !13
  %1658 = load double, ptr %50, align 8, !tbaa !13
  %1659 = load double, ptr %21, align 8, !tbaa !13
  %1660 = fdiv double %1659, 3.000000e+00
  %1661 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %1657, double noundef %1658, ptr noundef %47, double noundef %1660, ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %1661)
  %1662 = load i8, ptr %9, align 1, !tbaa !5, !range !20, !noundef !21
  %1663 = trunc i8 %1662 to i1
  br i1 %1663, label %1674, label %1664

1664:                                             ; preds = %1650
  %1665 = load double, ptr %57, align 8, !tbaa !13
  %1666 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1665, double noundef 1.000000e-10)
  br i1 %1666, label %1667, label %1672

1667:                                             ; preds = %1664
  %1668 = load double, ptr %60, align 8, !tbaa !13
  %1669 = load double, ptr %57, align 8, !tbaa !13
  %1670 = fdiv double %1668, %1669
  %1671 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1670, double noundef 1.200000e+00)
  br label %1672

1672:                                             ; preds = %1667, %1664
  %1673 = phi i1 [ false, %1664 ], [ %1671, %1667 ]
  br label %1674

1674:                                             ; preds = %1672, %1650
  %1675 = phi i1 [ true, %1650 ], [ %1673, %1672 ]
  %1676 = zext i1 %1675 to i8
  store i8 %1676, ptr %9, align 1, !tbaa !5
  %1677 = load i8, ptr %9, align 1, !tbaa !5, !range !20, !noundef !21
  %1678 = trunc i8 %1677 to i1
  br i1 %1678, label %1689, label %1679

1679:                                             ; preds = %1674
  %1680 = load double, ptr %58, align 8, !tbaa !13
  %1681 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1680, double noundef 1.000000e-10)
  br i1 %1681, label %1682, label %1687

1682:                                             ; preds = %1679
  %1683 = load double, ptr %61, align 8, !tbaa !13
  %1684 = load double, ptr %58, align 8, !tbaa !13
  %1685 = fdiv double %1683, %1684
  %1686 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1685, double noundef 1.200000e+00)
  br label %1687

1687:                                             ; preds = %1682, %1679
  %1688 = phi i1 [ false, %1679 ], [ %1686, %1682 ]
  br label %1689

1689:                                             ; preds = %1687, %1674
  %1690 = phi i1 [ true, %1674 ], [ %1688, %1687 ]
  %1691 = zext i1 %1690 to i8
  store i8 %1691, ptr %9, align 1, !tbaa !5
  br label %1692

1692:                                             ; preds = %1689
  %1693 = load i64, ptr %30, align 8, !tbaa !11
  %1694 = add nsw i64 %1693, 1
  store i64 %1694, ptr %30, align 8, !tbaa !11
  br label %120, !llvm.loop !41

1695:                                             ; preds = %120
  br label %1696

1696:                                             ; preds = %1695
  %1697 = load i64, ptr %27, align 8, !tbaa !11
  %1698 = add nsw i64 %1697, 1
  store i64 %1698, ptr %27, align 8, !tbaa !11
  br label %99, !llvm.loop !42

1699:                                             ; preds = %99
  store i64 2, ptr %27, align 8, !tbaa !11
  br label %1700

1700:                                             ; preds = %1829, %1699
  %1701 = load i64, ptr %27, align 8, !tbaa !11
  %1702 = load i64, ptr %23, align 8, !tbaa !11
  %1703 = icmp sle i64 %1701, %1702
  br i1 %1703, label %1704, label %1832

1704:                                             ; preds = %1700
  %1705 = load i64, ptr %27, align 8, !tbaa !11
  %1706 = sub nsw i64 %1705, 1
  %1707 = add nsw i64 %1706, 1
  %1708 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %1707, ptr noundef %1708)
  %1709 = load i64, ptr %27, align 8, !tbaa !11
  %1710 = sub nsw i64 %1709, 1
  %1711 = add nsw i64 %1710, 1
  %1712 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %1711, ptr noundef %1712)
  store double -1.000000e+00, ptr %49, align 8, !tbaa !13
  store double 1.000000e+00, ptr %50, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1713

1713:                                             ; preds = %1742, %1704
  %1714 = load i64, ptr %28, align 8, !tbaa !11
  %1715 = load i64, ptr %27, align 8, !tbaa !11
  %1716 = sub nsw i64 %1715, 1
  %1717 = icmp sle i64 %1714, %1716
  br i1 %1717, label %1718, label %1745

1718:                                             ; preds = %1713
  %1719 = load double, ptr %49, align 8, !tbaa !13
  %1720 = load double, ptr %50, align 8, !tbaa !13
  %1721 = load double, ptr %49, align 8, !tbaa !13
  %1722 = fsub double %1720, %1721
  %1723 = load i64, ptr %28, align 8, !tbaa !11
  %1724 = sitofp i64 %1723 to double
  %1725 = fmul double %1722, %1724
  %1726 = load i64, ptr %27, align 8, !tbaa !11
  %1727 = sub nsw i64 %1726, 1
  %1728 = sitofp i64 %1727 to double
  %1729 = fdiv double %1725, %1728
  %1730 = fadd double %1719, %1729
  %1731 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1732 = load ptr, ptr %1731, align 8, !tbaa !15
  %1733 = load i64, ptr %28, align 8, !tbaa !11
  %1734 = getelementptr inbounds double, ptr %1732, i64 %1733
  store double %1730, ptr %1734, align 8, !tbaa !13
  %1735 = load ptr, ptr %4, align 8, !tbaa !9
  %1736 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1735)
  %1737 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %1736, double -1.000000e+00)
  %1738 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1739 = load ptr, ptr %1738, align 8, !tbaa !15
  %1740 = load i64, ptr %28, align 8, !tbaa !11
  %1741 = getelementptr inbounds double, ptr %1739, i64 %1740
  store double %1737, ptr %1741, align 8, !tbaa !13
  br label %1742

1742:                                             ; preds = %1718
  %1743 = load i64, ptr %28, align 8, !tbaa !11
  %1744 = add nsw i64 %1743, 1
  store i64 %1744, ptr %28, align 8, !tbaa !11
  br label %1713, !llvm.loop !43

1745:                                             ; preds = %1713
  %1746 = load i64, ptr %27, align 8, !tbaa !11
  %1747 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl19spline1dbuildlinearEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %1746, ptr noundef %47, ptr noundef %1747)
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 0, ptr %29, align 8, !tbaa !11
  br label %1748

1748:                                             ; preds = %1816, %1745
  %1749 = load i64, ptr %29, align 8, !tbaa !11
  %1750 = load i64, ptr %27, align 8, !tbaa !11
  %1751 = sub nsw i64 %1750, 2
  %1752 = icmp sle i64 %1749, %1751
  br i1 %1752, label %1753, label %1819

1753:                                             ; preds = %1748
  %1754 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1755 = load ptr, ptr %1754, align 8, !tbaa !15
  %1756 = load i64, ptr %29, align 8, !tbaa !11
  %1757 = getelementptr inbounds double, ptr %1755, i64 %1756
  %1758 = load double, ptr %1757, align 8, !tbaa !13
  store double %1758, ptr %49, align 8, !tbaa !13
  %1759 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1760 = load ptr, ptr %1759, align 8, !tbaa !15
  %1761 = load i64, ptr %29, align 8, !tbaa !11
  %1762 = add nsw i64 %1761, 1
  %1763 = getelementptr inbounds double, ptr %1760, i64 %1762
  %1764 = load double, ptr %1763, align 8, !tbaa !13
  store double %1764, ptr %50, align 8, !tbaa !13
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %1765

1765:                                             ; preds = %1812, %1753
  %1766 = load i64, ptr %30, align 8, !tbaa !11
  %1767 = load i64, ptr %20, align 8, !tbaa !11
  %1768 = icmp sle i64 %1766, %1767
  br i1 %1768, label %1769, label %1815

1769:                                             ; preds = %1765
  %1770 = load double, ptr %49, align 8, !tbaa !13
  %1771 = load double, ptr %50, align 8, !tbaa !13
  %1772 = load double, ptr %49, align 8, !tbaa !13
  %1773 = fsub double %1771, %1772
  %1774 = load ptr, ptr %4, align 8, !tbaa !9
  %1775 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1774)
  %1776 = call double @llvm.fmuladd.f64(double %1773, double %1775, double %1770)
  store double %1776, ptr %53, align 8, !tbaa !13
  %1777 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1778 = load ptr, ptr %1777, align 8, !tbaa !15
  %1779 = load i64, ptr %29, align 8, !tbaa !11
  %1780 = getelementptr inbounds double, ptr %1778, i64 %1779
  %1781 = load double, ptr %1780, align 8, !tbaa !13
  %1782 = load double, ptr %53, align 8, !tbaa !13
  %1783 = load double, ptr %49, align 8, !tbaa !13
  %1784 = fsub double %1782, %1783
  %1785 = load double, ptr %50, align 8, !tbaa !13
  %1786 = load double, ptr %49, align 8, !tbaa !13
  %1787 = fsub double %1785, %1786
  %1788 = fdiv double %1784, %1787
  %1789 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1790 = load ptr, ptr %1789, align 8, !tbaa !15
  %1791 = load i64, ptr %29, align 8, !tbaa !11
  %1792 = add nsw i64 %1791, 1
  %1793 = getelementptr inbounds double, ptr %1790, i64 %1792
  %1794 = load double, ptr %1793, align 8, !tbaa !13
  %1795 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1796 = load ptr, ptr %1795, align 8, !tbaa !15
  %1797 = load i64, ptr %29, align 8, !tbaa !11
  %1798 = getelementptr inbounds double, ptr %1796, i64 %1797
  %1799 = load double, ptr %1798, align 8, !tbaa !13
  %1800 = fsub double %1794, %1799
  %1801 = call double @llvm.fmuladd.f64(double %1788, double %1800, double %1781)
  store double %1801, ptr %56, align 8, !tbaa !13
  %1802 = load double, ptr %75, align 8, !tbaa !13
  %1803 = load double, ptr %53, align 8, !tbaa !13
  %1804 = load ptr, ptr %4, align 8, !tbaa !9
  %1805 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1803, ptr noundef %1804)
  %1806 = load double, ptr %56, align 8, !tbaa !13
  %1807 = fsub double %1805, %1806
  %1808 = load ptr, ptr %4, align 8, !tbaa !9
  %1809 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1807, ptr noundef %1808)
  %1810 = load ptr, ptr %4, align 8, !tbaa !9
  %1811 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1802, double noundef %1809, ptr noundef %1810)
  store double %1811, ptr %75, align 8, !tbaa !13
  br label %1812

1812:                                             ; preds = %1769
  %1813 = load i64, ptr %30, align 8, !tbaa !11
  %1814 = add nsw i64 %1813, 1
  store i64 %1814, ptr %30, align 8, !tbaa !11
  br label %1765, !llvm.loop !44

1815:                                             ; preds = %1765
  br label %1816

1816:                                             ; preds = %1815
  %1817 = load i64, ptr %29, align 8, !tbaa !11
  %1818 = add nsw i64 %1817, 1
  store i64 %1818, ptr %29, align 8, !tbaa !11
  br label %1748, !llvm.loop !45

1819:                                             ; preds = %1748
  %1820 = load i8, ptr %11, align 1, !tbaa !5, !range !20, !noundef !21
  %1821 = trunc i8 %1820 to i1
  br i1 %1821, label %1826, label %1822

1822:                                             ; preds = %1819
  %1823 = load double, ptr %75, align 8, !tbaa !13
  %1824 = load double, ptr %19, align 8, !tbaa !13
  %1825 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1823, double noundef %1824)
  br label %1826

1826:                                             ; preds = %1822, %1819
  %1827 = phi i1 [ true, %1819 ], [ %1825, %1822 ]
  %1828 = zext i1 %1827 to i8
  store i8 %1828, ptr %11, align 1, !tbaa !5
  br label %1829

1829:                                             ; preds = %1826
  %1830 = load i64, ptr %27, align 8, !tbaa !11
  %1831 = add nsw i64 %1830, 1
  store i64 %1831, ptr %27, align 8, !tbaa !11
  br label %1700, !llvm.loop !46

1832:                                             ; preds = %1700
  store i64 5, ptr %27, align 8, !tbaa !11
  br label %1833

1833:                                             ; preds = %2004, %1832
  %1834 = load i64, ptr %27, align 8, !tbaa !11
  %1835 = load i64, ptr %23, align 8, !tbaa !11
  %1836 = icmp sle i64 %1834, %1835
  br i1 %1836, label %1837, label %2007

1837:                                             ; preds = %1833
  %1838 = load i64, ptr %27, align 8, !tbaa !11
  %1839 = sub nsw i64 %1838, 1
  %1840 = add nsw i64 %1839, 1
  %1841 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %1840, ptr noundef %1841)
  %1842 = load i64, ptr %27, align 8, !tbaa !11
  %1843 = sub nsw i64 %1842, 1
  %1844 = add nsw i64 %1843, 1
  %1845 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %1844, ptr noundef %1845)
  %1846 = load i64, ptr %27, align 8, !tbaa !11
  %1847 = sub nsw i64 %1846, 1
  %1848 = add nsw i64 %1847, 1
  %1849 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %36, i64 noundef %1848, ptr noundef %1849)
  store double -1.000000e+00, ptr %49, align 8, !tbaa !13
  store double 1.000000e+00, ptr %50, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1850

1850:                                             ; preds = %1884, %1837
  %1851 = load i64, ptr %28, align 8, !tbaa !11
  %1852 = load i64, ptr %27, align 8, !tbaa !11
  %1853 = sub nsw i64 %1852, 1
  %1854 = icmp sle i64 %1851, %1853
  br i1 %1854, label %1855, label %1887

1855:                                             ; preds = %1850
  %1856 = load double, ptr %49, align 8, !tbaa !13
  %1857 = load double, ptr %50, align 8, !tbaa !13
  %1858 = load double, ptr %49, align 8, !tbaa !13
  %1859 = fsub double %1857, %1858
  %1860 = load i64, ptr %28, align 8, !tbaa !11
  %1861 = sitofp i64 %1860 to double
  %1862 = fmul double %1859, %1861
  %1863 = load i64, ptr %27, align 8, !tbaa !11
  %1864 = sub nsw i64 %1863, 1
  %1865 = sitofp i64 %1864 to double
  %1866 = fdiv double %1862, %1865
  %1867 = fadd double %1856, %1866
  %1868 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1869 = load ptr, ptr %1868, align 8, !tbaa !15
  %1870 = load i64, ptr %28, align 8, !tbaa !11
  %1871 = getelementptr inbounds double, ptr %1869, i64 %1870
  store double %1867, ptr %1871, align 8, !tbaa !13
  %1872 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1873 = load ptr, ptr %1872, align 8, !tbaa !15
  %1874 = load i64, ptr %28, align 8, !tbaa !11
  %1875 = getelementptr inbounds double, ptr %1873, i64 %1874
  %1876 = load double, ptr %1875, align 8, !tbaa !13
  %1877 = call double @llvm.fmuladd.f64(double 0x40105616905F83B6, double %1876, double 4.000000e-01)
  %1878 = load ptr, ptr %4, align 8, !tbaa !9
  %1879 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %1877, ptr noundef %1878)
  %1880 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1881 = load ptr, ptr %1880, align 8, !tbaa !15
  %1882 = load i64, ptr %28, align 8, !tbaa !11
  %1883 = getelementptr inbounds double, ptr %1881, i64 %1882
  store double %1879, ptr %1883, align 8, !tbaa !13
  br label %1884

1884:                                             ; preds = %1855
  %1885 = load i64, ptr %28, align 8, !tbaa !11
  %1886 = add nsw i64 %1885, 1
  store i64 %1886, ptr %28, align 8, !tbaa !11
  br label %1850, !llvm.loop !47

1887:                                             ; preds = %1850
  %1888 = load i64, ptr %27, align 8, !tbaa !11
  %1889 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildakimaEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %1888, ptr noundef %47, ptr noundef %1889)
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 0, ptr %29, align 8, !tbaa !11
  br label %1890

1890:                                             ; preds = %1991, %1887
  %1891 = load i64, ptr %29, align 8, !tbaa !11
  %1892 = load i64, ptr %27, align 8, !tbaa !11
  %1893 = sub nsw i64 %1892, 1
  %1894 = icmp sle i64 %1891, %1893
  br i1 %1894, label %1895, label %1994

1895:                                             ; preds = %1890
  %1896 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %36, i32 0, i32 4
  %1897 = load ptr, ptr %1896, align 8, !tbaa !15
  %1898 = getelementptr inbounds double, ptr %1897, i64 0
  %1899 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1900 = load ptr, ptr %1899, align 8, !tbaa !15
  %1901 = getelementptr inbounds double, ptr %1900, i64 0
  %1902 = load i64, ptr %27, align 8, !tbaa !11
  %1903 = sub nsw i64 %1902, 1
  %1904 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %1903)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %1898, i64 noundef 1, ptr noundef %1901, i64 noundef 1, i64 noundef %1904)
  %1905 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %36, i32 0, i32 4
  %1906 = load ptr, ptr %1905, align 8, !tbaa !15
  %1907 = load i64, ptr %29, align 8, !tbaa !11
  %1908 = getelementptr inbounds double, ptr %1906, i64 %1907
  store double 5.000000e+00, ptr %1908, align 8, !tbaa !13
  %1909 = load i64, ptr %27, align 8, !tbaa !11
  %1910 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildakimaEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %36, i64 noundef %1909, ptr noundef %48, ptr noundef %1910)
  %1911 = load i64, ptr %29, align 8, !tbaa !11
  %1912 = sub nsw i64 %1911, 3
  %1913 = icmp sge i64 %1912, 1
  br i1 %1913, label %1914, label %1949

1914:                                             ; preds = %1895
  store double -1.000000e+00, ptr %49, align 8, !tbaa !13
  %1915 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1916 = load ptr, ptr %1915, align 8, !tbaa !15
  %1917 = load i64, ptr %29, align 8, !tbaa !11
  %1918 = sub nsw i64 %1917, 3
  %1919 = getelementptr inbounds double, ptr %1916, i64 %1918
  %1920 = load double, ptr %1919, align 8, !tbaa !13
  store double %1920, ptr %50, align 8, !tbaa !13
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %1921

1921:                                             ; preds = %1945, %1914
  %1922 = load i64, ptr %30, align 8, !tbaa !11
  %1923 = load i64, ptr %20, align 8, !tbaa !11
  %1924 = icmp sle i64 %1922, %1923
  br i1 %1924, label %1925, label %1948

1925:                                             ; preds = %1921
  %1926 = load double, ptr %49, align 8, !tbaa !13
  %1927 = load double, ptr %50, align 8, !tbaa !13
  %1928 = load double, ptr %49, align 8, !tbaa !13
  %1929 = fsub double %1927, %1928
  %1930 = load ptr, ptr %4, align 8, !tbaa !9
  %1931 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1930)
  %1932 = call double @llvm.fmuladd.f64(double %1929, double %1931, double %1926)
  store double %1932, ptr %53, align 8, !tbaa !13
  %1933 = load double, ptr %75, align 8, !tbaa !13
  %1934 = load double, ptr %53, align 8, !tbaa !13
  %1935 = load ptr, ptr %4, align 8, !tbaa !9
  %1936 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1934, ptr noundef %1935)
  %1937 = load double, ptr %53, align 8, !tbaa !13
  %1938 = load ptr, ptr %4, align 8, !tbaa !9
  %1939 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %48, double noundef %1937, ptr noundef %1938)
  %1940 = fsub double %1936, %1939
  %1941 = load ptr, ptr %4, align 8, !tbaa !9
  %1942 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1940, ptr noundef %1941)
  %1943 = load ptr, ptr %4, align 8, !tbaa !9
  %1944 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1933, double noundef %1942, ptr noundef %1943)
  store double %1944, ptr %75, align 8, !tbaa !13
  br label %1945

1945:                                             ; preds = %1925
  %1946 = load i64, ptr %30, align 8, !tbaa !11
  %1947 = add nsw i64 %1946, 1
  store i64 %1947, ptr %30, align 8, !tbaa !11
  br label %1921, !llvm.loop !48

1948:                                             ; preds = %1921
  br label %1949

1949:                                             ; preds = %1948, %1895
  %1950 = load i64, ptr %29, align 8, !tbaa !11
  %1951 = add nsw i64 %1950, 3
  %1952 = load i64, ptr %27, align 8, !tbaa !11
  %1953 = sub nsw i64 %1952, 2
  %1954 = icmp sle i64 %1951, %1953
  br i1 %1954, label %1955, label %1990

1955:                                             ; preds = %1949
  %1956 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1957 = load ptr, ptr %1956, align 8, !tbaa !15
  %1958 = load i64, ptr %29, align 8, !tbaa !11
  %1959 = add nsw i64 %1958, 3
  %1960 = getelementptr inbounds double, ptr %1957, i64 %1959
  %1961 = load double, ptr %1960, align 8, !tbaa !13
  store double %1961, ptr %49, align 8, !tbaa !13
  store double 1.000000e+00, ptr %50, align 8, !tbaa !13
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %1962

1962:                                             ; preds = %1986, %1955
  %1963 = load i64, ptr %30, align 8, !tbaa !11
  %1964 = load i64, ptr %20, align 8, !tbaa !11
  %1965 = icmp sle i64 %1963, %1964
  br i1 %1965, label %1966, label %1989

1966:                                             ; preds = %1962
  %1967 = load double, ptr %49, align 8, !tbaa !13
  %1968 = load double, ptr %50, align 8, !tbaa !13
  %1969 = load double, ptr %49, align 8, !tbaa !13
  %1970 = fsub double %1968, %1969
  %1971 = load ptr, ptr %4, align 8, !tbaa !9
  %1972 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1971)
  %1973 = call double @llvm.fmuladd.f64(double %1970, double %1972, double %1967)
  store double %1973, ptr %53, align 8, !tbaa !13
  %1974 = load double, ptr %75, align 8, !tbaa !13
  %1975 = load double, ptr %53, align 8, !tbaa !13
  %1976 = load ptr, ptr %4, align 8, !tbaa !9
  %1977 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1975, ptr noundef %1976)
  %1978 = load double, ptr %53, align 8, !tbaa !13
  %1979 = load ptr, ptr %4, align 8, !tbaa !9
  %1980 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %48, double noundef %1978, ptr noundef %1979)
  %1981 = fsub double %1977, %1980
  %1982 = load ptr, ptr %4, align 8, !tbaa !9
  %1983 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1981, ptr noundef %1982)
  %1984 = load ptr, ptr %4, align 8, !tbaa !9
  %1985 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1974, double noundef %1983, ptr noundef %1984)
  store double %1985, ptr %75, align 8, !tbaa !13
  br label %1986

1986:                                             ; preds = %1966
  %1987 = load i64, ptr %30, align 8, !tbaa !11
  %1988 = add nsw i64 %1987, 1
  store i64 %1988, ptr %30, align 8, !tbaa !11
  br label %1962, !llvm.loop !49

1989:                                             ; preds = %1962
  br label %1990

1990:                                             ; preds = %1989, %1949
  br label %1991

1991:                                             ; preds = %1990
  %1992 = load i64, ptr %29, align 8, !tbaa !11
  %1993 = add nsw i64 %1992, 1
  store i64 %1993, ptr %29, align 8, !tbaa !11
  br label %1890, !llvm.loop !50

1994:                                             ; preds = %1890
  %1995 = load i8, ptr %10, align 1, !tbaa !5, !range !20, !noundef !21
  %1996 = trunc i8 %1995 to i1
  br i1 %1996, label %2001, label %1997

1997:                                             ; preds = %1994
  %1998 = load double, ptr %75, align 8, !tbaa !13
  %1999 = load double, ptr %19, align 8, !tbaa !13
  %2000 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1998, double noundef %1999)
  br label %2001

2001:                                             ; preds = %1997, %1994
  %2002 = phi i1 [ true, %1994 ], [ %2000, %1997 ]
  %2003 = zext i1 %2002 to i8
  store i8 %2003, ptr %10, align 1, !tbaa !5
  br label %2004

2004:                                             ; preds = %2001
  %2005 = load i64, ptr %27, align 8, !tbaa !11
  %2006 = add nsw i64 %2005, 1
  store i64 %2006, ptr %27, align 8, !tbaa !11
  br label %1833, !llvm.loop !51

2007:                                             ; preds = %1833
  store i64 2, ptr %27, align 8, !tbaa !11
  br label %2008

2008:                                             ; preds = %2191, %2007
  %2009 = load i64, ptr %27, align 8, !tbaa !11
  %2010 = load i64, ptr %23, align 8, !tbaa !11
  %2011 = icmp sle i64 %2009, %2010
  br i1 %2011, label %2012, label %2194

2012:                                             ; preds = %2008
  %2013 = load i64, ptr %27, align 8, !tbaa !11
  %2014 = sub nsw i64 %2013, 1
  %2015 = add nsw i64 %2014, 1
  %2016 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %2015, ptr noundef %2016)
  %2017 = load i64, ptr %27, align 8, !tbaa !11
  %2018 = sub nsw i64 %2017, 1
  %2019 = add nsw i64 %2018, 1
  %2020 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %2019, ptr noundef %2020)
  %2021 = load ptr, ptr %4, align 8, !tbaa !9
  %2022 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2021)
  %2023 = fsub double -1.000000e+00, %2022
  store double %2023, ptr %49, align 8, !tbaa !13
  %2024 = load ptr, ptr %4, align 8, !tbaa !9
  %2025 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2024)
  %2026 = fadd double 1.000000e+00, %2025
  store double %2026, ptr %50, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %2027

2027:                                             ; preds = %2061, %2012
  %2028 = load i64, ptr %28, align 8, !tbaa !11
  %2029 = load i64, ptr %27, align 8, !tbaa !11
  %2030 = sub nsw i64 %2029, 1
  %2031 = icmp sle i64 %2028, %2030
  br i1 %2031, label %2032, label %2064

2032:                                             ; preds = %2027
  %2033 = load double, ptr %49, align 8, !tbaa !13
  %2034 = load double, ptr %50, align 8, !tbaa !13
  %2035 = load double, ptr %49, align 8, !tbaa !13
  %2036 = fsub double %2034, %2035
  %2037 = load i64, ptr %28, align 8, !tbaa !11
  %2038 = sitofp i64 %2037 to double
  %2039 = fmul double %2036, %2038
  %2040 = load i64, ptr %27, align 8, !tbaa !11
  %2041 = sub nsw i64 %2040, 1
  %2042 = sitofp i64 %2041 to double
  %2043 = fdiv double %2039, %2042
  %2044 = fadd double %2033, %2043
  %2045 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2046 = load ptr, ptr %2045, align 8, !tbaa !15
  %2047 = load i64, ptr %28, align 8, !tbaa !11
  %2048 = getelementptr inbounds double, ptr %2046, i64 %2047
  store double %2044, ptr %2048, align 8, !tbaa !13
  %2049 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2050 = load ptr, ptr %2049, align 8, !tbaa !15
  %2051 = load i64, ptr %28, align 8, !tbaa !11
  %2052 = getelementptr inbounds double, ptr %2050, i64 %2051
  %2053 = load double, ptr %2052, align 8, !tbaa !13
  %2054 = call double @llvm.fmuladd.f64(double 0x40105616905F83B6, double %2053, double 4.000000e-01)
  %2055 = load ptr, ptr %4, align 8, !tbaa !9
  %2056 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %2054, ptr noundef %2055)
  %2057 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %2058 = load ptr, ptr %2057, align 8, !tbaa !15
  %2059 = load i64, ptr %28, align 8, !tbaa !11
  %2060 = getelementptr inbounds double, ptr %2058, i64 %2059
  store double %2056, ptr %2060, align 8, !tbaa !13
  br label %2061

2061:                                             ; preds = %2032
  %2062 = load i64, ptr %28, align 8, !tbaa !11
  %2063 = add nsw i64 %2062, 1
  store i64 %2063, ptr %28, align 8, !tbaa !11
  br label %2027, !llvm.loop !52

2064:                                             ; preds = %2027
  %2065 = load i64, ptr %27, align 8, !tbaa !11
  %2066 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %2065, i64 noundef 2, double noundef 0.000000e+00, i64 noundef 2, double noundef 0.000000e+00, ptr noundef %47, ptr noundef %2066)
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %2067

2067:                                             ; preds = %2131, %2064
  %2068 = load i64, ptr %30, align 8, !tbaa !11
  %2069 = load i64, ptr %20, align 8, !tbaa !11
  %2070 = icmp sle i64 %2068, %2069
  br i1 %2070, label %2071, label %2134

2071:                                             ; preds = %2067
  %2072 = load double, ptr %49, align 8, !tbaa !13
  %2073 = load double, ptr %50, align 8, !tbaa !13
  %2074 = load double, ptr %49, align 8, !tbaa !13
  %2075 = fsub double %2073, %2074
  %2076 = load ptr, ptr %4, align 8, !tbaa !9
  %2077 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2076)
  %2078 = call double @llvm.fmuladd.f64(double %2075, double %2077, double %2072)
  store double %2078, ptr %53, align 8, !tbaa !13
  %2079 = load double, ptr %53, align 8, !tbaa !13
  %2080 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %47, double noundef %2079, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %2080)
  %2081 = load double, ptr %53, align 8, !tbaa !13
  %2082 = load double, ptr %22, align 8, !tbaa !13
  %2083 = fsub double %2081, %2082
  %2084 = load ptr, ptr %4, align 8, !tbaa !9
  %2085 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2083, ptr noundef %2084)
  store double %2085, ptr %72, align 8, !tbaa !13
  %2086 = load double, ptr %53, align 8, !tbaa !13
  %2087 = load ptr, ptr %4, align 8, !tbaa !9
  %2088 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2086, ptr noundef %2087)
  store double %2088, ptr %73, align 8, !tbaa !13
  %2089 = load double, ptr %53, align 8, !tbaa !13
  %2090 = load double, ptr %22, align 8, !tbaa !13
  %2091 = fadd double %2089, %2090
  %2092 = load ptr, ptr %4, align 8, !tbaa !9
  %2093 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2091, ptr noundef %2092)
  store double %2093, ptr %74, align 8, !tbaa !13
  %2094 = load double, ptr %75, align 8, !tbaa !13
  %2095 = load double, ptr %66, align 8, !tbaa !13
  %2096 = load double, ptr %73, align 8, !tbaa !13
  %2097 = fsub double %2095, %2096
  %2098 = load ptr, ptr %4, align 8, !tbaa !9
  %2099 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2097, ptr noundef %2098)
  %2100 = load ptr, ptr %4, align 8, !tbaa !9
  %2101 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %2094, double noundef %2099, ptr noundef %2100)
  store double %2101, ptr %75, align 8, !tbaa !13
  %2102 = load double, ptr %75, align 8, !tbaa !13
  %2103 = load double, ptr %67, align 8, !tbaa !13
  %2104 = load double, ptr %74, align 8, !tbaa !13
  %2105 = load double, ptr %72, align 8, !tbaa !13
  %2106 = fsub double %2104, %2105
  %2107 = load double, ptr %22, align 8, !tbaa !13
  %2108 = fmul double 2.000000e+00, %2107
  %2109 = fdiv double %2106, %2108
  %2110 = fsub double %2103, %2109
  %2111 = load ptr, ptr %4, align 8, !tbaa !9
  %2112 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2110, ptr noundef %2111)
  %2113 = load ptr, ptr %4, align 8, !tbaa !9
  %2114 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %2102, double noundef %2112, ptr noundef %2113)
  store double %2114, ptr %75, align 8, !tbaa !13
  %2115 = load double, ptr %75, align 8, !tbaa !13
  %2116 = load double, ptr %68, align 8, !tbaa !13
  %2117 = load double, ptr %74, align 8, !tbaa !13
  %2118 = load double, ptr %73, align 8, !tbaa !13
  %2119 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %2118, double %2117)
  %2120 = load double, ptr %72, align 8, !tbaa !13
  %2121 = fadd double %2119, %2120
  %2122 = load double, ptr %22, align 8, !tbaa !13
  %2123 = load ptr, ptr %4, align 8, !tbaa !9
  %2124 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %2122, ptr noundef %2123)
  %2125 = fdiv double %2121, %2124
  %2126 = fsub double %2116, %2125
  %2127 = load ptr, ptr %4, align 8, !tbaa !9
  %2128 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2126, ptr noundef %2127)
  %2129 = load ptr, ptr %4, align 8, !tbaa !9
  %2130 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %2115, double noundef %2128, ptr noundef %2129)
  store double %2130, ptr %75, align 8, !tbaa !13
  br label %2131

2131:                                             ; preds = %2071
  %2132 = load i64, ptr %30, align 8, !tbaa !11
  %2133 = add nsw i64 %2132, 1
  store i64 %2133, ptr %30, align 8, !tbaa !11
  br label %2067, !llvm.loop !53

2134:                                             ; preds = %2067
  %2135 = load i8, ptr %12, align 1, !tbaa !5, !range !20, !noundef !21
  %2136 = trunc i8 %2135 to i1
  br i1 %2136, label %2140, label %2137

2137:                                             ; preds = %2134
  %2138 = load double, ptr %75, align 8, !tbaa !13
  %2139 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2138, double noundef 1.000000e-03)
  br label %2140

2140:                                             ; preds = %2137, %2134
  %2141 = phi i1 [ true, %2134 ], [ %2139, %2137 ]
  %2142 = zext i1 %2141 to i8
  store i8 %2142, ptr %12, align 1, !tbaa !5
  %2143 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL30testspline1dunit_unsetspline1dPN11alglib_impl19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %48, ptr noundef %2143)
  %2144 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1dcopyEPNS_19spline1dinterpolantES1_PNS_8ae_stateE(ptr noundef %47, ptr noundef %48, ptr noundef %2144)
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %2145

2145:                                             ; preds = %2169, %2140
  %2146 = load i64, ptr %30, align 8, !tbaa !11
  %2147 = load i64, ptr %20, align 8, !tbaa !11
  %2148 = icmp sle i64 %2146, %2147
  br i1 %2148, label %2149, label %2172

2149:                                             ; preds = %2145
  %2150 = load double, ptr %49, align 8, !tbaa !13
  %2151 = load double, ptr %50, align 8, !tbaa !13
  %2152 = load double, ptr %49, align 8, !tbaa !13
  %2153 = fsub double %2151, %2152
  %2154 = load ptr, ptr %4, align 8, !tbaa !9
  %2155 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2154)
  %2156 = call double @llvm.fmuladd.f64(double %2153, double %2155, double %2150)
  store double %2156, ptr %53, align 8, !tbaa !13
  %2157 = load double, ptr %75, align 8, !tbaa !13
  %2158 = load double, ptr %53, align 8, !tbaa !13
  %2159 = load ptr, ptr %4, align 8, !tbaa !9
  %2160 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2158, ptr noundef %2159)
  %2161 = load double, ptr %53, align 8, !tbaa !13
  %2162 = load ptr, ptr %4, align 8, !tbaa !9
  %2163 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %48, double noundef %2161, ptr noundef %2162)
  %2164 = fsub double %2160, %2163
  %2165 = load ptr, ptr %4, align 8, !tbaa !9
  %2166 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2164, ptr noundef %2165)
  %2167 = load ptr, ptr %4, align 8, !tbaa !9
  %2168 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %2157, double noundef %2166, ptr noundef %2167)
  store double %2168, ptr %75, align 8, !tbaa !13
  br label %2169

2169:                                             ; preds = %2149
  %2170 = load i64, ptr %30, align 8, !tbaa !11
  %2171 = add nsw i64 %2170, 1
  store i64 %2171, ptr %30, align 8, !tbaa !11
  br label %2145, !llvm.loop !54

2172:                                             ; preds = %2145
  %2173 = load i8, ptr %14, align 1, !tbaa !5, !range !20, !noundef !21
  %2174 = trunc i8 %2173 to i1
  br i1 %2174, label %2179, label %2175

2175:                                             ; preds = %2172
  %2176 = load double, ptr %75, align 8, !tbaa !13
  %2177 = load double, ptr %19, align 8, !tbaa !13
  %2178 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2176, double noundef %2177)
  br label %2179

2179:                                             ; preds = %2175, %2172
  %2180 = phi i1 [ true, %2172 ], [ %2178, %2175 ]
  %2181 = zext i1 %2180 to i8
  store i8 %2181, ptr %14, align 1, !tbaa !5
  %2182 = load i8, ptr %13, align 1, !tbaa !5, !range !20, !noundef !21
  %2183 = trunc i8 %2182 to i1
  br i1 %2183, label %2188, label %2184

2184:                                             ; preds = %2179
  %2185 = load ptr, ptr %4, align 8, !tbaa !9
  %2186 = call noundef zeroext i1 @_ZL27testspline1dunit_testunpackPN11alglib_impl19spline1dinterpolantEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %47, ptr noundef %31, ptr noundef %2185)
  %2187 = xor i1 %2186, true
  br label %2188

2188:                                             ; preds = %2184, %2179
  %2189 = phi i1 [ true, %2179 ], [ %2187, %2184 ]
  %2190 = zext i1 %2189 to i8
  store i8 %2190, ptr %13, align 1, !tbaa !5
  br label %2191

2191:                                             ; preds = %2188
  %2192 = load i64, ptr %27, align 8, !tbaa !11
  %2193 = add nsw i64 %2192, 1
  store i64 %2193, ptr %27, align 8, !tbaa !11
  br label %2008, !llvm.loop !55

2194:                                             ; preds = %2008
  store i64 2, ptr %27, align 8, !tbaa !11
  br label %2195

2195:                                             ; preds = %2423, %2194
  %2196 = load i64, ptr %27, align 8, !tbaa !11
  %2197 = load i64, ptr %23, align 8, !tbaa !11
  %2198 = icmp sle i64 %2196, %2197
  br i1 %2198, label %2199, label %2426

2199:                                             ; preds = %2195
  %2200 = load i64, ptr %27, align 8, !tbaa !11
  %2201 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %2200, ptr noundef %2201)
  %2202 = load i64, ptr %27, align 8, !tbaa !11
  %2203 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %2202, ptr noundef %2203)
  %2204 = load ptr, ptr %4, align 8, !tbaa !9
  %2205 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2204)
  %2206 = fsub double -1.000000e+00, %2205
  store double %2206, ptr %49, align 8, !tbaa !13
  %2207 = load ptr, ptr %4, align 8, !tbaa !9
  %2208 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2207)
  %2209 = fadd double 1.000000e+00, %2208
  store double %2209, ptr %50, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %2210

2210:                                             ; preds = %2243, %2199
  %2211 = load i64, ptr %28, align 8, !tbaa !11
  %2212 = load i64, ptr %27, align 8, !tbaa !11
  %2213 = sub nsw i64 %2212, 1
  %2214 = icmp sle i64 %2211, %2213
  br i1 %2214, label %2215, label %2246

2215:                                             ; preds = %2210
  %2216 = load double, ptr %49, align 8, !tbaa !13
  %2217 = load double, ptr %50, align 8, !tbaa !13
  %2218 = load double, ptr %49, align 8, !tbaa !13
  %2219 = fsub double %2217, %2218
  %2220 = load i64, ptr %28, align 8, !tbaa !11
  %2221 = sitofp i64 %2220 to double
  %2222 = load ptr, ptr %4, align 8, !tbaa !9
  %2223 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2222)
  %2224 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %2223, double %2221)
  %2225 = fsub double %2224, 1.000000e-01
  %2226 = fmul double %2219, %2225
  %2227 = load i64, ptr %27, align 8, !tbaa !11
  %2228 = sub nsw i64 %2227, 1
  %2229 = sitofp i64 %2228 to double
  %2230 = fdiv double %2226, %2229
  %2231 = fadd double %2216, %2230
  %2232 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2233 = load ptr, ptr %2232, align 8, !tbaa !15
  %2234 = load i64, ptr %28, align 8, !tbaa !11
  %2235 = getelementptr inbounds double, ptr %2233, i64 %2234
  store double %2231, ptr %2235, align 8, !tbaa !13
  %2236 = load ptr, ptr %4, align 8, !tbaa !9
  %2237 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2236)
  %2238 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %2237, double -1.000000e+00)
  %2239 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %2240 = load ptr, ptr %2239, align 8, !tbaa !15
  %2241 = load i64, ptr %28, align 8, !tbaa !11
  %2242 = getelementptr inbounds double, ptr %2240, i64 %2241
  store double %2238, ptr %2242, align 8, !tbaa !13
  br label %2243

2243:                                             ; preds = %2215
  %2244 = load i64, ptr %28, align 8, !tbaa !11
  %2245 = add nsw i64 %2244, 1
  store i64 %2245, ptr %28, align 8, !tbaa !11
  br label %2210, !llvm.loop !56

2246:                                             ; preds = %2210
  %2247 = load i64, ptr %27, align 8, !tbaa !11
  %2248 = mul nsw i64 5, %2247
  %2249 = add nsw i64 %2248, 2
  %2250 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %40, i64 noundef %2249, ptr noundef %2250)
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %2251

2251:                                             ; preds = %2276, %2246
  %2252 = load i64, ptr %28, align 8, !tbaa !11
  %2253 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 0
  %2254 = load i64, ptr %2253, align 8, !tbaa !24
  %2255 = sub nsw i64 %2254, 1
  %2256 = icmp sle i64 %2252, %2255
  br i1 %2256, label %2257, label %2279

2257:                                             ; preds = %2251
  %2258 = load double, ptr %49, align 8, !tbaa !13
  %2259 = load double, ptr %50, align 8, !tbaa !13
  %2260 = load double, ptr %49, align 8, !tbaa !13
  %2261 = fsub double %2259, %2260
  %2262 = load i64, ptr %28, align 8, !tbaa !11
  %2263 = sub nsw i64 %2262, 1
  %2264 = sitofp i64 %2263 to double
  %2265 = fmul double %2261, %2264
  %2266 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 0
  %2267 = load i64, ptr %2266, align 8, !tbaa !24
  %2268 = sub nsw i64 %2267, 3
  %2269 = sitofp i64 %2268 to double
  %2270 = fdiv double %2265, %2269
  %2271 = fadd double %2258, %2270
  %2272 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %2273 = load ptr, ptr %2272, align 8, !tbaa !15
  %2274 = load i64, ptr %28, align 8, !tbaa !11
  %2275 = getelementptr inbounds double, ptr %2273, i64 %2274
  store double %2271, ptr %2275, align 8, !tbaa !13
  br label %2276

2276:                                             ; preds = %2257
  %2277 = load i64, ptr %28, align 8, !tbaa !11
  %2278 = add nsw i64 %2277, 1
  store i64 %2278, ptr %28, align 8, !tbaa !11
  br label %2251, !llvm.loop !57

2279:                                             ; preds = %2251
  store i64 0, ptr %78, align 8, !tbaa !11
  br label %2280

2280:                                             ; preds = %2421, %2279
  %2281 = load i64, ptr %27, align 8, !tbaa !11
  %2282 = load ptr, ptr %4, align 8, !tbaa !9
  %2283 = call noundef zeroext i1 @_ZL36testspline1dunit_enumerateallsplinesPN11alglib_impl9ae_vectorES1_lPlPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %2281, ptr noundef %78, ptr noundef %47, ptr noundef %2282)
  br i1 %2283, label %2284, label %2422

2284:                                             ; preds = %2280
  %2285 = load ptr, ptr %4, align 8, !tbaa !9
  %2286 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2285)
  %2287 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %2286, double -2.000000e+00)
  store double %2287, ptr %54, align 8, !tbaa !13
  %2288 = load ptr, ptr %4, align 8, !tbaa !9
  %2289 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2288)
  %2290 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %2289, double -1.000000e+00)
  store double %2290, ptr %55, align 8, !tbaa !13
  %2291 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1dcopyEPNS_19spline1dinterpolantES1_PNS_8ae_stateE(ptr noundef %47, ptr noundef %48, ptr noundef %2291)
  %2292 = load double, ptr %54, align 8, !tbaa !13
  %2293 = load double, ptr %55, align 8, !tbaa !13
  %2294 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl17spline1dlintransxEPNS_19spline1dinterpolantEddPNS_8ae_stateE(ptr noundef %48, double noundef %2292, double noundef %2293, ptr noundef %2294)
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %2295

2295:                                             ; preds = %2331, %2284
  %2296 = load i64, ptr %28, align 8, !tbaa !11
  %2297 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 0
  %2298 = load i64, ptr %2297, align 8, !tbaa !24
  %2299 = sub nsw i64 %2298, 1
  %2300 = icmp sle i64 %2296, %2299
  br i1 %2300, label %2301, label %2334

2301:                                             ; preds = %2295
  %2302 = load i8, ptr %15, align 1, !tbaa !5, !range !20, !noundef !21
  %2303 = trunc i8 %2302 to i1
  br i1 %2303, label %2328, label %2304

2304:                                             ; preds = %2301
  %2305 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %2306 = load ptr, ptr %2305, align 8, !tbaa !15
  %2307 = load i64, ptr %28, align 8, !tbaa !11
  %2308 = getelementptr inbounds double, ptr %2306, i64 %2307
  %2309 = load double, ptr %2308, align 8, !tbaa !13
  %2310 = load ptr, ptr %4, align 8, !tbaa !9
  %2311 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2309, ptr noundef %2310)
  %2312 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %2313 = load ptr, ptr %2312, align 8, !tbaa !15
  %2314 = load i64, ptr %28, align 8, !tbaa !11
  %2315 = getelementptr inbounds double, ptr %2313, i64 %2314
  %2316 = load double, ptr %2315, align 8, !tbaa !13
  %2317 = load double, ptr %55, align 8, !tbaa !13
  %2318 = fsub double %2316, %2317
  %2319 = load double, ptr %54, align 8, !tbaa !13
  %2320 = fdiv double %2318, %2319
  %2321 = load ptr, ptr %4, align 8, !tbaa !9
  %2322 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %48, double noundef %2320, ptr noundef %2321)
  %2323 = fsub double %2311, %2322
  %2324 = load ptr, ptr %4, align 8, !tbaa !9
  %2325 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2323, ptr noundef %2324)
  %2326 = load double, ptr %19, align 8, !tbaa !13
  %2327 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2325, double noundef %2326)
  br label %2328

2328:                                             ; preds = %2304, %2301
  %2329 = phi i1 [ true, %2301 ], [ %2327, %2304 ]
  %2330 = zext i1 %2329 to i8
  store i8 %2330, ptr %15, align 1, !tbaa !5
  br label %2331

2331:                                             ; preds = %2328
  %2332 = load i64, ptr %28, align 8, !tbaa !11
  %2333 = add nsw i64 %2332, 1
  store i64 %2333, ptr %28, align 8, !tbaa !11
  br label %2295, !llvm.loop !58

2334:                                             ; preds = %2295
  %2335 = load ptr, ptr %4, align 8, !tbaa !9
  %2336 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2335)
  %2337 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %2336, double -1.000000e+00)
  store double %2337, ptr %55, align 8, !tbaa !13
  %2338 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1dcopyEPNS_19spline1dinterpolantES1_PNS_8ae_stateE(ptr noundef %47, ptr noundef %48, ptr noundef %2338)
  %2339 = load double, ptr %55, align 8, !tbaa !13
  %2340 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl17spline1dlintransxEPNS_19spline1dinterpolantEddPNS_8ae_stateE(ptr noundef %48, double noundef 0.000000e+00, double noundef %2339, ptr noundef %2340)
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %2341

2341:                                             ; preds = %2369, %2334
  %2342 = load i64, ptr %28, align 8, !tbaa !11
  %2343 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 0
  %2344 = load i64, ptr %2343, align 8, !tbaa !24
  %2345 = sub nsw i64 %2344, 1
  %2346 = icmp sle i64 %2342, %2345
  br i1 %2346, label %2347, label %2372

2347:                                             ; preds = %2341
  %2348 = load i8, ptr %15, align 1, !tbaa !5, !range !20, !noundef !21
  %2349 = trunc i8 %2348 to i1
  br i1 %2349, label %2366, label %2350

2350:                                             ; preds = %2347
  %2351 = load double, ptr %55, align 8, !tbaa !13
  %2352 = load ptr, ptr %4, align 8, !tbaa !9
  %2353 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2351, ptr noundef %2352)
  %2354 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %2355 = load ptr, ptr %2354, align 8, !tbaa !15
  %2356 = load i64, ptr %28, align 8, !tbaa !11
  %2357 = getelementptr inbounds double, ptr %2355, i64 %2356
  %2358 = load double, ptr %2357, align 8, !tbaa !13
  %2359 = load ptr, ptr %4, align 8, !tbaa !9
  %2360 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %48, double noundef %2358, ptr noundef %2359)
  %2361 = fsub double %2353, %2360
  %2362 = load ptr, ptr %4, align 8, !tbaa !9
  %2363 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2361, ptr noundef %2362)
  %2364 = load double, ptr %19, align 8, !tbaa !13
  %2365 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2363, double noundef %2364)
  br label %2366

2366:                                             ; preds = %2350, %2347
  %2367 = phi i1 [ true, %2347 ], [ %2365, %2350 ]
  %2368 = zext i1 %2367 to i8
  store i8 %2368, ptr %15, align 1, !tbaa !5
  br label %2369

2369:                                             ; preds = %2366
  %2370 = load i64, ptr %28, align 8, !tbaa !11
  %2371 = add nsw i64 %2370, 1
  store i64 %2371, ptr %28, align 8, !tbaa !11
  br label %2341, !llvm.loop !59

2372:                                             ; preds = %2341
  %2373 = load ptr, ptr %4, align 8, !tbaa !9
  %2374 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2373)
  %2375 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %2374, double -1.000000e+00)
  store double %2375, ptr %54, align 8, !tbaa !13
  %2376 = load ptr, ptr %4, align 8, !tbaa !9
  %2377 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2376)
  %2378 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %2377, double -1.000000e+00)
  store double %2378, ptr %55, align 8, !tbaa !13
  %2379 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1dcopyEPNS_19spline1dinterpolantES1_PNS_8ae_stateE(ptr noundef %47, ptr noundef %48, ptr noundef %2379)
  %2380 = load double, ptr %54, align 8, !tbaa !13
  %2381 = load double, ptr %55, align 8, !tbaa !13
  %2382 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl17spline1dlintransyEPNS_19spline1dinterpolantEddPNS_8ae_stateE(ptr noundef %48, double noundef %2380, double noundef %2381, ptr noundef %2382)
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %2383

2383:                                             ; preds = %2418, %2372
  %2384 = load i64, ptr %28, align 8, !tbaa !11
  %2385 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 0
  %2386 = load i64, ptr %2385, align 8, !tbaa !24
  %2387 = sub nsw i64 %2386, 1
  %2388 = icmp sle i64 %2384, %2387
  br i1 %2388, label %2389, label %2421

2389:                                             ; preds = %2383
  %2390 = load i8, ptr %15, align 1, !tbaa !5, !range !20, !noundef !21
  %2391 = trunc i8 %2390 to i1
  br i1 %2391, label %2415, label %2392

2392:                                             ; preds = %2389
  %2393 = load double, ptr %54, align 8, !tbaa !13
  %2394 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %2395 = load ptr, ptr %2394, align 8, !tbaa !15
  %2396 = load i64, ptr %28, align 8, !tbaa !11
  %2397 = getelementptr inbounds double, ptr %2395, i64 %2396
  %2398 = load double, ptr %2397, align 8, !tbaa !13
  %2399 = load ptr, ptr %4, align 8, !tbaa !9
  %2400 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2398, ptr noundef %2399)
  %2401 = load double, ptr %55, align 8, !tbaa !13
  %2402 = call double @llvm.fmuladd.f64(double %2393, double %2400, double %2401)
  %2403 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %2404 = load ptr, ptr %2403, align 8, !tbaa !15
  %2405 = load i64, ptr %28, align 8, !tbaa !11
  %2406 = getelementptr inbounds double, ptr %2404, i64 %2405
  %2407 = load double, ptr %2406, align 8, !tbaa !13
  %2408 = load ptr, ptr %4, align 8, !tbaa !9
  %2409 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %48, double noundef %2407, ptr noundef %2408)
  %2410 = fsub double %2402, %2409
  %2411 = load ptr, ptr %4, align 8, !tbaa !9
  %2412 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2410, ptr noundef %2411)
  %2413 = load double, ptr %19, align 8, !tbaa !13
  %2414 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2412, double noundef %2413)
  br label %2415

2415:                                             ; preds = %2392, %2389
  %2416 = phi i1 [ true, %2389 ], [ %2414, %2392 ]
  %2417 = zext i1 %2416 to i8
  store i8 %2417, ptr %15, align 1, !tbaa !5
  br label %2418

2418:                                             ; preds = %2415
  %2419 = load i64, ptr %28, align 8, !tbaa !11
  %2420 = add nsw i64 %2419, 1
  store i64 %2420, ptr %28, align 8, !tbaa !11
  br label %2383, !llvm.loop !60

2421:                                             ; preds = %2383
  br label %2280, !llvm.loop !61

2422:                                             ; preds = %2280
  br label %2423

2423:                                             ; preds = %2422
  %2424 = load i64, ptr %27, align 8, !tbaa !11
  %2425 = add nsw i64 %2424, 1
  store i64 %2425, ptr %27, align 8, !tbaa !11
  br label %2195, !llvm.loop !62

2426:                                             ; preds = %2195
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 20, ptr %27, align 8, !tbaa !11
  br label %2427

2427:                                             ; preds = %2560, %2426
  %2428 = load i64, ptr %27, align 8, !tbaa !11
  %2429 = icmp sle i64 %2428, 35
  br i1 %2429, label %2430, label %2563

2430:                                             ; preds = %2427
  %2431 = load i64, ptr %27, align 8, !tbaa !11
  %2432 = sub nsw i64 %2431, 1
  %2433 = add nsw i64 %2432, 1
  %2434 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %2433, ptr noundef %2434)
  %2435 = load i64, ptr %27, align 8, !tbaa !11
  %2436 = sub nsw i64 %2435, 1
  %2437 = add nsw i64 %2436, 1
  %2438 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %2437, ptr noundef %2438)
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %2439

2439:                                             ; preds = %2556, %2430
  %2440 = load i64, ptr %30, align 8, !tbaa !11
  %2441 = load i64, ptr %20, align 8, !tbaa !11
  %2442 = icmp sle i64 %2440, %2441
  br i1 %2442, label %2443, label %2559

2443:                                             ; preds = %2439
  %2444 = load ptr, ptr %4, align 8, !tbaa !9
  %2445 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2444)
  %2446 = call double @llvm.fmuladd.f64(double -2.000000e-01, double %2445, double -1.000000e+00)
  store double %2446, ptr %49, align 8, !tbaa !13
  %2447 = load ptr, ptr %4, align 8, !tbaa !9
  %2448 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2447)
  %2449 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %2448, double 1.000000e+00)
  store double %2449, ptr %50, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %2450

2450:                                             ; preds = %2492, %2443
  %2451 = load i64, ptr %28, align 8, !tbaa !11
  %2452 = load i64, ptr %27, align 8, !tbaa !11
  %2453 = sub nsw i64 %2452, 1
  %2454 = icmp sle i64 %2451, %2453
  br i1 %2454, label %2455, label %2495

2455:                                             ; preds = %2450
  %2456 = load double, ptr %49, align 8, !tbaa !13
  %2457 = load double, ptr %50, align 8, !tbaa !13
  %2458 = load double, ptr %49, align 8, !tbaa !13
  %2459 = fsub double %2457, %2458
  %2460 = load i64, ptr %28, align 8, !tbaa !11
  %2461 = sitofp i64 %2460 to double
  %2462 = fmul double %2459, %2461
  %2463 = load i64, ptr %27, align 8, !tbaa !11
  %2464 = sub nsw i64 %2463, 1
  %2465 = sitofp i64 %2464 to double
  %2466 = fdiv double %2462, %2465
  %2467 = fadd double %2456, %2466
  %2468 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2469 = load ptr, ptr %2468, align 8, !tbaa !15
  %2470 = load i64, ptr %28, align 8, !tbaa !11
  %2471 = getelementptr inbounds double, ptr %2469, i64 %2470
  store double %2467, ptr %2471, align 8, !tbaa !13
  %2472 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2473 = load ptr, ptr %2472, align 8, !tbaa !15
  %2474 = load i64, ptr %28, align 8, !tbaa !11
  %2475 = getelementptr inbounds double, ptr %2473, i64 %2474
  %2476 = load double, ptr %2475, align 8, !tbaa !13
  %2477 = call double @llvm.fmuladd.f64(double 0x400921FB54442D18, double %2476, double 4.000000e-01)
  %2478 = load ptr, ptr %4, align 8, !tbaa !9
  %2479 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %2477, ptr noundef %2478)
  %2480 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2481 = load ptr, ptr %2480, align 8, !tbaa !15
  %2482 = load i64, ptr %28, align 8, !tbaa !11
  %2483 = getelementptr inbounds double, ptr %2481, i64 %2482
  %2484 = load double, ptr %2483, align 8, !tbaa !13
  %2485 = load ptr, ptr %4, align 8, !tbaa !9
  %2486 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %2484, ptr noundef %2485)
  %2487 = fadd double %2479, %2486
  %2488 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %2489 = load ptr, ptr %2488, align 8, !tbaa !15
  %2490 = load i64, ptr %28, align 8, !tbaa !11
  %2491 = getelementptr inbounds double, ptr %2489, i64 %2490
  store double %2487, ptr %2491, align 8, !tbaa !13
  br label %2492

2492:                                             ; preds = %2455
  %2493 = load i64, ptr %28, align 8, !tbaa !11
  %2494 = add nsw i64 %2493, 1
  store i64 %2494, ptr %28, align 8, !tbaa !11
  br label %2450, !llvm.loop !63

2495:                                             ; preds = %2450
  %2496 = load double, ptr %49, align 8, !tbaa !13
  %2497 = call double @llvm.fmuladd.f64(double 0x400921FB54442D18, double %2496, double 4.000000e-01)
  %2498 = load ptr, ptr %4, align 8, !tbaa !9
  %2499 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %2497, ptr noundef %2498)
  %2500 = load double, ptr %49, align 8, !tbaa !13
  %2501 = load ptr, ptr %4, align 8, !tbaa !9
  %2502 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %2500, ptr noundef %2501)
  %2503 = call double @llvm.fmuladd.f64(double 0x400921FB54442D18, double %2499, double %2502)
  store double %2503, ptr %51, align 8, !tbaa !13
  %2504 = load double, ptr %50, align 8, !tbaa !13
  %2505 = call double @llvm.fmuladd.f64(double 0x400921FB54442D18, double %2504, double 4.000000e-01)
  %2506 = load ptr, ptr %4, align 8, !tbaa !9
  %2507 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %2505, ptr noundef %2506)
  %2508 = load double, ptr %50, align 8, !tbaa !13
  %2509 = load ptr, ptr %4, align 8, !tbaa !9
  %2510 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %2508, ptr noundef %2509)
  %2511 = call double @llvm.fmuladd.f64(double 0x400921FB54442D18, double %2507, double %2510)
  store double %2511, ptr %52, align 8, !tbaa !13
  %2512 = load i64, ptr %27, align 8, !tbaa !11
  %2513 = load double, ptr %51, align 8, !tbaa !13
  %2514 = load double, ptr %52, align 8, !tbaa !13
  %2515 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %2512, i64 noundef 1, double noundef %2513, i64 noundef 1, double noundef %2514, ptr noundef %47, ptr noundef %2515)
  %2516 = load double, ptr %49, align 8, !tbaa !13
  %2517 = load double, ptr %50, align 8, !tbaa !13
  %2518 = load double, ptr %49, align 8, !tbaa !13
  %2519 = fsub double %2517, %2518
  %2520 = load ptr, ptr %4, align 8, !tbaa !9
  %2521 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2520)
  %2522 = call double @llvm.fmuladd.f64(double %2519, double %2521, double %2516)
  store double %2522, ptr %53, align 8, !tbaa !13
  %2523 = load double, ptr %49, align 8, !tbaa !13
  %2524 = call double @llvm.fmuladd.f64(double 0x400921FB54442D18, double %2523, double 4.000000e-01)
  %2525 = load ptr, ptr %4, align 8, !tbaa !9
  %2526 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %2524, ptr noundef %2525)
  %2527 = fneg double %2526
  %2528 = fdiv double %2527, 0x400921FB54442D18
  %2529 = load double, ptr %49, align 8, !tbaa !13
  %2530 = load ptr, ptr %4, align 8, !tbaa !9
  %2531 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %2529, ptr noundef %2530)
  %2532 = fadd double %2528, %2531
  store double %2532, ptr %56, align 8, !tbaa !13
  %2533 = load double, ptr %53, align 8, !tbaa !13
  %2534 = call double @llvm.fmuladd.f64(double 0x400921FB54442D18, double %2533, double 4.000000e-01)
  %2535 = load ptr, ptr %4, align 8, !tbaa !9
  %2536 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %2534, ptr noundef %2535)
  %2537 = fneg double %2536
  %2538 = fdiv double %2537, 0x400921FB54442D18
  %2539 = load double, ptr %53, align 8, !tbaa !13
  %2540 = load ptr, ptr %4, align 8, !tbaa !9
  %2541 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %2539, ptr noundef %2540)
  %2542 = fadd double %2538, %2541
  %2543 = load double, ptr %56, align 8, !tbaa !13
  %2544 = fsub double %2542, %2543
  store double %2544, ptr %56, align 8, !tbaa !13
  %2545 = load double, ptr %56, align 8, !tbaa !13
  %2546 = load double, ptr %53, align 8, !tbaa !13
  %2547 = load ptr, ptr %4, align 8, !tbaa !9
  %2548 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2546, ptr noundef %2547)
  %2549 = fsub double %2545, %2548
  store double %2549, ptr %56, align 8, !tbaa !13
  %2550 = load double, ptr %75, align 8, !tbaa !13
  %2551 = load double, ptr %56, align 8, !tbaa !13
  %2552 = load ptr, ptr %4, align 8, !tbaa !9
  %2553 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2551, ptr noundef %2552)
  %2554 = load ptr, ptr %4, align 8, !tbaa !9
  %2555 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %2550, double noundef %2553, ptr noundef %2554)
  store double %2555, ptr %75, align 8, !tbaa !13
  br label %2556

2556:                                             ; preds = %2495
  %2557 = load i64, ptr %30, align 8, !tbaa !11
  %2558 = add nsw i64 %2557, 1
  store i64 %2558, ptr %30, align 8, !tbaa !11
  br label %2439, !llvm.loop !64

2559:                                             ; preds = %2439
  br label %2560

2560:                                             ; preds = %2559
  %2561 = load i64, ptr %27, align 8, !tbaa !11
  %2562 = add nsw i64 %2561, 1
  store i64 %2562, ptr %27, align 8, !tbaa !11
  br label %2427, !llvm.loop !65

2563:                                             ; preds = %2427
  %2564 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %2565 = trunc i8 %2564 to i1
  br i1 %2565, label %2569, label %2566

2566:                                             ; preds = %2563
  %2567 = load double, ptr %75, align 8, !tbaa !13
  %2568 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2567, double noundef 1.000000e-03)
  br label %2569

2569:                                             ; preds = %2566, %2563
  %2570 = phi i1 [ true, %2563 ], [ %2568, %2566 ]
  %2571 = zext i1 %2570 to i8
  store i8 %2571, ptr %16, align 1, !tbaa !5
  %2572 = load ptr, ptr %4, align 8, !tbaa !9
  %2573 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2572)
  %2574 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %2573, double -1.000000e+00)
  store double %2574, ptr %63, align 8, !tbaa !13
  %2575 = load ptr, ptr %4, align 8, !tbaa !9
  %2576 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2575)
  %2577 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %2576, double -1.000000e+00)
  store double %2577, ptr %64, align 8, !tbaa !13
  %2578 = load ptr, ptr %4, align 8, !tbaa !9
  %2579 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2578)
  %2580 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %2579, double -1.000000e+00)
  store double %2580, ptr %65, align 8, !tbaa !13
  %2581 = load ptr, ptr %4, align 8, !tbaa !9
  %2582 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2581)
  %2583 = fneg double %2582
  %2584 = fsub double %2583, 5.000000e-01
  store double %2584, ptr %49, align 8, !tbaa !13
  %2585 = load ptr, ptr %4, align 8, !tbaa !9
  %2586 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2585)
  %2587 = fadd double %2586, 5.000000e-01
  store double %2587, ptr %50, align 8, !tbaa !13
  store i64 2, ptr %27, align 8, !tbaa !11
  %2588 = load i64, ptr %27, align 8, !tbaa !11
  %2589 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %2588, ptr noundef %2589)
  %2590 = load i64, ptr %27, align 8, !tbaa !11
  %2591 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %2590, ptr noundef %2591)
  %2592 = load i64, ptr %27, align 8, !tbaa !11
  %2593 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %37, i64 noundef %2592, ptr noundef %2593)
  %2594 = load double, ptr %49, align 8, !tbaa !13
  %2595 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2596 = load ptr, ptr %2595, align 8, !tbaa !15
  %2597 = getelementptr inbounds double, ptr %2596, i64 0
  store double %2594, ptr %2597, align 8, !tbaa !13
  %2598 = load double, ptr %63, align 8, !tbaa !13
  %2599 = load double, ptr %64, align 8, !tbaa !13
  %2600 = load double, ptr %49, align 8, !tbaa !13
  %2601 = call double @llvm.fmuladd.f64(double %2599, double %2600, double %2598)
  %2602 = load double, ptr %65, align 8, !tbaa !13
  %2603 = load double, ptr %49, align 8, !tbaa !13
  %2604 = load ptr, ptr %4, align 8, !tbaa !9
  %2605 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %2603, ptr noundef %2604)
  %2606 = call double @llvm.fmuladd.f64(double %2602, double %2605, double %2601)
  %2607 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %2608 = load ptr, ptr %2607, align 8, !tbaa !15
  %2609 = getelementptr inbounds double, ptr %2608, i64 0
  store double %2606, ptr %2609, align 8, !tbaa !13
  %2610 = load double, ptr %64, align 8, !tbaa !13
  %2611 = load double, ptr %65, align 8, !tbaa !13
  %2612 = fmul double 2.000000e+00, %2611
  %2613 = load double, ptr %49, align 8, !tbaa !13
  %2614 = call double @llvm.fmuladd.f64(double %2612, double %2613, double %2610)
  %2615 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %2616 = load ptr, ptr %2615, align 8, !tbaa !15
  %2617 = getelementptr inbounds double, ptr %2616, i64 0
  store double %2614, ptr %2617, align 8, !tbaa !13
  %2618 = load double, ptr %50, align 8, !tbaa !13
  %2619 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2620 = load ptr, ptr %2619, align 8, !tbaa !15
  %2621 = getelementptr inbounds double, ptr %2620, i64 1
  store double %2618, ptr %2621, align 8, !tbaa !13
  %2622 = load double, ptr %63, align 8, !tbaa !13
  %2623 = load double, ptr %64, align 8, !tbaa !13
  %2624 = load double, ptr %50, align 8, !tbaa !13
  %2625 = call double @llvm.fmuladd.f64(double %2623, double %2624, double %2622)
  %2626 = load double, ptr %65, align 8, !tbaa !13
  %2627 = load double, ptr %50, align 8, !tbaa !13
  %2628 = load ptr, ptr %4, align 8, !tbaa !9
  %2629 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %2627, ptr noundef %2628)
  %2630 = call double @llvm.fmuladd.f64(double %2626, double %2629, double %2625)
  %2631 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %2632 = load ptr, ptr %2631, align 8, !tbaa !15
  %2633 = getelementptr inbounds double, ptr %2632, i64 1
  store double %2630, ptr %2633, align 8, !tbaa !13
  %2634 = load double, ptr %64, align 8, !tbaa !13
  %2635 = load double, ptr %65, align 8, !tbaa !13
  %2636 = fmul double 2.000000e+00, %2635
  %2637 = load double, ptr %50, align 8, !tbaa !13
  %2638 = call double @llvm.fmuladd.f64(double %2636, double %2637, double %2634)
  %2639 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %2640 = load ptr, ptr %2639, align 8, !tbaa !15
  %2641 = getelementptr inbounds double, ptr %2640, i64 1
  store double %2638, ptr %2641, align 8, !tbaa !13
  %2642 = load i64, ptr %27, align 8, !tbaa !11
  %2643 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20spline1dbuildhermiteEPNS_9ae_vectorES1_S1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, ptr noundef %37, i64 noundef %2642, ptr noundef %47, ptr noundef %2643)
  %2644 = load double, ptr %49, align 8, !tbaa !13
  %2645 = load double, ptr %50, align 8, !tbaa !13
  %2646 = load ptr, ptr %4, align 8, !tbaa !9
  %2647 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %2644, double noundef %2645, ptr noundef %2646)
  %2648 = load double, ptr %50, align 8, !tbaa !13
  %2649 = load double, ptr %49, align 8, !tbaa !13
  %2650 = fsub double %2648, %2649
  %2651 = load ptr, ptr %4, align 8, !tbaa !9
  %2652 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2650, ptr noundef %2651)
  %2653 = fsub double %2647, %2652
  store double %2653, ptr %51, align 8, !tbaa !13
  %2654 = load double, ptr %49, align 8, !tbaa !13
  %2655 = load double, ptr %50, align 8, !tbaa !13
  %2656 = load ptr, ptr %4, align 8, !tbaa !9
  %2657 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %2654, double noundef %2655, ptr noundef %2656)
  %2658 = load double, ptr %50, align 8, !tbaa !13
  %2659 = load double, ptr %49, align 8, !tbaa !13
  %2660 = fsub double %2658, %2659
  %2661 = load ptr, ptr %4, align 8, !tbaa !9
  %2662 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2660, ptr noundef %2661)
  %2663 = fadd double %2657, %2662
  store double %2663, ptr %52, align 8, !tbaa !13
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %2664

2664:                                             ; preds = %2723, %2569
  %2665 = load i64, ptr %30, align 8, !tbaa !11
  %2666 = icmp sle i64 %2665, 100
  br i1 %2666, label %2667, label %2726

2667:                                             ; preds = %2664
  %2668 = load double, ptr %51, align 8, !tbaa !13
  %2669 = load double, ptr %52, align 8, !tbaa !13
  %2670 = load double, ptr %51, align 8, !tbaa !13
  %2671 = fsub double %2669, %2670
  %2672 = load ptr, ptr %4, align 8, !tbaa !9
  %2673 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2672)
  %2674 = call double @llvm.fmuladd.f64(double %2671, double %2673, double %2668)
  store double %2674, ptr %53, align 8, !tbaa !13
  %2675 = load double, ptr %63, align 8, !tbaa !13
  %2676 = load double, ptr %53, align 8, !tbaa !13
  %2677 = load double, ptr %64, align 8, !tbaa !13
  %2678 = load double, ptr %53, align 8, !tbaa !13
  %2679 = load ptr, ptr %4, align 8, !tbaa !9
  %2680 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %2678, ptr noundef %2679)
  %2681 = fmul double %2677, %2680
  %2682 = fdiv double %2681, 2.000000e+00
  %2683 = call double @llvm.fmuladd.f64(double %2675, double %2676, double %2682)
  %2684 = load double, ptr %65, align 8, !tbaa !13
  %2685 = load double, ptr %53, align 8, !tbaa !13
  %2686 = load ptr, ptr %4, align 8, !tbaa !9
  %2687 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %2685, ptr noundef %2686)
  %2688 = fmul double %2684, %2687
  %2689 = load double, ptr %53, align 8, !tbaa !13
  %2690 = fmul double %2688, %2689
  %2691 = fdiv double %2690, 3.000000e+00
  %2692 = fadd double %2683, %2691
  %2693 = load double, ptr %63, align 8, !tbaa !13
  %2694 = load double, ptr %49, align 8, !tbaa !13
  %2695 = load double, ptr %64, align 8, !tbaa !13
  %2696 = load double, ptr %49, align 8, !tbaa !13
  %2697 = load ptr, ptr %4, align 8, !tbaa !9
  %2698 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %2696, ptr noundef %2697)
  %2699 = fmul double %2695, %2698
  %2700 = fdiv double %2699, 2.000000e+00
  %2701 = call double @llvm.fmuladd.f64(double %2693, double %2694, double %2700)
  %2702 = load double, ptr %65, align 8, !tbaa !13
  %2703 = load double, ptr %49, align 8, !tbaa !13
  %2704 = load ptr, ptr %4, align 8, !tbaa !9
  %2705 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %2703, ptr noundef %2704)
  %2706 = fmul double %2702, %2705
  %2707 = load double, ptr %49, align 8, !tbaa !13
  %2708 = fmul double %2706, %2707
  %2709 = fdiv double %2708, 3.000000e+00
  %2710 = fadd double %2701, %2709
  %2711 = fsub double %2692, %2710
  store double %2711, ptr %56, align 8, !tbaa !13
  %2712 = load double, ptr %56, align 8, !tbaa !13
  %2713 = load double, ptr %53, align 8, !tbaa !13
  %2714 = load ptr, ptr %4, align 8, !tbaa !9
  %2715 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2713, ptr noundef %2714)
  %2716 = fsub double %2712, %2715
  store double %2716, ptr %56, align 8, !tbaa !13
  %2717 = load double, ptr %75, align 8, !tbaa !13
  %2718 = load double, ptr %56, align 8, !tbaa !13
  %2719 = load ptr, ptr %4, align 8, !tbaa !9
  %2720 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2718, ptr noundef %2719)
  %2721 = load ptr, ptr %4, align 8, !tbaa !9
  %2722 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %2717, double noundef %2720, ptr noundef %2721)
  store double %2722, ptr %75, align 8, !tbaa !13
  br label %2723

2723:                                             ; preds = %2667
  %2724 = load i64, ptr %30, align 8, !tbaa !11
  %2725 = add nsw i64 %2724, 1
  store i64 %2725, ptr %30, align 8, !tbaa !11
  br label %2664, !llvm.loop !66

2726:                                             ; preds = %2664
  %2727 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %2728 = trunc i8 %2727 to i1
  br i1 %2728, label %2733, label %2729

2729:                                             ; preds = %2726
  %2730 = load double, ptr %75, align 8, !tbaa !13
  %2731 = load double, ptr %19, align 8, !tbaa !13
  %2732 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2730, double noundef %2731)
  br label %2733

2733:                                             ; preds = %2729, %2726
  %2734 = phi i1 [ true, %2726 ], [ %2732, %2729 ]
  %2735 = zext i1 %2734 to i8
  store i8 %2735, ptr %16, align 1, !tbaa !5
  store i64 100, ptr %27, align 8, !tbaa !11
  %2736 = load i64, ptr %27, align 8, !tbaa !11
  %2737 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %2736, ptr noundef %2737)
  %2738 = load i64, ptr %27, align 8, !tbaa !11
  %2739 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %2738, ptr noundef %2739)
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %2740

2740:                                             ; preds = %2769, %2733
  %2741 = load i64, ptr %28, align 8, !tbaa !11
  %2742 = load i64, ptr %27, align 8, !tbaa !11
  %2743 = sub nsw i64 %2742, 1
  %2744 = icmp sle i64 %2741, %2743
  br i1 %2744, label %2745, label %2772

2745:                                             ; preds = %2740
  %2746 = load i64, ptr %28, align 8, !tbaa !11
  %2747 = sitofp i64 %2746 to double
  %2748 = load i64, ptr %27, align 8, !tbaa !11
  %2749 = sub nsw i64 %2748, 1
  %2750 = sitofp i64 %2749 to double
  %2751 = fdiv double %2747, %2750
  %2752 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2753 = load ptr, ptr %2752, align 8, !tbaa !15
  %2754 = load i64, ptr %28, align 8, !tbaa !11
  %2755 = getelementptr inbounds double, ptr %2753, i64 %2754
  store double %2751, ptr %2755, align 8, !tbaa !13
  %2756 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2757 = load ptr, ptr %2756, align 8, !tbaa !15
  %2758 = load i64, ptr %28, align 8, !tbaa !11
  %2759 = getelementptr inbounds double, ptr %2757, i64 %2758
  %2760 = load double, ptr %2759, align 8, !tbaa !13
  %2761 = fmul double 0x401921FB54442D18, %2760
  %2762 = load ptr, ptr %4, align 8, !tbaa !9
  %2763 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %2761, ptr noundef %2762)
  %2764 = fadd double %2763, 1.000000e+00
  %2765 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %2766 = load ptr, ptr %2765, align 8, !tbaa !15
  %2767 = load i64, ptr %28, align 8, !tbaa !11
  %2768 = getelementptr inbounds double, ptr %2766, i64 %2767
  store double %2764, ptr %2768, align 8, !tbaa !13
  br label %2769

2769:                                             ; preds = %2745
  %2770 = load i64, ptr %28, align 8, !tbaa !11
  %2771 = add nsw i64 %2770, 1
  store i64 %2771, ptr %28, align 8, !tbaa !11
  br label %2740, !llvm.loop !67

2772:                                             ; preds = %2740
  %2773 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %2774 = load ptr, ptr %2773, align 8, !tbaa !15
  %2775 = getelementptr inbounds double, ptr %2774, i64 0
  store double 2.000000e+00, ptr %2775, align 8, !tbaa !13
  %2776 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %2777 = load ptr, ptr %2776, align 8, !tbaa !15
  %2778 = load i64, ptr %27, align 8, !tbaa !11
  %2779 = sub nsw i64 %2778, 1
  %2780 = getelementptr inbounds double, ptr %2777, i64 %2779
  store double 2.000000e+00, ptr %2780, align 8, !tbaa !13
  %2781 = load i64, ptr %27, align 8, !tbaa !11
  %2782 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %2781, i64 noundef -1, double noundef 0.000000e+00, i64 noundef -1, double noundef 0.000000e+00, ptr noundef %47, ptr noundef %2782)
  %2783 = load ptr, ptr %4, align 8, !tbaa !9
  %2784 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef 1.000000e+00, ptr noundef %2783)
  store double %2784, ptr %77, align 8, !tbaa !13
  %2785 = load ptr, ptr %4, align 8, !tbaa !9
  %2786 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2785)
  store double %2786, ptr %56, align 8, !tbaa !13
  %2787 = load double, ptr %56, align 8, !tbaa !13
  %2788 = load ptr, ptr %4, align 8, !tbaa !9
  %2789 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2787, ptr noundef %2788)
  store double %2789, ptr %74, align 8, !tbaa !13
  %2790 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %2791 = trunc i8 %2790 to i1
  br i1 %2791, label %2798, label %2792

2792:                                             ; preds = %2772
  %2793 = load double, ptr %77, align 8, !tbaa !13
  %2794 = fsub double %2793, 1.000000e+00
  %2795 = load ptr, ptr %4, align 8, !tbaa !9
  %2796 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2794, ptr noundef %2795)
  %2797 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2796, double noundef 1.000000e-03)
  br label %2798

2798:                                             ; preds = %2792, %2772
  %2799 = phi i1 [ true, %2772 ], [ %2797, %2792 ]
  %2800 = zext i1 %2799 to i8
  store i8 %2800, ptr %16, align 1, !tbaa !5
  store i64 -10, ptr %28, align 8, !tbaa !11
  br label %2801

2801:                                             ; preds = %2882, %2798
  %2802 = load i64, ptr %28, align 8, !tbaa !11
  %2803 = icmp sle i64 %2802, 10
  br i1 %2803, label %2804, label %2885

2804:                                             ; preds = %2801
  %2805 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %2806 = trunc i8 %2805 to i1
  br i1 %2806, label %2823, label %2807

2807:                                             ; preds = %2804
  %2808 = load i64, ptr %28, align 8, !tbaa !11
  %2809 = sitofp i64 %2808 to double
  %2810 = load double, ptr %56, align 8, !tbaa !13
  %2811 = fadd double %2809, %2810
  %2812 = load ptr, ptr %4, align 8, !tbaa !9
  %2813 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2811, ptr noundef %2812)
  %2814 = load i64, ptr %28, align 8, !tbaa !11
  %2815 = sitofp i64 %2814 to double
  %2816 = load double, ptr %77, align 8, !tbaa !13
  %2817 = load double, ptr %74, align 8, !tbaa !13
  %2818 = call double @llvm.fmuladd.f64(double %2815, double %2816, double %2817)
  %2819 = fsub double %2813, %2818
  %2820 = load ptr, ptr %4, align 8, !tbaa !9
  %2821 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2819, ptr noundef %2820)
  %2822 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2821, double noundef 1.000000e-03)
  br label %2823

2823:                                             ; preds = %2807, %2804
  %2824 = phi i1 [ true, %2804 ], [ %2822, %2807 ]
  %2825 = zext i1 %2824 to i8
  store i8 %2825, ptr %16, align 1, !tbaa !5
  %2826 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %2827 = trunc i8 %2826 to i1
  br i1 %2827, label %2842, label %2828

2828:                                             ; preds = %2823
  %2829 = load i64, ptr %28, align 8, !tbaa !11
  %2830 = sitofp i64 %2829 to double
  %2831 = fsub double %2830, 5.000000e-13
  %2832 = load ptr, ptr %4, align 8, !tbaa !9
  %2833 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2831, ptr noundef %2832)
  %2834 = load i64, ptr %28, align 8, !tbaa !11
  %2835 = sitofp i64 %2834 to double
  %2836 = load double, ptr %77, align 8, !tbaa !13
  %2837 = fneg double %2835
  %2838 = call double @llvm.fmuladd.f64(double %2837, double %2836, double %2833)
  %2839 = load ptr, ptr %4, align 8, !tbaa !9
  %2840 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2838, ptr noundef %2839)
  %2841 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2840, double noundef 1.000000e-03)
  br label %2842

2842:                                             ; preds = %2828, %2823
  %2843 = phi i1 [ true, %2823 ], [ %2841, %2828 ]
  %2844 = zext i1 %2843 to i8
  store i8 %2844, ptr %16, align 1, !tbaa !5
  %2845 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %2846 = trunc i8 %2845 to i1
  br i1 %2846, label %2860, label %2847

2847:                                             ; preds = %2842
  %2848 = load i64, ptr %28, align 8, !tbaa !11
  %2849 = sitofp i64 %2848 to double
  %2850 = load ptr, ptr %4, align 8, !tbaa !9
  %2851 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2849, ptr noundef %2850)
  %2852 = load i64, ptr %28, align 8, !tbaa !11
  %2853 = sitofp i64 %2852 to double
  %2854 = load double, ptr %77, align 8, !tbaa !13
  %2855 = fneg double %2853
  %2856 = call double @llvm.fmuladd.f64(double %2855, double %2854, double %2851)
  %2857 = load ptr, ptr %4, align 8, !tbaa !9
  %2858 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2856, ptr noundef %2857)
  %2859 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2858, double noundef 1.000000e-03)
  br label %2860

2860:                                             ; preds = %2847, %2842
  %2861 = phi i1 [ true, %2842 ], [ %2859, %2847 ]
  %2862 = zext i1 %2861 to i8
  store i8 %2862, ptr %16, align 1, !tbaa !5
  %2863 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %2864 = trunc i8 %2863 to i1
  br i1 %2864, label %2879, label %2865

2865:                                             ; preds = %2860
  %2866 = load i64, ptr %28, align 8, !tbaa !11
  %2867 = sitofp i64 %2866 to double
  %2868 = fadd double %2867, 5.000000e-13
  %2869 = load ptr, ptr %4, align 8, !tbaa !9
  %2870 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2868, ptr noundef %2869)
  %2871 = load i64, ptr %28, align 8, !tbaa !11
  %2872 = sitofp i64 %2871 to double
  %2873 = load double, ptr %77, align 8, !tbaa !13
  %2874 = fneg double %2872
  %2875 = call double @llvm.fmuladd.f64(double %2874, double %2873, double %2870)
  %2876 = load ptr, ptr %4, align 8, !tbaa !9
  %2877 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2875, ptr noundef %2876)
  %2878 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2877, double noundef 1.000000e-03)
  br label %2879

2879:                                             ; preds = %2865, %2860
  %2880 = phi i1 [ true, %2860 ], [ %2878, %2865 ]
  %2881 = zext i1 %2880 to i8
  store i8 %2881, ptr %16, align 1, !tbaa !5
  br label %2882

2882:                                             ; preds = %2879
  %2883 = load i64, ptr %28, align 8, !tbaa !11
  %2884 = add nsw i64 %2883, 1
  store i64 %2884, ptr %28, align 8, !tbaa !11
  br label %2801, !llvm.loop !68

2885:                                             ; preds = %2801
  %2886 = load ptr, ptr %4, align 8, !tbaa !9
  %2887 = call noundef zeroext i1 @_ZL35testspline1dunit_testmonotonesplinePN11alglib_impl8ae_stateE(ptr noundef %2886)
  %2888 = zext i1 %2887 to i8
  store i8 %2888, ptr %17, align 1, !tbaa !5
  %2889 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL34testspline1dunit_testsplinefittingPbPN11alglib_impl8ae_stateE(ptr noundef %18, ptr noundef %2889)
  %2890 = load i8, ptr %11, align 1, !tbaa !5, !range !20, !noundef !21
  %2891 = trunc i8 %2890 to i1
  br i1 %2891, label %2925, label %2892

2892:                                             ; preds = %2885
  %2893 = load i8, ptr %8, align 1, !tbaa !5, !range !20, !noundef !21
  %2894 = trunc i8 %2893 to i1
  br i1 %2894, label %2925, label %2895

2895:                                             ; preds = %2892
  %2896 = load i8, ptr %7, align 1, !tbaa !5, !range !20, !noundef !21
  %2897 = trunc i8 %2896 to i1
  br i1 %2897, label %2925, label %2898

2898:                                             ; preds = %2895
  %2899 = load i8, ptr %9, align 1, !tbaa !5, !range !20, !noundef !21
  %2900 = trunc i8 %2899 to i1
  br i1 %2900, label %2925, label %2901

2901:                                             ; preds = %2898
  %2902 = load i8, ptr %10, align 1, !tbaa !5, !range !20, !noundef !21
  %2903 = trunc i8 %2902 to i1
  br i1 %2903, label %2925, label %2904

2904:                                             ; preds = %2901
  %2905 = load i8, ptr %12, align 1, !tbaa !5, !range !20, !noundef !21
  %2906 = trunc i8 %2905 to i1
  br i1 %2906, label %2925, label %2907

2907:                                             ; preds = %2904
  %2908 = load i8, ptr %14, align 1, !tbaa !5, !range !20, !noundef !21
  %2909 = trunc i8 %2908 to i1
  br i1 %2909, label %2925, label %2910

2910:                                             ; preds = %2907
  %2911 = load i8, ptr %13, align 1, !tbaa !5, !range !20, !noundef !21
  %2912 = trunc i8 %2911 to i1
  br i1 %2912, label %2925, label %2913

2913:                                             ; preds = %2910
  %2914 = load i8, ptr %15, align 1, !tbaa !5, !range !20, !noundef !21
  %2915 = trunc i8 %2914 to i1
  br i1 %2915, label %2925, label %2916

2916:                                             ; preds = %2913
  %2917 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %2918 = trunc i8 %2917 to i1
  br i1 %2918, label %2925, label %2919

2919:                                             ; preds = %2916
  %2920 = load i8, ptr %17, align 1, !tbaa !5, !range !20, !noundef !21
  %2921 = trunc i8 %2920 to i1
  br i1 %2921, label %2925, label %2922

2922:                                             ; preds = %2919
  %2923 = load i8, ptr %18, align 1, !tbaa !5, !range !20, !noundef !21
  %2924 = trunc i8 %2923 to i1
  br label %2925

2925:                                             ; preds = %2922, %2919, %2916, %2913, %2910, %2907, %2904, %2901, %2898, %2895, %2892, %2885
  %2926 = phi i1 [ true, %2919 ], [ true, %2916 ], [ true, %2913 ], [ true, %2910 ], [ true, %2907 ], [ true, %2904 ], [ true, %2901 ], [ true, %2898 ], [ true, %2895 ], [ true, %2892 ], [ true, %2885 ], [ %2924, %2922 ]
  %2927 = zext i1 %2926 to i8
  store i8 %2927, ptr %6, align 1, !tbaa !5
  %2928 = load i8, ptr %3, align 1, !tbaa !5, !range !20, !noundef !21
  %2929 = trunc i8 %2928 to i1
  br i1 %2929, label %3037, label %2930

2930:                                             ; preds = %2925
  %2931 = call i32 (ptr, ...) @printf(ptr noundef @.str.617)
  %2932 = call i32 (ptr, ...) @printf(ptr noundef @.str.618)
  %2933 = call i32 (ptr, ...) @printf(ptr noundef @.str.619)
  %2934 = load i8, ptr %11, align 1, !tbaa !5, !range !20, !noundef !21
  %2935 = trunc i8 %2934 to i1
  br i1 %2935, label %2936, label %2938

2936:                                             ; preds = %2930
  %2937 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %2940

2938:                                             ; preds = %2930
  %2939 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %2940

2940:                                             ; preds = %2938, %2936
  %2941 = call i32 (ptr, ...) @printf(ptr noundef @.str.620)
  %2942 = load i8, ptr %8, align 1, !tbaa !5, !range !20, !noundef !21
  %2943 = trunc i8 %2942 to i1
  br i1 %2943, label %2944, label %2946

2944:                                             ; preds = %2940
  %2945 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %2948

2946:                                             ; preds = %2940
  %2947 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %2948

2948:                                             ; preds = %2946, %2944
  %2949 = call i32 (ptr, ...) @printf(ptr noundef @.str.621)
  %2950 = load i8, ptr %7, align 1, !tbaa !5, !range !20, !noundef !21
  %2951 = trunc i8 %2950 to i1
  br i1 %2951, label %2952, label %2954

2952:                                             ; preds = %2948
  %2953 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %2956

2954:                                             ; preds = %2948
  %2955 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %2956

2956:                                             ; preds = %2954, %2952
  %2957 = call i32 (ptr, ...) @printf(ptr noundef @.str.622)
  %2958 = load i8, ptr %9, align 1, !tbaa !5, !range !20, !noundef !21
  %2959 = trunc i8 %2958 to i1
  br i1 %2959, label %2960, label %2962

2960:                                             ; preds = %2956
  %2961 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %2964

2962:                                             ; preds = %2956
  %2963 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %2964

2964:                                             ; preds = %2962, %2960
  %2965 = call i32 (ptr, ...) @printf(ptr noundef @.str.623)
  %2966 = load i8, ptr %10, align 1, !tbaa !5, !range !20, !noundef !21
  %2967 = trunc i8 %2966 to i1
  br i1 %2967, label %2968, label %2970

2968:                                             ; preds = %2964
  %2969 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %2972

2970:                                             ; preds = %2964
  %2971 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %2972

2972:                                             ; preds = %2970, %2968
  %2973 = call i32 (ptr, ...) @printf(ptr noundef @.str.624)
  %2974 = load i8, ptr %17, align 1, !tbaa !5, !range !20, !noundef !21
  %2975 = trunc i8 %2974 to i1
  br i1 %2975, label %2976, label %2978

2976:                                             ; preds = %2972
  %2977 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %2980

2978:                                             ; preds = %2972
  %2979 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %2980

2980:                                             ; preds = %2978, %2976
  %2981 = call i32 (ptr, ...) @printf(ptr noundef @.str.625)
  %2982 = load i8, ptr %18, align 1, !tbaa !5, !range !20, !noundef !21
  %2983 = trunc i8 %2982 to i1
  br i1 %2983, label %2984, label %2986

2984:                                             ; preds = %2980
  %2985 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %2988

2986:                                             ; preds = %2980
  %2987 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %2988

2988:                                             ; preds = %2986, %2984
  %2989 = call i32 (ptr, ...) @printf(ptr noundef @.str.626)
  %2990 = load i8, ptr %12, align 1, !tbaa !5, !range !20, !noundef !21
  %2991 = trunc i8 %2990 to i1
  br i1 %2991, label %2992, label %2994

2992:                                             ; preds = %2988
  %2993 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %2996

2994:                                             ; preds = %2988
  %2995 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %2996

2996:                                             ; preds = %2994, %2992
  %2997 = call i32 (ptr, ...) @printf(ptr noundef @.str.627)
  %2998 = load i8, ptr %14, align 1, !tbaa !5, !range !20, !noundef !21
  %2999 = trunc i8 %2998 to i1
  br i1 %2999, label %3000, label %3002

3000:                                             ; preds = %2996
  %3001 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %3004

3002:                                             ; preds = %2996
  %3003 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %3004

3004:                                             ; preds = %3002, %3000
  %3005 = call i32 (ptr, ...) @printf(ptr noundef @.str.628)
  %3006 = load i8, ptr %13, align 1, !tbaa !5, !range !20, !noundef !21
  %3007 = trunc i8 %3006 to i1
  br i1 %3007, label %3008, label %3010

3008:                                             ; preds = %3004
  %3009 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %3012

3010:                                             ; preds = %3004
  %3011 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %3012

3012:                                             ; preds = %3010, %3008
  %3013 = call i32 (ptr, ...) @printf(ptr noundef @.str.629)
  %3014 = load i8, ptr %15, align 1, !tbaa !5, !range !20, !noundef !21
  %3015 = trunc i8 %3014 to i1
  br i1 %3015, label %3016, label %3018

3016:                                             ; preds = %3012
  %3017 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %3020

3018:                                             ; preds = %3012
  %3019 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %3020

3020:                                             ; preds = %3018, %3016
  %3021 = call i32 (ptr, ...) @printf(ptr noundef @.str.630)
  %3022 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %3023 = trunc i8 %3022 to i1
  br i1 %3023, label %3024, label %3026

3024:                                             ; preds = %3020
  %3025 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %3028

3026:                                             ; preds = %3020
  %3027 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %3028

3028:                                             ; preds = %3026, %3024
  %3029 = load i8, ptr %6, align 1, !tbaa !5, !range !20, !noundef !21
  %3030 = trunc i8 %3029 to i1
  br i1 %3030, label %3031, label %3033

3031:                                             ; preds = %3028
  %3032 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %3035

3033:                                             ; preds = %3028
  %3034 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %3035

3035:                                             ; preds = %3033, %3031
  %3036 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %3037

3037:                                             ; preds = %3035, %2925
  %3038 = load i8, ptr %6, align 1, !tbaa !5, !range !20, !noundef !21
  %3039 = trunc i8 %3038 to i1
  %3040 = xor i1 %3039, true
  %3041 = zext i1 %3040 to i8
  store i8 %3041, ptr %79, align 1, !tbaa !5
  %3042 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %3042)
  %3043 = load i8, ptr %79, align 1, !tbaa !5, !range !20, !noundef !21
  %3044 = trunc i8 %3043 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %79) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %48) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %47) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %46) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %45) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %44) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %43) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  ret i1 %3044
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef, double noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

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

declare void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL30testspline1dunit_unsetspline1dPN11alglib_impl19spline1dinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef) #4

declare void @_ZN11alglib_impl12spline1dcopyEPNS_19spline1dinterpolantES1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL27testspline1dunit_testunpackPN11alglib_impl19spline1dinterpolantEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL36testspline1dunit_enumerateallsplinesPN11alglib_impl9ae_vectorES1_lPlPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #4

declare void @_ZN11alglib_impl17spline1dlintransxEPNS_19spline1dinterpolantEddPNS_8ae_stateE(ptr noundef, double noundef, double noundef, ptr noundef) #1

declare void @_ZN11alglib_impl17spline1dlintransyEPNS_19spline1dinterpolantEddPNS_8ae_stateE(ptr noundef, double noundef, double noundef, ptr noundef) #1

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL35testspline1dunit_testmonotonesplinePN11alglib_impl8ae_stateE(ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL34testspline1dunit_testsplinefittingPbPN11alglib_impl8ae_stateE(ptr noundef, ptr noundef) #4

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #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 = !{!"bool", !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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = !{!25, !12, i64 0}
!25 = !{!"_ZTSN11alglib_impl9ae_vectorE", !12, i64 0, !12, i64 8, !6, i64 16, !26, i64 24, !7, i64 56}
!26 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !17}
!32 = distinct !{!32, !17}
!33 = distinct !{!33, !17}
!34 = distinct !{!34, !17}
!35 = distinct !{!35, !17}
!36 = distinct !{!36, !17}
!37 = distinct !{!37, !17}
!38 = distinct !{!38, !17}
!39 = distinct !{!39, !17}
!40 = distinct !{!40, !17}
!41 = distinct !{!41, !17}
!42 = distinct !{!42, !17}
!43 = distinct !{!43, !17}
!44 = distinct !{!44, !17}
!45 = distinct !{!45, !17}
!46 = distinct !{!46, !17}
!47 = distinct !{!47, !17}
!48 = distinct !{!48, !17}
!49 = distinct !{!49, !17}
!50 = distinct !{!50, !17}
!51 = distinct !{!51, !17}
!52 = distinct !{!52, !17}
!53 = distinct !{!53, !17}
!54 = distinct !{!54, !17}
!55 = distinct !{!55, !17}
!56 = distinct !{!56, !17}
!57 = distinct !{!57, !17}
!58 = distinct !{!58, !17}
!59 = distinct !{!59, !17}
!60 = distinct !{!60, !17}
!61 = distinct !{!61, !17}
!62 = distinct !{!62, !17}
!63 = distinct !{!63, !17}
!64 = distinct !{!64, !17}
!65 = distinct !{!65, !17}
!66 = distinct !{!66, !17}
!67 = distinct !{!67, !17}
!68 = distinct !{!68, !17}


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

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.617 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.618 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.619 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.620 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.621 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.622 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.623 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.624 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.625 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.626 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.627 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.628 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.629 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.630 = external hidden unnamed_addr constant [42 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

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

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

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

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

declare noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #1

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

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

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

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z12testspline1dbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #5 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca i8, align 1
  %5 = alloca %"struct.alglib_impl::ae_vector", align 8
  %6 = alloca %"struct.alglib_impl::ae_vector", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::spline1dinterpolant", align 8
  %21 = alloca %"struct.alglib_impl::spline1dinterpolant", align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #7
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %3)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %5, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  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)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(160) %20, i8 0, i64 160, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(160) %21, i8 0, i64 160, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %5, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %1, 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 %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %18, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %19, i64 noundef 0, i64 noundef 2, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef nonnull %20, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef nonnull %21, ptr noundef %1, i1 noundef zeroext true)
  store i8 0, ptr %4, align 1, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %5, i64 56
  %36 = getelementptr inbounds i8, ptr %6, i64 56
  %37 = getelementptr inbounds i8, ptr %7, i64 56
  %38 = getelementptr inbounds i8, ptr %11, i64 56
  %39 = getelementptr inbounds i8, ptr %16, i64 56
  %40 = getelementptr inbounds i8, ptr %17, i64 56
  %41 = getelementptr inbounds i8, ptr %18, i64 56
  %42 = getelementptr inbounds i8, ptr %15, i64 56
  br label %43

43:                                               ; preds = %2, %653
  %.01385 = phi i1 [ false, %2 ], [ %.4.in, %653 ]
  %.011541384 = phi i8 [ 0, %2 ], [ %.71161, %653 ]
  %.011621383 = phi i1 [ false, %2 ], [ %651, %653 ]
  %.011641382 = phi i1 [ false, %2 ], [ %635, %653 ]
  %.011671381 = phi i1 [ false, %2 ], [ %170, %653 ]
  %.012081380 = phi i64 [ 2, %2 ], [ %654, %653 ]
  %44 = add nsw i64 %.012081380, -1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.012081380, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.012081380, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.012081380, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %.012081380, ptr noundef %1)
  %45 = shl nuw nsw i64 %.012081380, 1
  %46 = uitofp nneg i64 %45 to double
  %47 = fdiv double 0x400921FB54442D18, %46
  br label %.peel.next

.peel.next:                                       ; preds = %.critedge1271, %43
  %.11379 = phi i1 [ %.01385, %43 ], [ %.4.in, %.critedge1271 ]
  %.111551378 = phi i8 [ %.011541384, %43 ], [ %.71161, %.critedge1271 ]
  %.111631377 = phi i1 [ %.011621383, %43 ], [ %651, %.critedge1271 ]
  %.111651376 = phi i1 [ %.011641382, %43 ], [ %635, %.critedge1271 ]
  %.111681375 = phi i1 [ %.011671381, %43 ], [ %170, %.critedge1271 ]
  %.011711374 = phi i64 [ 1, %43 ], [ %652, %.critedge1271 ]
  %48 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %49 = fsub double -1.000000e+00, %48
  %50 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %51 = fadd double %50, 1.000000e+00
  %52 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %53 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %54 = fadd double %49, %51
  %55 = fsub double %51, %49
  %56 = fmul double %55, 5.000000e-01
  %57 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %47, ptr noundef %1)
  %58 = fmul double %56, %57
  %59 = call double @llvm.fmuladd.f64(double %54, double 5.000000e-01, double %58)
  %60 = load ptr, ptr %35, align 8, !tbaa !9
  store double %59, ptr %60, align 8, !tbaa !10
  %61 = load ptr, ptr %35, align 8, !tbaa !9
  store double %49, ptr %61, align 8, !tbaa !10
  %.pre = load ptr, ptr %35, align 8, !tbaa !9
  %.pre1537 = load double, ptr %.pre, align 8, !tbaa !10
  %62 = call double @llvm.fmuladd.f64(double %.pre1537, double 0x40105616905F83B6, double 4.000000e-01)
  %63 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %62, ptr noundef %1)
  %64 = load ptr, ptr %36, align 8, !tbaa !9
  store double %63, ptr %64, align 8, !tbaa !10
  %65 = load ptr, ptr %36, align 8, !tbaa !9
  %66 = load double, ptr %65, align 8, !tbaa !10
  %67 = load ptr, ptr %37, align 8, !tbaa !9
  store double %66, ptr %67, align 8, !tbaa !10
  %68 = load ptr, ptr %35, align 8, !tbaa !9
  %69 = load double, ptr %68, align 8, !tbaa !10
  %70 = call double @llvm.fmuladd.f64(double %69, double 0x40105616905F83B6, double 4.000000e-01)
  %71 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %70, ptr noundef %1)
  %72 = fmul double %71, 0xC0105616905F83B6
  %73 = load ptr, ptr %38, align 8, !tbaa !9
  store double %72, ptr %73, align 8, !tbaa !10
  br label %74

74:                                               ; preds = %88, %.peel.next
  %.011811322 = phi i64 [ 1, %.peel.next ], [ %109, %88 ]
  %75 = shl nuw nsw i64 %.011811322, 1
  %76 = or disjoint i64 %75, 1
  %77 = uitofp nneg i64 %76 to double
  %78 = fmul double %77, 0x400921FB54442D18
  %79 = fdiv double %78, %46
  %80 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %79, ptr noundef %1)
  %81 = fmul double %56, %80
  %82 = call double @llvm.fmuladd.f64(double %54, double 5.000000e-01, double %81)
  %83 = load ptr, ptr %35, align 8, !tbaa !9
  %84 = getelementptr inbounds double, ptr %83, i64 %.011811322
  store double %82, ptr %84, align 8, !tbaa !10
  %.pre1540.pre = load ptr, ptr %35, align 8, !tbaa !9
  %85 = icmp eq i64 %.011811322, %44
  br i1 %85, label %86, label %88

86:                                               ; preds = %74
  %87 = getelementptr inbounds double, ptr %.pre1540.pre, i64 %44
  store double %51, ptr %87, align 8, !tbaa !10
  %.pre1539 = load ptr, ptr %35, align 8, !tbaa !9
  br label %88

88:                                               ; preds = %86, %74
  %89 = phi ptr [ %.pre1539, %86 ], [ %.pre1540.pre, %74 ]
  %90 = getelementptr inbounds double, ptr %89, i64 %.011811322
  %91 = load double, ptr %90, align 8, !tbaa !10
  %92 = call double @llvm.fmuladd.f64(double %91, double 0x40105616905F83B6, double 4.000000e-01)
  %93 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %92, ptr noundef %1)
  %94 = load ptr, ptr %36, align 8, !tbaa !9
  %95 = getelementptr inbounds double, ptr %94, i64 %.011811322
  store double %93, ptr %95, align 8, !tbaa !10
  %96 = load ptr, ptr %36, align 8, !tbaa !9
  %97 = getelementptr inbounds double, ptr %96, i64 %.011811322
  %98 = load double, ptr %97, align 8, !tbaa !10
  %99 = load ptr, ptr %37, align 8, !tbaa !9
  %100 = getelementptr inbounds double, ptr %99, i64 %.011811322
  store double %98, ptr %100, align 8, !tbaa !10
  %101 = load ptr, ptr %35, align 8, !tbaa !9
  %102 = getelementptr inbounds double, ptr %101, i64 %.011811322
  %103 = load double, ptr %102, align 8, !tbaa !10
  %104 = call double @llvm.fmuladd.f64(double %103, double 0x40105616905F83B6, double 4.000000e-01)
  %105 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %104, ptr noundef %1)
  %106 = fmul double %105, 0xC0105616905F83B6
  %107 = load ptr, ptr %38, align 8, !tbaa !9
  %108 = getelementptr inbounds double, ptr %107, i64 %.011811322
  store double %106, ptr %108, align 8, !tbaa !10
  %109 = add nuw nsw i64 %.011811322, 1
  %exitcond.not = icmp eq i64 %109, %.012081380
  br i1 %exitcond.not, label %.loopexit1493, label %74, !llvm.loop !12

.loopexit1493:                                    ; preds = %88
  %110 = call double @llvm.fmuladd.f64(double %52, double 2.000000e+00, double -1.000000e+00)
  %111 = load ptr, ptr %37, align 8, !tbaa !9
  %112 = load double, ptr %111, align 8, !tbaa !10
  %113 = getelementptr inbounds double, ptr %111, i64 %44
  store double %112, ptr %113, align 8, !tbaa !10
  br label %114

114:                                              ; preds = %.loopexit1493, %145
  %.111821323 = phi i64 [ 0, %.loopexit1493 ], [ %146, %145 ]
  %115 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %.012081380, ptr noundef %1)
  %.not1264 = icmp eq i64 %115, %.111821323
  br i1 %.not1264, label %145, label %116

116:                                              ; preds = %114
  %117 = load ptr, ptr %35, align 8, !tbaa !9
  %118 = getelementptr inbounds double, ptr %117, i64 %.111821323
  %119 = load double, ptr %118, align 8, !tbaa !10
  %120 = getelementptr inbounds double, ptr %117, i64 %115
  %121 = load double, ptr %120, align 8, !tbaa !10
  store double %121, ptr %118, align 8, !tbaa !10
  %122 = load ptr, ptr %35, align 8, !tbaa !9
  %123 = getelementptr inbounds double, ptr %122, i64 %115
  store double %119, ptr %123, align 8, !tbaa !10
  %124 = load ptr, ptr %36, align 8, !tbaa !9
  %125 = getelementptr inbounds double, ptr %124, i64 %.111821323
  %126 = load double, ptr %125, align 8, !tbaa !10
  %127 = getelementptr inbounds double, ptr %124, i64 %115
  %128 = load double, ptr %127, align 8, !tbaa !10
  store double %128, ptr %125, align 8, !tbaa !10
  %129 = load ptr, ptr %36, align 8, !tbaa !9
  %130 = getelementptr inbounds double, ptr %129, i64 %115
  store double %126, ptr %130, align 8, !tbaa !10
  %131 = load ptr, ptr %37, align 8, !tbaa !9
  %132 = getelementptr inbounds double, ptr %131, i64 %.111821323
  %133 = load double, ptr %132, align 8, !tbaa !10
  %134 = getelementptr inbounds double, ptr %131, i64 %115
  %135 = load double, ptr %134, align 8, !tbaa !10
  store double %135, ptr %132, align 8, !tbaa !10
  %136 = load ptr, ptr %37, align 8, !tbaa !9
  %137 = getelementptr inbounds double, ptr %136, i64 %115
  store double %133, ptr %137, align 8, !tbaa !10
  %138 = load ptr, ptr %38, align 8, !tbaa !9
  %139 = getelementptr inbounds double, ptr %138, i64 %.111821323
  %140 = load double, ptr %139, align 8, !tbaa !10
  %141 = getelementptr inbounds double, ptr %138, i64 %115
  %142 = load double, ptr %141, align 8, !tbaa !10
  store double %142, ptr %139, align 8, !tbaa !10
  %143 = load ptr, ptr %38, align 8, !tbaa !9
  %144 = getelementptr inbounds double, ptr %143, i64 %115
  store double %140, ptr %144, align 8, !tbaa !10
  br label %145

145:                                              ; preds = %114, %116
  %146 = add nuw nsw i64 %.111821323, 1
  %exitcond1494.not = icmp eq i64 %146, %.012081380
  br i1 %exitcond1494.not, label %147, label %114, !llvm.loop !15

147:                                              ; preds = %145
  call void @_ZN11alglib_impl19spline1dbuildlinearEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef %.012081380, ptr noundef nonnull %20, ptr noundef %1)
  br label %148

148:                                              ; preds = %147, %148
  %.011491325 = phi double [ 0.000000e+00, %147 ], [ %158, %148 ]
  %.211831324 = phi i64 [ 0, %147 ], [ %159, %148 ]
  %149 = load ptr, ptr %36, align 8, !tbaa !9
  %150 = getelementptr inbounds double, ptr %149, i64 %.211831324
  %151 = load double, ptr %150, align 8, !tbaa !10
  %152 = load ptr, ptr %35, align 8, !tbaa !9
  %153 = getelementptr inbounds double, ptr %152, i64 %.211831324
  %154 = load double, ptr %153, align 8, !tbaa !10
  %155 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %154, ptr noundef %1)
  %156 = fsub double %151, %155
  %157 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %156, ptr noundef %1)
  %158 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.011491325, double noundef %157, ptr noundef %1)
  %159 = add nuw nsw i64 %.211831324, 1
  %exitcond1495.not = icmp eq i64 %159, %.012081380
  br i1 %exitcond1495.not, label %160, label %148, !llvm.loop !16

160:                                              ; preds = %148
  %161 = call double @llvm.fmuladd.f64(double %53, double 2.000000e+00, double -1.000000e+00)
  br i1 %.111681375, label %.critedge, label %162

162:                                              ; preds = %160
  %163 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %158, double noundef 0x3D95FD7FE1796496)
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %49, double noundef %51, ptr noundef nonnull %20, double noundef 5.000000e-03, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef %1)
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %49, double noundef %51, ptr noundef nonnull %20, double noundef 0x3F5B4E81B4E81B4F, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef %1)
  br i1 %163, label %169, label %164

164:                                              ; preds = %162
  %165 = load double, ptr %25, align 8, !tbaa !10
  %166 = load double, ptr %22, align 8, !tbaa !10
  %167 = fdiv double %165, %166
  %168 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %167, double noundef 1.200000e+00)
  br label %169

.critedge:                                        ; preds = %160
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %49, double noundef %51, ptr noundef nonnull %20, double noundef 5.000000e-03, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef %1)
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %49, double noundef %51, ptr noundef nonnull %20, double noundef 0x3F5B4E81B4E81B4F, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef %1)
  br label %169

169:                                              ; preds = %.critedge, %164, %162
  %170 = phi i1 [ true, %162 ], [ %168, %164 ], [ true, %.critedge ]
  %171 = fadd double %49, 1.000000e-05
  %172 = fadd double %49, -1.000000e-05
  %173 = fadd double %51, 1.000000e-05
  %174 = fadd double %51, -1.000000e-05
  %175 = fadd double %49, 5.000000e-14
  %176 = fadd double %51, -5.000000e-14
  %177 = fsub double %49, %51
  br label %.preheader1320

.preheader1320:                                   ; preds = %169, %451
  %.211561361 = phi i8 [ %.111551378, %169 ], [ %.71161, %451 ]
  %.012151360 = phi i64 [ -1, %169 ], [ %452, %451 ]
  %178 = icmp ne i64 %.012151360, -1
  br label %179

179:                                              ; preds = %.preheader1320, %449
  %.311571359 = phi i8 [ %.211561361, %.preheader1320 ], [ %.71161, %449 ]
  %.012141357 = phi i64 [ -1, %.preheader1320 ], [ %450, %449 ]
  %180 = icmp ne i64 %.012141357, -1
  %.not1306 = and i1 %178, %180
  %.not1255 = icmp eq i64 %.012151360, %.012141357
  %or.cond = or i1 %.not1255, %.not1306
  br i1 %or.cond, label %181, label %449

181:                                              ; preds = %179
  br i1 %.not1306, label %.preheader1314.preheader, label %.preheader1316.preheader

.preheader1316.preheader:                         ; preds = %181
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %7, i64 noundef %.012081380, i64 noundef %.012151360, double noundef %110, i64 noundef %.012141357, double noundef %161, ptr noundef nonnull %20, ptr noundef %1)
  br label %.preheader1316

.preheader1314.preheader:                         ; preds = %181
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef %.012081380, i64 noundef %.012151360, double noundef %110, i64 noundef %.012141357, double noundef %161, ptr noundef nonnull %20, ptr noundef %1)
  br label %.preheader1314

.preheader1316:                                   ; preds = %.preheader1316.preheader, %.preheader1316
  %.111501327 = phi double [ %210, %.preheader1316 ], [ 0.000000e+00, %.preheader1316.preheader ]
  %.311841326 = phi i64 [ %211, %.preheader1316 ], [ 0, %.preheader1316.preheader ]
  %182 = load ptr, ptr %35, align 8, !tbaa !9
  %183 = getelementptr inbounds double, ptr %182, i64 %.311841326
  %184 = load double, ptr %183, align 8, !tbaa !10
  %185 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %1)
  %186 = add nsw i64 %185, -2
  %187 = sitofp i64 %186 to double
  %188 = call double @llvm.fmuladd.f64(double %55, double %187, double %184)
  %189 = load ptr, ptr %37, align 8, !tbaa !9
  %190 = getelementptr inbounds double, ptr %189, i64 %.311841326
  %191 = load double, ptr %190, align 8, !tbaa !10
  %192 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %188, ptr noundef %1)
  %193 = fsub double %191, %192
  %194 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %193, ptr noundef %1)
  %195 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.111501327, double noundef %194, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %184, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %188, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  %196 = load double, ptr %28, align 8, !tbaa !10
  %197 = load double, ptr %31, align 8, !tbaa !10
  %198 = fsub double %196, %197
  %199 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %198, ptr noundef %1)
  %200 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %195, double noundef %199, ptr noundef %1)
  %201 = load double, ptr %29, align 8, !tbaa !10
  %202 = load double, ptr %32, align 8, !tbaa !10
  %203 = fsub double %201, %202
  %204 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %203, ptr noundef %1)
  %205 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %200, double noundef %204, ptr noundef %1)
  %206 = load double, ptr %30, align 8, !tbaa !10
  %207 = load double, ptr %33, align 8, !tbaa !10
  %208 = fsub double %206, %207
  %209 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %208, ptr noundef %1)
  %210 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %205, double noundef %209, ptr noundef %1)
  %211 = add nuw nsw i64 %.311841326, 1
  %exitcond1496.not = icmp eq i64 %211, %.012081380
  br i1 %exitcond1496.not, label %212, label %.preheader1316, !llvm.loop !17

212:                                              ; preds = %.preheader1316
  %213 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %214 = call double @llvm.fmuladd.f64(double %55, double %213, double %49)
  %215 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %1)
  %216 = add nsw i64 %215, -2
  %217 = sitofp i64 %216 to double
  %218 = call double @llvm.fmuladd.f64(double %55, double %217, double %214)
  %219 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %214, ptr noundef %1)
  %220 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %218, ptr noundef %1)
  %221 = fsub double %219, %220
  %222 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %221, ptr noundef %1)
  %223 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %210, double noundef %222, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %214, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %218, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  %224 = load double, ptr %28, align 8, !tbaa !10
  %225 = load double, ptr %31, align 8, !tbaa !10
  %226 = fsub double %224, %225
  %227 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %226, ptr noundef %1)
  %228 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %223, double noundef %227, ptr noundef %1)
  %229 = load double, ptr %29, align 8, !tbaa !10
  %230 = load double, ptr %32, align 8, !tbaa !10
  %231 = fsub double %229, %230
  %232 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %231, ptr noundef %1)
  %233 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %228, double noundef %232, ptr noundef %1)
  %234 = load double, ptr %30, align 8, !tbaa !10
  %235 = load double, ptr %33, align 8, !tbaa !10
  %236 = fsub double %234, %235
  %237 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %236, ptr noundef %1)
  %238 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %233, double noundef %237, ptr noundef %1)
  br label %.loopexit1315

.preheader1314:                                   ; preds = %.preheader1314.preheader, %.preheader1314
  %.211511329 = phi double [ %248, %.preheader1314 ], [ 0.000000e+00, %.preheader1314.preheader ]
  %.411851328 = phi i64 [ %249, %.preheader1314 ], [ 0, %.preheader1314.preheader ]
  %239 = load ptr, ptr %36, align 8, !tbaa !9
  %240 = getelementptr inbounds double, ptr %239, i64 %.411851328
  %241 = load double, ptr %240, align 8, !tbaa !10
  %242 = load ptr, ptr %35, align 8, !tbaa !9
  %243 = getelementptr inbounds double, ptr %242, i64 %.411851328
  %244 = load double, ptr %243, align 8, !tbaa !10
  %245 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %244, ptr noundef %1)
  %246 = fsub double %241, %245
  %247 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %246, ptr noundef %1)
  %248 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.211511329, double noundef %247, ptr noundef %1)
  %249 = add nuw nsw i64 %.411851328, 1
  %exitcond1497.not = icmp eq i64 %249, %.012081380
  br i1 %exitcond1497.not, label %.loopexit1315, label %.preheader1314, !llvm.loop !18

.loopexit1315:                                    ; preds = %.preheader1314, %212
  %.31152 = phi double [ %238, %212 ], [ %248, %.preheader1314 ]
  %250 = trunc nuw i8 %.311571359 to i1
  br i1 %250, label %253, label %251

251:                                              ; preds = %.loopexit1315
  %252 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.31152, double noundef 0x3D95FD7FE1796496)
  br label %253

253:                                              ; preds = %251, %.loopexit1315
  %254 = phi i1 [ true, %.loopexit1315 ], [ %252, %251 ]
  switch i64 %.012151360, label %.thread1295 [
    i64 0, label %.thread
    i64 1, label %259
    i64 2, label %265
  ]

.thread:                                          ; preds = %253
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %172, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %171, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  %255 = load double, ptr %33, align 8, !tbaa !10
  %256 = load double, ptr %30, align 8, !tbaa !10
  %257 = fsub double %255, %256
  %258 = fdiv double %257, 2.000000e-05
  br label %.thread1295.sink.split

259:                                              ; preds = %253
  %260 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %171, ptr noundef %1)
  %261 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %172, ptr noundef %1)
  %262 = fsub double %260, %261
  %263 = fdiv double %262, 2.000000e-05
  %264 = fsub double %110, %263
  br label %.thread1295.sink.split

265:                                              ; preds = %253
  %266 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %171, ptr noundef %1)
  %267 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %49, ptr noundef %1)
  %268 = call double @llvm.fmuladd.f64(double %267, double -2.000000e+00, double %266)
  %269 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %172, ptr noundef %1)
  %270 = fadd double %268, %269
  %271 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef 1.000000e-05, ptr noundef %1)
  %272 = fdiv double %270, %271
  %273 = fsub double %110, %272
  br label %.thread1295.sink.split

.thread1295.sink.split:                           ; preds = %265, %.thread, %259
  %.sink1577 = phi double [ %264, %259 ], [ %258, %.thread ], [ %273, %265 ]
  %274 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.sink1577, ptr noundef %1)
  %275 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef 0.000000e+00, double noundef %274, ptr noundef %1)
  br label %.thread1295

.thread1295:                                      ; preds = %.thread1295.sink.split, %253
  %.6 = phi double [ 0.000000e+00, %253 ], [ %275, %.thread1295.sink.split ]
  switch i64 %.012141357, label %.thread1300 [
    i64 0, label %.thread1297
    i64 1, label %280
    i64 2, label %286
  ]

.thread1297:                                      ; preds = %.thread1295
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %174, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %173, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  %276 = load double, ptr %33, align 8, !tbaa !10
  %277 = load double, ptr %30, align 8, !tbaa !10
  %278 = fsub double %276, %277
  %279 = fdiv double %278, 2.000000e-05
  br label %.thread1300.sink.split

280:                                              ; preds = %.thread1295
  %281 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %173, ptr noundef %1)
  %282 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %174, ptr noundef %1)
  %283 = fsub double %281, %282
  %284 = fdiv double %283, 2.000000e-05
  %285 = fsub double %161, %284
  br label %.thread1300.sink.split

286:                                              ; preds = %.thread1295
  %287 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %173, ptr noundef %1)
  %288 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %51, ptr noundef %1)
  %289 = call double @llvm.fmuladd.f64(double %288, double -2.000000e+00, double %287)
  %290 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %174, ptr noundef %1)
  %291 = fadd double %289, %290
  %292 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef 1.000000e-05, ptr noundef %1)
  %293 = fdiv double %291, %292
  %294 = fsub double %161, %293
  br label %.thread1300.sink.split

.thread1300.sink.split:                           ; preds = %286, %.thread1297, %280
  %.sink1578 = phi double [ %285, %280 ], [ %279, %.thread1297 ], [ %294, %286 ]
  %295 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.sink1578, ptr noundef %1)
  %296 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.6, double noundef %295, ptr noundef %1)
  br label %.thread1300

.thread1300:                                      ; preds = %.thread1300.sink.split, %.thread1295
  %.9 = phi double [ %.6, %.thread1295 ], [ %296, %.thread1300.sink.split ]
  br i1 %.not1306, label %313, label %297

297:                                              ; preds = %.thread1300
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %175, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %176, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  %298 = load double, ptr %28, align 8, !tbaa !10
  %299 = load double, ptr %31, align 8, !tbaa !10
  %300 = fsub double %298, %299
  %301 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %300, ptr noundef %1)
  %302 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.9, double noundef %301, ptr noundef %1)
  %303 = load double, ptr %29, align 8, !tbaa !10
  %304 = load double, ptr %32, align 8, !tbaa !10
  %305 = fsub double %303, %304
  %306 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %305, ptr noundef %1)
  %307 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %302, double noundef %306, ptr noundef %1)
  %308 = load double, ptr %30, align 8, !tbaa !10
  %309 = load double, ptr %33, align 8, !tbaa !10
  %310 = fsub double %308, %309
  %311 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %310, ptr noundef %1)
  %312 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %307, double noundef %311, ptr noundef %1)
  br label %313

313:                                              ; preds = %.thread1300, %297
  %.10 = phi double [ %312, %297 ], [ %.9, %.thread1300 ]
  br i1 %254, label %316, label %314

314:                                              ; preds = %313
  %315 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.10, double noundef 1.000000e-03)
  br label %316

316:                                              ; preds = %314, %313
  %317 = phi i1 [ true, %313 ], [ %315, %314 ]
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %49, double noundef %51, ptr noundef nonnull %20, double noundef 5.000000e-03, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef %1)
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %49, double noundef %51, ptr noundef nonnull %20, double noundef 0x3F5B4E81B4E81B4F, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef %1)
  %318 = load double, ptr %22, align 8, !tbaa !10
  %319 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %318, double noundef 0x3EB0C6F7A0B5ED8D)
  %.not1282 = xor i1 %319, true
  %brmerge1283 = or i1 %317, %.not1282
  %.mux = or i1 %317, %319
  br i1 %brmerge1283, label %325, label %320

320:                                              ; preds = %316
  %321 = load double, ptr %25, align 8, !tbaa !10
  %322 = load double, ptr %22, align 8, !tbaa !10
  %323 = fdiv double %321, %322
  %324 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %323, double noundef 1.200000e+00)
  br label %325

325:                                              ; preds = %316, %320
  %.41158.in = phi i1 [ %.mux, %316 ], [ %324, %320 ]
  %326 = load double, ptr %23, align 8, !tbaa !10
  %327 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %326, double noundef 0x3EB0C6F7A0B5ED8D)
  %.not1284 = xor i1 %327, true
  %brmerge1285 = or i1 %.41158.in, %.not1284
  %.41158.in.mux = or i1 %.41158.in, %327
  br i1 %brmerge1285, label %333, label %328

328:                                              ; preds = %325
  %329 = load double, ptr %26, align 8, !tbaa !10
  %330 = load double, ptr %23, align 8, !tbaa !10
  %331 = fdiv double %329, %330
  %332 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %331, double noundef 1.200000e+00)
  br label %333

333:                                              ; preds = %325, %328
  %.51159.in = phi i1 [ %.41158.in.mux, %325 ], [ %332, %328 ]
  %334 = load double, ptr %24, align 8, !tbaa !10
  %335 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %334, double noundef 0x3EB0C6F7A0B5ED8D)
  %.not1286 = xor i1 %335, true
  %brmerge1287 = or i1 %.51159.in, %.not1286
  %.51159.in.mux = or i1 %.51159.in, %335
  br i1 %brmerge1287, label %341, label %336

336:                                              ; preds = %333
  %337 = load double, ptr %27, align 8, !tbaa !10
  %338 = load double, ptr %24, align 8, !tbaa !10
  %339 = fdiv double %337, %338
  %340 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %339, double noundef 1.200000e+00)
  br label %341

341:                                              ; preds = %333, %336
  %.61160.in = phi i1 [ %.51159.in.mux, %333 ], [ %340, %336 ]
  %.1599 = select i1 %.not1306, ptr %6, ptr %7
  call void @_ZN11alglib_impl21spline1dgriddiffcubicEPNS_9ae_vectorES1_lldldS1_PNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %.1599, i64 noundef %.012081380, i64 noundef %.012151360, double noundef %110, i64 noundef %.012141357, double noundef %161, ptr noundef nonnull %16, ptr noundef %1)
  %342 = load i64, ptr %16, align 8, !tbaa !19
  %343 = icmp sge i64 %342, %.012081380
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %343, ptr noundef nonnull @.str.26, ptr noundef %1)
  br label %344

344:                                              ; preds = %341, %344
  %.111331 = phi double [ 0.000000e+00, %341 ], [ %354, %344 ]
  %.511861330 = phi i64 [ 0, %341 ], [ %355, %344 ]
  %345 = load ptr, ptr %35, align 8, !tbaa !9
  %346 = getelementptr inbounds double, ptr %345, i64 %.511861330
  %347 = load double, ptr %346, align 8, !tbaa !10
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %347, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  %348 = load double, ptr %29, align 8, !tbaa !10
  %349 = load ptr, ptr %39, align 8, !tbaa !9
  %350 = getelementptr inbounds double, ptr %349, i64 %.511861330
  %351 = load double, ptr %350, align 8, !tbaa !10
  %352 = fsub double %348, %351
  %353 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %352, ptr noundef %1)
  %354 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.111331, double noundef %353, ptr noundef %1)
  %355 = add nuw nsw i64 %.511861330, 1
  %exitcond1498.not = icmp eq i64 %355, %.012081380
  br i1 %exitcond1498.not, label %356, label %344, !llvm.loop !24

356:                                              ; preds = %344
  %.1600 = select i1 %.not1306, ptr %6, ptr %7
  call void @_ZN11alglib_impl22spline1dgriddiff2cubicEPNS_9ae_vectorES1_lldldS1_S1_PNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %.1600, i64 noundef %.012081380, i64 noundef %.012151360, double noundef %110, i64 noundef %.012141357, double noundef %161, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef %1)
  br label %357

357:                                              ; preds = %356, %357
  %.121333 = phi double [ %354, %356 ], [ %374, %357 ]
  %.611871332 = phi i64 [ 0, %356 ], [ %375, %357 ]
  %358 = load ptr, ptr %35, align 8, !tbaa !9
  %359 = getelementptr inbounds double, ptr %358, i64 %.611871332
  %360 = load double, ptr %359, align 8, !tbaa !10
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %360, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  %361 = load double, ptr %29, align 8, !tbaa !10
  %362 = load ptr, ptr %39, align 8, !tbaa !9
  %363 = getelementptr inbounds double, ptr %362, i64 %.611871332
  %364 = load double, ptr %363, align 8, !tbaa !10
  %365 = fsub double %361, %364
  %366 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %365, ptr noundef %1)
  %367 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.121333, double noundef %366, ptr noundef %1)
  %368 = load double, ptr %30, align 8, !tbaa !10
  %369 = load ptr, ptr %40, align 8, !tbaa !9
  %370 = getelementptr inbounds double, ptr %369, i64 %.611871332
  %371 = load double, ptr %370, align 8, !tbaa !10
  %372 = fsub double %368, %371
  %373 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %372, ptr noundef %1)
  %374 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %367, double noundef %373, ptr noundef %1)
  %375 = add nuw nsw i64 %.611871332, 1
  %exitcond1499.not = icmp eq i64 %375, %.012081380
  br i1 %exitcond1499.not, label %376, label %357, !llvm.loop !25

376:                                              ; preds = %357
  br i1 %.61160.in, label %379, label %377

377:                                              ; preds = %376
  %378 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %374, double noundef 0x3D95FD7FE1796496)
  br label %379

379:                                              ; preds = %377, %376
  %380 = phi i1 [ true, %376 ], [ %378, %377 ]
  %381 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %45, ptr noundef %1)
  %382 = add i64 %381, 2
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef %382, ptr noundef %1)
  %.not12601334 = icmp slt i64 %381, -1
  br i1 %.not12601334, label %._crit_edge1341.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %379, %.lr.ph
  %.711881335 = phi i64 [ %389, %.lr.ph ], [ 0, %379 ]
  %383 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %384 = call double @llvm.fmuladd.f64(double %383, double 2.000000e+00, double -1.000000e+00)
  %385 = fmul double %177, %384
  %386 = call double @llvm.fmuladd.f64(double %54, double 5.000000e-01, double %385)
  %387 = load ptr, ptr %41, align 8, !tbaa !9
  %388 = getelementptr inbounds double, ptr %387, i64 %.711881335
  store double %386, ptr %388, align 8, !tbaa !10
  %389 = add nuw i64 %.711881335, 1
  %exitcond1500 = icmp eq i64 %389, %382
  br i1 %exitcond1500, label %._crit_edge, label %.lr.ph, !llvm.loop !26

._crit_edge:                                      ; preds = %.lr.ph
  %.1601 = select i1 %.not1306, ptr %6, ptr %7
  call void @_ZN11alglib_impl17spline1dconvcubicEPNS_9ae_vectorES1_lldldS1_lS1_PNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %.1601, i64 noundef %.012081380, i64 noundef %.012151360, double noundef %110, i64 noundef %.012141357, double noundef %161, ptr noundef nonnull %18, i64 noundef %382, ptr noundef nonnull %15, ptr noundef %1)
  br i1 %.not12601334, label %._crit_edge1341, label %.lr.ph1340

.lr.ph1340:                                       ; preds = %._crit_edge, %.lr.ph1340
  %.131338 = phi double [ %399, %.lr.ph1340 ], [ 0.000000e+00, %._crit_edge ]
  %.811891337 = phi i64 [ %400, %.lr.ph1340 ], [ 0, %._crit_edge ]
  %390 = load ptr, ptr %41, align 8, !tbaa !9
  %391 = getelementptr inbounds double, ptr %390, i64 %.811891337
  %392 = load double, ptr %391, align 8, !tbaa !10
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %392, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  %393 = load double, ptr %28, align 8, !tbaa !10
  %394 = load ptr, ptr %42, align 8, !tbaa !9
  %395 = getelementptr inbounds double, ptr %394, i64 %.811891337
  %396 = load double, ptr %395, align 8, !tbaa !10
  %397 = fsub double %393, %396
  %398 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %397, ptr noundef %1)
  %399 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.131338, double noundef %398, ptr noundef %1)
  %400 = add nuw i64 %.811891337, 1
  %exitcond1501 = icmp eq i64 %400, %382
  br i1 %exitcond1501, label %._crit_edge1341, label %.lr.ph1340, !llvm.loop !27

._crit_edge1341.critedge:                         ; preds = %379
  %.1601.c = select i1 %.not1306, ptr %6, ptr %7
  call void @_ZN11alglib_impl17spline1dconvcubicEPNS_9ae_vectorES1_lldldS1_lS1_PNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %.1601.c, i64 noundef %.012081380, i64 noundef %.012151360, double noundef %110, i64 noundef %.012141357, double noundef %161, ptr noundef nonnull %18, i64 noundef %382, ptr noundef nonnull %15, ptr noundef %1)
  br label %._crit_edge1341

._crit_edge1341:                                  ; preds = %.lr.ph1340, %._crit_edge1341.critedge, %._crit_edge
  %.13.lcssa = phi double [ 0.000000e+00, %._crit_edge ], [ 0.000000e+00, %._crit_edge1341.critedge ], [ %399, %.lr.ph1340 ]
  %.1602 = select i1 %.not1306, ptr %6, ptr %7
  call void @_ZN11alglib_impl21spline1dconvdiffcubicEPNS_9ae_vectorES1_lldldS1_lS1_S1_PNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %.1602, i64 noundef %.012081380, i64 noundef %.012151360, double noundef %110, i64 noundef %.012141357, double noundef %161, ptr noundef nonnull %18, i64 noundef %382, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef %1)
  br i1 %.not12601334, label %._crit_edge1348, label %.lr.ph1347

.lr.ph1347:                                       ; preds = %._crit_edge1341, %.lr.ph1347
  %.141345 = phi double [ %417, %.lr.ph1347 ], [ %.13.lcssa, %._crit_edge1341 ]
  %.911901344 = phi i64 [ %418, %.lr.ph1347 ], [ 0, %._crit_edge1341 ]
  %401 = load ptr, ptr %41, align 8, !tbaa !9
  %402 = getelementptr inbounds double, ptr %401, i64 %.911901344
  %403 = load double, ptr %402, align 8, !tbaa !10
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %403, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  %404 = load double, ptr %28, align 8, !tbaa !10
  %405 = load ptr, ptr %42, align 8, !tbaa !9
  %406 = getelementptr inbounds double, ptr %405, i64 %.911901344
  %407 = load double, ptr %406, align 8, !tbaa !10
  %408 = fsub double %404, %407
  %409 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %408, ptr noundef %1)
  %410 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.141345, double noundef %409, ptr noundef %1)
  %411 = load double, ptr %29, align 8, !tbaa !10
  %412 = load ptr, ptr %39, align 8, !tbaa !9
  %413 = getelementptr inbounds double, ptr %412, i64 %.911901344
  %414 = load double, ptr %413, align 8, !tbaa !10
  %415 = fsub double %411, %414
  %416 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %415, ptr noundef %1)
  %417 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %410, double noundef %416, ptr noundef %1)
  %418 = add nuw i64 %.911901344, 1
  %exitcond1502 = icmp eq i64 %418, %382
  br i1 %exitcond1502, label %._crit_edge1348, label %.lr.ph1347, !llvm.loop !28

._crit_edge1348:                                  ; preds = %.lr.ph1347, %._crit_edge1341
  %.14.lcssa = phi double [ %.13.lcssa, %._crit_edge1341 ], [ %417, %.lr.ph1347 ]
  %.1603 = select i1 %.not1306, ptr %6, ptr %7
  call void @_ZN11alglib_impl22spline1dconvdiff2cubicEPNS_9ae_vectorES1_lldldS1_lS1_S1_S1_PNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %.1603, i64 noundef %.012081380, i64 noundef %.012151360, double noundef %110, i64 noundef %.012141357, double noundef %161, ptr noundef nonnull %18, i64 noundef %382, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef %1)
  br i1 %.not12601334, label %._crit_edge1355, label %.lr.ph1354

.lr.ph1354:                                       ; preds = %._crit_edge1348, %.lr.ph1354
  %.151352 = phi double [ %442, %.lr.ph1354 ], [ %.14.lcssa, %._crit_edge1348 ]
  %.1011911351 = phi i64 [ %443, %.lr.ph1354 ], [ 0, %._crit_edge1348 ]
  %419 = load ptr, ptr %41, align 8, !tbaa !9
  %420 = getelementptr inbounds double, ptr %419, i64 %.1011911351
  %421 = load double, ptr %420, align 8, !tbaa !10
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %421, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  %422 = load double, ptr %28, align 8, !tbaa !10
  %423 = load ptr, ptr %42, align 8, !tbaa !9
  %424 = getelementptr inbounds double, ptr %423, i64 %.1011911351
  %425 = load double, ptr %424, align 8, !tbaa !10
  %426 = fsub double %422, %425
  %427 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %426, ptr noundef %1)
  %428 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.151352, double noundef %427, ptr noundef %1)
  %429 = load double, ptr %29, align 8, !tbaa !10
  %430 = load ptr, ptr %39, align 8, !tbaa !9
  %431 = getelementptr inbounds double, ptr %430, i64 %.1011911351
  %432 = load double, ptr %431, align 8, !tbaa !10
  %433 = fsub double %429, %432
  %434 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %433, ptr noundef %1)
  %435 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %428, double noundef %434, ptr noundef %1)
  %436 = load double, ptr %30, align 8, !tbaa !10
  %437 = load ptr, ptr %40, align 8, !tbaa !9
  %438 = getelementptr inbounds double, ptr %437, i64 %.1011911351
  %439 = load double, ptr %438, align 8, !tbaa !10
  %440 = fsub double %436, %439
  %441 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %440, ptr noundef %1)
  %442 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %435, double noundef %441, ptr noundef %1)
  %443 = add nuw i64 %.1011911351, 1
  %exitcond1503 = icmp eq i64 %443, %382
  br i1 %exitcond1503, label %._crit_edge1355, label %.lr.ph1354, !llvm.loop !29

._crit_edge1355:                                  ; preds = %.lr.ph1354, %._crit_edge1348
  %.15.lcssa = phi double [ %.14.lcssa, %._crit_edge1348 ], [ %442, %.lr.ph1354 ]
  br i1 %380, label %446, label %444

444:                                              ; preds = %._crit_edge1355
  %445 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.15.lcssa, double noundef 0x3D95FD7FE1796496)
  br label %446

446:                                              ; preds = %444, %._crit_edge1355
  %447 = phi i1 [ true, %._crit_edge1355 ], [ %445, %444 ]
  %448 = zext i1 %447 to i8
  br label %449

449:                                              ; preds = %179, %446
  %.71161 = phi i8 [ %448, %446 ], [ %.311571359, %179 ]
  %450 = add nsw i64 %.012141357, 1
  %exitcond1504.not = icmp eq i64 %450, 3
  br i1 %exitcond1504.not, label %451, label %179, !llvm.loop !30

451:                                              ; preds = %449
  %452 = add nsw i64 %.012151360, 1
  %exitcond1505.not = icmp eq i64 %452, 3
  br i1 %exitcond1505.not, label %.preheader1321, label %.preheader1320, !llvm.loop !31

.preheader1321:                                   ; preds = %451, %565
  %.21367 = phi i1 [ %.4.in, %565 ], [ %.11379, %451 ]
  %.112161366 = phi i64 [ %566, %565 ], [ -1, %451 ]
  %453 = icmp eq i64 %.112161366, -1
  %454 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %455 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %454, double noundef 5.000000e-01)
  %456 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  br i1 %455, label %457, label %459

457:                                              ; preds = %.preheader1321
  %458 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %456, double noundef 5.000000e-01)
  %. = select i1 %458, double 0.000000e+00, double 1.000000e+00
  br label %459

459:                                              ; preds = %.preheader1321, %457
  %.01148 = phi double [ %., %457 ], [ %456, %.preheader1321 ]
  br i1 %453, label %.preheader1317.preheader, label %.preheader1318.preheader

.preheader1318.preheader:                         ; preds = %459
  call void @_ZN11alglib_impl23spline1dbuildcatmullromEPNS_9ae_vectorES1_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef %.012081380, i64 noundef 0, double noundef %.01148, ptr noundef nonnull %20, ptr noundef %1)
  br label %.preheader1318

.preheader1317.preheader:                         ; preds = %459
  call void @_ZN11alglib_impl23spline1dbuildcatmullromEPNS_9ae_vectorES1_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %7, i64 noundef %.012081380, i64 noundef -1, double noundef %.01148, ptr noundef nonnull %20, ptr noundef %1)
  br label %.preheader1317

.preheader1317:                                   ; preds = %.preheader1317.preheader, %.preheader1317
  %.161365 = phi double [ %483, %.preheader1317 ], [ 0.000000e+00, %.preheader1317.preheader ]
  %.1111921364 = phi i64 [ %484, %.preheader1317 ], [ 0, %.preheader1317.preheader ]
  %460 = load ptr, ptr %35, align 8, !tbaa !9
  %461 = getelementptr inbounds double, ptr %460, i64 %.1111921364
  %462 = load double, ptr %461, align 8, !tbaa !10
  %463 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %1)
  %464 = add nsw i64 %463, -2
  %465 = sitofp i64 %464 to double
  %466 = call double @llvm.fmuladd.f64(double %55, double %465, double %462)
  %467 = load ptr, ptr %37, align 8, !tbaa !9
  %468 = getelementptr inbounds double, ptr %467, i64 %.1111921364
  %469 = load double, ptr %468, align 8, !tbaa !10
  %470 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %466, ptr noundef %1)
  %471 = fsub double %469, %470
  %472 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %471, ptr noundef %1)
  %473 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.161365, double noundef %472, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %462, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %466, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  %474 = load double, ptr %28, align 8, !tbaa !10
  %475 = load double, ptr %31, align 8, !tbaa !10
  %476 = fsub double %474, %475
  %477 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %476, ptr noundef %1)
  %478 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %473, double noundef %477, ptr noundef %1)
  %479 = load double, ptr %29, align 8, !tbaa !10
  %480 = load double, ptr %32, align 8, !tbaa !10
  %481 = fsub double %479, %480
  %482 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %481, ptr noundef %1)
  %483 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %478, double noundef %482, ptr noundef %1)
  %484 = add nuw nsw i64 %.1111921364, 1
  %exitcond1507.not = icmp eq i64 %484, %.012081380
  br i1 %exitcond1507.not, label %485, label %.preheader1317, !llvm.loop !32

485:                                              ; preds = %.preheader1317
  %486 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %487 = call double @llvm.fmuladd.f64(double %55, double %486, double %49)
  %488 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %1)
  %489 = add nsw i64 %488, -2
  %490 = sitofp i64 %489 to double
  %491 = call double @llvm.fmuladd.f64(double %55, double %490, double %487)
  %492 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %487, ptr noundef %1)
  %493 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %491, ptr noundef %1)
  %494 = fsub double %492, %493
  %495 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %494, ptr noundef %1)
  %496 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %483, double noundef %495, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %487, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %491, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  %497 = load double, ptr %28, align 8, !tbaa !10
  %498 = load double, ptr %31, align 8, !tbaa !10
  %499 = fsub double %497, %498
  %500 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %499, ptr noundef %1)
  %501 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %496, double noundef %500, ptr noundef %1)
  %502 = load double, ptr %29, align 8, !tbaa !10
  %503 = load double, ptr %32, align 8, !tbaa !10
  %504 = fsub double %502, %503
  %505 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %504, ptr noundef %1)
  %506 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %501, double noundef %505, ptr noundef %1)
  br label %.loopexit1319

.preheader1318:                                   ; preds = %.preheader1318.preheader, %.preheader1318
  %.171363 = phi double [ %516, %.preheader1318 ], [ 0.000000e+00, %.preheader1318.preheader ]
  %.1211931362 = phi i64 [ %517, %.preheader1318 ], [ 0, %.preheader1318.preheader ]
  %507 = load ptr, ptr %36, align 8, !tbaa !9
  %508 = getelementptr inbounds double, ptr %507, i64 %.1211931362
  %509 = load double, ptr %508, align 8, !tbaa !10
  %510 = load ptr, ptr %35, align 8, !tbaa !9
  %511 = getelementptr inbounds double, ptr %510, i64 %.1211931362
  %512 = load double, ptr %511, align 8, !tbaa !10
  %513 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %512, ptr noundef %1)
  %514 = fsub double %509, %513
  %515 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %514, ptr noundef %1)
  %516 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.171363, double noundef %515, ptr noundef %1)
  %517 = add nuw nsw i64 %.1211931362, 1
  %exitcond1506.not = icmp eq i64 %517, %.012081380
  br i1 %exitcond1506.not, label %.loopexit1319, label %.preheader1318, !llvm.loop !33

.loopexit1319:                                    ; preds = %.preheader1318, %485
  %.18 = phi double [ %506, %485 ], [ %516, %.preheader1318 ]
  br i1 %.21367, label %520, label %518

518:                                              ; preds = %.loopexit1319
  %519 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.18, double noundef 0x3D95FD7FE1796496)
  br label %520

520:                                              ; preds = %518, %.loopexit1319
  %521 = phi i1 [ true, %.loopexit1319 ], [ %519, %518 ]
  %522 = icmp eq i64 %.112161366, 0
  br i1 %522, label %.thread1302, label %533

.thread1302:                                      ; preds = %520
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %172, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %171, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  %523 = load double, ptr %33, align 8, !tbaa !10
  %524 = load double, ptr %30, align 8, !tbaa !10
  %525 = fsub double %523, %524
  %526 = fdiv double %525, 2.000000e-05
  %527 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %526, ptr noundef %1)
  %528 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef 0.000000e+00, double noundef %527, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %174, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %173, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  %529 = load double, ptr %33, align 8, !tbaa !10
  %530 = load double, ptr %30, align 8, !tbaa !10
  %531 = fsub double %529, %530
  %532 = fdiv double %531, 2.000000e-05
  br label %.sink.split

533:                                              ; preds = %520
  br i1 %453, label %534, label %545

534:                                              ; preds = %533
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %175, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %176, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  %535 = load double, ptr %28, align 8, !tbaa !10
  %536 = load double, ptr %31, align 8, !tbaa !10
  %537 = fsub double %535, %536
  %538 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %537, ptr noundef %1)
  %539 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef 0.000000e+00, double noundef %538, ptr noundef %1)
  %540 = load double, ptr %29, align 8, !tbaa !10
  %541 = load double, ptr %32, align 8, !tbaa !10
  %542 = fsub double %540, %541
  br label %.sink.split

.sink.split:                                      ; preds = %534, %.thread1302
  %.sink1585 = phi double [ %532, %.thread1302 ], [ %542, %534 ]
  %.sink1583 = phi double [ %528, %.thread1302 ], [ %539, %534 ]
  %543 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.sink1585, ptr noundef %1)
  %544 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.sink1583, double noundef %543, ptr noundef %1)
  br label %545

545:                                              ; preds = %.sink.split, %533
  %.20 = phi double [ 0.000000e+00, %533 ], [ %544, %.sink.split ]
  br i1 %521, label %548, label %546

546:                                              ; preds = %545
  %547 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.20, double noundef 1.000000e-03)
  br label %548

548:                                              ; preds = %546, %545
  %549 = phi i1 [ true, %545 ], [ %547, %546 ]
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %49, double noundef %51, ptr noundef nonnull %20, double noundef 5.000000e-03, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef %1)
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %49, double noundef %51, ptr noundef nonnull %20, double noundef 0x3F5B4E81B4E81B4F, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef %1)
  %550 = load double, ptr %22, align 8, !tbaa !10
  %551 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %550, double noundef 0x3EB0C6F7A0B5ED8D)
  %.not1288 = xor i1 %551, true
  %brmerge1289 = or i1 %549, %.not1288
  %.mux1290 = or i1 %549, %551
  br i1 %brmerge1289, label %557, label %552

552:                                              ; preds = %548
  %553 = load double, ptr %25, align 8, !tbaa !10
  %554 = load double, ptr %22, align 8, !tbaa !10
  %555 = fdiv double %553, %554
  %556 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %555, double noundef 1.200000e+00)
  br label %557

557:                                              ; preds = %548, %552
  %.3.in = phi i1 [ %.mux1290, %548 ], [ %556, %552 ]
  %558 = load double, ptr %23, align 8, !tbaa !10
  %559 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %558, double noundef 0x3EB0C6F7A0B5ED8D)
  %.not1291 = xor i1 %559, true
  %brmerge1292 = or i1 %.3.in, %.not1291
  %.3.in.mux = or i1 %.3.in, %559
  br i1 %brmerge1292, label %565, label %560

560:                                              ; preds = %557
  %561 = load double, ptr %26, align 8, !tbaa !10
  %562 = load double, ptr %23, align 8, !tbaa !10
  %563 = fdiv double %561, %562
  %564 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %563, double noundef 1.200000e+00)
  br label %565

565:                                              ; preds = %557, %560
  %.4.in = phi i1 [ %.3.in.mux, %557 ], [ %564, %560 ]
  %566 = add nsw i64 %.112161366, 1
  %exitcond1508.not = icmp eq i64 %.112161366, 0
  br i1 %exitcond1508.not, label %567, label %.preheader1321, !llvm.loop !34

567:                                              ; preds = %565
  call void @_ZN11alglib_impl20spline1dbuildhermiteEPNS_9ae_vectorES1_S1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %11, i64 noundef %.012081380, ptr noundef nonnull %20, ptr noundef %1)
  br label %568

568:                                              ; preds = %567, %568
  %.211369 = phi double [ 0.000000e+00, %567 ], [ %578, %568 ]
  %.1311941368 = phi i64 [ 0, %567 ], [ %579, %568 ]
  %569 = load ptr, ptr %36, align 8, !tbaa !9
  %570 = getelementptr inbounds double, ptr %569, i64 %.1311941368
  %571 = load double, ptr %570, align 8, !tbaa !10
  %572 = load ptr, ptr %35, align 8, !tbaa !9
  %573 = getelementptr inbounds double, ptr %572, i64 %.1311941368
  %574 = load double, ptr %573, align 8, !tbaa !10
  %575 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %574, ptr noundef %1)
  %576 = fsub double %571, %575
  %577 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %576, ptr noundef %1)
  %578 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.211369, double noundef %577, ptr noundef %1)
  %579 = add nuw nsw i64 %.1311941368, 1
  %exitcond1509.not = icmp eq i64 %579, %.012081380
  br i1 %exitcond1509.not, label %580, label %568, !llvm.loop !35

580:                                              ; preds = %568
  br i1 %.111631377, label %583, label %581

581:                                              ; preds = %580
  %582 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %578, double noundef 0x3D95FD7FE1796496)
  br label %583

583:                                              ; preds = %581, %580
  %584 = phi i1 [ true, %580 ], [ %582, %581 ]
  br label %585

585:                                              ; preds = %583, %585
  %.221371 = phi double [ 0.000000e+00, %583 ], [ %603, %585 ]
  %.1411951370 = phi i64 [ 0, %583 ], [ %604, %585 ]
  %586 = load ptr, ptr %35, align 8, !tbaa !9
  %587 = getelementptr inbounds double, ptr %586, i64 %.1411951370
  %588 = load double, ptr %587, align 8, !tbaa !10
  %589 = fadd double %588, 1.000000e-05
  %590 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %589, ptr noundef %1)
  %591 = load ptr, ptr %35, align 8, !tbaa !9
  %592 = getelementptr inbounds double, ptr %591, i64 %.1411951370
  %593 = load double, ptr %592, align 8, !tbaa !10
  %594 = fadd double %593, -1.000000e-05
  %595 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %594, ptr noundef %1)
  %596 = fsub double %590, %595
  %597 = fdiv double %596, 2.000000e-05
  %598 = load ptr, ptr %38, align 8, !tbaa !9
  %599 = getelementptr inbounds double, ptr %598, i64 %.1411951370
  %600 = load double, ptr %599, align 8, !tbaa !10
  %601 = fsub double %600, %597
  %602 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %601, ptr noundef %1)
  %603 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.221371, double noundef %602, ptr noundef %1)
  %604 = add nuw nsw i64 %.1411951370, 1
  %exitcond1510.not = icmp eq i64 %604, %.012081380
  br i1 %exitcond1510.not, label %605, label %585, !llvm.loop !36

605:                                              ; preds = %585
  br i1 %584, label %.critedge1267, label %606

606:                                              ; preds = %605
  %607 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %603, double noundef 1.000000e-03)
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %49, double noundef %51, ptr noundef nonnull %20, double noundef 5.000000e-03, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef %1)
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %49, double noundef %51, ptr noundef nonnull %20, double noundef 0x3F5B4E81B4E81B4F, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef %1)
  br i1 %607, label %.critedge1269, label %608

608:                                              ; preds = %606
  %609 = load double, ptr %25, align 8, !tbaa !10
  %610 = load double, ptr %22, align 8, !tbaa !10
  %611 = fdiv double %609, %610
  %612 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %611, double noundef 1.200000e+00)
  br i1 %612, label %.critedge1269, label %613

.critedge1267:                                    ; preds = %605
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %49, double noundef %51, ptr noundef nonnull %20, double noundef 5.000000e-03, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef %1)
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %49, double noundef %51, ptr noundef nonnull %20, double noundef 0x3F5B4E81B4E81B4F, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef %1)
  br label %.critedge1269

613:                                              ; preds = %608
  %614 = load double, ptr %26, align 8, !tbaa !10
  %615 = load double, ptr %23, align 8, !tbaa !10
  %616 = fdiv double %614, %615
  %617 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %616, double noundef 1.200000e+00)
  br label %.critedge1269

.critedge1269:                                    ; preds = %606, %.critedge1267, %613, %608
  %618 = phi i1 [ true, %608 ], [ %617, %613 ], [ true, %.critedge1267 ], [ true, %606 ]
  call void @_ZN11alglib_impl18spline1dbuildakimaEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef %.012081380, ptr noundef nonnull %20, ptr noundef %1)
  br label %619

619:                                              ; preds = %.critedge1269, %619
  %.231373 = phi double [ 0.000000e+00, %.critedge1269 ], [ %629, %619 ]
  %.1511961372 = phi i64 [ 0, %.critedge1269 ], [ %630, %619 ]
  %620 = load ptr, ptr %36, align 8, !tbaa !9
  %621 = getelementptr inbounds double, ptr %620, i64 %.1511961372
  %622 = load double, ptr %621, align 8, !tbaa !10
  %623 = load ptr, ptr %35, align 8, !tbaa !9
  %624 = getelementptr inbounds double, ptr %623, i64 %.1511961372
  %625 = load double, ptr %624, align 8, !tbaa !10
  %626 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %625, ptr noundef %1)
  %627 = fsub double %622, %626
  %628 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %627, ptr noundef %1)
  %629 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.231373, double noundef %628, ptr noundef %1)
  %630 = add nuw nsw i64 %.1511961372, 1
  %exitcond1511.not = icmp eq i64 %630, %.012081380
  br i1 %exitcond1511.not, label %631, label %619, !llvm.loop !37

631:                                              ; preds = %619
  br i1 %.111651376, label %634, label %632

632:                                              ; preds = %631
  %633 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %629, double noundef 0x3D95FD7FE1796496)
  br label %634

634:                                              ; preds = %632, %631
  %635 = phi i1 [ true, %631 ], [ %633, %632 ]
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %49, double noundef %51, ptr noundef nonnull %20, double noundef 5.000000e-03, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef %1)
  call void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef %49, double noundef %51, ptr noundef nonnull %20, double noundef 0x3F5B4E81B4E81B4F, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef %1)
  br i1 %618, label %.critedge1271, label %636

636:                                              ; preds = %634
  %637 = load double, ptr %22, align 8, !tbaa !10
  %638 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %637, double noundef 1.000000e-10)
  br i1 %638, label %639, label %.critedge1273

639:                                              ; preds = %636
  %640 = load double, ptr %25, align 8, !tbaa !10
  %641 = load double, ptr %22, align 8, !tbaa !10
  %642 = fdiv double %640, %641
  %643 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %642, double noundef 1.200000e+00)
  br i1 %643, label %.critedge1271, label %.critedge1273

.critedge1273:                                    ; preds = %636, %639
  %644 = load double, ptr %23, align 8, !tbaa !10
  %645 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %644, double noundef 1.000000e-10)
  br i1 %645, label %646, label %.critedge1271

646:                                              ; preds = %.critedge1273
  %647 = load double, ptr %26, align 8, !tbaa !10
  %648 = load double, ptr %23, align 8, !tbaa !10
  %649 = fdiv double %647, %648
  %650 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %649, double noundef 1.200000e+00)
  br label %.critedge1271

.critedge1271:                                    ; preds = %634, %.critedge1273, %646, %639
  %651 = phi i1 [ true, %639 ], [ false, %.critedge1273 ], [ %650, %646 ], [ true, %634 ]
  %652 = add nuw nsw i64 %.011711374, 1
  %exitcond1512.not = icmp eq i64 %652, 21
  br i1 %exitcond1512.not, label %653, label %.peel.next, !llvm.loop !38

653:                                              ; preds = %.critedge1271
  %654 = add nuw nsw i64 %.012081380, 1
  %exitcond1513.not = icmp eq i64 %654, 11
  br i1 %exitcond1513.not, label %.preheader1313, label %43, !llvm.loop !39

.preheader1311:                                   ; preds = %696
  %655 = getelementptr inbounds i8, ptr %10, i64 56
  br label %699

.preheader1313:                                   ; preds = %653, %696
  %indvars.iv = phi i64 [ %indvars.iv.next, %696 ], [ 1, %653 ]
  %.211691396 = phi i1 [ %697, %696 ], [ %170, %653 ]
  %.112091395 = phi i64 [ %698, %696 ], [ 2, %653 ]
  %656 = add nsw i64 %.112091395, -1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.112091395, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.112091395, ptr noundef %1)
  %657 = sitofp i64 %656 to double
  br label %658

658:                                              ; preds = %.preheader1313, %658
  %.1611971386 = phi i64 [ 0, %.preheader1313 ], [ %669, %658 ]
  %659 = uitofp nneg i64 %.1611971386 to double
  %660 = fmul double %659, 2.000000e+00
  %661 = fdiv double %660, %657
  %662 = fadd double %661, -1.000000e+00
  %663 = load ptr, ptr %35, align 8, !tbaa !9
  %664 = getelementptr inbounds double, ptr %663, i64 %.1611971386
  store double %662, ptr %664, align 8, !tbaa !10
  %665 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %666 = call double @llvm.fmuladd.f64(double %665, double 2.000000e+00, double -1.000000e+00)
  %667 = load ptr, ptr %36, align 8, !tbaa !9
  %668 = getelementptr inbounds double, ptr %667, i64 %.1611971386
  store double %666, ptr %668, align 8, !tbaa !10
  %669 = add nuw nsw i64 %.1611971386, 1
  %exitcond1514.not = icmp eq i64 %669, %.112091395
  br i1 %exitcond1514.not, label %.lr.ph1393.preheader, label %658, !llvm.loop !40

.lr.ph1393.preheader:                             ; preds = %658
  call void @_ZN11alglib_impl19spline1dbuildlinearEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef %.112091395, ptr noundef nonnull %20, ptr noundef %1)
  br label %.lr.ph1393

.loopexit1312:                                    ; preds = %677
  %exitcond1516.not = icmp eq i64 %673, %indvars.iv
  br i1 %exitcond1516.not, label %._crit_edge1394, label %.lr.ph1393, !llvm.loop !41

.lr.ph1393:                                       ; preds = %.lr.ph1393.preheader, %.loopexit1312
  %.241391 = phi double [ %692, %.loopexit1312 ], [ 0.000000e+00, %.lr.ph1393.preheader ]
  %.011791390 = phi i64 [ %673, %.loopexit1312 ], [ 0, %.lr.ph1393.preheader ]
  %670 = load ptr, ptr %35, align 8, !tbaa !9
  %671 = getelementptr inbounds double, ptr %670, i64 %.011791390
  %672 = load double, ptr %671, align 8, !tbaa !10
  %673 = add nuw nsw i64 %.011791390, 1
  %674 = getelementptr inbounds double, ptr %670, i64 %673
  %675 = load double, ptr %674, align 8, !tbaa !10
  %676 = fsub double %675, %672
  br label %677

677:                                              ; preds = %.lr.ph1393, %677
  %.251388 = phi double [ %.241391, %.lr.ph1393 ], [ %692, %677 ]
  %.111721387 = phi i64 [ 1, %.lr.ph1393 ], [ %693, %677 ]
  %678 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %679 = call double @llvm.fmuladd.f64(double %676, double %678, double %672)
  %680 = load ptr, ptr %36, align 8, !tbaa !9
  %681 = getelementptr inbounds double, ptr %680, i64 %.011791390
  %682 = load double, ptr %681, align 8, !tbaa !10
  %683 = fsub double %679, %672
  %684 = fdiv double %683, %676
  %685 = getelementptr inbounds double, ptr %680, i64 %673
  %686 = load double, ptr %685, align 8, !tbaa !10
  %687 = fsub double %686, %682
  %688 = call double @llvm.fmuladd.f64(double %684, double %687, double %682)
  %689 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %679, ptr noundef %1)
  %690 = fsub double %689, %688
  %691 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %690, ptr noundef %1)
  %692 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.251388, double noundef %691, ptr noundef %1)
  %693 = add nuw nsw i64 %.111721387, 1
  %exitcond1515.not = icmp eq i64 %693, 21
  br i1 %exitcond1515.not, label %.loopexit1312, label %677, !llvm.loop !42

._crit_edge1394:                                  ; preds = %.loopexit1312
  br i1 %.211691396, label %696, label %694

694:                                              ; preds = %._crit_edge1394
  %695 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %692, double noundef 0x3D95FD7FE1796496)
  br label %696

696:                                              ; preds = %694, %._crit_edge1394
  %697 = phi i1 [ true, %._crit_edge1394 ], [ %695, %694 ]
  %698 = add nuw nsw i64 %.112091395, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond1517.not = icmp eq i64 %indvars.iv.next, 10
  br i1 %exitcond1517.not, label %.preheader1311, label %.preheader1313, !llvm.loop !43

699:                                              ; preds = %.preheader1311, %760
  %.211661405 = phi i1 [ %635, %.preheader1311 ], [ %761, %760 ]
  %.212101404 = phi i64 [ 5, %.preheader1311 ], [ %762, %760 ]
  %700 = add nsw i64 %.212101404, -1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.212101404, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.212101404, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.212101404, ptr noundef %1)
  %701 = sitofp i64 %700 to double
  br label %702

702:                                              ; preds = %699, %702
  %.1711981397 = phi i64 [ 0, %699 ], [ %716, %702 ]
  %703 = uitofp nneg i64 %.1711981397 to double
  %704 = fmul double %703, 2.000000e+00
  %705 = fdiv double %704, %701
  %706 = fadd double %705, -1.000000e+00
  %707 = load ptr, ptr %35, align 8, !tbaa !9
  %708 = getelementptr inbounds double, ptr %707, i64 %.1711981397
  store double %706, ptr %708, align 8, !tbaa !10
  %709 = load ptr, ptr %35, align 8, !tbaa !9
  %710 = getelementptr inbounds double, ptr %709, i64 %.1711981397
  %711 = load double, ptr %710, align 8, !tbaa !10
  %712 = call double @llvm.fmuladd.f64(double %711, double 0x40105616905F83B6, double 4.000000e-01)
  %713 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %712, ptr noundef %1)
  %714 = load ptr, ptr %36, align 8, !tbaa !9
  %715 = getelementptr inbounds double, ptr %714, i64 %.1711981397
  store double %713, ptr %715, align 8, !tbaa !10
  %716 = add nuw nsw i64 %.1711981397, 1
  %exitcond1518.not = icmp eq i64 %716, %.212101404
  br i1 %exitcond1518.not, label %717, label %702, !llvm.loop !44

717:                                              ; preds = %702
  call void @_ZN11alglib_impl18spline1dbuildakimaEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef %.212101404, ptr noundef nonnull %20, ptr noundef %1)
  %718 = add nsw i64 %.212101404, -2
  br label %719

719:                                              ; preds = %717, %.loopexit1309
  %.261403 = phi double [ 0.000000e+00, %717 ], [ %.30, %.loopexit1309 ]
  %.111801402 = phi i64 [ 0, %717 ], [ %756, %.loopexit1309 ]
  %720 = load ptr, ptr %655, align 8, !tbaa !9
  %721 = load ptr, ptr %36, align 8, !tbaa !9
  %722 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %700)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %720, i64 noundef 1, ptr noundef %721, i64 noundef 1, i64 noundef %722)
  %723 = load ptr, ptr %655, align 8, !tbaa !9
  %724 = getelementptr inbounds double, ptr %723, i64 %.111801402
  store double 5.000000e+00, ptr %724, align 8, !tbaa !10
  call void @_ZN11alglib_impl18spline1dbuildakimaEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %10, i64 noundef %.212101404, ptr noundef nonnull %21, ptr noundef %1)
  %725 = icmp ugt i64 %.111801402, 3
  br i1 %725, label %726, label %.loopexit1310

726:                                              ; preds = %719
  %727 = load ptr, ptr %35, align 8, !tbaa !9
  %728 = getelementptr double, ptr %727, i64 %.111801402
  %729 = getelementptr i8, ptr %728, i64 -24
  %730 = load double, ptr %729, align 8, !tbaa !10
  %731 = fadd double %730, 1.000000e+00
  br label %732

732:                                              ; preds = %726, %732
  %.271399 = phi double [ %.261403, %726 ], [ %739, %732 ]
  %.211731398 = phi i64 [ 1, %726 ], [ %740, %732 ]
  %733 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %734 = call double @llvm.fmuladd.f64(double %731, double %733, double -1.000000e+00)
  %735 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %734, ptr noundef %1)
  %736 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %21, double noundef %734, ptr noundef %1)
  %737 = fsub double %735, %736
  %738 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %737, ptr noundef %1)
  %739 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.271399, double noundef %738, ptr noundef %1)
  %740 = add nuw nsw i64 %.211731398, 1
  %exitcond1519.not = icmp eq i64 %740, 21
  br i1 %exitcond1519.not, label %.loopexit1310, label %732, !llvm.loop !45

.loopexit1310:                                    ; preds = %732, %719
  %.28 = phi double [ %.261403, %719 ], [ %739, %732 ]
  %741 = add nuw nsw i64 %.111801402, 3
  %.not = icmp ugt i64 %741, %718
  br i1 %.not, label %.loopexit1309, label %742

742:                                              ; preds = %.loopexit1310
  %743 = load ptr, ptr %35, align 8, !tbaa !9
  %744 = getelementptr inbounds double, ptr %743, i64 %741
  %745 = load double, ptr %744, align 8, !tbaa !10
  %746 = fsub double 1.000000e+00, %745
  br label %747

747:                                              ; preds = %742, %747
  %.291401 = phi double [ %.28, %742 ], [ %754, %747 ]
  %.311741400 = phi i64 [ 1, %742 ], [ %755, %747 ]
  %748 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %749 = call double @llvm.fmuladd.f64(double %746, double %748, double %745)
  %750 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %749, ptr noundef %1)
  %751 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %21, double noundef %749, ptr noundef %1)
  %752 = fsub double %750, %751
  %753 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %752, ptr noundef %1)
  %754 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.291401, double noundef %753, ptr noundef %1)
  %755 = add nuw nsw i64 %.311741400, 1
  %exitcond1520.not = icmp eq i64 %755, 21
  br i1 %exitcond1520.not, label %.loopexit1309, label %747, !llvm.loop !46

.loopexit1309:                                    ; preds = %747, %.loopexit1310
  %.30 = phi double [ %.28, %.loopexit1310 ], [ %754, %747 ]
  %756 = add nuw nsw i64 %.111801402, 1
  %exitcond1521.not = icmp eq i64 %756, %.212101404
  br i1 %exitcond1521.not, label %757, label %719, !llvm.loop !47

757:                                              ; preds = %.loopexit1309
  br i1 %.211661405, label %760, label %758

758:                                              ; preds = %757
  %759 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.30, double noundef 0x3D95FD7FE1796496)
  br label %760

760:                                              ; preds = %758, %757
  %761 = phi i1 [ true, %757 ], [ %759, %758 ]
  %762 = add nuw nsw i64 %.212101404, 1
  %exitcond1522.not = icmp eq i64 %762, 11
  br i1 %exitcond1522.not, label %.preheader1308, label %699, !llvm.loop !48

.preheader1307:                                   ; preds = %836
  %763 = getelementptr inbounds i8, ptr %14, i64 56
  br label %839

.preheader1308:                                   ; preds = %760, %836
  %.011701414 = phi i1 [ %818, %836 ], [ false, %760 ]
  %.312111413 = phi i64 [ %838, %836 ], [ 2, %760 ]
  %.012171412 = phi i1 [ %837, %836 ], [ false, %760 ]
  %.012181411 = phi i1 [ %832, %836 ], [ false, %760 ]
  %764 = add nsw i64 %.312111413, -1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.312111413, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.312111413, ptr noundef %1)
  %765 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %766 = fsub double -1.000000e+00, %765
  %767 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %768 = fadd double %767, 1.000000e+00
  %769 = fsub double %768, %766
  %770 = sitofp i64 %764 to double
  br label %771

771:                                              ; preds = %.preheader1308, %771
  %.1811991406 = phi i64 [ 0, %.preheader1308 ], [ %785, %771 ]
  %772 = uitofp nneg i64 %.1811991406 to double
  %773 = fmul double %769, %772
  %774 = fdiv double %773, %770
  %775 = fadd double %766, %774
  %776 = load ptr, ptr %35, align 8, !tbaa !9
  %777 = getelementptr inbounds double, ptr %776, i64 %.1811991406
  store double %775, ptr %777, align 8, !tbaa !10
  %778 = load ptr, ptr %35, align 8, !tbaa !9
  %779 = getelementptr inbounds double, ptr %778, i64 %.1811991406
  %780 = load double, ptr %779, align 8, !tbaa !10
  %781 = call double @llvm.fmuladd.f64(double %780, double 0x40105616905F83B6, double 4.000000e-01)
  %782 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %781, ptr noundef %1)
  %783 = load ptr, ptr %36, align 8, !tbaa !9
  %784 = getelementptr inbounds double, ptr %783, i64 %.1811991406
  store double %782, ptr %784, align 8, !tbaa !10
  %785 = add nuw nsw i64 %.1811991406, 1
  %exitcond1523.not = icmp eq i64 %785, %.312111413
  br i1 %exitcond1523.not, label %786, label %771, !llvm.loop !49

786:                                              ; preds = %771
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef %.312111413, i64 noundef 2, double noundef 0.000000e+00, i64 noundef 2, double noundef 0.000000e+00, ptr noundef nonnull %20, ptr noundef %1)
  br label %787

787:                                              ; preds = %786, %787
  %.311408 = phi double [ 0.000000e+00, %786 ], [ %812, %787 ]
  %.411751407 = phi i64 [ 1, %786 ], [ %813, %787 ]
  %788 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %789 = call double @llvm.fmuladd.f64(double %769, double %788, double %766)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %20, double noundef %789, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  %790 = fadd double %789, -1.000000e-05
  %791 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %790, ptr noundef %1)
  %792 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %789, ptr noundef %1)
  %793 = fadd double %789, 1.000000e-05
  %794 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %793, ptr noundef %1)
  %795 = load double, ptr %28, align 8, !tbaa !10
  %796 = fsub double %795, %792
  %797 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %796, ptr noundef %1)
  %798 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.311408, double noundef %797, ptr noundef %1)
  %799 = load double, ptr %29, align 8, !tbaa !10
  %800 = fsub double %794, %791
  %801 = fdiv double %800, 2.000000e-05
  %802 = fsub double %799, %801
  %803 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %802, ptr noundef %1)
  %804 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %798, double noundef %803, ptr noundef %1)
  %805 = load double, ptr %30, align 8, !tbaa !10
  %806 = call double @llvm.fmuladd.f64(double %792, double -2.000000e+00, double %794)
  %807 = fadd double %791, %806
  %808 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef 1.000000e-05, ptr noundef %1)
  %809 = fdiv double %807, %808
  %810 = fsub double %805, %809
  %811 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %810, ptr noundef %1)
  %812 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %804, double noundef %811, ptr noundef %1)
  %813 = add nuw nsw i64 %.411751407, 1
  %exitcond1524.not = icmp eq i64 %813, 21
  br i1 %exitcond1524.not, label %814, label %787, !llvm.loop !50

814:                                              ; preds = %787
  br i1 %.011701414, label %817, label %815

815:                                              ; preds = %814
  %816 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %812, double noundef 1.000000e-03)
  br label %817

817:                                              ; preds = %815, %814
  %818 = phi i1 [ true, %814 ], [ %816, %815 ]
  call void @_ZL30testspline1dunit_unsetspline1dPN11alglib_impl19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %21, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1dcopyEPNS_19spline1dinterpolantES1_PNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef %1)
  br label %819

819:                                              ; preds = %817, %819
  %.321410 = phi double [ 0.000000e+00, %817 ], [ %826, %819 ]
  %.511761409 = phi i64 [ 1, %817 ], [ %827, %819 ]
  %820 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %821 = call double @llvm.fmuladd.f64(double %769, double %820, double %766)
  %822 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %821, ptr noundef %1)
  %823 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %21, double noundef %821, ptr noundef %1)
  %824 = fsub double %822, %823
  %825 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %824, ptr noundef %1)
  %826 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.321410, double noundef %825, ptr noundef %1)
  %827 = add nuw nsw i64 %.511761409, 1
  %exitcond1525.not = icmp eq i64 %827, 21
  br i1 %exitcond1525.not, label %828, label %819, !llvm.loop !51

828:                                              ; preds = %819
  br i1 %.012181411, label %831, label %829

829:                                              ; preds = %828
  %830 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %826, double noundef 0x3D95FD7FE1796496)
  br label %831

831:                                              ; preds = %829, %828
  %832 = phi i1 [ true, %828 ], [ %830, %829 ]
  br i1 %.012171412, label %836, label %833

833:                                              ; preds = %831
  %834 = call noundef zeroext i1 @_ZL27testspline1dunit_testunpackPN11alglib_impl19spline1dinterpolantEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef nonnull %5, ptr noundef %1)
  %835 = xor i1 %834, true
  br label %836

836:                                              ; preds = %833, %831
  %837 = phi i1 [ true, %831 ], [ %835, %833 ]
  %838 = add nuw nsw i64 %.312111413, 1
  %exitcond1526.not = icmp eq i64 %838, 11
  br i1 %exitcond1526.not, label %.preheader1307, label %.preheader1308, !llvm.loop !52

839:                                              ; preds = %.preheader1307, %._crit_edge1444
  %.412121447 = phi i64 [ 2, %.preheader1307 ], [ %964, %._crit_edge1444 ]
  %.012191446 = phi i8 [ 0, %.preheader1307 ], [ %.11220.lcssa, %._crit_edge1444 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.412121447, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.412121447, ptr noundef %1)
  %840 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %841 = fsub double -1.000000e+00, %840
  %842 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %843 = fadd double %842, 1.000000e+00
  %844 = add nsw i64 %.412121447, -1
  %845 = fsub double %843, %841
  %846 = sitofp i64 %844 to double
  br label %847

847:                                              ; preds = %839, %847
  %.1912001415 = phi i64 [ 0, %839 ], [ %861, %847 ]
  %848 = uitofp nneg i64 %.1912001415 to double
  %849 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %850 = call double @llvm.fmuladd.f64(double %849, double 2.000000e-01, double %848)
  %851 = fadd double %850, -1.000000e-01
  %852 = fmul double %845, %851
  %853 = fdiv double %852, %846
  %854 = fadd double %841, %853
  %855 = load ptr, ptr %35, align 8, !tbaa !9
  %856 = getelementptr inbounds double, ptr %855, i64 %.1912001415
  store double %854, ptr %856, align 8, !tbaa !10
  %857 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %858 = call double @llvm.fmuladd.f64(double %857, double 2.000000e+00, double -1.000000e+00)
  %859 = load ptr, ptr %36, align 8, !tbaa !9
  %860 = getelementptr inbounds double, ptr %859, i64 %.1912001415
  store double %858, ptr %860, align 8, !tbaa !10
  %861 = add nuw nsw i64 %.1912001415, 1
  %exitcond1527.not = icmp eq i64 %861, %.412121447
  br i1 %exitcond1527.not, label %862, label %847, !llvm.loop !53

862:                                              ; preds = %847
  %863 = mul nuw nsw i64 %.412121447, 5
  %864 = add nuw nsw i64 %863, 2
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %864, ptr noundef %1)
  %865 = load i64, ptr %14, align 8, !tbaa !19
  %.not.not12381416 = icmp sgt i64 %865, 0
  br i1 %.not.not12381416, label %.lr.ph1419, label %._crit_edge1420

.lr.ph1419:                                       ; preds = %862
  %866 = add nsw i64 %865, -3
  %867 = sitofp i64 %866 to double
  %xtraiter = and i64 %865, 1
  %868 = icmp eq i64 %865, 1
  br i1 %868, label %._crit_edge1420.loopexit.unr-lcssa, label %.lr.ph1419.new

.lr.ph1419.new:                                   ; preds = %.lr.ph1419
  %unroll_iter = and i64 %865, 9223372036854775806
  br label %869

869:                                              ; preds = %869, %.lr.ph1419.new
  %.2012011417 = phi i64 [ 0, %.lr.ph1419.new ], [ %884, %869 ]
  %niter = phi i64 [ 0, %.lr.ph1419.new ], [ %niter.next.1, %869 ]
  %870 = add nsw i64 %.2012011417, -1
  %871 = sitofp i64 %870 to double
  %872 = fmul double %845, %871
  %873 = fdiv double %872, %867
  %874 = fadd double %841, %873
  %875 = load ptr, ptr %763, align 8, !tbaa !9
  %876 = getelementptr inbounds double, ptr %875, i64 %.2012011417
  store double %874, ptr %876, align 8, !tbaa !10
  %877 = or disjoint i64 %.2012011417, 1
  %878 = uitofp nneg i64 %.2012011417 to double
  %879 = fmul double %845, %878
  %880 = fdiv double %879, %867
  %881 = fadd double %841, %880
  %882 = load ptr, ptr %763, align 8, !tbaa !9
  %883 = getelementptr inbounds double, ptr %882, i64 %877
  store double %881, ptr %883, align 8, !tbaa !10
  %884 = add nuw nsw i64 %.2012011417, 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 %._crit_edge1420.loopexit.unr-lcssa, label %869, !llvm.loop !54

._crit_edge1420.loopexit.unr-lcssa:               ; preds = %869, %.lr.ph1419
  %.2012011417.unr = phi i64 [ 0, %.lr.ph1419 ], [ %884, %869 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge1420, label %._crit_edge1420.loopexit.epilog-lcssa

._crit_edge1420.loopexit.epilog-lcssa:            ; preds = %._crit_edge1420.loopexit.unr-lcssa
  %885 = add nsw i64 %.2012011417.unr, -1
  %886 = sitofp i64 %885 to double
  %887 = fmul double %845, %886
  %888 = fdiv double %887, %867
  %889 = fadd double %841, %888
  %890 = load ptr, ptr %763, align 8, !tbaa !9
  %891 = getelementptr inbounds double, ptr %890, i64 %.2012011417.unr
  store double %889, ptr %891, align 8, !tbaa !10
  br label %._crit_edge1420

._crit_edge1420:                                  ; preds = %._crit_edge1420.loopexit.epilog-lcssa, %._crit_edge1420.loopexit.unr-lcssa, %862
  store i64 0, ptr %34, align 8, !tbaa !55
  %892 = call noundef zeroext i1 @_ZL36testspline1dunit_enumerateallsplinesPN11alglib_impl9ae_vectorES1_lPlPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef %.412121447, ptr noundef nonnull %34, ptr noundef nonnull %20, ptr noundef %1)
  br i1 %892, label %.lr.ph1443, label %._crit_edge1444

.loopexit:                                        ; preds = %959, %._crit_edge1433
  %.41223.lcssa = phi i8 [ %.31222.lcssa, %._crit_edge1433 ], [ %962, %959 ]
  %893 = call noundef zeroext i1 @_ZL36testspline1dunit_enumerateallsplinesPN11alglib_impl9ae_vectorES1_lPlPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef %.412121447, ptr noundef nonnull %34, ptr noundef nonnull %20, ptr noundef %1)
  br i1 %893, label %.lr.ph1443, label %._crit_edge1444, !llvm.loop !56

.lr.ph1443:                                       ; preds = %._crit_edge1420, %.loopexit
  %.112201441 = phi i8 [ %.41223.lcssa, %.loopexit ], [ %.012191446, %._crit_edge1420 ]
  %894 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %895 = call double @llvm.fmuladd.f64(double %894, double 4.000000e+00, double -2.000000e+00)
  %896 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %897 = call double @llvm.fmuladd.f64(double %896, double 2.000000e+00, double -1.000000e+00)
  call void @_ZN11alglib_impl12spline1dcopyEPNS_19spline1dinterpolantES1_PNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef %1)
  call void @_ZN11alglib_impl17spline1dlintransxEPNS_19spline1dinterpolantEddPNS_8ae_stateE(ptr noundef nonnull %21, double noundef %895, double noundef %897, ptr noundef %1)
  %898 = load i64, ptr %14, align 8, !tbaa !19
  %.not.not12391421 = icmp sgt i64 %898, 0
  br i1 %.not.not12391421, label %.lr.ph1425, label %._crit_edge1426

.lr.ph1425:                                       ; preds = %.lr.ph1443, %915
  %899 = phi i64 [ %916, %915 ], [ %898, %.lr.ph1443 ]
  %.2112021423 = phi i64 [ %919, %915 ], [ 0, %.lr.ph1443 ]
  %.212211422 = phi i8 [ %918, %915 ], [ %.112201441, %.lr.ph1443 ]
  %900 = trunc nuw i8 %.212211422 to i1
  br i1 %900, label %915, label %901

901:                                              ; preds = %.lr.ph1425
  %902 = load ptr, ptr %763, align 8, !tbaa !9
  %903 = getelementptr inbounds double, ptr %902, i64 %.2112021423
  %904 = load double, ptr %903, align 8, !tbaa !10
  %905 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %904, ptr noundef %1)
  %906 = load ptr, ptr %763, align 8, !tbaa !9
  %907 = getelementptr inbounds double, ptr %906, i64 %.2112021423
  %908 = load double, ptr %907, align 8, !tbaa !10
  %909 = fsub double %908, %897
  %910 = fdiv double %909, %895
  %911 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %21, double noundef %910, ptr noundef %1)
  %912 = fsub double %905, %911
  %913 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %912, ptr noundef %1)
  %914 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %913, double noundef 0x3D95FD7FE1796496)
  %.pre1541 = load i64, ptr %14, align 8, !tbaa !19
  br label %915

915:                                              ; preds = %901, %.lr.ph1425
  %916 = phi i64 [ %899, %.lr.ph1425 ], [ %.pre1541, %901 ]
  %917 = phi i1 [ true, %.lr.ph1425 ], [ %914, %901 ]
  %918 = zext i1 %917 to i8
  %919 = add nuw nsw i64 %.2112021423, 1
  %.not.not1239 = icmp slt i64 %919, %916
  br i1 %.not.not1239, label %.lr.ph1425, label %._crit_edge1426, !llvm.loop !57

._crit_edge1426:                                  ; preds = %915, %.lr.ph1443
  %.21221.lcssa = phi i8 [ %.112201441, %.lr.ph1443 ], [ %918, %915 ]
  %920 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %921 = call double @llvm.fmuladd.f64(double %920, double 2.000000e+00, double -1.000000e+00)
  call void @_ZN11alglib_impl12spline1dcopyEPNS_19spline1dinterpolantES1_PNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef %1)
  call void @_ZN11alglib_impl17spline1dlintransxEPNS_19spline1dinterpolantEddPNS_8ae_stateE(ptr noundef nonnull %21, double noundef 0.000000e+00, double noundef %921, ptr noundef %1)
  %922 = load i64, ptr %14, align 8, !tbaa !19
  %.not.not12401428 = icmp sgt i64 %922, 0
  br i1 %.not.not12401428, label %.lr.ph1432, label %._crit_edge1433

.lr.ph1432:                                       ; preds = %._crit_edge1426, %934
  %923 = phi i64 [ %935, %934 ], [ %922, %._crit_edge1426 ]
  %.2212031430 = phi i64 [ %938, %934 ], [ 0, %._crit_edge1426 ]
  %.312221429 = phi i8 [ %937, %934 ], [ %.21221.lcssa, %._crit_edge1426 ]
  %924 = trunc nuw i8 %.312221429 to i1
  br i1 %924, label %934, label %925

925:                                              ; preds = %.lr.ph1432
  %926 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %921, ptr noundef %1)
  %927 = load ptr, ptr %763, align 8, !tbaa !9
  %928 = getelementptr inbounds double, ptr %927, i64 %.2212031430
  %929 = load double, ptr %928, align 8, !tbaa !10
  %930 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %21, double noundef %929, ptr noundef %1)
  %931 = fsub double %926, %930
  %932 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %931, ptr noundef %1)
  %933 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %932, double noundef 0x3D95FD7FE1796496)
  %.pre1542 = load i64, ptr %14, align 8, !tbaa !19
  br label %934

934:                                              ; preds = %925, %.lr.ph1432
  %935 = phi i64 [ %923, %.lr.ph1432 ], [ %.pre1542, %925 ]
  %936 = phi i1 [ true, %.lr.ph1432 ], [ %933, %925 ]
  %937 = zext i1 %936 to i8
  %938 = add nuw nsw i64 %.2212031430, 1
  %.not.not1240 = icmp slt i64 %938, %935
  br i1 %.not.not1240, label %.lr.ph1432, label %._crit_edge1433, !llvm.loop !58

._crit_edge1433:                                  ; preds = %934, %._crit_edge1426
  %.31222.lcssa = phi i8 [ %.21221.lcssa, %._crit_edge1426 ], [ %937, %934 ]
  %939 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %940 = call double @llvm.fmuladd.f64(double %939, double 2.000000e+00, double -1.000000e+00)
  %941 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %942 = call double @llvm.fmuladd.f64(double %941, double 2.000000e+00, double -1.000000e+00)
  call void @_ZN11alglib_impl12spline1dcopyEPNS_19spline1dinterpolantES1_PNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef %1)
  call void @_ZN11alglib_impl17spline1dlintransyEPNS_19spline1dinterpolantEddPNS_8ae_stateE(ptr noundef nonnull %21, double noundef %940, double noundef %942, ptr noundef %1)
  %943 = load i64, ptr %14, align 8, !tbaa !19
  %.not.not12411435 = icmp sgt i64 %943, 0
  br i1 %.not.not12411435, label %.lr.ph1439, label %.loopexit

.lr.ph1439:                                       ; preds = %._crit_edge1433, %959
  %944 = phi i64 [ %960, %959 ], [ %943, %._crit_edge1433 ]
  %.2312041437 = phi i64 [ %963, %959 ], [ 0, %._crit_edge1433 ]
  %.412231436 = phi i8 [ %962, %959 ], [ %.31222.lcssa, %._crit_edge1433 ]
  %945 = trunc nuw i8 %.412231436 to i1
  br i1 %945, label %959, label %946

946:                                              ; preds = %.lr.ph1439
  %947 = load ptr, ptr %763, align 8, !tbaa !9
  %948 = getelementptr inbounds double, ptr %947, i64 %.2312041437
  %949 = load double, ptr %948, align 8, !tbaa !10
  %950 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %949, ptr noundef %1)
  %951 = call double @llvm.fmuladd.f64(double %940, double %950, double %942)
  %952 = load ptr, ptr %763, align 8, !tbaa !9
  %953 = getelementptr inbounds double, ptr %952, i64 %.2312041437
  %954 = load double, ptr %953, align 8, !tbaa !10
  %955 = call noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %21, double noundef %954, ptr noundef %1)
  %956 = fsub double %951, %955
  %957 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %956, ptr noundef %1)
  %958 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %957, double noundef 0x3D95FD7FE1796496)
  %.pre1543 = load i64, ptr %14, align 8, !tbaa !19
  br label %959

959:                                              ; preds = %946, %.lr.ph1439
  %960 = phi i64 [ %944, %.lr.ph1439 ], [ %.pre1543, %946 ]
  %961 = phi i1 [ true, %.lr.ph1439 ], [ %958, %946 ]
  %962 = zext i1 %961 to i8
  %963 = add nuw nsw i64 %.2312041437, 1
  %.not.not1241 = icmp slt i64 %963, %960
  br i1 %.not.not1241, label %.lr.ph1439, label %.loopexit, !llvm.loop !59

._crit_edge1444:                                  ; preds = %.loopexit, %._crit_edge1420
  %.11220.lcssa = phi i8 [ %.012191446, %._crit_edge1420 ], [ %.41223.lcssa, %.loopexit ]
  %964 = add nuw nsw i64 %.412121447, 1
  %exitcond1529.not = icmp eq i64 %964, 11
  br i1 %exitcond1529.not, label %.preheader, label %839, !llvm.loop !60

.preheader:                                       ; preds = %._crit_edge1444, %1022
  %.331452 = phi double [ %1020, %1022 ], [ 0.000000e+00, %._crit_edge1444 ]
  %.512131451 = phi i64 [ %1023, %1022 ], [ 20, %._crit_edge1444 ]
  %965 = add nsw i64 %.512131451, -1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.512131451, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.512131451, ptr noundef %1)
  %966 = sitofp i64 %965 to double
  br label %967

967:                                              ; preds = %.preheader, %993
  %.341450 = phi double [ %.331452, %.preheader ], [ %1020, %993 ]
  %.611771449 = phi i64 [ 1, %.preheader ], [ %1021, %993 ]
  %968 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %969 = call double @llvm.fmuladd.f64(double %968, double -2.000000e-01, double -1.000000e+00)
  %970 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %971 = call double @llvm.fmuladd.f64(double %970, double 2.000000e-01, double 1.000000e+00)
  %972 = fsub double %971, %969
  br label %973

973:                                              ; preds = %967, %973
  %.2412051448 = phi i64 [ 0, %967 ], [ %992, %973 ]
  %974 = uitofp nneg i64 %.2412051448 to double
  %975 = fmul double %972, %974
  %976 = fdiv double %975, %966
  %977 = fadd double %969, %976
  %978 = load ptr, ptr %35, align 8, !tbaa !9
  %979 = getelementptr inbounds double, ptr %978, i64 %.2412051448
  store double %977, ptr %979, align 8, !tbaa !10
  %980 = load ptr, ptr %35, align 8, !tbaa !9
  %981 = getelementptr inbounds double, ptr %980, i64 %.2412051448
  %982 = load double, ptr %981, align 8, !tbaa !10
  %983 = call double @llvm.fmuladd.f64(double %982, double 0x400921FB54442D18, double 4.000000e-01)
  %984 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %983, ptr noundef %1)
  %985 = load ptr, ptr %35, align 8, !tbaa !9
  %986 = getelementptr inbounds double, ptr %985, i64 %.2412051448
  %987 = load double, ptr %986, align 8, !tbaa !10
  %988 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %987, ptr noundef %1)
  %989 = fadd double %984, %988
  %990 = load ptr, ptr %36, align 8, !tbaa !9
  %991 = getelementptr inbounds double, ptr %990, i64 %.2412051448
  store double %989, ptr %991, align 8, !tbaa !10
  %992 = add nuw nsw i64 %.2412051448, 1
  %exitcond1530.not = icmp eq i64 %992, %.512131451
  br i1 %exitcond1530.not, label %993, label %973, !llvm.loop !61

993:                                              ; preds = %973
  %994 = call double @llvm.fmuladd.f64(double %969, double 0x400921FB54442D18, double 4.000000e-01)
  %995 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %994, ptr noundef %1)
  %996 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %969, ptr noundef %1)
  %997 = call double @llvm.fmuladd.f64(double %995, double 0x400921FB54442D18, double %996)
  %998 = call double @llvm.fmuladd.f64(double %971, double 0x400921FB54442D18, double 4.000000e-01)
  %999 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %998, ptr noundef %1)
  %1000 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %971, ptr noundef %1)
  %1001 = call double @llvm.fmuladd.f64(double %999, double 0x400921FB54442D18, double %1000)
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef %.512131451, i64 noundef 1, double noundef %997, i64 noundef 1, double noundef %1001, ptr noundef nonnull %20, ptr noundef %1)
  %1002 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1003 = call double @llvm.fmuladd.f64(double %972, double %1002, double %969)
  %1004 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %994, ptr noundef %1)
  %1005 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %969, ptr noundef %1)
  %1006 = call double @llvm.fmuladd.f64(double %1003, double 0x400921FB54442D18, double 4.000000e-01)
  %1007 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %1006, ptr noundef %1)
  %1008 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %1003, ptr noundef %1)
  %1009 = insertelement <2 x double> poison, double %1007, i64 0
  %1010 = insertelement <2 x double> %1009, double %1004, i64 1
  %1011 = fdiv <2 x double> %1010, <double 0x400921FB54442D18, double 0x400921FB54442D18>
  %1012 = insertelement <2 x double> poison, double %1008, i64 0
  %1013 = insertelement <2 x double> %1012, double %1005, i64 1
  %1014 = fsub <2 x double> %1013, %1011
  %shift = shufflevector <2 x double> %1014, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %1015 = fsub <2 x double> %1014, %shift
  %1016 = extractelement <2 x double> %1015, i64 0
  %1017 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %1003, ptr noundef %1)
  %1018 = fsub double %1016, %1017
  %1019 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1018, ptr noundef %1)
  %1020 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.341450, double noundef %1019, ptr noundef %1)
  %1021 = add nuw nsw i64 %.611771449, 1
  %exitcond1531.not = icmp eq i64 %1021, 21
  br i1 %exitcond1531.not, label %1022, label %967, !llvm.loop !62

1022:                                             ; preds = %993
  %1023 = add nuw nsw i64 %.512131451, 1
  %exitcond1532.not = icmp eq i64 %1023, 36
  br i1 %exitcond1532.not, label %1024, label %.preheader, !llvm.loop !63

1024:                                             ; preds = %1022
  %1025 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1020, double noundef 1.000000e-03)
  %1026 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1027 = call double @llvm.fmuladd.f64(double %1026, double 2.000000e+00, double -1.000000e+00)
  %1028 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1029 = call double @llvm.fmuladd.f64(double %1028, double 2.000000e+00, double -1.000000e+00)
  %1030 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1031 = call double @llvm.fmuladd.f64(double %1030, double 2.000000e+00, double -1.000000e+00)
  %1032 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1033 = fsub double -5.000000e-01, %1032
  %1034 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1035 = fadd double %1034, 5.000000e-01
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef 2, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 2, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef 2, ptr noundef %1)
  %1036 = load ptr, ptr %35, align 8, !tbaa !9
  store double %1033, ptr %1036, align 8, !tbaa !10
  %1037 = call double @llvm.fmuladd.f64(double %1029, double %1033, double %1027)
  %1038 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1033, ptr noundef %1)
  %1039 = call double @llvm.fmuladd.f64(double %1031, double %1038, double %1037)
  %1040 = load ptr, ptr %36, align 8, !tbaa !9
  store double %1039, ptr %1040, align 8, !tbaa !10
  %1041 = fmul double %1031, 2.000000e+00
  %1042 = call double @llvm.fmuladd.f64(double %1041, double %1033, double %1029)
  %1043 = load ptr, ptr %38, align 8, !tbaa !9
  store double %1042, ptr %1043, align 8, !tbaa !10
  %1044 = load ptr, ptr %35, align 8, !tbaa !9
  %1045 = getelementptr inbounds i8, ptr %1044, i64 8
  store double %1035, ptr %1045, align 8, !tbaa !10
  %1046 = call double @llvm.fmuladd.f64(double %1029, double %1035, double %1027)
  %1047 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1035, ptr noundef %1)
  %1048 = call double @llvm.fmuladd.f64(double %1031, double %1047, double %1046)
  %1049 = load ptr, ptr %36, align 8, !tbaa !9
  %1050 = getelementptr inbounds i8, ptr %1049, i64 8
  store double %1048, ptr %1050, align 8, !tbaa !10
  %1051 = call double @llvm.fmuladd.f64(double %1041, double %1035, double %1029)
  %1052 = load ptr, ptr %38, align 8, !tbaa !9
  %1053 = getelementptr inbounds i8, ptr %1052, i64 8
  store double %1051, ptr %1053, align 8, !tbaa !10
  call void @_ZN11alglib_impl20spline1dbuildhermiteEPNS_9ae_vectorES1_S1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %11, i64 noundef 2, ptr noundef nonnull %20, ptr noundef %1)
  %1054 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %1033, double noundef %1035, ptr noundef %1)
  %1055 = fsub double %1035, %1033
  %1056 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1055, ptr noundef %1)
  %1057 = fsub double %1054, %1056
  %1058 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %1033, double noundef %1035, ptr noundef %1)
  %1059 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1055, ptr noundef %1)
  %1060 = fadd double %1058, %1059
  %1061 = fsub double %1060, %1057
  %1062 = insertelement <2 x double> poison, double %1027, i64 0
  %1063 = shufflevector <2 x double> %1062, <2 x double> poison, <2 x i32> zeroinitializer
  %1064 = insertelement <2 x double> poison, double %1029, i64 0
  %1065 = shufflevector <2 x double> %1064, <2 x double> poison, <2 x i32> zeroinitializer
  %1066 = insertelement <2 x double> poison, double %1031, i64 0
  %1067 = shufflevector <2 x double> %1066, <2 x double> poison, <2 x i32> zeroinitializer
  br label %1068

1068:                                             ; preds = %1024, %1068
  %.351454 = phi double [ 0.000000e+00, %1024 ], [ %1093, %1068 ]
  %.711781453 = phi i64 [ 1, %1024 ], [ %1094, %1068 ]
  %1069 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1070 = call double @llvm.fmuladd.f64(double %1061, double %1069, double %1057)
  %1071 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1070, ptr noundef %1)
  %1072 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1070, ptr noundef %1)
  %1073 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1033, ptr noundef %1)
  %1074 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1033, ptr noundef %1)
  %1075 = insertelement <2 x double> poison, double %1071, i64 0
  %1076 = insertelement <2 x double> %1075, double %1073, i64 1
  %1077 = fmul <2 x double> %1065, %1076
  %1078 = fmul <2 x double> %1077, <double 5.000000e-01, double 5.000000e-01>
  %1079 = insertelement <2 x double> poison, double %1070, i64 0
  %1080 = insertelement <2 x double> %1079, double %1033, i64 1
  %1081 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %1063, <2 x double> %1080, <2 x double> %1078)
  %1082 = insertelement <2 x double> poison, double %1072, i64 0
  %1083 = insertelement <2 x double> %1082, double %1074, i64 1
  %1084 = fmul <2 x double> %1067, %1083
  %1085 = fmul <2 x double> %1080, %1084
  %1086 = fdiv <2 x double> %1085, <double 3.000000e+00, double 3.000000e+00>
  %1087 = fadd <2 x double> %1081, %1086
  %shift1636 = shufflevector <2 x double> %1087, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %1088 = fsub <2 x double> %1087, %shift1636
  %1089 = extractelement <2 x double> %1088, i64 0
  %1090 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %1070, ptr noundef %1)
  %1091 = fsub double %1089, %1090
  %1092 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1091, ptr noundef %1)
  %1093 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.351454, double noundef %1092, ptr noundef %1)
  %1094 = add nuw nsw i64 %.711781453, 1
  %exitcond1533.not = icmp eq i64 %1094, 101
  br i1 %exitcond1533.not, label %1095, label %1068, !llvm.loop !64

1095:                                             ; preds = %1068
  br i1 %1025, label %1098, label %1096

1096:                                             ; preds = %1095
  %1097 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1093, double noundef 0x3D95FD7FE1796496)
  br label %1098

1098:                                             ; preds = %1096, %1095
  %1099 = phi i1 [ true, %1095 ], [ %1097, %1096 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef 100, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 100, ptr noundef %1)
  br label %1100

1100:                                             ; preds = %1098, %1100
  %.2512061455 = phi i64 [ 0, %1098 ], [ %1113, %1100 ]
  %1101 = uitofp nneg i64 %.2512061455 to double
  %1102 = fdiv double %1101, 9.900000e+01
  %1103 = load ptr, ptr %35, align 8, !tbaa !9
  %1104 = getelementptr inbounds double, ptr %1103, i64 %.2512061455
  store double %1102, ptr %1104, align 8, !tbaa !10
  %1105 = load ptr, ptr %35, align 8, !tbaa !9
  %1106 = getelementptr inbounds double, ptr %1105, i64 %.2512061455
  %1107 = load double, ptr %1106, align 8, !tbaa !10
  %1108 = fmul double %1107, 0x401921FB54442D18
  %1109 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %1108, ptr noundef %1)
  %1110 = fadd double %1109, 1.000000e+00
  %1111 = load ptr, ptr %36, align 8, !tbaa !9
  %1112 = getelementptr inbounds double, ptr %1111, i64 %.2512061455
  store double %1110, ptr %1112, align 8, !tbaa !10
  %1113 = add nuw nsw i64 %.2512061455, 1
  %exitcond1534.not = icmp eq i64 %1113, 100
  br i1 %exitcond1534.not, label %1114, label %1100, !llvm.loop !65

1114:                                             ; preds = %1100
  %1115 = load ptr, ptr %36, align 8, !tbaa !9
  store double 2.000000e+00, ptr %1115, align 8, !tbaa !10
  %1116 = load ptr, ptr %36, align 8, !tbaa !9
  %1117 = getelementptr inbounds i8, ptr %1116, i64 792
  store double 2.000000e+00, ptr %1117, align 8, !tbaa !10
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef 100, i64 noundef -1, double noundef 0.000000e+00, i64 noundef -1, double noundef 0.000000e+00, ptr noundef nonnull %20, ptr noundef %1)
  %1118 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef 1.000000e+00, ptr noundef %1)
  %1119 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1120 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %1119, ptr noundef %1)
  br i1 %1099, label %.preheader1637, label %1121

1121:                                             ; preds = %1114
  %1122 = fadd double %1118, -1.000000e+00
  %1123 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1122, ptr noundef %1)
  %1124 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1123, double noundef 1.000000e-03)
  br label %.preheader1637

.preheader1637:                                   ; preds = %1121, %1114
  %.01224.in1456.ph = phi i1 [ true, %1114 ], [ %1124, %1121 ]
  br label %1125

1125:                                             ; preds = %.preheader1637, %.critedge1277
  %.2612071457 = phi i64 [ %1151, %.critedge1277 ], [ -10, %.preheader1637 ]
  %.01224.in1456 = phi i1 [ %1150, %.critedge1277 ], [ %.01224.in1456.ph, %.preheader1637 ]
  br i1 %.01224.in1456, label %.critedge1277, label %1126

1126:                                             ; preds = %1125
  %1127 = sitofp i64 %.2612071457 to double
  %1128 = fadd double %1119, %1127
  %1129 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %1128, ptr noundef %1)
  %1130 = call double @llvm.fmuladd.f64(double %1127, double %1118, double %1120)
  %1131 = fsub double %1129, %1130
  %1132 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1131, ptr noundef %1)
  %1133 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1132, double noundef 1.000000e-03)
  br i1 %1133, label %.critedge1277, label %.critedge1275

.critedge1275:                                    ; preds = %1126
  %1134 = fadd double %1127, -5.000000e-13
  %1135 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %1134, ptr noundef %1)
  %1136 = fneg double %1127
  %1137 = call double @llvm.fmuladd.f64(double %1136, double %1118, double %1135)
  %1138 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1137, ptr noundef %1)
  %1139 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1138, double noundef 1.000000e-03)
  br i1 %1139, label %.critedge1277, label %.critedge1276

.critedge1276:                                    ; preds = %.critedge1275
  %1140 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %1127, ptr noundef %1)
  %1141 = call double @llvm.fmuladd.f64(double %1136, double %1118, double %1140)
  %1142 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1141, ptr noundef %1)
  %1143 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1142, double noundef 1.000000e-03)
  br i1 %1143, label %.critedge1277, label %1144

1144:                                             ; preds = %.critedge1276
  %1145 = fadd double %1127, 5.000000e-13
  %1146 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %20, double noundef %1145, ptr noundef %1)
  %1147 = call double @llvm.fmuladd.f64(double %1136, double %1118, double %1146)
  %1148 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1147, ptr noundef %1)
  %1149 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1148, double noundef 1.000000e-03)
  br label %.critedge1277

.critedge1277:                                    ; preds = %.critedge1275, %1125, %1126, %1144, %.critedge1276
  %1150 = phi i1 [ true, %.critedge1276 ], [ %1149, %1144 ], [ true, %1126 ], [ true, %1125 ], [ true, %.critedge1275 ]
  %1151 = add nsw i64 %.2612071457, 1
  %exitcond1535.not = icmp eq i64 %1151, 11
  br i1 %exitcond1535.not, label %1152, label %1125, !llvm.loop !66

1152:                                             ; preds = %.critedge1277
  %1153 = call noundef zeroext i1 @_ZL35testspline1dunit_testmonotonesplinePN11alglib_impl8ae_stateE(ptr noundef %1)
  call void @_ZL34testspline1dunit_testsplinefittingPbPN11alglib_impl8ae_stateE(ptr noundef nonnull %4, ptr noundef %1)
  %1154 = trunc nuw i8 %.71161 to i1
  %brmerge1586 = or i1 %.4.in, %1154
  %brmerge1587 = or i1 %brmerge1586, %651
  %or.cond1604 = select i1 %697, i1 true, i1 %brmerge1587
  br i1 %or.cond1604, label %1160, label %1155

1155:                                             ; preds = %1152
  %brmerge = or i1 %761, %818
  %brmerge1278 = or i1 %832, %brmerge
  %brmerge1279 = or i1 %837, %brmerge1278
  %1156 = trunc nuw i8 %.11220.lcssa to i1
  %brmerge1280 = or i1 %1150, %1156
  %brmerge1281 = or i1 %brmerge1280, %1153
  %or.cond1293 = select i1 %brmerge1279, i1 true, i1 %brmerge1281
  br i1 %or.cond1293, label %1160, label %1157

1157:                                             ; preds = %1155
  %1158 = load i8, ptr %4, align 1, !tbaa !5, !range !67, !noundef !68
  %1159 = trunc nuw i8 %1158 to i1
  br label %1160

1160:                                             ; preds = %1155, %1157, %1152
  %1161 = phi i1 [ true, %1155 ], [ true, %1152 ], [ %1159, %1157 ]
  br i1 %0, label %1195, label %1162

1162:                                             ; preds = %1160
  %1163 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.617)
  %1164 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.618)
  %1165 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.619)
  %.str.7..str.6 = select i1 %697, ptr @.str.7, ptr @.str.6
  %1166 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %1167 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.620)
  %1168 = trunc nuw i8 %.71161 to i1
  %.str.6.sink1588 = select i1 %1168, ptr @.str.7, ptr @.str.6
  %1169 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink1588)
  %1170 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.621)
  %.str.6.sink1589 = select i1 %.4.in, ptr @.str.7, ptr @.str.6
  %1171 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink1589)
  %1172 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.622)
  %.str.6.sink1590 = select i1 %651, ptr @.str.7, ptr @.str.6
  %1173 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink1590)
  %1174 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.623)
  %.str.6.sink1591 = select i1 %761, ptr @.str.7, ptr @.str.6
  %1175 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink1591)
  %1176 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.624)
  %.str.6.sink1592 = select i1 %1153, ptr @.str.7, ptr @.str.6
  %1177 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink1592)
  %1178 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.625)
  %1179 = load i8, ptr %4, align 1, !tbaa !5, !range !67, !noundef !68
  %1180 = trunc nuw i8 %1179 to i1
  %.str.6.sink1593 = select i1 %1180, ptr @.str.7, ptr @.str.6
  %1181 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink1593)
  %1182 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.626)
  %.str.6.sink1594 = select i1 %818, ptr @.str.7, ptr @.str.6
  %1183 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink1594)
  %1184 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.627)
  %.str.6.sink1595 = select i1 %832, ptr @.str.7, ptr @.str.6
  %1185 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink1595)
  %1186 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.628)
  %.str.6.sink1596 = select i1 %837, ptr @.str.7, ptr @.str.6
  %1187 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink1596)
  %1188 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.629)
  %1189 = trunc nuw i8 %.11220.lcssa to i1
  %.str.6.sink1597 = select i1 %1189, ptr @.str.7, ptr @.str.6
  %1190 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink1597)
  %1191 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.630)
  %.str.6.sink1598 = select i1 %1150, ptr @.str.7, ptr @.str.6
  %1192 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink1598)
  %.str.2.sink = select i1 %1161, ptr @.str.1, ptr @.str.2
  %1193 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
  %1194 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %1195

1195:                                             ; preds = %1162, %1160
  %1196 = xor i1 %1161, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  ret i1 %1196
}

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

declare void @_ZN11alglib_impl19spline1dbuildlinearEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl12spline1dcalcEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef, double noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23testspline1dunit_lconstddPN11alglib_impl19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(double noundef, double noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

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

declare void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

declare void @_ZN11alglib_impl20spline1dbuildhermiteEPNS_9ae_vectorES1_S1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl18spline1dbuildakimaEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL30testspline1dunit_unsetspline1dPN11alglib_impl19spline1dinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #5

declare void @_ZN11alglib_impl12spline1dcopyEPNS_19spline1dinterpolantES1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL27testspline1dunit_testunpackPN11alglib_impl19spline1dinterpolantEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL36testspline1dunit_enumerateallsplinesPN11alglib_impl9ae_vectorES1_lPlPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

declare void @_ZN11alglib_impl17spline1dlintransxEPNS_19spline1dinterpolantEddPNS_8ae_stateE(ptr noundef, double noundef, double noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl17spline1dlintransyEPNS_19spline1dinterpolantEddPNS_8ae_stateE(ptr noundef, double noundef, double noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl17spline1dintegrateEPNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef, double noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL35testspline1dunit_testmonotonesplinePN11alglib_impl8ae_stateE(ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL34testspline1dunit_testsplinefittingPbPN11alglib_impl8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #5

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

attributes #0 = { mustprogress 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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = distinct !{!12, !13, !14}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!"llvm.loop.peeled.count", i32 1}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = !{!20, !21, i64 0}
!20 = !{!"_ZTSN11alglib_impl9ae_vectorE", !21, i64 0, !21, i64 8, !6, i64 16, !22, i64 24, !7, i64 56}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !23, i64 0, !23, i64 8, !23, i64 16, !23, i64 24}
!23 = !{!"any pointer", !7, i64 0}
!24 = distinct !{!24, !13}
!25 = distinct !{!25, !13}
!26 = distinct !{!26, !13}
!27 = distinct !{!27, !13}
!28 = distinct !{!28, !13}
!29 = distinct !{!29, !13}
!30 = distinct !{!30, !13}
!31 = distinct !{!31, !13}
!32 = distinct !{!32, !13}
!33 = distinct !{!33, !13}
!34 = distinct !{!34, !13}
!35 = distinct !{!35, !13}
!36 = distinct !{!36, !13}
!37 = distinct !{!37, !13}
!38 = distinct !{!38, !13}
!39 = distinct !{!39, !13}
!40 = distinct !{!40, !13}
!41 = distinct !{!41, !13}
!42 = distinct !{!42, !13}
!43 = distinct !{!43, !13}
!44 = distinct !{!44, !13}
!45 = distinct !{!45, !13}
!46 = distinct !{!46, !13}
!47 = distinct !{!47, !13}
!48 = distinct !{!48, !13}
!49 = distinct !{!49, !13}
!50 = distinct !{!50, !13}
!51 = distinct !{!51, !13}
!52 = distinct !{!52, !13}
!53 = distinct !{!53, !13}
!54 = distinct !{!54, !13}
!55 = !{!21, !21, i64 0}
!56 = distinct !{!56, !13}
!57 = distinct !{!57, !13}
!58 = distinct !{!58, !13}
!59 = distinct !{!59, !13}
!60 = distinct !{!60, !13}
!61 = distinct !{!61, !13}
!62 = distinct !{!62, !13}
!63 = distinct !{!63, !13}
!64 = distinct !{!64, !13}
!65 = distinct !{!65, !13}
!66 = distinct !{!66, !13}
!67 = !{i8 0, i8 2}
!68 = !{}


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