; LLVM IR from Dimandragon/non-parametric-dsp :: 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" }
%"struct.alglib_impl::ae_serializer" = type { i64, i64, i64, i64, i64, ptr, ptr, ptr, i64, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.477 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.784 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.785 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.786 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.787 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.788 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.789 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.790 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.791 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.792 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.793 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.794 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.795 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.796 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.797 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.798 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.799 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.800 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.801 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.802 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.803 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.804 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.805 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.806 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.807 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.808 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.809 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.810 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.811 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.812 = 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 i32 @printf(ptr noundef, ...) #1

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

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

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

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

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

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

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

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_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) #3

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

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 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_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef, i1 noundef zeroext, ptr noundef, i32 noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

declare void @_ZN11alglib_impl18ae_serializer_initEPNS_13ae_serializerE(ptr noundef) #1

declare void @_ZN11alglib_impl25ae_serializer_alloc_startEPNS_13ae_serializerE(ptr noundef) #1

declare noundef i64 @_ZN11alglib_impl28ae_serializer_get_alloc_sizeEPNS_13ae_serializerE(ptr noundef) #1

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

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

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

declare void @_ZN11alglib_impl19ae_serializer_clearEPNS_13ae_serializerE(ptr noundef) #1

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

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, 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

; 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 double, align 8
  %80 = alloca double, align 8
  %81 = alloca i64, align 8
  %82 = alloca i8, align 1
  %83 = alloca %"struct.alglib_impl::ae_serializer", align 8
  %84 = alloca i64, align 8
  %85 = alloca %"struct.alglib_impl::ae_frame", align 8
  %86 = alloca %"struct.alglib_impl::ae_dyn_block", align 8
  %87 = zext i1 %0 to i8
  store i8 %87, 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 8, ptr %79) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %80) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %81) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %82) #5
  %88 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %88, 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)
  %89 = 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 %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 %32, 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 %33, 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 %34, 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 %35, 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 %36, 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 %37, 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 %38, i64 noundef 0, i64 noundef 3, ptr noundef %96, i1 noundef zeroext true)
  %97 = 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 %97, i1 noundef zeroext true)
  %98 = 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 %98, i1 noundef zeroext true)
  %99 = 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 %99, i1 noundef zeroext true)
  %100 = 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 %100, i1 noundef zeroext true)
  %101 = 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 %101, i1 noundef zeroext true)
  %102 = 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 %102, i1 noundef zeroext true)
  %103 = 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 %103, i1 noundef zeroext true)
  %104 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef %47, ptr noundef %104, i1 noundef zeroext true)
  %105 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef %48, ptr noundef %105, 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 1.000000e-05, ptr %79, align 8, !tbaa !13
  store double 1.250000e+00, ptr %80, align 8, !tbaa !13
  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 %106

106:                                              ; preds = %1704, %2
  %107 = load i64, ptr %27, align 8, !tbaa !11
  %108 = load i64, ptr %23, align 8, !tbaa !11
  %109 = icmp sle i64 %107, %108
  br i1 %109, label %110, label %1707

110:                                              ; preds = %106
  %111 = load i64, ptr %27, align 8, !tbaa !11
  %112 = sub nsw i64 %111, 1
  %113 = add nsw i64 %112, 1
  %114 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %113, ptr noundef %114)
  %115 = load i64, ptr %27, align 8, !tbaa !11
  %116 = sub nsw i64 %115, 1
  %117 = add nsw i64 %116, 1
  %118 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %117, ptr noundef %118)
  %119 = load i64, ptr %27, align 8, !tbaa !11
  %120 = sub nsw i64 %119, 1
  %121 = add nsw i64 %120, 1
  %122 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %33, i64 noundef %121, ptr noundef %122)
  %123 = load i64, ptr %27, align 8, !tbaa !11
  %124 = sub nsw i64 %123, 1
  %125 = add nsw i64 %124, 1
  %126 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %37, i64 noundef %125, ptr noundef %126)
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %127

127:                                              ; preds = %1700, %110
  %128 = load i64, ptr %30, align 8, !tbaa !11
  %129 = load i64, ptr %20, align 8, !tbaa !11
  %130 = icmp sle i64 %128, %129
  br i1 %130, label %131, label %1703

131:                                              ; preds = %127
  %132 = load ptr, ptr %4, align 8, !tbaa !9
  %133 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %132)
  %134 = fsub double -1.000000e+00, %133
  store double %134, ptr %49, align 8, !tbaa !13
  %135 = load ptr, ptr %4, align 8, !tbaa !9
  %136 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %135)
  %137 = fadd double 1.000000e+00, %136
  store double %137, ptr %50, align 8, !tbaa !13
  %138 = load ptr, ptr %4, align 8, !tbaa !9
  %139 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %138)
  %140 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %139, double -1.000000e+00)
  store double %140, ptr %51, align 8, !tbaa !13
  %141 = load ptr, ptr %4, align 8, !tbaa !9
  %142 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %141)
  %143 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %142, double -1.000000e+00)
  store double %143, ptr %52, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %144

144:                                              ; preds = %228, %131
  %145 = load i64, ptr %28, align 8, !tbaa !11
  %146 = load i64, ptr %27, align 8, !tbaa !11
  %147 = sub nsw i64 %146, 1
  %148 = icmp sle i64 %145, %147
  br i1 %148, label %149, label %231

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

176:                                              ; preds = %149
  %177 = load double, ptr %49, align 8, !tbaa !13
  %178 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %179 = load ptr, ptr %178, align 8, !tbaa !15
  %180 = load i64, ptr %28, align 8, !tbaa !11
  %181 = getelementptr inbounds double, ptr %179, i64 %180
  store double %177, ptr %181, align 8, !tbaa !13
  br label %182

182:                                              ; preds = %176, %149
  %183 = load i64, ptr %28, align 8, !tbaa !11
  %184 = load i64, ptr %27, align 8, !tbaa !11
  %185 = sub nsw i64 %184, 1
  %186 = icmp eq i64 %183, %185
  br i1 %186, label %187, label %193

187:                                              ; preds = %182
  %188 = load double, ptr %50, align 8, !tbaa !13
  %189 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !15
  %191 = load i64, ptr %28, align 8, !tbaa !11
  %192 = getelementptr inbounds double, ptr %190, i64 %191
  store double %188, ptr %192, align 8, !tbaa !13
  br label %193

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

228:                                              ; preds = %193
  %229 = load i64, ptr %28, align 8, !tbaa !11
  %230 = add nsw i64 %229, 1
  store i64 %230, ptr %28, align 8, !tbaa !11
  br label %144, !llvm.loop !16

231:                                              ; preds = %144
  %232 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %233 = load ptr, ptr %232, align 8, !tbaa !15
  %234 = getelementptr inbounds double, ptr %233, i64 0
  %235 = load double, ptr %234, align 8, !tbaa !13
  %236 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %237 = load ptr, ptr %236, align 8, !tbaa !15
  %238 = load i64, ptr %27, align 8, !tbaa !11
  %239 = sub nsw i64 %238, 1
  %240 = getelementptr inbounds double, ptr %237, i64 %239
  store double %235, ptr %240, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %241

241:                                              ; preds = %331, %231
  %242 = load i64, ptr %28, align 8, !tbaa !11
  %243 = load i64, ptr %27, align 8, !tbaa !11
  %244 = sub nsw i64 %243, 1
  %245 = icmp sle i64 %242, %244
  br i1 %245, label %246, label %334

246:                                              ; preds = %241
  %247 = load i64, ptr %27, align 8, !tbaa !11
  %248 = load ptr, ptr %4, align 8, !tbaa !9
  %249 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %247, ptr noundef %248)
  store i64 %249, ptr %29, align 8, !tbaa !11
  %250 = load i64, ptr %29, align 8, !tbaa !11
  %251 = load i64, ptr %28, align 8, !tbaa !11
  %252 = icmp ne i64 %250, %251
  br i1 %252, label %253, label %330

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

330:                                              ; preds = %253, %246
  br label %331

331:                                              ; preds = %330
  %332 = load i64, ptr %28, align 8, !tbaa !11
  %333 = add nsw i64 %332, 1
  store i64 %333, ptr %28, align 8, !tbaa !11
  br label %241, !llvm.loop !18

334:                                              ; preds = %241
  %335 = load i64, ptr %27, align 8, !tbaa !11
  %336 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl19spline1dbuildlinearEPKNS_9ae_vectorES2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %335, ptr noundef %47, ptr noundef %336)
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %337

337:                                              ; preds = %361, %334
  %338 = load i64, ptr %28, align 8, !tbaa !11
  %339 = load i64, ptr %27, align 8, !tbaa !11
  %340 = sub nsw i64 %339, 1
  %341 = icmp sle i64 %338, %340
  br i1 %341, label %342, label %364

342:                                              ; preds = %337
  %343 = load double, ptr %75, align 8, !tbaa !13
  %344 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %345 = load ptr, ptr %344, align 8, !tbaa !15
  %346 = load i64, ptr %28, align 8, !tbaa !11
  %347 = getelementptr inbounds double, ptr %345, i64 %346
  %348 = load double, ptr %347, align 8, !tbaa !13
  %349 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %350 = load ptr, ptr %349, align 8, !tbaa !15
  %351 = load i64, ptr %28, align 8, !tbaa !11
  %352 = getelementptr inbounds double, ptr %350, i64 %351
  %353 = load double, ptr %352, align 8, !tbaa !13
  %354 = load ptr, ptr %4, align 8, !tbaa !9
  %355 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %353, ptr noundef %354)
  %356 = fsub double %348, %355
  %357 = load ptr, ptr %4, align 8, !tbaa !9
  %358 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %356, ptr noundef %357)
  %359 = load ptr, ptr %4, align 8, !tbaa !9
  %360 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %343, double noundef %358, ptr noundef %359)
  store double %360, ptr %75, align 8, !tbaa !13
  br label %361

361:                                              ; preds = %342
  %362 = load i64, ptr %28, align 8, !tbaa !11
  %363 = add nsw i64 %362, 1
  store i64 %363, ptr %28, align 8, !tbaa !11
  br label %337, !llvm.loop !19

364:                                              ; preds = %337
  %365 = load i8, ptr %11, align 1, !tbaa !5, !range !20, !noundef !21
  %366 = trunc i8 %365 to i1
  br i1 %366, label %371, label %367

367:                                              ; preds = %364
  %368 = load double, ptr %75, align 8, !tbaa !13
  %369 = load double, ptr %19, align 8, !tbaa !13
  %370 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %368, double noundef %369)
  br label %371

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

385:                                              ; preds = %371
  %386 = load double, ptr %60, align 8, !tbaa !13
  %387 = load double, ptr %57, align 8, !tbaa !13
  %388 = fdiv double %386, %387
  %389 = load double, ptr %80, align 8, !tbaa !13
  %390 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %388, double noundef %389)
  br label %391

391:                                              ; preds = %385, %371
  %392 = phi i1 [ true, %371 ], [ %390, %385 ]
  %393 = zext i1 %392 to i8
  store i8 %393, ptr %11, align 1, !tbaa !5
  store i64 -1, ptr %24, align 8, !tbaa !11
  br label %394

394:                                              ; preds = %1166, %391
  %395 = load i64, ptr %24, align 8, !tbaa !11
  %396 = icmp sle i64 %395, 2
  br i1 %396, label %397, label %1169

397:                                              ; preds = %394
  store i64 -1, ptr %25, align 8, !tbaa !11
  br label %398

398:                                              ; preds = %1162, %397
  %399 = load i64, ptr %25, align 8, !tbaa !11
  %400 = icmp sle i64 %399, 2
  br i1 %400, label %401, label %1165

401:                                              ; preds = %398
  %402 = load i64, ptr %24, align 8, !tbaa !11
  %403 = icmp eq i64 %402, -1
  br i1 %403, label %407, label %404

404:                                              ; preds = %401
  %405 = load i64, ptr %25, align 8, !tbaa !11
  %406 = icmp eq i64 %405, -1
  br label %407

407:                                              ; preds = %404, %401
  %408 = phi i1 [ true, %401 ], [ %406, %404 ]
  %409 = zext i1 %408 to i8
  store i8 %409, ptr %26, align 1, !tbaa !5
  %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 %417

412:                                              ; preds = %407
  %413 = load i64, ptr %24, align 8, !tbaa !11
  %414 = load i64, ptr %25, align 8, !tbaa !11
  %415 = icmp ne i64 %413, %414
  br i1 %415, label %416, label %417

416:                                              ; preds = %412
  br label %1162

417:                                              ; preds = %412, %407
  %418 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %419 = trunc i8 %418 to i1
  br i1 %419, label %420, label %427

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

427:                                              ; preds = %417
  %428 = load i64, ptr %27, align 8, !tbaa !11
  %429 = load i64, ptr %24, align 8, !tbaa !11
  %430 = load double, ptr %51, align 8, !tbaa !13
  %431 = load i64, ptr %25, align 8, !tbaa !11
  %432 = load double, ptr %52, align 8, !tbaa !13
  %433 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %428, i64 noundef %429, double noundef %430, i64 noundef %431, double noundef %432, ptr noundef %47, ptr noundef %433)
  br label %434

434:                                              ; preds = %427, %420
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  %435 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %436 = trunc i8 %435 to i1
  br i1 %436, label %437, label %561

437:                                              ; preds = %434
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %438

438:                                              ; preds = %501, %437
  %439 = load i64, ptr %28, align 8, !tbaa !11
  %440 = load i64, ptr %27, align 8, !tbaa !11
  %441 = sub nsw i64 %440, 1
  %442 = icmp sle i64 %439, %441
  br i1 %442, label %443, label %504

443:                                              ; preds = %438
  %444 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %445 = load ptr, ptr %444, align 8, !tbaa !15
  %446 = load i64, ptr %28, align 8, !tbaa !11
  %447 = getelementptr inbounds double, ptr %445, i64 %446
  %448 = load double, ptr %447, align 8, !tbaa !13
  store double %448, ptr %56, align 8, !tbaa !13
  %449 = load double, ptr %56, align 8, !tbaa !13
  %450 = load double, ptr %50, align 8, !tbaa !13
  %451 = load double, ptr %49, align 8, !tbaa !13
  %452 = fsub double %450, %451
  %453 = load ptr, ptr %4, align 8, !tbaa !9
  %454 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %453)
  %455 = sub nsw i64 %454, 2
  %456 = sitofp i64 %455 to double
  %457 = call double @llvm.fmuladd.f64(double %452, double %456, double %449)
  store double %457, ptr %73, align 8, !tbaa !13
  %458 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %459 = load ptr, ptr %458, align 8, !tbaa !15
  %460 = load i64, ptr %28, align 8, !tbaa !11
  %461 = getelementptr inbounds double, ptr %459, i64 %460
  %462 = load double, ptr %461, align 8, !tbaa !13
  %463 = load double, ptr %73, align 8, !tbaa !13
  %464 = load ptr, ptr %4, align 8, !tbaa !9
  %465 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %463, ptr noundef %464)
  %466 = fsub double %462, %465
  store double %466, ptr %53, align 8, !tbaa !13
  %467 = load double, ptr %75, align 8, !tbaa !13
  %468 = load double, ptr %53, align 8, !tbaa !13
  %469 = load ptr, ptr %4, align 8, !tbaa !9
  %470 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %468, ptr noundef %469)
  %471 = load ptr, ptr %4, align 8, !tbaa !9
  %472 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %467, double noundef %470, ptr noundef %471)
  store double %472, ptr %75, align 8, !tbaa !13
  %473 = load double, ptr %56, align 8, !tbaa !13
  %474 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %473, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %474)
  %475 = load double, ptr %73, align 8, !tbaa !13
  %476 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %475, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %476)
  %477 = load double, ptr %75, align 8, !tbaa !13
  %478 = load double, ptr %66, align 8, !tbaa !13
  %479 = load double, ptr %69, 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 %67, align 8, !tbaa !13
  %487 = load double, ptr %70, 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
  %493 = load double, ptr %75, align 8, !tbaa !13
  %494 = load double, ptr %68, align 8, !tbaa !13
  %495 = load double, ptr %71, align 8, !tbaa !13
  %496 = fsub double %494, %495
  %497 = load ptr, ptr %4, align 8, !tbaa !9
  %498 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %496, ptr noundef %497)
  %499 = load ptr, ptr %4, align 8, !tbaa !9
  %500 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %493, double noundef %498, ptr noundef %499)
  store double %500, ptr %75, align 8, !tbaa !13
  br label %501

501:                                              ; preds = %443
  %502 = load i64, ptr %28, align 8, !tbaa !11
  %503 = add nsw i64 %502, 1
  store i64 %503, ptr %28, align 8, !tbaa !11
  br label %438, !llvm.loop !22

504:                                              ; preds = %438
  %505 = load double, ptr %49, align 8, !tbaa !13
  %506 = load double, ptr %50, align 8, !tbaa !13
  %507 = load double, ptr %49, align 8, !tbaa !13
  %508 = fsub double %506, %507
  %509 = load ptr, ptr %4, align 8, !tbaa !9
  %510 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %509)
  %511 = call double @llvm.fmuladd.f64(double %508, double %510, double %505)
  store double %511, ptr %56, align 8, !tbaa !13
  %512 = load double, ptr %56, align 8, !tbaa !13
  %513 = load double, ptr %50, align 8, !tbaa !13
  %514 = load double, ptr %49, align 8, !tbaa !13
  %515 = fsub double %513, %514
  %516 = load ptr, ptr %4, align 8, !tbaa !9
  %517 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %516)
  %518 = sub nsw i64 %517, 2
  %519 = sitofp i64 %518 to double
  %520 = call double @llvm.fmuladd.f64(double %515, double %519, double %512)
  store double %520, ptr %73, align 8, !tbaa !13
  %521 = load double, ptr %75, align 8, !tbaa !13
  %522 = load double, ptr %56, align 8, !tbaa !13
  %523 = load ptr, ptr %4, align 8, !tbaa !9
  %524 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %522, ptr noundef %523)
  %525 = load double, ptr %73, align 8, !tbaa !13
  %526 = load ptr, ptr %4, align 8, !tbaa !9
  %527 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %525, ptr noundef %526)
  %528 = fsub double %524, %527
  %529 = load ptr, ptr %4, align 8, !tbaa !9
  %530 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %528, ptr noundef %529)
  %531 = load ptr, ptr %4, align 8, !tbaa !9
  %532 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %521, double noundef %530, ptr noundef %531)
  store double %532, ptr %75, align 8, !tbaa !13
  %533 = load double, ptr %56, align 8, !tbaa !13
  %534 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %533, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %534)
  %535 = load double, ptr %73, align 8, !tbaa !13
  %536 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %535, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %536)
  %537 = load double, ptr %75, align 8, !tbaa !13
  %538 = load double, ptr %66, align 8, !tbaa !13
  %539 = load double, ptr %69, 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 %67, align 8, !tbaa !13
  %547 = load double, ptr %70, 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
  %553 = load double, ptr %75, align 8, !tbaa !13
  %554 = load double, ptr %68, align 8, !tbaa !13
  %555 = load double, ptr %71, align 8, !tbaa !13
  %556 = fsub double %554, %555
  %557 = load ptr, ptr %4, align 8, !tbaa !9
  %558 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %556, ptr noundef %557)
  %559 = load ptr, ptr %4, align 8, !tbaa !9
  %560 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %553, double noundef %558, ptr noundef %559)
  store double %560, ptr %75, align 8, !tbaa !13
  br label %590

561:                                              ; preds = %434
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %562

562:                                              ; preds = %586, %561
  %563 = load i64, ptr %28, align 8, !tbaa !11
  %564 = load i64, ptr %27, align 8, !tbaa !11
  %565 = sub nsw i64 %564, 1
  %566 = icmp sle i64 %563, %565
  br i1 %566, label %567, label %589

567:                                              ; preds = %562
  %568 = load double, ptr %75, align 8, !tbaa !13
  %569 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %570 = load ptr, ptr %569, align 8, !tbaa !15
  %571 = load i64, ptr %28, align 8, !tbaa !11
  %572 = getelementptr inbounds double, ptr %570, i64 %571
  %573 = load double, ptr %572, align 8, !tbaa !13
  %574 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %575 = load ptr, ptr %574, align 8, !tbaa !15
  %576 = load i64, ptr %28, align 8, !tbaa !11
  %577 = getelementptr inbounds double, ptr %575, i64 %576
  %578 = load double, ptr %577, align 8, !tbaa !13
  %579 = load ptr, ptr %4, align 8, !tbaa !9
  %580 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %578, ptr noundef %579)
  %581 = fsub double %573, %580
  %582 = load ptr, ptr %4, align 8, !tbaa !9
  %583 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %581, ptr noundef %582)
  %584 = load ptr, ptr %4, align 8, !tbaa !9
  %585 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %568, double noundef %583, ptr noundef %584)
  store double %585, ptr %75, align 8, !tbaa !13
  br label %586

586:                                              ; preds = %567
  %587 = load i64, ptr %28, align 8, !tbaa !11
  %588 = add nsw i64 %587, 1
  store i64 %588, ptr %28, align 8, !tbaa !11
  br label %562, !llvm.loop !23

589:                                              ; preds = %562
  br label %590

590:                                              ; preds = %589, %504
  %591 = load double, ptr %75, align 8, !tbaa !13
  %592 = load double, ptr %19, align 8, !tbaa !13
  %593 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %591, double noundef %592)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %8, i1 noundef zeroext %593, ptr noundef @.str.19, i32 noundef 99726, ptr noundef @.str.784)
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  %594 = load i64, ptr %24, align 8, !tbaa !11
  %595 = icmp eq i64 %594, 0
  br i1 %595, label %596, label %617

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

617:                                              ; preds = %596, %590
  %618 = load i64, ptr %24, align 8, !tbaa !11
  %619 = icmp eq i64 %618, 1
  br i1 %619, label %620, label %643

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

643:                                              ; preds = %620, %617
  %644 = load i64, ptr %24, align 8, !tbaa !11
  %645 = icmp eq i64 %644, 2
  br i1 %645, label %646, label %674

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

674:                                              ; preds = %646, %643
  %675 = load i64, ptr %25, align 8, !tbaa !11
  %676 = icmp eq i64 %675, 0
  br i1 %676, label %677, label %698

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

698:                                              ; preds = %677, %674
  %699 = load i64, ptr %25, align 8, !tbaa !11
  %700 = icmp eq i64 %699, 1
  br i1 %700, label %701, label %724

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

724:                                              ; preds = %701, %698
  %725 = load i64, ptr %25, align 8, !tbaa !11
  %726 = icmp eq i64 %725, 2
  br i1 %726, label %727, label %755

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

755:                                              ; preds = %727, %724
  %756 = load i64, ptr %24, align 8, !tbaa !11
  %757 = icmp eq i64 %756, -1
  br i1 %757, label %761, label %758

758:                                              ; preds = %755
  %759 = load i64, ptr %25, align 8, !tbaa !11
  %760 = icmp eq i64 %759, -1
  br i1 %760, label %761, label %792

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

792:                                              ; preds = %761, %758
  %793 = load double, ptr %75, align 8, !tbaa !13
  %794 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %793, double noundef 1.000000e-03)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %8, i1 noundef zeroext %794, ptr noundef @.str.19, i32 noundef 99774, ptr noundef @.str.785)
  %795 = load double, ptr %49, align 8, !tbaa !13
  %796 = load double, ptr %50, align 8, !tbaa !13
  %797 = load double, ptr %21, align 8, !tbaa !13
  %798 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %795, double noundef %796, ptr noundef %47, double noundef %797, ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %798)
  %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 = fdiv double %801, 3.000000e+00
  %803 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %799, double noundef %800, ptr noundef %47, double noundef %802, ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %803)
  %804 = load double, ptr %57, align 8, !tbaa !13
  %805 = load double, ptr %79, align 8, !tbaa !13
  %806 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %804, double noundef %805)
  br i1 %806, label %807, label %815

807:                                              ; preds = %792
  %808 = load double, ptr %60, align 8, !tbaa !13
  %809 = load double, ptr %57, align 8, !tbaa !13
  %810 = load double, ptr %79, align 8, !tbaa !13
  %811 = fadd double %809, %810
  %812 = fdiv double %808, %811
  %813 = load double, ptr %80, align 8, !tbaa !13
  %814 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %812, double noundef %813)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %8, i1 noundef zeroext %814, ptr noundef @.str.19, i32 noundef 99783, ptr noundef @.str.786)
  br label %815

815:                                              ; preds = %807, %792
  %816 = load double, ptr %58, align 8, !tbaa !13
  %817 = load double, ptr %79, align 8, !tbaa !13
  %818 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %816, double noundef %817)
  br i1 %818, label %819, label %827

819:                                              ; preds = %815
  %820 = load double, ptr %61, align 8, !tbaa !13
  %821 = load double, ptr %58, align 8, !tbaa !13
  %822 = load double, ptr %79, align 8, !tbaa !13
  %823 = fadd double %821, %822
  %824 = fdiv double %820, %823
  %825 = load double, ptr %80, align 8, !tbaa !13
  %826 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %824, double noundef %825)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %8, i1 noundef zeroext %826, ptr noundef @.str.19, i32 noundef 99787, ptr noundef @.str.787)
  br label %827

827:                                              ; preds = %819, %815
  %828 = load double, ptr %59, align 8, !tbaa !13
  %829 = load double, ptr %79, align 8, !tbaa !13
  %830 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %828, double noundef %829)
  br i1 %830, label %831, label %839

831:                                              ; preds = %827
  %832 = load double, ptr %62, align 8, !tbaa !13
  %833 = load double, ptr %59, align 8, !tbaa !13
  %834 = load double, ptr %79, align 8, !tbaa !13
  %835 = fadd double %833, %834
  %836 = fdiv double %832, %835
  %837 = load double, ptr %80, align 8, !tbaa !13
  %838 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %836, double noundef %837)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %8, i1 noundef zeroext %838, ptr noundef @.str.19, i32 noundef 99791, ptr noundef @.str.788)
  br label %839

839:                                              ; preds = %831, %827
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  %840 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %841 = trunc i8 %840 to i1
  br i1 %841, label %842, label %849

842:                                              ; preds = %839
  %843 = load i64, ptr %27, align 8, !tbaa !11
  %844 = load i64, ptr %24, align 8, !tbaa !11
  %845 = load double, ptr %51, align 8, !tbaa !13
  %846 = load i64, ptr %25, align 8, !tbaa !11
  %847 = load double, ptr %52, align 8, !tbaa !13
  %848 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21spline1dgriddiffcubicEPKNS_9ae_vectorES2_lldldPS0_PNS_8ae_stateE(ptr noundef %31, ptr noundef %33, i64 noundef %843, i64 noundef %844, double noundef %845, i64 noundef %846, double noundef %847, ptr noundef %43, ptr noundef %848)
  br label %856

849:                                              ; preds = %839
  %850 = load i64, ptr %27, align 8, !tbaa !11
  %851 = load i64, ptr %24, align 8, !tbaa !11
  %852 = load double, ptr %51, align 8, !tbaa !13
  %853 = load i64, ptr %25, align 8, !tbaa !11
  %854 = load double, ptr %52, align 8, !tbaa !13
  %855 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21spline1dgriddiffcubicEPKNS_9ae_vectorES2_lldldPS0_PNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %850, i64 noundef %851, double noundef %852, i64 noundef %853, double noundef %854, ptr noundef %43, ptr noundef %855)
  br label %856

856:                                              ; preds = %849, %842
  %857 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 0
  %858 = load i64, ptr %857, align 8, !tbaa !24
  %859 = load i64, ptr %27, align 8, !tbaa !11
  %860 = icmp sge i64 %858, %859
  %861 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %860, ptr noundef @.str.477, ptr noundef %861)
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %862

862:                                              ; preds = %886, %856
  %863 = load i64, ptr %28, align 8, !tbaa !11
  %864 = load i64, ptr %27, align 8, !tbaa !11
  %865 = sub nsw i64 %864, 1
  %866 = icmp sle i64 %863, %865
  br i1 %866, label %867, label %889

867:                                              ; preds = %862
  %868 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %869 = load ptr, ptr %868, align 8, !tbaa !15
  %870 = load i64, ptr %28, align 8, !tbaa !11
  %871 = getelementptr inbounds double, ptr %869, i64 %870
  %872 = load double, ptr %871, align 8, !tbaa !13
  %873 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %872, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %873)
  %874 = load double, ptr %75, align 8, !tbaa !13
  %875 = load double, ptr %67, align 8, !tbaa !13
  %876 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %877 = load ptr, ptr %876, align 8, !tbaa !15
  %878 = load i64, ptr %28, align 8, !tbaa !11
  %879 = getelementptr inbounds double, ptr %877, i64 %878
  %880 = load double, ptr %879, align 8, !tbaa !13
  %881 = fsub double %875, %880
  %882 = load ptr, ptr %4, align 8, !tbaa !9
  %883 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %881, ptr noundef %882)
  %884 = load ptr, ptr %4, align 8, !tbaa !9
  %885 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %874, double noundef %883, ptr noundef %884)
  store double %885, ptr %75, align 8, !tbaa !13
  br label %886

886:                                              ; preds = %867
  %887 = load i64, ptr %28, align 8, !tbaa !11
  %888 = add nsw i64 %887, 1
  store i64 %888, ptr %28, align 8, !tbaa !11
  br label %862, !llvm.loop !27

889:                                              ; preds = %862
  %890 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %891 = trunc i8 %890 to i1
  br i1 %891, label %892, label %899

892:                                              ; preds = %889
  %893 = load i64, ptr %27, align 8, !tbaa !11
  %894 = load i64, ptr %24, align 8, !tbaa !11
  %895 = load double, ptr %51, align 8, !tbaa !13
  %896 = load i64, ptr %25, align 8, !tbaa !11
  %897 = load double, ptr %52, align 8, !tbaa !13
  %898 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl22spline1dgriddiff2cubicEPKNS_9ae_vectorES2_lldldPS0_S3_PNS_8ae_stateE(ptr noundef %31, ptr noundef %33, i64 noundef %893, i64 noundef %894, double noundef %895, i64 noundef %896, double noundef %897, ptr noundef %43, ptr noundef %44, ptr noundef %898)
  br label %906

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

906:                                              ; preds = %899, %892
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %907

907:                                              ; preds = %943, %906
  %908 = load i64, ptr %28, align 8, !tbaa !11
  %909 = load i64, ptr %27, align 8, !tbaa !11
  %910 = sub nsw i64 %909, 1
  %911 = icmp sle i64 %908, %910
  br i1 %911, label %912, label %946

912:                                              ; preds = %907
  %913 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %914 = load ptr, ptr %913, align 8, !tbaa !15
  %915 = load i64, ptr %28, align 8, !tbaa !11
  %916 = getelementptr inbounds double, ptr %914, i64 %915
  %917 = load double, ptr %916, align 8, !tbaa !13
  %918 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %917, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %918)
  %919 = load double, ptr %75, align 8, !tbaa !13
  %920 = load double, ptr %67, align 8, !tbaa !13
  %921 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %922 = load ptr, ptr %921, align 8, !tbaa !15
  %923 = load i64, ptr %28, align 8, !tbaa !11
  %924 = getelementptr inbounds double, ptr %922, i64 %923
  %925 = load double, ptr %924, align 8, !tbaa !13
  %926 = fsub double %920, %925
  %927 = load ptr, ptr %4, align 8, !tbaa !9
  %928 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %926, ptr noundef %927)
  %929 = load ptr, ptr %4, align 8, !tbaa !9
  %930 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %919, double noundef %928, ptr noundef %929)
  store double %930, ptr %75, align 8, !tbaa !13
  %931 = load double, ptr %75, align 8, !tbaa !13
  %932 = load double, ptr %68, align 8, !tbaa !13
  %933 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %934 = load ptr, ptr %933, align 8, !tbaa !15
  %935 = load i64, ptr %28, align 8, !tbaa !11
  %936 = getelementptr inbounds double, ptr %934, i64 %935
  %937 = load double, ptr %936, align 8, !tbaa !13
  %938 = fsub double %932, %937
  %939 = load ptr, ptr %4, align 8, !tbaa !9
  %940 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %938, ptr noundef %939)
  %941 = load ptr, ptr %4, align 8, !tbaa !9
  %942 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %931, double noundef %940, ptr noundef %941)
  store double %942, ptr %75, align 8, !tbaa !13
  br label %943

943:                                              ; preds = %912
  %944 = load i64, ptr %28, align 8, !tbaa !11
  %945 = add nsw i64 %944, 1
  store i64 %945, ptr %28, align 8, !tbaa !11
  br label %907, !llvm.loop !28

946:                                              ; preds = %907
  %947 = load double, ptr %75, align 8, !tbaa !13
  %948 = load double, ptr %19, align 8, !tbaa !13
  %949 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %947, double noundef %948)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %8, i1 noundef zeroext %949, ptr noundef @.str.19, i32 noundef 99826, ptr noundef @.str.789)
  %950 = load i64, ptr %27, align 8, !tbaa !11
  %951 = mul nsw i64 2, %950
  %952 = load ptr, ptr %4, align 8, !tbaa !9
  %953 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %951, ptr noundef %952)
  %954 = add nsw i64 2, %953
  store i64 %954, ptr %41, align 8, !tbaa !11
  %955 = load i64, ptr %41, align 8, !tbaa !11
  %956 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %45, i64 noundef %955, ptr noundef %956)
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %957

957:                                              ; preds = %978, %946
  %958 = load i64, ptr %28, align 8, !tbaa !11
  %959 = load i64, ptr %41, align 8, !tbaa !11
  %960 = sub nsw i64 %959, 1
  %961 = icmp sle i64 %958, %960
  br i1 %961, label %962, label %981

962:                                              ; preds = %957
  %963 = load double, ptr %49, align 8, !tbaa !13
  %964 = load double, ptr %50, align 8, !tbaa !13
  %965 = fadd double %963, %964
  %966 = load double, ptr %49, align 8, !tbaa !13
  %967 = load double, ptr %50, align 8, !tbaa !13
  %968 = fsub double %966, %967
  %969 = load ptr, ptr %4, align 8, !tbaa !9
  %970 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %969)
  %971 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %970, double -1.000000e+00)
  %972 = fmul double %968, %971
  %973 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %965, double %972)
  %974 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %975 = load ptr, ptr %974, align 8, !tbaa !15
  %976 = load i64, ptr %28, align 8, !tbaa !11
  %977 = getelementptr inbounds double, ptr %975, i64 %976
  store double %973, ptr %977, align 8, !tbaa !13
  br label %978

978:                                              ; preds = %962
  %979 = load i64, ptr %28, align 8, !tbaa !11
  %980 = add nsw i64 %979, 1
  store i64 %980, ptr %28, align 8, !tbaa !11
  br label %957, !llvm.loop !29

981:                                              ; preds = %957
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  %982 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %983 = trunc i8 %982 to i1
  br i1 %983, label %984, label %992

984:                                              ; preds = %981
  %985 = load i64, ptr %27, align 8, !tbaa !11
  %986 = load i64, ptr %24, align 8, !tbaa !11
  %987 = load double, ptr %51, align 8, !tbaa !13
  %988 = load i64, ptr %25, align 8, !tbaa !11
  %989 = load double, ptr %52, align 8, !tbaa !13
  %990 = load i64, ptr %41, align 8, !tbaa !11
  %991 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl17spline1dconvcubicEPKNS_9ae_vectorES2_lldldS2_lPS0_PNS_8ae_stateE(ptr noundef %31, ptr noundef %33, i64 noundef %985, i64 noundef %986, double noundef %987, i64 noundef %988, double noundef %989, ptr noundef %45, i64 noundef %990, ptr noundef %42, ptr noundef %991)
  br label %1000

992:                                              ; preds = %981
  %993 = load i64, ptr %27, align 8, !tbaa !11
  %994 = load i64, ptr %24, align 8, !tbaa !11
  %995 = load double, ptr %51, align 8, !tbaa !13
  %996 = load i64, ptr %25, align 8, !tbaa !11
  %997 = load double, ptr %52, align 8, !tbaa !13
  %998 = load i64, ptr %41, align 8, !tbaa !11
  %999 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl17spline1dconvcubicEPKNS_9ae_vectorES2_lldldS2_lPS0_PNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %993, i64 noundef %994, double noundef %995, i64 noundef %996, double noundef %997, ptr noundef %45, i64 noundef %998, ptr noundef %42, ptr noundef %999)
  br label %1000

1000:                                             ; preds = %992, %984
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1001

1001:                                             ; preds = %1025, %1000
  %1002 = load i64, ptr %28, align 8, !tbaa !11
  %1003 = load i64, ptr %41, align 8, !tbaa !11
  %1004 = sub nsw i64 %1003, 1
  %1005 = icmp sle i64 %1002, %1004
  br i1 %1005, label %1006, label %1028

1006:                                             ; preds = %1001
  %1007 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %1008 = load ptr, ptr %1007, align 8, !tbaa !15
  %1009 = load i64, ptr %28, align 8, !tbaa !11
  %1010 = getelementptr inbounds double, ptr %1008, i64 %1009
  %1011 = load double, ptr %1010, align 8, !tbaa !13
  %1012 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %1011, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %1012)
  %1013 = load double, ptr %75, align 8, !tbaa !13
  %1014 = load double, ptr %66, align 8, !tbaa !13
  %1015 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %1016 = load ptr, ptr %1015, align 8, !tbaa !15
  %1017 = load i64, ptr %28, align 8, !tbaa !11
  %1018 = getelementptr inbounds double, ptr %1016, i64 %1017
  %1019 = load double, ptr %1018, align 8, !tbaa !13
  %1020 = fsub double %1014, %1019
  %1021 = load ptr, ptr %4, align 8, !tbaa !9
  %1022 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1020, ptr noundef %1021)
  %1023 = load ptr, ptr %4, align 8, !tbaa !9
  %1024 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1013, double noundef %1022, ptr noundef %1023)
  store double %1024, ptr %75, align 8, !tbaa !13
  br label %1025

1025:                                             ; preds = %1006
  %1026 = load i64, ptr %28, align 8, !tbaa !11
  %1027 = add nsw i64 %1026, 1
  store i64 %1027, ptr %28, align 8, !tbaa !11
  br label %1001, !llvm.loop !30

1028:                                             ; preds = %1001
  %1029 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %1030 = trunc i8 %1029 to i1
  br i1 %1030, label %1031, label %1039

1031:                                             ; preds = %1028
  %1032 = load i64, ptr %27, align 8, !tbaa !11
  %1033 = load i64, ptr %24, align 8, !tbaa !11
  %1034 = load double, ptr %51, align 8, !tbaa !13
  %1035 = load i64, ptr %25, align 8, !tbaa !11
  %1036 = load double, ptr %52, align 8, !tbaa !13
  %1037 = load i64, ptr %41, align 8, !tbaa !11
  %1038 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21spline1dconvdiffcubicEPKNS_9ae_vectorES2_lldldS2_lPS0_S3_PNS_8ae_stateE(ptr noundef %31, ptr noundef %33, i64 noundef %1032, i64 noundef %1033, double noundef %1034, i64 noundef %1035, double noundef %1036, ptr noundef %45, i64 noundef %1037, ptr noundef %42, ptr noundef %43, ptr noundef %1038)
  br label %1047

1039:                                             ; preds = %1028
  %1040 = load i64, ptr %27, align 8, !tbaa !11
  %1041 = load i64, ptr %24, align 8, !tbaa !11
  %1042 = load double, ptr %51, align 8, !tbaa !13
  %1043 = load i64, ptr %25, align 8, !tbaa !11
  %1044 = load double, ptr %52, align 8, !tbaa !13
  %1045 = load i64, ptr %41, align 8, !tbaa !11
  %1046 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21spline1dconvdiffcubicEPKNS_9ae_vectorES2_lldldS2_lPS0_S3_PNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %1040, i64 noundef %1041, double noundef %1042, i64 noundef %1043, double noundef %1044, ptr noundef %45, i64 noundef %1045, ptr noundef %42, ptr noundef %43, ptr noundef %1046)
  br label %1047

1047:                                             ; preds = %1039, %1031
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1048

1048:                                             ; preds = %1084, %1047
  %1049 = load i64, ptr %28, align 8, !tbaa !11
  %1050 = load i64, ptr %41, align 8, !tbaa !11
  %1051 = sub nsw i64 %1050, 1
  %1052 = icmp sle i64 %1049, %1051
  br i1 %1052, label %1053, label %1087

1053:                                             ; preds = %1048
  %1054 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %1055 = load ptr, ptr %1054, align 8, !tbaa !15
  %1056 = load i64, ptr %28, align 8, !tbaa !11
  %1057 = getelementptr inbounds double, ptr %1055, i64 %1056
  %1058 = load double, ptr %1057, align 8, !tbaa !13
  %1059 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %1058, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %1059)
  %1060 = load double, ptr %75, align 8, !tbaa !13
  %1061 = load double, ptr %66, align 8, !tbaa !13
  %1062 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %1063 = load ptr, ptr %1062, align 8, !tbaa !15
  %1064 = load i64, ptr %28, align 8, !tbaa !11
  %1065 = getelementptr inbounds double, ptr %1063, i64 %1064
  %1066 = load double, ptr %1065, align 8, !tbaa !13
  %1067 = fsub double %1061, %1066
  %1068 = load ptr, ptr %4, align 8, !tbaa !9
  %1069 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1067, ptr noundef %1068)
  %1070 = load ptr, ptr %4, align 8, !tbaa !9
  %1071 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1060, double noundef %1069, ptr noundef %1070)
  store double %1071, ptr %75, align 8, !tbaa !13
  %1072 = load double, ptr %75, align 8, !tbaa !13
  %1073 = load double, ptr %67, align 8, !tbaa !13
  %1074 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %1075 = load ptr, ptr %1074, align 8, !tbaa !15
  %1076 = load i64, ptr %28, align 8, !tbaa !11
  %1077 = getelementptr inbounds double, ptr %1075, i64 %1076
  %1078 = load double, ptr %1077, align 8, !tbaa !13
  %1079 = fsub double %1073, %1078
  %1080 = load ptr, ptr %4, align 8, !tbaa !9
  %1081 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1079, ptr noundef %1080)
  %1082 = load ptr, ptr %4, align 8, !tbaa !9
  %1083 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1072, double noundef %1081, ptr noundef %1082)
  store double %1083, ptr %75, align 8, !tbaa !13
  br label %1084

1084:                                             ; preds = %1053
  %1085 = load i64, ptr %28, align 8, !tbaa !11
  %1086 = add nsw i64 %1085, 1
  store i64 %1086, ptr %28, align 8, !tbaa !11
  br label %1048, !llvm.loop !31

1087:                                             ; preds = %1048
  %1088 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %1089 = trunc i8 %1088 to i1
  br i1 %1089, label %1090, label %1098

1090:                                             ; preds = %1087
  %1091 = load i64, ptr %27, align 8, !tbaa !11
  %1092 = load i64, ptr %24, align 8, !tbaa !11
  %1093 = load double, ptr %51, align 8, !tbaa !13
  %1094 = load i64, ptr %25, align 8, !tbaa !11
  %1095 = load double, ptr %52, align 8, !tbaa !13
  %1096 = load i64, ptr %41, align 8, !tbaa !11
  %1097 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl22spline1dconvdiff2cubicEPKNS_9ae_vectorES2_lldldS2_lPS0_S3_S3_PNS_8ae_stateE(ptr noundef %31, ptr noundef %33, i64 noundef %1091, i64 noundef %1092, double noundef %1093, i64 noundef %1094, double noundef %1095, ptr noundef %45, i64 noundef %1096, ptr noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef %1097)
  br label %1106

1098:                                             ; preds = %1087
  %1099 = load i64, ptr %27, align 8, !tbaa !11
  %1100 = load i64, ptr %24, align 8, !tbaa !11
  %1101 = load double, ptr %51, align 8, !tbaa !13
  %1102 = load i64, ptr %25, align 8, !tbaa !11
  %1103 = load double, ptr %52, align 8, !tbaa !13
  %1104 = load i64, ptr %41, align 8, !tbaa !11
  %1105 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl22spline1dconvdiff2cubicEPKNS_9ae_vectorES2_lldldS2_lPS0_S3_S3_PNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %1099, i64 noundef %1100, double noundef %1101, i64 noundef %1102, double noundef %1103, ptr noundef %45, i64 noundef %1104, ptr noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef %1105)
  br label %1106

1106:                                             ; preds = %1098, %1090
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1107

1107:                                             ; preds = %1155, %1106
  %1108 = load i64, ptr %28, align 8, !tbaa !11
  %1109 = load i64, ptr %41, align 8, !tbaa !11
  %1110 = sub nsw i64 %1109, 1
  %1111 = icmp sle i64 %1108, %1110
  br i1 %1111, label %1112, label %1158

1112:                                             ; preds = %1107
  %1113 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %1114 = load ptr, ptr %1113, align 8, !tbaa !15
  %1115 = load i64, ptr %28, align 8, !tbaa !11
  %1116 = getelementptr inbounds double, ptr %1114, i64 %1115
  %1117 = load double, ptr %1116, align 8, !tbaa !13
  %1118 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %1117, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %1118)
  %1119 = load double, ptr %75, align 8, !tbaa !13
  %1120 = load double, ptr %66, align 8, !tbaa !13
  %1121 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %1122 = load ptr, ptr %1121, align 8, !tbaa !15
  %1123 = load i64, ptr %28, align 8, !tbaa !11
  %1124 = getelementptr inbounds double, ptr %1122, i64 %1123
  %1125 = load double, ptr %1124, align 8, !tbaa !13
  %1126 = fsub double %1120, %1125
  %1127 = load ptr, ptr %4, align 8, !tbaa !9
  %1128 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1126, ptr noundef %1127)
  %1129 = load ptr, ptr %4, align 8, !tbaa !9
  %1130 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1119, double noundef %1128, ptr noundef %1129)
  store double %1130, ptr %75, align 8, !tbaa !13
  %1131 = load double, ptr %75, align 8, !tbaa !13
  %1132 = load double, ptr %67, align 8, !tbaa !13
  %1133 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %1134 = load ptr, ptr %1133, align 8, !tbaa !15
  %1135 = load i64, ptr %28, align 8, !tbaa !11
  %1136 = getelementptr inbounds double, ptr %1134, i64 %1135
  %1137 = load double, ptr %1136, align 8, !tbaa !13
  %1138 = fsub double %1132, %1137
  %1139 = load ptr, ptr %4, align 8, !tbaa !9
  %1140 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1138, ptr noundef %1139)
  %1141 = load ptr, ptr %4, align 8, !tbaa !9
  %1142 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1131, double noundef %1140, ptr noundef %1141)
  store double %1142, ptr %75, align 8, !tbaa !13
  %1143 = load double, ptr %75, align 8, !tbaa !13
  %1144 = load double, ptr %68, align 8, !tbaa !13
  %1145 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %1146 = load ptr, ptr %1145, align 8, !tbaa !15
  %1147 = load i64, ptr %28, align 8, !tbaa !11
  %1148 = getelementptr inbounds double, ptr %1146, i64 %1147
  %1149 = load double, ptr %1148, align 8, !tbaa !13
  %1150 = fsub double %1144, %1149
  %1151 = load ptr, ptr %4, align 8, !tbaa !9
  %1152 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1150, ptr noundef %1151)
  %1153 = load ptr, ptr %4, align 8, !tbaa !9
  %1154 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1143, double noundef %1152, ptr noundef %1153)
  store double %1154, ptr %75, align 8, !tbaa !13
  br label %1155

1155:                                             ; preds = %1112
  %1156 = load i64, ptr %28, align 8, !tbaa !11
  %1157 = add nsw i64 %1156, 1
  store i64 %1157, ptr %28, align 8, !tbaa !11
  br label %1107, !llvm.loop !32

1158:                                             ; preds = %1107
  %1159 = load double, ptr %75, align 8, !tbaa !13
  %1160 = load double, ptr %19, align 8, !tbaa !13
  %1161 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1159, double noundef %1160)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %8, i1 noundef zeroext %1161, ptr noundef @.str.19, i32 noundef 99880, ptr noundef @.str.790)
  br label %1162

1162:                                             ; preds = %1158, %416
  %1163 = load i64, ptr %25, align 8, !tbaa !11
  %1164 = add nsw i64 %1163, 1
  store i64 %1164, ptr %25, align 8, !tbaa !11
  br label %398, !llvm.loop !33

1165:                                             ; preds = %398
  br label %1166

1166:                                             ; preds = %1165
  %1167 = load i64, ptr %24, align 8, !tbaa !11
  %1168 = add nsw i64 %1167, 1
  store i64 %1168, ptr %24, align 8, !tbaa !11
  br label %394, !llvm.loop !34

1169:                                             ; preds = %394
  store i64 -1, ptr %24, align 8, !tbaa !11
  br label %1170

1170:                                             ; preds = %1470, %1169
  %1171 = load i64, ptr %24, align 8, !tbaa !11
  %1172 = icmp sle i64 %1171, 0
  br i1 %1172, label %1173, label %1473

1173:                                             ; preds = %1170
  %1174 = load i64, ptr %24, align 8, !tbaa !11
  %1175 = icmp eq i64 %1174, -1
  %1176 = zext i1 %1175 to i8
  store i8 %1176, ptr %26, align 1, !tbaa !5
  %1177 = load ptr, ptr %4, align 8, !tbaa !9
  %1178 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1177)
  %1179 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1178, double noundef 5.000000e-01)
  br i1 %1179, label %1180, label %1187

1180:                                             ; preds = %1173
  %1181 = load ptr, ptr %4, align 8, !tbaa !9
  %1182 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1181)
  %1183 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1182, double noundef 5.000000e-01)
  br i1 %1183, label %1184, label %1185

1184:                                             ; preds = %1180
  store double 0.000000e+00, ptr %76, align 8, !tbaa !13
  br label %1186

1185:                                             ; preds = %1180
  store double 1.000000e+00, ptr %76, align 8, !tbaa !13
  br label %1186

1186:                                             ; preds = %1185, %1184
  br label %1190

1187:                                             ; preds = %1173
  %1188 = load ptr, ptr %4, align 8, !tbaa !9
  %1189 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1188)
  store double %1189, ptr %76, align 8, !tbaa !13
  br label %1190

1190:                                             ; preds = %1187, %1186
  %1191 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %1192 = trunc i8 %1191 to i1
  br i1 %1192, label %1193, label %1198

1193:                                             ; preds = %1190
  %1194 = load i64, ptr %27, align 8, !tbaa !11
  %1195 = load i64, ptr %24, align 8, !tbaa !11
  %1196 = load double, ptr %76, align 8, !tbaa !13
  %1197 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl23spline1dbuildcatmullromEPKNS_9ae_vectorES2_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %33, i64 noundef %1194, i64 noundef %1195, double noundef %1196, ptr noundef %47, ptr noundef %1197)
  br label %1203

1198:                                             ; preds = %1190
  %1199 = load i64, ptr %27, align 8, !tbaa !11
  %1200 = load i64, ptr %24, align 8, !tbaa !11
  %1201 = load double, ptr %76, align 8, !tbaa !13
  %1202 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl23spline1dbuildcatmullromEPKNS_9ae_vectorES2_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %1199, i64 noundef %1200, double noundef %1201, ptr noundef %47, ptr noundef %1202)
  br label %1203

1203:                                             ; preds = %1198, %1193
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  %1204 = load i8, ptr %26, align 1, !tbaa !5, !range !20, !noundef !21
  %1205 = trunc i8 %1204 to i1
  br i1 %1205, label %1206, label %1314

1206:                                             ; preds = %1203
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1207

1207:                                             ; preds = %1262, %1206
  %1208 = load i64, ptr %28, align 8, !tbaa !11
  %1209 = load i64, ptr %27, align 8, !tbaa !11
  %1210 = sub nsw i64 %1209, 1
  %1211 = icmp sle i64 %1208, %1210
  br i1 %1211, label %1212, label %1265

1212:                                             ; preds = %1207
  %1213 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1214 = load ptr, ptr %1213, align 8, !tbaa !15
  %1215 = load i64, ptr %28, align 8, !tbaa !11
  %1216 = getelementptr inbounds double, ptr %1214, i64 %1215
  %1217 = load double, ptr %1216, align 8, !tbaa !13
  store double %1217, ptr %56, align 8, !tbaa !13
  %1218 = load double, ptr %56, align 8, !tbaa !13
  %1219 = load double, ptr %50, align 8, !tbaa !13
  %1220 = load double, ptr %49, align 8, !tbaa !13
  %1221 = fsub double %1219, %1220
  %1222 = load ptr, ptr %4, align 8, !tbaa !9
  %1223 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %1222)
  %1224 = sub nsw i64 %1223, 2
  %1225 = sitofp i64 %1224 to double
  %1226 = call double @llvm.fmuladd.f64(double %1221, double %1225, double %1218)
  store double %1226, ptr %73, align 8, !tbaa !13
  %1227 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %33, i32 0, i32 4
  %1228 = load ptr, ptr %1227, align 8, !tbaa !15
  %1229 = load i64, ptr %28, align 8, !tbaa !11
  %1230 = getelementptr inbounds double, ptr %1228, i64 %1229
  %1231 = load double, ptr %1230, align 8, !tbaa !13
  %1232 = load double, ptr %73, align 8, !tbaa !13
  %1233 = load ptr, ptr %4, align 8, !tbaa !9
  %1234 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1232, ptr noundef %1233)
  %1235 = fsub double %1231, %1234
  store double %1235, ptr %53, align 8, !tbaa !13
  %1236 = load double, ptr %75, align 8, !tbaa !13
  %1237 = load double, ptr %53, align 8, !tbaa !13
  %1238 = load ptr, ptr %4, align 8, !tbaa !9
  %1239 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1237, ptr noundef %1238)
  %1240 = load ptr, ptr %4, align 8, !tbaa !9
  %1241 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1236, double noundef %1239, ptr noundef %1240)
  store double %1241, ptr %75, align 8, !tbaa !13
  %1242 = load double, ptr %56, align 8, !tbaa !13
  %1243 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %1242, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %1243)
  %1244 = load double, ptr %73, align 8, !tbaa !13
  %1245 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %1244, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %1245)
  %1246 = load double, ptr %75, align 8, !tbaa !13
  %1247 = load double, ptr %66, align 8, !tbaa !13
  %1248 = load double, ptr %69, align 8, !tbaa !13
  %1249 = fsub double %1247, %1248
  %1250 = load ptr, ptr %4, align 8, !tbaa !9
  %1251 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1249, ptr noundef %1250)
  %1252 = load ptr, ptr %4, align 8, !tbaa !9
  %1253 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1246, double noundef %1251, ptr noundef %1252)
  store double %1253, ptr %75, align 8, !tbaa !13
  %1254 = load double, ptr %75, align 8, !tbaa !13
  %1255 = load double, ptr %67, align 8, !tbaa !13
  %1256 = load double, ptr %70, align 8, !tbaa !13
  %1257 = fsub double %1255, %1256
  %1258 = load ptr, ptr %4, align 8, !tbaa !9
  %1259 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1257, ptr noundef %1258)
  %1260 = load ptr, ptr %4, align 8, !tbaa !9
  %1261 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1254, double noundef %1259, ptr noundef %1260)
  store double %1261, ptr %75, align 8, !tbaa !13
  br label %1262

1262:                                             ; preds = %1212
  %1263 = load i64, ptr %28, align 8, !tbaa !11
  %1264 = add nsw i64 %1263, 1
  store i64 %1264, ptr %28, align 8, !tbaa !11
  br label %1207, !llvm.loop !35

1265:                                             ; preds = %1207
  %1266 = load double, ptr %49, align 8, !tbaa !13
  %1267 = load double, ptr %50, align 8, !tbaa !13
  %1268 = load double, ptr %49, align 8, !tbaa !13
  %1269 = fsub double %1267, %1268
  %1270 = load ptr, ptr %4, align 8, !tbaa !9
  %1271 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1270)
  %1272 = call double @llvm.fmuladd.f64(double %1269, double %1271, double %1266)
  store double %1272, ptr %56, align 8, !tbaa !13
  %1273 = load double, ptr %56, align 8, !tbaa !13
  %1274 = load double, ptr %50, align 8, !tbaa !13
  %1275 = load double, ptr %49, align 8, !tbaa !13
  %1276 = fsub double %1274, %1275
  %1277 = load ptr, ptr %4, align 8, !tbaa !9
  %1278 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %1277)
  %1279 = sub nsw i64 %1278, 2
  %1280 = sitofp i64 %1279 to double
  %1281 = call double @llvm.fmuladd.f64(double %1276, double %1280, double %1273)
  store double %1281, ptr %73, align 8, !tbaa !13
  %1282 = load double, ptr %75, align 8, !tbaa !13
  %1283 = load double, ptr %56, align 8, !tbaa !13
  %1284 = load ptr, ptr %4, align 8, !tbaa !9
  %1285 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1283, ptr noundef %1284)
  %1286 = load double, ptr %73, align 8, !tbaa !13
  %1287 = load ptr, ptr %4, align 8, !tbaa !9
  %1288 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1286, ptr noundef %1287)
  %1289 = fsub double %1285, %1288
  %1290 = load ptr, ptr %4, align 8, !tbaa !9
  %1291 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1289, ptr noundef %1290)
  %1292 = load ptr, ptr %4, align 8, !tbaa !9
  %1293 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1282, double noundef %1291, ptr noundef %1292)
  store double %1293, ptr %75, align 8, !tbaa !13
  %1294 = load double, ptr %56, align 8, !tbaa !13
  %1295 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %1294, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %1295)
  %1296 = load double, ptr %73, align 8, !tbaa !13
  %1297 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %1296, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %1297)
  %1298 = load double, ptr %75, align 8, !tbaa !13
  %1299 = load double, ptr %66, align 8, !tbaa !13
  %1300 = load double, ptr %69, align 8, !tbaa !13
  %1301 = fsub double %1299, %1300
  %1302 = load ptr, ptr %4, align 8, !tbaa !9
  %1303 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1301, ptr noundef %1302)
  %1304 = load ptr, ptr %4, align 8, !tbaa !9
  %1305 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1298, double noundef %1303, ptr noundef %1304)
  store double %1305, ptr %75, align 8, !tbaa !13
  %1306 = load double, ptr %75, align 8, !tbaa !13
  %1307 = load double, ptr %67, align 8, !tbaa !13
  %1308 = load double, ptr %70, align 8, !tbaa !13
  %1309 = fsub double %1307, %1308
  %1310 = load ptr, ptr %4, align 8, !tbaa !9
  %1311 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1309, ptr noundef %1310)
  %1312 = load ptr, ptr %4, align 8, !tbaa !9
  %1313 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1306, double noundef %1311, ptr noundef %1312)
  store double %1313, ptr %75, align 8, !tbaa !13
  br label %1343

1314:                                             ; preds = %1203
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1315

1315:                                             ; preds = %1339, %1314
  %1316 = load i64, ptr %28, align 8, !tbaa !11
  %1317 = load i64, ptr %27, align 8, !tbaa !11
  %1318 = sub nsw i64 %1317, 1
  %1319 = icmp sle i64 %1316, %1318
  br i1 %1319, label %1320, label %1342

1320:                                             ; preds = %1315
  %1321 = load double, ptr %75, align 8, !tbaa !13
  %1322 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1323 = load ptr, ptr %1322, align 8, !tbaa !15
  %1324 = load i64, ptr %28, align 8, !tbaa !11
  %1325 = getelementptr inbounds double, ptr %1323, i64 %1324
  %1326 = load double, ptr %1325, align 8, !tbaa !13
  %1327 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1328 = load ptr, ptr %1327, align 8, !tbaa !15
  %1329 = load i64, ptr %28, align 8, !tbaa !11
  %1330 = getelementptr inbounds double, ptr %1328, i64 %1329
  %1331 = load double, ptr %1330, align 8, !tbaa !13
  %1332 = load ptr, ptr %4, align 8, !tbaa !9
  %1333 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1331, ptr noundef %1332)
  %1334 = fsub double %1326, %1333
  %1335 = load ptr, ptr %4, align 8, !tbaa !9
  %1336 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1334, ptr noundef %1335)
  %1337 = load ptr, ptr %4, align 8, !tbaa !9
  %1338 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1321, double noundef %1336, ptr noundef %1337)
  store double %1338, ptr %75, align 8, !tbaa !13
  br label %1339

1339:                                             ; preds = %1320
  %1340 = load i64, ptr %28, align 8, !tbaa !11
  %1341 = add nsw i64 %1340, 1
  store i64 %1341, ptr %28, align 8, !tbaa !11
  br label %1315, !llvm.loop !36

1342:                                             ; preds = %1315
  br label %1343

1343:                                             ; preds = %1342, %1265
  %1344 = load i8, ptr %7, align 1, !tbaa !5, !range !20, !noundef !21
  %1345 = trunc i8 %1344 to i1
  br i1 %1345, label %1350, label %1346

1346:                                             ; preds = %1343
  %1347 = load double, ptr %75, align 8, !tbaa !13
  %1348 = load double, ptr %19, align 8, !tbaa !13
  %1349 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1347, double noundef %1348)
  br label %1350

1350:                                             ; preds = %1346, %1343
  %1351 = phi i1 [ true, %1343 ], [ %1349, %1346 ]
  %1352 = zext i1 %1351 to i8
  store i8 %1352, ptr %7, align 1, !tbaa !5
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  %1353 = load i64, ptr %24, align 8, !tbaa !11
  %1354 = icmp eq i64 %1353, 0
  br i1 %1354, label %1355, label %1396

1355:                                             ; preds = %1350
  %1356 = load double, ptr %49, align 8, !tbaa !13
  %1357 = load double, ptr %22, align 8, !tbaa !13
  %1358 = fsub double %1356, %1357
  %1359 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %1358, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %1359)
  %1360 = load double, ptr %49, align 8, !tbaa !13
  %1361 = load double, ptr %22, align 8, !tbaa !13
  %1362 = fadd double %1360, %1361
  %1363 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %1362, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %1363)
  %1364 = load double, ptr %71, align 8, !tbaa !13
  %1365 = load double, ptr %68, align 8, !tbaa !13
  %1366 = fsub double %1364, %1365
  %1367 = load double, ptr %22, align 8, !tbaa !13
  %1368 = fmul double 2.000000e+00, %1367
  %1369 = fdiv double %1366, %1368
  store double %1369, ptr %53, align 8, !tbaa !13
  %1370 = load double, ptr %75, align 8, !tbaa !13
  %1371 = load double, ptr %53, align 8, !tbaa !13
  %1372 = load ptr, ptr %4, align 8, !tbaa !9
  %1373 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1371, ptr noundef %1372)
  %1374 = load ptr, ptr %4, align 8, !tbaa !9
  %1375 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1370, double noundef %1373, ptr noundef %1374)
  store double %1375, ptr %75, align 8, !tbaa !13
  %1376 = load double, ptr %50, align 8, !tbaa !13
  %1377 = load double, ptr %22, align 8, !tbaa !13
  %1378 = fsub double %1376, %1377
  %1379 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %1378, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %1379)
  %1380 = load double, ptr %50, align 8, !tbaa !13
  %1381 = load double, ptr %22, align 8, !tbaa !13
  %1382 = fadd double %1380, %1381
  %1383 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %1382, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %1383)
  %1384 = load double, ptr %71, align 8, !tbaa !13
  %1385 = load double, ptr %68, align 8, !tbaa !13
  %1386 = fsub double %1384, %1385
  %1387 = load double, ptr %22, align 8, !tbaa !13
  %1388 = fmul double 2.000000e+00, %1387
  %1389 = fdiv double %1386, %1388
  store double %1389, ptr %53, align 8, !tbaa !13
  %1390 = load double, ptr %75, align 8, !tbaa !13
  %1391 = load double, ptr %53, align 8, !tbaa !13
  %1392 = load ptr, ptr %4, align 8, !tbaa !9
  %1393 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1391, ptr noundef %1392)
  %1394 = load ptr, ptr %4, align 8, !tbaa !9
  %1395 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1390, double noundef %1393, ptr noundef %1394)
  store double %1395, ptr %75, align 8, !tbaa !13
  br label %1396

1396:                                             ; preds = %1355, %1350
  %1397 = load i64, ptr %24, align 8, !tbaa !11
  %1398 = icmp eq i64 %1397, -1
  br i1 %1398, label %1399, label %1422

1399:                                             ; preds = %1396
  %1400 = load double, ptr %49, align 8, !tbaa !13
  %1401 = fadd double %1400, 5.000000e-14
  %1402 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %1401, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %1402)
  %1403 = load double, ptr %50, align 8, !tbaa !13
  %1404 = fsub double %1403, 5.000000e-14
  %1405 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_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 %75, align 8, !tbaa !13
  %1407 = load double, ptr %66, align 8, !tbaa !13
  %1408 = load double, ptr %69, align 8, !tbaa !13
  %1409 = fsub double %1407, %1408
  %1410 = load ptr, ptr %4, align 8, !tbaa !9
  %1411 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1409, ptr noundef %1410)
  %1412 = load ptr, ptr %4, align 8, !tbaa !9
  %1413 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1406, double noundef %1411, ptr noundef %1412)
  store double %1413, ptr %75, align 8, !tbaa !13
  %1414 = load double, ptr %75, align 8, !tbaa !13
  %1415 = load double, ptr %67, align 8, !tbaa !13
  %1416 = load double, ptr %70, align 8, !tbaa !13
  %1417 = fsub double %1415, %1416
  %1418 = load ptr, ptr %4, align 8, !tbaa !9
  %1419 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1417, ptr noundef %1418)
  %1420 = load ptr, ptr %4, align 8, !tbaa !9
  %1421 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1414, double noundef %1419, ptr noundef %1420)
  store double %1421, ptr %75, align 8, !tbaa !13
  br label %1422

1422:                                             ; preds = %1399, %1396
  %1423 = load i8, ptr %7, align 1, !tbaa !5, !range !20, !noundef !21
  %1424 = trunc i8 %1423 to i1
  br i1 %1424, label %1428, label %1425

1425:                                             ; preds = %1422
  %1426 = load double, ptr %75, align 8, !tbaa !13
  %1427 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1426, double noundef 1.000000e-03)
  br label %1428

1428:                                             ; preds = %1425, %1422
  %1429 = phi i1 [ true, %1422 ], [ %1427, %1425 ]
  %1430 = zext i1 %1429 to i8
  store i8 %1430, ptr %7, align 1, !tbaa !5
  %1431 = load double, ptr %49, align 8, !tbaa !13
  %1432 = load double, ptr %50, align 8, !tbaa !13
  %1433 = load double, ptr %21, align 8, !tbaa !13
  %1434 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %1431, double noundef %1432, ptr noundef %47, double noundef %1433, ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %1434)
  %1435 = load double, ptr %49, align 8, !tbaa !13
  %1436 = load double, ptr %50, align 8, !tbaa !13
  %1437 = load double, ptr %21, align 8, !tbaa !13
  %1438 = fdiv double %1437, 3.000000e+00
  %1439 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %1435, double noundef %1436, ptr noundef %47, double noundef %1438, ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %1439)
  %1440 = load double, ptr %57, align 8, !tbaa !13
  %1441 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1440, double noundef 0x3EB0C6F7A0B5ED8D)
  br i1 %1441, label %1442, label %1454

1442:                                             ; preds = %1428
  %1443 = load i8, ptr %7, align 1, !tbaa !5, !range !20, !noundef !21
  %1444 = trunc i8 %1443 to i1
  br i1 %1444, label %1451, label %1445

1445:                                             ; preds = %1442
  %1446 = load double, ptr %60, align 8, !tbaa !13
  %1447 = load double, ptr %57, align 8, !tbaa !13
  %1448 = fdiv double %1446, %1447
  %1449 = load double, ptr %80, align 8, !tbaa !13
  %1450 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1448, double noundef %1449)
  br label %1451

1451:                                             ; preds = %1445, %1442
  %1452 = phi i1 [ true, %1442 ], [ %1450, %1445 ]
  %1453 = zext i1 %1452 to i8
  store i8 %1453, ptr %7, align 1, !tbaa !5
  br label %1454

1454:                                             ; preds = %1451, %1428
  %1455 = load double, ptr %58, align 8, !tbaa !13
  %1456 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1455, double noundef 0x3EB0C6F7A0B5ED8D)
  br i1 %1456, label %1457, label %1469

1457:                                             ; preds = %1454
  %1458 = load i8, ptr %7, align 1, !tbaa !5, !range !20, !noundef !21
  %1459 = trunc i8 %1458 to i1
  br i1 %1459, label %1466, label %1460

1460:                                             ; preds = %1457
  %1461 = load double, ptr %61, align 8, !tbaa !13
  %1462 = load double, ptr %58, align 8, !tbaa !13
  %1463 = fdiv double %1461, %1462
  %1464 = load double, ptr %80, align 8, !tbaa !13
  %1465 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1463, double noundef %1464)
  br label %1466

1466:                                             ; preds = %1460, %1457
  %1467 = phi i1 [ true, %1457 ], [ %1465, %1460 ]
  %1468 = zext i1 %1467 to i8
  store i8 %1468, ptr %7, align 1, !tbaa !5
  br label %1469

1469:                                             ; preds = %1466, %1454
  br label %1470

1470:                                             ; preds = %1469
  %1471 = load i64, ptr %24, align 8, !tbaa !11
  %1472 = add nsw i64 %1471, 1
  store i64 %1472, ptr %24, align 8, !tbaa !11
  br label %1170, !llvm.loop !37

1473:                                             ; preds = %1170
  %1474 = load i64, ptr %27, align 8, !tbaa !11
  %1475 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20spline1dbuildhermiteEPKNS_9ae_vectorES2_S2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, ptr noundef %37, i64 noundef %1474, ptr noundef %47, ptr noundef %1475)
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1476

1476:                                             ; preds = %1500, %1473
  %1477 = load i64, ptr %28, align 8, !tbaa !11
  %1478 = load i64, ptr %27, align 8, !tbaa !11
  %1479 = sub nsw i64 %1478, 1
  %1480 = icmp sle i64 %1477, %1479
  br i1 %1480, label %1481, label %1503

1481:                                             ; preds = %1476
  %1482 = load double, ptr %75, align 8, !tbaa !13
  %1483 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1484 = load ptr, ptr %1483, align 8, !tbaa !15
  %1485 = load i64, ptr %28, align 8, !tbaa !11
  %1486 = getelementptr inbounds double, ptr %1484, i64 %1485
  %1487 = load double, ptr %1486, align 8, !tbaa !13
  %1488 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1489 = load ptr, ptr %1488, align 8, !tbaa !15
  %1490 = load i64, ptr %28, align 8, !tbaa !11
  %1491 = getelementptr inbounds double, ptr %1489, i64 %1490
  %1492 = load double, ptr %1491, align 8, !tbaa !13
  %1493 = load ptr, ptr %4, align 8, !tbaa !9
  %1494 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1492, ptr noundef %1493)
  %1495 = fsub double %1487, %1494
  %1496 = load ptr, ptr %4, align 8, !tbaa !9
  %1497 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1495, ptr noundef %1496)
  %1498 = load ptr, ptr %4, align 8, !tbaa !9
  %1499 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1482, double noundef %1497, ptr noundef %1498)
  store double %1499, ptr %75, align 8, !tbaa !13
  br label %1500

1500:                                             ; preds = %1481
  %1501 = load i64, ptr %28, align 8, !tbaa !11
  %1502 = add nsw i64 %1501, 1
  store i64 %1502, ptr %28, align 8, !tbaa !11
  br label %1476, !llvm.loop !38

1503:                                             ; preds = %1476
  %1504 = load double, ptr %75, align 8, !tbaa !13
  %1505 = load double, ptr %19, align 8, !tbaa !13
  %1506 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1504, double noundef %1505)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %9, i1 noundef zeroext %1506, ptr noundef @.str.19, i32 noundef 100024, ptr noundef @.str.791)
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1507

1507:                                             ; preds = %1547, %1503
  %1508 = load i64, ptr %28, align 8, !tbaa !11
  %1509 = load i64, ptr %27, align 8, !tbaa !11
  %1510 = sub nsw i64 %1509, 1
  %1511 = icmp sle i64 %1508, %1510
  br i1 %1511, label %1512, label %1550

1512:                                             ; preds = %1507
  %1513 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1514 = load ptr, ptr %1513, align 8, !tbaa !15
  %1515 = load i64, ptr %28, align 8, !tbaa !11
  %1516 = getelementptr inbounds double, ptr %1514, i64 %1515
  %1517 = load double, ptr %1516, align 8, !tbaa !13
  %1518 = load double, ptr %22, align 8, !tbaa !13
  %1519 = fadd double %1517, %1518
  %1520 = load ptr, ptr %4, align 8, !tbaa !9
  %1521 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1519, ptr noundef %1520)
  %1522 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1523 = load ptr, ptr %1522, align 8, !tbaa !15
  %1524 = load i64, ptr %28, align 8, !tbaa !11
  %1525 = getelementptr inbounds double, ptr %1523, i64 %1524
  %1526 = load double, ptr %1525, align 8, !tbaa !13
  %1527 = load double, ptr %22, align 8, !tbaa !13
  %1528 = fsub double %1526, %1527
  %1529 = load ptr, ptr %4, align 8, !tbaa !9
  %1530 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1528, ptr noundef %1529)
  %1531 = fsub double %1521, %1530
  %1532 = load double, ptr %22, align 8, !tbaa !13
  %1533 = fmul double 2.000000e+00, %1532
  %1534 = fdiv double %1531, %1533
  store double %1534, ptr %53, align 8, !tbaa !13
  %1535 = load double, ptr %75, align 8, !tbaa !13
  %1536 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %1537 = load ptr, ptr %1536, align 8, !tbaa !15
  %1538 = load i64, ptr %28, align 8, !tbaa !11
  %1539 = getelementptr inbounds double, ptr %1537, i64 %1538
  %1540 = load double, ptr %1539, align 8, !tbaa !13
  %1541 = load double, ptr %53, align 8, !tbaa !13
  %1542 = fsub double %1540, %1541
  %1543 = load ptr, ptr %4, align 8, !tbaa !9
  %1544 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1542, ptr noundef %1543)
  %1545 = load ptr, ptr %4, align 8, !tbaa !9
  %1546 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1535, double noundef %1544, ptr noundef %1545)
  store double %1546, ptr %75, align 8, !tbaa !13
  br label %1547

1547:                                             ; preds = %1512
  %1548 = load i64, ptr %28, align 8, !tbaa !11
  %1549 = add nsw i64 %1548, 1
  store i64 %1549, ptr %28, align 8, !tbaa !11
  br label %1507, !llvm.loop !39

1550:                                             ; preds = %1507
  %1551 = load double, ptr %75, align 8, !tbaa !13
  %1552 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1551, double noundef 1.000000e-03)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %9, i1 noundef zeroext %1552, ptr noundef @.str.19, i32 noundef 100031, ptr noundef @.str.792)
  %1553 = load double, ptr %49, align 8, !tbaa !13
  %1554 = load double, ptr %50, align 8, !tbaa !13
  %1555 = load double, ptr %21, align 8, !tbaa !13
  %1556 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %1553, double noundef %1554, ptr noundef %47, double noundef %1555, ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %1556)
  %1557 = load double, ptr %49, align 8, !tbaa !13
  %1558 = load double, ptr %50, align 8, !tbaa !13
  %1559 = load double, ptr %21, align 8, !tbaa !13
  %1560 = fdiv double %1559, 3.000000e+00
  %1561 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %1557, double noundef %1558, ptr noundef %47, double noundef %1560, ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %1561)
  %1562 = load double, ptr %60, align 8, !tbaa !13
  %1563 = load double, ptr %57, align 8, !tbaa !13
  %1564 = load double, ptr %79, align 8, !tbaa !13
  %1565 = fadd double %1563, %1564
  %1566 = fdiv double %1562, %1565
  %1567 = load double, ptr %80, align 8, !tbaa !13
  %1568 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1566, double noundef %1567)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %9, i1 noundef zeroext %1568, ptr noundef @.str.19, i32 noundef 100034, ptr noundef @.str.793)
  %1569 = load double, ptr %61, align 8, !tbaa !13
  %1570 = load double, ptr %58, align 8, !tbaa !13
  %1571 = load double, ptr %79, align 8, !tbaa !13
  %1572 = fadd double %1570, %1571
  %1573 = fdiv double %1569, %1572
  %1574 = load double, ptr %80, align 8, !tbaa !13
  %1575 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1573, double noundef %1574)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %9, i1 noundef zeroext %1575, ptr noundef @.str.19, i32 noundef 100035, ptr noundef @.str.794)
  %1576 = load i64, ptr %27, align 8, !tbaa !11
  %1577 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildakimaEPKNS_9ae_vectorES2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %1576, ptr noundef %47, ptr noundef %1577)
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1578

1578:                                             ; preds = %1602, %1550
  %1579 = load i64, ptr %28, align 8, !tbaa !11
  %1580 = load i64, ptr %27, align 8, !tbaa !11
  %1581 = sub nsw i64 %1580, 1
  %1582 = icmp sle i64 %1579, %1581
  br i1 %1582, label %1583, label %1605

1583:                                             ; preds = %1578
  %1584 = load double, ptr %75, align 8, !tbaa !13
  %1585 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1586 = load ptr, ptr %1585, align 8, !tbaa !15
  %1587 = load i64, ptr %28, align 8, !tbaa !11
  %1588 = getelementptr inbounds double, ptr %1586, i64 %1587
  %1589 = load double, ptr %1588, align 8, !tbaa !13
  %1590 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1591 = load ptr, ptr %1590, align 8, !tbaa !15
  %1592 = load i64, ptr %28, align 8, !tbaa !11
  %1593 = getelementptr inbounds double, ptr %1591, i64 %1592
  %1594 = load double, ptr %1593, align 8, !tbaa !13
  %1595 = load ptr, ptr %4, align 8, !tbaa !9
  %1596 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1594, ptr noundef %1595)
  %1597 = fsub double %1589, %1596
  %1598 = load ptr, ptr %4, align 8, !tbaa !9
  %1599 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1597, ptr noundef %1598)
  %1600 = load ptr, ptr %4, align 8, !tbaa !9
  %1601 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1584, double noundef %1599, ptr noundef %1600)
  store double %1601, ptr %75, align 8, !tbaa !13
  br label %1602

1602:                                             ; preds = %1583
  %1603 = load i64, ptr %28, align 8, !tbaa !11
  %1604 = add nsw i64 %1603, 1
  store i64 %1604, ptr %28, align 8, !tbaa !11
  br label %1578, !llvm.loop !40

1605:                                             ; preds = %1578
  %1606 = load i8, ptr %10, align 1, !tbaa !5, !range !20, !noundef !21
  %1607 = trunc i8 %1606 to i1
  br i1 %1607, label %1612, label %1608

1608:                                             ; preds = %1605
  %1609 = load double, ptr %75, align 8, !tbaa !13
  %1610 = load double, ptr %19, align 8, !tbaa !13
  %1611 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1609, double noundef %1610)
  br label %1612

1612:                                             ; preds = %1608, %1605
  %1613 = phi i1 [ true, %1605 ], [ %1611, %1608 ]
  %1614 = zext i1 %1613 to i8
  store i8 %1614, ptr %10, align 1, !tbaa !5
  %1615 = load double, ptr %49, align 8, !tbaa !13
  %1616 = load double, ptr %50, align 8, !tbaa !13
  %1617 = load double, ptr %21, align 8, !tbaa !13
  %1618 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %1615, double noundef %1616, ptr noundef %47, double noundef %1617, ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %1618)
  %1619 = load double, ptr %49, align 8, !tbaa !13
  %1620 = load double, ptr %50, align 8, !tbaa !13
  %1621 = load double, ptr %21, align 8, !tbaa !13
  %1622 = fdiv double %1621, 3.000000e+00
  %1623 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %1619, double noundef %1620, ptr noundef %47, double noundef %1622, ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %1623)
  %1624 = load double, ptr %60, align 8, !tbaa !13
  %1625 = load double, ptr %57, align 8, !tbaa !13
  %1626 = load double, ptr %79, align 8, !tbaa !13
  %1627 = fadd double %1625, %1626
  %1628 = fdiv double %1624, %1627
  %1629 = load double, ptr %80, align 8, !tbaa !13
  %1630 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1628, double noundef %1629)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %10, i1 noundef zeroext %1630, ptr noundef @.str.19, i32 noundef 100054, ptr noundef @.str.795)
  %1631 = load double, ptr %61, align 8, !tbaa !13
  %1632 = load double, ptr %58, align 8, !tbaa !13
  %1633 = load double, ptr %79, align 8, !tbaa !13
  %1634 = fadd double %1632, %1633
  %1635 = fdiv double %1631, %1634
  %1636 = load double, ptr %80, align 8, !tbaa !13
  %1637 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1635, double noundef %1636)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %10, i1 noundef zeroext %1637, ptr noundef @.str.19, i32 noundef 100055, ptr noundef @.str.796)
  %1638 = load i64, ptr %27, align 8, !tbaa !11
  %1639 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21spline1dbuildakimamodEPKNS_9ae_vectorES2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %1638, ptr noundef %47, ptr noundef %1639)
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %1640

1640:                                             ; preds = %1664, %1612
  %1641 = load i64, ptr %28, align 8, !tbaa !11
  %1642 = load i64, ptr %27, align 8, !tbaa !11
  %1643 = sub nsw i64 %1642, 1
  %1644 = icmp sle i64 %1641, %1643
  br i1 %1644, label %1645, label %1667

1645:                                             ; preds = %1640
  %1646 = load double, ptr %75, align 8, !tbaa !13
  %1647 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1648 = load ptr, ptr %1647, align 8, !tbaa !15
  %1649 = load i64, ptr %28, align 8, !tbaa !11
  %1650 = getelementptr inbounds double, ptr %1648, i64 %1649
  %1651 = load double, ptr %1650, align 8, !tbaa !13
  %1652 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1653 = load ptr, ptr %1652, align 8, !tbaa !15
  %1654 = load i64, ptr %28, align 8, !tbaa !11
  %1655 = getelementptr inbounds double, ptr %1653, i64 %1654
  %1656 = load double, ptr %1655, align 8, !tbaa !13
  %1657 = load ptr, ptr %4, align 8, !tbaa !9
  %1658 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1656, ptr noundef %1657)
  %1659 = fsub double %1651, %1658
  %1660 = load ptr, ptr %4, align 8, !tbaa !9
  %1661 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1659, ptr noundef %1660)
  %1662 = load ptr, ptr %4, align 8, !tbaa !9
  %1663 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1646, double noundef %1661, ptr noundef %1662)
  store double %1663, ptr %75, align 8, !tbaa !13
  br label %1664

1664:                                             ; preds = %1645
  %1665 = load i64, ptr %28, align 8, !tbaa !11
  %1666 = add nsw i64 %1665, 1
  store i64 %1666, ptr %28, align 8, !tbaa !11
  br label %1640, !llvm.loop !41

1667:                                             ; preds = %1640
  %1668 = load i8, ptr %10, align 1, !tbaa !5, !range !20, !noundef !21
  %1669 = trunc i8 %1668 to i1
  br i1 %1669, label %1674, label %1670

1670:                                             ; preds = %1667
  %1671 = load double, ptr %75, align 8, !tbaa !13
  %1672 = load double, ptr %19, align 8, !tbaa !13
  %1673 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1671, double noundef %1672)
  br label %1674

1674:                                             ; preds = %1670, %1667
  %1675 = phi i1 [ true, %1667 ], [ %1673, %1670 ]
  %1676 = zext i1 %1675 to i8
  store i8 %1676, ptr %10, align 1, !tbaa !5
  %1677 = load double, ptr %49, align 8, !tbaa !13
  %1678 = load double, ptr %50, align 8, !tbaa !13
  %1679 = load double, ptr %21, align 8, !tbaa !13
  %1680 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %1677, double noundef %1678, ptr noundef %47, double noundef %1679, ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %1680)
  %1681 = load double, ptr %49, align 8, !tbaa !13
  %1682 = load double, ptr %50, align 8, !tbaa !13
  %1683 = load double, ptr %21, align 8, !tbaa !13
  %1684 = fdiv double %1683, 3.000000e+00
  %1685 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %1681, double noundef %1682, ptr noundef %47, double noundef %1684, ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %1685)
  %1686 = load double, ptr %60, align 8, !tbaa !13
  %1687 = load double, ptr %57, align 8, !tbaa !13
  %1688 = load double, ptr %79, align 8, !tbaa !13
  %1689 = fadd double %1687, %1688
  %1690 = fdiv double %1686, %1689
  %1691 = load double, ptr %80, align 8, !tbaa !13
  %1692 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1690, double noundef %1691)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %10, i1 noundef zeroext %1692, ptr noundef @.str.19, i32 noundef 100074, ptr noundef @.str.797)
  %1693 = load double, ptr %61, align 8, !tbaa !13
  %1694 = load double, ptr %58, align 8, !tbaa !13
  %1695 = load double, ptr %79, align 8, !tbaa !13
  %1696 = fadd double %1694, %1695
  %1697 = fdiv double %1693, %1696
  %1698 = load double, ptr %80, align 8, !tbaa !13
  %1699 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1697, double noundef %1698)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %10, i1 noundef zeroext %1699, ptr noundef @.str.19, i32 noundef 100075, ptr noundef @.str.798)
  br label %1700

1700:                                             ; preds = %1674
  %1701 = load i64, ptr %30, align 8, !tbaa !11
  %1702 = add nsw i64 %1701, 1
  store i64 %1702, ptr %30, align 8, !tbaa !11
  br label %127, !llvm.loop !42

1703:                                             ; preds = %127
  br label %1704

1704:                                             ; preds = %1703
  %1705 = load i64, ptr %27, align 8, !tbaa !11
  %1706 = add nsw i64 %1705, 1
  store i64 %1706, ptr %27, align 8, !tbaa !11
  br label %106, !llvm.loop !43

1707:                                             ; preds = %106
  store i64 2, ptr %27, align 8, !tbaa !11
  br label %1708

1708:                                             ; preds = %1837, %1707
  %1709 = load i64, ptr %27, align 8, !tbaa !11
  %1710 = load i64, ptr %23, align 8, !tbaa !11
  %1711 = icmp sle i64 %1709, %1710
  br i1 %1711, label %1712, label %1840

1712:                                             ; preds = %1708
  %1713 = load i64, ptr %27, align 8, !tbaa !11
  %1714 = sub nsw i64 %1713, 1
  %1715 = add nsw i64 %1714, 1
  %1716 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %1715, ptr noundef %1716)
  %1717 = load i64, ptr %27, align 8, !tbaa !11
  %1718 = sub nsw i64 %1717, 1
  %1719 = add nsw i64 %1718, 1
  %1720 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %1719, ptr noundef %1720)
  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 %1721

1721:                                             ; preds = %1750, %1712
  %1722 = load i64, ptr %28, align 8, !tbaa !11
  %1723 = load i64, ptr %27, align 8, !tbaa !11
  %1724 = sub nsw i64 %1723, 1
  %1725 = icmp sle i64 %1722, %1724
  br i1 %1725, label %1726, label %1753

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

1750:                                             ; preds = %1726
  %1751 = load i64, ptr %28, align 8, !tbaa !11
  %1752 = add nsw i64 %1751, 1
  store i64 %1752, ptr %28, align 8, !tbaa !11
  br label %1721, !llvm.loop !44

1753:                                             ; preds = %1721
  %1754 = load i64, ptr %27, align 8, !tbaa !11
  %1755 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl19spline1dbuildlinearEPKNS_9ae_vectorES2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %1754, ptr noundef %47, ptr noundef %1755)
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 0, ptr %29, align 8, !tbaa !11
  br label %1756

1756:                                             ; preds = %1824, %1753
  %1757 = load i64, ptr %29, align 8, !tbaa !11
  %1758 = load i64, ptr %27, align 8, !tbaa !11
  %1759 = sub nsw i64 %1758, 2
  %1760 = icmp sle i64 %1757, %1759
  br i1 %1760, label %1761, label %1827

1761:                                             ; preds = %1756
  %1762 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1763 = load ptr, ptr %1762, align 8, !tbaa !15
  %1764 = load i64, ptr %29, align 8, !tbaa !11
  %1765 = getelementptr inbounds double, ptr %1763, i64 %1764
  %1766 = load double, ptr %1765, align 8, !tbaa !13
  store double %1766, ptr %49, align 8, !tbaa !13
  %1767 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1768 = load ptr, ptr %1767, align 8, !tbaa !15
  %1769 = load i64, ptr %29, align 8, !tbaa !11
  %1770 = add nsw i64 %1769, 1
  %1771 = getelementptr inbounds double, ptr %1768, i64 %1770
  %1772 = load double, ptr %1771, align 8, !tbaa !13
  store double %1772, ptr %50, align 8, !tbaa !13
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %1773

1773:                                             ; preds = %1820, %1761
  %1774 = load i64, ptr %30, align 8, !tbaa !11
  %1775 = load i64, ptr %20, align 8, !tbaa !11
  %1776 = icmp sle i64 %1774, %1775
  br i1 %1776, label %1777, label %1823

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

1820:                                             ; preds = %1777
  %1821 = load i64, ptr %30, align 8, !tbaa !11
  %1822 = add nsw i64 %1821, 1
  store i64 %1822, ptr %30, align 8, !tbaa !11
  br label %1773, !llvm.loop !45

1823:                                             ; preds = %1773
  br label %1824

1824:                                             ; preds = %1823
  %1825 = load i64, ptr %29, align 8, !tbaa !11
  %1826 = add nsw i64 %1825, 1
  store i64 %1826, ptr %29, align 8, !tbaa !11
  br label %1756, !llvm.loop !46

1827:                                             ; preds = %1756
  %1828 = load i8, ptr %11, align 1, !tbaa !5, !range !20, !noundef !21
  %1829 = trunc i8 %1828 to i1
  br i1 %1829, label %1834, label %1830

1830:                                             ; preds = %1827
  %1831 = load double, ptr %75, align 8, !tbaa !13
  %1832 = load double, ptr %19, align 8, !tbaa !13
  %1833 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1831, double noundef %1832)
  br label %1834

1834:                                             ; preds = %1830, %1827
  %1835 = phi i1 [ true, %1827 ], [ %1833, %1830 ]
  %1836 = zext i1 %1835 to i8
  store i8 %1836, ptr %11, align 1, !tbaa !5
  br label %1837

1837:                                             ; preds = %1834
  %1838 = load i64, ptr %27, align 8, !tbaa !11
  %1839 = add nsw i64 %1838, 1
  store i64 %1839, ptr %27, align 8, !tbaa !11
  br label %1708, !llvm.loop !47

1840:                                             ; preds = %1708
  store i64 5, ptr %27, align 8, !tbaa !11
  br label %1841

1841:                                             ; preds = %2034, %1840
  %1842 = load i64, ptr %27, align 8, !tbaa !11
  %1843 = load i64, ptr %23, align 8, !tbaa !11
  %1844 = icmp sle i64 %1842, %1843
  br i1 %1844, label %1845, label %2037

1845:                                             ; preds = %1841
  store i64 0, ptr %81, align 8, !tbaa !11
  br label %1846

1846:                                             ; preds = %2030, %1845
  %1847 = load i64, ptr %81, align 8, !tbaa !11
  %1848 = icmp sle i64 %1847, 1
  br i1 %1848, label %1849, label %2033

1849:                                             ; preds = %1846
  %1850 = load i64, ptr %27, align 8, !tbaa !11
  %1851 = sub nsw i64 %1850, 1
  %1852 = add nsw i64 %1851, 1
  %1853 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %1852, ptr noundef %1853)
  %1854 = load i64, ptr %27, align 8, !tbaa !11
  %1855 = sub nsw i64 %1854, 1
  %1856 = add nsw i64 %1855, 1
  %1857 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %1856, ptr noundef %1857)
  %1858 = load i64, ptr %27, align 8, !tbaa !11
  %1859 = sub nsw i64 %1858, 1
  %1860 = add nsw i64 %1859, 1
  %1861 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %36, i64 noundef %1860, ptr noundef %1861)
  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 %1862

1862:                                             ; preds = %1896, %1849
  %1863 = load i64, ptr %28, align 8, !tbaa !11
  %1864 = load i64, ptr %27, align 8, !tbaa !11
  %1865 = sub nsw i64 %1864, 1
  %1866 = icmp sle i64 %1863, %1865
  br i1 %1866, label %1867, label %1899

1867:                                             ; preds = %1862
  %1868 = load double, ptr %49, align 8, !tbaa !13
  %1869 = load double, ptr %50, align 8, !tbaa !13
  %1870 = load double, ptr %49, align 8, !tbaa !13
  %1871 = fsub double %1869, %1870
  %1872 = load i64, ptr %28, align 8, !tbaa !11
  %1873 = sitofp i64 %1872 to double
  %1874 = fmul double %1871, %1873
  %1875 = load i64, ptr %27, align 8, !tbaa !11
  %1876 = sub nsw i64 %1875, 1
  %1877 = sitofp i64 %1876 to double
  %1878 = fdiv double %1874, %1877
  %1879 = fadd double %1868, %1878
  %1880 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, 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
  %1884 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1885 = load ptr, ptr %1884, align 8, !tbaa !15
  %1886 = load i64, ptr %28, align 8, !tbaa !11
  %1887 = getelementptr inbounds double, ptr %1885, i64 %1886
  %1888 = load double, ptr %1887, align 8, !tbaa !13
  %1889 = call double @llvm.fmuladd.f64(double 0x40105616905F83B6, double %1888, double 4.000000e-01)
  %1890 = load ptr, ptr %4, align 8, !tbaa !9
  %1891 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %1889, ptr noundef %1890)
  %1892 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1893 = load ptr, ptr %1892, align 8, !tbaa !15
  %1894 = load i64, ptr %28, align 8, !tbaa !11
  %1895 = getelementptr inbounds double, ptr %1893, i64 %1894
  store double %1891, ptr %1895, align 8, !tbaa !13
  br label %1896

1896:                                             ; preds = %1867
  %1897 = load i64, ptr %28, align 8, !tbaa !11
  %1898 = add nsw i64 %1897, 1
  store i64 %1898, ptr %28, align 8, !tbaa !11
  br label %1862, !llvm.loop !48

1899:                                             ; preds = %1862
  %1900 = load i64, ptr %81, align 8, !tbaa !11
  %1901 = icmp eq i64 %1900, 0
  br i1 %1901, label %1902, label %1905

1902:                                             ; preds = %1899
  %1903 = load i64, ptr %27, align 8, !tbaa !11
  %1904 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildakimaEPKNS_9ae_vectorES2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %1903, ptr noundef %47, ptr noundef %1904)
  br label %1908

1905:                                             ; preds = %1899
  %1906 = load i64, ptr %27, align 8, !tbaa !11
  %1907 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21spline1dbuildakimamodEPKNS_9ae_vectorES2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %1906, ptr noundef %47, ptr noundef %1907)
  br label %1908

1908:                                             ; preds = %1905, %1902
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 0, ptr %29, align 8, !tbaa !11
  br label %1909

1909:                                             ; preds = %2017, %1908
  %1910 = load i64, ptr %29, align 8, !tbaa !11
  %1911 = load i64, ptr %27, align 8, !tbaa !11
  %1912 = sub nsw i64 %1911, 1
  %1913 = icmp sle i64 %1910, %1912
  br i1 %1913, label %1914, label %2020

1914:                                             ; preds = %1909
  %1915 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %36, i32 0, i32 4
  %1916 = load ptr, ptr %1915, align 8, !tbaa !15
  %1917 = getelementptr inbounds double, ptr %1916, i64 0
  %1918 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %1919 = load ptr, ptr %1918, align 8, !tbaa !15
  %1920 = getelementptr inbounds double, ptr %1919, i64 0
  %1921 = load i64, ptr %27, align 8, !tbaa !11
  %1922 = sub nsw i64 %1921, 1
  %1923 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %1922)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %1917, i64 noundef 1, ptr noundef %1920, i64 noundef 1, i64 noundef %1923)
  %1924 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %36, i32 0, i32 4
  %1925 = load ptr, ptr %1924, align 8, !tbaa !15
  %1926 = load i64, ptr %29, align 8, !tbaa !11
  %1927 = getelementptr inbounds double, ptr %1925, i64 %1926
  store double 5.000000e+00, ptr %1927, align 8, !tbaa !13
  %1928 = load i64, ptr %81, align 8, !tbaa !11
  %1929 = icmp eq i64 %1928, 0
  br i1 %1929, label %1930, label %1933

1930:                                             ; preds = %1914
  %1931 = load i64, ptr %27, align 8, !tbaa !11
  %1932 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildakimaEPKNS_9ae_vectorES2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %36, i64 noundef %1931, ptr noundef %48, ptr noundef %1932)
  br label %1936

1933:                                             ; preds = %1914
  %1934 = load i64, ptr %27, align 8, !tbaa !11
  %1935 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21spline1dbuildakimamodEPKNS_9ae_vectorES2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %36, i64 noundef %1934, ptr noundef %48, ptr noundef %1935)
  br label %1936

1936:                                             ; preds = %1933, %1930
  %1937 = load i64, ptr %29, align 8, !tbaa !11
  %1938 = sub nsw i64 %1937, 3
  %1939 = icmp sge i64 %1938, 1
  br i1 %1939, label %1940, label %1975

1940:                                             ; preds = %1936
  store double -1.000000e+00, ptr %49, align 8, !tbaa !13
  %1941 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1942 = load ptr, ptr %1941, align 8, !tbaa !15
  %1943 = load i64, ptr %29, align 8, !tbaa !11
  %1944 = sub nsw i64 %1943, 3
  %1945 = getelementptr inbounds double, ptr %1942, i64 %1944
  %1946 = load double, ptr %1945, align 8, !tbaa !13
  store double %1946, ptr %50, align 8, !tbaa !13
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %1947

1947:                                             ; preds = %1971, %1940
  %1948 = load i64, ptr %30, align 8, !tbaa !11
  %1949 = load i64, ptr %20, align 8, !tbaa !11
  %1950 = icmp sle i64 %1948, %1949
  br i1 %1950, label %1951, label %1974

1951:                                             ; preds = %1947
  %1952 = load double, ptr %49, align 8, !tbaa !13
  %1953 = load double, ptr %50, align 8, !tbaa !13
  %1954 = load double, ptr %49, align 8, !tbaa !13
  %1955 = fsub double %1953, %1954
  %1956 = load ptr, ptr %4, align 8, !tbaa !9
  %1957 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1956)
  %1958 = call double @llvm.fmuladd.f64(double %1955, double %1957, double %1952)
  store double %1958, ptr %53, align 8, !tbaa !13
  %1959 = load double, ptr %75, align 8, !tbaa !13
  %1960 = load double, ptr %53, align 8, !tbaa !13
  %1961 = load ptr, ptr %4, align 8, !tbaa !9
  %1962 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %1960, ptr noundef %1961)
  %1963 = load double, ptr %53, align 8, !tbaa !13
  %1964 = load ptr, ptr %4, align 8, !tbaa !9
  %1965 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %48, double noundef %1963, ptr noundef %1964)
  %1966 = fsub double %1962, %1965
  %1967 = load ptr, ptr %4, align 8, !tbaa !9
  %1968 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1966, ptr noundef %1967)
  %1969 = load ptr, ptr %4, align 8, !tbaa !9
  %1970 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %1959, double noundef %1968, ptr noundef %1969)
  store double %1970, ptr %75, align 8, !tbaa !13
  br label %1971

1971:                                             ; preds = %1951
  %1972 = load i64, ptr %30, align 8, !tbaa !11
  %1973 = add nsw i64 %1972, 1
  store i64 %1973, ptr %30, align 8, !tbaa !11
  br label %1947, !llvm.loop !49

1974:                                             ; preds = %1947
  br label %1975

1975:                                             ; preds = %1974, %1936
  %1976 = load i64, ptr %29, align 8, !tbaa !11
  %1977 = add nsw i64 %1976, 3
  %1978 = load i64, ptr %27, align 8, !tbaa !11
  %1979 = sub nsw i64 %1978, 2
  %1980 = icmp sle i64 %1977, %1979
  br i1 %1980, label %1981, label %2016

1981:                                             ; preds = %1975
  %1982 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1983 = load ptr, ptr %1982, align 8, !tbaa !15
  %1984 = load i64, ptr %29, align 8, !tbaa !11
  %1985 = add nsw i64 %1984, 3
  %1986 = getelementptr inbounds double, ptr %1983, i64 %1985
  %1987 = load double, ptr %1986, align 8, !tbaa !13
  store double %1987, 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 %1988

1988:                                             ; preds = %2012, %1981
  %1989 = load i64, ptr %30, align 8, !tbaa !11
  %1990 = load i64, ptr %20, align 8, !tbaa !11
  %1991 = icmp sle i64 %1989, %1990
  br i1 %1991, label %1992, label %2015

1992:                                             ; preds = %1988
  %1993 = load double, ptr %49, align 8, !tbaa !13
  %1994 = load double, ptr %50, align 8, !tbaa !13
  %1995 = load double, ptr %49, align 8, !tbaa !13
  %1996 = fsub double %1994, %1995
  %1997 = load ptr, ptr %4, align 8, !tbaa !9
  %1998 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1997)
  %1999 = call double @llvm.fmuladd.f64(double %1996, double %1998, double %1993)
  store double %1999, ptr %53, align 8, !tbaa !13
  %2000 = load double, ptr %75, align 8, !tbaa !13
  %2001 = load double, ptr %53, align 8, !tbaa !13
  %2002 = load ptr, ptr %4, align 8, !tbaa !9
  %2003 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2001, ptr noundef %2002)
  %2004 = load double, ptr %53, align 8, !tbaa !13
  %2005 = load ptr, ptr %4, align 8, !tbaa !9
  %2006 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %48, double noundef %2004, ptr noundef %2005)
  %2007 = fsub double %2003, %2006
  %2008 = load ptr, ptr %4, align 8, !tbaa !9
  %2009 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2007, ptr noundef %2008)
  %2010 = load ptr, ptr %4, align 8, !tbaa !9
  %2011 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %2000, double noundef %2009, ptr noundef %2010)
  store double %2011, ptr %75, align 8, !tbaa !13
  br label %2012

2012:                                             ; preds = %1992
  %2013 = load i64, ptr %30, align 8, !tbaa !11
  %2014 = add nsw i64 %2013, 1
  store i64 %2014, ptr %30, align 8, !tbaa !11
  br label %1988, !llvm.loop !50

2015:                                             ; preds = %1988
  br label %2016

2016:                                             ; preds = %2015, %1975
  br label %2017

2017:                                             ; preds = %2016
  %2018 = load i64, ptr %29, align 8, !tbaa !11
  %2019 = add nsw i64 %2018, 1
  store i64 %2019, ptr %29, align 8, !tbaa !11
  br label %1909, !llvm.loop !51

2020:                                             ; preds = %1909
  %2021 = load i8, ptr %10, align 1, !tbaa !5, !range !20, !noundef !21
  %2022 = trunc i8 %2021 to i1
  br i1 %2022, label %2027, label %2023

2023:                                             ; preds = %2020
  %2024 = load double, ptr %75, align 8, !tbaa !13
  %2025 = load double, ptr %19, align 8, !tbaa !13
  %2026 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2024, double noundef %2025)
  br label %2027

2027:                                             ; preds = %2023, %2020
  %2028 = phi i1 [ true, %2020 ], [ %2026, %2023 ]
  %2029 = zext i1 %2028 to i8
  store i8 %2029, ptr %10, align 1, !tbaa !5
  br label %2030

2030:                                             ; preds = %2027
  %2031 = load i64, ptr %81, align 8, !tbaa !11
  %2032 = add nsw i64 %2031, 1
  store i64 %2032, ptr %81, align 8, !tbaa !11
  br label %1846, !llvm.loop !52

2033:                                             ; preds = %1846
  br label %2034

2034:                                             ; preds = %2033
  %2035 = load i64, ptr %27, align 8, !tbaa !11
  %2036 = add nsw i64 %2035, 1
  store i64 %2036, ptr %27, align 8, !tbaa !11
  br label %1841, !llvm.loop !53

2037:                                             ; preds = %1841
  store i64 2, ptr %27, align 8, !tbaa !11
  br label %2038

2038:                                             ; preds = %2274, %2037
  %2039 = load i64, ptr %27, align 8, !tbaa !11
  %2040 = load i64, ptr %23, align 8, !tbaa !11
  %2041 = icmp sle i64 %2039, %2040
  br i1 %2041, label %2042, label %2277

2042:                                             ; preds = %2038
  %2043 = load i64, ptr %27, align 8, !tbaa !11
  %2044 = sub nsw i64 %2043, 1
  %2045 = add nsw i64 %2044, 1
  %2046 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %2045, ptr noundef %2046)
  %2047 = load i64, ptr %27, align 8, !tbaa !11
  %2048 = sub nsw i64 %2047, 1
  %2049 = add nsw i64 %2048, 1
  %2050 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %2049, ptr noundef %2050)
  %2051 = load ptr, ptr %4, align 8, !tbaa !9
  %2052 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2051)
  %2053 = fsub double -1.000000e+00, %2052
  store double %2053, ptr %49, align 8, !tbaa !13
  %2054 = load ptr, ptr %4, align 8, !tbaa !9
  %2055 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2054)
  %2056 = fadd double 1.000000e+00, %2055
  store double %2056, ptr %50, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %2057

2057:                                             ; preds = %2091, %2042
  %2058 = load i64, ptr %28, align 8, !tbaa !11
  %2059 = load i64, ptr %27, align 8, !tbaa !11
  %2060 = sub nsw i64 %2059, 1
  %2061 = icmp sle i64 %2058, %2060
  br i1 %2061, label %2062, label %2094

2062:                                             ; preds = %2057
  %2063 = load double, ptr %49, align 8, !tbaa !13
  %2064 = load double, ptr %50, align 8, !tbaa !13
  %2065 = load double, ptr %49, align 8, !tbaa !13
  %2066 = fsub double %2064, %2065
  %2067 = load i64, ptr %28, align 8, !tbaa !11
  %2068 = sitofp i64 %2067 to double
  %2069 = fmul double %2066, %2068
  %2070 = load i64, ptr %27, align 8, !tbaa !11
  %2071 = sub nsw i64 %2070, 1
  %2072 = sitofp i64 %2071 to double
  %2073 = fdiv double %2069, %2072
  %2074 = fadd double %2063, %2073
  %2075 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2076 = load ptr, ptr %2075, align 8, !tbaa !15
  %2077 = load i64, ptr %28, align 8, !tbaa !11
  %2078 = getelementptr inbounds double, ptr %2076, i64 %2077
  store double %2074, ptr %2078, align 8, !tbaa !13
  %2079 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2080 = load ptr, ptr %2079, align 8, !tbaa !15
  %2081 = load i64, ptr %28, align 8, !tbaa !11
  %2082 = getelementptr inbounds double, ptr %2080, i64 %2081
  %2083 = load double, ptr %2082, align 8, !tbaa !13
  %2084 = call double @llvm.fmuladd.f64(double 0x40105616905F83B6, double %2083, double 4.000000e-01)
  %2085 = load ptr, ptr %4, align 8, !tbaa !9
  %2086 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %2084, ptr noundef %2085)
  %2087 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %2088 = load ptr, ptr %2087, align 8, !tbaa !15
  %2089 = load i64, ptr %28, align 8, !tbaa !11
  %2090 = getelementptr inbounds double, ptr %2088, i64 %2089
  store double %2086, ptr %2090, align 8, !tbaa !13
  br label %2091

2091:                                             ; preds = %2062
  %2092 = load i64, ptr %28, align 8, !tbaa !11
  %2093 = add nsw i64 %2092, 1
  store i64 %2093, ptr %28, align 8, !tbaa !11
  br label %2057, !llvm.loop !54

2094:                                             ; preds = %2057
  %2095 = load i64, ptr %27, align 8, !tbaa !11
  %2096 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %2095, i64 noundef 2, double noundef 0.000000e+00, i64 noundef 2, double noundef 0.000000e+00, ptr noundef %47, ptr noundef %2096)
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %2097

2097:                                             ; preds = %2161, %2094
  %2098 = load i64, ptr %30, align 8, !tbaa !11
  %2099 = load i64, ptr %20, align 8, !tbaa !11
  %2100 = icmp sle i64 %2098, %2099
  br i1 %2100, label %2101, label %2164

2101:                                             ; preds = %2097
  %2102 = load double, ptr %49, align 8, !tbaa !13
  %2103 = load double, ptr %50, align 8, !tbaa !13
  %2104 = load double, ptr %49, align 8, !tbaa !13
  %2105 = fsub double %2103, %2104
  %2106 = load ptr, ptr %4, align 8, !tbaa !9
  %2107 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2106)
  %2108 = call double @llvm.fmuladd.f64(double %2105, double %2107, double %2102)
  store double %2108, ptr %53, align 8, !tbaa !13
  %2109 = load double, ptr %53, align 8, !tbaa !13
  %2110 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef %47, double noundef %2109, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %2110)
  %2111 = load double, ptr %53, align 8, !tbaa !13
  %2112 = load double, ptr %22, align 8, !tbaa !13
  %2113 = fsub double %2111, %2112
  %2114 = load ptr, ptr %4, align 8, !tbaa !9
  %2115 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2113, ptr noundef %2114)
  store double %2115, ptr %72, align 8, !tbaa !13
  %2116 = load double, ptr %53, align 8, !tbaa !13
  %2117 = load ptr, ptr %4, align 8, !tbaa !9
  %2118 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2116, ptr noundef %2117)
  store double %2118, ptr %73, align 8, !tbaa !13
  %2119 = load double, ptr %53, align 8, !tbaa !13
  %2120 = load double, ptr %22, align 8, !tbaa !13
  %2121 = fadd double %2119, %2120
  %2122 = load ptr, ptr %4, align 8, !tbaa !9
  %2123 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2121, ptr noundef %2122)
  store double %2123, ptr %74, align 8, !tbaa !13
  %2124 = load double, ptr %75, align 8, !tbaa !13
  %2125 = load double, ptr %66, align 8, !tbaa !13
  %2126 = load double, ptr %73, align 8, !tbaa !13
  %2127 = fsub double %2125, %2126
  %2128 = load ptr, ptr %4, align 8, !tbaa !9
  %2129 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2127, ptr noundef %2128)
  %2130 = load ptr, ptr %4, align 8, !tbaa !9
  %2131 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %2124, double noundef %2129, ptr noundef %2130)
  store double %2131, ptr %75, align 8, !tbaa !13
  %2132 = load double, ptr %75, align 8, !tbaa !13
  %2133 = load double, ptr %67, align 8, !tbaa !13
  %2134 = load double, ptr %74, align 8, !tbaa !13
  %2135 = load double, ptr %72, align 8, !tbaa !13
  %2136 = fsub double %2134, %2135
  %2137 = load double, ptr %22, align 8, !tbaa !13
  %2138 = fmul double 2.000000e+00, %2137
  %2139 = fdiv double %2136, %2138
  %2140 = fsub double %2133, %2139
  %2141 = load ptr, ptr %4, align 8, !tbaa !9
  %2142 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2140, ptr noundef %2141)
  %2143 = load ptr, ptr %4, align 8, !tbaa !9
  %2144 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %2132, double noundef %2142, ptr noundef %2143)
  store double %2144, ptr %75, align 8, !tbaa !13
  %2145 = load double, ptr %75, align 8, !tbaa !13
  %2146 = load double, ptr %68, align 8, !tbaa !13
  %2147 = load double, ptr %74, align 8, !tbaa !13
  %2148 = load double, ptr %73, align 8, !tbaa !13
  %2149 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %2148, double %2147)
  %2150 = load double, ptr %72, align 8, !tbaa !13
  %2151 = fadd double %2149, %2150
  %2152 = load double, ptr %22, align 8, !tbaa !13
  %2153 = load ptr, ptr %4, align 8, !tbaa !9
  %2154 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %2152, ptr noundef %2153)
  %2155 = fdiv double %2151, %2154
  %2156 = fsub double %2146, %2155
  %2157 = load ptr, ptr %4, align 8, !tbaa !9
  %2158 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2156, ptr noundef %2157)
  %2159 = load ptr, ptr %4, align 8, !tbaa !9
  %2160 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %2145, double noundef %2158, ptr noundef %2159)
  store double %2160, ptr %75, align 8, !tbaa !13
  br label %2161

2161:                                             ; preds = %2101
  %2162 = load i64, ptr %30, align 8, !tbaa !11
  %2163 = add nsw i64 %2162, 1
  store i64 %2163, ptr %30, align 8, !tbaa !11
  br label %2097, !llvm.loop !55

2164:                                             ; preds = %2097
  %2165 = load i8, ptr %12, align 1, !tbaa !5, !range !20, !noundef !21
  %2166 = trunc i8 %2165 to i1
  br i1 %2166, label %2170, label %2167

2167:                                             ; preds = %2164
  %2168 = load double, ptr %75, align 8, !tbaa !13
  %2169 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2168, double noundef 1.000000e-03)
  br label %2170

2170:                                             ; preds = %2167, %2164
  %2171 = phi i1 [ true, %2164 ], [ %2169, %2167 ]
  %2172 = zext i1 %2171 to i8
  store i8 %2172, ptr %12, align 1, !tbaa !5
  %2173 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL30testspline1dunit_unsetspline1dPN11alglib_impl19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %48, ptr noundef %2173)
  %2174 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1dcopyEPKNS_19spline1dinterpolantEPS0_PNS_8ae_stateE(ptr noundef %47, ptr noundef %48, ptr noundef %2174)
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %2175

2175:                                             ; preds = %2199, %2170
  %2176 = load i64, ptr %30, align 8, !tbaa !11
  %2177 = load i64, ptr %20, align 8, !tbaa !11
  %2178 = icmp sle i64 %2176, %2177
  br i1 %2178, label %2179, label %2202

2179:                                             ; preds = %2175
  %2180 = load double, ptr %49, align 8, !tbaa !13
  %2181 = load double, ptr %50, align 8, !tbaa !13
  %2182 = load double, ptr %49, align 8, !tbaa !13
  %2183 = fsub double %2181, %2182
  %2184 = load ptr, ptr %4, align 8, !tbaa !9
  %2185 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2184)
  %2186 = call double @llvm.fmuladd.f64(double %2183, double %2185, double %2180)
  store double %2186, ptr %53, align 8, !tbaa !13
  %2187 = load double, ptr %75, align 8, !tbaa !13
  %2188 = load double, ptr %53, align 8, !tbaa !13
  %2189 = load ptr, ptr %4, align 8, !tbaa !9
  %2190 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2188, ptr noundef %2189)
  %2191 = load double, ptr %53, align 8, !tbaa !13
  %2192 = load ptr, ptr %4, align 8, !tbaa !9
  %2193 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %48, double noundef %2191, ptr noundef %2192)
  %2194 = fsub double %2190, %2193
  %2195 = load ptr, ptr %4, align 8, !tbaa !9
  %2196 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2194, ptr noundef %2195)
  %2197 = load ptr, ptr %4, align 8, !tbaa !9
  %2198 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %2187, double noundef %2196, ptr noundef %2197)
  store double %2198, ptr %75, align 8, !tbaa !13
  br label %2199

2199:                                             ; preds = %2179
  %2200 = load i64, ptr %30, align 8, !tbaa !11
  %2201 = add nsw i64 %2200, 1
  store i64 %2201, ptr %30, align 8, !tbaa !11
  br label %2175, !llvm.loop !56

2202:                                             ; preds = %2175
  %2203 = load i8, ptr %14, align 1, !tbaa !5, !range !20, !noundef !21
  %2204 = trunc i8 %2203 to i1
  br i1 %2204, label %2209, label %2205

2205:                                             ; preds = %2202
  %2206 = load double, ptr %75, align 8, !tbaa !13
  %2207 = load double, ptr %19, align 8, !tbaa !13
  %2208 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2206, double noundef %2207)
  br label %2209

2209:                                             ; preds = %2205, %2202
  %2210 = phi i1 [ true, %2202 ], [ %2208, %2205 ]
  %2211 = zext i1 %2210 to i8
  store i8 %2211, ptr %14, align 1, !tbaa !5
  %2212 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL30testspline1dunit_unsetspline1dPN11alglib_impl19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %48, ptr noundef %2212)
  call void @llvm.lifetime.start.p0(i64 88, ptr %83) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %84) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %85) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %86) #5
  %2213 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %2213, ptr noundef %85)
  call void @_ZN11alglib_impl18ae_serializer_initEPNS_13ae_serializerE(ptr noundef %83)
  call void @_ZN11alglib_impl25ae_serializer_alloc_startEPNS_13ae_serializerE(ptr noundef %83)
  %2214 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13spline1dallocEPNS_13ae_serializerEPKNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %83, ptr noundef %47, ptr noundef %2214)
  %2215 = call noundef i64 @_ZN11alglib_impl28ae_serializer_get_alloc_sizeEPNS_13ae_serializerE(ptr noundef %83)
  store i64 %2215, ptr %84, align 8, !tbaa !11
  call void @llvm.memset.p0.i64(ptr align 8 %86, i8 0, i64 32, i1 false)
  %2216 = load i64, ptr %84, align 8, !tbaa !11
  %2217 = add nsw i64 %2216, 1
  %2218 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl10ae_db_initEPNS_12ae_dyn_blockElPNS_8ae_stateEb(ptr noundef %86, i64 noundef %2217, ptr noundef %2218, i1 noundef zeroext true)
  %2219 = getelementptr inbounds %"struct.alglib_impl::ae_dyn_block", ptr %86, i32 0, i32 2
  %2220 = load volatile ptr, ptr %2219, align 8, !tbaa !57
  call void @_ZN11alglib_impl24ae_serializer_sstart_strEPNS_13ae_serializerEPc(ptr noundef %83, ptr noundef %2220)
  %2221 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl17spline1dserializeEPNS_13ae_serializerEPKNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %83, ptr noundef %47, ptr noundef %2221)
  %2222 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18ae_serializer_stopEPNS_13ae_serializerEPNS_8ae_stateE(ptr noundef %83, ptr noundef %2222)
  call void @_ZN11alglib_impl19ae_serializer_clearEPNS_13ae_serializerE(ptr noundef %83)
  call void @_ZN11alglib_impl18ae_serializer_initEPNS_13ae_serializerE(ptr noundef %83)
  %2223 = getelementptr inbounds %"struct.alglib_impl::ae_dyn_block", ptr %86, i32 0, i32 2
  %2224 = load volatile ptr, ptr %2223, align 8, !tbaa !57
  call void @_ZN11alglib_impl24ae_serializer_ustart_strEPNS_13ae_serializerEPKc(ptr noundef %83, ptr noundef %2224)
  %2225 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl19spline1dunserializeEPNS_13ae_serializerEPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %83, ptr noundef %48, ptr noundef %2225)
  %2226 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18ae_serializer_stopEPNS_13ae_serializerEPNS_8ae_stateE(ptr noundef %83, ptr noundef %2226)
  call void @_ZN11alglib_impl19ae_serializer_clearEPNS_13ae_serializerE(ptr noundef %83)
  %2227 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %2227)
  call void @llvm.lifetime.end.p0(i64 32, ptr %86) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %85) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %84) #5
  call void @llvm.lifetime.end.p0(i64 88, ptr %83) #5
  store double 0.000000e+00, ptr %75, align 8, !tbaa !13
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %2228

2228:                                             ; preds = %2252, %2209
  %2229 = load i64, ptr %30, align 8, !tbaa !11
  %2230 = load i64, ptr %20, align 8, !tbaa !11
  %2231 = icmp sle i64 %2229, %2230
  br i1 %2231, label %2232, label %2255

2232:                                             ; preds = %2228
  %2233 = load double, ptr %49, align 8, !tbaa !13
  %2234 = load double, ptr %50, align 8, !tbaa !13
  %2235 = load double, ptr %49, align 8, !tbaa !13
  %2236 = fsub double %2234, %2235
  %2237 = load ptr, ptr %4, align 8, !tbaa !9
  %2238 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2237)
  %2239 = call double @llvm.fmuladd.f64(double %2236, double %2238, double %2233)
  store double %2239, ptr %53, align 8, !tbaa !13
  %2240 = load double, ptr %75, align 8, !tbaa !13
  %2241 = load double, ptr %53, align 8, !tbaa !13
  %2242 = load ptr, ptr %4, align 8, !tbaa !9
  %2243 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2241, ptr noundef %2242)
  %2244 = load double, ptr %53, align 8, !tbaa !13
  %2245 = load ptr, ptr %4, align 8, !tbaa !9
  %2246 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %48, double noundef %2244, ptr noundef %2245)
  %2247 = fsub double %2243, %2246
  %2248 = load ptr, ptr %4, align 8, !tbaa !9
  %2249 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2247, ptr noundef %2248)
  %2250 = load ptr, ptr %4, align 8, !tbaa !9
  %2251 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %2240, double noundef %2249, ptr noundef %2250)
  store double %2251, ptr %75, align 8, !tbaa !13
  br label %2252

2252:                                             ; preds = %2232
  %2253 = load i64, ptr %30, align 8, !tbaa !11
  %2254 = add nsw i64 %2253, 1
  store i64 %2254, ptr %30, align 8, !tbaa !11
  br label %2228, !llvm.loop !58

2255:                                             ; preds = %2228
  %2256 = load i8, ptr %14, align 1, !tbaa !5, !range !20, !noundef !21
  %2257 = trunc i8 %2256 to i1
  br i1 %2257, label %2262, label %2258

2258:                                             ; preds = %2255
  %2259 = load double, ptr %75, align 8, !tbaa !13
  %2260 = load double, ptr %19, align 8, !tbaa !13
  %2261 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2259, double noundef %2260)
  br label %2262

2262:                                             ; preds = %2258, %2255
  %2263 = phi i1 [ true, %2255 ], [ %2261, %2258 ]
  %2264 = zext i1 %2263 to i8
  store i8 %2264, ptr %14, align 1, !tbaa !5
  %2265 = load i8, ptr %13, align 1, !tbaa !5, !range !20, !noundef !21
  %2266 = trunc i8 %2265 to i1
  br i1 %2266, label %2271, label %2267

2267:                                             ; preds = %2262
  %2268 = load ptr, ptr %4, align 8, !tbaa !9
  %2269 = call noundef zeroext i1 @_ZL27testspline1dunit_testunpackPKN11alglib_impl19spline1dinterpolantEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %47, ptr noundef %31, ptr noundef %2268)
  %2270 = xor i1 %2269, true
  br label %2271

2271:                                             ; preds = %2267, %2262
  %2272 = phi i1 [ true, %2262 ], [ %2270, %2267 ]
  %2273 = zext i1 %2272 to i8
  store i8 %2273, ptr %13, align 1, !tbaa !5
  br label %2274

2274:                                             ; preds = %2271
  %2275 = load i64, ptr %27, align 8, !tbaa !11
  %2276 = add nsw i64 %2275, 1
  store i64 %2276, ptr %27, align 8, !tbaa !11
  br label %2038, !llvm.loop !59

2277:                                             ; preds = %2038
  store i64 2, ptr %27, align 8, !tbaa !11
  br label %2278

2278:                                             ; preds = %2506, %2277
  %2279 = load i64, ptr %27, align 8, !tbaa !11
  %2280 = load i64, ptr %23, align 8, !tbaa !11
  %2281 = icmp sle i64 %2279, %2280
  br i1 %2281, label %2282, label %2509

2282:                                             ; preds = %2278
  %2283 = load i64, ptr %27, align 8, !tbaa !11
  %2284 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %2283, ptr noundef %2284)
  %2285 = load i64, ptr %27, align 8, !tbaa !11
  %2286 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %2285, ptr noundef %2286)
  %2287 = load ptr, ptr %4, align 8, !tbaa !9
  %2288 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2287)
  %2289 = fsub double -1.000000e+00, %2288
  store double %2289, ptr %49, align 8, !tbaa !13
  %2290 = load ptr, ptr %4, align 8, !tbaa !9
  %2291 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2290)
  %2292 = fadd double 1.000000e+00, %2291
  store double %2292, ptr %50, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %2293

2293:                                             ; preds = %2326, %2282
  %2294 = load i64, ptr %28, align 8, !tbaa !11
  %2295 = load i64, ptr %27, align 8, !tbaa !11
  %2296 = sub nsw i64 %2295, 1
  %2297 = icmp sle i64 %2294, %2296
  br i1 %2297, label %2298, label %2329

2298:                                             ; preds = %2293
  %2299 = load double, ptr %49, align 8, !tbaa !13
  %2300 = load double, ptr %50, align 8, !tbaa !13
  %2301 = load double, ptr %49, align 8, !tbaa !13
  %2302 = fsub double %2300, %2301
  %2303 = load i64, ptr %28, align 8, !tbaa !11
  %2304 = sitofp i64 %2303 to double
  %2305 = load ptr, ptr %4, align 8, !tbaa !9
  %2306 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2305)
  %2307 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %2306, double %2304)
  %2308 = fsub double %2307, 1.000000e-01
  %2309 = fmul double %2302, %2308
  %2310 = load i64, ptr %27, align 8, !tbaa !11
  %2311 = sub nsw i64 %2310, 1
  %2312 = sitofp i64 %2311 to double
  %2313 = fdiv double %2309, %2312
  %2314 = fadd double %2299, %2313
  %2315 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2316 = load ptr, ptr %2315, align 8, !tbaa !15
  %2317 = load i64, ptr %28, align 8, !tbaa !11
  %2318 = getelementptr inbounds double, ptr %2316, i64 %2317
  store double %2314, ptr %2318, align 8, !tbaa !13
  %2319 = load ptr, ptr %4, align 8, !tbaa !9
  %2320 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2319)
  %2321 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %2320, double -1.000000e+00)
  %2322 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %2323 = load ptr, ptr %2322, align 8, !tbaa !15
  %2324 = load i64, ptr %28, align 8, !tbaa !11
  %2325 = getelementptr inbounds double, ptr %2323, i64 %2324
  store double %2321, ptr %2325, align 8, !tbaa !13
  br label %2326

2326:                                             ; preds = %2298
  %2327 = load i64, ptr %28, align 8, !tbaa !11
  %2328 = add nsw i64 %2327, 1
  store i64 %2328, ptr %28, align 8, !tbaa !11
  br label %2293, !llvm.loop !60

2329:                                             ; preds = %2293
  %2330 = load i64, ptr %27, align 8, !tbaa !11
  %2331 = mul nsw i64 5, %2330
  %2332 = add nsw i64 %2331, 2
  %2333 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %40, i64 noundef %2332, ptr noundef %2333)
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %2334

2334:                                             ; preds = %2359, %2329
  %2335 = load i64, ptr %28, align 8, !tbaa !11
  %2336 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 0
  %2337 = load i64, ptr %2336, align 8, !tbaa !24
  %2338 = sub nsw i64 %2337, 1
  %2339 = icmp sle i64 %2335, %2338
  br i1 %2339, label %2340, label %2362

2340:                                             ; preds = %2334
  %2341 = load double, ptr %49, align 8, !tbaa !13
  %2342 = load double, ptr %50, align 8, !tbaa !13
  %2343 = load double, ptr %49, align 8, !tbaa !13
  %2344 = fsub double %2342, %2343
  %2345 = load i64, ptr %28, align 8, !tbaa !11
  %2346 = sub nsw i64 %2345, 1
  %2347 = sitofp i64 %2346 to double
  %2348 = fmul double %2344, %2347
  %2349 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 0
  %2350 = load i64, ptr %2349, align 8, !tbaa !24
  %2351 = sub nsw i64 %2350, 3
  %2352 = sitofp i64 %2351 to double
  %2353 = fdiv double %2348, %2352
  %2354 = fadd double %2341, %2353
  %2355 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %2356 = load ptr, ptr %2355, align 8, !tbaa !15
  %2357 = load i64, ptr %28, align 8, !tbaa !11
  %2358 = getelementptr inbounds double, ptr %2356, i64 %2357
  store double %2354, ptr %2358, align 8, !tbaa !13
  br label %2359

2359:                                             ; preds = %2340
  %2360 = load i64, ptr %28, align 8, !tbaa !11
  %2361 = add nsw i64 %2360, 1
  store i64 %2361, ptr %28, align 8, !tbaa !11
  br label %2334, !llvm.loop !61

2362:                                             ; preds = %2334
  store i64 0, ptr %78, align 8, !tbaa !11
  br label %2363

2363:                                             ; preds = %2504, %2362
  %2364 = load i64, ptr %27, align 8, !tbaa !11
  %2365 = load ptr, ptr %4, align 8, !tbaa !9
  %2366 = call noundef zeroext i1 @_ZL36testspline1dunit_enumerateallsplinesPKN11alglib_impl9ae_vectorES2_lPlPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %2364, ptr noundef %78, ptr noundef %47, ptr noundef %2365)
  br i1 %2366, label %2367, label %2505

2367:                                             ; preds = %2363
  %2368 = load ptr, ptr %4, align 8, !tbaa !9
  %2369 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2368)
  %2370 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %2369, double -2.000000e+00)
  store double %2370, ptr %54, align 8, !tbaa !13
  %2371 = load ptr, ptr %4, align 8, !tbaa !9
  %2372 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2371)
  %2373 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %2372, double -1.000000e+00)
  store double %2373, ptr %55, align 8, !tbaa !13
  %2374 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1dcopyEPKNS_19spline1dinterpolantEPS0_PNS_8ae_stateE(ptr noundef %47, ptr noundef %48, ptr noundef %2374)
  %2375 = load double, ptr %54, align 8, !tbaa !13
  %2376 = load double, ptr %55, align 8, !tbaa !13
  %2377 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl17spline1dlintransxEPNS_19spline1dinterpolantEddPNS_8ae_stateE(ptr noundef %48, double noundef %2375, double noundef %2376, ptr noundef %2377)
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %2378

2378:                                             ; preds = %2414, %2367
  %2379 = load i64, ptr %28, align 8, !tbaa !11
  %2380 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 0
  %2381 = load i64, ptr %2380, align 8, !tbaa !24
  %2382 = sub nsw i64 %2381, 1
  %2383 = icmp sle i64 %2379, %2382
  br i1 %2383, label %2384, label %2417

2384:                                             ; preds = %2378
  %2385 = load i8, ptr %15, align 1, !tbaa !5, !range !20, !noundef !21
  %2386 = trunc i8 %2385 to i1
  br i1 %2386, label %2411, label %2387

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

2411:                                             ; preds = %2387, %2384
  %2412 = phi i1 [ true, %2384 ], [ %2410, %2387 ]
  %2413 = zext i1 %2412 to i8
  store i8 %2413, ptr %15, align 1, !tbaa !5
  br label %2414

2414:                                             ; preds = %2411
  %2415 = load i64, ptr %28, align 8, !tbaa !11
  %2416 = add nsw i64 %2415, 1
  store i64 %2416, ptr %28, align 8, !tbaa !11
  br label %2378, !llvm.loop !62

2417:                                             ; preds = %2378
  %2418 = load ptr, ptr %4, align 8, !tbaa !9
  %2419 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2418)
  %2420 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %2419, double -1.000000e+00)
  store double %2420, ptr %55, align 8, !tbaa !13
  %2421 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1dcopyEPKNS_19spline1dinterpolantEPS0_PNS_8ae_stateE(ptr noundef %47, ptr noundef %48, ptr noundef %2421)
  %2422 = load double, ptr %55, align 8, !tbaa !13
  %2423 = 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 %2422, ptr noundef %2423)
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %2424

2424:                                             ; preds = %2452, %2417
  %2425 = load i64, ptr %28, align 8, !tbaa !11
  %2426 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 0
  %2427 = load i64, ptr %2426, align 8, !tbaa !24
  %2428 = sub nsw i64 %2427, 1
  %2429 = icmp sle i64 %2425, %2428
  br i1 %2429, label %2430, label %2455

2430:                                             ; preds = %2424
  %2431 = load i8, ptr %15, align 1, !tbaa !5, !range !20, !noundef !21
  %2432 = trunc i8 %2431 to i1
  br i1 %2432, label %2449, label %2433

2433:                                             ; preds = %2430
  %2434 = load double, ptr %55, align 8, !tbaa !13
  %2435 = load ptr, ptr %4, align 8, !tbaa !9
  %2436 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2434, ptr noundef %2435)
  %2437 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %2438 = load ptr, ptr %2437, align 8, !tbaa !15
  %2439 = load i64, ptr %28, align 8, !tbaa !11
  %2440 = getelementptr inbounds double, ptr %2438, i64 %2439
  %2441 = load double, ptr %2440, align 8, !tbaa !13
  %2442 = load ptr, ptr %4, align 8, !tbaa !9
  %2443 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %48, double noundef %2441, ptr noundef %2442)
  %2444 = fsub double %2436, %2443
  %2445 = load ptr, ptr %4, align 8, !tbaa !9
  %2446 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2444, ptr noundef %2445)
  %2447 = load double, ptr %19, align 8, !tbaa !13
  %2448 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2446, double noundef %2447)
  br label %2449

2449:                                             ; preds = %2433, %2430
  %2450 = phi i1 [ true, %2430 ], [ %2448, %2433 ]
  %2451 = zext i1 %2450 to i8
  store i8 %2451, ptr %15, align 1, !tbaa !5
  br label %2452

2452:                                             ; preds = %2449
  %2453 = load i64, ptr %28, align 8, !tbaa !11
  %2454 = add nsw i64 %2453, 1
  store i64 %2454, ptr %28, align 8, !tbaa !11
  br label %2424, !llvm.loop !63

2455:                                             ; preds = %2424
  %2456 = load ptr, ptr %4, align 8, !tbaa !9
  %2457 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2456)
  %2458 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %2457, double -1.000000e+00)
  store double %2458, ptr %54, align 8, !tbaa !13
  %2459 = load ptr, ptr %4, align 8, !tbaa !9
  %2460 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2459)
  %2461 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %2460, double -1.000000e+00)
  store double %2461, ptr %55, align 8, !tbaa !13
  %2462 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1dcopyEPKNS_19spline1dinterpolantEPS0_PNS_8ae_stateE(ptr noundef %47, ptr noundef %48, ptr noundef %2462)
  %2463 = load double, ptr %54, align 8, !tbaa !13
  %2464 = load double, ptr %55, align 8, !tbaa !13
  %2465 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl17spline1dlintransyEPNS_19spline1dinterpolantEddPNS_8ae_stateE(ptr noundef %48, double noundef %2463, double noundef %2464, ptr noundef %2465)
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %2466

2466:                                             ; preds = %2501, %2455
  %2467 = load i64, ptr %28, align 8, !tbaa !11
  %2468 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 0
  %2469 = load i64, ptr %2468, align 8, !tbaa !24
  %2470 = sub nsw i64 %2469, 1
  %2471 = icmp sle i64 %2467, %2470
  br i1 %2471, label %2472, label %2504

2472:                                             ; preds = %2466
  %2473 = load i8, ptr %15, align 1, !tbaa !5, !range !20, !noundef !21
  %2474 = trunc i8 %2473 to i1
  br i1 %2474, label %2498, label %2475

2475:                                             ; preds = %2472
  %2476 = load double, ptr %54, align 8, !tbaa !13
  %2477 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %2478 = load ptr, ptr %2477, align 8, !tbaa !15
  %2479 = load i64, ptr %28, align 8, !tbaa !11
  %2480 = getelementptr inbounds double, ptr %2478, i64 %2479
  %2481 = load double, ptr %2480, align 8, !tbaa !13
  %2482 = load ptr, ptr %4, align 8, !tbaa !9
  %2483 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2481, ptr noundef %2482)
  %2484 = load double, ptr %55, align 8, !tbaa !13
  %2485 = call double @llvm.fmuladd.f64(double %2476, double %2483, double %2484)
  %2486 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %2487 = load ptr, ptr %2486, align 8, !tbaa !15
  %2488 = load i64, ptr %28, align 8, !tbaa !11
  %2489 = getelementptr inbounds double, ptr %2487, i64 %2488
  %2490 = load double, ptr %2489, align 8, !tbaa !13
  %2491 = load ptr, ptr %4, align 8, !tbaa !9
  %2492 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %48, double noundef %2490, ptr noundef %2491)
  %2493 = fsub double %2485, %2492
  %2494 = load ptr, ptr %4, align 8, !tbaa !9
  %2495 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2493, ptr noundef %2494)
  %2496 = load double, ptr %19, align 8, !tbaa !13
  %2497 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2495, double noundef %2496)
  br label %2498

2498:                                             ; preds = %2475, %2472
  %2499 = phi i1 [ true, %2472 ], [ %2497, %2475 ]
  %2500 = zext i1 %2499 to i8
  store i8 %2500, ptr %15, align 1, !tbaa !5
  br label %2501

2501:                                             ; preds = %2498
  %2502 = load i64, ptr %28, align 8, !tbaa !11
  %2503 = add nsw i64 %2502, 1
  store i64 %2503, ptr %28, align 8, !tbaa !11
  br label %2466, !llvm.loop !64

2504:                                             ; preds = %2466
  br label %2363, !llvm.loop !65

2505:                                             ; preds = %2363
  br label %2506

2506:                                             ; preds = %2505
  %2507 = load i64, ptr %27, align 8, !tbaa !11
  %2508 = add nsw i64 %2507, 1
  store i64 %2508, ptr %27, align 8, !tbaa !11
  br label %2278, !llvm.loop !66

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

2510:                                             ; preds = %2643, %2509
  %2511 = load i64, ptr %27, align 8, !tbaa !11
  %2512 = icmp sle i64 %2511, 35
  br i1 %2512, label %2513, label %2646

2513:                                             ; preds = %2510
  %2514 = load i64, ptr %27, align 8, !tbaa !11
  %2515 = sub nsw i64 %2514, 1
  %2516 = add nsw i64 %2515, 1
  %2517 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %2516, ptr noundef %2517)
  %2518 = load i64, ptr %27, align 8, !tbaa !11
  %2519 = sub nsw i64 %2518, 1
  %2520 = add nsw i64 %2519, 1
  %2521 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %2520, ptr noundef %2521)
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %2522

2522:                                             ; preds = %2639, %2513
  %2523 = load i64, ptr %30, align 8, !tbaa !11
  %2524 = load i64, ptr %20, align 8, !tbaa !11
  %2525 = icmp sle i64 %2523, %2524
  br i1 %2525, label %2526, label %2642

2526:                                             ; preds = %2522
  %2527 = load ptr, ptr %4, align 8, !tbaa !9
  %2528 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2527)
  %2529 = call double @llvm.fmuladd.f64(double -2.000000e-01, double %2528, double -1.000000e+00)
  store double %2529, ptr %49, align 8, !tbaa !13
  %2530 = load ptr, ptr %4, align 8, !tbaa !9
  %2531 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2530)
  %2532 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %2531, double 1.000000e+00)
  store double %2532, ptr %50, align 8, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %2533

2533:                                             ; preds = %2575, %2526
  %2534 = load i64, ptr %28, align 8, !tbaa !11
  %2535 = load i64, ptr %27, align 8, !tbaa !11
  %2536 = sub nsw i64 %2535, 1
  %2537 = icmp sle i64 %2534, %2536
  br i1 %2537, label %2538, label %2578

2538:                                             ; preds = %2533
  %2539 = load double, ptr %49, align 8, !tbaa !13
  %2540 = load double, ptr %50, align 8, !tbaa !13
  %2541 = load double, ptr %49, align 8, !tbaa !13
  %2542 = fsub double %2540, %2541
  %2543 = load i64, ptr %28, align 8, !tbaa !11
  %2544 = sitofp i64 %2543 to double
  %2545 = fmul double %2542, %2544
  %2546 = load i64, ptr %27, align 8, !tbaa !11
  %2547 = sub nsw i64 %2546, 1
  %2548 = sitofp i64 %2547 to double
  %2549 = fdiv double %2545, %2548
  %2550 = fadd double %2539, %2549
  %2551 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2552 = load ptr, ptr %2551, align 8, !tbaa !15
  %2553 = load i64, ptr %28, align 8, !tbaa !11
  %2554 = getelementptr inbounds double, ptr %2552, i64 %2553
  store double %2550, ptr %2554, align 8, !tbaa !13
  %2555 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2556 = load ptr, ptr %2555, align 8, !tbaa !15
  %2557 = load i64, ptr %28, align 8, !tbaa !11
  %2558 = getelementptr inbounds double, ptr %2556, i64 %2557
  %2559 = load double, ptr %2558, align 8, !tbaa !13
  %2560 = call double @llvm.fmuladd.f64(double 0x400921FB54442D18, double %2559, double 4.000000e-01)
  %2561 = load ptr, ptr %4, align 8, !tbaa !9
  %2562 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %2560, ptr noundef %2561)
  %2563 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2564 = load ptr, ptr %2563, align 8, !tbaa !15
  %2565 = load i64, ptr %28, align 8, !tbaa !11
  %2566 = getelementptr inbounds double, ptr %2564, i64 %2565
  %2567 = load double, ptr %2566, align 8, !tbaa !13
  %2568 = load ptr, ptr %4, align 8, !tbaa !9
  %2569 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %2567, ptr noundef %2568)
  %2570 = fadd double %2562, %2569
  %2571 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %2572 = load ptr, ptr %2571, align 8, !tbaa !15
  %2573 = load i64, ptr %28, align 8, !tbaa !11
  %2574 = getelementptr inbounds double, ptr %2572, i64 %2573
  store double %2570, ptr %2574, align 8, !tbaa !13
  br label %2575

2575:                                             ; preds = %2538
  %2576 = load i64, ptr %28, align 8, !tbaa !11
  %2577 = add nsw i64 %2576, 1
  store i64 %2577, ptr %28, align 8, !tbaa !11
  br label %2533, !llvm.loop !67

2578:                                             ; preds = %2533
  %2579 = load double, ptr %49, align 8, !tbaa !13
  %2580 = call double @llvm.fmuladd.f64(double 0x400921FB54442D18, double %2579, double 4.000000e-01)
  %2581 = load ptr, ptr %4, align 8, !tbaa !9
  %2582 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %2580, ptr noundef %2581)
  %2583 = load double, ptr %49, align 8, !tbaa !13
  %2584 = load ptr, ptr %4, align 8, !tbaa !9
  %2585 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %2583, ptr noundef %2584)
  %2586 = call double @llvm.fmuladd.f64(double 0x400921FB54442D18, double %2582, double %2585)
  store double %2586, ptr %51, align 8, !tbaa !13
  %2587 = load double, ptr %50, align 8, !tbaa !13
  %2588 = call double @llvm.fmuladd.f64(double 0x400921FB54442D18, double %2587, double 4.000000e-01)
  %2589 = load ptr, ptr %4, align 8, !tbaa !9
  %2590 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %2588, ptr noundef %2589)
  %2591 = load double, ptr %50, align 8, !tbaa !13
  %2592 = load ptr, ptr %4, align 8, !tbaa !9
  %2593 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %2591, ptr noundef %2592)
  %2594 = call double @llvm.fmuladd.f64(double 0x400921FB54442D18, double %2590, double %2593)
  store double %2594, ptr %52, align 8, !tbaa !13
  %2595 = load i64, ptr %27, align 8, !tbaa !11
  %2596 = load double, ptr %51, align 8, !tbaa !13
  %2597 = load double, ptr %52, align 8, !tbaa !13
  %2598 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %2595, i64 noundef 1, double noundef %2596, i64 noundef 1, double noundef %2597, ptr noundef %47, ptr noundef %2598)
  %2599 = load double, ptr %49, align 8, !tbaa !13
  %2600 = load double, ptr %50, align 8, !tbaa !13
  %2601 = load double, ptr %49, align 8, !tbaa !13
  %2602 = fsub double %2600, %2601
  %2603 = load ptr, ptr %4, align 8, !tbaa !9
  %2604 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2603)
  %2605 = call double @llvm.fmuladd.f64(double %2602, double %2604, double %2599)
  store double %2605, ptr %53, align 8, !tbaa !13
  %2606 = load double, ptr %49, align 8, !tbaa !13
  %2607 = call double @llvm.fmuladd.f64(double 0x400921FB54442D18, double %2606, double 4.000000e-01)
  %2608 = load ptr, ptr %4, align 8, !tbaa !9
  %2609 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %2607, ptr noundef %2608)
  %2610 = fneg double %2609
  %2611 = fdiv double %2610, 0x400921FB54442D18
  %2612 = load double, ptr %49, align 8, !tbaa !13
  %2613 = load ptr, ptr %4, align 8, !tbaa !9
  %2614 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %2612, ptr noundef %2613)
  %2615 = fadd double %2611, %2614
  store double %2615, ptr %56, align 8, !tbaa !13
  %2616 = load double, ptr %53, align 8, !tbaa !13
  %2617 = call double @llvm.fmuladd.f64(double 0x400921FB54442D18, double %2616, double 4.000000e-01)
  %2618 = load ptr, ptr %4, align 8, !tbaa !9
  %2619 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %2617, ptr noundef %2618)
  %2620 = fneg double %2619
  %2621 = fdiv double %2620, 0x400921FB54442D18
  %2622 = load double, ptr %53, align 8, !tbaa !13
  %2623 = load ptr, ptr %4, align 8, !tbaa !9
  %2624 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %2622, ptr noundef %2623)
  %2625 = fadd double %2621, %2624
  %2626 = load double, ptr %56, align 8, !tbaa !13
  %2627 = fsub double %2625, %2626
  store double %2627, ptr %56, align 8, !tbaa !13
  %2628 = load double, ptr %56, align 8, !tbaa !13
  %2629 = load double, ptr %53, align 8, !tbaa !13
  %2630 = load ptr, ptr %4, align 8, !tbaa !9
  %2631 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2629, ptr noundef %2630)
  %2632 = fsub double %2628, %2631
  store double %2632, ptr %56, align 8, !tbaa !13
  %2633 = load double, ptr %75, align 8, !tbaa !13
  %2634 = load double, ptr %56, align 8, !tbaa !13
  %2635 = load ptr, ptr %4, align 8, !tbaa !9
  %2636 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2634, ptr noundef %2635)
  %2637 = load ptr, ptr %4, align 8, !tbaa !9
  %2638 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %2633, double noundef %2636, ptr noundef %2637)
  store double %2638, ptr %75, align 8, !tbaa !13
  br label %2639

2639:                                             ; preds = %2578
  %2640 = load i64, ptr %30, align 8, !tbaa !11
  %2641 = add nsw i64 %2640, 1
  store i64 %2641, ptr %30, align 8, !tbaa !11
  br label %2522, !llvm.loop !68

2642:                                             ; preds = %2522
  br label %2643

2643:                                             ; preds = %2642
  %2644 = load i64, ptr %27, align 8, !tbaa !11
  %2645 = add nsw i64 %2644, 1
  store i64 %2645, ptr %27, align 8, !tbaa !11
  br label %2510, !llvm.loop !69

2646:                                             ; preds = %2510
  %2647 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %2648 = trunc i8 %2647 to i1
  br i1 %2648, label %2652, label %2649

2649:                                             ; preds = %2646
  %2650 = load double, ptr %75, align 8, !tbaa !13
  %2651 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2650, double noundef 1.000000e-03)
  br label %2652

2652:                                             ; preds = %2649, %2646
  %2653 = phi i1 [ true, %2646 ], [ %2651, %2649 ]
  %2654 = zext i1 %2653 to i8
  store i8 %2654, ptr %16, align 1, !tbaa !5
  %2655 = load ptr, ptr %4, align 8, !tbaa !9
  %2656 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2655)
  %2657 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %2656, double -1.000000e+00)
  store double %2657, ptr %63, align 8, !tbaa !13
  %2658 = load ptr, ptr %4, align 8, !tbaa !9
  %2659 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2658)
  %2660 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %2659, double -1.000000e+00)
  store double %2660, ptr %64, align 8, !tbaa !13
  %2661 = load ptr, ptr %4, align 8, !tbaa !9
  %2662 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2661)
  %2663 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %2662, double -1.000000e+00)
  store double %2663, ptr %65, align 8, !tbaa !13
  %2664 = load ptr, ptr %4, align 8, !tbaa !9
  %2665 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2664)
  %2666 = fneg double %2665
  %2667 = fsub double %2666, 5.000000e-01
  store double %2667, ptr %49, align 8, !tbaa !13
  %2668 = load ptr, ptr %4, align 8, !tbaa !9
  %2669 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2668)
  %2670 = fadd double %2669, 5.000000e-01
  store double %2670, ptr %50, align 8, !tbaa !13
  store i64 2, ptr %27, align 8, !tbaa !11
  %2671 = load i64, ptr %27, align 8, !tbaa !11
  %2672 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %2671, ptr noundef %2672)
  %2673 = load i64, ptr %27, align 8, !tbaa !11
  %2674 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %2673, ptr noundef %2674)
  %2675 = load i64, ptr %27, align 8, !tbaa !11
  %2676 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %37, i64 noundef %2675, ptr noundef %2676)
  %2677 = load double, ptr %49, align 8, !tbaa !13
  %2678 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2679 = load ptr, ptr %2678, align 8, !tbaa !15
  %2680 = getelementptr inbounds double, ptr %2679, i64 0
  store double %2677, ptr %2680, align 8, !tbaa !13
  %2681 = load double, ptr %63, align 8, !tbaa !13
  %2682 = load double, ptr %64, align 8, !tbaa !13
  %2683 = load double, ptr %49, align 8, !tbaa !13
  %2684 = call double @llvm.fmuladd.f64(double %2682, double %2683, double %2681)
  %2685 = load double, ptr %65, align 8, !tbaa !13
  %2686 = load double, ptr %49, align 8, !tbaa !13
  %2687 = load ptr, ptr %4, align 8, !tbaa !9
  %2688 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %2686, ptr noundef %2687)
  %2689 = call double @llvm.fmuladd.f64(double %2685, double %2688, double %2684)
  %2690 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %2691 = load ptr, ptr %2690, align 8, !tbaa !15
  %2692 = getelementptr inbounds double, ptr %2691, i64 0
  store double %2689, ptr %2692, align 8, !tbaa !13
  %2693 = load double, ptr %64, align 8, !tbaa !13
  %2694 = load double, ptr %65, align 8, !tbaa !13
  %2695 = fmul double 2.000000e+00, %2694
  %2696 = load double, ptr %49, align 8, !tbaa !13
  %2697 = call double @llvm.fmuladd.f64(double %2695, double %2696, double %2693)
  %2698 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %2699 = load ptr, ptr %2698, align 8, !tbaa !15
  %2700 = getelementptr inbounds double, ptr %2699, i64 0
  store double %2697, ptr %2700, align 8, !tbaa !13
  %2701 = load double, ptr %50, align 8, !tbaa !13
  %2702 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2703 = load ptr, ptr %2702, align 8, !tbaa !15
  %2704 = getelementptr inbounds double, ptr %2703, i64 1
  store double %2701, ptr %2704, align 8, !tbaa !13
  %2705 = load double, ptr %63, align 8, !tbaa !13
  %2706 = load double, ptr %64, align 8, !tbaa !13
  %2707 = load double, ptr %50, align 8, !tbaa !13
  %2708 = call double @llvm.fmuladd.f64(double %2706, double %2707, double %2705)
  %2709 = load double, ptr %65, align 8, !tbaa !13
  %2710 = load double, ptr %50, align 8, !tbaa !13
  %2711 = load ptr, ptr %4, align 8, !tbaa !9
  %2712 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %2710, ptr noundef %2711)
  %2713 = call double @llvm.fmuladd.f64(double %2709, double %2712, double %2708)
  %2714 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %2715 = load ptr, ptr %2714, align 8, !tbaa !15
  %2716 = getelementptr inbounds double, ptr %2715, i64 1
  store double %2713, ptr %2716, align 8, !tbaa !13
  %2717 = load double, ptr %64, align 8, !tbaa !13
  %2718 = load double, ptr %65, align 8, !tbaa !13
  %2719 = fmul double 2.000000e+00, %2718
  %2720 = load double, ptr %50, align 8, !tbaa !13
  %2721 = call double @llvm.fmuladd.f64(double %2719, double %2720, double %2717)
  %2722 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %2723 = load ptr, ptr %2722, align 8, !tbaa !15
  %2724 = getelementptr inbounds double, ptr %2723, i64 1
  store double %2721, ptr %2724, align 8, !tbaa !13
  %2725 = load i64, ptr %27, align 8, !tbaa !11
  %2726 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20spline1dbuildhermiteEPKNS_9ae_vectorES2_S2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, ptr noundef %37, i64 noundef %2725, ptr noundef %47, ptr noundef %2726)
  %2727 = load double, ptr %49, align 8, !tbaa !13
  %2728 = load double, ptr %50, align 8, !tbaa !13
  %2729 = load ptr, ptr %4, align 8, !tbaa !9
  %2730 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %2727, double noundef %2728, ptr noundef %2729)
  %2731 = load double, ptr %50, align 8, !tbaa !13
  %2732 = load double, ptr %49, align 8, !tbaa !13
  %2733 = fsub double %2731, %2732
  %2734 = load ptr, ptr %4, align 8, !tbaa !9
  %2735 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2733, ptr noundef %2734)
  %2736 = fsub double %2730, %2735
  store double %2736, ptr %51, align 8, !tbaa !13
  %2737 = load double, ptr %49, align 8, !tbaa !13
  %2738 = load double, ptr %50, align 8, !tbaa !13
  %2739 = load ptr, ptr %4, align 8, !tbaa !9
  %2740 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %2737, double noundef %2738, ptr noundef %2739)
  %2741 = load double, ptr %50, align 8, !tbaa !13
  %2742 = load double, ptr %49, align 8, !tbaa !13
  %2743 = fsub double %2741, %2742
  %2744 = load ptr, ptr %4, align 8, !tbaa !9
  %2745 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2743, ptr noundef %2744)
  %2746 = fadd double %2740, %2745
  store double %2746, 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 %2747

2747:                                             ; preds = %2806, %2652
  %2748 = load i64, ptr %30, align 8, !tbaa !11
  %2749 = icmp sle i64 %2748, 100
  br i1 %2749, label %2750, label %2809

2750:                                             ; preds = %2747
  %2751 = load double, ptr %51, align 8, !tbaa !13
  %2752 = load double, ptr %52, align 8, !tbaa !13
  %2753 = load double, ptr %51, align 8, !tbaa !13
  %2754 = fsub double %2752, %2753
  %2755 = load ptr, ptr %4, align 8, !tbaa !9
  %2756 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2755)
  %2757 = call double @llvm.fmuladd.f64(double %2754, double %2756, double %2751)
  store double %2757, ptr %53, align 8, !tbaa !13
  %2758 = load double, ptr %63, align 8, !tbaa !13
  %2759 = load double, ptr %53, align 8, !tbaa !13
  %2760 = load double, ptr %64, align 8, !tbaa !13
  %2761 = load double, ptr %53, align 8, !tbaa !13
  %2762 = load ptr, ptr %4, align 8, !tbaa !9
  %2763 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %2761, ptr noundef %2762)
  %2764 = fmul double %2760, %2763
  %2765 = fdiv double %2764, 2.000000e+00
  %2766 = call double @llvm.fmuladd.f64(double %2758, double %2759, double %2765)
  %2767 = load double, ptr %65, align 8, !tbaa !13
  %2768 = load double, ptr %53, align 8, !tbaa !13
  %2769 = load ptr, ptr %4, align 8, !tbaa !9
  %2770 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %2768, ptr noundef %2769)
  %2771 = fmul double %2767, %2770
  %2772 = load double, ptr %53, align 8, !tbaa !13
  %2773 = fmul double %2771, %2772
  %2774 = fdiv double %2773, 3.000000e+00
  %2775 = fadd double %2766, %2774
  %2776 = load double, ptr %63, align 8, !tbaa !13
  %2777 = load double, ptr %49, align 8, !tbaa !13
  %2778 = load double, ptr %64, align 8, !tbaa !13
  %2779 = load double, ptr %49, align 8, !tbaa !13
  %2780 = load ptr, ptr %4, align 8, !tbaa !9
  %2781 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %2779, ptr noundef %2780)
  %2782 = fmul double %2778, %2781
  %2783 = fdiv double %2782, 2.000000e+00
  %2784 = call double @llvm.fmuladd.f64(double %2776, double %2777, double %2783)
  %2785 = load double, ptr %65, align 8, !tbaa !13
  %2786 = load double, ptr %49, align 8, !tbaa !13
  %2787 = load ptr, ptr %4, align 8, !tbaa !9
  %2788 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %2786, ptr noundef %2787)
  %2789 = fmul double %2785, %2788
  %2790 = load double, ptr %49, align 8, !tbaa !13
  %2791 = fmul double %2789, %2790
  %2792 = fdiv double %2791, 3.000000e+00
  %2793 = fadd double %2784, %2792
  %2794 = fsub double %2775, %2793
  store double %2794, ptr %56, align 8, !tbaa !13
  %2795 = load double, ptr %56, align 8, !tbaa !13
  %2796 = load double, ptr %53, align 8, !tbaa !13
  %2797 = load ptr, ptr %4, align 8, !tbaa !9
  %2798 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2796, ptr noundef %2797)
  %2799 = fsub double %2795, %2798
  store double %2799, ptr %56, align 8, !tbaa !13
  %2800 = load double, ptr %75, align 8, !tbaa !13
  %2801 = load double, ptr %56, align 8, !tbaa !13
  %2802 = load ptr, ptr %4, align 8, !tbaa !9
  %2803 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2801, ptr noundef %2802)
  %2804 = load ptr, ptr %4, align 8, !tbaa !9
  %2805 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %2800, double noundef %2803, ptr noundef %2804)
  store double %2805, ptr %75, align 8, !tbaa !13
  br label %2806

2806:                                             ; preds = %2750
  %2807 = load i64, ptr %30, align 8, !tbaa !11
  %2808 = add nsw i64 %2807, 1
  store i64 %2808, ptr %30, align 8, !tbaa !11
  br label %2747, !llvm.loop !70

2809:                                             ; preds = %2747
  %2810 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %2811 = trunc i8 %2810 to i1
  br i1 %2811, label %2816, label %2812

2812:                                             ; preds = %2809
  %2813 = load double, ptr %75, align 8, !tbaa !13
  %2814 = load double, ptr %19, align 8, !tbaa !13
  %2815 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2813, double noundef %2814)
  br label %2816

2816:                                             ; preds = %2812, %2809
  %2817 = phi i1 [ true, %2809 ], [ %2815, %2812 ]
  %2818 = zext i1 %2817 to i8
  store i8 %2818, ptr %16, align 1, !tbaa !5
  store i64 100, ptr %27, align 8, !tbaa !11
  %2819 = load i64, ptr %27, align 8, !tbaa !11
  %2820 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %2819, ptr noundef %2820)
  %2821 = load i64, ptr %27, align 8, !tbaa !11
  %2822 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %2821, ptr noundef %2822)
  store i64 0, ptr %28, align 8, !tbaa !11
  br label %2823

2823:                                             ; preds = %2852, %2816
  %2824 = load i64, ptr %28, align 8, !tbaa !11
  %2825 = load i64, ptr %27, align 8, !tbaa !11
  %2826 = sub nsw i64 %2825, 1
  %2827 = icmp sle i64 %2824, %2826
  br i1 %2827, label %2828, label %2855

2828:                                             ; preds = %2823
  %2829 = load i64, ptr %28, align 8, !tbaa !11
  %2830 = sitofp i64 %2829 to double
  %2831 = load i64, ptr %27, align 8, !tbaa !11
  %2832 = sub nsw i64 %2831, 1
  %2833 = sitofp i64 %2832 to double
  %2834 = fdiv double %2830, %2833
  %2835 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2836 = load ptr, ptr %2835, align 8, !tbaa !15
  %2837 = load i64, ptr %28, align 8, !tbaa !11
  %2838 = getelementptr inbounds double, ptr %2836, i64 %2837
  store double %2834, ptr %2838, align 8, !tbaa !13
  %2839 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %2840 = load ptr, ptr %2839, align 8, !tbaa !15
  %2841 = load i64, ptr %28, align 8, !tbaa !11
  %2842 = getelementptr inbounds double, ptr %2840, i64 %2841
  %2843 = load double, ptr %2842, align 8, !tbaa !13
  %2844 = fmul double 0x401921FB54442D18, %2843
  %2845 = load ptr, ptr %4, align 8, !tbaa !9
  %2846 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %2844, ptr noundef %2845)
  %2847 = fadd double %2846, 1.000000e+00
  %2848 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %2849 = load ptr, ptr %2848, align 8, !tbaa !15
  %2850 = load i64, ptr %28, align 8, !tbaa !11
  %2851 = getelementptr inbounds double, ptr %2849, i64 %2850
  store double %2847, ptr %2851, align 8, !tbaa !13
  br label %2852

2852:                                             ; preds = %2828
  %2853 = load i64, ptr %28, align 8, !tbaa !11
  %2854 = add nsw i64 %2853, 1
  store i64 %2854, ptr %28, align 8, !tbaa !11
  br label %2823, !llvm.loop !71

2855:                                             ; preds = %2823
  %2856 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %2857 = load ptr, ptr %2856, align 8, !tbaa !15
  %2858 = getelementptr inbounds double, ptr %2857, i64 0
  store double 2.000000e+00, ptr %2858, align 8, !tbaa !13
  %2859 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %2860 = load ptr, ptr %2859, align 8, !tbaa !15
  %2861 = load i64, ptr %27, align 8, !tbaa !11
  %2862 = sub nsw i64 %2861, 1
  %2863 = getelementptr inbounds double, ptr %2860, i64 %2862
  store double 2.000000e+00, ptr %2863, align 8, !tbaa !13
  %2864 = load i64, ptr %27, align 8, !tbaa !11
  %2865 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32, i64 noundef %2864, i64 noundef -1, double noundef 0.000000e+00, i64 noundef -1, double noundef 0.000000e+00, ptr noundef %47, ptr noundef %2865)
  %2866 = load ptr, ptr %4, align 8, !tbaa !9
  %2867 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef 1.000000e+00, ptr noundef %2866)
  store double %2867, ptr %77, align 8, !tbaa !13
  %2868 = load ptr, ptr %4, align 8, !tbaa !9
  %2869 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %2868)
  store double %2869, ptr %56, align 8, !tbaa !13
  %2870 = load double, ptr %56, align 8, !tbaa !13
  %2871 = load ptr, ptr %4, align 8, !tbaa !9
  %2872 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2870, ptr noundef %2871)
  store double %2872, ptr %74, align 8, !tbaa !13
  %2873 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %2874 = trunc i8 %2873 to i1
  br i1 %2874, label %2881, label %2875

2875:                                             ; preds = %2855
  %2876 = load double, ptr %77, align 8, !tbaa !13
  %2877 = fsub double %2876, 1.000000e+00
  %2878 = load ptr, ptr %4, align 8, !tbaa !9
  %2879 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2877, ptr noundef %2878)
  %2880 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2879, double noundef 1.000000e-03)
  br label %2881

2881:                                             ; preds = %2875, %2855
  %2882 = phi i1 [ true, %2855 ], [ %2880, %2875 ]
  %2883 = zext i1 %2882 to i8
  store i8 %2883, ptr %16, align 1, !tbaa !5
  store i64 -10, ptr %28, align 8, !tbaa !11
  br label %2884

2884:                                             ; preds = %2965, %2881
  %2885 = load i64, ptr %28, align 8, !tbaa !11
  %2886 = icmp sle i64 %2885, 10
  br i1 %2886, label %2887, label %2968

2887:                                             ; preds = %2884
  %2888 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %2889 = trunc i8 %2888 to i1
  br i1 %2889, label %2906, label %2890

2890:                                             ; preds = %2887
  %2891 = load i64, ptr %28, align 8, !tbaa !11
  %2892 = sitofp i64 %2891 to double
  %2893 = load double, ptr %56, align 8, !tbaa !13
  %2894 = fadd double %2892, %2893
  %2895 = load ptr, ptr %4, align 8, !tbaa !9
  %2896 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2894, ptr noundef %2895)
  %2897 = load i64, ptr %28, align 8, !tbaa !11
  %2898 = sitofp i64 %2897 to double
  %2899 = load double, ptr %77, align 8, !tbaa !13
  %2900 = load double, ptr %74, align 8, !tbaa !13
  %2901 = call double @llvm.fmuladd.f64(double %2898, double %2899, double %2900)
  %2902 = fsub double %2896, %2901
  %2903 = load ptr, ptr %4, align 8, !tbaa !9
  %2904 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2902, ptr noundef %2903)
  %2905 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2904, double noundef 1.000000e-03)
  br label %2906

2906:                                             ; preds = %2890, %2887
  %2907 = phi i1 [ true, %2887 ], [ %2905, %2890 ]
  %2908 = zext i1 %2907 to i8
  store i8 %2908, ptr %16, align 1, !tbaa !5
  %2909 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %2910 = trunc i8 %2909 to i1
  br i1 %2910, label %2925, label %2911

2911:                                             ; preds = %2906
  %2912 = load i64, ptr %28, align 8, !tbaa !11
  %2913 = sitofp i64 %2912 to double
  %2914 = fsub double %2913, 5.000000e-13
  %2915 = load ptr, ptr %4, align 8, !tbaa !9
  %2916 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2914, ptr noundef %2915)
  %2917 = load i64, ptr %28, align 8, !tbaa !11
  %2918 = sitofp i64 %2917 to double
  %2919 = load double, ptr %77, align 8, !tbaa !13
  %2920 = fneg double %2918
  %2921 = call double @llvm.fmuladd.f64(double %2920, double %2919, double %2916)
  %2922 = load ptr, ptr %4, align 8, !tbaa !9
  %2923 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2921, ptr noundef %2922)
  %2924 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2923, double noundef 1.000000e-03)
  br label %2925

2925:                                             ; preds = %2911, %2906
  %2926 = phi i1 [ true, %2906 ], [ %2924, %2911 ]
  %2927 = zext i1 %2926 to i8
  store i8 %2927, ptr %16, align 1, !tbaa !5
  %2928 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %2929 = trunc i8 %2928 to i1
  br i1 %2929, label %2943, label %2930

2930:                                             ; preds = %2925
  %2931 = load i64, ptr %28, align 8, !tbaa !11
  %2932 = sitofp i64 %2931 to double
  %2933 = load ptr, ptr %4, align 8, !tbaa !9
  %2934 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2932, ptr noundef %2933)
  %2935 = load i64, ptr %28, align 8, !tbaa !11
  %2936 = sitofp i64 %2935 to double
  %2937 = load double, ptr %77, align 8, !tbaa !13
  %2938 = fneg double %2936
  %2939 = call double @llvm.fmuladd.f64(double %2938, double %2937, double %2934)
  %2940 = load ptr, ptr %4, align 8, !tbaa !9
  %2941 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2939, ptr noundef %2940)
  %2942 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2941, double noundef 1.000000e-03)
  br label %2943

2943:                                             ; preds = %2930, %2925
  %2944 = phi i1 [ true, %2925 ], [ %2942, %2930 ]
  %2945 = zext i1 %2944 to i8
  store i8 %2945, ptr %16, align 1, !tbaa !5
  %2946 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %2947 = trunc i8 %2946 to i1
  br i1 %2947, label %2962, label %2948

2948:                                             ; preds = %2943
  %2949 = load i64, ptr %28, align 8, !tbaa !11
  %2950 = sitofp i64 %2949 to double
  %2951 = fadd double %2950, 5.000000e-13
  %2952 = load ptr, ptr %4, align 8, !tbaa !9
  %2953 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef %47, double noundef %2951, ptr noundef %2952)
  %2954 = load i64, ptr %28, align 8, !tbaa !11
  %2955 = sitofp i64 %2954 to double
  %2956 = load double, ptr %77, align 8, !tbaa !13
  %2957 = fneg double %2955
  %2958 = call double @llvm.fmuladd.f64(double %2957, double %2956, double %2953)
  %2959 = load ptr, ptr %4, align 8, !tbaa !9
  %2960 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2958, ptr noundef %2959)
  %2961 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2960, double noundef 1.000000e-03)
  br label %2962

2962:                                             ; preds = %2948, %2943
  %2963 = phi i1 [ true, %2943 ], [ %2961, %2948 ]
  %2964 = zext i1 %2963 to i8
  store i8 %2964, ptr %16, align 1, !tbaa !5
  br label %2965

2965:                                             ; preds = %2962
  %2966 = load i64, ptr %28, align 8, !tbaa !11
  %2967 = add nsw i64 %2966, 1
  store i64 %2967, ptr %28, align 8, !tbaa !11
  br label %2884, !llvm.loop !72

2968:                                             ; preds = %2884
  %2969 = load ptr, ptr %4, align 8, !tbaa !9
  %2970 = call noundef zeroext i1 @_ZL35testspline1dunit_testmonotonesplinePN11alglib_impl8ae_stateE(ptr noundef %2969)
  %2971 = zext i1 %2970 to i8
  store i8 %2971, ptr %17, align 1, !tbaa !5
  %2972 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL34testspline1dunit_testsplinefittingPbPN11alglib_impl8ae_stateE(ptr noundef %18, ptr noundef %2972)
  %2973 = load i8, ptr %11, align 1, !tbaa !5, !range !20, !noundef !21
  %2974 = trunc i8 %2973 to i1
  br i1 %2974, label %3008, label %2975

2975:                                             ; preds = %2968
  %2976 = load i8, ptr %8, align 1, !tbaa !5, !range !20, !noundef !21
  %2977 = trunc i8 %2976 to i1
  br i1 %2977, label %3008, label %2978

2978:                                             ; preds = %2975
  %2979 = load i8, ptr %7, align 1, !tbaa !5, !range !20, !noundef !21
  %2980 = trunc i8 %2979 to i1
  br i1 %2980, label %3008, label %2981

2981:                                             ; preds = %2978
  %2982 = load i8, ptr %9, align 1, !tbaa !5, !range !20, !noundef !21
  %2983 = trunc i8 %2982 to i1
  br i1 %2983, label %3008, label %2984

2984:                                             ; preds = %2981
  %2985 = load i8, ptr %10, align 1, !tbaa !5, !range !20, !noundef !21
  %2986 = trunc i8 %2985 to i1
  br i1 %2986, label %3008, label %2987

2987:                                             ; preds = %2984
  %2988 = load i8, ptr %12, align 1, !tbaa !5, !range !20, !noundef !21
  %2989 = trunc i8 %2988 to i1
  br i1 %2989, label %3008, label %2990

2990:                                             ; preds = %2987
  %2991 = load i8, ptr %14, align 1, !tbaa !5, !range !20, !noundef !21
  %2992 = trunc i8 %2991 to i1
  br i1 %2992, label %3008, label %2993

2993:                                             ; preds = %2990
  %2994 = load i8, ptr %13, align 1, !tbaa !5, !range !20, !noundef !21
  %2995 = trunc i8 %2994 to i1
  br i1 %2995, label %3008, label %2996

2996:                                             ; preds = %2993
  %2997 = load i8, ptr %15, align 1, !tbaa !5, !range !20, !noundef !21
  %2998 = trunc i8 %2997 to i1
  br i1 %2998, label %3008, label %2999

2999:                                             ; preds = %2996
  %3000 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %3001 = trunc i8 %3000 to i1
  br i1 %3001, label %3008, label %3002

3002:                                             ; preds = %2999
  %3003 = load i8, ptr %17, align 1, !tbaa !5, !range !20, !noundef !21
  %3004 = trunc i8 %3003 to i1
  br i1 %3004, label %3008, label %3005

3005:                                             ; preds = %3002
  %3006 = load i8, ptr %18, align 1, !tbaa !5, !range !20, !noundef !21
  %3007 = trunc i8 %3006 to i1
  br label %3008

3008:                                             ; preds = %3005, %3002, %2999, %2996, %2993, %2990, %2987, %2984, %2981, %2978, %2975, %2968
  %3009 = phi i1 [ true, %3002 ], [ true, %2999 ], [ true, %2996 ], [ true, %2993 ], [ true, %2990 ], [ true, %2987 ], [ true, %2984 ], [ true, %2981 ], [ true, %2978 ], [ true, %2975 ], [ true, %2968 ], [ %3007, %3005 ]
  %3010 = zext i1 %3009 to i8
  store i8 %3010, ptr %6, align 1, !tbaa !5
  %3011 = load i8, ptr %3, align 1, !tbaa !5, !range !20, !noundef !21
  %3012 = trunc i8 %3011 to i1
  br i1 %3012, label %3120, label %3013

3013:                                             ; preds = %3008
  %3014 = call i32 (ptr, ...) @printf(ptr noundef @.str.799)
  %3015 = call i32 (ptr, ...) @printf(ptr noundef @.str.800)
  %3016 = call i32 (ptr, ...) @printf(ptr noundef @.str.801)
  %3017 = load i8, ptr %11, align 1, !tbaa !5, !range !20, !noundef !21
  %3018 = trunc i8 %3017 to i1
  br i1 %3018, label %3019, label %3021

3019:                                             ; preds = %3013
  %3020 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %3023

3021:                                             ; preds = %3013
  %3022 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %3023

3023:                                             ; preds = %3021, %3019
  %3024 = call i32 (ptr, ...) @printf(ptr noundef @.str.802)
  %3025 = load i8, ptr %8, align 1, !tbaa !5, !range !20, !noundef !21
  %3026 = trunc i8 %3025 to i1
  br i1 %3026, label %3027, label %3029

3027:                                             ; preds = %3023
  %3028 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %3031

3029:                                             ; preds = %3023
  %3030 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %3031

3031:                                             ; preds = %3029, %3027
  %3032 = call i32 (ptr, ...) @printf(ptr noundef @.str.803)
  %3033 = load i8, ptr %7, align 1, !tbaa !5, !range !20, !noundef !21
  %3034 = trunc i8 %3033 to i1
  br i1 %3034, label %3035, label %3037

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

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

3039:                                             ; preds = %3037, %3035
  %3040 = call i32 (ptr, ...) @printf(ptr noundef @.str.804)
  %3041 = load i8, ptr %9, align 1, !tbaa !5, !range !20, !noundef !21
  %3042 = trunc i8 %3041 to i1
  br i1 %3042, label %3043, label %3045

3043:                                             ; preds = %3039
  %3044 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %3047

3045:                                             ; preds = %3039
  %3046 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %3047

3047:                                             ; preds = %3045, %3043
  %3048 = call i32 (ptr, ...) @printf(ptr noundef @.str.805)
  %3049 = load i8, ptr %10, align 1, !tbaa !5, !range !20, !noundef !21
  %3050 = trunc i8 %3049 to i1
  br i1 %3050, label %3051, label %3053

3051:                                             ; preds = %3047
  %3052 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %3055

3053:                                             ; preds = %3047
  %3054 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %3055

3055:                                             ; preds = %3053, %3051
  %3056 = call i32 (ptr, ...) @printf(ptr noundef @.str.806)
  %3057 = load i8, ptr %17, align 1, !tbaa !5, !range !20, !noundef !21
  %3058 = trunc i8 %3057 to i1
  br i1 %3058, label %3059, label %3061

3059:                                             ; preds = %3055
  %3060 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %3063

3061:                                             ; preds = %3055
  %3062 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %3063

3063:                                             ; preds = %3061, %3059
  %3064 = call i32 (ptr, ...) @printf(ptr noundef @.str.807)
  %3065 = load i8, ptr %18, align 1, !tbaa !5, !range !20, !noundef !21
  %3066 = trunc i8 %3065 to i1
  br i1 %3066, label %3067, label %3069

3067:                                             ; preds = %3063
  %3068 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %3071

3069:                                             ; preds = %3063
  %3070 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %3071

3071:                                             ; preds = %3069, %3067
  %3072 = call i32 (ptr, ...) @printf(ptr noundef @.str.808)
  %3073 = load i8, ptr %12, align 1, !tbaa !5, !range !20, !noundef !21
  %3074 = trunc i8 %3073 to i1
  br i1 %3074, label %3075, label %3077

3075:                                             ; preds = %3071
  %3076 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %3079

3077:                                             ; preds = %3071
  %3078 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %3079

3079:                                             ; preds = %3077, %3075
  %3080 = call i32 (ptr, ...) @printf(ptr noundef @.str.809)
  %3081 = load i8, ptr %14, align 1, !tbaa !5, !range !20, !noundef !21
  %3082 = trunc i8 %3081 to i1
  br i1 %3082, label %3083, label %3085

3083:                                             ; preds = %3079
  %3084 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %3087

3085:                                             ; preds = %3079
  %3086 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %3087

3087:                                             ; preds = %3085, %3083
  %3088 = call i32 (ptr, ...) @printf(ptr noundef @.str.810)
  %3089 = load i8, ptr %13, align 1, !tbaa !5, !range !20, !noundef !21
  %3090 = trunc i8 %3089 to i1
  br i1 %3090, label %3091, label %3093

3091:                                             ; preds = %3087
  %3092 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %3095

3093:                                             ; preds = %3087
  %3094 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %3095

3095:                                             ; preds = %3093, %3091
  %3096 = call i32 (ptr, ...) @printf(ptr noundef @.str.811)
  %3097 = load i8, ptr %15, align 1, !tbaa !5, !range !20, !noundef !21
  %3098 = trunc i8 %3097 to i1
  br i1 %3098, label %3099, label %3101

3099:                                             ; preds = %3095
  %3100 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %3103

3101:                                             ; preds = %3095
  %3102 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %3103

3103:                                             ; preds = %3101, %3099
  %3104 = call i32 (ptr, ...) @printf(ptr noundef @.str.812)
  %3105 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %3106 = trunc i8 %3105 to i1
  br i1 %3106, label %3107, label %3109

3107:                                             ; preds = %3103
  %3108 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %3111

3109:                                             ; preds = %3103
  %3110 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %3111

3111:                                             ; preds = %3109, %3107
  %3112 = load i8, ptr %6, align 1, !tbaa !5, !range !20, !noundef !21
  %3113 = trunc i8 %3112 to i1
  br i1 %3113, label %3114, label %3116

3114:                                             ; preds = %3111
  %3115 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  br label %3118

3116:                                             ; preds = %3111
  %3117 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  br label %3118

3118:                                             ; preds = %3116, %3114
  %3119 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  br label %3120

3120:                                             ; preds = %3118, %3008
  %3121 = load i8, ptr %6, align 1, !tbaa !5, !range !20, !noundef !21
  %3122 = trunc i8 %3121 to i1
  %3123 = xor i1 %3122, true
  %3124 = zext i1 %3123 to i8
  store i8 %3124, ptr %82, align 1, !tbaa !5
  %3125 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %3125)
  %3126 = load i8, ptr %82, align 1, !tbaa !5, !range !20, !noundef !21
  %3127 = trunc i8 %3126 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %82) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %81) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 %3127
}

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

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

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

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

declare void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_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_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl21spline1dgriddiffcubicEPKNS_9ae_vectorES2_lldldPS0_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_impl22spline1dgriddiff2cubicEPKNS_9ae_vectorES2_lldldPS0_S3_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_impl17spline1dconvcubicEPKNS_9ae_vectorES2_lldldS2_lPS0_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_impl21spline1dconvdiffcubicEPKNS_9ae_vectorES2_lldldS2_lPS0_S3_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_impl22spline1dconvdiff2cubicEPKNS_9ae_vectorES2_lldldS2_lPS0_S3_S3_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_impl23spline1dbuildcatmullromEPKNS_9ae_vectorES2_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, ptr noundef) #1

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

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

declare void @_ZN11alglib_impl21spline1dbuildakimamodEPKNS_9ae_vectorES2_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_impl12spline1dcopyEPKNS_19spline1dinterpolantEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL36testspline1dunit_enumerateallsplinesPKN11alglib_impl9ae_vectorES2_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_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr 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 nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!26, !10, i64 16}
!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}
!69 = distinct !{!69, !17}
!70 = distinct !{!70, !17}
!71 = distinct !{!71, !17}
!72 = distinct !{!72, !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" }
%"struct.alglib_impl::ae_serializer" = type { i64, i64, i64, i64, i64, ptr, ptr, ptr, i64, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.477 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.784 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.785 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.786 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.787 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.788 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.789 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.790 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.791 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.792 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.793 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.794 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.795 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.796 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.797 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.798 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.799 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.800 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.801 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.802 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.803 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.804 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.805 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.806 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.807 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.808 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.809 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.810 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.811 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.812 = 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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

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

declare void @_ZN11alglib_impl18ae_serializer_initEPNS_13ae_serializerE(ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl25ae_serializer_alloc_startEPNS_13ae_serializerE(ptr noundef) local_unnamed_addr #3

declare noundef i64 @_ZN11alglib_impl28ae_serializer_get_alloc_sizeEPNS_13ae_serializerE(ptr noundef) local_unnamed_addr #3

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

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

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

declare void @_ZN11alglib_impl19ae_serializer_clearEPNS_13ae_serializerE(ptr noundef) local_unnamed_addr #3

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

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

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

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

; 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 i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %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::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca %"struct.alglib_impl::spline1dinterpolant", align 8
  %24 = alloca %"struct.alglib_impl::spline1dinterpolant", 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 double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca i64, align 8
  %38 = alloca %"struct.alglib_impl::ae_serializer", align 8
  %39 = alloca %"struct.alglib_impl::ae_frame", align 8
  %40 = alloca %"struct.alglib_impl::ae_dyn_block", 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 1, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 1, 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 64, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 160, 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 @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #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) %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(64) %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(160) %23, i8 0, i64 160, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(160) %24, i8 0, i64 160, i1 false)
  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 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %20, 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 %21, 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 %22, i64 noundef 0, i64 noundef 2, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef nonnull %23, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef nonnull %24, ptr noundef %1, i1 noundef zeroext true)
  store i8 0, ptr %4, align 1, !tbaa !5
  store i8 0, ptr %5, align 1, !tbaa !5
  store i8 0, ptr %6, align 1, !tbaa !5
  store i8 0, ptr %7, align 1, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %8, i64 56
  %42 = getelementptr inbounds i8, ptr %9, i64 56
  %43 = getelementptr inbounds i8, ptr %10, i64 56
  %44 = getelementptr inbounds i8, ptr %14, i64 56
  %45 = getelementptr inbounds i8, ptr %19, i64 56
  %46 = getelementptr inbounds i8, ptr %20, i64 56
  %47 = getelementptr inbounds i8, ptr %21, i64 56
  %48 = getelementptr inbounds i8, ptr %18, i64 56
  br label %49

49:                                               ; preds = %2, %670
  %.01415 = phi i1 [ false, %2 ], [ %.4.in, %670 ]
  %.012081414 = phi i1 [ false, %2 ], [ %176, %670 ]
  %.012681413 = phi i64 [ 2, %2 ], [ %671, %670 ]
  %50 = add nsw i64 %.012681413, -1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.012681413, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.012681413, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.012681413, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %.012681413, ptr noundef %1)
  %51 = shl nuw nsw i64 %.012681413, 1
  %52 = uitofp nneg i64 %51 to double
  %53 = fdiv double 0x400921FB54442D18, %52
  br label %.peel.next

.peel.next:                                       ; preds = %656, %49
  %.11412 = phi i1 [ %.01415, %49 ], [ %.4.in, %656 ]
  %.112091411 = phi i1 [ %.012081414, %49 ], [ %176, %656 ]
  %.012291410 = phi i64 [ 1, %49 ], [ %669, %656 ]
  %54 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %55 = fsub double -1.000000e+00, %54
  %56 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %57 = fadd double %56, 1.000000e+00
  %58 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %59 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %60 = fadd double %55, %57
  %61 = fsub double %57, %55
  %62 = fmul double %61, 5.000000e-01
  %63 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %53, ptr noundef %1)
  %64 = fmul double %62, %63
  %65 = call double @llvm.fmuladd.f64(double %60, double 5.000000e-01, double %64)
  %66 = load ptr, ptr %41, align 8, !tbaa !9
  store double %65, ptr %66, align 8, !tbaa !10
  %67 = load ptr, ptr %41, align 8, !tbaa !9
  store double %55, ptr %67, align 8, !tbaa !10
  %.pre = load ptr, ptr %41, align 8, !tbaa !9
  %.pre1568 = load double, ptr %.pre, align 8, !tbaa !10
  %68 = call double @llvm.fmuladd.f64(double %.pre1568, double 0x40105616905F83B6, double 4.000000e-01)
  %69 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %68, ptr noundef %1)
  %70 = load ptr, ptr %42, align 8, !tbaa !9
  store double %69, ptr %70, align 8, !tbaa !10
  %71 = load ptr, ptr %42, align 8, !tbaa !9
  %72 = load double, ptr %71, align 8, !tbaa !10
  %73 = load ptr, ptr %43, align 8, !tbaa !9
  store double %72, ptr %73, align 8, !tbaa !10
  %74 = load ptr, ptr %41, align 8, !tbaa !9
  %75 = load double, ptr %74, align 8, !tbaa !10
  %76 = call double @llvm.fmuladd.f64(double %75, double 0x40105616905F83B6, double 4.000000e-01)
  %77 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %76, ptr noundef %1)
  %78 = fmul double %77, 0xC0105616905F83B6
  %79 = load ptr, ptr %44, align 8, !tbaa !9
  store double %78, ptr %79, align 8, !tbaa !10
  br label %80

80:                                               ; preds = %94, %.peel.next
  %.012401358 = phi i64 [ 1, %.peel.next ], [ %115, %94 ]
  %81 = shl nuw nsw i64 %.012401358, 1
  %82 = or disjoint i64 %81, 1
  %83 = uitofp nneg i64 %82 to double
  %84 = fmul double %83, 0x400921FB54442D18
  %85 = fdiv double %84, %52
  %86 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %85, ptr noundef %1)
  %87 = fmul double %62, %86
  %88 = call double @llvm.fmuladd.f64(double %60, double 5.000000e-01, double %87)
  %89 = load ptr, ptr %41, align 8, !tbaa !9
  %90 = getelementptr inbounds double, ptr %89, i64 %.012401358
  store double %88, ptr %90, align 8, !tbaa !10
  %.pre1571.pre = load ptr, ptr %41, align 8, !tbaa !9
  %91 = icmp eq i64 %.012401358, %50
  br i1 %91, label %92, label %94

92:                                               ; preds = %80
  %93 = getelementptr inbounds double, ptr %.pre1571.pre, i64 %50
  store double %57, ptr %93, align 8, !tbaa !10
  %.pre1570 = load ptr, ptr %41, align 8, !tbaa !9
  br label %94

94:                                               ; preds = %92, %80
  %95 = phi ptr [ %.pre1570, %92 ], [ %.pre1571.pre, %80 ]
  %96 = getelementptr inbounds double, ptr %95, i64 %.012401358
  %97 = load double, ptr %96, align 8, !tbaa !10
  %98 = call double @llvm.fmuladd.f64(double %97, double 0x40105616905F83B6, double 4.000000e-01)
  %99 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %98, ptr noundef %1)
  %100 = load ptr, ptr %42, align 8, !tbaa !9
  %101 = getelementptr inbounds double, ptr %100, i64 %.012401358
  store double %99, ptr %101, align 8, !tbaa !10
  %102 = load ptr, ptr %42, align 8, !tbaa !9
  %103 = getelementptr inbounds double, ptr %102, i64 %.012401358
  %104 = load double, ptr %103, align 8, !tbaa !10
  %105 = load ptr, ptr %43, align 8, !tbaa !9
  %106 = getelementptr inbounds double, ptr %105, i64 %.012401358
  store double %104, ptr %106, align 8, !tbaa !10
  %107 = load ptr, ptr %41, align 8, !tbaa !9
  %108 = getelementptr inbounds double, ptr %107, i64 %.012401358
  %109 = load double, ptr %108, align 8, !tbaa !10
  %110 = call double @llvm.fmuladd.f64(double %109, double 0x40105616905F83B6, double 4.000000e-01)
  %111 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %110, ptr noundef %1)
  %112 = fmul double %111, 0xC0105616905F83B6
  %113 = load ptr, ptr %44, align 8, !tbaa !9
  %114 = getelementptr inbounds double, ptr %113, i64 %.012401358
  store double %112, ptr %114, align 8, !tbaa !10
  %115 = add nuw nsw i64 %.012401358, 1
  %exitcond.not = icmp eq i64 %115, %.012681413
  br i1 %exitcond.not, label %.loopexit1522, label %80, !llvm.loop !12

.loopexit1522:                                    ; preds = %94
  %116 = call double @llvm.fmuladd.f64(double %58, double 2.000000e+00, double -1.000000e+00)
  %117 = load ptr, ptr %43, align 8, !tbaa !9
  %118 = load double, ptr %117, align 8, !tbaa !10
  %119 = getelementptr inbounds double, ptr %117, i64 %50
  store double %118, ptr %119, align 8, !tbaa !10
  br label %120

120:                                              ; preds = %.loopexit1522, %151
  %.112411359 = phi i64 [ 0, %.loopexit1522 ], [ %152, %151 ]
  %121 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %.012681413, ptr noundef %1)
  %.not1314 = icmp eq i64 %121, %.112411359
  br i1 %.not1314, label %151, label %122

122:                                              ; preds = %120
  %123 = load ptr, ptr %41, align 8, !tbaa !9
  %124 = getelementptr inbounds double, ptr %123, i64 %.112411359
  %125 = load double, ptr %124, align 8, !tbaa !10
  %126 = getelementptr inbounds double, ptr %123, i64 %121
  %127 = load double, ptr %126, align 8, !tbaa !10
  store double %127, ptr %124, align 8, !tbaa !10
  %128 = load ptr, ptr %41, align 8, !tbaa !9
  %129 = getelementptr inbounds double, ptr %128, i64 %121
  store double %125, ptr %129, align 8, !tbaa !10
  %130 = load ptr, ptr %42, align 8, !tbaa !9
  %131 = getelementptr inbounds double, ptr %130, i64 %.112411359
  %132 = load double, ptr %131, align 8, !tbaa !10
  %133 = getelementptr inbounds double, ptr %130, i64 %121
  %134 = load double, ptr %133, align 8, !tbaa !10
  store double %134, ptr %131, align 8, !tbaa !10
  %135 = load ptr, ptr %42, align 8, !tbaa !9
  %136 = getelementptr inbounds double, ptr %135, i64 %121
  store double %132, ptr %136, align 8, !tbaa !10
  %137 = load ptr, ptr %43, align 8, !tbaa !9
  %138 = getelementptr inbounds double, ptr %137, i64 %.112411359
  %139 = load double, ptr %138, align 8, !tbaa !10
  %140 = getelementptr inbounds double, ptr %137, i64 %121
  %141 = load double, ptr %140, align 8, !tbaa !10
  store double %141, ptr %138, align 8, !tbaa !10
  %142 = load ptr, ptr %43, align 8, !tbaa !9
  %143 = getelementptr inbounds double, ptr %142, i64 %121
  store double %139, ptr %143, align 8, !tbaa !10
  %144 = load ptr, ptr %44, align 8, !tbaa !9
  %145 = getelementptr inbounds double, ptr %144, i64 %.112411359
  %146 = load double, ptr %145, align 8, !tbaa !10
  %147 = getelementptr inbounds double, ptr %144, i64 %121
  %148 = load double, ptr %147, align 8, !tbaa !10
  store double %148, ptr %145, align 8, !tbaa !10
  %149 = load ptr, ptr %44, align 8, !tbaa !9
  %150 = getelementptr inbounds double, ptr %149, i64 %121
  store double %146, ptr %150, align 8, !tbaa !10
  br label %151

151:                                              ; preds = %120, %122
  %152 = add nuw nsw i64 %.112411359, 1
  %exitcond1523.not = icmp eq i64 %152, %.012681413
  br i1 %exitcond1523.not, label %153, label %120, !llvm.loop !15

153:                                              ; preds = %151
  call void @_ZN11alglib_impl19spline1dbuildlinearEPKNS_9ae_vectorES2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.012681413, ptr noundef nonnull %23, ptr noundef %1)
  br label %154

154:                                              ; preds = %153, %154
  %.012141361 = phi double [ 0.000000e+00, %153 ], [ %164, %154 ]
  %.212421360 = phi i64 [ 0, %153 ], [ %165, %154 ]
  %155 = load ptr, ptr %42, align 8, !tbaa !9
  %156 = getelementptr inbounds double, ptr %155, i64 %.212421360
  %157 = load double, ptr %156, align 8, !tbaa !10
  %158 = load ptr, ptr %41, align 8, !tbaa !9
  %159 = getelementptr inbounds double, ptr %158, i64 %.212421360
  %160 = load double, ptr %159, align 8, !tbaa !10
  %161 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %160, ptr noundef %1)
  %162 = fsub double %157, %161
  %163 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %162, ptr noundef %1)
  %164 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.012141361, double noundef %163, ptr noundef %1)
  %165 = add nuw nsw i64 %.212421360, 1
  %exitcond1524.not = icmp eq i64 %165, %.012681413
  br i1 %exitcond1524.not, label %166, label %154, !llvm.loop !16

166:                                              ; preds = %154
  %167 = call double @llvm.fmuladd.f64(double %59, double 2.000000e+00, double -1.000000e+00)
  br i1 %.112091411, label %.critedge, label %168

168:                                              ; preds = %166
  %169 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %164, double noundef 0x3D95FD7FE1796496)
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %55, double noundef %57, ptr noundef nonnull %23, double noundef 5.000000e-03, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef %1)
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %55, double noundef %57, ptr noundef nonnull %23, double noundef 0x3F5B4E81B4E81B4F, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  br i1 %169, label %175, label %170

170:                                              ; preds = %168
  %171 = load double, ptr %28, align 8, !tbaa !10
  %172 = load double, ptr %25, align 8, !tbaa !10
  %173 = fdiv double %171, %172
  %174 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %173, double noundef 1.250000e+00)
  br label %175

.critedge:                                        ; preds = %166
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %55, double noundef %57, ptr noundef nonnull %23, double noundef 5.000000e-03, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef %1)
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %55, double noundef %57, ptr noundef nonnull %23, double noundef 0x3F5B4E81B4E81B4F, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  br label %175

175:                                              ; preds = %.critedge, %170, %168
  %176 = phi i1 [ true, %168 ], [ %174, %170 ], [ true, %.critedge ]
  %177 = fadd double %55, 1.000000e-05
  %178 = fadd double %55, -1.000000e-05
  %179 = fadd double %57, 1.000000e-05
  %180 = fadd double %57, -1.000000e-05
  %181 = fadd double %55, 5.000000e-14
  %182 = fadd double %57, -5.000000e-14
  %183 = fsub double %55, %57
  br label %.preheader1356

.preheader1356:                                   ; preds = %175, %446
  %.012261395 = phi i64 [ -1, %175 ], [ %447, %446 ]
  %184 = icmp ne i64 %.012261395, -1
  br label %185

185:                                              ; preds = %.preheader1356, %444
  %.012281393 = phi i64 [ -1, %.preheader1356 ], [ %445, %444 ]
  %186 = icmp ne i64 %.012281393, -1
  %.not1341 = and i1 %184, %186
  %.not1305 = icmp eq i64 %.012261395, %.012281393
  %or.cond = or i1 %.not1305, %.not1341
  br i1 %or.cond, label %187, label %444

187:                                              ; preds = %185
  br i1 %.not1341, label %.preheader1350.preheader, label %.preheader1352.preheader

.preheader1352.preheader:                         ; preds = %187
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %10, i64 noundef %.012681413, i64 noundef %.012261395, double noundef %116, i64 noundef %.012281393, double noundef %167, ptr noundef nonnull %23, ptr noundef %1)
  br label %.preheader1352

.preheader1350.preheader:                         ; preds = %187
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.012681413, i64 noundef %.012261395, double noundef %116, i64 noundef %.012281393, double noundef %167, ptr noundef nonnull %23, ptr noundef %1)
  br label %.preheader1350

.preheader1352:                                   ; preds = %.preheader1352.preheader, %.preheader1352
  %.112151363 = phi double [ %216, %.preheader1352 ], [ 0.000000e+00, %.preheader1352.preheader ]
  %.312431362 = phi i64 [ %217, %.preheader1352 ], [ 0, %.preheader1352.preheader ]
  %188 = load ptr, ptr %41, align 8, !tbaa !9
  %189 = getelementptr inbounds double, ptr %188, i64 %.312431362
  %190 = load double, ptr %189, align 8, !tbaa !10
  %191 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %1)
  %192 = add nsw i64 %191, -2
  %193 = sitofp i64 %192 to double
  %194 = call double @llvm.fmuladd.f64(double %61, double %193, double %190)
  %195 = load ptr, ptr %43, align 8, !tbaa !9
  %196 = getelementptr inbounds double, ptr %195, i64 %.312431362
  %197 = load double, ptr %196, align 8, !tbaa !10
  %198 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %194, ptr noundef %1)
  %199 = fsub double %197, %198
  %200 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %199, ptr noundef %1)
  %201 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.112151363, double noundef %200, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %190, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %194, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull %36, ptr noundef %1)
  %202 = load double, ptr %31, align 8, !tbaa !10
  %203 = load double, ptr %34, align 8, !tbaa !10
  %204 = fsub double %202, %203
  %205 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %204, ptr noundef %1)
  %206 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %201, double noundef %205, ptr noundef %1)
  %207 = load double, ptr %32, align 8, !tbaa !10
  %208 = load double, ptr %35, align 8, !tbaa !10
  %209 = fsub double %207, %208
  %210 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %209, ptr noundef %1)
  %211 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %206, double noundef %210, ptr noundef %1)
  %212 = load double, ptr %33, align 8, !tbaa !10
  %213 = load double, ptr %36, align 8, !tbaa !10
  %214 = fsub double %212, %213
  %215 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %214, ptr noundef %1)
  %216 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %211, double noundef %215, ptr noundef %1)
  %217 = add nuw nsw i64 %.312431362, 1
  %exitcond1525.not = icmp eq i64 %217, %.012681413
  br i1 %exitcond1525.not, label %218, label %.preheader1352, !llvm.loop !17

218:                                              ; preds = %.preheader1352
  %219 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %220 = call double @llvm.fmuladd.f64(double %61, double %219, double %55)
  %221 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %1)
  %222 = add nsw i64 %221, -2
  %223 = sitofp i64 %222 to double
  %224 = call double @llvm.fmuladd.f64(double %61, double %223, double %220)
  %225 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %220, ptr noundef %1)
  %226 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %224, ptr noundef %1)
  %227 = fsub double %225, %226
  %228 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %227, ptr noundef %1)
  %229 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %216, double noundef %228, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %220, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %224, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull %36, ptr noundef %1)
  %230 = load double, ptr %31, align 8, !tbaa !10
  %231 = load double, ptr %34, align 8, !tbaa !10
  %232 = fsub double %230, %231
  %233 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %232, ptr noundef %1)
  %234 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %229, double noundef %233, ptr noundef %1)
  %235 = load double, ptr %32, align 8, !tbaa !10
  %236 = load double, ptr %35, align 8, !tbaa !10
  %237 = fsub double %235, %236
  %238 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %237, ptr noundef %1)
  %239 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %234, double noundef %238, ptr noundef %1)
  %240 = load double, ptr %33, align 8, !tbaa !10
  %241 = load double, ptr %36, align 8, !tbaa !10
  %242 = fsub double %240, %241
  %243 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %242, ptr noundef %1)
  %244 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %239, double noundef %243, ptr noundef %1)
  br label %.loopexit1351

.preheader1350:                                   ; preds = %.preheader1350.preheader, %.preheader1350
  %.212161365 = phi double [ %254, %.preheader1350 ], [ 0.000000e+00, %.preheader1350.preheader ]
  %.412441364 = phi i64 [ %255, %.preheader1350 ], [ 0, %.preheader1350.preheader ]
  %245 = load ptr, ptr %42, align 8, !tbaa !9
  %246 = getelementptr inbounds double, ptr %245, i64 %.412441364
  %247 = load double, ptr %246, align 8, !tbaa !10
  %248 = load ptr, ptr %41, align 8, !tbaa !9
  %249 = getelementptr inbounds double, ptr %248, i64 %.412441364
  %250 = load double, ptr %249, align 8, !tbaa !10
  %251 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %250, ptr noundef %1)
  %252 = fsub double %247, %251
  %253 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %252, ptr noundef %1)
  %254 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.212161365, double noundef %253, ptr noundef %1)
  %255 = add nuw nsw i64 %.412441364, 1
  %exitcond1526.not = icmp eq i64 %255, %.012681413
  br i1 %exitcond1526.not, label %.loopexit1351, label %.preheader1350, !llvm.loop !18

.loopexit1351:                                    ; preds = %.preheader1350, %218
  %.31217 = phi double [ %244, %218 ], [ %254, %.preheader1350 ]
  %256 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.31217, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %4, i1 noundef zeroext %256, ptr noundef nonnull @.str.19, i32 noundef 99726, ptr noundef nonnull @.str.784)
  switch i64 %.012261395, label %.thread1330 [
    i64 0, label %.thread
    i64 1, label %261
    i64 2, label %267
  ]

.thread:                                          ; preds = %.loopexit1351
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %178, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %177, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull %36, ptr noundef %1)
  %257 = load double, ptr %36, align 8, !tbaa !10
  %258 = load double, ptr %33, align 8, !tbaa !10
  %259 = fsub double %257, %258
  %260 = fdiv double %259, 2.000000e-05
  br label %.thread1330.sink.split

261:                                              ; preds = %.loopexit1351
  %262 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %177, ptr noundef %1)
  %263 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %178, ptr noundef %1)
  %264 = fsub double %262, %263
  %265 = fdiv double %264, 2.000000e-05
  %266 = fsub double %116, %265
  br label %.thread1330.sink.split

267:                                              ; preds = %.loopexit1351
  %268 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %177, ptr noundef %1)
  %269 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %55, ptr noundef %1)
  %270 = call double @llvm.fmuladd.f64(double %269, double -2.000000e+00, double %268)
  %271 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %178, ptr noundef %1)
  %272 = fadd double %270, %271
  %273 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef 1.000000e-05, ptr noundef %1)
  %274 = fdiv double %272, %273
  %275 = fsub double %116, %274
  br label %.thread1330.sink.split

.thread1330.sink.split:                           ; preds = %267, %.thread, %261
  %.sink1607 = phi double [ %266, %261 ], [ %260, %.thread ], [ %275, %267 ]
  %276 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.sink1607, ptr noundef %1)
  %277 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef 0.000000e+00, double noundef %276, ptr noundef %1)
  br label %.thread1330

.thread1330:                                      ; preds = %.thread1330.sink.split, %.loopexit1351
  %.6 = phi double [ 0.000000e+00, %.loopexit1351 ], [ %277, %.thread1330.sink.split ]
  switch i64 %.012281393, label %.thread1335 [
    i64 0, label %.thread1332
    i64 1, label %282
    i64 2, label %288
  ]

.thread1332:                                      ; preds = %.thread1330
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %180, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %179, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull %36, ptr noundef %1)
  %278 = load double, ptr %36, align 8, !tbaa !10
  %279 = load double, ptr %33, align 8, !tbaa !10
  %280 = fsub double %278, %279
  %281 = fdiv double %280, 2.000000e-05
  br label %.thread1335.sink.split

282:                                              ; preds = %.thread1330
  %283 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %179, ptr noundef %1)
  %284 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %180, ptr noundef %1)
  %285 = fsub double %283, %284
  %286 = fdiv double %285, 2.000000e-05
  %287 = fsub double %167, %286
  br label %.thread1335.sink.split

288:                                              ; preds = %.thread1330
  %289 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %179, ptr noundef %1)
  %290 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %57, ptr noundef %1)
  %291 = call double @llvm.fmuladd.f64(double %290, double -2.000000e+00, double %289)
  %292 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %180, ptr noundef %1)
  %293 = fadd double %291, %292
  %294 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef 1.000000e-05, ptr noundef %1)
  %295 = fdiv double %293, %294
  %296 = fsub double %167, %295
  br label %.thread1335.sink.split

.thread1335.sink.split:                           ; preds = %288, %.thread1332, %282
  %.sink1608 = phi double [ %287, %282 ], [ %281, %.thread1332 ], [ %296, %288 ]
  %297 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.sink1608, ptr noundef %1)
  %298 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.6, double noundef %297, ptr noundef %1)
  br label %.thread1335

.thread1335:                                      ; preds = %.thread1335.sink.split, %.thread1330
  %.9 = phi double [ %.6, %.thread1330 ], [ %298, %.thread1335.sink.split ]
  br i1 %.not1341, label %315, label %299

299:                                              ; preds = %.thread1335
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %181, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %182, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull %36, ptr noundef %1)
  %300 = load double, ptr %31, align 8, !tbaa !10
  %301 = load double, ptr %34, align 8, !tbaa !10
  %302 = fsub double %300, %301
  %303 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %302, ptr noundef %1)
  %304 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.9, double noundef %303, ptr noundef %1)
  %305 = load double, ptr %32, align 8, !tbaa !10
  %306 = load double, ptr %35, align 8, !tbaa !10
  %307 = fsub double %305, %306
  %308 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %307, ptr noundef %1)
  %309 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %304, double noundef %308, ptr noundef %1)
  %310 = load double, ptr %33, align 8, !tbaa !10
  %311 = load double, ptr %36, align 8, !tbaa !10
  %312 = fsub double %310, %311
  %313 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %312, ptr noundef %1)
  %314 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %309, double noundef %313, ptr noundef %1)
  br label %315

315:                                              ; preds = %.thread1335, %299
  %.10 = phi double [ %314, %299 ], [ %.9, %.thread1335 ]
  %316 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.10, double noundef 1.000000e-03)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %4, i1 noundef zeroext %316, ptr noundef nonnull @.str.19, i32 noundef 99774, ptr noundef nonnull @.str.785)
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %55, double noundef %57, ptr noundef nonnull %23, double noundef 5.000000e-03, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef %1)
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %55, double noundef %57, ptr noundef nonnull %23, double noundef 0x3F5B4E81B4E81B4F, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  %317 = load double, ptr %25, align 8, !tbaa !10
  %318 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %317, double noundef 1.000000e-05)
  br i1 %318, label %319, label %325

319:                                              ; preds = %315
  %320 = load double, ptr %28, align 8, !tbaa !10
  %321 = load double, ptr %25, align 8, !tbaa !10
  %322 = fadd double %321, 1.000000e-05
  %323 = fdiv double %320, %322
  %324 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %323, double noundef 1.250000e+00)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %4, i1 noundef zeroext %324, ptr noundef nonnull @.str.19, i32 noundef 99783, ptr noundef nonnull @.str.786)
  br label %325

325:                                              ; preds = %319, %315
  %326 = load double, ptr %26, align 8, !tbaa !10
  %327 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %326, double noundef 1.000000e-05)
  br i1 %327, label %328, label %334

328:                                              ; preds = %325
  %329 = load double, ptr %29, align 8, !tbaa !10
  %330 = load double, ptr %26, align 8, !tbaa !10
  %331 = fadd double %330, 1.000000e-05
  %332 = fdiv double %329, %331
  %333 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %332, double noundef 1.250000e+00)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %4, i1 noundef zeroext %333, ptr noundef nonnull @.str.19, i32 noundef 99787, ptr noundef nonnull @.str.787)
  br label %334

334:                                              ; preds = %328, %325
  %335 = load double, ptr %27, align 8, !tbaa !10
  %336 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %335, double noundef 1.000000e-05)
  br i1 %336, label %337, label %343

337:                                              ; preds = %334
  %338 = load double, ptr %30, align 8, !tbaa !10
  %339 = load double, ptr %27, align 8, !tbaa !10
  %340 = fadd double %339, 1.000000e-05
  %341 = fdiv double %338, %340
  %342 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %341, double noundef 1.250000e+00)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %4, i1 noundef zeroext %342, ptr noundef nonnull @.str.19, i32 noundef 99791, ptr noundef nonnull @.str.788)
  br label %343

343:                                              ; preds = %337, %334
  %.1628 = select i1 %.not1341, ptr %9, ptr %10
  call void @_ZN11alglib_impl21spline1dgriddiffcubicEPKNS_9ae_vectorES2_lldldPS0_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %.1628, i64 noundef %.012681413, i64 noundef %.012261395, double noundef %116, i64 noundef %.012281393, double noundef %167, ptr noundef nonnull %19, ptr noundef %1)
  %344 = load i64, ptr %19, align 8, !tbaa !19
  %345 = icmp sge i64 %344, %.012681413
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %345, ptr noundef nonnull @.str.477, ptr noundef %1)
  br label %346

346:                                              ; preds = %343, %346
  %.111367 = phi double [ 0.000000e+00, %343 ], [ %356, %346 ]
  %.512451366 = phi i64 [ 0, %343 ], [ %357, %346 ]
  %347 = load ptr, ptr %41, align 8, !tbaa !9
  %348 = getelementptr inbounds double, ptr %347, i64 %.512451366
  %349 = load double, ptr %348, align 8, !tbaa !10
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %349, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  %350 = load double, ptr %32, align 8, !tbaa !10
  %351 = load ptr, ptr %45, align 8, !tbaa !9
  %352 = getelementptr inbounds double, ptr %351, i64 %.512451366
  %353 = load double, ptr %352, align 8, !tbaa !10
  %354 = fsub double %350, %353
  %355 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %354, ptr noundef %1)
  %356 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.111367, double noundef %355, ptr noundef %1)
  %357 = add nuw nsw i64 %.512451366, 1
  %exitcond1527.not = icmp eq i64 %357, %.012681413
  br i1 %exitcond1527.not, label %358, label %346, !llvm.loop !24

358:                                              ; preds = %346
  %.1629 = select i1 %.not1341, ptr %9, ptr %10
  call void @_ZN11alglib_impl22spline1dgriddiff2cubicEPKNS_9ae_vectorES2_lldldPS0_S3_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %.1629, i64 noundef %.012681413, i64 noundef %.012261395, double noundef %116, i64 noundef %.012281393, double noundef %167, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef %1)
  br label %359

359:                                              ; preds = %358, %359
  %.121369 = phi double [ %356, %358 ], [ %376, %359 ]
  %.612461368 = phi i64 [ 0, %358 ], [ %377, %359 ]
  %360 = load ptr, ptr %41, align 8, !tbaa !9
  %361 = getelementptr inbounds double, ptr %360, i64 %.612461368
  %362 = load double, ptr %361, align 8, !tbaa !10
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %362, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  %363 = load double, ptr %32, align 8, !tbaa !10
  %364 = load ptr, ptr %45, align 8, !tbaa !9
  %365 = getelementptr inbounds double, ptr %364, i64 %.612461368
  %366 = load double, ptr %365, align 8, !tbaa !10
  %367 = fsub double %363, %366
  %368 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %367, ptr noundef %1)
  %369 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.121369, double noundef %368, ptr noundef %1)
  %370 = load double, ptr %33, align 8, !tbaa !10
  %371 = load ptr, ptr %46, align 8, !tbaa !9
  %372 = getelementptr inbounds double, ptr %371, i64 %.612461368
  %373 = load double, ptr %372, align 8, !tbaa !10
  %374 = fsub double %370, %373
  %375 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %374, ptr noundef %1)
  %376 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %369, double noundef %375, ptr noundef %1)
  %377 = add nuw nsw i64 %.612461368, 1
  %exitcond1528.not = icmp eq i64 %377, %.012681413
  br i1 %exitcond1528.not, label %378, label %359, !llvm.loop !25

378:                                              ; preds = %359
  %379 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %376, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %4, i1 noundef zeroext %379, ptr noundef nonnull @.str.19, i32 noundef 99826, ptr noundef nonnull @.str.789)
  %380 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %51, ptr noundef %1)
  %381 = add i64 %380, 2
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %21, i64 noundef %381, ptr noundef %1)
  %.not13101370 = icmp slt i64 %380, -1
  br i1 %.not13101370, label %._crit_edge1377.critedge, label %.lr.ph

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

._crit_edge:                                      ; preds = %.lr.ph
  %.1630 = select i1 %.not1341, ptr %9, ptr %10
  call void @_ZN11alglib_impl17spline1dconvcubicEPKNS_9ae_vectorES2_lldldS2_lPS0_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %.1630, i64 noundef %.012681413, i64 noundef %.012261395, double noundef %116, i64 noundef %.012281393, double noundef %167, ptr noundef nonnull %21, i64 noundef %381, ptr noundef nonnull %18, ptr noundef %1)
  br i1 %.not13101370, label %._crit_edge1377, label %.lr.ph1376

.lr.ph1376:                                       ; preds = %._crit_edge, %.lr.ph1376
  %.131374 = phi double [ %398, %.lr.ph1376 ], [ 0.000000e+00, %._crit_edge ]
  %.812481373 = phi i64 [ %399, %.lr.ph1376 ], [ 0, %._crit_edge ]
  %389 = load ptr, ptr %47, align 8, !tbaa !9
  %390 = getelementptr inbounds double, ptr %389, i64 %.812481373
  %391 = load double, ptr %390, align 8, !tbaa !10
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %391, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  %392 = load double, ptr %31, align 8, !tbaa !10
  %393 = load ptr, ptr %48, align 8, !tbaa !9
  %394 = getelementptr inbounds double, ptr %393, i64 %.812481373
  %395 = load double, ptr %394, align 8, !tbaa !10
  %396 = fsub double %392, %395
  %397 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %396, ptr noundef %1)
  %398 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.131374, double noundef %397, ptr noundef %1)
  %399 = add nuw i64 %.812481373, 1
  %exitcond1530 = icmp eq i64 %399, %381
  br i1 %exitcond1530, label %._crit_edge1377, label %.lr.ph1376, !llvm.loop !27

._crit_edge1377.critedge:                         ; preds = %378
  %.1630.c = select i1 %.not1341, ptr %9, ptr %10
  call void @_ZN11alglib_impl17spline1dconvcubicEPKNS_9ae_vectorES2_lldldS2_lPS0_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %.1630.c, i64 noundef %.012681413, i64 noundef %.012261395, double noundef %116, i64 noundef %.012281393, double noundef %167, ptr noundef nonnull %21, i64 noundef %381, ptr noundef nonnull %18, ptr noundef %1)
  br label %._crit_edge1377

._crit_edge1377:                                  ; preds = %.lr.ph1376, %._crit_edge1377.critedge, %._crit_edge
  %.13.lcssa = phi double [ 0.000000e+00, %._crit_edge ], [ 0.000000e+00, %._crit_edge1377.critedge ], [ %398, %.lr.ph1376 ]
  %.1631 = select i1 %.not1341, ptr %9, ptr %10
  call void @_ZN11alglib_impl21spline1dconvdiffcubicEPKNS_9ae_vectorES2_lldldS2_lPS0_S3_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %.1631, i64 noundef %.012681413, i64 noundef %.012261395, double noundef %116, i64 noundef %.012281393, double noundef %167, ptr noundef nonnull %21, i64 noundef %381, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef %1)
  br i1 %.not13101370, label %._crit_edge1384, label %.lr.ph1383

.lr.ph1383:                                       ; preds = %._crit_edge1377, %.lr.ph1383
  %.141381 = phi double [ %416, %.lr.ph1383 ], [ %.13.lcssa, %._crit_edge1377 ]
  %.912491380 = phi i64 [ %417, %.lr.ph1383 ], [ 0, %._crit_edge1377 ]
  %400 = load ptr, ptr %47, align 8, !tbaa !9
  %401 = getelementptr inbounds double, ptr %400, i64 %.912491380
  %402 = load double, ptr %401, align 8, !tbaa !10
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %402, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  %403 = load double, ptr %31, align 8, !tbaa !10
  %404 = load ptr, ptr %48, align 8, !tbaa !9
  %405 = getelementptr inbounds double, ptr %404, i64 %.912491380
  %406 = load double, ptr %405, align 8, !tbaa !10
  %407 = fsub double %403, %406
  %408 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %407, ptr noundef %1)
  %409 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.141381, double noundef %408, ptr noundef %1)
  %410 = load double, ptr %32, align 8, !tbaa !10
  %411 = load ptr, ptr %45, align 8, !tbaa !9
  %412 = getelementptr inbounds double, ptr %411, i64 %.912491380
  %413 = load double, ptr %412, align 8, !tbaa !10
  %414 = fsub double %410, %413
  %415 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %414, ptr noundef %1)
  %416 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %409, double noundef %415, ptr noundef %1)
  %417 = add nuw i64 %.912491380, 1
  %exitcond1531 = icmp eq i64 %417, %381
  br i1 %exitcond1531, label %._crit_edge1384, label %.lr.ph1383, !llvm.loop !28

._crit_edge1384:                                  ; preds = %.lr.ph1383, %._crit_edge1377
  %.14.lcssa = phi double [ %.13.lcssa, %._crit_edge1377 ], [ %416, %.lr.ph1383 ]
  %.1632 = select i1 %.not1341, ptr %9, ptr %10
  call void @_ZN11alglib_impl22spline1dconvdiff2cubicEPKNS_9ae_vectorES2_lldldS2_lPS0_S3_S3_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %.1632, i64 noundef %.012681413, i64 noundef %.012261395, double noundef %116, i64 noundef %.012281393, double noundef %167, ptr noundef nonnull %21, i64 noundef %381, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef %1)
  br i1 %.not13101370, label %._crit_edge1391, label %.lr.ph1390

.lr.ph1390:                                       ; preds = %._crit_edge1384, %.lr.ph1390
  %.151388 = phi double [ %441, %.lr.ph1390 ], [ %.14.lcssa, %._crit_edge1384 ]
  %.1012501387 = phi i64 [ %442, %.lr.ph1390 ], [ 0, %._crit_edge1384 ]
  %418 = load ptr, ptr %47, align 8, !tbaa !9
  %419 = getelementptr inbounds double, ptr %418, i64 %.1012501387
  %420 = load double, ptr %419, align 8, !tbaa !10
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %420, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  %421 = load double, ptr %31, align 8, !tbaa !10
  %422 = load ptr, ptr %48, align 8, !tbaa !9
  %423 = getelementptr inbounds double, ptr %422, i64 %.1012501387
  %424 = load double, ptr %423, align 8, !tbaa !10
  %425 = fsub double %421, %424
  %426 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %425, ptr noundef %1)
  %427 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.151388, double noundef %426, ptr noundef %1)
  %428 = load double, ptr %32, align 8, !tbaa !10
  %429 = load ptr, ptr %45, align 8, !tbaa !9
  %430 = getelementptr inbounds double, ptr %429, i64 %.1012501387
  %431 = load double, ptr %430, align 8, !tbaa !10
  %432 = fsub double %428, %431
  %433 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %432, ptr noundef %1)
  %434 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %427, double noundef %433, ptr noundef %1)
  %435 = load double, ptr %33, align 8, !tbaa !10
  %436 = load ptr, ptr %46, align 8, !tbaa !9
  %437 = getelementptr inbounds double, ptr %436, i64 %.1012501387
  %438 = load double, ptr %437, align 8, !tbaa !10
  %439 = fsub double %435, %438
  %440 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %439, ptr noundef %1)
  %441 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %434, double noundef %440, ptr noundef %1)
  %442 = add nuw i64 %.1012501387, 1
  %exitcond1532 = icmp eq i64 %442, %381
  br i1 %exitcond1532, label %._crit_edge1391, label %.lr.ph1390, !llvm.loop !29

._crit_edge1391:                                  ; preds = %.lr.ph1390, %._crit_edge1384
  %.15.lcssa = phi double [ %.14.lcssa, %._crit_edge1384 ], [ %441, %.lr.ph1390 ]
  %443 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.15.lcssa, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %4, i1 noundef zeroext %443, ptr noundef nonnull @.str.19, i32 noundef 99880, ptr noundef nonnull @.str.790)
  br label %444

444:                                              ; preds = %185, %._crit_edge1391
  %445 = add nsw i64 %.012281393, 1
  %exitcond1533.not = icmp eq i64 %445, 3
  br i1 %exitcond1533.not, label %446, label %185, !llvm.loop !30

446:                                              ; preds = %444
  %447 = add nsw i64 %.012261395, 1
  %exitcond1534.not = icmp eq i64 %447, 3
  br i1 %exitcond1534.not, label %.preheader1357, label %.preheader1356, !llvm.loop !31

.preheader1357:                                   ; preds = %446, %560
  %.21401 = phi i1 [ %.4.in, %560 ], [ %.11412, %446 ]
  %.112271400 = phi i64 [ %561, %560 ], [ -1, %446 ]
  %448 = icmp eq i64 %.112271400, -1
  %449 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %450 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %449, double noundef 5.000000e-01)
  %451 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  br i1 %450, label %452, label %454

452:                                              ; preds = %.preheader1357
  %453 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %451, double noundef 5.000000e-01)
  %. = select i1 %453, double 0.000000e+00, double 1.000000e+00
  br label %454

454:                                              ; preds = %.preheader1357, %452
  %.01213 = phi double [ %., %452 ], [ %451, %.preheader1357 ]
  br i1 %448, label %.preheader1353.preheader, label %.preheader1354.preheader

.preheader1354.preheader:                         ; preds = %454
  call void @_ZN11alglib_impl23spline1dbuildcatmullromEPKNS_9ae_vectorES2_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.012681413, i64 noundef 0, double noundef %.01213, ptr noundef nonnull %23, ptr noundef %1)
  br label %.preheader1354

.preheader1353.preheader:                         ; preds = %454
  call void @_ZN11alglib_impl23spline1dbuildcatmullromEPKNS_9ae_vectorES2_lldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %10, i64 noundef %.012681413, i64 noundef -1, double noundef %.01213, ptr noundef nonnull %23, ptr noundef %1)
  br label %.preheader1353

.preheader1353:                                   ; preds = %.preheader1353.preheader, %.preheader1353
  %.161399 = phi double [ %478, %.preheader1353 ], [ 0.000000e+00, %.preheader1353.preheader ]
  %.1112511398 = phi i64 [ %479, %.preheader1353 ], [ 0, %.preheader1353.preheader ]
  %455 = load ptr, ptr %41, align 8, !tbaa !9
  %456 = getelementptr inbounds double, ptr %455, i64 %.1112511398
  %457 = load double, ptr %456, align 8, !tbaa !10
  %458 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %1)
  %459 = add nsw i64 %458, -2
  %460 = sitofp i64 %459 to double
  %461 = call double @llvm.fmuladd.f64(double %61, double %460, double %457)
  %462 = load ptr, ptr %43, align 8, !tbaa !9
  %463 = getelementptr inbounds double, ptr %462, i64 %.1112511398
  %464 = load double, ptr %463, align 8, !tbaa !10
  %465 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %461, ptr noundef %1)
  %466 = fsub double %464, %465
  %467 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %466, ptr noundef %1)
  %468 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.161399, double noundef %467, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %457, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %461, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull %36, ptr noundef %1)
  %469 = load double, ptr %31, align 8, !tbaa !10
  %470 = load double, ptr %34, align 8, !tbaa !10
  %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 %468, double noundef %472, ptr noundef %1)
  %474 = load double, ptr %32, align 8, !tbaa !10
  %475 = load double, ptr %35, 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 = add nuw nsw i64 %.1112511398, 1
  %exitcond1536.not = icmp eq i64 %479, %.012681413
  br i1 %exitcond1536.not, label %480, label %.preheader1353, !llvm.loop !32

480:                                              ; preds = %.preheader1353
  %481 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %482 = call double @llvm.fmuladd.f64(double %61, double %481, double %55)
  %483 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 5, ptr noundef %1)
  %484 = add nsw i64 %483, -2
  %485 = sitofp i64 %484 to double
  %486 = call double @llvm.fmuladd.f64(double %61, double %485, double %482)
  %487 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %482, ptr noundef %1)
  %488 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %486, ptr noundef %1)
  %489 = fsub double %487, %488
  %490 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %489, ptr noundef %1)
  %491 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %478, double noundef %490, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %482, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %486, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull %36, ptr noundef %1)
  %492 = load double, ptr %31, align 8, !tbaa !10
  %493 = load double, ptr %34, align 8, !tbaa !10
  %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 %491, double noundef %495, ptr noundef %1)
  %497 = load double, ptr %32, align 8, !tbaa !10
  %498 = load double, ptr %35, 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)
  br label %.loopexit1355

.preheader1354:                                   ; preds = %.preheader1354.preheader, %.preheader1354
  %.171397 = phi double [ %511, %.preheader1354 ], [ 0.000000e+00, %.preheader1354.preheader ]
  %.1212521396 = phi i64 [ %512, %.preheader1354 ], [ 0, %.preheader1354.preheader ]
  %502 = load ptr, ptr %42, align 8, !tbaa !9
  %503 = getelementptr inbounds double, ptr %502, i64 %.1212521396
  %504 = load double, ptr %503, align 8, !tbaa !10
  %505 = load ptr, ptr %41, align 8, !tbaa !9
  %506 = getelementptr inbounds double, ptr %505, i64 %.1212521396
  %507 = load double, ptr %506, align 8, !tbaa !10
  %508 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %507, ptr noundef %1)
  %509 = fsub double %504, %508
  %510 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %509, ptr noundef %1)
  %511 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.171397, double noundef %510, ptr noundef %1)
  %512 = add nuw nsw i64 %.1212521396, 1
  %exitcond1535.not = icmp eq i64 %512, %.012681413
  br i1 %exitcond1535.not, label %.loopexit1355, label %.preheader1354, !llvm.loop !33

.loopexit1355:                                    ; preds = %.preheader1354, %480
  %.18 = phi double [ %501, %480 ], [ %511, %.preheader1354 ]
  br i1 %.21401, label %515, label %513

513:                                              ; preds = %.loopexit1355
  %514 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.18, double noundef 0x3D95FD7FE1796496)
  br label %515

515:                                              ; preds = %513, %.loopexit1355
  %516 = phi i1 [ true, %.loopexit1355 ], [ %514, %513 ]
  %517 = icmp eq i64 %.112271400, 0
  br i1 %517, label %.thread1337, label %528

.thread1337:                                      ; preds = %515
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %178, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %177, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull %36, ptr noundef %1)
  %518 = load double, ptr %36, align 8, !tbaa !10
  %519 = load double, ptr %33, align 8, !tbaa !10
  %520 = fsub double %518, %519
  %521 = fdiv double %520, 2.000000e-05
  %522 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %521, ptr noundef %1)
  %523 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef 0.000000e+00, double noundef %522, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %180, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %179, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull %36, ptr noundef %1)
  %524 = load double, ptr %36, align 8, !tbaa !10
  %525 = load double, ptr %33, align 8, !tbaa !10
  %526 = fsub double %524, %525
  %527 = fdiv double %526, 2.000000e-05
  br label %.sink.split

528:                                              ; preds = %515
  br i1 %448, label %529, label %540

529:                                              ; preds = %528
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %181, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %182, ptr noundef nonnull %34, ptr noundef nonnull %35, ptr noundef nonnull %36, ptr noundef %1)
  %530 = load double, ptr %31, align 8, !tbaa !10
  %531 = load double, ptr %34, align 8, !tbaa !10
  %532 = fsub double %530, %531
  %533 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %532, ptr noundef %1)
  %534 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef 0.000000e+00, double noundef %533, ptr noundef %1)
  %535 = load double, ptr %32, align 8, !tbaa !10
  %536 = load double, ptr %35, align 8, !tbaa !10
  %537 = fsub double %535, %536
  br label %.sink.split

.sink.split:                                      ; preds = %529, %.thread1337
  %.sink1615 = phi double [ %527, %.thread1337 ], [ %537, %529 ]
  %.sink1613 = phi double [ %523, %.thread1337 ], [ %534, %529 ]
  %538 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %.sink1615, ptr noundef %1)
  %539 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.sink1613, double noundef %538, ptr noundef %1)
  br label %540

540:                                              ; preds = %.sink.split, %528
  %.20 = phi double [ 0.000000e+00, %528 ], [ %539, %.sink.split ]
  br i1 %516, label %543, label %541

541:                                              ; preds = %540
  %542 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.20, double noundef 1.000000e-03)
  br label %543

543:                                              ; preds = %541, %540
  %544 = phi i1 [ true, %540 ], [ %542, %541 ]
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %55, double noundef %57, ptr noundef nonnull %23, double noundef 5.000000e-03, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef %1)
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %55, double noundef %57, ptr noundef nonnull %23, double noundef 0x3F5B4E81B4E81B4F, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  %545 = load double, ptr %25, align 8, !tbaa !10
  %546 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %545, double noundef 0x3EB0C6F7A0B5ED8D)
  %.not1324 = xor i1 %546, true
  %brmerge1325 = or i1 %544, %.not1324
  %.mux = or i1 %544, %546
  br i1 %brmerge1325, label %552, label %547

547:                                              ; preds = %543
  %548 = load double, ptr %28, align 8, !tbaa !10
  %549 = load double, ptr %25, align 8, !tbaa !10
  %550 = fdiv double %548, %549
  %551 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %550, double noundef 1.250000e+00)
  br label %552

552:                                              ; preds = %543, %547
  %.3.in = phi i1 [ %.mux, %543 ], [ %551, %547 ]
  %553 = load double, ptr %26, align 8, !tbaa !10
  %554 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %553, double noundef 0x3EB0C6F7A0B5ED8D)
  %.not1326 = xor i1 %554, true
  %brmerge1327 = or i1 %.3.in, %.not1326
  %.3.in.mux = or i1 %.3.in, %554
  br i1 %brmerge1327, label %560, label %555

555:                                              ; preds = %552
  %556 = load double, ptr %29, align 8, !tbaa !10
  %557 = load double, ptr %26, align 8, !tbaa !10
  %558 = fdiv double %556, %557
  %559 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %558, double noundef 1.250000e+00)
  br label %560

560:                                              ; preds = %552, %555
  %.4.in = phi i1 [ %.3.in.mux, %552 ], [ %559, %555 ]
  %561 = add nsw i64 %.112271400, 1
  %exitcond1537.not = icmp eq i64 %.112271400, 0
  br i1 %exitcond1537.not, label %562, label %.preheader1357, !llvm.loop !34

562:                                              ; preds = %560
  call void @_ZN11alglib_impl20spline1dbuildhermiteEPKNS_9ae_vectorES2_S2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %14, i64 noundef %.012681413, ptr noundef nonnull %23, ptr noundef %1)
  br label %563

563:                                              ; preds = %562, %563
  %.211403 = phi double [ 0.000000e+00, %562 ], [ %573, %563 ]
  %.1312531402 = phi i64 [ 0, %562 ], [ %574, %563 ]
  %564 = load ptr, ptr %42, align 8, !tbaa !9
  %565 = getelementptr inbounds double, ptr %564, i64 %.1312531402
  %566 = load double, ptr %565, align 8, !tbaa !10
  %567 = load ptr, ptr %41, align 8, !tbaa !9
  %568 = getelementptr inbounds double, ptr %567, i64 %.1312531402
  %569 = load double, ptr %568, align 8, !tbaa !10
  %570 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %569, ptr noundef %1)
  %571 = fsub double %566, %570
  %572 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %571, ptr noundef %1)
  %573 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.211403, double noundef %572, ptr noundef %1)
  %574 = add nuw nsw i64 %.1312531402, 1
  %exitcond1538.not = icmp eq i64 %574, %.012681413
  br i1 %exitcond1538.not, label %575, label %563, !llvm.loop !35

575:                                              ; preds = %563
  %576 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %573, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %5, i1 noundef zeroext %576, ptr noundef nonnull @.str.19, i32 noundef 100024, ptr noundef nonnull @.str.791)
  br label %577

577:                                              ; preds = %575, %577
  %.221405 = phi double [ 0.000000e+00, %575 ], [ %595, %577 ]
  %.1412541404 = phi i64 [ 0, %575 ], [ %596, %577 ]
  %578 = load ptr, ptr %41, align 8, !tbaa !9
  %579 = getelementptr inbounds double, ptr %578, i64 %.1412541404
  %580 = load double, ptr %579, align 8, !tbaa !10
  %581 = fadd double %580, 1.000000e-05
  %582 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %581, ptr noundef %1)
  %583 = load ptr, ptr %41, align 8, !tbaa !9
  %584 = getelementptr inbounds double, ptr %583, i64 %.1412541404
  %585 = load double, ptr %584, align 8, !tbaa !10
  %586 = fadd double %585, -1.000000e-05
  %587 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %586, ptr noundef %1)
  %588 = fsub double %582, %587
  %589 = fdiv double %588, 2.000000e-05
  %590 = load ptr, ptr %44, align 8, !tbaa !9
  %591 = getelementptr inbounds double, ptr %590, i64 %.1412541404
  %592 = load double, ptr %591, align 8, !tbaa !10
  %593 = fsub double %592, %589
  %594 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %593, ptr noundef %1)
  %595 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.221405, double noundef %594, ptr noundef %1)
  %596 = add nuw nsw i64 %.1412541404, 1
  %exitcond1539.not = icmp eq i64 %596, %.012681413
  br i1 %exitcond1539.not, label %597, label %577, !llvm.loop !36

597:                                              ; preds = %577
  %598 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %595, double noundef 1.000000e-03)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %5, i1 noundef zeroext %598, ptr noundef nonnull @.str.19, i32 noundef 100031, ptr noundef nonnull @.str.792)
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %55, double noundef %57, ptr noundef nonnull %23, double noundef 5.000000e-03, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef %1)
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %55, double noundef %57, ptr noundef nonnull %23, double noundef 0x3F5B4E81B4E81B4F, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  %599 = load double, ptr %28, align 8, !tbaa !10
  %600 = load double, ptr %25, align 8, !tbaa !10
  %601 = fadd double %600, 1.000000e-05
  %602 = fdiv double %599, %601
  %603 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %602, double noundef 1.250000e+00)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %5, i1 noundef zeroext %603, ptr noundef nonnull @.str.19, i32 noundef 100034, ptr noundef nonnull @.str.793)
  %604 = load double, ptr %29, align 8, !tbaa !10
  %605 = load double, ptr %26, align 8, !tbaa !10
  %606 = fadd double %605, 1.000000e-05
  %607 = fdiv double %604, %606
  %608 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %607, double noundef 1.250000e+00)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %5, i1 noundef zeroext %608, ptr noundef nonnull @.str.19, i32 noundef 100035, ptr noundef nonnull @.str.794)
  call void @_ZN11alglib_impl18spline1dbuildakimaEPKNS_9ae_vectorES2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.012681413, ptr noundef nonnull %23, ptr noundef %1)
  br label %609

609:                                              ; preds = %597, %609
  %.231407 = phi double [ 0.000000e+00, %597 ], [ %619, %609 ]
  %.1512551406 = phi i64 [ 0, %597 ], [ %620, %609 ]
  %610 = load ptr, ptr %42, align 8, !tbaa !9
  %611 = getelementptr inbounds double, ptr %610, i64 %.1512551406
  %612 = load double, ptr %611, align 8, !tbaa !10
  %613 = load ptr, ptr %41, align 8, !tbaa !9
  %614 = getelementptr inbounds double, ptr %613, i64 %.1512551406
  %615 = load double, ptr %614, align 8, !tbaa !10
  %616 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %615, ptr noundef %1)
  %617 = fsub double %612, %616
  %618 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %617, ptr noundef %1)
  %619 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.231407, double noundef %618, ptr noundef %1)
  %620 = add nuw nsw i64 %.1512551406, 1
  %exitcond1540.not = icmp eq i64 %620, %.012681413
  br i1 %exitcond1540.not, label %621, label %609, !llvm.loop !37

621:                                              ; preds = %609
  %622 = load i8, ptr %6, align 1, !tbaa !5, !range !38, !noundef !39
  %623 = trunc nuw i8 %622 to i1
  br i1 %623, label %626, label %624

624:                                              ; preds = %621
  %625 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %619, double noundef 0x3D95FD7FE1796496)
  br label %626

626:                                              ; preds = %624, %621
  %627 = phi i1 [ true, %621 ], [ %625, %624 ]
  %628 = zext i1 %627 to i8
  store i8 %628, ptr %6, align 1, !tbaa !5
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %55, double noundef %57, ptr noundef nonnull %23, double noundef 5.000000e-03, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef %1)
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %55, double noundef %57, ptr noundef nonnull %23, double noundef 0x3F5B4E81B4E81B4F, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  %629 = load double, ptr %28, align 8, !tbaa !10
  %630 = load double, ptr %25, align 8, !tbaa !10
  %631 = fadd double %630, 1.000000e-05
  %632 = fdiv double %629, %631
  %633 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %632, double noundef 1.250000e+00)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %6, i1 noundef zeroext %633, ptr noundef nonnull @.str.19, i32 noundef 100054, ptr noundef nonnull @.str.795)
  %634 = load double, ptr %29, align 8, !tbaa !10
  %635 = load double, ptr %26, align 8, !tbaa !10
  %636 = fadd double %635, 1.000000e-05
  %637 = fdiv double %634, %636
  %638 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %637, double noundef 1.250000e+00)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %6, i1 noundef zeroext %638, ptr noundef nonnull @.str.19, i32 noundef 100055, ptr noundef nonnull @.str.796)
  call void @_ZN11alglib_impl21spline1dbuildakimamodEPKNS_9ae_vectorES2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.012681413, ptr noundef nonnull %23, ptr noundef %1)
  br label %639

639:                                              ; preds = %626, %639
  %.241409 = phi double [ 0.000000e+00, %626 ], [ %649, %639 ]
  %.1612561408 = phi i64 [ 0, %626 ], [ %650, %639 ]
  %640 = load ptr, ptr %42, align 8, !tbaa !9
  %641 = getelementptr inbounds double, ptr %640, i64 %.1612561408
  %642 = load double, ptr %641, align 8, !tbaa !10
  %643 = load ptr, ptr %41, align 8, !tbaa !9
  %644 = getelementptr inbounds double, ptr %643, i64 %.1612561408
  %645 = load double, ptr %644, align 8, !tbaa !10
  %646 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %645, ptr noundef %1)
  %647 = fsub double %642, %646
  %648 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %647, ptr noundef %1)
  %649 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.241409, double noundef %648, ptr noundef %1)
  %650 = add nuw nsw i64 %.1612561408, 1
  %exitcond1541.not = icmp eq i64 %650, %.012681413
  br i1 %exitcond1541.not, label %651, label %639, !llvm.loop !40

651:                                              ; preds = %639
  %652 = load i8, ptr %6, align 1, !tbaa !5, !range !38, !noundef !39
  %653 = trunc nuw i8 %652 to i1
  br i1 %653, label %656, label %654

654:                                              ; preds = %651
  %655 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %649, double noundef 0x3D95FD7FE1796496)
  br label %656

656:                                              ; preds = %654, %651
  %657 = phi i1 [ true, %651 ], [ %655, %654 ]
  %658 = zext i1 %657 to i8
  store i8 %658, ptr %6, align 1, !tbaa !5
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %55, double noundef %57, ptr noundef nonnull %23, double noundef 5.000000e-03, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef %1)
  call void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(double noundef %55, double noundef %57, ptr noundef nonnull %23, double noundef 0x3F5B4E81B4E81B4F, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30, ptr noundef %1)
  %659 = load double, ptr %28, align 8, !tbaa !10
  %660 = load double, ptr %25, align 8, !tbaa !10
  %661 = fadd double %660, 1.000000e-05
  %662 = fdiv double %659, %661
  %663 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %662, double noundef 1.250000e+00)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %6, i1 noundef zeroext %663, ptr noundef nonnull @.str.19, i32 noundef 100074, ptr noundef nonnull @.str.797)
  %664 = load double, ptr %29, align 8, !tbaa !10
  %665 = load double, ptr %26, align 8, !tbaa !10
  %666 = fadd double %665, 1.000000e-05
  %667 = fdiv double %664, %666
  %668 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %667, double noundef 1.250000e+00)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %6, i1 noundef zeroext %668, ptr noundef nonnull @.str.19, i32 noundef 100075, ptr noundef nonnull @.str.798)
  %669 = add nuw nsw i64 %.012291410, 1
  %exitcond1542.not = icmp eq i64 %669, 21
  br i1 %exitcond1542.not, label %670, label %.peel.next, !llvm.loop !41

670:                                              ; preds = %656
  %671 = add nuw nsw i64 %.012681413, 1
  %exitcond1543.not = icmp eq i64 %671, 11
  br i1 %exitcond1543.not, label %.preheader1349, label %49, !llvm.loop !42

.preheader1347:                                   ; preds = %713
  %672 = getelementptr inbounds i8, ptr %13, i64 56
  br label %.preheader1346

.preheader1349:                                   ; preds = %670, %713
  %indvars.iv = phi i64 [ %indvars.iv.next, %713 ], [ 1, %670 ]
  %.212101426 = phi i1 [ %714, %713 ], [ %176, %670 ]
  %.112691425 = phi i64 [ %715, %713 ], [ 2, %670 ]
  %673 = add nsw i64 %.112691425, -1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.112691425, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.112691425, ptr noundef %1)
  %674 = sitofp i64 %673 to double
  br label %675

675:                                              ; preds = %.preheader1349, %675
  %.1712571416 = phi i64 [ 0, %.preheader1349 ], [ %686, %675 ]
  %676 = uitofp nneg i64 %.1712571416 to double
  %677 = fmul double %676, 2.000000e+00
  %678 = fdiv double %677, %674
  %679 = fadd double %678, -1.000000e+00
  %680 = load ptr, ptr %41, align 8, !tbaa !9
  %681 = getelementptr inbounds double, ptr %680, i64 %.1712571416
  store double %679, ptr %681, align 8, !tbaa !10
  %682 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %683 = call double @llvm.fmuladd.f64(double %682, double 2.000000e+00, double -1.000000e+00)
  %684 = load ptr, ptr %42, align 8, !tbaa !9
  %685 = getelementptr inbounds double, ptr %684, i64 %.1712571416
  store double %683, ptr %685, align 8, !tbaa !10
  %686 = add nuw nsw i64 %.1712571416, 1
  %exitcond1544.not = icmp eq i64 %686, %.112691425
  br i1 %exitcond1544.not, label %.lr.ph1423.preheader, label %675, !llvm.loop !43

.lr.ph1423.preheader:                             ; preds = %675
  call void @_ZN11alglib_impl19spline1dbuildlinearEPKNS_9ae_vectorES2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.112691425, ptr noundef nonnull %23, ptr noundef %1)
  br label %.lr.ph1423

.loopexit1348:                                    ; preds = %694
  %exitcond1546.not = icmp eq i64 %690, %indvars.iv
  br i1 %exitcond1546.not, label %._crit_edge1424, label %.lr.ph1423, !llvm.loop !44

.lr.ph1423:                                       ; preds = %.lr.ph1423.preheader, %.loopexit1348
  %.251421 = phi double [ %709, %.loopexit1348 ], [ 0.000000e+00, %.lr.ph1423.preheader ]
  %.012381420 = phi i64 [ %690, %.loopexit1348 ], [ 0, %.lr.ph1423.preheader ]
  %687 = load ptr, ptr %41, align 8, !tbaa !9
  %688 = getelementptr inbounds double, ptr %687, i64 %.012381420
  %689 = load double, ptr %688, align 8, !tbaa !10
  %690 = add nuw nsw i64 %.012381420, 1
  %691 = getelementptr inbounds double, ptr %687, i64 %690
  %692 = load double, ptr %691, align 8, !tbaa !10
  %693 = fsub double %692, %689
  br label %694

694:                                              ; preds = %.lr.ph1423, %694
  %.261418 = phi double [ %.251421, %.lr.ph1423 ], [ %709, %694 ]
  %.112301417 = phi i64 [ 1, %.lr.ph1423 ], [ %710, %694 ]
  %695 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %696 = call double @llvm.fmuladd.f64(double %693, double %695, double %689)
  %697 = load ptr, ptr %42, align 8, !tbaa !9
  %698 = getelementptr inbounds double, ptr %697, i64 %.012381420
  %699 = load double, ptr %698, align 8, !tbaa !10
  %700 = fsub double %696, %689
  %701 = fdiv double %700, %693
  %702 = getelementptr inbounds double, ptr %697, i64 %690
  %703 = load double, ptr %702, align 8, !tbaa !10
  %704 = fsub double %703, %699
  %705 = call double @llvm.fmuladd.f64(double %701, double %704, double %699)
  %706 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %696, ptr noundef %1)
  %707 = fsub double %706, %705
  %708 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %707, ptr noundef %1)
  %709 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.261418, double noundef %708, ptr noundef %1)
  %710 = add nuw nsw i64 %.112301417, 1
  %exitcond1545.not = icmp eq i64 %710, 21
  br i1 %exitcond1545.not, label %.loopexit1348, label %694, !llvm.loop !45

._crit_edge1424:                                  ; preds = %.loopexit1348
  br i1 %.212101426, label %713, label %711

711:                                              ; preds = %._crit_edge1424
  %712 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %709, double noundef 0x3D95FD7FE1796496)
  br label %713

713:                                              ; preds = %711, %._crit_edge1424
  %714 = phi i1 [ true, %._crit_edge1424 ], [ %712, %711 ]
  %715 = add nuw nsw i64 %.112691425, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond1547.not = icmp eq i64 %indvars.iv.next, 10
  br i1 %exitcond1547.not, label %.preheader1347, label %.preheader1349, !llvm.loop !46

.preheader1346:                                   ; preds = %.preheader1347, %789
  %.212701435 = phi i64 [ 5, %.preheader1347 ], [ %790, %789 ]
  %716 = add nsw i64 %.212701435, -1
  %717 = sitofp i64 %716 to double
  %718 = add nsw i64 %.212701435, -2
  br label %720

.preheader1343:                                   ; preds = %789
  %719 = getelementptr inbounds i8, ptr %40, i64 16
  br label %792

720:                                              ; preds = %.preheader1346, %786
  %721 = phi i1 [ true, %.preheader1346 ], [ false, %786 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.212701435, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.212701435, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %.212701435, ptr noundef %1)
  br label %722

722:                                              ; preds = %720, %722
  %.1812581427 = phi i64 [ 0, %720 ], [ %736, %722 ]
  %723 = uitofp nneg i64 %.1812581427 to double
  %724 = fmul double %723, 2.000000e+00
  %725 = fdiv double %724, %717
  %726 = fadd double %725, -1.000000e+00
  %727 = load ptr, ptr %41, align 8, !tbaa !9
  %728 = getelementptr inbounds double, ptr %727, i64 %.1812581427
  store double %726, ptr %728, align 8, !tbaa !10
  %729 = load ptr, ptr %41, align 8, !tbaa !9
  %730 = getelementptr inbounds double, ptr %729, i64 %.1812581427
  %731 = load double, ptr %730, align 8, !tbaa !10
  %732 = call double @llvm.fmuladd.f64(double %731, double 0x40105616905F83B6, double 4.000000e-01)
  %733 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %732, ptr noundef %1)
  %734 = load ptr, ptr %42, align 8, !tbaa !9
  %735 = getelementptr inbounds double, ptr %734, i64 %.1812581427
  store double %733, ptr %735, align 8, !tbaa !10
  %736 = add nuw nsw i64 %.1812581427, 1
  %exitcond1548.not = icmp eq i64 %736, %.212701435
  br i1 %exitcond1548.not, label %737, label %722, !llvm.loop !47

737:                                              ; preds = %722
  br i1 %721, label %738, label %739

738:                                              ; preds = %737
  call void @_ZN11alglib_impl18spline1dbuildakimaEPKNS_9ae_vectorES2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.212701435, ptr noundef nonnull %23, ptr noundef %1)
  br label %.preheader1678

739:                                              ; preds = %737
  call void @_ZN11alglib_impl21spline1dbuildakimamodEPKNS_9ae_vectorES2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.212701435, ptr noundef nonnull %23, ptr noundef %1)
  br label %.preheader1678

.preheader1678:                                   ; preds = %739, %738
  br label %740

740:                                              ; preds = %.preheader1678, %.loopexit1344
  %.271433 = phi double [ %.31, %.loopexit1344 ], [ 0.000000e+00, %.preheader1678 ]
  %.112391432 = phi i64 [ %780, %.loopexit1344 ], [ 0, %.preheader1678 ]
  %741 = load ptr, ptr %672, align 8, !tbaa !9
  %742 = load ptr, ptr %42, align 8, !tbaa !9
  %743 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %716)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %741, i64 noundef 1, ptr noundef %742, i64 noundef 1, i64 noundef %743)
  %744 = load ptr, ptr %672, align 8, !tbaa !9
  %745 = getelementptr inbounds double, ptr %744, i64 %.112391432
  store double 5.000000e+00, ptr %745, align 8, !tbaa !10
  br i1 %721, label %746, label %747

746:                                              ; preds = %740
  call void @_ZN11alglib_impl18spline1dbuildakimaEPKNS_9ae_vectorES2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %13, i64 noundef %.212701435, ptr noundef nonnull %24, ptr noundef %1)
  br label %748

747:                                              ; preds = %740
  call void @_ZN11alglib_impl21spline1dbuildakimamodEPKNS_9ae_vectorES2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %13, i64 noundef %.212701435, ptr noundef nonnull %24, ptr noundef %1)
  br label %748

748:                                              ; preds = %747, %746
  %749 = icmp ugt i64 %.112391432, 3
  br i1 %749, label %750, label %.loopexit1345

750:                                              ; preds = %748
  %751 = load ptr, ptr %41, align 8, !tbaa !9
  %752 = getelementptr double, ptr %751, i64 %.112391432
  %753 = getelementptr i8, ptr %752, i64 -24
  %754 = load double, ptr %753, align 8, !tbaa !10
  %755 = fadd double %754, 1.000000e+00
  br label %756

756:                                              ; preds = %750, %756
  %.281429 = phi double [ %.271433, %750 ], [ %763, %756 ]
  %.212311428 = phi i64 [ 1, %750 ], [ %764, %756 ]
  %757 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %758 = call double @llvm.fmuladd.f64(double %755, double %757, double -1.000000e+00)
  %759 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %758, ptr noundef %1)
  %760 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %24, double noundef %758, ptr noundef %1)
  %761 = fsub double %759, %760
  %762 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %761, ptr noundef %1)
  %763 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.281429, double noundef %762, ptr noundef %1)
  %764 = add nuw nsw i64 %.212311428, 1
  %exitcond1549.not = icmp eq i64 %764, 21
  br i1 %exitcond1549.not, label %.loopexit1345, label %756, !llvm.loop !48

.loopexit1345:                                    ; preds = %756, %748
  %.29 = phi double [ %.271433, %748 ], [ %763, %756 ]
  %765 = add nuw nsw i64 %.112391432, 3
  %.not = icmp ugt i64 %765, %718
  br i1 %.not, label %.loopexit1344, label %766

766:                                              ; preds = %.loopexit1345
  %767 = load ptr, ptr %41, align 8, !tbaa !9
  %768 = getelementptr inbounds double, ptr %767, i64 %765
  %769 = load double, ptr %768, align 8, !tbaa !10
  %770 = fsub double 1.000000e+00, %769
  br label %771

771:                                              ; preds = %766, %771
  %.301431 = phi double [ %.29, %766 ], [ %778, %771 ]
  %.312321430 = phi i64 [ 1, %766 ], [ %779, %771 ]
  %772 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %773 = call double @llvm.fmuladd.f64(double %770, double %772, double %769)
  %774 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %773, ptr noundef %1)
  %775 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %24, double noundef %773, ptr noundef %1)
  %776 = fsub double %774, %775
  %777 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %776, ptr noundef %1)
  %778 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.301431, double noundef %777, ptr noundef %1)
  %779 = add nuw nsw i64 %.312321430, 1
  %exitcond1550.not = icmp eq i64 %779, 21
  br i1 %exitcond1550.not, label %.loopexit1344, label %771, !llvm.loop !49

.loopexit1344:                                    ; preds = %771, %.loopexit1345
  %.31 = phi double [ %.29, %.loopexit1345 ], [ %778, %771 ]
  %780 = add nuw nsw i64 %.112391432, 1
  %exitcond1551.not = icmp eq i64 %780, %.212701435
  br i1 %exitcond1551.not, label %781, label %740, !llvm.loop !50

781:                                              ; preds = %.loopexit1344
  %782 = load i8, ptr %6, align 1, !tbaa !5, !range !38, !noundef !39
  %783 = trunc nuw i8 %782 to i1
  br i1 %783, label %786, label %784

784:                                              ; preds = %781
  %785 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.31, double noundef 0x3D95FD7FE1796496)
  br label %786

786:                                              ; preds = %784, %781
  %787 = phi i1 [ true, %781 ], [ %785, %784 ]
  %788 = zext i1 %787 to i8
  store i8 %788, ptr %6, align 1, !tbaa !5
  br i1 %721, label %720, label %789, !llvm.loop !51

789:                                              ; preds = %786
  %790 = add nuw nsw i64 %.212701435, 1
  %exitcond1552.not = icmp eq i64 %790, 11
  br i1 %exitcond1552.not, label %.preheader1343, label %.preheader1346, !llvm.loop !52

.preheader1342:                                   ; preds = %883
  %791 = getelementptr inbounds i8, ptr %17, i64 56
  br label %886

792:                                              ; preds = %.preheader1343, %883
  %.012111446 = phi i1 [ false, %.preheader1343 ], [ %847, %883 ]
  %.012121445 = phi i1 [ false, %.preheader1343 ], [ %884, %883 ]
  %.012191444 = phi i1 [ false, %.preheader1343 ], [ %879, %883 ]
  %.312711443 = phi i64 [ 2, %.preheader1343 ], [ %885, %883 ]
  %793 = add nsw i64 %.312711443, -1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.312711443, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.312711443, ptr noundef %1)
  %794 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %795 = fsub double -1.000000e+00, %794
  %796 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %797 = fadd double %796, 1.000000e+00
  %798 = fsub double %797, %795
  %799 = sitofp i64 %793 to double
  br label %800

800:                                              ; preds = %792, %800
  %.1912591436 = phi i64 [ 0, %792 ], [ %814, %800 ]
  %801 = uitofp nneg i64 %.1912591436 to double
  %802 = fmul double %798, %801
  %803 = fdiv double %802, %799
  %804 = fadd double %795, %803
  %805 = load ptr, ptr %41, align 8, !tbaa !9
  %806 = getelementptr inbounds double, ptr %805, i64 %.1912591436
  store double %804, ptr %806, align 8, !tbaa !10
  %807 = load ptr, ptr %41, align 8, !tbaa !9
  %808 = getelementptr inbounds double, ptr %807, i64 %.1912591436
  %809 = load double, ptr %808, align 8, !tbaa !10
  %810 = call double @llvm.fmuladd.f64(double %809, double 0x40105616905F83B6, double 4.000000e-01)
  %811 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %810, ptr noundef %1)
  %812 = load ptr, ptr %42, align 8, !tbaa !9
  %813 = getelementptr inbounds double, ptr %812, i64 %.1912591436
  store double %811, ptr %813, align 8, !tbaa !10
  %814 = add nuw nsw i64 %.1912591436, 1
  %exitcond1553.not = icmp eq i64 %814, %.312711443
  br i1 %exitcond1553.not, label %815, label %800, !llvm.loop !53

815:                                              ; preds = %800
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.312711443, i64 noundef 2, double noundef 0.000000e+00, i64 noundef 2, double noundef 0.000000e+00, ptr noundef nonnull %23, ptr noundef %1)
  br label %816

816:                                              ; preds = %815, %816
  %.321438 = phi double [ 0.000000e+00, %815 ], [ %841, %816 ]
  %.412331437 = phi i64 [ 1, %815 ], [ %842, %816 ]
  %817 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %818 = call double @llvm.fmuladd.f64(double %798, double %817, double %795)
  call void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef nonnull %23, double noundef %818, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33, ptr noundef %1)
  %819 = fadd double %818, -1.000000e-05
  %820 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %819, ptr noundef %1)
  %821 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %818, ptr noundef %1)
  %822 = fadd double %818, 1.000000e-05
  %823 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %822, ptr noundef %1)
  %824 = load double, ptr %31, align 8, !tbaa !10
  %825 = fsub double %824, %821
  %826 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %825, ptr noundef %1)
  %827 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.321438, double noundef %826, ptr noundef %1)
  %828 = load double, ptr %32, align 8, !tbaa !10
  %829 = fsub double %823, %820
  %830 = fdiv double %829, 2.000000e-05
  %831 = fsub double %828, %830
  %832 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %831, ptr noundef %1)
  %833 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %827, double noundef %832, ptr noundef %1)
  %834 = load double, ptr %33, align 8, !tbaa !10
  %835 = call double @llvm.fmuladd.f64(double %821, double -2.000000e+00, double %823)
  %836 = fadd double %820, %835
  %837 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef 1.000000e-05, ptr noundef %1)
  %838 = fdiv double %836, %837
  %839 = fsub double %834, %838
  %840 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %839, ptr noundef %1)
  %841 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %833, double noundef %840, ptr noundef %1)
  %842 = add nuw nsw i64 %.412331437, 1
  %exitcond1554.not = icmp eq i64 %842, 21
  br i1 %exitcond1554.not, label %843, label %816, !llvm.loop !54

843:                                              ; preds = %816
  br i1 %.012111446, label %846, label %844

844:                                              ; preds = %843
  %845 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %841, double noundef 1.000000e-03)
  br label %846

846:                                              ; preds = %844, %843
  %847 = phi i1 [ true, %843 ], [ %845, %844 ]
  call void @_ZL30testspline1dunit_unsetspline1dPN11alglib_impl19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %24, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1dcopyEPKNS_19spline1dinterpolantEPS0_PNS_8ae_stateE(ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef %1)
  br label %848

848:                                              ; preds = %846, %848
  %.331440 = phi double [ 0.000000e+00, %846 ], [ %855, %848 ]
  %.512341439 = phi i64 [ 1, %846 ], [ %856, %848 ]
  %849 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %850 = call double @llvm.fmuladd.f64(double %798, double %849, double %795)
  %851 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %850, ptr noundef %1)
  %852 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %24, double noundef %850, ptr noundef %1)
  %853 = fsub double %851, %852
  %854 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %853, ptr noundef %1)
  %855 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.331440, double noundef %854, ptr noundef %1)
  %856 = add nuw nsw i64 %.512341439, 1
  %exitcond1555.not = icmp eq i64 %856, 21
  br i1 %exitcond1555.not, label %857, label %848, !llvm.loop !55

857:                                              ; preds = %848
  br i1 %.012191444, label %860, label %858

858:                                              ; preds = %857
  %859 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %855, double noundef 0x3D95FD7FE1796496)
  br label %860

860:                                              ; preds = %858, %857
  %861 = phi i1 [ true, %857 ], [ %859, %858 ]
  call void @_ZL30testspline1dunit_unsetspline1dPN11alglib_impl19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %24, ptr noundef %1)
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %38) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %39) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %40) #7
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %39)
  call void @_ZN11alglib_impl18ae_serializer_initEPNS_13ae_serializerE(ptr noundef nonnull %38)
  call void @_ZN11alglib_impl25ae_serializer_alloc_startEPNS_13ae_serializerE(ptr noundef nonnull %38)
  call void @_ZN11alglib_impl13spline1dallocEPNS_13ae_serializerEPKNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %38, ptr noundef nonnull %23, ptr noundef %1)
  %862 = call noundef i64 @_ZN11alglib_impl28ae_serializer_get_alloc_sizeEPNS_13ae_serializerE(ptr noundef nonnull %38)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %40, i8 0, i64 32, i1 false)
  %863 = add nsw i64 %862, 1
  call void @_ZN11alglib_impl10ae_db_initEPNS_12ae_dyn_blockElPNS_8ae_stateEb(ptr noundef nonnull %40, i64 noundef %863, ptr noundef %1, i1 noundef zeroext true)
  %864 = load volatile ptr, ptr %719, align 8, !tbaa !56
  call void @_ZN11alglib_impl24ae_serializer_sstart_strEPNS_13ae_serializerEPc(ptr noundef nonnull %38, ptr noundef %864)
  call void @_ZN11alglib_impl17spline1dserializeEPNS_13ae_serializerEPKNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %38, ptr noundef nonnull %23, ptr noundef %1)
  call void @_ZN11alglib_impl18ae_serializer_stopEPNS_13ae_serializerEPNS_8ae_stateE(ptr noundef nonnull %38, ptr noundef %1)
  call void @_ZN11alglib_impl19ae_serializer_clearEPNS_13ae_serializerE(ptr noundef nonnull %38)
  call void @_ZN11alglib_impl18ae_serializer_initEPNS_13ae_serializerE(ptr noundef nonnull %38)
  %865 = load volatile ptr, ptr %719, align 8, !tbaa !56
  call void @_ZN11alglib_impl24ae_serializer_ustart_strEPNS_13ae_serializerEPKc(ptr noundef nonnull %38, ptr noundef %865)
  call void @_ZN11alglib_impl19spline1dunserializeEPNS_13ae_serializerEPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %38, ptr noundef nonnull %24, ptr noundef %1)
  call void @_ZN11alglib_impl18ae_serializer_stopEPNS_13ae_serializerEPNS_8ae_stateE(ptr noundef nonnull %38, ptr noundef %1)
  call void @_ZN11alglib_impl19ae_serializer_clearEPNS_13ae_serializerE(ptr noundef nonnull %38)
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %40) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %39) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %38) #7
  br label %866

866:                                              ; preds = %860, %866
  %.341442 = phi double [ 0.000000e+00, %860 ], [ %873, %866 ]
  %.612351441 = phi i64 [ 1, %860 ], [ %874, %866 ]
  %867 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %868 = call double @llvm.fmuladd.f64(double %798, double %867, double %795)
  %869 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %868, ptr noundef %1)
  %870 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %24, double noundef %868, ptr noundef %1)
  %871 = fsub double %869, %870
  %872 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %871, ptr noundef %1)
  %873 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.341442, double noundef %872, ptr noundef %1)
  %874 = add nuw nsw i64 %.612351441, 1
  %exitcond1556.not = icmp eq i64 %874, 21
  br i1 %exitcond1556.not, label %875, label %866, !llvm.loop !57

875:                                              ; preds = %866
  br i1 %861, label %878, label %876

876:                                              ; preds = %875
  %877 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %873, double noundef 0x3D95FD7FE1796496)
  br label %878

878:                                              ; preds = %876, %875
  %879 = phi i1 [ true, %875 ], [ %877, %876 ]
  br i1 %.012121445, label %883, label %880

880:                                              ; preds = %878
  %881 = call noundef zeroext i1 @_ZL27testspline1dunit_testunpackPKN11alglib_impl19spline1dinterpolantEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %23, ptr noundef nonnull %8, ptr noundef %1)
  %882 = xor i1 %881, true
  br label %883

883:                                              ; preds = %880, %878
  %884 = phi i1 [ true, %878 ], [ %882, %880 ]
  %885 = add nuw nsw i64 %.312711443, 1
  %exitcond1557.not = icmp eq i64 %885, 11
  br i1 %exitcond1557.not, label %.preheader1342, label %792, !llvm.loop !58

886:                                              ; preds = %.preheader1342, %._crit_edge1476
  %.012201479 = phi i8 [ 0, %.preheader1342 ], [ %.11221.lcssa, %._crit_edge1476 ]
  %.412721478 = phi i64 [ 2, %.preheader1342 ], [ %1011, %._crit_edge1476 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.412721478, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.412721478, ptr noundef %1)
  %887 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %888 = fsub double -1.000000e+00, %887
  %889 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %890 = fadd double %889, 1.000000e+00
  %891 = add nsw i64 %.412721478, -1
  %892 = fsub double %890, %888
  %893 = sitofp i64 %891 to double
  br label %894

894:                                              ; preds = %886, %894
  %.2012601447 = phi i64 [ 0, %886 ], [ %908, %894 ]
  %895 = uitofp nneg i64 %.2012601447 to double
  %896 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %897 = call double @llvm.fmuladd.f64(double %896, double 2.000000e-01, double %895)
  %898 = fadd double %897, -1.000000e-01
  %899 = fmul double %892, %898
  %900 = fdiv double %899, %893
  %901 = fadd double %888, %900
  %902 = load ptr, ptr %41, align 8, !tbaa !9
  %903 = getelementptr inbounds double, ptr %902, i64 %.2012601447
  store double %901, ptr %903, align 8, !tbaa !10
  %904 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %905 = call double @llvm.fmuladd.f64(double %904, double 2.000000e+00, double -1.000000e+00)
  %906 = load ptr, ptr %42, align 8, !tbaa !9
  %907 = getelementptr inbounds double, ptr %906, i64 %.2012601447
  store double %905, ptr %907, align 8, !tbaa !10
  %908 = add nuw nsw i64 %.2012601447, 1
  %exitcond1558.not = icmp eq i64 %908, %.412721478
  br i1 %exitcond1558.not, label %909, label %894, !llvm.loop !59

909:                                              ; preds = %894
  %910 = mul nuw nsw i64 %.412721478, 5
  %911 = add nuw nsw i64 %910, 2
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %911, ptr noundef %1)
  %912 = load i64, ptr %17, align 8, !tbaa !19
  %.not.not12871448 = icmp sgt i64 %912, 0
  br i1 %.not.not12871448, label %.lr.ph1451, label %._crit_edge1452

.lr.ph1451:                                       ; preds = %909
  %913 = add nsw i64 %912, -3
  %914 = sitofp i64 %913 to double
  %xtraiter = and i64 %912, 1
  %915 = icmp eq i64 %912, 1
  br i1 %915, label %._crit_edge1452.loopexit.unr-lcssa, label %.lr.ph1451.new

.lr.ph1451.new:                                   ; preds = %.lr.ph1451
  %unroll_iter = and i64 %912, 9223372036854775806
  br label %916

916:                                              ; preds = %916, %.lr.ph1451.new
  %.2112611449 = phi i64 [ 0, %.lr.ph1451.new ], [ %931, %916 ]
  %niter = phi i64 [ 0, %.lr.ph1451.new ], [ %niter.next.1, %916 ]
  %917 = add nsw i64 %.2112611449, -1
  %918 = sitofp i64 %917 to double
  %919 = fmul double %892, %918
  %920 = fdiv double %919, %914
  %921 = fadd double %888, %920
  %922 = load ptr, ptr %791, align 8, !tbaa !9
  %923 = getelementptr inbounds double, ptr %922, i64 %.2112611449
  store double %921, ptr %923, align 8, !tbaa !10
  %924 = or disjoint i64 %.2112611449, 1
  %925 = uitofp nneg i64 %.2112611449 to double
  %926 = fmul double %892, %925
  %927 = fdiv double %926, %914
  %928 = fadd double %888, %927
  %929 = load ptr, ptr %791, align 8, !tbaa !9
  %930 = getelementptr inbounds double, ptr %929, i64 %924
  store double %928, ptr %930, align 8, !tbaa !10
  %931 = add nuw nsw i64 %.2112611449, 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_edge1452.loopexit.unr-lcssa, label %916, !llvm.loop !60

._crit_edge1452.loopexit.unr-lcssa:               ; preds = %916, %.lr.ph1451
  %.2112611449.unr = phi i64 [ 0, %.lr.ph1451 ], [ %931, %916 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge1452, label %._crit_edge1452.loopexit.epilog-lcssa

._crit_edge1452.loopexit.epilog-lcssa:            ; preds = %._crit_edge1452.loopexit.unr-lcssa
  %932 = add nsw i64 %.2112611449.unr, -1
  %933 = sitofp i64 %932 to double
  %934 = fmul double %892, %933
  %935 = fdiv double %934, %914
  %936 = fadd double %888, %935
  %937 = load ptr, ptr %791, align 8, !tbaa !9
  %938 = getelementptr inbounds double, ptr %937, i64 %.2112611449.unr
  store double %936, ptr %938, align 8, !tbaa !10
  br label %._crit_edge1452

._crit_edge1452:                                  ; preds = %._crit_edge1452.loopexit.epilog-lcssa, %._crit_edge1452.loopexit.unr-lcssa, %909
  store i64 0, ptr %37, align 8, !tbaa !61
  %939 = call noundef zeroext i1 @_ZL36testspline1dunit_enumerateallsplinesPKN11alglib_impl9ae_vectorES2_lPlPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.412721478, ptr noundef nonnull %37, ptr noundef nonnull %23, ptr noundef %1)
  br i1 %939, label %.lr.ph1475, label %._crit_edge1476

.loopexit:                                        ; preds = %1006, %._crit_edge1465
  %.41224.lcssa = phi i8 [ %.31223.lcssa, %._crit_edge1465 ], [ %1009, %1006 ]
  %940 = call noundef zeroext i1 @_ZL36testspline1dunit_enumerateallsplinesPKN11alglib_impl9ae_vectorES2_lPlPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.412721478, ptr noundef nonnull %37, ptr noundef nonnull %23, ptr noundef %1)
  br i1 %940, label %.lr.ph1475, label %._crit_edge1476, !llvm.loop !62

.lr.ph1475:                                       ; preds = %._crit_edge1452, %.loopexit
  %.112211473 = phi i8 [ %.41224.lcssa, %.loopexit ], [ %.012201479, %._crit_edge1452 ]
  %941 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %942 = call double @llvm.fmuladd.f64(double %941, double 4.000000e+00, double -2.000000e+00)
  %943 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %944 = call double @llvm.fmuladd.f64(double %943, double 2.000000e+00, double -1.000000e+00)
  call void @_ZN11alglib_impl12spline1dcopyEPKNS_19spline1dinterpolantEPS0_PNS_8ae_stateE(ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef %1)
  call void @_ZN11alglib_impl17spline1dlintransxEPNS_19spline1dinterpolantEddPNS_8ae_stateE(ptr noundef nonnull %24, double noundef %942, double noundef %944, ptr noundef %1)
  %945 = load i64, ptr %17, align 8, !tbaa !19
  %.not.not12881453 = icmp sgt i64 %945, 0
  br i1 %.not.not12881453, label %.lr.ph1457, label %._crit_edge1458

.lr.ph1457:                                       ; preds = %.lr.ph1475, %962
  %946 = phi i64 [ %963, %962 ], [ %945, %.lr.ph1475 ]
  %.212221455 = phi i8 [ %965, %962 ], [ %.112211473, %.lr.ph1475 ]
  %.2212621454 = phi i64 [ %966, %962 ], [ 0, %.lr.ph1475 ]
  %947 = trunc nuw i8 %.212221455 to i1
  br i1 %947, label %962, label %948

948:                                              ; preds = %.lr.ph1457
  %949 = load ptr, ptr %791, align 8, !tbaa !9
  %950 = getelementptr inbounds double, ptr %949, i64 %.2212621454
  %951 = load double, ptr %950, align 8, !tbaa !10
  %952 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %951, ptr noundef %1)
  %953 = load ptr, ptr %791, align 8, !tbaa !9
  %954 = getelementptr inbounds double, ptr %953, i64 %.2212621454
  %955 = load double, ptr %954, align 8, !tbaa !10
  %956 = fsub double %955, %944
  %957 = fdiv double %956, %942
  %958 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %24, double noundef %957, ptr noundef %1)
  %959 = fsub double %952, %958
  %960 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %959, ptr noundef %1)
  %961 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %960, double noundef 0x3D95FD7FE1796496)
  %.pre1572 = load i64, ptr %17, align 8, !tbaa !19
  br label %962

962:                                              ; preds = %948, %.lr.ph1457
  %963 = phi i64 [ %946, %.lr.ph1457 ], [ %.pre1572, %948 ]
  %964 = phi i1 [ true, %.lr.ph1457 ], [ %961, %948 ]
  %965 = zext i1 %964 to i8
  %966 = add nuw nsw i64 %.2212621454, 1
  %.not.not1288 = icmp slt i64 %966, %963
  br i1 %.not.not1288, label %.lr.ph1457, label %._crit_edge1458, !llvm.loop !63

._crit_edge1458:                                  ; preds = %962, %.lr.ph1475
  %.21222.lcssa = phi i8 [ %.112211473, %.lr.ph1475 ], [ %965, %962 ]
  %967 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %968 = call double @llvm.fmuladd.f64(double %967, double 2.000000e+00, double -1.000000e+00)
  call void @_ZN11alglib_impl12spline1dcopyEPKNS_19spline1dinterpolantEPS0_PNS_8ae_stateE(ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef %1)
  call void @_ZN11alglib_impl17spline1dlintransxEPNS_19spline1dinterpolantEddPNS_8ae_stateE(ptr noundef nonnull %24, double noundef 0.000000e+00, double noundef %968, ptr noundef %1)
  %969 = load i64, ptr %17, align 8, !tbaa !19
  %.not.not12891460 = icmp sgt i64 %969, 0
  br i1 %.not.not12891460, label %.lr.ph1464, label %._crit_edge1465

.lr.ph1464:                                       ; preds = %._crit_edge1458, %981
  %970 = phi i64 [ %982, %981 ], [ %969, %._crit_edge1458 ]
  %.312231462 = phi i8 [ %984, %981 ], [ %.21222.lcssa, %._crit_edge1458 ]
  %.2312631461 = phi i64 [ %985, %981 ], [ 0, %._crit_edge1458 ]
  %971 = trunc nuw i8 %.312231462 to i1
  br i1 %971, label %981, label %972

972:                                              ; preds = %.lr.ph1464
  %973 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %968, ptr noundef %1)
  %974 = load ptr, ptr %791, align 8, !tbaa !9
  %975 = getelementptr inbounds double, ptr %974, i64 %.2312631461
  %976 = load double, ptr %975, align 8, !tbaa !10
  %977 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %24, double noundef %976, ptr noundef %1)
  %978 = fsub double %973, %977
  %979 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %978, ptr noundef %1)
  %980 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %979, double noundef 0x3D95FD7FE1796496)
  %.pre1573 = load i64, ptr %17, align 8, !tbaa !19
  br label %981

981:                                              ; preds = %972, %.lr.ph1464
  %982 = phi i64 [ %970, %.lr.ph1464 ], [ %.pre1573, %972 ]
  %983 = phi i1 [ true, %.lr.ph1464 ], [ %980, %972 ]
  %984 = zext i1 %983 to i8
  %985 = add nuw nsw i64 %.2312631461, 1
  %.not.not1289 = icmp slt i64 %985, %982
  br i1 %.not.not1289, label %.lr.ph1464, label %._crit_edge1465, !llvm.loop !64

._crit_edge1465:                                  ; preds = %981, %._crit_edge1458
  %.31223.lcssa = phi i8 [ %.21222.lcssa, %._crit_edge1458 ], [ %984, %981 ]
  %986 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %987 = call double @llvm.fmuladd.f64(double %986, double 2.000000e+00, double -1.000000e+00)
  %988 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %989 = call double @llvm.fmuladd.f64(double %988, double 2.000000e+00, double -1.000000e+00)
  call void @_ZN11alglib_impl12spline1dcopyEPKNS_19spline1dinterpolantEPS0_PNS_8ae_stateE(ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef %1)
  call void @_ZN11alglib_impl17spline1dlintransyEPNS_19spline1dinterpolantEddPNS_8ae_stateE(ptr noundef nonnull %24, double noundef %987, double noundef %989, ptr noundef %1)
  %990 = load i64, ptr %17, align 8, !tbaa !19
  %.not.not12901467 = icmp sgt i64 %990, 0
  br i1 %.not.not12901467, label %.lr.ph1471, label %.loopexit

.lr.ph1471:                                       ; preds = %._crit_edge1465, %1006
  %991 = phi i64 [ %1007, %1006 ], [ %990, %._crit_edge1465 ]
  %.412241469 = phi i8 [ %1009, %1006 ], [ %.31223.lcssa, %._crit_edge1465 ]
  %.2412641468 = phi i64 [ %1010, %1006 ], [ 0, %._crit_edge1465 ]
  %992 = trunc nuw i8 %.412241469 to i1
  br i1 %992, label %1006, label %993

993:                                              ; preds = %.lr.ph1471
  %994 = load ptr, ptr %791, align 8, !tbaa !9
  %995 = getelementptr inbounds double, ptr %994, i64 %.2412641468
  %996 = load double, ptr %995, align 8, !tbaa !10
  %997 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %996, ptr noundef %1)
  %998 = call double @llvm.fmuladd.f64(double %987, double %997, double %989)
  %999 = load ptr, ptr %791, align 8, !tbaa !9
  %1000 = getelementptr inbounds double, ptr %999, i64 %.2412641468
  %1001 = load double, ptr %1000, align 8, !tbaa !10
  %1002 = call noundef double @_ZN11alglib_impl12spline1dcalcEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %24, double noundef %1001, ptr noundef %1)
  %1003 = fsub double %998, %1002
  %1004 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1003, ptr noundef %1)
  %1005 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1004, double noundef 0x3D95FD7FE1796496)
  %.pre1574 = load i64, ptr %17, align 8, !tbaa !19
  br label %1006

1006:                                             ; preds = %993, %.lr.ph1471
  %1007 = phi i64 [ %991, %.lr.ph1471 ], [ %.pre1574, %993 ]
  %1008 = phi i1 [ true, %.lr.ph1471 ], [ %1005, %993 ]
  %1009 = zext i1 %1008 to i8
  %1010 = add nuw nsw i64 %.2412641468, 1
  %.not.not1290 = icmp slt i64 %1010, %1007
  br i1 %.not.not1290, label %.lr.ph1471, label %.loopexit, !llvm.loop !65

._crit_edge1476:                                  ; preds = %.loopexit, %._crit_edge1452
  %.11221.lcssa = phi i8 [ %.012201479, %._crit_edge1452 ], [ %.41224.lcssa, %.loopexit ]
  %1011 = add nuw nsw i64 %.412721478, 1
  %exitcond1560.not = icmp eq i64 %1011, 11
  br i1 %exitcond1560.not, label %.preheader, label %886, !llvm.loop !66

.preheader:                                       ; preds = %._crit_edge1476, %1069
  %.351484 = phi double [ %1067, %1069 ], [ 0.000000e+00, %._crit_edge1476 ]
  %.512731483 = phi i64 [ %1070, %1069 ], [ 20, %._crit_edge1476 ]
  %1012 = add nsw i64 %.512731483, -1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.512731483, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.512731483, ptr noundef %1)
  %1013 = sitofp i64 %1012 to double
  br label %1014

1014:                                             ; preds = %.preheader, %1040
  %.361482 = phi double [ %.351484, %.preheader ], [ %1067, %1040 ]
  %.712361481 = phi i64 [ 1, %.preheader ], [ %1068, %1040 ]
  %1015 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1016 = call double @llvm.fmuladd.f64(double %1015, double -2.000000e-01, double -1.000000e+00)
  %1017 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1018 = call double @llvm.fmuladd.f64(double %1017, double 2.000000e-01, double 1.000000e+00)
  %1019 = fsub double %1018, %1016
  br label %1020

1020:                                             ; preds = %1014, %1020
  %.2512651480 = phi i64 [ 0, %1014 ], [ %1039, %1020 ]
  %1021 = uitofp nneg i64 %.2512651480 to double
  %1022 = fmul double %1019, %1021
  %1023 = fdiv double %1022, %1013
  %1024 = fadd double %1016, %1023
  %1025 = load ptr, ptr %41, align 8, !tbaa !9
  %1026 = getelementptr inbounds double, ptr %1025, i64 %.2512651480
  store double %1024, ptr %1026, align 8, !tbaa !10
  %1027 = load ptr, ptr %41, align 8, !tbaa !9
  %1028 = getelementptr inbounds double, ptr %1027, i64 %.2512651480
  %1029 = load double, ptr %1028, align 8, !tbaa !10
  %1030 = call double @llvm.fmuladd.f64(double %1029, double 0x400921FB54442D18, double 4.000000e-01)
  %1031 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %1030, ptr noundef %1)
  %1032 = load ptr, ptr %41, align 8, !tbaa !9
  %1033 = getelementptr inbounds double, ptr %1032, i64 %.2512651480
  %1034 = load double, ptr %1033, align 8, !tbaa !10
  %1035 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %1034, ptr noundef %1)
  %1036 = fadd double %1031, %1035
  %1037 = load ptr, ptr %42, align 8, !tbaa !9
  %1038 = getelementptr inbounds double, ptr %1037, i64 %.2512651480
  store double %1036, ptr %1038, align 8, !tbaa !10
  %1039 = add nuw nsw i64 %.2512651480, 1
  %exitcond1561.not = icmp eq i64 %1039, %.512731483
  br i1 %exitcond1561.not, label %1040, label %1020, !llvm.loop !67

1040:                                             ; preds = %1020
  %1041 = call double @llvm.fmuladd.f64(double %1016, double 0x400921FB54442D18, double 4.000000e-01)
  %1042 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %1041, ptr noundef %1)
  %1043 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %1016, ptr noundef %1)
  %1044 = call double @llvm.fmuladd.f64(double %1042, double 0x400921FB54442D18, double %1043)
  %1045 = call double @llvm.fmuladd.f64(double %1018, double 0x400921FB54442D18, double 4.000000e-01)
  %1046 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %1045, ptr noundef %1)
  %1047 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %1018, ptr noundef %1)
  %1048 = call double @llvm.fmuladd.f64(double %1046, double 0x400921FB54442D18, double %1047)
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.512731483, i64 noundef 1, double noundef %1044, i64 noundef 1, double noundef %1048, ptr noundef nonnull %23, ptr noundef %1)
  %1049 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1050 = call double @llvm.fmuladd.f64(double %1019, double %1049, double %1016)
  %1051 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %1041, ptr noundef %1)
  %1052 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %1016, ptr noundef %1)
  %1053 = call double @llvm.fmuladd.f64(double %1050, double 0x400921FB54442D18, double 4.000000e-01)
  %1054 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %1053, ptr noundef %1)
  %1055 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %1050, ptr noundef %1)
  %1056 = insertelement <2 x double> poison, double %1054, i64 0
  %1057 = insertelement <2 x double> %1056, double %1051, i64 1
  %1058 = fdiv <2 x double> %1057, <double 0x400921FB54442D18, double 0x400921FB54442D18>
  %1059 = insertelement <2 x double> poison, double %1055, i64 0
  %1060 = insertelement <2 x double> %1059, double %1052, i64 1
  %1061 = fsub <2 x double> %1060, %1058
  %shift = shufflevector <2 x double> %1061, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %1062 = fsub <2 x double> %1061, %shift
  %1063 = extractelement <2 x double> %1062, i64 0
  %1064 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %1050, ptr noundef %1)
  %1065 = fsub double %1063, %1064
  %1066 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1065, ptr noundef %1)
  %1067 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.361482, double noundef %1066, ptr noundef %1)
  %1068 = add nuw nsw i64 %.712361481, 1
  %exitcond1562.not = icmp eq i64 %1068, 21
  br i1 %exitcond1562.not, label %1069, label %1014, !llvm.loop !68

1069:                                             ; preds = %1040
  %1070 = add nuw nsw i64 %.512731483, 1
  %exitcond1563.not = icmp eq i64 %1070, 36
  br i1 %exitcond1563.not, label %1071, label %.preheader, !llvm.loop !69

1071:                                             ; preds = %1069
  %1072 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1067, double noundef 1.000000e-03)
  %1073 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1074 = call double @llvm.fmuladd.f64(double %1073, double 2.000000e+00, double -1.000000e+00)
  %1075 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1076 = call double @llvm.fmuladd.f64(double %1075, double 2.000000e+00, double -1.000000e+00)
  %1077 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1078 = call double @llvm.fmuladd.f64(double %1077, double 2.000000e+00, double -1.000000e+00)
  %1079 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1080 = fsub double -5.000000e-01, %1079
  %1081 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1082 = fadd double %1081, 5.000000e-01
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef 2, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef 2, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef 2, ptr noundef %1)
  %1083 = load ptr, ptr %41, align 8, !tbaa !9
  store double %1080, ptr %1083, align 8, !tbaa !10
  %1084 = call double @llvm.fmuladd.f64(double %1076, double %1080, double %1074)
  %1085 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1080, ptr noundef %1)
  %1086 = call double @llvm.fmuladd.f64(double %1078, double %1085, double %1084)
  %1087 = load ptr, ptr %42, align 8, !tbaa !9
  store double %1086, ptr %1087, align 8, !tbaa !10
  %1088 = fmul double %1078, 2.000000e+00
  %1089 = call double @llvm.fmuladd.f64(double %1088, double %1080, double %1076)
  %1090 = load ptr, ptr %44, align 8, !tbaa !9
  store double %1089, ptr %1090, align 8, !tbaa !10
  %1091 = load ptr, ptr %41, align 8, !tbaa !9
  %1092 = getelementptr inbounds i8, ptr %1091, i64 8
  store double %1082, ptr %1092, align 8, !tbaa !10
  %1093 = call double @llvm.fmuladd.f64(double %1076, double %1082, double %1074)
  %1094 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1082, ptr noundef %1)
  %1095 = call double @llvm.fmuladd.f64(double %1078, double %1094, double %1093)
  %1096 = load ptr, ptr %42, align 8, !tbaa !9
  %1097 = getelementptr inbounds i8, ptr %1096, i64 8
  store double %1095, ptr %1097, align 8, !tbaa !10
  %1098 = call double @llvm.fmuladd.f64(double %1088, double %1082, double %1076)
  %1099 = load ptr, ptr %44, align 8, !tbaa !9
  %1100 = getelementptr inbounds i8, ptr %1099, i64 8
  store double %1098, ptr %1100, align 8, !tbaa !10
  call void @_ZN11alglib_impl20spline1dbuildhermiteEPKNS_9ae_vectorES2_S2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %14, i64 noundef 2, ptr noundef nonnull %23, ptr noundef %1)
  %1101 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %1080, double noundef %1082, ptr noundef %1)
  %1102 = fsub double %1082, %1080
  %1103 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1102, ptr noundef %1)
  %1104 = fsub double %1101, %1103
  %1105 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %1080, double noundef %1082, ptr noundef %1)
  %1106 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1102, ptr noundef %1)
  %1107 = fadd double %1105, %1106
  %1108 = fsub double %1107, %1104
  %1109 = insertelement <2 x double> poison, double %1074, i64 0
  %1110 = shufflevector <2 x double> %1109, <2 x double> poison, <2 x i32> zeroinitializer
  %1111 = insertelement <2 x double> poison, double %1076, i64 0
  %1112 = shufflevector <2 x double> %1111, <2 x double> poison, <2 x i32> zeroinitializer
  %1113 = insertelement <2 x double> poison, double %1078, i64 0
  %1114 = shufflevector <2 x double> %1113, <2 x double> poison, <2 x i32> zeroinitializer
  br label %1115

1115:                                             ; preds = %1071, %1115
  %.371486 = phi double [ 0.000000e+00, %1071 ], [ %1140, %1115 ]
  %.812371485 = phi i64 [ 1, %1071 ], [ %1141, %1115 ]
  %1116 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1117 = call double @llvm.fmuladd.f64(double %1108, double %1116, double %1104)
  %1118 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1117, ptr noundef %1)
  %1119 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1117, ptr noundef %1)
  %1120 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1080, ptr noundef %1)
  %1121 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %1080, ptr noundef %1)
  %1122 = insertelement <2 x double> poison, double %1118, i64 0
  %1123 = insertelement <2 x double> %1122, double %1120, i64 1
  %1124 = fmul <2 x double> %1112, %1123
  %1125 = fmul <2 x double> %1124, <double 5.000000e-01, double 5.000000e-01>
  %1126 = insertelement <2 x double> poison, double %1117, i64 0
  %1127 = insertelement <2 x double> %1126, double %1080, i64 1
  %1128 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %1110, <2 x double> %1127, <2 x double> %1125)
  %1129 = insertelement <2 x double> poison, double %1119, i64 0
  %1130 = insertelement <2 x double> %1129, double %1121, i64 1
  %1131 = fmul <2 x double> %1114, %1130
  %1132 = fmul <2 x double> %1127, %1131
  %1133 = fdiv <2 x double> %1132, <double 3.000000e+00, double 3.000000e+00>
  %1134 = fadd <2 x double> %1128, %1133
  %shift1665 = shufflevector <2 x double> %1134, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %1135 = fsub <2 x double> %1134, %shift1665
  %1136 = extractelement <2 x double> %1135, i64 0
  %1137 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %1117, ptr noundef %1)
  %1138 = fsub double %1136, %1137
  %1139 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1138, ptr noundef %1)
  %1140 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.371486, double noundef %1139, ptr noundef %1)
  %1141 = add nuw nsw i64 %.812371485, 1
  %exitcond1564.not = icmp eq i64 %1141, 101
  br i1 %exitcond1564.not, label %1142, label %1115, !llvm.loop !70

1142:                                             ; preds = %1115
  br i1 %1072, label %1145, label %1143

1143:                                             ; preds = %1142
  %1144 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1140, double noundef 0x3D95FD7FE1796496)
  br label %1145

1145:                                             ; preds = %1143, %1142
  %1146 = phi i1 [ true, %1142 ], [ %1144, %1143 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef 100, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef 100, ptr noundef %1)
  br label %1147

1147:                                             ; preds = %1145, %1147
  %.2612661487 = phi i64 [ 0, %1145 ], [ %1160, %1147 ]
  %1148 = uitofp nneg i64 %.2612661487 to double
  %1149 = fdiv double %1148, 9.900000e+01
  %1150 = load ptr, ptr %41, align 8, !tbaa !9
  %1151 = getelementptr inbounds double, ptr %1150, i64 %.2612661487
  store double %1149, ptr %1151, align 8, !tbaa !10
  %1152 = load ptr, ptr %41, align 8, !tbaa !9
  %1153 = getelementptr inbounds double, ptr %1152, i64 %.2612661487
  %1154 = load double, ptr %1153, align 8, !tbaa !10
  %1155 = fmul double %1154, 0x401921FB54442D18
  %1156 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %1155, ptr noundef %1)
  %1157 = fadd double %1156, 1.000000e+00
  %1158 = load ptr, ptr %42, align 8, !tbaa !9
  %1159 = getelementptr inbounds double, ptr %1158, i64 %.2612661487
  store double %1157, ptr %1159, align 8, !tbaa !10
  %1160 = add nuw nsw i64 %.2612661487, 1
  %exitcond1565.not = icmp eq i64 %1160, 100
  br i1 %exitcond1565.not, label %1161, label %1147, !llvm.loop !71

1161:                                             ; preds = %1147
  %1162 = load ptr, ptr %42, align 8, !tbaa !9
  store double 2.000000e+00, ptr %1162, align 8, !tbaa !10
  %1163 = load ptr, ptr %42, align 8, !tbaa !9
  %1164 = getelementptr inbounds i8, ptr %1163, i64 792
  store double 2.000000e+00, ptr %1164, align 8, !tbaa !10
  call void @_ZN11alglib_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef 100, i64 noundef -1, double noundef 0.000000e+00, i64 noundef -1, double noundef 0.000000e+00, ptr noundef nonnull %23, ptr noundef %1)
  %1165 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef 1.000000e+00, ptr noundef %1)
  %1166 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %1167 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %1166, ptr noundef %1)
  br i1 %1146, label %.preheader1666, label %1168

1168:                                             ; preds = %1161
  %1169 = fadd double %1165, -1.000000e+00
  %1170 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1169, ptr noundef %1)
  %1171 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1170, double noundef 1.000000e-03)
  br label %.preheader1666

.preheader1666:                                   ; preds = %1168, %1161
  %.01225.in1489.ph = phi i1 [ %1171, %1168 ], [ true, %1161 ]
  br label %1172

1172:                                             ; preds = %.preheader1666, %.critedge1319
  %.01225.in1489 = phi i1 [ %1197, %.critedge1319 ], [ %.01225.in1489.ph, %.preheader1666 ]
  %.2712671488 = phi i64 [ %1198, %.critedge1319 ], [ -10, %.preheader1666 ]
  br i1 %.01225.in1489, label %.critedge1319, label %1173

1173:                                             ; preds = %1172
  %1174 = sitofp i64 %.2712671488 to double
  %1175 = fadd double %1166, %1174
  %1176 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %1175, ptr noundef %1)
  %1177 = call double @llvm.fmuladd.f64(double %1174, double %1165, double %1167)
  %1178 = fsub double %1176, %1177
  %1179 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1178, ptr noundef %1)
  %1180 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1179, double noundef 1.000000e-03)
  br i1 %1180, label %.critedge1319, label %.critedge1317

.critedge1317:                                    ; preds = %1173
  %1181 = fadd double %1174, -5.000000e-13
  %1182 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %1181, ptr noundef %1)
  %1183 = fneg double %1174
  %1184 = call double @llvm.fmuladd.f64(double %1183, double %1165, double %1182)
  %1185 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1184, ptr noundef %1)
  %1186 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1185, double noundef 1.000000e-03)
  br i1 %1186, label %.critedge1319, label %.critedge1318

.critedge1318:                                    ; preds = %.critedge1317
  %1187 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %1174, ptr noundef %1)
  %1188 = call double @llvm.fmuladd.f64(double %1183, double %1165, double %1187)
  %1189 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1188, ptr noundef %1)
  %1190 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1189, double noundef 1.000000e-03)
  br i1 %1190, label %.critedge1319, label %1191

1191:                                             ; preds = %.critedge1318
  %1192 = fadd double %1174, 5.000000e-13
  %1193 = call noundef double @_ZN11alglib_impl17spline1dintegrateEPKNS_19spline1dinterpolantEdPNS_8ae_stateE(ptr noundef nonnull %23, double noundef %1192, ptr noundef %1)
  %1194 = call double @llvm.fmuladd.f64(double %1183, double %1165, double %1193)
  %1195 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1194, ptr noundef %1)
  %1196 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1195, double noundef 1.000000e-03)
  br label %.critedge1319

.critedge1319:                                    ; preds = %.critedge1317, %1172, %1173, %1191, %.critedge1318
  %1197 = phi i1 [ true, %.critedge1318 ], [ %1196, %1191 ], [ true, %1173 ], [ true, %1172 ], [ true, %.critedge1317 ]
  %1198 = add nsw i64 %.2712671488, 1
  %exitcond1566.not = icmp eq i64 %1198, 11
  br i1 %exitcond1566.not, label %1199, label %1172, !llvm.loop !72

1199:                                             ; preds = %.critedge1319
  %1200 = call noundef zeroext i1 @_ZL35testspline1dunit_testmonotonesplinePN11alglib_impl8ae_stateE(ptr noundef %1)
  call void @_ZL34testspline1dunit_testsplinefittingPbPN11alglib_impl8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %1201 = load i8, ptr %4, align 1, !range !38
  %1202 = trunc nuw i8 %1201 to i1
  %brmerge1616 = or i1 %.4.in, %1202
  %or.cond1634 = select i1 %714, i1 true, i1 %brmerge1616
  br i1 %or.cond1634, label %1213, label %1203

1203:                                             ; preds = %1199
  %1204 = load i8, ptr %5, align 1, !tbaa !5, !range !38, !noundef !39
  %1205 = trunc nuw i8 %1204 to i1
  br i1 %1205, label %1213, label %1206

1206:                                             ; preds = %1203
  %1207 = load i8, ptr %6, align 1, !tbaa !5, !range !38, !noundef !39
  %1208 = trunc nuw i8 %1207 to i1
  %brmerge = or i1 %847, %1208
  %brmerge1320 = or i1 %879, %brmerge
  %brmerge1321 = or i1 %884, %brmerge1320
  %1209 = trunc nuw i8 %.11221.lcssa to i1
  %brmerge1322 = or i1 %1197, %1209
  %brmerge1323 = or i1 %brmerge1322, %1200
  %or.cond1328 = select i1 %brmerge1321, i1 true, i1 %brmerge1323
  br i1 %or.cond1328, label %1213, label %1210

1210:                                             ; preds = %1206
  %1211 = load i8, ptr %7, align 1, !tbaa !5, !range !38, !noundef !39
  %1212 = trunc nuw i8 %1211 to i1
  br label %1213

1213:                                             ; preds = %1206, %1210, %1203, %1199
  %1214 = phi i1 [ true, %1206 ], [ true, %1203 ], [ true, %1199 ], [ %1212, %1210 ]
  br i1 %0, label %1253, label %1215

1215:                                             ; preds = %1213
  %1216 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.799)
  %1217 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.800)
  %1218 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.801)
  %.str.2..str.3 = select i1 %714, ptr @.str.2, ptr @.str.3
  %1219 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2..str.3)
  %1220 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.802)
  %1221 = load i8, ptr %4, align 1, !tbaa !5, !range !38, !noundef !39
  %1222 = trunc nuw i8 %1221 to i1
  %.str.3.sink1617 = select i1 %1222, ptr @.str.2, ptr @.str.3
  %1223 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink1617)
  %1224 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.803)
  %.str.3.sink1618 = select i1 %.4.in, ptr @.str.2, ptr @.str.3
  %1225 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink1618)
  %1226 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.804)
  %1227 = load i8, ptr %5, align 1, !tbaa !5, !range !38, !noundef !39
  %1228 = trunc nuw i8 %1227 to i1
  %.str.3.sink1619 = select i1 %1228, ptr @.str.2, ptr @.str.3
  %1229 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink1619)
  %1230 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.805)
  %1231 = load i8, ptr %6, align 1, !tbaa !5, !range !38, !noundef !39
  %1232 = trunc nuw i8 %1231 to i1
  %.str.3.sink1620 = select i1 %1232, ptr @.str.2, ptr @.str.3
  %1233 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink1620)
  %1234 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.806)
  %.str.3.sink1621 = select i1 %1200, ptr @.str.2, ptr @.str.3
  %1235 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink1621)
  %1236 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.807)
  %1237 = load i8, ptr %7, align 1, !tbaa !5, !range !38, !noundef !39
  %1238 = trunc nuw i8 %1237 to i1
  %.str.3.sink1622 = select i1 %1238, ptr @.str.2, ptr @.str.3
  %1239 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink1622)
  %1240 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.808)
  %.str.3.sink1623 = select i1 %847, ptr @.str.2, ptr @.str.3
  %1241 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink1623)
  %1242 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.809)
  %.str.3.sink1624 = select i1 %879, ptr @.str.2, ptr @.str.3
  %1243 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink1624)
  %1244 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.810)
  %.str.3.sink1625 = select i1 %884, ptr @.str.2, ptr @.str.3
  %1245 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink1625)
  %1246 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.811)
  %1247 = trunc nuw i8 %.11221.lcssa to i1
  %.str.3.sink1626 = select i1 %1247, ptr @.str.2, ptr @.str.3
  %1248 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink1626)
  %1249 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.812)
  %.str.3.sink1627 = select i1 %1197, ptr @.str.2, ptr @.str.3
  %1250 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink1627)
  %.str.16.sink = select i1 %1214, ptr @.str.15, ptr @.str.16
  %1251 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.16.sink)
  %1252 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  br label %1253

1253:                                             ; preds = %1215, %1213
  %1254 = xor i1 %1214, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #7
  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 160, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 64, 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 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 1, 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 %1254
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23testspline1dunit_lconstddPKN11alglib_impl19spline1dinterpolantEdPdS3_S3_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_impl18spline1dbuildcubicEPKNS_9ae_vectorES2_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 #3

declare void @_ZN11alglib_impl12spline1ddiffEPKNS_19spline1dinterpolantEdPdS3_S3_PNS_8ae_stateE(ptr noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare void @_ZN11alglib_impl22spline1dgriddiff2cubicEPKNS_9ae_vectorES2_lldldPS0_S3_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 #3

declare void @_ZN11alglib_impl17spline1dconvcubicEPKNS_9ae_vectorES2_lldldS2_lPS0_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 #3

declare void @_ZN11alglib_impl21spline1dconvdiffcubicEPKNS_9ae_vectorES2_lldldS2_lPS0_S3_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 #3

declare void @_ZN11alglib_impl22spline1dconvdiff2cubicEPKNS_9ae_vectorES2_lldldS2_lPS0_S3_S3_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 #3

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL36testspline1dunit_enumerateallsplinesPKN11alglib_impl9ae_vectorES2_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 #3

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

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

; 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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{i8 0, i8 2}
!39 = !{}
!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 = distinct !{!55, !13}
!56 = !{!22, !23, i64 16}
!57 = distinct !{!57, !13}
!58 = distinct !{!58, !13}
!59 = distinct !{!59, !13}
!60 = distinct !{!60, !13}
!61 = !{!21, !21, i64 0}
!62 = distinct !{!62, !13}
!63 = distinct !{!63, !13}
!64 = distinct !{!64, !13}
!65 = distinct !{!65, !13}
!66 = distinct !{!66, !13}
!67 = distinct !{!67, !13}
!68 = distinct !{!68, !13}
!69 = distinct !{!69, !13}
!70 = distinct !{!70, !13}
!71 = distinct !{!71, !13}
!72 = distinct !{!72, !13}


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