; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z14testparametricbPN11alglib_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::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::pspline2interpolant" = type { i64, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::spline1dinterpolant", %"struct.alglib_impl::spline1dinterpolant" }
%"struct.alglib_impl::spline1dinterpolant" = type { i8, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::pspline3interpolant" = type { i64, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::spline1dinterpolant", %"struct.alglib_impl::spline1dinterpolant", %"struct.alglib_impl::spline1dinterpolant" }

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.631 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.632 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.633 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.634 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.635 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

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

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

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) #1

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z14testparametricbPN11alglib_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 double, align 8
  %11 = alloca double, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i8, align 1
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca double, align 8
  %40 = alloca double, align 8
  %41 = alloca double, 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::ae_vector", align 8
  %48 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %49 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %50 = alloca %"struct.alglib_impl::pspline2interpolant", align 8
  %51 = alloca %"struct.alglib_impl::pspline3interpolant", align 8
  %52 = alloca %"struct.alglib_impl::spline1dinterpolant", align 8
  %53 = alloca i8, align 1
  %54 = zext i1 %0 to i8
  store i8 %54, 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 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 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 8, 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 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  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 64, ptr %47) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %48) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %49) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %50) #5
  call void @llvm.lifetime.start.p0(i64 560, ptr %51) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr %52) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %53) #5
  %55 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %55, ptr noundef %5)
  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 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %48, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %49, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %50, i8 0, i64 400, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %51, i8 0, i64 560, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %52, i8 0, i64 160, i1 false)
  %56 = 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 %56, i1 noundef zeroext true)
  %57 = 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 %57, i1 noundef zeroext true)
  %58 = 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 %58, i1 noundef zeroext true)
  %59 = 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 %59, i1 noundef zeroext true)
  %60 = 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 3, ptr noundef %60, i1 noundef zeroext true)
  %61 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %47, i64 noundef 0, i64 noundef 3, ptr noundef %61, i1 noundef zeroext true)
  %62 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %48, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %62, i1 noundef zeroext true)
  %63 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %49, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %63, i1 noundef zeroext true)
  %64 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl25_pspline2interpolant_initEPvPNS_8ae_stateEb(ptr noundef %50, ptr noundef %64, i1 noundef zeroext true)
  %65 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl25_pspline3interpolant_initEPvPNS_8ae_stateEb(ptr noundef %51, ptr noundef %65, i1 noundef zeroext true)
  %66 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl25_spline1dinterpolant_initEPvPNS_8ae_stateEb(ptr noundef %52, ptr noundef %66, i1 noundef zeroext true)
  store i8 0, ptr %6, align 1, !tbaa !5
  store i64 10, ptr %12, align 8, !tbaa !11
  store double 0x3D95FD7FE1796496, ptr %11, align 8, !tbaa !13
  store double 1.000000e-05, ptr %10, align 8, !tbaa !13
  store i8 0, ptr %7, align 1, !tbaa !5
  store i8 0, ptr %8, align 1, !tbaa !5
  store i8 0, ptr %9, align 1, !tbaa !5
  %67 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL26testparametricunit_testrdpPbPN11alglib_impl8ae_stateE(ptr noundef %9, ptr noundef %67)
  store i64 2, ptr %19, align 8, !tbaa !11
  br label %68

68:                                               ; preds = %1325, %2
  %69 = load i64, ptr %19, align 8, !tbaa !11
  %70 = load i64, ptr %12, align 8, !tbaa !11
  %71 = icmp sle i64 %69, %70
  br i1 %71, label %72, label %1328

72:                                               ; preds = %68
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %73

73:                                               ; preds = %1321, %72
  %74 = load i64, ptr %14, align 8, !tbaa !11
  %75 = icmp sle i64 %74, 2
  br i1 %75, label %76, label %1324

76:                                               ; preds = %73
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %77

77:                                               ; preds = %1317, %76
  %78 = load i64, ptr %15, align 8, !tbaa !11
  %79 = icmp sle i64 %78, 2
  br i1 %79, label %80, label %1320

80:                                               ; preds = %77
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %81

81:                                               ; preds = %1313, %80
  %82 = load i64, ptr %13, align 8, !tbaa !11
  %83 = icmp sle i64 %82, 1
  br i1 %83, label %84, label %1316

84:                                               ; preds = %81
  %85 = load i64, ptr %13, align 8, !tbaa !11
  %86 = icmp eq i64 %85, 1
  %87 = zext i1 %86 to i8
  store i8 %87, ptr %16, align 1, !tbaa !5
  %88 = load i8, ptr %16, align 1, !tbaa !5, !range !15, !noundef !16
  %89 = trunc i8 %88 to i1
  br i1 %89, label %90, label %94

90:                                               ; preds = %84
  %91 = load i64, ptr %19, align 8, !tbaa !11
  %92 = icmp slt i64 %91, 3
  br i1 %92, label %93, label %94

93:                                               ; preds = %90
  br label %1313

94:                                               ; preds = %90, %84
  %95 = load i8, ptr %16, align 1, !tbaa !5, !range !15, !noundef !16
  %96 = trunc i8 %95 to i1
  br i1 %96, label %97, label %101

97:                                               ; preds = %94
  %98 = load i64, ptr %14, align 8, !tbaa !11
  %99 = icmp eq i64 %98, 0
  br i1 %99, label %100, label %101

100:                                              ; preds = %97
  br label %1313

101:                                              ; preds = %97, %94
  %102 = load i64, ptr %19, align 8, !tbaa !11
  %103 = icmp slt i64 %102, 5
  br i1 %103, label %104, label %108

104:                                              ; preds = %101
  %105 = load i64, ptr %14, align 8, !tbaa !11
  %106 = icmp eq i64 %105, 0
  br i1 %106, label %107, label %108

107:                                              ; preds = %104
  br label %1313

108:                                              ; preds = %104, %101
  %109 = load i64, ptr %19, align 8, !tbaa !11
  %110 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %48, i64 noundef %109, i64 noundef 2, ptr noundef %110)
  %111 = load i64, ptr %19, align 8, !tbaa !11
  %112 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %49, i64 noundef %111, i64 noundef 3, ptr noundef %112)
  %113 = load i64, ptr %19, align 8, !tbaa !11
  %114 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20taskgenint1dequidistEddlPNS_9ae_vectorES1_PNS_8ae_stateE(double noundef -1.000000e+00, double noundef 1.000000e+00, i64 noundef %113, ptr noundef %46, ptr noundef %42, ptr noundef %114)
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %48, i32 0, i32 6
  %116 = load ptr, ptr %115, align 8, !tbaa !17
  %117 = getelementptr inbounds ptr, ptr %116, i64 0
  %118 = load ptr, ptr %117, align 8, !tbaa !9
  %119 = getelementptr inbounds double, ptr %118, i64 0
  %120 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %48, i32 0, i32 2
  %121 = load i64, ptr %120, align 8, !tbaa !18
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !17
  %124 = getelementptr inbounds double, ptr %123, i64 0
  %125 = load i64, ptr %19, align 8, !tbaa !11
  %126 = sub nsw i64 %125, 1
  %127 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %126)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %119, i64 noundef %121, ptr noundef %124, i64 noundef 1, i64 noundef %127)
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %49, i32 0, i32 6
  %129 = load ptr, ptr %128, align 8, !tbaa !17
  %130 = getelementptr inbounds ptr, ptr %129, i64 0
  %131 = load ptr, ptr %130, align 8, !tbaa !9
  %132 = getelementptr inbounds double, ptr %131, i64 0
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %49, i32 0, i32 2
  %134 = load i64, ptr %133, align 8, !tbaa !18
  %135 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %136 = load ptr, ptr %135, align 8, !tbaa !17
  %137 = getelementptr inbounds double, ptr %136, i64 0
  %138 = load i64, ptr %19, align 8, !tbaa !11
  %139 = sub nsw i64 %138, 1
  %140 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %139)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %132, i64 noundef %134, ptr noundef %137, i64 noundef 1, i64 noundef %140)
  %141 = load i64, ptr %19, align 8, !tbaa !11
  %142 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20taskgenint1dequidistEddlPNS_9ae_vectorES1_PNS_8ae_stateE(double noundef -1.000000e+00, double noundef 1.000000e+00, i64 noundef %141, ptr noundef %46, ptr noundef %43, ptr noundef %142)
  %143 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %48, i32 0, i32 6
  %144 = load ptr, ptr %143, align 8, !tbaa !17
  %145 = getelementptr inbounds ptr, ptr %144, i64 0
  %146 = load ptr, ptr %145, align 8, !tbaa !9
  %147 = getelementptr inbounds double, ptr %146, i64 1
  %148 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %48, i32 0, i32 2
  %149 = load i64, ptr %148, align 8, !tbaa !18
  %150 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %151 = load ptr, ptr %150, align 8, !tbaa !17
  %152 = getelementptr inbounds double, ptr %151, i64 0
  %153 = load i64, ptr %19, align 8, !tbaa !11
  %154 = sub nsw i64 %153, 1
  %155 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %154)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %147, i64 noundef %149, ptr noundef %152, i64 noundef 1, i64 noundef %155)
  %156 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %49, i32 0, i32 6
  %157 = load ptr, ptr %156, align 8, !tbaa !17
  %158 = getelementptr inbounds ptr, ptr %157, i64 0
  %159 = load ptr, ptr %158, align 8, !tbaa !9
  %160 = getelementptr inbounds double, ptr %159, i64 1
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %49, i32 0, i32 2
  %162 = load i64, ptr %161, align 8, !tbaa !18
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %164 = load ptr, ptr %163, align 8, !tbaa !17
  %165 = getelementptr inbounds double, ptr %164, i64 0
  %166 = load i64, ptr %19, align 8, !tbaa !11
  %167 = sub nsw i64 %166, 1
  %168 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %167)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %160, i64 noundef %162, ptr noundef %165, i64 noundef 1, i64 noundef %168)
  %169 = load i64, ptr %19, align 8, !tbaa !11
  %170 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20taskgenint1dequidistEddlPNS_9ae_vectorES1_PNS_8ae_stateE(double noundef -1.000000e+00, double noundef 1.000000e+00, i64 noundef %169, ptr noundef %46, ptr noundef %44, ptr noundef %170)
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %49, i32 0, i32 6
  %172 = load ptr, ptr %171, align 8, !tbaa !17
  %173 = getelementptr inbounds ptr, ptr %172, i64 0
  %174 = load ptr, ptr %173, align 8, !tbaa !9
  %175 = getelementptr inbounds double, ptr %174, i64 2
  %176 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %49, i32 0, i32 2
  %177 = load i64, ptr %176, align 8, !tbaa !18
  %178 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %179 = load ptr, ptr %178, align 8, !tbaa !17
  %180 = getelementptr inbounds double, ptr %179, i64 0
  %181 = load i64, ptr %19, align 8, !tbaa !11
  %182 = sub nsw i64 %181, 1
  %183 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %182)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %175, i64 noundef %177, ptr noundef %180, i64 noundef 1, i64 noundef %183)
  %184 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL26testparametricunit_unsetp2PN11alglib_impl19pspline2interpolantEPNS_8ae_stateE(ptr noundef %50, ptr noundef %184)
  %185 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL26testparametricunit_unsetp3PN11alglib_impl19pspline3interpolantEPNS_8ae_stateE(ptr noundef %51, ptr noundef %185)
  %186 = load i8, ptr %16, align 1, !tbaa !5, !range !15, !noundef !16
  %187 = trunc i8 %186 to i1
  br i1 %187, label %188, label %197

188:                                              ; preds = %108
  %189 = load i64, ptr %19, align 8, !tbaa !11
  %190 = load i64, ptr %14, align 8, !tbaa !11
  %191 = load i64, ptr %15, align 8, !tbaa !11
  %192 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21pspline2buildperiodicEPNS_9ae_matrixElllPNS_19pspline2interpolantEPNS_8ae_stateE(ptr noundef %48, i64 noundef %189, i64 noundef %190, i64 noundef %191, ptr noundef %50, ptr noundef %192)
  %193 = load i64, ptr %19, align 8, !tbaa !11
  %194 = load i64, ptr %14, align 8, !tbaa !11
  %195 = load i64, ptr %15, align 8, !tbaa !11
  %196 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21pspline3buildperiodicEPNS_9ae_matrixElllPNS_19pspline3interpolantEPNS_8ae_stateE(ptr noundef %49, i64 noundef %193, i64 noundef %194, i64 noundef %195, ptr noundef %51, ptr noundef %196)
  br label %206

197:                                              ; preds = %108
  %198 = load i64, ptr %19, align 8, !tbaa !11
  %199 = load i64, ptr %14, align 8, !tbaa !11
  %200 = load i64, ptr %15, align 8, !tbaa !11
  %201 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pspline2buildEPNS_9ae_matrixElllPNS_19pspline2interpolantEPNS_8ae_stateE(ptr noundef %48, i64 noundef %198, i64 noundef %199, i64 noundef %200, ptr noundef %50, ptr noundef %201)
  %202 = load i64, ptr %19, align 8, !tbaa !11
  %203 = load i64, ptr %14, align 8, !tbaa !11
  %204 = load i64, ptr %15, align 8, !tbaa !11
  %205 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pspline3buildEPNS_9ae_matrixElllPNS_19pspline3interpolantEPNS_8ae_stateE(ptr noundef %49, i64 noundef %202, i64 noundef %203, i64 noundef %204, ptr noundef %51, ptr noundef %205)
  br label %206

206:                                              ; preds = %197, %188
  %207 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl23pspline2parametervaluesEPNS_19pspline2interpolantEPlPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %50, ptr noundef %20, ptr noundef %46, ptr noundef %207)
  %208 = load i64, ptr %20, align 8, !tbaa !11
  %209 = load i64, ptr %19, align 8, !tbaa !11
  %210 = icmp ne i64 %208, %209
  br i1 %210, label %211, label %212

211:                                              ; preds = %206
  store i8 1, ptr %7, align 1, !tbaa !5
  br label %1313

212:                                              ; preds = %206
  %213 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl23pspline3parametervaluesEPNS_19pspline3interpolantEPlPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %51, ptr noundef %20, ptr noundef %47, ptr noundef %213)
  %214 = load i64, ptr %20, align 8, !tbaa !11
  %215 = load i64, ptr %19, align 8, !tbaa !11
  %216 = icmp ne i64 %214, %215
  br i1 %216, label %217, label %218

217:                                              ; preds = %212
  store i8 1, ptr %8, align 1, !tbaa !5
  br label %1313

218:                                              ; preds = %212
  %219 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %220 = trunc i8 %219 to i1
  br i1 %220, label %227, label %221

221:                                              ; preds = %218
  %222 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %223 = load ptr, ptr %222, align 8, !tbaa !17
  %224 = getelementptr inbounds double, ptr %223, i64 0
  %225 = load double, ptr %224, align 8, !tbaa !13
  %226 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %225, double noundef 0.000000e+00)
  br label %227

227:                                              ; preds = %221, %218
  %228 = phi i1 [ true, %218 ], [ %226, %221 ]
  %229 = zext i1 %228 to i8
  store i8 %229, ptr %7, align 1, !tbaa !5
  %230 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %231 = trunc i8 %230 to i1
  br i1 %231, label %238, label %232

232:                                              ; preds = %227
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %234 = load ptr, ptr %233, align 8, !tbaa !17
  %235 = getelementptr inbounds double, ptr %234, i64 0
  %236 = load double, ptr %235, align 8, !tbaa !13
  %237 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %236, double noundef 0.000000e+00)
  br label %238

238:                                              ; preds = %232, %227
  %239 = phi i1 [ true, %227 ], [ %237, %232 ]
  %240 = zext i1 %239 to i8
  store i8 %240, ptr %8, align 1, !tbaa !5
  store i64 1, ptr %21, align 8, !tbaa !11
  br label %241

241:                                              ; preds = %283, %238
  %242 = load i64, ptr %21, align 8, !tbaa !11
  %243 = load i64, ptr %19, align 8, !tbaa !11
  %244 = sub nsw i64 %243, 1
  %245 = icmp sle i64 %242, %244
  br i1 %245, label %246, label %286

246:                                              ; preds = %241
  %247 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %248 = trunc i8 %247 to i1
  br i1 %248, label %262, label %249

249:                                              ; preds = %246
  %250 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %251 = load ptr, ptr %250, align 8, !tbaa !17
  %252 = load i64, ptr %21, align 8, !tbaa !11
  %253 = getelementptr inbounds double, ptr %251, i64 %252
  %254 = load double, ptr %253, align 8, !tbaa !13
  %255 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %256 = load ptr, ptr %255, align 8, !tbaa !17
  %257 = load i64, ptr %21, align 8, !tbaa !11
  %258 = sub nsw i64 %257, 1
  %259 = getelementptr inbounds double, ptr %256, i64 %258
  %260 = load double, ptr %259, align 8, !tbaa !13
  %261 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %254, double noundef %260)
  br label %262

262:                                              ; preds = %249, %246
  %263 = phi i1 [ true, %246 ], [ %261, %249 ]
  %264 = zext i1 %263 to i8
  store i8 %264, ptr %7, align 1, !tbaa !5
  %265 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %266 = trunc i8 %265 to i1
  br i1 %266, label %280, label %267

267:                                              ; preds = %262
  %268 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %269 = load ptr, ptr %268, align 8, !tbaa !17
  %270 = load i64, ptr %21, align 8, !tbaa !11
  %271 = getelementptr inbounds double, ptr %269, i64 %270
  %272 = load double, ptr %271, align 8, !tbaa !13
  %273 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %274 = load ptr, ptr %273, align 8, !tbaa !17
  %275 = load i64, ptr %21, align 8, !tbaa !11
  %276 = sub nsw i64 %275, 1
  %277 = getelementptr inbounds double, ptr %274, i64 %276
  %278 = load double, ptr %277, align 8, !tbaa !13
  %279 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %272, double noundef %278)
  br label %280

280:                                              ; preds = %267, %262
  %281 = phi i1 [ true, %262 ], [ %279, %267 ]
  %282 = zext i1 %281 to i8
  store i8 %282, ptr %8, align 1, !tbaa !5
  br label %283

283:                                              ; preds = %280
  %284 = load i64, ptr %21, align 8, !tbaa !11
  %285 = add nsw i64 %284, 1
  store i64 %285, ptr %21, align 8, !tbaa !11
  br label %241, !llvm.loop !21

286:                                              ; preds = %241
  %287 = load i8, ptr %16, align 1, !tbaa !5, !range !15, !noundef !16
  %288 = trunc i8 %287 to i1
  br i1 %288, label %289, label %316

289:                                              ; preds = %286
  %290 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %291 = trunc i8 %290 to i1
  br i1 %291, label %300, label %292

292:                                              ; preds = %289
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %294 = load ptr, ptr %293, align 8, !tbaa !17
  %295 = load i64, ptr %19, align 8, !tbaa !11
  %296 = sub nsw i64 %295, 1
  %297 = getelementptr inbounds double, ptr %294, i64 %296
  %298 = load double, ptr %297, align 8, !tbaa !13
  %299 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %298, double noundef 1.000000e+00)
  br label %300

300:                                              ; preds = %292, %289
  %301 = phi i1 [ true, %289 ], [ %299, %292 ]
  %302 = zext i1 %301 to i8
  store i8 %302, ptr %7, align 1, !tbaa !5
  %303 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %304 = trunc i8 %303 to i1
  br i1 %304, label %313, label %305

305:                                              ; preds = %300
  %306 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %307 = load ptr, ptr %306, align 8, !tbaa !17
  %308 = load i64, ptr %19, align 8, !tbaa !11
  %309 = sub nsw i64 %308, 1
  %310 = getelementptr inbounds double, ptr %307, i64 %309
  %311 = load double, ptr %310, align 8, !tbaa !13
  %312 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %311, double noundef 1.000000e+00)
  br label %313

313:                                              ; preds = %305, %300
  %314 = phi i1 [ true, %300 ], [ %312, %305 ]
  %315 = zext i1 %314 to i8
  store i8 %315, ptr %8, align 1, !tbaa !5
  br label %343

316:                                              ; preds = %286
  %317 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %318 = trunc i8 %317 to i1
  br i1 %318, label %327, label %319

319:                                              ; preds = %316
  %320 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %321 = load ptr, ptr %320, align 8, !tbaa !17
  %322 = load i64, ptr %19, align 8, !tbaa !11
  %323 = sub nsw i64 %322, 1
  %324 = getelementptr inbounds double, ptr %321, i64 %323
  %325 = load double, ptr %324, align 8, !tbaa !13
  %326 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %325, double noundef 1.000000e+00)
  br label %327

327:                                              ; preds = %319, %316
  %328 = phi i1 [ true, %316 ], [ %326, %319 ]
  %329 = zext i1 %328 to i8
  store i8 %329, ptr %7, align 1, !tbaa !5
  %330 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %331 = trunc i8 %330 to i1
  br i1 %331, label %340, label %332

332:                                              ; preds = %327
  %333 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %334 = load ptr, ptr %333, align 8, !tbaa !17
  %335 = load i64, ptr %19, align 8, !tbaa !11
  %336 = sub nsw i64 %335, 1
  %337 = getelementptr inbounds double, ptr %334, i64 %336
  %338 = load double, ptr %337, align 8, !tbaa !13
  %339 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %338, double noundef 1.000000e+00)
  br label %340

340:                                              ; preds = %332, %327
  %341 = phi i1 [ true, %327 ], [ %339, %332 ]
  %342 = zext i1 %341 to i8
  store i8 %342, ptr %8, align 1, !tbaa !5
  br label %343

343:                                              ; preds = %340, %313
  store i64 0, ptr %21, align 8, !tbaa !11
  br label %344

344:                                              ; preds = %447, %343
  %345 = load i64, ptr %21, align 8, !tbaa !11
  %346 = load i64, ptr %19, align 8, !tbaa !11
  %347 = sub nsw i64 %346, 1
  %348 = icmp sle i64 %345, %347
  br i1 %348, label %349, label %450

349:                                              ; preds = %344
  %350 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %351 = load ptr, ptr %350, align 8, !tbaa !17
  %352 = load i64, ptr %21, align 8, !tbaa !11
  %353 = getelementptr inbounds double, ptr %351, i64 %352
  %354 = load double, ptr %353, align 8, !tbaa !13
  %355 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline2calcEPNS_19pspline2interpolantEdPdS2_PNS_8ae_stateE(ptr noundef %50, double noundef %354, ptr noundef %22, ptr noundef %23, ptr noundef %355)
  %356 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %357 = trunc i8 %356 to i1
  br i1 %357, label %370, label %358

358:                                              ; preds = %349
  %359 = load double, ptr %22, align 8, !tbaa !13
  %360 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %361 = load ptr, ptr %360, align 8, !tbaa !17
  %362 = load i64, ptr %21, align 8, !tbaa !11
  %363 = getelementptr inbounds double, ptr %361, i64 %362
  %364 = load double, ptr %363, align 8, !tbaa !13
  %365 = fsub double %359, %364
  %366 = load ptr, ptr %4, align 8, !tbaa !9
  %367 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %365, ptr noundef %366)
  %368 = load double, ptr %11, align 8, !tbaa !13
  %369 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %367, double noundef %368)
  br label %370

370:                                              ; preds = %358, %349
  %371 = phi i1 [ true, %349 ], [ %369, %358 ]
  %372 = zext i1 %371 to i8
  store i8 %372, ptr %7, align 1, !tbaa !5
  %373 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %374 = trunc i8 %373 to i1
  br i1 %374, label %387, label %375

375:                                              ; preds = %370
  %376 = load double, ptr %23, align 8, !tbaa !13
  %377 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %378 = load ptr, ptr %377, align 8, !tbaa !17
  %379 = load i64, ptr %21, align 8, !tbaa !11
  %380 = getelementptr inbounds double, ptr %378, i64 %379
  %381 = load double, ptr %380, align 8, !tbaa !13
  %382 = fsub double %376, %381
  %383 = load ptr, ptr %4, align 8, !tbaa !9
  %384 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %382, ptr noundef %383)
  %385 = load double, ptr %11, align 8, !tbaa !13
  %386 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %384, double noundef %385)
  br label %387

387:                                              ; preds = %375, %370
  %388 = phi i1 [ true, %370 ], [ %386, %375 ]
  %389 = zext i1 %388 to i8
  store i8 %389, ptr %7, align 1, !tbaa !5
  %390 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %391 = load ptr, ptr %390, align 8, !tbaa !17
  %392 = load i64, ptr %21, align 8, !tbaa !11
  %393 = getelementptr inbounds double, ptr %391, i64 %392
  %394 = load double, ptr %393, align 8, !tbaa !13
  %395 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline3calcEPNS_19pspline3interpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %51, double noundef %394, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %395)
  %396 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %397 = trunc i8 %396 to i1
  br i1 %397, label %410, label %398

398:                                              ; preds = %387
  %399 = load double, ptr %22, align 8, !tbaa !13
  %400 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %401 = load ptr, ptr %400, align 8, !tbaa !17
  %402 = load i64, ptr %21, align 8, !tbaa !11
  %403 = getelementptr inbounds double, ptr %401, i64 %402
  %404 = load double, ptr %403, align 8, !tbaa !13
  %405 = fsub double %399, %404
  %406 = load ptr, ptr %4, align 8, !tbaa !9
  %407 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %405, ptr noundef %406)
  %408 = load double, ptr %11, align 8, !tbaa !13
  %409 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %407, double noundef %408)
  br label %410

410:                                              ; preds = %398, %387
  %411 = phi i1 [ true, %387 ], [ %409, %398 ]
  %412 = zext i1 %411 to i8
  store i8 %412, ptr %8, align 1, !tbaa !5
  %413 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %414 = trunc i8 %413 to i1
  br i1 %414, label %427, label %415

415:                                              ; preds = %410
  %416 = load double, ptr %23, align 8, !tbaa !13
  %417 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %418 = load ptr, ptr %417, align 8, !tbaa !17
  %419 = load i64, ptr %21, align 8, !tbaa !11
  %420 = getelementptr inbounds double, ptr %418, i64 %419
  %421 = load double, ptr %420, align 8, !tbaa !13
  %422 = fsub double %416, %421
  %423 = load ptr, ptr %4, align 8, !tbaa !9
  %424 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %422, ptr noundef %423)
  %425 = load double, ptr %11, align 8, !tbaa !13
  %426 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %424, double noundef %425)
  br label %427

427:                                              ; preds = %415, %410
  %428 = phi i1 [ true, %410 ], [ %426, %415 ]
  %429 = zext i1 %428 to i8
  store i8 %429, ptr %8, align 1, !tbaa !5
  %430 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %431 = trunc i8 %430 to i1
  br i1 %431, label %444, label %432

432:                                              ; preds = %427
  %433 = load double, ptr %24, align 8, !tbaa !13
  %434 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %435 = load ptr, ptr %434, align 8, !tbaa !17
  %436 = load i64, ptr %21, align 8, !tbaa !11
  %437 = getelementptr inbounds double, ptr %435, i64 %436
  %438 = load double, ptr %437, align 8, !tbaa !13
  %439 = fsub double %433, %438
  %440 = load ptr, ptr %4, align 8, !tbaa !9
  %441 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %439, ptr noundef %440)
  %442 = load double, ptr %11, align 8, !tbaa !13
  %443 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %441, double noundef %442)
  br label %444

444:                                              ; preds = %432, %427
  %445 = phi i1 [ true, %427 ], [ %443, %432 ]
  %446 = zext i1 %445 to i8
  store i8 %446, ptr %8, align 1, !tbaa !5
  br label %447

447:                                              ; preds = %444
  %448 = load i64, ptr %21, align 8, !tbaa !11
  %449 = add nsw i64 %448, 1
  store i64 %449, ptr %21, align 8, !tbaa !11
  br label %344, !llvm.loop !23

450:                                              ; preds = %344
  %451 = load i8, ptr %16, align 1, !tbaa !5, !range !15, !noundef !16
  %452 = trunc i8 %451 to i1
  br i1 %452, label %453, label %1312

453:                                              ; preds = %450
  store i64 0, ptr %21, align 8, !tbaa !11
  br label %454

454:                                              ; preds = %781, %453
  %455 = load i64, ptr %21, align 8, !tbaa !11
  %456 = load i64, ptr %19, align 8, !tbaa !11
  %457 = sub nsw i64 %456, 1
  %458 = icmp sle i64 %455, %457
  br i1 %458, label %459, label %784

459:                                              ; preds = %454
  %460 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %461 = load ptr, ptr %460, align 8, !tbaa !17
  %462 = load i64, ptr %21, align 8, !tbaa !11
  %463 = getelementptr inbounds double, ptr %461, i64 %462
  %464 = load double, ptr %463, align 8, !tbaa !13
  %465 = load ptr, ptr %4, align 8, !tbaa !9
  %466 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %465)
  %467 = sitofp i64 %466 to double
  %468 = fadd double %464, %467
  %469 = fsub double %468, 5.000000e+00
  %470 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline2calcEPNS_19pspline2interpolantEdPdS2_PNS_8ae_stateE(ptr noundef %50, double noundef %469, ptr noundef %22, ptr noundef %23, ptr noundef %470)
  %471 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %472 = trunc i8 %471 to i1
  br i1 %472, label %485, label %473

473:                                              ; preds = %459
  %474 = load double, ptr %22, align 8, !tbaa !13
  %475 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %476 = load ptr, ptr %475, align 8, !tbaa !17
  %477 = load i64, ptr %21, align 8, !tbaa !11
  %478 = getelementptr inbounds double, ptr %476, i64 %477
  %479 = load double, ptr %478, align 8, !tbaa !13
  %480 = fsub double %474, %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 double, ptr %11, align 8, !tbaa !13
  %484 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %482, double noundef %483)
  br label %485

485:                                              ; preds = %473, %459
  %486 = phi i1 [ true, %459 ], [ %484, %473 ]
  %487 = zext i1 %486 to i8
  store i8 %487, ptr %7, align 1, !tbaa !5
  %488 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %489 = trunc i8 %488 to i1
  br i1 %489, label %502, label %490

490:                                              ; preds = %485
  %491 = load double, ptr %23, align 8, !tbaa !13
  %492 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %493 = load ptr, ptr %492, align 8, !tbaa !17
  %494 = load i64, ptr %21, align 8, !tbaa !11
  %495 = getelementptr inbounds double, ptr %493, i64 %494
  %496 = load double, ptr %495, align 8, !tbaa !13
  %497 = fsub double %491, %496
  %498 = load ptr, ptr %4, align 8, !tbaa !9
  %499 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %497, ptr noundef %498)
  %500 = load double, ptr %11, align 8, !tbaa !13
  %501 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %499, double noundef %500)
  br label %502

502:                                              ; preds = %490, %485
  %503 = phi i1 [ true, %485 ], [ %501, %490 ]
  %504 = zext i1 %503 to i8
  store i8 %504, ptr %7, align 1, !tbaa !5
  %505 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %506 = load ptr, ptr %505, align 8, !tbaa !17
  %507 = load i64, ptr %21, align 8, !tbaa !11
  %508 = getelementptr inbounds double, ptr %506, i64 %507
  %509 = load double, ptr %508, align 8, !tbaa !13
  %510 = load ptr, ptr %4, align 8, !tbaa !9
  %511 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %510)
  %512 = sitofp i64 %511 to double
  %513 = fadd double %509, %512
  %514 = fsub double %513, 5.000000e+00
  %515 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline2diffEPNS_19pspline2interpolantEdPdS2_S2_S2_PNS_8ae_stateE(ptr noundef %50, double noundef %514, ptr noundef %22, ptr noundef %28, ptr noundef %23, ptr noundef %29, ptr noundef %515)
  %516 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %517 = trunc i8 %516 to i1
  br i1 %517, label %530, label %518

518:                                              ; preds = %502
  %519 = load double, ptr %22, align 8, !tbaa !13
  %520 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %521 = load ptr, ptr %520, align 8, !tbaa !17
  %522 = load i64, ptr %21, align 8, !tbaa !11
  %523 = getelementptr inbounds double, ptr %521, i64 %522
  %524 = load double, ptr %523, align 8, !tbaa !13
  %525 = fsub double %519, %524
  %526 = load ptr, ptr %4, align 8, !tbaa !9
  %527 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %525, ptr noundef %526)
  %528 = load double, ptr %11, align 8, !tbaa !13
  %529 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %527, double noundef %528)
  br label %530

530:                                              ; preds = %518, %502
  %531 = phi i1 [ true, %502 ], [ %529, %518 ]
  %532 = zext i1 %531 to i8
  store i8 %532, ptr %7, align 1, !tbaa !5
  %533 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %534 = trunc i8 %533 to i1
  br i1 %534, label %547, label %535

535:                                              ; preds = %530
  %536 = load double, ptr %23, align 8, !tbaa !13
  %537 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %538 = load ptr, ptr %537, align 8, !tbaa !17
  %539 = load i64, ptr %21, align 8, !tbaa !11
  %540 = getelementptr inbounds double, ptr %538, i64 %539
  %541 = load double, ptr %540, align 8, !tbaa !13
  %542 = fsub double %536, %541
  %543 = load ptr, ptr %4, align 8, !tbaa !9
  %544 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %542, ptr noundef %543)
  %545 = load double, ptr %11, align 8, !tbaa !13
  %546 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %544, double noundef %545)
  br label %547

547:                                              ; preds = %535, %530
  %548 = phi i1 [ true, %530 ], [ %546, %535 ]
  %549 = zext i1 %548 to i8
  store i8 %549, ptr %7, align 1, !tbaa !5
  %550 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 4
  %551 = load ptr, ptr %550, align 8, !tbaa !17
  %552 = load i64, ptr %21, align 8, !tbaa !11
  %553 = getelementptr inbounds double, ptr %551, i64 %552
  %554 = load double, ptr %553, align 8, !tbaa !13
  %555 = load ptr, ptr %4, align 8, !tbaa !9
  %556 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %555)
  %557 = sitofp i64 %556 to double
  %558 = fadd double %554, %557
  %559 = fsub double %558, 5.000000e+00
  %560 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pspline2diff2EPNS_19pspline2interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef %50, double noundef %559, ptr noundef %22, ptr noundef %28, ptr noundef %34, ptr noundef %23, ptr noundef %29, ptr noundef %35, ptr noundef %560)
  %561 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %562 = trunc i8 %561 to i1
  br i1 %562, label %575, label %563

563:                                              ; preds = %547
  %564 = load double, ptr %22, align 8, !tbaa !13
  %565 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %566 = load ptr, ptr %565, align 8, !tbaa !17
  %567 = load i64, ptr %21, align 8, !tbaa !11
  %568 = getelementptr inbounds double, ptr %566, i64 %567
  %569 = load double, ptr %568, align 8, !tbaa !13
  %570 = fsub double %564, %569
  %571 = load ptr, ptr %4, align 8, !tbaa !9
  %572 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %570, ptr noundef %571)
  %573 = load double, ptr %11, align 8, !tbaa !13
  %574 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %572, double noundef %573)
  br label %575

575:                                              ; preds = %563, %547
  %576 = phi i1 [ true, %547 ], [ %574, %563 ]
  %577 = zext i1 %576 to i8
  store i8 %577, ptr %7, align 1, !tbaa !5
  %578 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %579 = trunc i8 %578 to i1
  br i1 %579, label %592, label %580

580:                                              ; preds = %575
  %581 = load double, ptr %23, align 8, !tbaa !13
  %582 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %583 = load ptr, ptr %582, align 8, !tbaa !17
  %584 = load i64, ptr %21, align 8, !tbaa !11
  %585 = getelementptr inbounds double, ptr %583, i64 %584
  %586 = load double, ptr %585, align 8, !tbaa !13
  %587 = fsub double %581, %586
  %588 = load ptr, ptr %4, align 8, !tbaa !9
  %589 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %587, ptr noundef %588)
  %590 = load double, ptr %11, align 8, !tbaa !13
  %591 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %589, double noundef %590)
  br label %592

592:                                              ; preds = %580, %575
  %593 = phi i1 [ true, %575 ], [ %591, %580 ]
  %594 = zext i1 %593 to i8
  store i8 %594, ptr %7, align 1, !tbaa !5
  %595 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %596 = load ptr, ptr %595, align 8, !tbaa !17
  %597 = load i64, ptr %21, align 8, !tbaa !11
  %598 = getelementptr inbounds double, ptr %596, i64 %597
  %599 = load double, ptr %598, align 8, !tbaa !13
  %600 = load ptr, ptr %4, align 8, !tbaa !9
  %601 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %600)
  %602 = sitofp i64 %601 to double
  %603 = fadd double %599, %602
  %604 = fsub double %603, 5.000000e+00
  %605 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline3calcEPNS_19pspline3interpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %51, double noundef %604, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %605)
  %606 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %607 = trunc i8 %606 to i1
  br i1 %607, label %620, label %608

608:                                              ; preds = %592
  %609 = load double, ptr %22, align 8, !tbaa !13
  %610 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %611 = load ptr, ptr %610, align 8, !tbaa !17
  %612 = load i64, ptr %21, align 8, !tbaa !11
  %613 = getelementptr inbounds double, ptr %611, i64 %612
  %614 = load double, ptr %613, align 8, !tbaa !13
  %615 = fsub double %609, %614
  %616 = load ptr, ptr %4, align 8, !tbaa !9
  %617 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %615, ptr noundef %616)
  %618 = load double, ptr %11, align 8, !tbaa !13
  %619 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %617, double noundef %618)
  br label %620

620:                                              ; preds = %608, %592
  %621 = phi i1 [ true, %592 ], [ %619, %608 ]
  %622 = zext i1 %621 to i8
  store i8 %622, ptr %8, align 1, !tbaa !5
  %623 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %624 = trunc i8 %623 to i1
  br i1 %624, label %637, label %625

625:                                              ; preds = %620
  %626 = load double, ptr %23, align 8, !tbaa !13
  %627 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %628 = load ptr, ptr %627, align 8, !tbaa !17
  %629 = load i64, ptr %21, align 8, !tbaa !11
  %630 = getelementptr inbounds double, ptr %628, i64 %629
  %631 = load double, ptr %630, align 8, !tbaa !13
  %632 = fsub double %626, %631
  %633 = load ptr, ptr %4, align 8, !tbaa !9
  %634 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %632, ptr noundef %633)
  %635 = load double, ptr %11, align 8, !tbaa !13
  %636 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %634, double noundef %635)
  br label %637

637:                                              ; preds = %625, %620
  %638 = phi i1 [ true, %620 ], [ %636, %625 ]
  %639 = zext i1 %638 to i8
  store i8 %639, ptr %8, align 1, !tbaa !5
  %640 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %641 = trunc i8 %640 to i1
  br i1 %641, label %654, label %642

642:                                              ; preds = %637
  %643 = load double, ptr %24, align 8, !tbaa !13
  %644 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %645 = load ptr, ptr %644, align 8, !tbaa !17
  %646 = load i64, ptr %21, align 8, !tbaa !11
  %647 = getelementptr inbounds double, ptr %645, i64 %646
  %648 = load double, ptr %647, align 8, !tbaa !13
  %649 = fsub double %643, %648
  %650 = load ptr, ptr %4, align 8, !tbaa !9
  %651 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %649, ptr noundef %650)
  %652 = load double, ptr %11, align 8, !tbaa !13
  %653 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %651, double noundef %652)
  br label %654

654:                                              ; preds = %642, %637
  %655 = phi i1 [ true, %637 ], [ %653, %642 ]
  %656 = zext i1 %655 to i8
  store i8 %656, ptr %8, align 1, !tbaa !5
  %657 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %658 = load ptr, ptr %657, align 8, !tbaa !17
  %659 = load i64, ptr %21, align 8, !tbaa !11
  %660 = getelementptr inbounds double, ptr %658, i64 %659
  %661 = load double, ptr %660, align 8, !tbaa !13
  %662 = load ptr, ptr %4, align 8, !tbaa !9
  %663 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %662)
  %664 = sitofp i64 %663 to double
  %665 = fadd double %661, %664
  %666 = fsub double %665, 5.000000e+00
  %667 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline3diffEPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef %51, double noundef %666, ptr noundef %22, ptr noundef %28, ptr noundef %23, ptr noundef %29, ptr noundef %24, ptr noundef %30, ptr noundef %667)
  %668 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %669 = trunc i8 %668 to i1
  br i1 %669, label %682, label %670

670:                                              ; preds = %654
  %671 = load double, ptr %22, align 8, !tbaa !13
  %672 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %673 = load ptr, ptr %672, align 8, !tbaa !17
  %674 = load i64, ptr %21, align 8, !tbaa !11
  %675 = getelementptr inbounds double, ptr %673, i64 %674
  %676 = load double, ptr %675, align 8, !tbaa !13
  %677 = fsub double %671, %676
  %678 = load ptr, ptr %4, align 8, !tbaa !9
  %679 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %677, ptr noundef %678)
  %680 = load double, ptr %11, align 8, !tbaa !13
  %681 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %679, double noundef %680)
  br label %682

682:                                              ; preds = %670, %654
  %683 = phi i1 [ true, %654 ], [ %681, %670 ]
  %684 = zext i1 %683 to i8
  store i8 %684, ptr %8, align 1, !tbaa !5
  %685 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %686 = trunc i8 %685 to i1
  br i1 %686, label %699, label %687

687:                                              ; preds = %682
  %688 = load double, ptr %23, align 8, !tbaa !13
  %689 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %690 = load ptr, ptr %689, align 8, !tbaa !17
  %691 = load i64, ptr %21, align 8, !tbaa !11
  %692 = getelementptr inbounds double, ptr %690, i64 %691
  %693 = load double, ptr %692, align 8, !tbaa !13
  %694 = fsub double %688, %693
  %695 = load ptr, ptr %4, align 8, !tbaa !9
  %696 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %694, ptr noundef %695)
  %697 = load double, ptr %11, align 8, !tbaa !13
  %698 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %696, double noundef %697)
  br label %699

699:                                              ; preds = %687, %682
  %700 = phi i1 [ true, %682 ], [ %698, %687 ]
  %701 = zext i1 %700 to i8
  store i8 %701, ptr %8, align 1, !tbaa !5
  %702 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %703 = trunc i8 %702 to i1
  br i1 %703, label %716, label %704

704:                                              ; preds = %699
  %705 = load double, ptr %24, align 8, !tbaa !13
  %706 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %707 = load ptr, ptr %706, align 8, !tbaa !17
  %708 = load i64, ptr %21, align 8, !tbaa !11
  %709 = getelementptr inbounds double, ptr %707, i64 %708
  %710 = load double, ptr %709, align 8, !tbaa !13
  %711 = fsub double %705, %710
  %712 = load ptr, ptr %4, align 8, !tbaa !9
  %713 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %711, ptr noundef %712)
  %714 = load double, ptr %11, align 8, !tbaa !13
  %715 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %713, double noundef %714)
  br label %716

716:                                              ; preds = %704, %699
  %717 = phi i1 [ true, %699 ], [ %715, %704 ]
  %718 = zext i1 %717 to i8
  store i8 %718, ptr %8, align 1, !tbaa !5
  %719 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %720 = load ptr, ptr %719, align 8, !tbaa !17
  %721 = load i64, ptr %21, align 8, !tbaa !11
  %722 = getelementptr inbounds double, ptr %720, i64 %721
  %723 = load double, ptr %722, align 8, !tbaa !13
  %724 = load ptr, ptr %4, align 8, !tbaa !9
  %725 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %724)
  %726 = sitofp i64 %725 to double
  %727 = fadd double %723, %726
  %728 = fsub double %727, 5.000000e+00
  %729 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pspline3diff2EPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef %51, double noundef %728, ptr noundef %22, ptr noundef %28, ptr noundef %34, ptr noundef %23, ptr noundef %29, ptr noundef %35, ptr noundef %24, ptr noundef %30, ptr noundef %36, ptr noundef %729)
  %730 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %731 = trunc i8 %730 to i1
  br i1 %731, label %744, label %732

732:                                              ; preds = %716
  %733 = load double, ptr %22, align 8, !tbaa !13
  %734 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %735 = load ptr, ptr %734, align 8, !tbaa !17
  %736 = load i64, ptr %21, align 8, !tbaa !11
  %737 = getelementptr inbounds double, ptr %735, i64 %736
  %738 = load double, ptr %737, align 8, !tbaa !13
  %739 = fsub double %733, %738
  %740 = load ptr, ptr %4, align 8, !tbaa !9
  %741 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %739, ptr noundef %740)
  %742 = load double, ptr %11, align 8, !tbaa !13
  %743 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %741, double noundef %742)
  br label %744

744:                                              ; preds = %732, %716
  %745 = phi i1 [ true, %716 ], [ %743, %732 ]
  %746 = zext i1 %745 to i8
  store i8 %746, ptr %8, align 1, !tbaa !5
  %747 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %748 = trunc i8 %747 to i1
  br i1 %748, label %761, label %749

749:                                              ; preds = %744
  %750 = load double, ptr %23, align 8, !tbaa !13
  %751 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %752 = load ptr, ptr %751, align 8, !tbaa !17
  %753 = load i64, ptr %21, align 8, !tbaa !11
  %754 = getelementptr inbounds double, ptr %752, i64 %753
  %755 = load double, ptr %754, align 8, !tbaa !13
  %756 = fsub double %750, %755
  %757 = load ptr, ptr %4, align 8, !tbaa !9
  %758 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %756, ptr noundef %757)
  %759 = load double, ptr %11, align 8, !tbaa !13
  %760 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %758, double noundef %759)
  br label %761

761:                                              ; preds = %749, %744
  %762 = phi i1 [ true, %744 ], [ %760, %749 ]
  %763 = zext i1 %762 to i8
  store i8 %763, ptr %8, align 1, !tbaa !5
  %764 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %765 = trunc i8 %764 to i1
  br i1 %765, label %778, label %766

766:                                              ; preds = %761
  %767 = load double, ptr %24, align 8, !tbaa !13
  %768 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %769 = load ptr, ptr %768, align 8, !tbaa !17
  %770 = load i64, ptr %21, align 8, !tbaa !11
  %771 = getelementptr inbounds double, ptr %769, i64 %770
  %772 = load double, ptr %771, align 8, !tbaa !13
  %773 = fsub double %767, %772
  %774 = load ptr, ptr %4, align 8, !tbaa !9
  %775 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %773, ptr noundef %774)
  %776 = load double, ptr %11, align 8, !tbaa !13
  %777 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %775, double noundef %776)
  br label %778

778:                                              ; preds = %766, %761
  %779 = phi i1 [ true, %761 ], [ %777, %766 ]
  %780 = zext i1 %779 to i8
  store i8 %780, ptr %8, align 1, !tbaa !5
  br label %781

781:                                              ; preds = %778
  %782 = load i64, ptr %21, align 8, !tbaa !11
  %783 = add nsw i64 %782, 1
  store i64 %783, ptr %21, align 8, !tbaa !11
  br label %454, !llvm.loop !24

784:                                              ; preds = %454
  %785 = load ptr, ptr %4, align 8, !tbaa !9
  %786 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %785)
  store double %786, ptr %40, align 8, !tbaa !13
  %787 = load double, ptr %40, align 8, !tbaa !13
  %788 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline2calcEPNS_19pspline2interpolantEdPdS2_PNS_8ae_stateE(ptr noundef %50, double noundef %787, ptr noundef %22, ptr noundef %23, ptr noundef %788)
  %789 = load double, ptr %40, align 8, !tbaa !13
  %790 = load ptr, ptr %4, align 8, !tbaa !9
  %791 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %790)
  %792 = sitofp i64 %791 to double
  %793 = fadd double %789, %792
  %794 = fsub double %793, 5.000000e+00
  %795 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline2calcEPNS_19pspline2interpolantEdPdS2_PNS_8ae_stateE(ptr noundef %50, double noundef %794, ptr noundef %25, ptr noundef %26, ptr noundef %795)
  %796 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %797 = trunc i8 %796 to i1
  br i1 %797, label %806, label %798

798:                                              ; preds = %784
  %799 = load double, ptr %22, align 8, !tbaa !13
  %800 = load double, ptr %25, align 8, !tbaa !13
  %801 = fsub double %799, %800
  %802 = load ptr, ptr %4, align 8, !tbaa !9
  %803 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %801, ptr noundef %802)
  %804 = load double, ptr %11, align 8, !tbaa !13
  %805 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %803, double noundef %804)
  br label %806

806:                                              ; preds = %798, %784
  %807 = phi i1 [ true, %784 ], [ %805, %798 ]
  %808 = zext i1 %807 to i8
  store i8 %808, ptr %7, align 1, !tbaa !5
  %809 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %810 = trunc i8 %809 to i1
  br i1 %810, label %819, label %811

811:                                              ; preds = %806
  %812 = load double, ptr %23, align 8, !tbaa !13
  %813 = load double, ptr %26, align 8, !tbaa !13
  %814 = fsub double %812, %813
  %815 = load ptr, ptr %4, align 8, !tbaa !9
  %816 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %814, ptr noundef %815)
  %817 = load double, ptr %11, align 8, !tbaa !13
  %818 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %816, double noundef %817)
  br label %819

819:                                              ; preds = %811, %806
  %820 = phi i1 [ true, %806 ], [ %818, %811 ]
  %821 = zext i1 %820 to i8
  store i8 %821, ptr %7, align 1, !tbaa !5
  %822 = load double, ptr %40, align 8, !tbaa !13
  %823 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline3calcEPNS_19pspline3interpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %51, double noundef %822, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %823)
  %824 = load double, ptr %40, align 8, !tbaa !13
  %825 = load ptr, ptr %4, align 8, !tbaa !9
  %826 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %825)
  %827 = sitofp i64 %826 to double
  %828 = fadd double %824, %827
  %829 = fsub double %828, 5.000000e+00
  %830 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline3calcEPNS_19pspline3interpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %51, double noundef %829, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %830)
  %831 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %832 = trunc i8 %831 to i1
  br i1 %832, label %841, label %833

833:                                              ; preds = %819
  %834 = load double, ptr %22, align 8, !tbaa !13
  %835 = load double, ptr %25, align 8, !tbaa !13
  %836 = fsub double %834, %835
  %837 = load ptr, ptr %4, align 8, !tbaa !9
  %838 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %836, ptr noundef %837)
  %839 = load double, ptr %11, align 8, !tbaa !13
  %840 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %838, double noundef %839)
  br label %841

841:                                              ; preds = %833, %819
  %842 = phi i1 [ true, %819 ], [ %840, %833 ]
  %843 = zext i1 %842 to i8
  store i8 %843, ptr %8, align 1, !tbaa !5
  %844 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %845 = trunc i8 %844 to i1
  br i1 %845, label %854, label %846

846:                                              ; preds = %841
  %847 = load double, ptr %23, align 8, !tbaa !13
  %848 = load double, ptr %26, align 8, !tbaa !13
  %849 = fsub double %847, %848
  %850 = load ptr, ptr %4, align 8, !tbaa !9
  %851 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %849, ptr noundef %850)
  %852 = load double, ptr %11, align 8, !tbaa !13
  %853 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %851, double noundef %852)
  br label %854

854:                                              ; preds = %846, %841
  %855 = phi i1 [ true, %841 ], [ %853, %846 ]
  %856 = zext i1 %855 to i8
  store i8 %856, ptr %8, align 1, !tbaa !5
  %857 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %858 = trunc i8 %857 to i1
  br i1 %858, label %867, label %859

859:                                              ; preds = %854
  %860 = load double, ptr %24, align 8, !tbaa !13
  %861 = load double, ptr %27, align 8, !tbaa !13
  %862 = fsub double %860, %861
  %863 = load ptr, ptr %4, align 8, !tbaa !9
  %864 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %862, ptr noundef %863)
  %865 = load double, ptr %11, align 8, !tbaa !13
  %866 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %864, double noundef %865)
  br label %867

867:                                              ; preds = %859, %854
  %868 = phi i1 [ true, %854 ], [ %866, %859 ]
  %869 = zext i1 %868 to i8
  store i8 %869, ptr %8, align 1, !tbaa !5
  %870 = load i64, ptr %14, align 8, !tbaa !11
  %871 = icmp eq i64 %870, 1
  br i1 %871, label %875, label %872

872:                                              ; preds = %867
  %873 = load i64, ptr %14, align 8, !tbaa !11
  %874 = icmp eq i64 %873, 2
  br label %875

875:                                              ; preds = %872, %867
  %876 = phi i1 [ true, %867 ], [ %874, %872 ]
  %877 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %876, ptr noundef @.str.631, ptr noundef %877)
  store double 5.000000e-14, ptr %40, align 8, !tbaa !13
  %878 = load double, ptr %40, align 8, !tbaa !13
  %879 = fsub double 1.000000e+00, %878
  store double %879, ptr %41, align 8, !tbaa !13
  %880 = load double, ptr %40, align 8, !tbaa !13
  %881 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline2calcEPNS_19pspline2interpolantEdPdS2_PNS_8ae_stateE(ptr noundef %50, double noundef %880, ptr noundef %22, ptr noundef %23, ptr noundef %881)
  %882 = load double, ptr %41, align 8, !tbaa !13
  %883 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline2calcEPNS_19pspline2interpolantEdPdS2_PNS_8ae_stateE(ptr noundef %50, double noundef %882, ptr noundef %25, ptr noundef %26, ptr noundef %883)
  %884 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %885 = trunc i8 %884 to i1
  br i1 %885, label %894, label %886

886:                                              ; preds = %875
  %887 = load double, ptr %22, align 8, !tbaa !13
  %888 = load double, ptr %25, align 8, !tbaa !13
  %889 = fsub double %887, %888
  %890 = load ptr, ptr %4, align 8, !tbaa !9
  %891 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %889, ptr noundef %890)
  %892 = load double, ptr %11, align 8, !tbaa !13
  %893 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %891, double noundef %892)
  br label %894

894:                                              ; preds = %886, %875
  %895 = phi i1 [ true, %875 ], [ %893, %886 ]
  %896 = zext i1 %895 to i8
  store i8 %896, ptr %7, align 1, !tbaa !5
  %897 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %898 = trunc i8 %897 to i1
  br i1 %898, label %907, label %899

899:                                              ; preds = %894
  %900 = load double, ptr %23, align 8, !tbaa !13
  %901 = load double, ptr %26, align 8, !tbaa !13
  %902 = fsub double %900, %901
  %903 = load ptr, ptr %4, align 8, !tbaa !9
  %904 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %902, ptr noundef %903)
  %905 = load double, ptr %11, align 8, !tbaa !13
  %906 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %904, double noundef %905)
  br label %907

907:                                              ; preds = %899, %894
  %908 = phi i1 [ true, %894 ], [ %906, %899 ]
  %909 = zext i1 %908 to i8
  store i8 %909, ptr %7, align 1, !tbaa !5
  %910 = load double, ptr %40, align 8, !tbaa !13
  %911 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline2diffEPNS_19pspline2interpolantEdPdS2_S2_S2_PNS_8ae_stateE(ptr noundef %50, double noundef %910, ptr noundef %22, ptr noundef %28, ptr noundef %23, ptr noundef %29, ptr noundef %911)
  %912 = load double, ptr %41, align 8, !tbaa !13
  %913 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline2diffEPNS_19pspline2interpolantEdPdS2_S2_S2_PNS_8ae_stateE(ptr noundef %50, double noundef %912, ptr noundef %25, ptr noundef %31, ptr noundef %26, ptr noundef %32, ptr noundef %913)
  %914 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %915 = trunc i8 %914 to i1
  br i1 %915, label %924, label %916

916:                                              ; preds = %907
  %917 = load double, ptr %22, align 8, !tbaa !13
  %918 = load double, ptr %25, align 8, !tbaa !13
  %919 = fsub double %917, %918
  %920 = load ptr, ptr %4, align 8, !tbaa !9
  %921 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %919, ptr noundef %920)
  %922 = load double, ptr %11, align 8, !tbaa !13
  %923 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %921, double noundef %922)
  br label %924

924:                                              ; preds = %916, %907
  %925 = phi i1 [ true, %907 ], [ %923, %916 ]
  %926 = zext i1 %925 to i8
  store i8 %926, ptr %7, align 1, !tbaa !5
  %927 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %928 = trunc i8 %927 to i1
  br i1 %928, label %937, label %929

929:                                              ; preds = %924
  %930 = load double, ptr %23, align 8, !tbaa !13
  %931 = load double, ptr %26, align 8, !tbaa !13
  %932 = fsub double %930, %931
  %933 = load ptr, ptr %4, align 8, !tbaa !9
  %934 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %932, ptr noundef %933)
  %935 = load double, ptr %11, align 8, !tbaa !13
  %936 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %934, double noundef %935)
  br label %937

937:                                              ; preds = %929, %924
  %938 = phi i1 [ true, %924 ], [ %936, %929 ]
  %939 = zext i1 %938 to i8
  store i8 %939, ptr %7, align 1, !tbaa !5
  %940 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %941 = trunc i8 %940 to i1
  br i1 %941, label %950, label %942

942:                                              ; preds = %937
  %943 = load double, ptr %28, align 8, !tbaa !13
  %944 = load double, ptr %31, align 8, !tbaa !13
  %945 = fsub double %943, %944
  %946 = load ptr, ptr %4, align 8, !tbaa !9
  %947 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %945, ptr noundef %946)
  %948 = load double, ptr %10, align 8, !tbaa !13
  %949 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %947, double noundef %948)
  br label %950

950:                                              ; preds = %942, %937
  %951 = phi i1 [ true, %937 ], [ %949, %942 ]
  %952 = zext i1 %951 to i8
  store i8 %952, ptr %7, align 1, !tbaa !5
  %953 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %954 = trunc i8 %953 to i1
  br i1 %954, label %963, label %955

955:                                              ; preds = %950
  %956 = load double, ptr %29, align 8, !tbaa !13
  %957 = load double, ptr %32, align 8, !tbaa !13
  %958 = fsub double %956, %957
  %959 = load ptr, ptr %4, align 8, !tbaa !9
  %960 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %958, ptr noundef %959)
  %961 = load double, ptr %10, align 8, !tbaa !13
  %962 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %960, double noundef %961)
  br label %963

963:                                              ; preds = %955, %950
  %964 = phi i1 [ true, %950 ], [ %962, %955 ]
  %965 = zext i1 %964 to i8
  store i8 %965, ptr %7, align 1, !tbaa !5
  %966 = load double, ptr %40, align 8, !tbaa !13
  %967 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pspline2diff2EPNS_19pspline2interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef %50, double noundef %966, ptr noundef %22, ptr noundef %28, ptr noundef %34, ptr noundef %23, ptr noundef %29, ptr noundef %35, ptr noundef %967)
  %968 = load double, ptr %41, align 8, !tbaa !13
  %969 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pspline2diff2EPNS_19pspline2interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef %50, double noundef %968, ptr noundef %25, ptr noundef %31, ptr noundef %37, ptr noundef %26, ptr noundef %32, ptr noundef %38, ptr noundef %969)
  %970 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %971 = trunc i8 %970 to i1
  br i1 %971, label %980, label %972

972:                                              ; preds = %963
  %973 = load double, ptr %22, align 8, !tbaa !13
  %974 = load double, ptr %25, align 8, !tbaa !13
  %975 = fsub double %973, %974
  %976 = load ptr, ptr %4, align 8, !tbaa !9
  %977 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %975, ptr noundef %976)
  %978 = load double, ptr %11, align 8, !tbaa !13
  %979 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %977, double noundef %978)
  br label %980

980:                                              ; preds = %972, %963
  %981 = phi i1 [ true, %963 ], [ %979, %972 ]
  %982 = zext i1 %981 to i8
  store i8 %982, ptr %7, align 1, !tbaa !5
  %983 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %984 = trunc i8 %983 to i1
  br i1 %984, label %993, label %985

985:                                              ; preds = %980
  %986 = load double, ptr %23, align 8, !tbaa !13
  %987 = load double, ptr %26, align 8, !tbaa !13
  %988 = fsub double %986, %987
  %989 = load ptr, ptr %4, align 8, !tbaa !9
  %990 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %988, ptr noundef %989)
  %991 = load double, ptr %11, align 8, !tbaa !13
  %992 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %990, double noundef %991)
  br label %993

993:                                              ; preds = %985, %980
  %994 = phi i1 [ true, %980 ], [ %992, %985 ]
  %995 = zext i1 %994 to i8
  store i8 %995, ptr %7, align 1, !tbaa !5
  %996 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %997 = trunc i8 %996 to i1
  br i1 %997, label %1006, label %998

998:                                              ; preds = %993
  %999 = load double, ptr %28, align 8, !tbaa !13
  %1000 = load double, ptr %31, align 8, !tbaa !13
  %1001 = fsub double %999, %1000
  %1002 = load ptr, ptr %4, align 8, !tbaa !9
  %1003 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1001, ptr noundef %1002)
  %1004 = load double, ptr %10, align 8, !tbaa !13
  %1005 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1003, double noundef %1004)
  br label %1006

1006:                                             ; preds = %998, %993
  %1007 = phi i1 [ true, %993 ], [ %1005, %998 ]
  %1008 = zext i1 %1007 to i8
  store i8 %1008, ptr %7, align 1, !tbaa !5
  %1009 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1010 = trunc i8 %1009 to i1
  br i1 %1010, label %1019, label %1011

1011:                                             ; preds = %1006
  %1012 = load double, ptr %29, align 8, !tbaa !13
  %1013 = load double, ptr %32, align 8, !tbaa !13
  %1014 = fsub double %1012, %1013
  %1015 = load ptr, ptr %4, align 8, !tbaa !9
  %1016 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1014, ptr noundef %1015)
  %1017 = load double, ptr %10, align 8, !tbaa !13
  %1018 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1016, double noundef %1017)
  br label %1019

1019:                                             ; preds = %1011, %1006
  %1020 = phi i1 [ true, %1006 ], [ %1018, %1011 ]
  %1021 = zext i1 %1020 to i8
  store i8 %1021, ptr %7, align 1, !tbaa !5
  %1022 = load i64, ptr %14, align 8, !tbaa !11
  %1023 = icmp eq i64 %1022, 2
  br i1 %1023, label %1024, label %1051

1024:                                             ; preds = %1019
  %1025 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1026 = trunc i8 %1025 to i1
  br i1 %1026, label %1035, label %1027

1027:                                             ; preds = %1024
  %1028 = load double, ptr %34, align 8, !tbaa !13
  %1029 = load double, ptr %37, align 8, !tbaa !13
  %1030 = fsub double %1028, %1029
  %1031 = load ptr, ptr %4, align 8, !tbaa !9
  %1032 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1030, ptr noundef %1031)
  %1033 = load double, ptr %10, align 8, !tbaa !13
  %1034 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1032, double noundef %1033)
  br label %1035

1035:                                             ; preds = %1027, %1024
  %1036 = phi i1 [ true, %1024 ], [ %1034, %1027 ]
  %1037 = zext i1 %1036 to i8
  store i8 %1037, ptr %7, align 1, !tbaa !5
  %1038 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1039 = trunc i8 %1038 to i1
  br i1 %1039, label %1048, label %1040

1040:                                             ; preds = %1035
  %1041 = load double, ptr %35, align 8, !tbaa !13
  %1042 = load double, ptr %38, align 8, !tbaa !13
  %1043 = fsub double %1041, %1042
  %1044 = load ptr, ptr %4, align 8, !tbaa !9
  %1045 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1043, ptr noundef %1044)
  %1046 = load double, ptr %10, align 8, !tbaa !13
  %1047 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1045, double noundef %1046)
  br label %1048

1048:                                             ; preds = %1040, %1035
  %1049 = phi i1 [ true, %1035 ], [ %1047, %1040 ]
  %1050 = zext i1 %1049 to i8
  store i8 %1050, ptr %7, align 1, !tbaa !5
  br label %1051

1051:                                             ; preds = %1048, %1019
  %1052 = load i64, ptr %14, align 8, !tbaa !11
  %1053 = icmp eq i64 %1052, 1
  br i1 %1053, label %1057, label %1054

1054:                                             ; preds = %1051
  %1055 = load i64, ptr %14, align 8, !tbaa !11
  %1056 = icmp eq i64 %1055, 2
  br label %1057

1057:                                             ; preds = %1054, %1051
  %1058 = phi i1 [ true, %1051 ], [ %1056, %1054 ]
  %1059 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %1058, ptr noundef @.str.631, ptr noundef %1059)
  store double 5.000000e-14, ptr %40, align 8, !tbaa !13
  %1060 = load double, ptr %40, align 8, !tbaa !13
  %1061 = fsub double 1.000000e+00, %1060
  store double %1061, ptr %41, align 8, !tbaa !13
  %1062 = load double, ptr %40, align 8, !tbaa !13
  %1063 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline3calcEPNS_19pspline3interpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %51, double noundef %1062, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %1063)
  %1064 = load double, ptr %41, align 8, !tbaa !13
  %1065 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline3calcEPNS_19pspline3interpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %51, double noundef %1064, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %1065)
  %1066 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1067 = trunc i8 %1066 to i1
  br i1 %1067, label %1076, label %1068

1068:                                             ; preds = %1057
  %1069 = load double, ptr %22, align 8, !tbaa !13
  %1070 = load double, ptr %25, align 8, !tbaa !13
  %1071 = fsub double %1069, %1070
  %1072 = load ptr, ptr %4, align 8, !tbaa !9
  %1073 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1071, ptr noundef %1072)
  %1074 = load double, ptr %11, align 8, !tbaa !13
  %1075 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1073, double noundef %1074)
  br label %1076

1076:                                             ; preds = %1068, %1057
  %1077 = phi i1 [ true, %1057 ], [ %1075, %1068 ]
  %1078 = zext i1 %1077 to i8
  store i8 %1078, ptr %8, align 1, !tbaa !5
  %1079 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1080 = trunc i8 %1079 to i1
  br i1 %1080, label %1089, label %1081

1081:                                             ; preds = %1076
  %1082 = load double, ptr %23, align 8, !tbaa !13
  %1083 = load double, ptr %26, align 8, !tbaa !13
  %1084 = fsub double %1082, %1083
  %1085 = load ptr, ptr %4, align 8, !tbaa !9
  %1086 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1084, ptr noundef %1085)
  %1087 = load double, ptr %11, align 8, !tbaa !13
  %1088 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1086, double noundef %1087)
  br label %1089

1089:                                             ; preds = %1081, %1076
  %1090 = phi i1 [ true, %1076 ], [ %1088, %1081 ]
  %1091 = zext i1 %1090 to i8
  store i8 %1091, ptr %8, align 1, !tbaa !5
  %1092 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1093 = trunc i8 %1092 to i1
  br i1 %1093, label %1102, label %1094

1094:                                             ; preds = %1089
  %1095 = load double, ptr %24, align 8, !tbaa !13
  %1096 = load double, ptr %27, align 8, !tbaa !13
  %1097 = fsub double %1095, %1096
  %1098 = load ptr, ptr %4, align 8, !tbaa !9
  %1099 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1097, ptr noundef %1098)
  %1100 = load double, ptr %11, align 8, !tbaa !13
  %1101 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1099, double noundef %1100)
  br label %1102

1102:                                             ; preds = %1094, %1089
  %1103 = phi i1 [ true, %1089 ], [ %1101, %1094 ]
  %1104 = zext i1 %1103 to i8
  store i8 %1104, ptr %8, align 1, !tbaa !5
  %1105 = load double, ptr %40, align 8, !tbaa !13
  %1106 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline3diffEPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef %51, double noundef %1105, ptr noundef %22, ptr noundef %28, ptr noundef %23, ptr noundef %29, ptr noundef %24, ptr noundef %30, ptr noundef %1106)
  %1107 = load double, ptr %41, align 8, !tbaa !13
  %1108 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline3diffEPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef %51, double noundef %1107, ptr noundef %25, ptr noundef %31, ptr noundef %26, ptr noundef %32, ptr noundef %27, ptr noundef %33, ptr noundef %1108)
  %1109 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1110 = trunc i8 %1109 to i1
  br i1 %1110, label %1119, label %1111

1111:                                             ; preds = %1102
  %1112 = load double, ptr %22, align 8, !tbaa !13
  %1113 = load double, ptr %25, align 8, !tbaa !13
  %1114 = fsub double %1112, %1113
  %1115 = load ptr, ptr %4, align 8, !tbaa !9
  %1116 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1114, ptr noundef %1115)
  %1117 = load double, ptr %11, align 8, !tbaa !13
  %1118 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1116, double noundef %1117)
  br label %1119

1119:                                             ; preds = %1111, %1102
  %1120 = phi i1 [ true, %1102 ], [ %1118, %1111 ]
  %1121 = zext i1 %1120 to i8
  store i8 %1121, ptr %8, align 1, !tbaa !5
  %1122 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1123 = trunc i8 %1122 to i1
  br i1 %1123, label %1132, label %1124

1124:                                             ; preds = %1119
  %1125 = load double, ptr %23, align 8, !tbaa !13
  %1126 = load double, ptr %26, align 8, !tbaa !13
  %1127 = fsub double %1125, %1126
  %1128 = load ptr, ptr %4, align 8, !tbaa !9
  %1129 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1127, ptr noundef %1128)
  %1130 = load double, ptr %11, align 8, !tbaa !13
  %1131 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1129, double noundef %1130)
  br label %1132

1132:                                             ; preds = %1124, %1119
  %1133 = phi i1 [ true, %1119 ], [ %1131, %1124 ]
  %1134 = zext i1 %1133 to i8
  store i8 %1134, ptr %8, align 1, !tbaa !5
  %1135 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1136 = trunc i8 %1135 to i1
  br i1 %1136, label %1145, label %1137

1137:                                             ; preds = %1132
  %1138 = load double, ptr %24, align 8, !tbaa !13
  %1139 = load double, ptr %27, align 8, !tbaa !13
  %1140 = fsub double %1138, %1139
  %1141 = load ptr, ptr %4, align 8, !tbaa !9
  %1142 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1140, ptr noundef %1141)
  %1143 = load double, ptr %11, align 8, !tbaa !13
  %1144 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1142, double noundef %1143)
  br label %1145

1145:                                             ; preds = %1137, %1132
  %1146 = phi i1 [ true, %1132 ], [ %1144, %1137 ]
  %1147 = zext i1 %1146 to i8
  store i8 %1147, ptr %8, align 1, !tbaa !5
  %1148 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1149 = trunc i8 %1148 to i1
  br i1 %1149, label %1158, label %1150

1150:                                             ; preds = %1145
  %1151 = load double, ptr %28, align 8, !tbaa !13
  %1152 = load double, ptr %31, align 8, !tbaa !13
  %1153 = fsub double %1151, %1152
  %1154 = load ptr, ptr %4, align 8, !tbaa !9
  %1155 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1153, ptr noundef %1154)
  %1156 = load double, ptr %10, align 8, !tbaa !13
  %1157 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1155, double noundef %1156)
  br label %1158

1158:                                             ; preds = %1150, %1145
  %1159 = phi i1 [ true, %1145 ], [ %1157, %1150 ]
  %1160 = zext i1 %1159 to i8
  store i8 %1160, ptr %8, align 1, !tbaa !5
  %1161 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1162 = trunc i8 %1161 to i1
  br i1 %1162, label %1171, label %1163

1163:                                             ; preds = %1158
  %1164 = load double, ptr %29, align 8, !tbaa !13
  %1165 = load double, ptr %32, align 8, !tbaa !13
  %1166 = fsub double %1164, %1165
  %1167 = load ptr, ptr %4, align 8, !tbaa !9
  %1168 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1166, ptr noundef %1167)
  %1169 = load double, ptr %10, align 8, !tbaa !13
  %1170 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1168, double noundef %1169)
  br label %1171

1171:                                             ; preds = %1163, %1158
  %1172 = phi i1 [ true, %1158 ], [ %1170, %1163 ]
  %1173 = zext i1 %1172 to i8
  store i8 %1173, ptr %8, align 1, !tbaa !5
  %1174 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1175 = trunc i8 %1174 to i1
  br i1 %1175, label %1184, label %1176

1176:                                             ; preds = %1171
  %1177 = load double, ptr %30, align 8, !tbaa !13
  %1178 = load double, ptr %33, align 8, !tbaa !13
  %1179 = fsub double %1177, %1178
  %1180 = load ptr, ptr %4, align 8, !tbaa !9
  %1181 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1179, ptr noundef %1180)
  %1182 = load double, ptr %10, align 8, !tbaa !13
  %1183 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1181, double noundef %1182)
  br label %1184

1184:                                             ; preds = %1176, %1171
  %1185 = phi i1 [ true, %1171 ], [ %1183, %1176 ]
  %1186 = zext i1 %1185 to i8
  store i8 %1186, ptr %8, align 1, !tbaa !5
  %1187 = load double, ptr %40, align 8, !tbaa !13
  %1188 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pspline3diff2EPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef %51, double noundef %1187, ptr noundef %22, ptr noundef %28, ptr noundef %34, ptr noundef %23, ptr noundef %29, ptr noundef %35, ptr noundef %24, ptr noundef %30, ptr noundef %36, ptr noundef %1188)
  %1189 = load double, ptr %41, align 8, !tbaa !13
  %1190 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pspline3diff2EPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef %51, double noundef %1189, ptr noundef %25, ptr noundef %31, ptr noundef %37, ptr noundef %26, ptr noundef %32, ptr noundef %38, ptr noundef %27, ptr noundef %33, ptr noundef %39, ptr noundef %1190)
  %1191 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1192 = trunc i8 %1191 to i1
  br i1 %1192, label %1201, label %1193

1193:                                             ; preds = %1184
  %1194 = load double, ptr %22, align 8, !tbaa !13
  %1195 = load double, ptr %25, align 8, !tbaa !13
  %1196 = fsub double %1194, %1195
  %1197 = load ptr, ptr %4, align 8, !tbaa !9
  %1198 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1196, ptr noundef %1197)
  %1199 = load double, ptr %11, align 8, !tbaa !13
  %1200 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1198, double noundef %1199)
  br label %1201

1201:                                             ; preds = %1193, %1184
  %1202 = phi i1 [ true, %1184 ], [ %1200, %1193 ]
  %1203 = zext i1 %1202 to i8
  store i8 %1203, ptr %8, align 1, !tbaa !5
  %1204 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1205 = trunc i8 %1204 to i1
  br i1 %1205, label %1214, label %1206

1206:                                             ; preds = %1201
  %1207 = load double, ptr %23, align 8, !tbaa !13
  %1208 = load double, ptr %26, align 8, !tbaa !13
  %1209 = fsub double %1207, %1208
  %1210 = load ptr, ptr %4, align 8, !tbaa !9
  %1211 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1209, ptr noundef %1210)
  %1212 = load double, ptr %11, align 8, !tbaa !13
  %1213 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1211, double noundef %1212)
  br label %1214

1214:                                             ; preds = %1206, %1201
  %1215 = phi i1 [ true, %1201 ], [ %1213, %1206 ]
  %1216 = zext i1 %1215 to i8
  store i8 %1216, ptr %8, align 1, !tbaa !5
  %1217 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1218 = trunc i8 %1217 to i1
  br i1 %1218, label %1227, label %1219

1219:                                             ; preds = %1214
  %1220 = load double, ptr %24, align 8, !tbaa !13
  %1221 = load double, ptr %27, align 8, !tbaa !13
  %1222 = fsub double %1220, %1221
  %1223 = load ptr, ptr %4, align 8, !tbaa !9
  %1224 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1222, ptr noundef %1223)
  %1225 = load double, ptr %11, align 8, !tbaa !13
  %1226 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1224, double noundef %1225)
  br label %1227

1227:                                             ; preds = %1219, %1214
  %1228 = phi i1 [ true, %1214 ], [ %1226, %1219 ]
  %1229 = zext i1 %1228 to i8
  store i8 %1229, ptr %8, align 1, !tbaa !5
  %1230 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1231 = trunc i8 %1230 to i1
  br i1 %1231, label %1240, label %1232

1232:                                             ; preds = %1227
  %1233 = load double, ptr %28, align 8, !tbaa !13
  %1234 = load double, ptr %31, align 8, !tbaa !13
  %1235 = fsub double %1233, %1234
  %1236 = load ptr, ptr %4, align 8, !tbaa !9
  %1237 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1235, ptr noundef %1236)
  %1238 = load double, ptr %10, align 8, !tbaa !13
  %1239 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1237, double noundef %1238)
  br label %1240

1240:                                             ; preds = %1232, %1227
  %1241 = phi i1 [ true, %1227 ], [ %1239, %1232 ]
  %1242 = zext i1 %1241 to i8
  store i8 %1242, ptr %8, align 1, !tbaa !5
  %1243 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1244 = trunc i8 %1243 to i1
  br i1 %1244, label %1253, label %1245

1245:                                             ; preds = %1240
  %1246 = load double, ptr %29, align 8, !tbaa !13
  %1247 = load double, ptr %32, align 8, !tbaa !13
  %1248 = fsub double %1246, %1247
  %1249 = load ptr, ptr %4, align 8, !tbaa !9
  %1250 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1248, ptr noundef %1249)
  %1251 = load double, ptr %10, align 8, !tbaa !13
  %1252 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1250, double noundef %1251)
  br label %1253

1253:                                             ; preds = %1245, %1240
  %1254 = phi i1 [ true, %1240 ], [ %1252, %1245 ]
  %1255 = zext i1 %1254 to i8
  store i8 %1255, ptr %8, align 1, !tbaa !5
  %1256 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1257 = trunc i8 %1256 to i1
  br i1 %1257, label %1266, label %1258

1258:                                             ; preds = %1253
  %1259 = load double, ptr %30, align 8, !tbaa !13
  %1260 = load double, ptr %33, align 8, !tbaa !13
  %1261 = fsub double %1259, %1260
  %1262 = load ptr, ptr %4, align 8, !tbaa !9
  %1263 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1261, ptr noundef %1262)
  %1264 = load double, ptr %10, align 8, !tbaa !13
  %1265 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1263, double noundef %1264)
  br label %1266

1266:                                             ; preds = %1258, %1253
  %1267 = phi i1 [ true, %1253 ], [ %1265, %1258 ]
  %1268 = zext i1 %1267 to i8
  store i8 %1268, ptr %8, align 1, !tbaa !5
  %1269 = load i64, ptr %14, align 8, !tbaa !11
  %1270 = icmp eq i64 %1269, 2
  br i1 %1270, label %1271, label %1311

1271:                                             ; preds = %1266
  %1272 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1273 = trunc i8 %1272 to i1
  br i1 %1273, label %1282, label %1274

1274:                                             ; preds = %1271
  %1275 = load double, ptr %34, align 8, !tbaa !13
  %1276 = load double, ptr %37, align 8, !tbaa !13
  %1277 = fsub double %1275, %1276
  %1278 = load ptr, ptr %4, align 8, !tbaa !9
  %1279 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1277, ptr noundef %1278)
  %1280 = load double, ptr %10, align 8, !tbaa !13
  %1281 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1279, double noundef %1280)
  br label %1282

1282:                                             ; preds = %1274, %1271
  %1283 = phi i1 [ true, %1271 ], [ %1281, %1274 ]
  %1284 = zext i1 %1283 to i8
  store i8 %1284, ptr %8, align 1, !tbaa !5
  %1285 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1286 = trunc i8 %1285 to i1
  br i1 %1286, label %1295, label %1287

1287:                                             ; preds = %1282
  %1288 = load double, ptr %35, align 8, !tbaa !13
  %1289 = load double, ptr %38, align 8, !tbaa !13
  %1290 = fsub double %1288, %1289
  %1291 = load ptr, ptr %4, align 8, !tbaa !9
  %1292 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1290, ptr noundef %1291)
  %1293 = load double, ptr %10, align 8, !tbaa !13
  %1294 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1292, double noundef %1293)
  br label %1295

1295:                                             ; preds = %1287, %1282
  %1296 = phi i1 [ true, %1282 ], [ %1294, %1287 ]
  %1297 = zext i1 %1296 to i8
  store i8 %1297, ptr %8, align 1, !tbaa !5
  %1298 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1299 = trunc i8 %1298 to i1
  br i1 %1299, label %1308, label %1300

1300:                                             ; preds = %1295
  %1301 = load double, ptr %36, align 8, !tbaa !13
  %1302 = load double, ptr %39, align 8, !tbaa !13
  %1303 = fsub double %1301, %1302
  %1304 = load ptr, ptr %4, align 8, !tbaa !9
  %1305 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1303, ptr noundef %1304)
  %1306 = load double, ptr %10, align 8, !tbaa !13
  %1307 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1305, double noundef %1306)
  br label %1308

1308:                                             ; preds = %1300, %1295
  %1309 = phi i1 [ true, %1295 ], [ %1307, %1300 ]
  %1310 = zext i1 %1309 to i8
  store i8 %1310, ptr %8, align 1, !tbaa !5
  br label %1311

1311:                                             ; preds = %1308, %1266
  br label %1312

1312:                                             ; preds = %1311, %450
  br label %1313

1313:                                             ; preds = %1312, %217, %211, %107, %100, %93
  %1314 = load i64, ptr %13, align 8, !tbaa !11
  %1315 = add nsw i64 %1314, 1
  store i64 %1315, ptr %13, align 8, !tbaa !11
  br label %81, !llvm.loop !25

1316:                                             ; preds = %81
  br label %1317

1317:                                             ; preds = %1316
  %1318 = load i64, ptr %15, align 8, !tbaa !11
  %1319 = add nsw i64 %1318, 1
  store i64 %1319, ptr %15, align 8, !tbaa !11
  br label %77, !llvm.loop !26

1320:                                             ; preds = %77
  br label %1321

1321:                                             ; preds = %1320
  %1322 = load i64, ptr %14, align 8, !tbaa !11
  %1323 = add nsw i64 %1322, 1
  store i64 %1323, ptr %14, align 8, !tbaa !11
  br label %73, !llvm.loop !27

1324:                                             ; preds = %73
  br label %1325

1325:                                             ; preds = %1324
  %1326 = load i64, ptr %19, align 8, !tbaa !11
  %1327 = add nsw i64 %1326, 1
  store i64 %1327, ptr %19, align 8, !tbaa !11
  br label %68, !llvm.loop !28

1328:                                             ; preds = %68
  store i64 2, ptr %19, align 8, !tbaa !11
  br label %1329

1329:                                             ; preds = %1928, %1328
  %1330 = load i64, ptr %19, align 8, !tbaa !11
  %1331 = load i64, ptr %12, align 8, !tbaa !11
  %1332 = icmp sle i64 %1330, %1331
  br i1 %1332, label %1333, label %1931

1333:                                             ; preds = %1329
  %1334 = load i64, ptr %19, align 8, !tbaa !11
  %1335 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %48, i64 noundef %1334, i64 noundef 2, ptr noundef %1335)
  %1336 = load i64, ptr %19, align 8, !tbaa !11
  %1337 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %49, i64 noundef %1336, i64 noundef 3, ptr noundef %1337)
  %1338 = load i64, ptr %19, align 8, !tbaa !11
  %1339 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20taskgenint1dequidistEddlPNS_9ae_vectorES1_PNS_8ae_stateE(double noundef 0.000000e+00, double noundef 1.000000e+00, i64 noundef %1338, ptr noundef %45, ptr noundef %42, ptr noundef %1339)
  %1340 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %48, i32 0, i32 6
  %1341 = load ptr, ptr %1340, align 8, !tbaa !17
  %1342 = getelementptr inbounds ptr, ptr %1341, i64 0
  %1343 = load ptr, ptr %1342, align 8, !tbaa !9
  %1344 = getelementptr inbounds double, ptr %1343, i64 0
  %1345 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %48, i32 0, i32 2
  %1346 = load i64, ptr %1345, align 8, !tbaa !18
  %1347 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %1348 = load ptr, ptr %1347, align 8, !tbaa !17
  %1349 = getelementptr inbounds double, ptr %1348, i64 0
  %1350 = load i64, ptr %19, align 8, !tbaa !11
  %1351 = sub nsw i64 %1350, 1
  %1352 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %1351)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %1344, i64 noundef %1346, ptr noundef %1349, i64 noundef 1, i64 noundef %1352)
  %1353 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %49, i32 0, i32 6
  %1354 = load ptr, ptr %1353, align 8, !tbaa !17
  %1355 = getelementptr inbounds ptr, ptr %1354, i64 0
  %1356 = load ptr, ptr %1355, align 8, !tbaa !9
  %1357 = getelementptr inbounds double, ptr %1356, i64 0
  %1358 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %49, i32 0, i32 2
  %1359 = load i64, ptr %1358, align 8, !tbaa !18
  %1360 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %1361 = load ptr, ptr %1360, align 8, !tbaa !17
  %1362 = getelementptr inbounds double, ptr %1361, i64 0
  %1363 = load i64, ptr %19, align 8, !tbaa !11
  %1364 = sub nsw i64 %1363, 1
  %1365 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %1364)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %1357, i64 noundef %1359, ptr noundef %1362, i64 noundef 1, i64 noundef %1365)
  %1366 = load i64, ptr %19, align 8, !tbaa !11
  %1367 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20taskgenint1dequidistEddlPNS_9ae_vectorES1_PNS_8ae_stateE(double noundef 0.000000e+00, double noundef 1.000000e+00, i64 noundef %1366, ptr noundef %45, ptr noundef %43, ptr noundef %1367)
  %1368 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %48, i32 0, i32 6
  %1369 = load ptr, ptr %1368, align 8, !tbaa !17
  %1370 = getelementptr inbounds ptr, ptr %1369, i64 0
  %1371 = load ptr, ptr %1370, align 8, !tbaa !9
  %1372 = getelementptr inbounds double, ptr %1371, i64 1
  %1373 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %48, i32 0, i32 2
  %1374 = load i64, ptr %1373, align 8, !tbaa !18
  %1375 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %1376 = load ptr, ptr %1375, align 8, !tbaa !17
  %1377 = getelementptr inbounds double, ptr %1376, i64 0
  %1378 = load i64, ptr %19, align 8, !tbaa !11
  %1379 = sub nsw i64 %1378, 1
  %1380 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %1379)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %1372, i64 noundef %1374, ptr noundef %1377, i64 noundef 1, i64 noundef %1380)
  %1381 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %49, i32 0, i32 6
  %1382 = load ptr, ptr %1381, align 8, !tbaa !17
  %1383 = getelementptr inbounds ptr, ptr %1382, i64 0
  %1384 = load ptr, ptr %1383, align 8, !tbaa !9
  %1385 = getelementptr inbounds double, ptr %1384, i64 1
  %1386 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %49, i32 0, i32 2
  %1387 = load i64, ptr %1386, align 8, !tbaa !18
  %1388 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 4
  %1389 = load ptr, ptr %1388, align 8, !tbaa !17
  %1390 = getelementptr inbounds double, ptr %1389, i64 0
  %1391 = load i64, ptr %19, align 8, !tbaa !11
  %1392 = sub nsw i64 %1391, 1
  %1393 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %1392)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %1385, i64 noundef %1387, ptr noundef %1390, i64 noundef 1, i64 noundef %1393)
  %1394 = load i64, ptr %19, align 8, !tbaa !11
  %1395 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20taskgenint1dequidistEddlPNS_9ae_vectorES1_PNS_8ae_stateE(double noundef 0.000000e+00, double noundef 1.000000e+00, i64 noundef %1394, ptr noundef %45, ptr noundef %44, ptr noundef %1395)
  %1396 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %49, i32 0, i32 6
  %1397 = load ptr, ptr %1396, align 8, !tbaa !17
  %1398 = getelementptr inbounds ptr, ptr %1397, i64 0
  %1399 = load ptr, ptr %1398, align 8, !tbaa !9
  %1400 = getelementptr inbounds double, ptr %1399, i64 2
  %1401 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %49, i32 0, i32 2
  %1402 = load i64, ptr %1401, align 8, !tbaa !18
  %1403 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %1404 = load ptr, ptr %1403, align 8, !tbaa !17
  %1405 = getelementptr inbounds double, ptr %1404, i64 0
  %1406 = load i64, ptr %19, align 8, !tbaa !11
  %1407 = sub nsw i64 %1406, 1
  %1408 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %1407)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %1400, i64 noundef %1402, ptr noundef %1405, i64 noundef 1, i64 noundef %1408)
  %1409 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL26testparametricunit_unsetp2PN11alglib_impl19pspline2interpolantEPNS_8ae_stateE(ptr noundef %50, ptr noundef %1409)
  %1410 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL26testparametricunit_unsetp3PN11alglib_impl19pspline3interpolantEPNS_8ae_stateE(ptr noundef %51, ptr noundef %1410)
  %1411 = load i64, ptr %19, align 8, !tbaa !11
  %1412 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pspline2buildEPNS_9ae_matrixElllPNS_19pspline2interpolantEPNS_8ae_stateE(ptr noundef %48, i64 noundef %1411, i64 noundef 2, i64 noundef 0, ptr noundef %50, ptr noundef %1412)
  %1413 = load i64, ptr %19, align 8, !tbaa !11
  %1414 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pspline3buildEPNS_9ae_matrixElllPNS_19pspline3interpolantEPNS_8ae_stateE(ptr noundef %49, i64 noundef %1413, i64 noundef 2, i64 noundef 0, ptr noundef %51, ptr noundef %1414)
  %1415 = load ptr, ptr %4, align 8, !tbaa !9
  %1416 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1415)
  store double %1416, ptr %40, align 8, !tbaa !13
  %1417 = load i64, ptr %19, align 8, !tbaa !11
  %1418 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %45, ptr noundef %42, i64 noundef %1417, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %52, ptr noundef %1418)
  %1419 = load double, ptr %40, align 8, !tbaa !13
  %1420 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %52, double noundef %1419, ptr noundef %25, ptr noundef %31, ptr noundef %37, ptr noundef %1420)
  %1421 = load i64, ptr %19, align 8, !tbaa !11
  %1422 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %45, ptr noundef %43, i64 noundef %1421, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %52, ptr noundef %1422)
  %1423 = load double, ptr %40, align 8, !tbaa !13
  %1424 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %52, double noundef %1423, ptr noundef %26, ptr noundef %32, ptr noundef %38, ptr noundef %1424)
  %1425 = load i64, ptr %19, align 8, !tbaa !11
  %1426 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %45, ptr noundef %44, i64 noundef %1425, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %52, ptr noundef %1426)
  %1427 = load double, ptr %40, align 8, !tbaa !13
  %1428 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %52, double noundef %1427, ptr noundef %27, ptr noundef %33, ptr noundef %39, ptr noundef %1428)
  %1429 = load double, ptr %40, align 8, !tbaa !13
  %1430 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline2calcEPNS_19pspline2interpolantEdPdS2_PNS_8ae_stateE(ptr noundef %50, double noundef %1429, ptr noundef %22, ptr noundef %23, ptr noundef %1430)
  %1431 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1432 = trunc i8 %1431 to i1
  br i1 %1432, label %1441, label %1433

1433:                                             ; preds = %1333
  %1434 = load double, ptr %22, align 8, !tbaa !13
  %1435 = load double, ptr %25, align 8, !tbaa !13
  %1436 = fsub double %1434, %1435
  %1437 = load ptr, ptr %4, align 8, !tbaa !9
  %1438 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1436, ptr noundef %1437)
  %1439 = load double, ptr %11, align 8, !tbaa !13
  %1440 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1438, double noundef %1439)
  br label %1441

1441:                                             ; preds = %1433, %1333
  %1442 = phi i1 [ true, %1333 ], [ %1440, %1433 ]
  %1443 = zext i1 %1442 to i8
  store i8 %1443, ptr %7, align 1, !tbaa !5
  %1444 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1445 = trunc i8 %1444 to i1
  br i1 %1445, label %1454, label %1446

1446:                                             ; preds = %1441
  %1447 = load double, ptr %23, align 8, !tbaa !13
  %1448 = load double, ptr %26, align 8, !tbaa !13
  %1449 = fsub double %1447, %1448
  %1450 = load ptr, ptr %4, align 8, !tbaa !9
  %1451 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1449, ptr noundef %1450)
  %1452 = load double, ptr %11, align 8, !tbaa !13
  %1453 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1451, double noundef %1452)
  br label %1454

1454:                                             ; preds = %1446, %1441
  %1455 = phi i1 [ true, %1441 ], [ %1453, %1446 ]
  %1456 = zext i1 %1455 to i8
  store i8 %1456, ptr %7, align 1, !tbaa !5
  %1457 = load double, ptr %40, align 8, !tbaa !13
  %1458 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline2diffEPNS_19pspline2interpolantEdPdS2_S2_S2_PNS_8ae_stateE(ptr noundef %50, double noundef %1457, ptr noundef %22, ptr noundef %28, ptr noundef %23, ptr noundef %29, ptr noundef %1458)
  %1459 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1460 = trunc i8 %1459 to i1
  br i1 %1460, label %1469, label %1461

1461:                                             ; preds = %1454
  %1462 = load double, ptr %22, align 8, !tbaa !13
  %1463 = load double, ptr %25, align 8, !tbaa !13
  %1464 = fsub double %1462, %1463
  %1465 = load ptr, ptr %4, align 8, !tbaa !9
  %1466 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1464, ptr noundef %1465)
  %1467 = load double, ptr %11, align 8, !tbaa !13
  %1468 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1466, double noundef %1467)
  br label %1469

1469:                                             ; preds = %1461, %1454
  %1470 = phi i1 [ true, %1454 ], [ %1468, %1461 ]
  %1471 = zext i1 %1470 to i8
  store i8 %1471, ptr %7, align 1, !tbaa !5
  %1472 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1473 = trunc i8 %1472 to i1
  br i1 %1473, label %1482, label %1474

1474:                                             ; preds = %1469
  %1475 = load double, ptr %23, align 8, !tbaa !13
  %1476 = load double, ptr %26, align 8, !tbaa !13
  %1477 = fsub double %1475, %1476
  %1478 = load ptr, ptr %4, align 8, !tbaa !9
  %1479 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1477, ptr noundef %1478)
  %1480 = load double, ptr %11, align 8, !tbaa !13
  %1481 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1479, double noundef %1480)
  br label %1482

1482:                                             ; preds = %1474, %1469
  %1483 = phi i1 [ true, %1469 ], [ %1481, %1474 ]
  %1484 = zext i1 %1483 to i8
  store i8 %1484, ptr %7, align 1, !tbaa !5
  %1485 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1486 = trunc i8 %1485 to i1
  br i1 %1486, label %1495, label %1487

1487:                                             ; preds = %1482
  %1488 = load double, ptr %28, align 8, !tbaa !13
  %1489 = load double, ptr %31, align 8, !tbaa !13
  %1490 = fsub double %1488, %1489
  %1491 = load ptr, ptr %4, align 8, !tbaa !9
  %1492 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1490, ptr noundef %1491)
  %1493 = load double, ptr %11, align 8, !tbaa !13
  %1494 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1492, double noundef %1493)
  br label %1495

1495:                                             ; preds = %1487, %1482
  %1496 = phi i1 [ true, %1482 ], [ %1494, %1487 ]
  %1497 = zext i1 %1496 to i8
  store i8 %1497, ptr %7, align 1, !tbaa !5
  %1498 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1499 = trunc i8 %1498 to i1
  br i1 %1499, label %1508, label %1500

1500:                                             ; preds = %1495
  %1501 = load double, ptr %29, align 8, !tbaa !13
  %1502 = load double, ptr %32, align 8, !tbaa !13
  %1503 = fsub double %1501, %1502
  %1504 = load ptr, ptr %4, align 8, !tbaa !9
  %1505 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1503, ptr noundef %1504)
  %1506 = load double, ptr %11, align 8, !tbaa !13
  %1507 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1505, double noundef %1506)
  br label %1508

1508:                                             ; preds = %1500, %1495
  %1509 = phi i1 [ true, %1495 ], [ %1507, %1500 ]
  %1510 = zext i1 %1509 to i8
  store i8 %1510, ptr %7, align 1, !tbaa !5
  %1511 = load double, ptr %40, align 8, !tbaa !13
  %1512 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pspline2diff2EPNS_19pspline2interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef %50, double noundef %1511, ptr noundef %22, ptr noundef %28, ptr noundef %34, ptr noundef %23, ptr noundef %29, ptr noundef %35, ptr noundef %1512)
  %1513 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1514 = trunc i8 %1513 to i1
  br i1 %1514, label %1523, label %1515

1515:                                             ; preds = %1508
  %1516 = load double, ptr %22, align 8, !tbaa !13
  %1517 = load double, ptr %25, align 8, !tbaa !13
  %1518 = fsub double %1516, %1517
  %1519 = load ptr, ptr %4, align 8, !tbaa !9
  %1520 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1518, ptr noundef %1519)
  %1521 = load double, ptr %11, align 8, !tbaa !13
  %1522 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1520, double noundef %1521)
  br label %1523

1523:                                             ; preds = %1515, %1508
  %1524 = phi i1 [ true, %1508 ], [ %1522, %1515 ]
  %1525 = zext i1 %1524 to i8
  store i8 %1525, ptr %7, align 1, !tbaa !5
  %1526 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1527 = trunc i8 %1526 to i1
  br i1 %1527, label %1536, label %1528

1528:                                             ; preds = %1523
  %1529 = load double, ptr %23, align 8, !tbaa !13
  %1530 = load double, ptr %26, align 8, !tbaa !13
  %1531 = fsub double %1529, %1530
  %1532 = load ptr, ptr %4, align 8, !tbaa !9
  %1533 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1531, ptr noundef %1532)
  %1534 = load double, ptr %11, align 8, !tbaa !13
  %1535 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1533, double noundef %1534)
  br label %1536

1536:                                             ; preds = %1528, %1523
  %1537 = phi i1 [ true, %1523 ], [ %1535, %1528 ]
  %1538 = zext i1 %1537 to i8
  store i8 %1538, ptr %7, align 1, !tbaa !5
  %1539 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1540 = trunc i8 %1539 to i1
  br i1 %1540, label %1549, label %1541

1541:                                             ; preds = %1536
  %1542 = load double, ptr %28, align 8, !tbaa !13
  %1543 = load double, ptr %31, align 8, !tbaa !13
  %1544 = fsub double %1542, %1543
  %1545 = load ptr, ptr %4, align 8, !tbaa !9
  %1546 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1544, ptr noundef %1545)
  %1547 = load double, ptr %11, align 8, !tbaa !13
  %1548 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1546, double noundef %1547)
  br label %1549

1549:                                             ; preds = %1541, %1536
  %1550 = phi i1 [ true, %1536 ], [ %1548, %1541 ]
  %1551 = zext i1 %1550 to i8
  store i8 %1551, ptr %7, align 1, !tbaa !5
  %1552 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1553 = trunc i8 %1552 to i1
  br i1 %1553, label %1562, label %1554

1554:                                             ; preds = %1549
  %1555 = load double, ptr %29, align 8, !tbaa !13
  %1556 = load double, ptr %32, align 8, !tbaa !13
  %1557 = fsub double %1555, %1556
  %1558 = load ptr, ptr %4, align 8, !tbaa !9
  %1559 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1557, ptr noundef %1558)
  %1560 = load double, ptr %11, align 8, !tbaa !13
  %1561 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1559, double noundef %1560)
  br label %1562

1562:                                             ; preds = %1554, %1549
  %1563 = phi i1 [ true, %1549 ], [ %1561, %1554 ]
  %1564 = zext i1 %1563 to i8
  store i8 %1564, ptr %7, align 1, !tbaa !5
  %1565 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1566 = trunc i8 %1565 to i1
  br i1 %1566, label %1575, label %1567

1567:                                             ; preds = %1562
  %1568 = load double, ptr %34, align 8, !tbaa !13
  %1569 = load double, ptr %37, align 8, !tbaa !13
  %1570 = fsub double %1568, %1569
  %1571 = load ptr, ptr %4, align 8, !tbaa !9
  %1572 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1570, ptr noundef %1571)
  %1573 = load double, ptr %11, align 8, !tbaa !13
  %1574 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1572, double noundef %1573)
  br label %1575

1575:                                             ; preds = %1567, %1562
  %1576 = phi i1 [ true, %1562 ], [ %1574, %1567 ]
  %1577 = zext i1 %1576 to i8
  store i8 %1577, ptr %7, align 1, !tbaa !5
  %1578 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1579 = trunc i8 %1578 to i1
  br i1 %1579, label %1588, label %1580

1580:                                             ; preds = %1575
  %1581 = load double, ptr %35, align 8, !tbaa !13
  %1582 = load double, ptr %38, align 8, !tbaa !13
  %1583 = fsub double %1581, %1582
  %1584 = load ptr, ptr %4, align 8, !tbaa !9
  %1585 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1583, ptr noundef %1584)
  %1586 = load double, ptr %11, align 8, !tbaa !13
  %1587 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1585, double noundef %1586)
  br label %1588

1588:                                             ; preds = %1580, %1575
  %1589 = phi i1 [ true, %1575 ], [ %1587, %1580 ]
  %1590 = zext i1 %1589 to i8
  store i8 %1590, ptr %7, align 1, !tbaa !5
  %1591 = load double, ptr %40, align 8, !tbaa !13
  %1592 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline3calcEPNS_19pspline3interpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %51, double noundef %1591, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %1592)
  %1593 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1594 = trunc i8 %1593 to i1
  br i1 %1594, label %1603, label %1595

1595:                                             ; preds = %1588
  %1596 = load double, ptr %22, align 8, !tbaa !13
  %1597 = load double, ptr %25, align 8, !tbaa !13
  %1598 = fsub double %1596, %1597
  %1599 = load ptr, ptr %4, align 8, !tbaa !9
  %1600 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1598, ptr noundef %1599)
  %1601 = load double, ptr %11, align 8, !tbaa !13
  %1602 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1600, double noundef %1601)
  br label %1603

1603:                                             ; preds = %1595, %1588
  %1604 = phi i1 [ true, %1588 ], [ %1602, %1595 ]
  %1605 = zext i1 %1604 to i8
  store i8 %1605, ptr %8, align 1, !tbaa !5
  %1606 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1607 = trunc i8 %1606 to i1
  br i1 %1607, label %1616, label %1608

1608:                                             ; preds = %1603
  %1609 = load double, ptr %23, align 8, !tbaa !13
  %1610 = load double, ptr %26, align 8, !tbaa !13
  %1611 = fsub double %1609, %1610
  %1612 = load ptr, ptr %4, align 8, !tbaa !9
  %1613 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1611, ptr noundef %1612)
  %1614 = load double, ptr %11, align 8, !tbaa !13
  %1615 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1613, double noundef %1614)
  br label %1616

1616:                                             ; preds = %1608, %1603
  %1617 = phi i1 [ true, %1603 ], [ %1615, %1608 ]
  %1618 = zext i1 %1617 to i8
  store i8 %1618, ptr %8, align 1, !tbaa !5
  %1619 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1620 = trunc i8 %1619 to i1
  br i1 %1620, label %1629, label %1621

1621:                                             ; preds = %1616
  %1622 = load double, ptr %24, align 8, !tbaa !13
  %1623 = load double, ptr %27, align 8, !tbaa !13
  %1624 = fsub double %1622, %1623
  %1625 = load ptr, ptr %4, align 8, !tbaa !9
  %1626 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1624, ptr noundef %1625)
  %1627 = load double, ptr %11, align 8, !tbaa !13
  %1628 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1626, double noundef %1627)
  br label %1629

1629:                                             ; preds = %1621, %1616
  %1630 = phi i1 [ true, %1616 ], [ %1628, %1621 ]
  %1631 = zext i1 %1630 to i8
  store i8 %1631, ptr %8, align 1, !tbaa !5
  %1632 = load double, ptr %40, align 8, !tbaa !13
  %1633 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12pspline3diffEPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef %51, double noundef %1632, ptr noundef %22, ptr noundef %28, ptr noundef %23, ptr noundef %29, ptr noundef %24, ptr noundef %30, ptr noundef %1633)
  %1634 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1635 = trunc i8 %1634 to i1
  br i1 %1635, label %1644, label %1636

1636:                                             ; preds = %1629
  %1637 = load double, ptr %22, align 8, !tbaa !13
  %1638 = load double, ptr %25, align 8, !tbaa !13
  %1639 = fsub double %1637, %1638
  %1640 = load ptr, ptr %4, align 8, !tbaa !9
  %1641 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1639, ptr noundef %1640)
  %1642 = load double, ptr %11, align 8, !tbaa !13
  %1643 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1641, double noundef %1642)
  br label %1644

1644:                                             ; preds = %1636, %1629
  %1645 = phi i1 [ true, %1629 ], [ %1643, %1636 ]
  %1646 = zext i1 %1645 to i8
  store i8 %1646, ptr %8, align 1, !tbaa !5
  %1647 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1648 = trunc i8 %1647 to i1
  br i1 %1648, label %1657, label %1649

1649:                                             ; preds = %1644
  %1650 = load double, ptr %23, align 8, !tbaa !13
  %1651 = load double, ptr %26, align 8, !tbaa !13
  %1652 = fsub double %1650, %1651
  %1653 = load ptr, ptr %4, align 8, !tbaa !9
  %1654 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1652, ptr noundef %1653)
  %1655 = load double, ptr %11, align 8, !tbaa !13
  %1656 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1654, double noundef %1655)
  br label %1657

1657:                                             ; preds = %1649, %1644
  %1658 = phi i1 [ true, %1644 ], [ %1656, %1649 ]
  %1659 = zext i1 %1658 to i8
  store i8 %1659, ptr %8, align 1, !tbaa !5
  %1660 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1661 = trunc i8 %1660 to i1
  br i1 %1661, label %1670, label %1662

1662:                                             ; preds = %1657
  %1663 = load double, ptr %24, align 8, !tbaa !13
  %1664 = load double, ptr %27, align 8, !tbaa !13
  %1665 = fsub double %1663, %1664
  %1666 = load ptr, ptr %4, align 8, !tbaa !9
  %1667 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1665, ptr noundef %1666)
  %1668 = load double, ptr %11, align 8, !tbaa !13
  %1669 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1667, double noundef %1668)
  br label %1670

1670:                                             ; preds = %1662, %1657
  %1671 = phi i1 [ true, %1657 ], [ %1669, %1662 ]
  %1672 = zext i1 %1671 to i8
  store i8 %1672, ptr %8, align 1, !tbaa !5
  %1673 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1674 = trunc i8 %1673 to i1
  br i1 %1674, label %1683, label %1675

1675:                                             ; preds = %1670
  %1676 = load double, ptr %28, align 8, !tbaa !13
  %1677 = load double, ptr %31, align 8, !tbaa !13
  %1678 = fsub double %1676, %1677
  %1679 = load ptr, ptr %4, align 8, !tbaa !9
  %1680 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1678, ptr noundef %1679)
  %1681 = load double, ptr %11, align 8, !tbaa !13
  %1682 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1680, double noundef %1681)
  br label %1683

1683:                                             ; preds = %1675, %1670
  %1684 = phi i1 [ true, %1670 ], [ %1682, %1675 ]
  %1685 = zext i1 %1684 to i8
  store i8 %1685, ptr %8, align 1, !tbaa !5
  %1686 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1687 = trunc i8 %1686 to i1
  br i1 %1687, label %1696, label %1688

1688:                                             ; preds = %1683
  %1689 = load double, ptr %29, align 8, !tbaa !13
  %1690 = load double, ptr %32, align 8, !tbaa !13
  %1691 = fsub double %1689, %1690
  %1692 = load ptr, ptr %4, align 8, !tbaa !9
  %1693 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1691, ptr noundef %1692)
  %1694 = load double, ptr %11, align 8, !tbaa !13
  %1695 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1693, double noundef %1694)
  br label %1696

1696:                                             ; preds = %1688, %1683
  %1697 = phi i1 [ true, %1683 ], [ %1695, %1688 ]
  %1698 = zext i1 %1697 to i8
  store i8 %1698, ptr %8, align 1, !tbaa !5
  %1699 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1700 = trunc i8 %1699 to i1
  br i1 %1700, label %1709, label %1701

1701:                                             ; preds = %1696
  %1702 = load double, ptr %30, align 8, !tbaa !13
  %1703 = load double, ptr %33, align 8, !tbaa !13
  %1704 = fsub double %1702, %1703
  %1705 = load ptr, ptr %4, align 8, !tbaa !9
  %1706 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1704, ptr noundef %1705)
  %1707 = load double, ptr %11, align 8, !tbaa !13
  %1708 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1706, double noundef %1707)
  br label %1709

1709:                                             ; preds = %1701, %1696
  %1710 = phi i1 [ true, %1696 ], [ %1708, %1701 ]
  %1711 = zext i1 %1710 to i8
  store i8 %1711, ptr %8, align 1, !tbaa !5
  %1712 = load double, ptr %40, align 8, !tbaa !13
  %1713 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pspline3diff2EPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef %51, double noundef %1712, ptr noundef %22, ptr noundef %28, ptr noundef %34, ptr noundef %23, ptr noundef %29, ptr noundef %35, ptr noundef %24, ptr noundef %30, ptr noundef %36, ptr noundef %1713)
  %1714 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1715 = trunc i8 %1714 to i1
  br i1 %1715, label %1724, label %1716

1716:                                             ; preds = %1709
  %1717 = load double, ptr %22, align 8, !tbaa !13
  %1718 = load double, ptr %25, align 8, !tbaa !13
  %1719 = fsub double %1717, %1718
  %1720 = load ptr, ptr %4, align 8, !tbaa !9
  %1721 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1719, ptr noundef %1720)
  %1722 = load double, ptr %11, align 8, !tbaa !13
  %1723 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1721, double noundef %1722)
  br label %1724

1724:                                             ; preds = %1716, %1709
  %1725 = phi i1 [ true, %1709 ], [ %1723, %1716 ]
  %1726 = zext i1 %1725 to i8
  store i8 %1726, ptr %8, align 1, !tbaa !5
  %1727 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1728 = trunc i8 %1727 to i1
  br i1 %1728, label %1737, label %1729

1729:                                             ; preds = %1724
  %1730 = load double, ptr %23, align 8, !tbaa !13
  %1731 = load double, ptr %26, align 8, !tbaa !13
  %1732 = fsub double %1730, %1731
  %1733 = load ptr, ptr %4, align 8, !tbaa !9
  %1734 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1732, ptr noundef %1733)
  %1735 = load double, ptr %11, align 8, !tbaa !13
  %1736 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1734, double noundef %1735)
  br label %1737

1737:                                             ; preds = %1729, %1724
  %1738 = phi i1 [ true, %1724 ], [ %1736, %1729 ]
  %1739 = zext i1 %1738 to i8
  store i8 %1739, ptr %8, align 1, !tbaa !5
  %1740 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1741 = trunc i8 %1740 to i1
  br i1 %1741, label %1750, label %1742

1742:                                             ; preds = %1737
  %1743 = load double, ptr %24, align 8, !tbaa !13
  %1744 = load double, ptr %27, align 8, !tbaa !13
  %1745 = fsub double %1743, %1744
  %1746 = load ptr, ptr %4, align 8, !tbaa !9
  %1747 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1745, ptr noundef %1746)
  %1748 = load double, ptr %11, align 8, !tbaa !13
  %1749 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1747, double noundef %1748)
  br label %1750

1750:                                             ; preds = %1742, %1737
  %1751 = phi i1 [ true, %1737 ], [ %1749, %1742 ]
  %1752 = zext i1 %1751 to i8
  store i8 %1752, ptr %8, align 1, !tbaa !5
  %1753 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1754 = trunc i8 %1753 to i1
  br i1 %1754, label %1763, label %1755

1755:                                             ; preds = %1750
  %1756 = load double, ptr %28, align 8, !tbaa !13
  %1757 = load double, ptr %31, align 8, !tbaa !13
  %1758 = fsub double %1756, %1757
  %1759 = load ptr, ptr %4, align 8, !tbaa !9
  %1760 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1758, ptr noundef %1759)
  %1761 = load double, ptr %11, align 8, !tbaa !13
  %1762 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1760, double noundef %1761)
  br label %1763

1763:                                             ; preds = %1755, %1750
  %1764 = phi i1 [ true, %1750 ], [ %1762, %1755 ]
  %1765 = zext i1 %1764 to i8
  store i8 %1765, ptr %8, align 1, !tbaa !5
  %1766 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1767 = trunc i8 %1766 to i1
  br i1 %1767, label %1776, label %1768

1768:                                             ; preds = %1763
  %1769 = load double, ptr %29, align 8, !tbaa !13
  %1770 = load double, ptr %32, align 8, !tbaa !13
  %1771 = fsub double %1769, %1770
  %1772 = load ptr, ptr %4, align 8, !tbaa !9
  %1773 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1771, ptr noundef %1772)
  %1774 = load double, ptr %11, align 8, !tbaa !13
  %1775 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1773, double noundef %1774)
  br label %1776

1776:                                             ; preds = %1768, %1763
  %1777 = phi i1 [ true, %1763 ], [ %1775, %1768 ]
  %1778 = zext i1 %1777 to i8
  store i8 %1778, ptr %8, align 1, !tbaa !5
  %1779 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1780 = trunc i8 %1779 to i1
  br i1 %1780, label %1789, label %1781

1781:                                             ; preds = %1776
  %1782 = load double, ptr %30, align 8, !tbaa !13
  %1783 = load double, ptr %33, align 8, !tbaa !13
  %1784 = fsub double %1782, %1783
  %1785 = load ptr, ptr %4, align 8, !tbaa !9
  %1786 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1784, ptr noundef %1785)
  %1787 = load double, ptr %11, align 8, !tbaa !13
  %1788 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1786, double noundef %1787)
  br label %1789

1789:                                             ; preds = %1781, %1776
  %1790 = phi i1 [ true, %1776 ], [ %1788, %1781 ]
  %1791 = zext i1 %1790 to i8
  store i8 %1791, ptr %8, align 1, !tbaa !5
  %1792 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1793 = trunc i8 %1792 to i1
  br i1 %1793, label %1802, label %1794

1794:                                             ; preds = %1789
  %1795 = load double, ptr %34, align 8, !tbaa !13
  %1796 = load double, ptr %37, align 8, !tbaa !13
  %1797 = fsub double %1795, %1796
  %1798 = load ptr, ptr %4, align 8, !tbaa !9
  %1799 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1797, ptr noundef %1798)
  %1800 = load double, ptr %11, align 8, !tbaa !13
  %1801 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1799, double noundef %1800)
  br label %1802

1802:                                             ; preds = %1794, %1789
  %1803 = phi i1 [ true, %1789 ], [ %1801, %1794 ]
  %1804 = zext i1 %1803 to i8
  store i8 %1804, ptr %8, align 1, !tbaa !5
  %1805 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1806 = trunc i8 %1805 to i1
  br i1 %1806, label %1815, label %1807

1807:                                             ; preds = %1802
  %1808 = load double, ptr %35, align 8, !tbaa !13
  %1809 = load double, ptr %38, align 8, !tbaa !13
  %1810 = fsub double %1808, %1809
  %1811 = load ptr, ptr %4, align 8, !tbaa !9
  %1812 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1810, ptr noundef %1811)
  %1813 = load double, ptr %11, align 8, !tbaa !13
  %1814 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1812, double noundef %1813)
  br label %1815

1815:                                             ; preds = %1807, %1802
  %1816 = phi i1 [ true, %1802 ], [ %1814, %1807 ]
  %1817 = zext i1 %1816 to i8
  store i8 %1817, ptr %8, align 1, !tbaa !5
  %1818 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1819 = trunc i8 %1818 to i1
  br i1 %1819, label %1828, label %1820

1820:                                             ; preds = %1815
  %1821 = load double, ptr %36, align 8, !tbaa !13
  %1822 = load double, ptr %39, align 8, !tbaa !13
  %1823 = fsub double %1821, %1822
  %1824 = load ptr, ptr %4, align 8, !tbaa !9
  %1825 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1823, ptr noundef %1824)
  %1826 = load double, ptr %11, align 8, !tbaa !13
  %1827 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1825, double noundef %1826)
  br label %1828

1828:                                             ; preds = %1820, %1815
  %1829 = phi i1 [ true, %1815 ], [ %1827, %1820 ]
  %1830 = zext i1 %1829 to i8
  store i8 %1830, ptr %8, align 1, !tbaa !5
  %1831 = load double, ptr %40, align 8, !tbaa !13
  %1832 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl15pspline2tangentEPNS_19pspline2interpolantEdPdS2_PNS_8ae_stateE(ptr noundef %50, double noundef %1831, ptr noundef %22, ptr noundef %23, ptr noundef %1832)
  %1833 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1834 = trunc i8 %1833 to i1
  br i1 %1834, label %1848, label %1835

1835:                                             ; preds = %1828
  %1836 = load double, ptr %22, align 8, !tbaa !13
  %1837 = load double, ptr %31, align 8, !tbaa !13
  %1838 = load double, ptr %31, align 8, !tbaa !13
  %1839 = load double, ptr %32, align 8, !tbaa !13
  %1840 = load ptr, ptr %4, align 8, !tbaa !9
  %1841 = call noundef double @_ZN11alglib_impl11safepythag2EddPNS_8ae_stateE(double noundef %1838, double noundef %1839, ptr noundef %1840)
  %1842 = fdiv double %1837, %1841
  %1843 = fsub double %1836, %1842
  %1844 = load ptr, ptr %4, align 8, !tbaa !9
  %1845 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1843, ptr noundef %1844)
  %1846 = load double, ptr %11, align 8, !tbaa !13
  %1847 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1845, double noundef %1846)
  br label %1848

1848:                                             ; preds = %1835, %1828
  %1849 = phi i1 [ true, %1828 ], [ %1847, %1835 ]
  %1850 = zext i1 %1849 to i8
  store i8 %1850, ptr %7, align 1, !tbaa !5
  %1851 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %1852 = trunc i8 %1851 to i1
  br i1 %1852, label %1866, label %1853

1853:                                             ; preds = %1848
  %1854 = load double, ptr %23, align 8, !tbaa !13
  %1855 = load double, ptr %32, align 8, !tbaa !13
  %1856 = load double, ptr %31, align 8, !tbaa !13
  %1857 = load double, ptr %32, align 8, !tbaa !13
  %1858 = load ptr, ptr %4, align 8, !tbaa !9
  %1859 = call noundef double @_ZN11alglib_impl11safepythag2EddPNS_8ae_stateE(double noundef %1856, double noundef %1857, ptr noundef %1858)
  %1860 = fdiv double %1855, %1859
  %1861 = fsub double %1854, %1860
  %1862 = load ptr, ptr %4, align 8, !tbaa !9
  %1863 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1861, ptr noundef %1862)
  %1864 = load double, ptr %11, align 8, !tbaa !13
  %1865 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1863, double noundef %1864)
  br label %1866

1866:                                             ; preds = %1853, %1848
  %1867 = phi i1 [ true, %1848 ], [ %1865, %1853 ]
  %1868 = zext i1 %1867 to i8
  store i8 %1868, ptr %7, align 1, !tbaa !5
  %1869 = load double, ptr %40, align 8, !tbaa !13
  %1870 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl15pspline3tangentEPNS_19pspline3interpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef %51, double noundef %1869, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %1870)
  %1871 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1872 = trunc i8 %1871 to i1
  br i1 %1872, label %1887, label %1873

1873:                                             ; preds = %1866
  %1874 = load double, ptr %22, align 8, !tbaa !13
  %1875 = load double, ptr %31, align 8, !tbaa !13
  %1876 = load double, ptr %31, align 8, !tbaa !13
  %1877 = load double, ptr %32, align 8, !tbaa !13
  %1878 = load double, ptr %33, align 8, !tbaa !13
  %1879 = load ptr, ptr %4, align 8, !tbaa !9
  %1880 = call noundef double @_ZN11alglib_impl11safepythag3EdddPNS_8ae_stateE(double noundef %1876, double noundef %1877, double noundef %1878, ptr noundef %1879)
  %1881 = fdiv double %1875, %1880
  %1882 = fsub double %1874, %1881
  %1883 = load ptr, ptr %4, align 8, !tbaa !9
  %1884 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1882, ptr noundef %1883)
  %1885 = load double, ptr %11, align 8, !tbaa !13
  %1886 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1884, double noundef %1885)
  br label %1887

1887:                                             ; preds = %1873, %1866
  %1888 = phi i1 [ true, %1866 ], [ %1886, %1873 ]
  %1889 = zext i1 %1888 to i8
  store i8 %1889, ptr %8, align 1, !tbaa !5
  %1890 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1891 = trunc i8 %1890 to i1
  br i1 %1891, label %1906, label %1892

1892:                                             ; preds = %1887
  %1893 = load double, ptr %23, align 8, !tbaa !13
  %1894 = load double, ptr %32, align 8, !tbaa !13
  %1895 = load double, ptr %31, align 8, !tbaa !13
  %1896 = load double, ptr %32, align 8, !tbaa !13
  %1897 = load double, ptr %33, align 8, !tbaa !13
  %1898 = load ptr, ptr %4, align 8, !tbaa !9
  %1899 = call noundef double @_ZN11alglib_impl11safepythag3EdddPNS_8ae_stateE(double noundef %1895, double noundef %1896, double noundef %1897, ptr noundef %1898)
  %1900 = fdiv double %1894, %1899
  %1901 = fsub double %1893, %1900
  %1902 = load ptr, ptr %4, align 8, !tbaa !9
  %1903 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1901, ptr noundef %1902)
  %1904 = load double, ptr %11, align 8, !tbaa !13
  %1905 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1903, double noundef %1904)
  br label %1906

1906:                                             ; preds = %1892, %1887
  %1907 = phi i1 [ true, %1887 ], [ %1905, %1892 ]
  %1908 = zext i1 %1907 to i8
  store i8 %1908, ptr %8, align 1, !tbaa !5
  %1909 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %1910 = trunc i8 %1909 to i1
  br i1 %1910, label %1925, label %1911

1911:                                             ; preds = %1906
  %1912 = load double, ptr %24, align 8, !tbaa !13
  %1913 = load double, ptr %33, align 8, !tbaa !13
  %1914 = load double, ptr %31, align 8, !tbaa !13
  %1915 = load double, ptr %32, align 8, !tbaa !13
  %1916 = load double, ptr %33, align 8, !tbaa !13
  %1917 = load ptr, ptr %4, align 8, !tbaa !9
  %1918 = call noundef double @_ZN11alglib_impl11safepythag3EdddPNS_8ae_stateE(double noundef %1914, double noundef %1915, double noundef %1916, ptr noundef %1917)
  %1919 = fdiv double %1913, %1918
  %1920 = fsub double %1912, %1919
  %1921 = load ptr, ptr %4, align 8, !tbaa !9
  %1922 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %1920, ptr noundef %1921)
  %1923 = load double, ptr %11, align 8, !tbaa !13
  %1924 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1922, double noundef %1923)
  br label %1925

1925:                                             ; preds = %1911, %1906
  %1926 = phi i1 [ true, %1906 ], [ %1924, %1911 ]
  %1927 = zext i1 %1926 to i8
  store i8 %1927, ptr %8, align 1, !tbaa !5
  br label %1928

1928:                                             ; preds = %1925
  %1929 = load i64, ptr %19, align 8, !tbaa !11
  %1930 = add nsw i64 %1929, 1
  store i64 %1930, ptr %19, align 8, !tbaa !11
  br label %1329, !llvm.loop !29

1931:                                             ; preds = %1329
  store i64 2, ptr %19, align 8, !tbaa !11
  br label %1932

1932:                                             ; preds = %2049, %1931
  %1933 = load i64, ptr %19, align 8, !tbaa !11
  %1934 = load i64, ptr %12, align 8, !tbaa !11
  %1935 = icmp sle i64 %1933, %1934
  br i1 %1935, label %1936, label %2052

1936:                                             ; preds = %1932
  %1937 = load i64, ptr %19, align 8, !tbaa !11
  %1938 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %48, i64 noundef %1937, i64 noundef 2, ptr noundef %1938)
  %1939 = load i64, ptr %19, align 8, !tbaa !11
  %1940 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %49, i64 noundef %1939, i64 noundef 3, ptr noundef %1940)
  store i64 0, ptr %21, align 8, !tbaa !11
  br label %1941

1941:                                             ; preds = %1987, %1936
  %1942 = load i64, ptr %21, align 8, !tbaa !11
  %1943 = load i64, ptr %19, align 8, !tbaa !11
  %1944 = sub nsw i64 %1943, 1
  %1945 = icmp sle i64 %1942, %1944
  br i1 %1945, label %1946, label %1990

1946:                                             ; preds = %1941
  %1947 = load i64, ptr %21, align 8, !tbaa !11
  %1948 = sitofp i64 %1947 to double
  %1949 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %48, i32 0, i32 6
  %1950 = load ptr, ptr %1949, align 8, !tbaa !17
  %1951 = load i64, ptr %21, align 8, !tbaa !11
  %1952 = getelementptr inbounds ptr, ptr %1950, i64 %1951
  %1953 = load ptr, ptr %1952, align 8, !tbaa !9
  %1954 = getelementptr inbounds double, ptr %1953, i64 0
  store double %1948, ptr %1954, align 8, !tbaa !13
  %1955 = load i64, ptr %21, align 8, !tbaa !11
  %1956 = sitofp i64 %1955 to double
  %1957 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %48, i32 0, i32 6
  %1958 = load ptr, ptr %1957, align 8, !tbaa !17
  %1959 = load i64, ptr %21, align 8, !tbaa !11
  %1960 = getelementptr inbounds ptr, ptr %1958, i64 %1959
  %1961 = load ptr, ptr %1960, align 8, !tbaa !9
  %1962 = getelementptr inbounds double, ptr %1961, i64 1
  store double %1956, ptr %1962, align 8, !tbaa !13
  %1963 = load i64, ptr %21, align 8, !tbaa !11
  %1964 = sitofp i64 %1963 to double
  %1965 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %49, i32 0, i32 6
  %1966 = load ptr, ptr %1965, align 8, !tbaa !17
  %1967 = load i64, ptr %21, align 8, !tbaa !11
  %1968 = getelementptr inbounds ptr, ptr %1966, i64 %1967
  %1969 = load ptr, ptr %1968, align 8, !tbaa !9
  %1970 = getelementptr inbounds double, ptr %1969, i64 0
  store double %1964, ptr %1970, align 8, !tbaa !13
  %1971 = load i64, ptr %21, align 8, !tbaa !11
  %1972 = sitofp i64 %1971 to double
  %1973 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %49, i32 0, i32 6
  %1974 = load ptr, ptr %1973, align 8, !tbaa !17
  %1975 = load i64, ptr %21, align 8, !tbaa !11
  %1976 = getelementptr inbounds ptr, ptr %1974, i64 %1975
  %1977 = load ptr, ptr %1976, align 8, !tbaa !9
  %1978 = getelementptr inbounds double, ptr %1977, i64 1
  store double %1972, ptr %1978, align 8, !tbaa !13
  %1979 = load i64, ptr %21, align 8, !tbaa !11
  %1980 = sitofp i64 %1979 to double
  %1981 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %49, i32 0, i32 6
  %1982 = load ptr, ptr %1981, align 8, !tbaa !17
  %1983 = load i64, ptr %21, align 8, !tbaa !11
  %1984 = getelementptr inbounds ptr, ptr %1982, i64 %1983
  %1985 = load ptr, ptr %1984, align 8, !tbaa !9
  %1986 = getelementptr inbounds double, ptr %1985, i64 2
  store double %1980, ptr %1986, align 8, !tbaa !13
  br label %1987

1987:                                             ; preds = %1946
  %1988 = load i64, ptr %21, align 8, !tbaa !11
  %1989 = add nsw i64 %1988, 1
  store i64 %1989, ptr %21, align 8, !tbaa !11
  br label %1941, !llvm.loop !30

1990:                                             ; preds = %1941
  %1991 = load i64, ptr %19, align 8, !tbaa !11
  %1992 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pspline2buildEPNS_9ae_matrixElllPNS_19pspline2interpolantEPNS_8ae_stateE(ptr noundef %48, i64 noundef %1991, i64 noundef 1, i64 noundef 0, ptr noundef %50, ptr noundef %1992)
  %1993 = load i64, ptr %19, align 8, !tbaa !11
  %1994 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13pspline3buildEPNS_9ae_matrixElllPNS_19pspline3interpolantEPNS_8ae_stateE(ptr noundef %49, i64 noundef %1993, i64 noundef 1, i64 noundef 0, ptr noundef %51, ptr noundef %1994)
  %1995 = load ptr, ptr %4, align 8, !tbaa !9
  %1996 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1995)
  store double %1996, ptr %17, align 8, !tbaa !13
  %1997 = load ptr, ptr %4, align 8, !tbaa !9
  %1998 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1997)
  store double %1998, ptr %18, align 8, !tbaa !13
  %1999 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %2000 = trunc i8 %1999 to i1
  br i1 %2000, label %2021, label %2001

2001:                                             ; preds = %1990
  %2002 = load double, ptr %17, align 8, !tbaa !13
  %2003 = load double, ptr %18, align 8, !tbaa !13
  %2004 = load ptr, ptr %4, align 8, !tbaa !9
  %2005 = call noundef double @_ZN11alglib_impl17pspline2arclengthEPNS_19pspline2interpolantEddPNS_8ae_stateE(ptr noundef %50, double noundef %2002, double noundef %2003, ptr noundef %2004)
  %2006 = load double, ptr %18, align 8, !tbaa !13
  %2007 = load double, ptr %17, align 8, !tbaa !13
  %2008 = fsub double %2006, %2007
  %2009 = load ptr, ptr %4, align 8, !tbaa !9
  %2010 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 2.000000e+00, ptr noundef %2009)
  %2011 = fmul double %2008, %2010
  %2012 = load i64, ptr %19, align 8, !tbaa !11
  %2013 = sub nsw i64 %2012, 1
  %2014 = sitofp i64 %2013 to double
  %2015 = fneg double %2011
  %2016 = call double @llvm.fmuladd.f64(double %2015, double %2014, double %2005)
  %2017 = load ptr, ptr %4, align 8, !tbaa !9
  %2018 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2016, ptr noundef %2017)
  %2019 = load double, ptr %10, align 8, !tbaa !13
  %2020 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2018, double noundef %2019)
  br label %2021

2021:                                             ; preds = %2001, %1990
  %2022 = phi i1 [ true, %1990 ], [ %2020, %2001 ]
  %2023 = zext i1 %2022 to i8
  store i8 %2023, ptr %7, align 1, !tbaa !5
  %2024 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %2025 = trunc i8 %2024 to i1
  br i1 %2025, label %2046, label %2026

2026:                                             ; preds = %2021
  %2027 = load double, ptr %17, align 8, !tbaa !13
  %2028 = load double, ptr %18, align 8, !tbaa !13
  %2029 = load ptr, ptr %4, align 8, !tbaa !9
  %2030 = call noundef double @_ZN11alglib_impl17pspline3arclengthEPNS_19pspline3interpolantEddPNS_8ae_stateE(ptr noundef %51, double noundef %2027, double noundef %2028, ptr noundef %2029)
  %2031 = load double, ptr %18, align 8, !tbaa !13
  %2032 = load double, ptr %17, align 8, !tbaa !13
  %2033 = fsub double %2031, %2032
  %2034 = load ptr, ptr %4, align 8, !tbaa !9
  %2035 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 3.000000e+00, ptr noundef %2034)
  %2036 = fmul double %2033, %2035
  %2037 = load i64, ptr %19, align 8, !tbaa !11
  %2038 = sub nsw i64 %2037, 1
  %2039 = sitofp i64 %2038 to double
  %2040 = fneg double %2036
  %2041 = call double @llvm.fmuladd.f64(double %2040, double %2039, double %2030)
  %2042 = load ptr, ptr %4, align 8, !tbaa !9
  %2043 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %2041, ptr noundef %2042)
  %2044 = load double, ptr %10, align 8, !tbaa !13
  %2045 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %2043, double noundef %2044)
  br label %2046

2046:                                             ; preds = %2026, %2021
  %2047 = phi i1 [ true, %2021 ], [ %2045, %2026 ]
  %2048 = zext i1 %2047 to i8
  store i8 %2048, ptr %8, align 1, !tbaa !5
  br label %2049

2049:                                             ; preds = %2046
  %2050 = load i64, ptr %19, align 8, !tbaa !11
  %2051 = add nsw i64 %2050, 1
  store i64 %2051, ptr %19, align 8, !tbaa !11
  br label %1932, !llvm.loop !31

2052:                                             ; preds = %1932
  %2053 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %2054 = trunc i8 %2053 to i1
  br i1 %2054, label %2061, label %2055

2055:                                             ; preds = %2052
  %2056 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %2057 = trunc i8 %2056 to i1
  br i1 %2057, label %2061, label %2058

2058:                                             ; preds = %2055
  %2059 = load i8, ptr %9, align 1, !tbaa !5, !range !15, !noundef !16
  %2060 = trunc i8 %2059 to i1
  br label %2061

2061:                                             ; preds = %2058, %2055, %2052
  %2062 = phi i1 [ true, %2055 ], [ true, %2052 ], [ %2060, %2058 ]
  %2063 = zext i1 %2062 to i8
  store i8 %2063, ptr %6, align 1, !tbaa !5
  %2064 = load i8, ptr %3, align 1, !tbaa !5, !range !15, !noundef !16
  %2065 = trunc i8 %2064 to i1
  br i1 %2065, label %2100, label %2066

2066:                                             ; preds = %2061
  %2067 = call i32 (ptr, ...) @printf(ptr noundef @.str.632)
  %2068 = call i32 (ptr, ...) @printf(ptr noundef @.str.633)
  %2069 = load i8, ptr %7, align 1, !tbaa !5, !range !15, !noundef !16
  %2070 = trunc i8 %2069 to i1
  br i1 %2070, label %2071, label %2073

2071:                                             ; preds = %2066
  %2072 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %2075

2073:                                             ; preds = %2066
  %2074 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %2075

2075:                                             ; preds = %2073, %2071
  %2076 = call i32 (ptr, ...) @printf(ptr noundef @.str.634)
  %2077 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %2078 = trunc i8 %2077 to i1
  br i1 %2078, label %2079, label %2081

2079:                                             ; preds = %2075
  %2080 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %2083

2081:                                             ; preds = %2075
  %2082 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %2083

2083:                                             ; preds = %2081, %2079
  %2084 = call i32 (ptr, ...) @printf(ptr noundef @.str.635)
  %2085 = load i8, ptr %9, align 1, !tbaa !5, !range !15, !noundef !16
  %2086 = trunc i8 %2085 to i1
  br i1 %2086, label %2087, label %2089

2087:                                             ; preds = %2083
  %2088 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %2091

2089:                                             ; preds = %2083
  %2090 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %2091

2091:                                             ; preds = %2089, %2087
  %2092 = load i8, ptr %6, align 1, !tbaa !5, !range !15, !noundef !16
  %2093 = trunc i8 %2092 to i1
  br i1 %2093, label %2094, label %2096

2094:                                             ; preds = %2091
  %2095 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %2098

2096:                                             ; preds = %2091
  %2097 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %2098

2098:                                             ; preds = %2096, %2094
  %2099 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %2100

2100:                                             ; preds = %2098, %2061
  %2101 = load i8, ptr %6, align 1, !tbaa !5, !range !15, !noundef !16
  %2102 = trunc i8 %2101 to i1
  %2103 = xor i1 %2102, true
  %2104 = zext i1 %2103 to i8
  store i8 %2104, ptr %53, align 1, !tbaa !5
  %2105 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %2105)
  %2106 = load i8, ptr %53, align 1, !tbaa !5, !range !15, !noundef !16
  %2107 = trunc i8 %2106 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %52) #5
  call void @llvm.lifetime.end.p0(i64 560, ptr %51) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %50) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %49) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %48) #5
  call void @llvm.lifetime.end.p0(i64 64, 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 8, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 %2107
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !12, i64 16}
!19 = !{!"_ZTSN11alglib_impl9ae_matrixE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !20, i64 40, !7, i64 72}
!20 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !22}
!29 = distinct !{!29, !22}
!30 = distinct !{!30, !22}
!31 = distinct !{!31, !22}


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

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.631 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.632 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.633 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.634 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.635 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.preheader705:                                    ; preds = %2, %599
  %.0568726 = phi i64 [ 2, %2 ], [ %600, %599 ]
  %.0571725 = phi i8 [ 0, %2 ], [ %.9, %599 ]
  %.0575724 = phi i8 [ 0, %2 ], [ %.8583, %599 ]
  %44 = icmp ult i64 %.0568726, 3
  %45 = icmp ult i64 %.0568726, 5
  %46 = add nsw i64 %.0568726, -1
  br label %.preheader704

.preheader:                                       ; preds = %599
  %47 = trunc nuw i8 %.9 to i1
  %48 = trunc nuw i8 %.8583 to i1
  br label %601

.preheader704:                                    ; preds = %.preheader705, %597
  %.1572723 = phi i8 [ %.0571725, %.preheader705 ], [ %.9, %597 ]
  %.1576722 = phi i8 [ %.0575724, %.preheader705 ], [ %.8583, %597 ]
  %.0588721 = phi i64 [ 0, %.preheader705 ], [ %598, %597 ]
  %49 = icmp eq i64 %.0588721, 0
  %50 = icmp ne i64 %.0588721, 2
  %51 = add nsw i64 %.0588721, -1
  %52 = icmp ult i64 %51, 2
  %not. = xor i1 %50, true
  br label %.preheader703

.preheader703:                                    ; preds = %.preheader704, %595
  %.2573720 = phi i8 [ %.1572723, %.preheader704 ], [ %.9, %595 ]
  %.2577719 = phi i8 [ %.1576722, %.preheader704 ], [ %.8583, %595 ]
  %.0587718 = phi i64 [ 0, %.preheader704 ], [ %596, %595 ]
  br label %53

53:                                               ; preds = %.preheader703, %594
  %.3574717 = phi i8 [ %.2573720, %.preheader703 ], [ %.9, %594 ]
  %.3578716 = phi i8 [ %.2577719, %.preheader703 ], [ %.8583, %594 ]
  %54 = phi i1 [ false, %.preheader703 ], [ true, %594 ]
  %55 = phi i1 [ true, %.preheader703 ], [ false, %594 ]
  %or.cond = and i1 %44, %54
  %or.cond3701 = or i1 %45, %54
  %or.cond595 = and i1 %49, %or.cond3701
  %or.cond734 = or i1 %or.cond, %or.cond595
  br i1 %or.cond734, label %594, label %56

56:                                               ; preds = %53
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %30, i64 noundef %.0568726, i64 noundef 2, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %31, i64 noundef %.0568726, i64 noundef 3, ptr noundef %1)
  call void @_ZN11alglib_impl20taskgenint1dequidistEddlPNS_9ae_vectorES1_PNS_8ae_stateE(double noundef -1.000000e+00, double noundef 1.000000e+00, i64 noundef %.0568726, ptr noundef nonnull %28, ptr noundef nonnull %24, ptr noundef %1)
  %57 = load ptr, ptr %35, align 8, !tbaa !9
  %58 = load ptr, ptr %57, align 8, !tbaa !10
  %59 = load i64, ptr %36, align 8, !tbaa !12
  %60 = load ptr, ptr %37, align 8, !tbaa !9
  %61 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %46)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %58, i64 noundef %59, ptr noundef %60, i64 noundef 1, i64 noundef %61)
  %62 = load ptr, ptr %38, align 8, !tbaa !9
  %63 = load ptr, ptr %62, align 8, !tbaa !10
  %64 = load i64, ptr %39, align 8, !tbaa !12
  %65 = load ptr, ptr %37, align 8, !tbaa !9
  %66 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %46)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %63, i64 noundef %64, ptr noundef %65, i64 noundef 1, i64 noundef %66)
  call void @_ZN11alglib_impl20taskgenint1dequidistEddlPNS_9ae_vectorES1_PNS_8ae_stateE(double noundef -1.000000e+00, double noundef 1.000000e+00, i64 noundef %.0568726, ptr noundef nonnull %28, ptr noundef nonnull %25, ptr noundef %1)
  %67 = load ptr, ptr %35, align 8, !tbaa !9
  %68 = load ptr, ptr %67, align 8, !tbaa !10
  %69 = getelementptr inbounds i8, ptr %68, i64 8
  %70 = load i64, ptr %36, align 8, !tbaa !12
  %71 = load ptr, ptr %40, align 8, !tbaa !9
  %72 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %46)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %69, i64 noundef %70, ptr noundef %71, i64 noundef 1, i64 noundef %72)
  %73 = load ptr, ptr %38, align 8, !tbaa !9
  %74 = load ptr, ptr %73, align 8, !tbaa !10
  %75 = getelementptr inbounds i8, ptr %74, i64 8
  %76 = load i64, ptr %39, align 8, !tbaa !12
  %77 = load ptr, ptr %40, align 8, !tbaa !9
  %78 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %46)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %75, i64 noundef %76, ptr noundef %77, i64 noundef 1, i64 noundef %78)
  call void @_ZN11alglib_impl20taskgenint1dequidistEddlPNS_9ae_vectorES1_PNS_8ae_stateE(double noundef -1.000000e+00, double noundef 1.000000e+00, i64 noundef %.0568726, ptr noundef nonnull %28, ptr noundef nonnull %26, ptr noundef %1)
  %79 = load ptr, ptr %38, align 8, !tbaa !9
  %80 = load ptr, ptr %79, align 8, !tbaa !10
  %81 = getelementptr inbounds i8, ptr %80, i64 16
  %82 = load i64, ptr %39, align 8, !tbaa !12
  %83 = load ptr, ptr %41, align 8, !tbaa !9
  %84 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %46)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %81, i64 noundef %82, ptr noundef %83, i64 noundef 1, i64 noundef %84)
  call void @_ZL26testparametricunit_unsetp2PN11alglib_impl19pspline2interpolantEPNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef %1)
  call void @_ZL26testparametricunit_unsetp3PN11alglib_impl19pspline3interpolantEPNS_8ae_stateE(ptr noundef nonnull %33, ptr noundef %1)
  br i1 %54, label %85, label %86

85:                                               ; preds = %56
  call void @_ZN11alglib_impl21pspline2buildperiodicEPNS_9ae_matrixElllPNS_19pspline2interpolantEPNS_8ae_stateE(ptr noundef nonnull %30, i64 noundef %.0568726, i64 noundef %.0588721, i64 noundef %.0587718, ptr noundef nonnull %32, ptr noundef %1)
  call void @_ZN11alglib_impl21pspline3buildperiodicEPNS_9ae_matrixElllPNS_19pspline3interpolantEPNS_8ae_stateE(ptr noundef nonnull %31, i64 noundef %.0568726, i64 noundef %.0588721, i64 noundef %.0587718, ptr noundef nonnull %33, ptr noundef %1)
  br label %87

86:                                               ; preds = %56
  call void @_ZN11alglib_impl13pspline2buildEPNS_9ae_matrixElllPNS_19pspline2interpolantEPNS_8ae_stateE(ptr noundef nonnull %30, i64 noundef %.0568726, i64 noundef %.0588721, i64 noundef %.0587718, ptr noundef nonnull %32, ptr noundef %1)
  call void @_ZN11alglib_impl13pspline3buildEPNS_9ae_matrixElllPNS_19pspline3interpolantEPNS_8ae_stateE(ptr noundef nonnull %31, i64 noundef %.0568726, i64 noundef %.0588721, i64 noundef %.0587718, ptr noundef nonnull %33, ptr noundef %1)
  br label %87

87:                                               ; preds = %86, %85
  call void @_ZN11alglib_impl23pspline2parametervaluesEPNS_19pspline2interpolantEPlPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef nonnull %5, ptr noundef nonnull %28, ptr noundef %1)
  %88 = load i64, ptr %5, align 8, !tbaa !16
  %.not = icmp eq i64 %88, %.0568726
  br i1 %.not, label %89, label %594

89:                                               ; preds = %87
  call void @_ZN11alglib_impl23pspline3parametervaluesEPNS_19pspline3interpolantEPlPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %33, ptr noundef nonnull %5, ptr noundef nonnull %29, ptr noundef %1)
  %90 = load i64, ptr %5, align 8, !tbaa !16
  %.not591 = icmp eq i64 %90, %.0568726
  br i1 %.not591, label %91, label %594

91:                                               ; preds = %89
  %92 = trunc nuw i8 %.3574717 to i1
  br i1 %92, label %97, label %93

93:                                               ; preds = %91
  %94 = load ptr, ptr %42, align 8, !tbaa !9
  %95 = load double, ptr %94, align 8, !tbaa !17
  %96 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %95, double noundef 0.000000e+00)
  br label %97

97:                                               ; preds = %93, %91
  %98 = phi i1 [ true, %91 ], [ %96, %93 ]
  %99 = trunc nuw i8 %.3578716 to i1
  br i1 %99, label %.preheader777, label %100

100:                                              ; preds = %97
  %101 = load ptr, ptr %43, align 8, !tbaa !9
  %102 = load double, ptr %101, align 8, !tbaa !17
  %103 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %102, double noundef 0.000000e+00)
  br label %.preheader777

.preheader777:                                    ; preds = %100, %97
  %.4579.in706.ph = phi i1 [ true, %97 ], [ %103, %100 ]
  br label %104

104:                                              ; preds = %.preheader777, %121
  %.0708 = phi i64 [ %123, %121 ], [ 1, %.preheader777 ]
  %.4.in707 = phi i1 [ %113, %121 ], [ %98, %.preheader777 ]
  %.4579.in706 = phi i1 [ %122, %121 ], [ %.4579.in706.ph, %.preheader777 ]
  br i1 %.4.in707, label %112, label %105

105:                                              ; preds = %104
  %106 = load ptr, ptr %42, align 8, !tbaa !9
  %107 = getelementptr inbounds double, ptr %106, i64 %.0708
  %108 = load double, ptr %107, align 8, !tbaa !17
  %109 = getelementptr i8, ptr %107, i64 -8
  %110 = load double, ptr %109, align 8, !tbaa !17
  %111 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %108, double noundef %110)
  br label %112

112:                                              ; preds = %105, %104
  %113 = phi i1 [ true, %104 ], [ %111, %105 ]
  br i1 %.4579.in706, label %121, label %114

114:                                              ; preds = %112
  %115 = load ptr, ptr %43, align 8, !tbaa !9
  %116 = getelementptr inbounds double, ptr %115, i64 %.0708
  %117 = load double, ptr %116, align 8, !tbaa !17
  %118 = getelementptr i8, ptr %116, i64 -8
  %119 = load double, ptr %118, align 8, !tbaa !17
  %120 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %117, double noundef %119)
  br label %121

121:                                              ; preds = %114, %112
  %122 = phi i1 [ true, %112 ], [ %120, %114 ]
  %123 = add nuw nsw i64 %.0708, 1
  %exitcond.not = icmp eq i64 %123, %.0568726
  br i1 %exitcond.not, label %124, label %104, !llvm.loop !19

124:                                              ; preds = %121
  br i1 %54, label %125, label %138

125:                                              ; preds = %124
  br i1 %113, label %131, label %126

126:                                              ; preds = %125
  %127 = load ptr, ptr %42, align 8, !tbaa !9
  %128 = getelementptr inbounds double, ptr %127, i64 %46
  %129 = load double, ptr %128, align 8, !tbaa !17
  %130 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %129, double noundef 1.000000e+00)
  br label %131

131:                                              ; preds = %126, %125
  %132 = phi i1 [ true, %125 ], [ %130, %126 ]
  br i1 %122, label %.preheader776, label %133

133:                                              ; preds = %131
  %134 = load ptr, ptr %43, align 8, !tbaa !9
  %135 = getelementptr inbounds double, ptr %134, i64 %46
  %136 = load double, ptr %135, align 8, !tbaa !17
  %137 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %136, double noundef 1.000000e+00)
  br label %.preheader776

138:                                              ; preds = %124
  br i1 %113, label %144, label %139

139:                                              ; preds = %138
  %140 = load ptr, ptr %42, align 8, !tbaa !9
  %141 = getelementptr inbounds double, ptr %140, i64 %46
  %142 = load double, ptr %141, align 8, !tbaa !17
  %143 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %142, double noundef 1.000000e+00)
  br label %144

144:                                              ; preds = %139, %138
  %145 = phi i1 [ true, %138 ], [ %143, %139 ]
  br i1 %122, label %.preheader776, label %146

146:                                              ; preds = %144
  %147 = load ptr, ptr %43, align 8, !tbaa !9
  %148 = getelementptr inbounds double, ptr %147, i64 %46
  %149 = load double, ptr %148, align 8, !tbaa !17
  %150 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %149, double noundef 1.000000e+00)
  br label %.preheader776

.preheader776:                                    ; preds = %144, %146, %131, %133
  %.6.in710.ph = phi i1 [ %132, %133 ], [ %132, %131 ], [ %145, %146 ], [ %145, %144 ]
  %.6581.in709.ph = phi i1 [ %137, %133 ], [ true, %131 ], [ %150, %146 ], [ true, %144 ]
  br label %151

151:                                              ; preds = %.preheader776, %.critedge598
  %.1711 = phi i64 [ %199, %.critedge598 ], [ 0, %.preheader776 ]
  %.6.in710 = phi i1 [ %171, %.critedge598 ], [ %.6.in710.ph, %.preheader776 ]
  %.6581.in709 = phi i1 [ %198, %.critedge598 ], [ %.6581.in709.ph, %.preheader776 ]
  %152 = load ptr, ptr %42, align 8, !tbaa !9
  %153 = getelementptr inbounds double, ptr %152, i64 %.1711
  %154 = load double, ptr %153, align 8, !tbaa !17
  call void @_ZN11alglib_impl12pspline2calcEPNS_19pspline2interpolantEdPdS2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef %154, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %1)
  br i1 %.6.in710, label %.critedge, label %155

155:                                              ; preds = %151
  %156 = load double, ptr %6, align 8, !tbaa !17
  %157 = load ptr, ptr %37, align 8, !tbaa !9
  %158 = getelementptr inbounds double, ptr %157, i64 %.1711
  %159 = load double, ptr %158, align 8, !tbaa !17
  %160 = fsub double %156, %159
  %161 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %160, ptr noundef %1)
  %162 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %161, double noundef 0x3D95FD7FE1796496)
  br i1 %162, label %.critedge, label %163

163:                                              ; preds = %155
  %164 = load double, ptr %7, align 8, !tbaa !17
  %165 = load ptr, ptr %40, align 8, !tbaa !9
  %166 = getelementptr inbounds double, ptr %165, i64 %.1711
  %167 = load double, ptr %166, align 8, !tbaa !17
  %168 = fsub double %164, %167
  %169 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %168, ptr noundef %1)
  %170 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %169, double noundef 0x3D95FD7FE1796496)
  br label %.critedge

.critedge:                                        ; preds = %151, %163, %155
  %171 = phi i1 [ true, %155 ], [ %170, %163 ], [ true, %151 ]
  %172 = load ptr, ptr %43, align 8, !tbaa !9
  %173 = getelementptr inbounds double, ptr %172, i64 %.1711
  %174 = load double, ptr %173, align 8, !tbaa !17
  call void @_ZN11alglib_impl12pspline3calcEPNS_19pspline3interpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef %174, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef %1)
  br i1 %.6581.in709, label %.critedge598, label %175

175:                                              ; preds = %.critedge
  %176 = load double, ptr %6, align 8, !tbaa !17
  %177 = load ptr, ptr %37, align 8, !tbaa !9
  %178 = getelementptr inbounds double, ptr %177, i64 %.1711
  %179 = load double, ptr %178, align 8, !tbaa !17
  %180 = fsub double %176, %179
  %181 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %180, ptr noundef %1)
  %182 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %181, double noundef 0x3D95FD7FE1796496)
  br i1 %182, label %.critedge598, label %.critedge597

.critedge597:                                     ; preds = %175
  %183 = load double, ptr %7, align 8, !tbaa !17
  %184 = load ptr, ptr %40, align 8, !tbaa !9
  %185 = getelementptr inbounds double, ptr %184, i64 %.1711
  %186 = load double, ptr %185, align 8, !tbaa !17
  %187 = fsub double %183, %186
  %188 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %187, ptr noundef %1)
  %189 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %188, double noundef 0x3D95FD7FE1796496)
  br i1 %189, label %.critedge598, label %190

190:                                              ; preds = %.critedge597
  %191 = load double, ptr %8, align 8, !tbaa !17
  %192 = load ptr, ptr %41, align 8, !tbaa !9
  %193 = getelementptr inbounds double, ptr %192, i64 %.1711
  %194 = load double, ptr %193, align 8, !tbaa !17
  %195 = fsub double %191, %194
  %196 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %195, ptr noundef %1)
  %197 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %196, double noundef 0x3D95FD7FE1796496)
  br label %.critedge598

.critedge598:                                     ; preds = %175, %.critedge, %190, %.critedge597
  %198 = phi i1 [ true, %.critedge597 ], [ %197, %190 ], [ true, %.critedge ], [ true, %175 ]
  %199 = add nuw nsw i64 %.1711, 1
  %exitcond744.not = icmp eq i64 %199, %.0568726
  br i1 %exitcond744.not, label %200, label %151, !llvm.loop !21

200:                                              ; preds = %.critedge598
  %.6581 = zext i1 %198 to i8
  %.6 = zext i1 %171 to i8
  br i1 %54, label %.preheader702, label %594

.preheader702:                                    ; preds = %200, %.critedge617
  %.2714 = phi i64 [ %386, %.critedge617 ], [ 0, %200 ]
  %.7713 = phi i1 [ %282, %.critedge617 ], [ %171, %200 ]
  %.7582712 = phi i1 [ %385, %.critedge617 ], [ %198, %200 ]
  %201 = load ptr, ptr %42, align 8, !tbaa !9
  %202 = getelementptr inbounds double, ptr %201, i64 %.2714
  %203 = load double, ptr %202, align 8, !tbaa !17
  %204 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %1)
  %205 = sitofp i64 %204 to double
  %206 = fadd double %203, %205
  %207 = fadd double %206, -5.000000e+00
  call void @_ZN11alglib_impl12pspline2calcEPNS_19pspline2interpolantEdPdS2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef %207, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %1)
  br i1 %.7713, label %.critedge601, label %208

208:                                              ; preds = %.preheader702
  %209 = load double, ptr %6, align 8, !tbaa !17
  %210 = load ptr, ptr %37, align 8, !tbaa !9
  %211 = getelementptr inbounds double, ptr %210, i64 %.2714
  %212 = load double, ptr %211, align 8, !tbaa !17
  %213 = fsub double %209, %212
  %214 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %213, ptr noundef %1)
  %215 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %214, double noundef 0x3D95FD7FE1796496)
  br i1 %215, label %.critedge601, label %.critedge600

.critedge600:                                     ; preds = %208
  %216 = load double, ptr %7, align 8, !tbaa !17
  %217 = load ptr, ptr %40, align 8, !tbaa !9
  %218 = getelementptr inbounds double, ptr %217, i64 %.2714
  %219 = load double, ptr %218, align 8, !tbaa !17
  %220 = fsub double %216, %219
  %221 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %220, ptr noundef %1)
  %222 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %221, double noundef 0x3D95FD7FE1796496)
  %223 = load ptr, ptr %42, align 8, !tbaa !9
  %224 = getelementptr inbounds double, ptr %223, i64 %.2714
  %225 = load double, ptr %224, align 8, !tbaa !17
  %226 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %1)
  %227 = sitofp i64 %226 to double
  %228 = fadd double %225, %227
  %229 = fadd double %228, -5.000000e+00
  call void @_ZN11alglib_impl12pspline2diffEPNS_19pspline2interpolantEdPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef %229, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef %1)
  br i1 %222, label %.critedge604, label %230

230:                                              ; preds = %.critedge600
  %231 = load double, ptr %6, align 8, !tbaa !17
  %232 = load ptr, ptr %37, align 8, !tbaa !9
  %233 = getelementptr inbounds double, ptr %232, i64 %.2714
  %234 = load double, ptr %233, align 8, !tbaa !17
  %235 = fsub double %231, %234
  %236 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %235, ptr noundef %1)
  %237 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %236, double noundef 0x3D95FD7FE1796496)
  br i1 %237, label %.critedge604, label %.critedge603

.critedge601:                                     ; preds = %.preheader702, %208
  %238 = load ptr, ptr %42, align 8, !tbaa !9
  %239 = getelementptr inbounds double, ptr %238, i64 %.2714
  %240 = load double, ptr %239, align 8, !tbaa !17
  %241 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %1)
  %242 = sitofp i64 %241 to double
  %243 = fadd double %240, %242
  %244 = fadd double %243, -5.000000e+00
  call void @_ZN11alglib_impl12pspline2diffEPNS_19pspline2interpolantEdPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef %244, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef %1)
  br label %.critedge604

.critedge603:                                     ; preds = %230
  %245 = load double, ptr %7, align 8, !tbaa !17
  %246 = load ptr, ptr %40, align 8, !tbaa !9
  %247 = getelementptr inbounds double, ptr %246, i64 %.2714
  %248 = load double, ptr %247, align 8, !tbaa !17
  %249 = fsub double %245, %248
  %250 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %249, ptr noundef %1)
  %251 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %250, double noundef 0x3D95FD7FE1796496)
  %252 = load ptr, ptr %42, align 8, !tbaa !9
  %253 = getelementptr inbounds double, ptr %252, i64 %.2714
  %254 = load double, ptr %253, align 8, !tbaa !17
  %255 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %1)
  %256 = sitofp i64 %255 to double
  %257 = fadd double %254, %256
  %258 = fadd double %257, -5.000000e+00
  call void @_ZN11alglib_impl13pspline2diff2EPNS_19pspline2interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef %258, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %18, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %19, ptr noundef %1)
  br i1 %251, label %.critedge606, label %259

259:                                              ; preds = %.critedge603
  %260 = load double, ptr %6, align 8, !tbaa !17
  %261 = load ptr, ptr %37, align 8, !tbaa !9
  %262 = getelementptr inbounds double, ptr %261, i64 %.2714
  %263 = load double, ptr %262, align 8, !tbaa !17
  %264 = fsub double %260, %263
  %265 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %264, ptr noundef %1)
  %266 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %265, double noundef 0x3D95FD7FE1796496)
  br i1 %266, label %.critedge606, label %274

.critedge604:                                     ; preds = %.critedge600, %.critedge601, %230
  %267 = load ptr, ptr %42, align 8, !tbaa !9
  %268 = getelementptr inbounds double, ptr %267, i64 %.2714
  %269 = load double, ptr %268, align 8, !tbaa !17
  %270 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %1)
  %271 = sitofp i64 %270 to double
  %272 = fadd double %269, %271
  %273 = fadd double %272, -5.000000e+00
  call void @_ZN11alglib_impl13pspline2diff2EPNS_19pspline2interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef %273, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %18, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %19, ptr noundef %1)
  br label %.critedge606

274:                                              ; preds = %259
  %275 = load double, ptr %7, align 8, !tbaa !17
  %276 = load ptr, ptr %40, align 8, !tbaa !9
  %277 = getelementptr inbounds double, ptr %276, i64 %.2714
  %278 = load double, ptr %277, align 8, !tbaa !17
  %279 = fsub double %275, %278
  %280 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %279, ptr noundef %1)
  %281 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %280, double noundef 0x3D95FD7FE1796496)
  br label %.critedge606

.critedge606:                                     ; preds = %.critedge603, %.critedge604, %274, %259
  %282 = phi i1 [ true, %259 ], [ %281, %274 ], [ true, %.critedge604 ], [ true, %.critedge603 ]
  %283 = load ptr, ptr %43, align 8, !tbaa !9
  %284 = getelementptr inbounds double, ptr %283, i64 %.2714
  %285 = load double, ptr %284, align 8, !tbaa !17
  %286 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %1)
  %287 = sitofp i64 %286 to double
  %288 = fadd double %285, %287
  %289 = fadd double %288, -5.000000e+00
  call void @_ZN11alglib_impl12pspline3calcEPNS_19pspline3interpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef %289, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef %1)
  br i1 %.7582712, label %.critedge610, label %290

290:                                              ; preds = %.critedge606
  %291 = load double, ptr %6, align 8, !tbaa !17
  %292 = load ptr, ptr %37, align 8, !tbaa !9
  %293 = getelementptr inbounds double, ptr %292, i64 %.2714
  %294 = load double, ptr %293, align 8, !tbaa !17
  %295 = fsub double %291, %294
  %296 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %295, ptr noundef %1)
  %297 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %296, double noundef 0x3D95FD7FE1796496)
  br i1 %297, label %.critedge610, label %.critedge608

.critedge608:                                     ; preds = %290
  %298 = load double, ptr %7, align 8, !tbaa !17
  %299 = load ptr, ptr %40, align 8, !tbaa !9
  %300 = getelementptr inbounds double, ptr %299, i64 %.2714
  %301 = load double, ptr %300, align 8, !tbaa !17
  %302 = fsub double %298, %301
  %303 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %302, ptr noundef %1)
  %304 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %303, double noundef 0x3D95FD7FE1796496)
  br i1 %304, label %.critedge610, label %.critedge609

.critedge609:                                     ; preds = %.critedge608
  %305 = load double, ptr %8, align 8, !tbaa !17
  %306 = load ptr, ptr %41, align 8, !tbaa !9
  %307 = getelementptr inbounds double, ptr %306, i64 %.2714
  %308 = load double, ptr %307, align 8, !tbaa !17
  %309 = fsub double %305, %308
  %310 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %309, ptr noundef %1)
  %311 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %310, double noundef 0x3D95FD7FE1796496)
  %312 = load ptr, ptr %43, align 8, !tbaa !9
  %313 = getelementptr inbounds double, ptr %312, i64 %.2714
  %314 = load double, ptr %313, align 8, !tbaa !17
  %315 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %1)
  %316 = sitofp i64 %315 to double
  %317 = fadd double %314, %316
  %318 = fadd double %317, -5.000000e+00
  call void @_ZN11alglib_impl12pspline3diffEPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef %318, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %8, ptr noundef nonnull %14, ptr noundef %1)
  br i1 %311, label %.critedge614, label %319

319:                                              ; preds = %.critedge609
  %320 = load double, ptr %6, align 8, !tbaa !17
  %321 = load ptr, ptr %37, align 8, !tbaa !9
  %322 = getelementptr inbounds double, ptr %321, i64 %.2714
  %323 = load double, ptr %322, align 8, !tbaa !17
  %324 = fsub double %320, %323
  %325 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %324, ptr noundef %1)
  %326 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %325, double noundef 0x3D95FD7FE1796496)
  br i1 %326, label %.critedge614, label %.critedge612

.critedge610:                                     ; preds = %290, %.critedge606, %.critedge608
  %327 = load ptr, ptr %43, align 8, !tbaa !9
  %328 = getelementptr inbounds double, ptr %327, i64 %.2714
  %329 = load double, ptr %328, align 8, !tbaa !17
  %330 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %1)
  %331 = sitofp i64 %330 to double
  %332 = fadd double %329, %331
  %333 = fadd double %332, -5.000000e+00
  call void @_ZN11alglib_impl12pspline3diffEPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef %333, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %8, ptr noundef nonnull %14, ptr noundef %1)
  br label %.critedge614

.critedge612:                                     ; preds = %319
  %334 = load double, ptr %7, align 8, !tbaa !17
  %335 = load ptr, ptr %40, align 8, !tbaa !9
  %336 = getelementptr inbounds double, ptr %335, i64 %.2714
  %337 = load double, ptr %336, align 8, !tbaa !17
  %338 = fsub double %334, %337
  %339 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %338, ptr noundef %1)
  %340 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %339, double noundef 0x3D95FD7FE1796496)
  br i1 %340, label %.critedge614, label %.critedge613

.critedge613:                                     ; preds = %.critedge612
  %341 = load double, ptr %8, align 8, !tbaa !17
  %342 = load ptr, ptr %41, align 8, !tbaa !9
  %343 = getelementptr inbounds double, ptr %342, i64 %.2714
  %344 = load double, ptr %343, align 8, !tbaa !17
  %345 = fsub double %341, %344
  %346 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %345, ptr noundef %1)
  %347 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %346, double noundef 0x3D95FD7FE1796496)
  %348 = load ptr, ptr %43, align 8, !tbaa !9
  %349 = getelementptr inbounds double, ptr %348, i64 %.2714
  %350 = load double, ptr %349, align 8, !tbaa !17
  %351 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %1)
  %352 = sitofp i64 %351 to double
  %353 = fadd double %350, %352
  %354 = fadd double %353, -5.000000e+00
  call void @_ZN11alglib_impl13pspline3diff2EPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef %354, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %18, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %19, ptr noundef nonnull %8, ptr noundef nonnull %14, ptr noundef nonnull %20, ptr noundef %1)
  br i1 %347, label %.critedge617, label %355

355:                                              ; preds = %.critedge613
  %356 = load double, ptr %6, align 8, !tbaa !17
  %357 = load ptr, ptr %37, align 8, !tbaa !9
  %358 = getelementptr inbounds double, ptr %357, i64 %.2714
  %359 = load double, ptr %358, align 8, !tbaa !17
  %360 = fsub double %356, %359
  %361 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %360, ptr noundef %1)
  %362 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %361, double noundef 0x3D95FD7FE1796496)
  br i1 %362, label %.critedge617, label %.critedge616

.critedge614:                                     ; preds = %319, %.critedge610, %.critedge609, %.critedge612
  %363 = load ptr, ptr %43, align 8, !tbaa !9
  %364 = getelementptr inbounds double, ptr %363, i64 %.2714
  %365 = load double, ptr %364, align 8, !tbaa !17
  %366 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %1)
  %367 = sitofp i64 %366 to double
  %368 = fadd double %365, %367
  %369 = fadd double %368, -5.000000e+00
  call void @_ZN11alglib_impl13pspline3diff2EPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef %369, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %18, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %19, ptr noundef nonnull %8, ptr noundef nonnull %14, ptr noundef nonnull %20, ptr noundef %1)
  br label %.critedge617

.critedge616:                                     ; preds = %355
  %370 = load double, ptr %7, align 8, !tbaa !17
  %371 = load ptr, ptr %40, align 8, !tbaa !9
  %372 = getelementptr inbounds double, ptr %371, i64 %.2714
  %373 = load double, ptr %372, align 8, !tbaa !17
  %374 = fsub double %370, %373
  %375 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %374, ptr noundef %1)
  %376 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %375, double noundef 0x3D95FD7FE1796496)
  br i1 %376, label %.critedge617, label %377

377:                                              ; preds = %.critedge616
  %378 = load double, ptr %8, align 8, !tbaa !17
  %379 = load ptr, ptr %41, align 8, !tbaa !9
  %380 = getelementptr inbounds double, ptr %379, i64 %.2714
  %381 = load double, ptr %380, align 8, !tbaa !17
  %382 = fsub double %378, %381
  %383 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %382, ptr noundef %1)
  %384 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %383, double noundef 0x3D95FD7FE1796496)
  br label %.critedge617

.critedge617:                                     ; preds = %355, %.critedge614, %.critedge613, %377, %.critedge616
  %385 = phi i1 [ true, %.critedge616 ], [ %384, %377 ], [ true, %.critedge613 ], [ true, %.critedge614 ], [ true, %355 ]
  %386 = add nuw nsw i64 %.2714, 1
  %exitcond745.not = icmp eq i64 %386, %.0568726
  br i1 %exitcond745.not, label %387, label %.preheader702, !llvm.loop !22

387:                                              ; preds = %.critedge617
  %388 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  call void @_ZN11alglib_impl12pspline2calcEPNS_19pspline2interpolantEdPdS2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef %388, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %1)
  %389 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %1)
  %390 = sitofp i64 %389 to double
  %391 = fadd double %388, %390
  %392 = fadd double %391, -5.000000e+00
  call void @_ZN11alglib_impl12pspline2calcEPNS_19pspline2interpolantEdPdS2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef %392, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  br i1 %282, label %.critedge619, label %393

393:                                              ; preds = %387
  %394 = load double, ptr %6, align 8, !tbaa !17
  %395 = load double, ptr %9, align 8, !tbaa !17
  %396 = fsub double %394, %395
  %397 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %396, ptr noundef %1)
  %398 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %397, double noundef 0x3D95FD7FE1796496)
  br i1 %398, label %.critedge619, label %399

399:                                              ; preds = %393
  %400 = load double, ptr %7, align 8, !tbaa !17
  %401 = load double, ptr %10, align 8, !tbaa !17
  %402 = fsub double %400, %401
  %403 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %402, ptr noundef %1)
  %404 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %403, double noundef 0x3D95FD7FE1796496)
  br label %.critedge619

.critedge619:                                     ; preds = %387, %399, %393
  %405 = phi i1 [ true, %393 ], [ %404, %399 ], [ true, %387 ]
  call void @_ZN11alglib_impl12pspline3calcEPNS_19pspline3interpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef %388, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef %1)
  %406 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %1)
  %407 = sitofp i64 %406 to double
  %408 = fadd double %388, %407
  %409 = fadd double %408, -5.000000e+00
  call void @_ZN11alglib_impl12pspline3calcEPNS_19pspline3interpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef %409, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %1)
  br i1 %385, label %.critedge622, label %410

410:                                              ; preds = %.critedge619
  %411 = load double, ptr %6, align 8, !tbaa !17
  %412 = load double, ptr %9, align 8, !tbaa !17
  %413 = fsub double %411, %412
  %414 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %413, ptr noundef %1)
  %415 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %414, double noundef 0x3D95FD7FE1796496)
  br i1 %415, label %.critedge622, label %.critedge621

.critedge621:                                     ; preds = %410
  %416 = load double, ptr %7, align 8, !tbaa !17
  %417 = load double, ptr %10, align 8, !tbaa !17
  %418 = fsub double %416, %417
  %419 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %418, ptr noundef %1)
  %420 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %419, double noundef 0x3D95FD7FE1796496)
  br i1 %420, label %.critedge622, label %421

421:                                              ; preds = %.critedge621
  %422 = load double, ptr %8, align 8, !tbaa !17
  %423 = load double, ptr %11, align 8, !tbaa !17
  %424 = fsub double %422, %423
  %425 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %424, ptr noundef %1)
  %426 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %425, double noundef 0x3D95FD7FE1796496)
  br label %.critedge622

.critedge622:                                     ; preds = %410, %.critedge619, %421, %.critedge621
  %427 = phi i1 [ true, %.critedge621 ], [ %426, %421 ], [ true, %.critedge619 ], [ true, %410 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef nonnull @.str.631, ptr noundef %1)
  call void @_ZN11alglib_impl12pspline2calcEPNS_19pspline2interpolantEdPdS2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef 5.000000e-14, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl12pspline2calcEPNS_19pspline2interpolantEdPdS2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef 0x3FEFFFFFFFFFFE3E, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  br i1 %405, label %.critedge625, label %428

428:                                              ; preds = %.critedge622
  %429 = load double, ptr %6, align 8, !tbaa !17
  %430 = load double, ptr %9, align 8, !tbaa !17
  %431 = fsub double %429, %430
  %432 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %431, ptr noundef %1)
  %433 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %432, double noundef 0x3D95FD7FE1796496)
  br i1 %433, label %.critedge625, label %.critedge624

.critedge624:                                     ; preds = %428
  %434 = load double, ptr %7, align 8, !tbaa !17
  %435 = load double, ptr %10, align 8, !tbaa !17
  %436 = fsub double %434, %435
  %437 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %436, ptr noundef %1)
  %438 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %437, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl12pspline2diffEPNS_19pspline2interpolantEdPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef 5.000000e-14, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef %1)
  call void @_ZN11alglib_impl12pspline2diffEPNS_19pspline2interpolantEdPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef 0x3FEFFFFFFFFFFE3E, ptr noundef nonnull %9, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %16, ptr noundef %1)
  br i1 %438, label %.critedge630, label %439

439:                                              ; preds = %.critedge624
  %440 = load double, ptr %6, align 8, !tbaa !17
  %441 = load double, ptr %9, align 8, !tbaa !17
  %442 = fsub double %440, %441
  %443 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %442, ptr noundef %1)
  %444 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %443, double noundef 0x3D95FD7FE1796496)
  br i1 %444, label %.critedge630, label %.critedge627

.critedge625:                                     ; preds = %.critedge622, %428
  call void @_ZN11alglib_impl12pspline2diffEPNS_19pspline2interpolantEdPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef 5.000000e-14, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef %1)
  call void @_ZN11alglib_impl12pspline2diffEPNS_19pspline2interpolantEdPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef 0x3FEFFFFFFFFFFE3E, ptr noundef nonnull %9, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %16, ptr noundef %1)
  br label %.critedge630

.critedge627:                                     ; preds = %439
  %445 = load double, ptr %7, align 8, !tbaa !17
  %446 = load double, ptr %10, align 8, !tbaa !17
  %447 = fsub double %445, %446
  %448 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %447, ptr noundef %1)
  %449 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %448, double noundef 0x3D95FD7FE1796496)
  br i1 %449, label %.critedge630, label %.critedge628

.critedge628:                                     ; preds = %.critedge627
  %450 = load double, ptr %12, align 8, !tbaa !17
  %451 = load double, ptr %15, align 8, !tbaa !17
  %452 = fsub double %450, %451
  %453 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %452, ptr noundef %1)
  %454 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %453, double noundef 1.000000e-05)
  br i1 %454, label %.critedge630, label %.critedge629

.critedge629:                                     ; preds = %.critedge628
  %455 = load double, ptr %13, align 8, !tbaa !17
  %456 = load double, ptr %16, align 8, !tbaa !17
  %457 = fsub double %455, %456
  %458 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %457, ptr noundef %1)
  %459 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %458, double noundef 1.000000e-05)
  call void @_ZN11alglib_impl13pspline2diff2EPNS_19pspline2interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef 5.000000e-14, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %18, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %19, ptr noundef %1)
  call void @_ZN11alglib_impl13pspline2diff2EPNS_19pspline2interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef 0x3FEFFFFFFFFFFE3E, ptr noundef nonnull %9, ptr noundef nonnull %15, ptr noundef nonnull %21, ptr noundef nonnull %10, ptr noundef nonnull %16, ptr noundef nonnull %22, ptr noundef %1)
  br i1 %459, label %.critedge636, label %460

460:                                              ; preds = %.critedge629
  %461 = load double, ptr %6, align 8, !tbaa !17
  %462 = load double, ptr %9, align 8, !tbaa !17
  %463 = fsub double %461, %462
  %464 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %463, ptr noundef %1)
  %465 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %464, double noundef 0x3D95FD7FE1796496)
  br i1 %465, label %.critedge636, label %.critedge632

.critedge630:                                     ; preds = %.critedge627, %.critedge624, %.critedge625, %439, %.critedge628
  call void @_ZN11alglib_impl13pspline2diff2EPNS_19pspline2interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef 5.000000e-14, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %18, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %19, ptr noundef %1)
  call void @_ZN11alglib_impl13pspline2diff2EPNS_19pspline2interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef 0x3FEFFFFFFFFFFE3E, ptr noundef nonnull %9, ptr noundef nonnull %15, ptr noundef nonnull %21, ptr noundef nonnull %10, ptr noundef nonnull %16, ptr noundef nonnull %22, ptr noundef %1)
  br label %.critedge636

.critedge632:                                     ; preds = %460
  %466 = load double, ptr %7, align 8, !tbaa !17
  %467 = load double, ptr %10, align 8, !tbaa !17
  %468 = fsub double %466, %467
  %469 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %468, ptr noundef %1)
  %470 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %469, double noundef 0x3D95FD7FE1796496)
  br i1 %470, label %.critedge636, label %.critedge633

.critedge633:                                     ; preds = %.critedge632
  %471 = load double, ptr %12, align 8, !tbaa !17
  %472 = load double, ptr %15, align 8, !tbaa !17
  %473 = fsub double %471, %472
  %474 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %473, ptr noundef %1)
  %475 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %474, double noundef 1.000000e-05)
  br i1 %475, label %.critedge636, label %.critedge634

.critedge634:                                     ; preds = %.critedge633
  %476 = load double, ptr %13, align 8, !tbaa !17
  %477 = load double, ptr %16, align 8, !tbaa !17
  %478 = fsub double %476, %477
  %479 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %478, ptr noundef %1)
  %480 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %479, double noundef 1.000000e-05)
  %brmerge697 = or i1 %50, %480
  %.mux = or i1 %480, %not.
  br i1 %brmerge697, label %.critedge636, label %481

481:                                              ; preds = %.critedge634
  %482 = load double, ptr %18, align 8, !tbaa !17
  %483 = load double, ptr %21, align 8, !tbaa !17
  %484 = fsub double %482, %483
  %485 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %484, ptr noundef %1)
  %486 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %485, double noundef 1.000000e-05)
  br i1 %486, label %.critedge636, label %487

487:                                              ; preds = %481
  %488 = load double, ptr %19, align 8, !tbaa !17
  %489 = load double, ptr %22, align 8, !tbaa !17
  %490 = fsub double %488, %489
  %491 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %490, ptr noundef %1)
  %492 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %491, double noundef 1.000000e-05)
  br label %.critedge636

.critedge636:                                     ; preds = %.critedge632, %.critedge629, %.critedge630, %460, %.critedge633, %.critedge634, %481, %487
  %.8.in = phi i1 [ %.mux, %.critedge634 ], [ true, %481 ], [ %492, %487 ], [ true, %.critedge633 ], [ true, %460 ], [ true, %.critedge630 ], [ true, %.critedge629 ], [ true, %.critedge632 ]
  %.8 = zext i1 %.8.in to i8
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef nonnull @.str.631, ptr noundef %1)
  call void @_ZN11alglib_impl12pspline3calcEPNS_19pspline3interpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef 5.000000e-14, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef %1)
  call void @_ZN11alglib_impl12pspline3calcEPNS_19pspline3interpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef 0x3FEFFFFFFFFFFE3E, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %1)
  br i1 %427, label %.critedge640, label %493

493:                                              ; preds = %.critedge636
  %494 = load double, ptr %6, align 8, !tbaa !17
  %495 = load double, ptr %9, align 8, !tbaa !17
  %496 = fsub double %494, %495
  %497 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %496, ptr noundef %1)
  %498 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %497, double noundef 0x3D95FD7FE1796496)
  br i1 %498, label %.critedge640, label %.critedge638

.critedge638:                                     ; preds = %493
  %499 = load double, ptr %7, align 8, !tbaa !17
  %500 = load double, ptr %10, align 8, !tbaa !17
  %501 = fsub double %499, %500
  %502 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %501, ptr noundef %1)
  %503 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %502, double noundef 0x3D95FD7FE1796496)
  br i1 %503, label %.critedge640, label %.critedge639

.critedge639:                                     ; preds = %.critedge638
  %504 = load double, ptr %8, align 8, !tbaa !17
  %505 = load double, ptr %11, align 8, !tbaa !17
  %506 = fsub double %504, %505
  %507 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %506, ptr noundef %1)
  %508 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %507, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl12pspline3diffEPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef 5.000000e-14, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %8, ptr noundef nonnull %14, ptr noundef %1)
  call void @_ZN11alglib_impl12pspline3diffEPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef 0x3FEFFFFFFFFFFE3E, ptr noundef nonnull %9, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %17, ptr noundef %1)
  br i1 %508, label %.critedge647, label %509

509:                                              ; preds = %.critedge639
  %510 = load double, ptr %6, align 8, !tbaa !17
  %511 = load double, ptr %9, align 8, !tbaa !17
  %512 = fsub double %510, %511
  %513 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %512, ptr noundef %1)
  %514 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %513, double noundef 0x3D95FD7FE1796496)
  br i1 %514, label %.critedge647, label %.critedge642

.critedge640:                                     ; preds = %493, %.critedge636, %.critedge638
  call void @_ZN11alglib_impl12pspline3diffEPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef 5.000000e-14, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %8, ptr noundef nonnull %14, ptr noundef %1)
  call void @_ZN11alglib_impl12pspline3diffEPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef 0x3FEFFFFFFFFFFE3E, ptr noundef nonnull %9, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %17, ptr noundef %1)
  br label %.critedge647

.critedge642:                                     ; preds = %509
  %515 = load double, ptr %7, align 8, !tbaa !17
  %516 = load double, ptr %10, align 8, !tbaa !17
  %517 = fsub double %515, %516
  %518 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %517, ptr noundef %1)
  %519 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %518, double noundef 0x3D95FD7FE1796496)
  br i1 %519, label %.critedge647, label %.critedge643

.critedge643:                                     ; preds = %.critedge642
  %520 = load double, ptr %8, align 8, !tbaa !17
  %521 = load double, ptr %11, align 8, !tbaa !17
  %522 = fsub double %520, %521
  %523 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %522, ptr noundef %1)
  %524 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %523, double noundef 0x3D95FD7FE1796496)
  br i1 %524, label %.critedge647, label %.critedge644

.critedge644:                                     ; preds = %.critedge643
  %525 = load double, ptr %12, align 8, !tbaa !17
  %526 = load double, ptr %15, align 8, !tbaa !17
  %527 = fsub double %525, %526
  %528 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %527, ptr noundef %1)
  %529 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %528, double noundef 1.000000e-05)
  br i1 %529, label %.critedge647, label %.critedge645

.critedge645:                                     ; preds = %.critedge644
  %530 = load double, ptr %13, align 8, !tbaa !17
  %531 = load double, ptr %16, align 8, !tbaa !17
  %532 = fsub double %530, %531
  %533 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %532, ptr noundef %1)
  %534 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %533, double noundef 1.000000e-05)
  br i1 %534, label %.critedge647, label %.critedge646

.critedge646:                                     ; preds = %.critedge645
  %535 = load double, ptr %14, align 8, !tbaa !17
  %536 = load double, ptr %17, align 8, !tbaa !17
  %537 = fsub double %535, %536
  %538 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %537, ptr noundef %1)
  %539 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %538, double noundef 1.000000e-05)
  call void @_ZN11alglib_impl13pspline3diff2EPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef 5.000000e-14, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %18, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %19, ptr noundef nonnull %8, ptr noundef nonnull %14, ptr noundef nonnull %20, ptr noundef %1)
  call void @_ZN11alglib_impl13pspline3diff2EPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef 0x3FEFFFFFFFFFFE3E, ptr noundef nonnull %9, ptr noundef nonnull %15, ptr noundef nonnull %21, ptr noundef nonnull %10, ptr noundef nonnull %16, ptr noundef nonnull %22, ptr noundef nonnull %11, ptr noundef nonnull %17, ptr noundef nonnull %23, ptr noundef %1)
  br i1 %539, label %.critedge653, label %540

540:                                              ; preds = %.critedge646
  %541 = load double, ptr %6, align 8, !tbaa !17
  %542 = load double, ptr %9, align 8, !tbaa !17
  %543 = fsub double %541, %542
  %544 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %543, ptr noundef %1)
  %545 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %544, double noundef 0x3D95FD7FE1796496)
  br i1 %545, label %.critedge653, label %.critedge649

.critedge647:                                     ; preds = %.critedge644, %.critedge642, %.critedge639, %.critedge640, %509, %.critedge643, %.critedge645
  call void @_ZN11alglib_impl13pspline3diff2EPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef 5.000000e-14, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %18, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %19, ptr noundef nonnull %8, ptr noundef nonnull %14, ptr noundef nonnull %20, ptr noundef %1)
  call void @_ZN11alglib_impl13pspline3diff2EPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef 0x3FEFFFFFFFFFFE3E, ptr noundef nonnull %9, ptr noundef nonnull %15, ptr noundef nonnull %21, ptr noundef nonnull %10, ptr noundef nonnull %16, ptr noundef nonnull %22, ptr noundef nonnull %11, ptr noundef nonnull %17, ptr noundef nonnull %23, ptr noundef %1)
  br label %.critedge653

.critedge649:                                     ; preds = %540
  %546 = load double, ptr %7, align 8, !tbaa !17
  %547 = load double, ptr %10, align 8, !tbaa !17
  %548 = fsub double %546, %547
  %549 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %548, ptr noundef %1)
  %550 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %549, double noundef 0x3D95FD7FE1796496)
  br i1 %550, label %.critedge653, label %.critedge650

.critedge650:                                     ; preds = %.critedge649
  %551 = load double, ptr %8, align 8, !tbaa !17
  %552 = load double, ptr %11, align 8, !tbaa !17
  %553 = fsub double %551, %552
  %554 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %553, ptr noundef %1)
  %555 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %554, double noundef 0x3D95FD7FE1796496)
  br i1 %555, label %.critedge653, label %.critedge651

.critedge651:                                     ; preds = %.critedge650
  %556 = load double, ptr %12, align 8, !tbaa !17
  %557 = load double, ptr %15, align 8, !tbaa !17
  %558 = fsub double %556, %557
  %559 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %558, ptr noundef %1)
  %560 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %559, double noundef 1.000000e-05)
  br i1 %560, label %.critedge653, label %.critedge652

.critedge652:                                     ; preds = %.critedge651
  %561 = load double, ptr %13, align 8, !tbaa !17
  %562 = load double, ptr %16, align 8, !tbaa !17
  %563 = fsub double %561, %562
  %564 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %563, ptr noundef %1)
  %565 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %564, double noundef 1.000000e-05)
  br i1 %565, label %.critedge653, label %566

566:                                              ; preds = %.critedge652
  %567 = load double, ptr %14, align 8, !tbaa !17
  %568 = load double, ptr %17, align 8, !tbaa !17
  %569 = fsub double %567, %568
  %570 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %569, ptr noundef %1)
  %571 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %570, double noundef 1.000000e-05)
  br label %.critedge653

.critedge653:                                     ; preds = %.critedge651, %.critedge649, %.critedge646, %.critedge647, %540, %.critedge650, %566, %.critedge652
  %572 = phi i1 [ true, %.critedge652 ], [ %571, %566 ], [ true, %.critedge650 ], [ true, %540 ], [ true, %.critedge647 ], [ true, %.critedge646 ], [ true, %.critedge649 ], [ true, %.critedge651 ]
  %573 = zext i1 %572 to i8
  br i1 %50, label %594, label %574

574:                                              ; preds = %.critedge653
  br i1 %572, label %.critedge656, label %575

575:                                              ; preds = %574
  %576 = load double, ptr %18, align 8, !tbaa !17
  %577 = load double, ptr %21, align 8, !tbaa !17
  %578 = fsub double %576, %577
  %579 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %578, ptr noundef %1)
  %580 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %579, double noundef 1.000000e-05)
  br i1 %580, label %.critedge656, label %.critedge655

.critedge655:                                     ; preds = %575
  %581 = load double, ptr %19, align 8, !tbaa !17
  %582 = load double, ptr %22, align 8, !tbaa !17
  %583 = fsub double %581, %582
  %584 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %583, ptr noundef %1)
  %585 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %584, double noundef 1.000000e-05)
  br i1 %585, label %.critedge656, label %586

586:                                              ; preds = %.critedge655
  %587 = load double, ptr %20, align 8, !tbaa !17
  %588 = load double, ptr %23, align 8, !tbaa !17
  %589 = fsub double %587, %588
  %590 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %589, ptr noundef %1)
  %591 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %590, double noundef 1.000000e-05)
  br label %.critedge656

.critedge656:                                     ; preds = %575, %574, %586, %.critedge655
  %592 = phi i1 [ true, %.critedge655 ], [ %591, %586 ], [ true, %574 ], [ true, %575 ]
  %593 = zext i1 %592 to i8
  br label %594

594:                                              ; preds = %89, %87, %200, %.critedge656, %.critedge653, %53
  %.8583 = phi i8 [ %.3578716, %53 ], [ %593, %.critedge656 ], [ %573, %.critedge653 ], [ %.6581, %200 ], [ %.3578716, %87 ], [ 1, %89 ]
  %.9 = phi i8 [ %.3574717, %53 ], [ %.8, %.critedge656 ], [ %.8, %.critedge653 ], [ %.6, %200 ], [ 1, %87 ], [ %.3574717, %89 ]
  br i1 %55, label %53, label %595, !llvm.loop !23

595:                                              ; preds = %594
  %596 = add nuw nsw i64 %.0587718, 1
  %exitcond746.not = icmp eq i64 %596, 3
  br i1 %exitcond746.not, label %597, label %.preheader703, !llvm.loop !24

597:                                              ; preds = %595
  %598 = add nuw nsw i64 %.0588721, 1
  %exitcond747.not = icmp eq i64 %598, 3
  br i1 %exitcond747.not, label %599, label %.preheader704, !llvm.loop !25

599:                                              ; preds = %597
  %600 = add nuw nsw i64 %.0568726, 1
  %exitcond748.not = icmp eq i64 %600, 11
  br i1 %exitcond748.not, label %.preheader, label %.preheader705, !llvm.loop !26

601:                                              ; preds = %.preheader, %.critedge695
  %.1569729 = phi i64 [ 2, %.preheader ], [ %841, %.critedge695 ]
  %.10728 = phi i1 [ %47, %.preheader ], [ %810, %.critedge695 ]
  %.9584727 = phi i1 [ %48, %.preheader ], [ %840, %.critedge695 ]
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %30, i64 noundef %.1569729, i64 noundef 2, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %31, i64 noundef %.1569729, i64 noundef 3, ptr noundef %1)
  call void @_ZN11alglib_impl20taskgenint1dequidistEddlPNS_9ae_vectorES1_PNS_8ae_stateE(double noundef 0.000000e+00, double noundef 1.000000e+00, i64 noundef %.1569729, ptr noundef nonnull %27, ptr noundef nonnull %24, ptr noundef %1)
  %602 = load ptr, ptr %35, align 8, !tbaa !9
  %603 = load ptr, ptr %602, align 8, !tbaa !10
  %604 = load i64, ptr %36, align 8, !tbaa !12
  %605 = load ptr, ptr %37, align 8, !tbaa !9
  %606 = add nsw i64 %.1569729, -1
  %607 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %606)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %603, i64 noundef %604, ptr noundef %605, i64 noundef 1, i64 noundef %607)
  %608 = load ptr, ptr %38, align 8, !tbaa !9
  %609 = load ptr, ptr %608, align 8, !tbaa !10
  %610 = load i64, ptr %39, align 8, !tbaa !12
  %611 = load ptr, ptr %37, align 8, !tbaa !9
  %612 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %606)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %609, i64 noundef %610, ptr noundef %611, i64 noundef 1, i64 noundef %612)
  call void @_ZN11alglib_impl20taskgenint1dequidistEddlPNS_9ae_vectorES1_PNS_8ae_stateE(double noundef 0.000000e+00, double noundef 1.000000e+00, i64 noundef %.1569729, ptr noundef nonnull %27, ptr noundef nonnull %25, ptr noundef %1)
  %613 = load ptr, ptr %35, align 8, !tbaa !9
  %614 = load ptr, ptr %613, align 8, !tbaa !10
  %615 = getelementptr inbounds i8, ptr %614, i64 8
  %616 = load i64, ptr %36, align 8, !tbaa !12
  %617 = load ptr, ptr %40, align 8, !tbaa !9
  %618 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %606)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %615, i64 noundef %616, ptr noundef %617, i64 noundef 1, i64 noundef %618)
  %619 = load ptr, ptr %38, align 8, !tbaa !9
  %620 = load ptr, ptr %619, align 8, !tbaa !10
  %621 = getelementptr inbounds i8, ptr %620, i64 8
  %622 = load i64, ptr %39, align 8, !tbaa !12
  %623 = load ptr, ptr %40, align 8, !tbaa !9
  %624 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %606)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %621, i64 noundef %622, ptr noundef %623, i64 noundef 1, i64 noundef %624)
  call void @_ZN11alglib_impl20taskgenint1dequidistEddlPNS_9ae_vectorES1_PNS_8ae_stateE(double noundef 0.000000e+00, double noundef 1.000000e+00, i64 noundef %.1569729, ptr noundef nonnull %27, ptr noundef nonnull %26, ptr noundef %1)
  %625 = load ptr, ptr %38, align 8, !tbaa !9
  %626 = load ptr, ptr %625, align 8, !tbaa !10
  %627 = getelementptr inbounds i8, ptr %626, i64 16
  %628 = load i64, ptr %39, align 8, !tbaa !12
  %629 = load ptr, ptr %41, align 8, !tbaa !9
  %630 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %606)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %627, i64 noundef %628, ptr noundef %629, i64 noundef 1, i64 noundef %630)
  call void @_ZL26testparametricunit_unsetp2PN11alglib_impl19pspline2interpolantEPNS_8ae_stateE(ptr noundef nonnull %32, ptr noundef %1)
  call void @_ZL26testparametricunit_unsetp3PN11alglib_impl19pspline3interpolantEPNS_8ae_stateE(ptr noundef nonnull %33, ptr noundef %1)
  call void @_ZN11alglib_impl13pspline2buildEPNS_9ae_matrixElllPNS_19pspline2interpolantEPNS_8ae_stateE(ptr noundef nonnull %30, i64 noundef %.1569729, i64 noundef 2, i64 noundef 0, ptr noundef nonnull %32, ptr noundef %1)
  call void @_ZN11alglib_impl13pspline3buildEPNS_9ae_matrixElllPNS_19pspline3interpolantEPNS_8ae_stateE(ptr noundef nonnull %31, i64 noundef %.1569729, i64 noundef 2, i64 noundef 0, ptr noundef nonnull %33, ptr noundef %1)
  %631 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %27, ptr noundef nonnull %24, i64 noundef %.1569729, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %34, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %34, double noundef %631, ptr noundef nonnull %9, ptr noundef nonnull %15, ptr noundef nonnull %21, ptr noundef %1)
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %27, ptr noundef nonnull %25, i64 noundef %.1569729, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %34, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %34, double noundef %631, ptr noundef nonnull %10, ptr noundef nonnull %16, ptr noundef nonnull %22, ptr noundef %1)
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %27, ptr noundef nonnull %26, i64 noundef %.1569729, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef nonnull %34, ptr noundef %1)
  call void @_ZN11alglib_impl12spline1ddiffEPNS_19spline1dinterpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %34, double noundef %631, ptr noundef nonnull %11, ptr noundef nonnull %17, ptr noundef nonnull %23, ptr noundef %1)
  call void @_ZN11alglib_impl12pspline2calcEPNS_19pspline2interpolantEdPdS2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef %631, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %1)
  br i1 %.10728, label %.critedge659, label %632

632:                                              ; preds = %601
  %633 = load double, ptr %6, align 8, !tbaa !17
  %634 = load double, ptr %9, align 8, !tbaa !17
  %635 = fsub double %633, %634
  %636 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %635, ptr noundef %1)
  %637 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %636, double noundef 0x3D95FD7FE1796496)
  br i1 %637, label %.critedge659, label %.critedge658

.critedge658:                                     ; preds = %632
  %638 = load double, ptr %7, align 8, !tbaa !17
  %639 = load double, ptr %10, align 8, !tbaa !17
  %640 = fsub double %638, %639
  %641 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %640, ptr noundef %1)
  %642 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %641, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl12pspline2diffEPNS_19pspline2interpolantEdPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef %631, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef %1)
  br i1 %642, label %.critedge664, label %643

643:                                              ; preds = %.critedge658
  %644 = load double, ptr %6, align 8, !tbaa !17
  %645 = load double, ptr %9, align 8, !tbaa !17
  %646 = fsub double %644, %645
  %647 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %646, ptr noundef %1)
  %648 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %647, double noundef 0x3D95FD7FE1796496)
  br i1 %648, label %.critedge664, label %.critedge661

.critedge659:                                     ; preds = %601, %632
  call void @_ZN11alglib_impl12pspline2diffEPNS_19pspline2interpolantEdPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef %631, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef %1)
  br label %.critedge664

.critedge661:                                     ; preds = %643
  %649 = load double, ptr %7, align 8, !tbaa !17
  %650 = load double, ptr %10, align 8, !tbaa !17
  %651 = fsub double %649, %650
  %652 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %651, ptr noundef %1)
  %653 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %652, double noundef 0x3D95FD7FE1796496)
  br i1 %653, label %.critedge664, label %.critedge662

.critedge662:                                     ; preds = %.critedge661
  %654 = load double, ptr %12, align 8, !tbaa !17
  %655 = load double, ptr %15, align 8, !tbaa !17
  %656 = fsub double %654, %655
  %657 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %656, ptr noundef %1)
  %658 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %657, double noundef 0x3D95FD7FE1796496)
  br i1 %658, label %.critedge664, label %.critedge663

.critedge663:                                     ; preds = %.critedge662
  %659 = load double, ptr %13, align 8, !tbaa !17
  %660 = load double, ptr %16, align 8, !tbaa !17
  %661 = fsub double %659, %660
  %662 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %661, ptr noundef %1)
  %663 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %662, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl13pspline2diff2EPNS_19pspline2interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef %631, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %18, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %19, ptr noundef %1)
  br i1 %663, label %.critedge670, label %664

664:                                              ; preds = %.critedge663
  %665 = load double, ptr %6, align 8, !tbaa !17
  %666 = load double, ptr %9, align 8, !tbaa !17
  %667 = fsub double %665, %666
  %668 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %667, ptr noundef %1)
  %669 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %668, double noundef 0x3D95FD7FE1796496)
  br i1 %669, label %.critedge670, label %.critedge666

.critedge664:                                     ; preds = %.critedge661, %.critedge658, %.critedge659, %643, %.critedge662
  call void @_ZN11alglib_impl13pspline2diff2EPNS_19pspline2interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef %631, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %18, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %19, ptr noundef %1)
  br label %.critedge670

.critedge666:                                     ; preds = %664
  %670 = load double, ptr %7, align 8, !tbaa !17
  %671 = load double, ptr %10, align 8, !tbaa !17
  %672 = fsub double %670, %671
  %673 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %672, ptr noundef %1)
  %674 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %673, double noundef 0x3D95FD7FE1796496)
  br i1 %674, label %.critedge670, label %.critedge667

.critedge667:                                     ; preds = %.critedge666
  %675 = load double, ptr %12, align 8, !tbaa !17
  %676 = load double, ptr %15, align 8, !tbaa !17
  %677 = fsub double %675, %676
  %678 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %677, ptr noundef %1)
  %679 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %678, double noundef 0x3D95FD7FE1796496)
  br i1 %679, label %.critedge670, label %.critedge668

.critedge668:                                     ; preds = %.critedge667
  %680 = load double, ptr %13, align 8, !tbaa !17
  %681 = load double, ptr %16, align 8, !tbaa !17
  %682 = fsub double %680, %681
  %683 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %682, ptr noundef %1)
  %684 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %683, double noundef 0x3D95FD7FE1796496)
  br i1 %684, label %.critedge670, label %.critedge669

.critedge669:                                     ; preds = %.critedge668
  %685 = load double, ptr %18, align 8, !tbaa !17
  %686 = load double, ptr %21, align 8, !tbaa !17
  %687 = fsub double %685, %686
  %688 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %687, ptr noundef %1)
  %689 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %688, double noundef 0x3D95FD7FE1796496)
  br i1 %689, label %.critedge670, label %690

690:                                              ; preds = %.critedge669
  %691 = load double, ptr %19, align 8, !tbaa !17
  %692 = load double, ptr %22, align 8, !tbaa !17
  %693 = fsub double %691, %692
  %694 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %693, ptr noundef %1)
  %695 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %694, double noundef 0x3D95FD7FE1796496)
  br label %.critedge670

.critedge670:                                     ; preds = %.critedge668, %.critedge666, %.critedge663, %.critedge664, %664, %.critedge667, %690, %.critedge669
  %696 = phi i1 [ true, %.critedge669 ], [ %695, %690 ], [ true, %.critedge667 ], [ true, %664 ], [ true, %.critedge664 ], [ true, %.critedge663 ], [ true, %.critedge666 ], [ true, %.critedge668 ]
  call void @_ZN11alglib_impl12pspline3calcEPNS_19pspline3interpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef %631, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef %1)
  br i1 %.9584727, label %.critedge674, label %697

697:                                              ; preds = %.critedge670
  %698 = load double, ptr %6, align 8, !tbaa !17
  %699 = load double, ptr %9, align 8, !tbaa !17
  %700 = fsub double %698, %699
  %701 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %700, ptr noundef %1)
  %702 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %701, double noundef 0x3D95FD7FE1796496)
  br i1 %702, label %.critedge674, label %.critedge672

.critedge672:                                     ; preds = %697
  %703 = load double, ptr %7, align 8, !tbaa !17
  %704 = load double, ptr %10, align 8, !tbaa !17
  %705 = fsub double %703, %704
  %706 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %705, ptr noundef %1)
  %707 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %706, double noundef 0x3D95FD7FE1796496)
  br i1 %707, label %.critedge674, label %.critedge673

.critedge673:                                     ; preds = %.critedge672
  %708 = load double, ptr %8, align 8, !tbaa !17
  %709 = load double, ptr %11, align 8, !tbaa !17
  %710 = fsub double %708, %709
  %711 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %710, ptr noundef %1)
  %712 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %711, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl12pspline3diffEPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef %631, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %8, ptr noundef nonnull %14, ptr noundef %1)
  br i1 %712, label %.critedge681, label %713

713:                                              ; preds = %.critedge673
  %714 = load double, ptr %6, align 8, !tbaa !17
  %715 = load double, ptr %9, align 8, !tbaa !17
  %716 = fsub double %714, %715
  %717 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %716, ptr noundef %1)
  %718 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %717, double noundef 0x3D95FD7FE1796496)
  br i1 %718, label %.critedge681, label %.critedge676

.critedge674:                                     ; preds = %697, %.critedge670, %.critedge672
  call void @_ZN11alglib_impl12pspline3diffEPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef %631, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %8, ptr noundef nonnull %14, ptr noundef %1)
  br label %.critedge681

.critedge676:                                     ; preds = %713
  %719 = load double, ptr %7, align 8, !tbaa !17
  %720 = load double, ptr %10, align 8, !tbaa !17
  %721 = fsub double %719, %720
  %722 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %721, ptr noundef %1)
  %723 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %722, double noundef 0x3D95FD7FE1796496)
  br i1 %723, label %.critedge681, label %.critedge677

.critedge677:                                     ; preds = %.critedge676
  %724 = load double, ptr %8, align 8, !tbaa !17
  %725 = load double, ptr %11, align 8, !tbaa !17
  %726 = fsub double %724, %725
  %727 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %726, ptr noundef %1)
  %728 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %727, double noundef 0x3D95FD7FE1796496)
  br i1 %728, label %.critedge681, label %.critedge678

.critedge678:                                     ; preds = %.critedge677
  %729 = load double, ptr %12, align 8, !tbaa !17
  %730 = load double, ptr %15, align 8, !tbaa !17
  %731 = fsub double %729, %730
  %732 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %731, ptr noundef %1)
  %733 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %732, double noundef 0x3D95FD7FE1796496)
  br i1 %733, label %.critedge681, label %.critedge679

.critedge679:                                     ; preds = %.critedge678
  %734 = load double, ptr %13, align 8, !tbaa !17
  %735 = load double, ptr %16, align 8, !tbaa !17
  %736 = fsub double %734, %735
  %737 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %736, ptr noundef %1)
  %738 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %737, double noundef 0x3D95FD7FE1796496)
  br i1 %738, label %.critedge681, label %.critedge680

.critedge680:                                     ; preds = %.critedge679
  %739 = load double, ptr %14, align 8, !tbaa !17
  %740 = load double, ptr %17, align 8, !tbaa !17
  %741 = fsub double %739, %740
  %742 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %741, ptr noundef %1)
  %743 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %742, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl13pspline3diff2EPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef %631, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %18, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %19, ptr noundef nonnull %8, ptr noundef nonnull %14, ptr noundef nonnull %20, ptr noundef %1)
  br i1 %743, label %.critedge690, label %744

744:                                              ; preds = %.critedge680
  %745 = load double, ptr %6, align 8, !tbaa !17
  %746 = load double, ptr %9, align 8, !tbaa !17
  %747 = fsub double %745, %746
  %748 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %747, ptr noundef %1)
  %749 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %748, double noundef 0x3D95FD7FE1796496)
  br i1 %749, label %.critedge690, label %.critedge683

.critedge681:                                     ; preds = %.critedge678, %.critedge676, %.critedge673, %.critedge674, %713, %.critedge677, %.critedge679
  call void @_ZN11alglib_impl13pspline3diff2EPNS_19pspline3interpolantEdPdS2_S2_S2_S2_S2_S2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef %631, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %18, ptr noundef nonnull %7, ptr noundef nonnull %13, ptr noundef nonnull %19, ptr noundef nonnull %8, ptr noundef nonnull %14, ptr noundef nonnull %20, ptr noundef %1)
  br label %.critedge690

.critedge683:                                     ; preds = %744
  %750 = load double, ptr %7, align 8, !tbaa !17
  %751 = load double, ptr %10, align 8, !tbaa !17
  %752 = fsub double %750, %751
  %753 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %752, ptr noundef %1)
  %754 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %753, double noundef 0x3D95FD7FE1796496)
  br i1 %754, label %.critedge690, label %.critedge684

.critedge684:                                     ; preds = %.critedge683
  %755 = load double, ptr %8, align 8, !tbaa !17
  %756 = load double, ptr %11, align 8, !tbaa !17
  %757 = fsub double %755, %756
  %758 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %757, ptr noundef %1)
  %759 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %758, double noundef 0x3D95FD7FE1796496)
  br i1 %759, label %.critedge690, label %.critedge685

.critedge685:                                     ; preds = %.critedge684
  %760 = load double, ptr %12, align 8, !tbaa !17
  %761 = load double, ptr %15, align 8, !tbaa !17
  %762 = fsub double %760, %761
  %763 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %762, ptr noundef %1)
  %764 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %763, double noundef 0x3D95FD7FE1796496)
  br i1 %764, label %.critedge690, label %.critedge686

.critedge686:                                     ; preds = %.critedge685
  %765 = load double, ptr %13, align 8, !tbaa !17
  %766 = load double, ptr %16, align 8, !tbaa !17
  %767 = fsub double %765, %766
  %768 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %767, ptr noundef %1)
  %769 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %768, double noundef 0x3D95FD7FE1796496)
  br i1 %769, label %.critedge690, label %.critedge687

.critedge687:                                     ; preds = %.critedge686
  %770 = load double, ptr %14, align 8, !tbaa !17
  %771 = load double, ptr %17, align 8, !tbaa !17
  %772 = fsub double %770, %771
  %773 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %772, ptr noundef %1)
  %774 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %773, double noundef 0x3D95FD7FE1796496)
  br i1 %774, label %.critedge690, label %.critedge688

.critedge688:                                     ; preds = %.critedge687
  %775 = load double, ptr %18, align 8, !tbaa !17
  %776 = load double, ptr %21, align 8, !tbaa !17
  %777 = fsub double %775, %776
  %778 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %777, ptr noundef %1)
  %779 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %778, double noundef 0x3D95FD7FE1796496)
  br i1 %779, label %.critedge690, label %.critedge689

.critedge689:                                     ; preds = %.critedge688
  %780 = load double, ptr %19, align 8, !tbaa !17
  %781 = load double, ptr %22, align 8, !tbaa !17
  %782 = fsub double %780, %781
  %783 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %782, ptr noundef %1)
  %784 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %783, double noundef 0x3D95FD7FE1796496)
  br i1 %784, label %.critedge690, label %785

785:                                              ; preds = %.critedge689
  %786 = load double, ptr %20, align 8, !tbaa !17
  %787 = load double, ptr %23, align 8, !tbaa !17
  %788 = fsub double %786, %787
  %789 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %788, ptr noundef %1)
  %790 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %789, double noundef 0x3D95FD7FE1796496)
  br label %.critedge690

.critedge690:                                     ; preds = %.critedge688, %.critedge686, %.critedge684, %744, %.critedge681, %.critedge680, %.critedge683, %.critedge685, %.critedge687, %785, %.critedge689
  %791 = phi i1 [ true, %.critedge689 ], [ %790, %785 ], [ true, %.critedge687 ], [ true, %.critedge685 ], [ true, %.critedge683 ], [ true, %.critedge680 ], [ true, %.critedge681 ], [ true, %744 ], [ true, %.critedge684 ], [ true, %.critedge686 ], [ true, %.critedge688 ]
  call void @_ZN11alglib_impl15pspline2tangentEPNS_19pspline2interpolantEdPdS2_PNS_8ae_stateE(ptr noundef nonnull %32, double noundef %631, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %1)
  br i1 %696, label %.critedge692, label %792

792:                                              ; preds = %.critedge690
  %793 = load double, ptr %6, align 8, !tbaa !17
  %794 = load double, ptr %15, align 8, !tbaa !17
  %795 = load double, ptr %16, align 8, !tbaa !17
  %796 = call noundef double @_ZN11alglib_impl11safepythag2EddPNS_8ae_stateE(double noundef %794, double noundef %795, ptr noundef %1)
  %797 = fdiv double %794, %796
  %798 = fsub double %793, %797
  %799 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %798, ptr noundef %1)
  %800 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %799, double noundef 0x3D95FD7FE1796496)
  br i1 %800, label %.critedge692, label %801

801:                                              ; preds = %792
  %802 = load double, ptr %7, align 8, !tbaa !17
  %803 = load double, ptr %16, align 8, !tbaa !17
  %804 = load double, ptr %15, align 8, !tbaa !17
  %805 = call noundef double @_ZN11alglib_impl11safepythag2EddPNS_8ae_stateE(double noundef %804, double noundef %803, ptr noundef %1)
  %806 = fdiv double %803, %805
  %807 = fsub double %802, %806
  %808 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %807, ptr noundef %1)
  %809 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %808, double noundef 0x3D95FD7FE1796496)
  br label %.critedge692

.critedge692:                                     ; preds = %.critedge690, %801, %792
  %810 = phi i1 [ true, %792 ], [ %809, %801 ], [ true, %.critedge690 ]
  call void @_ZN11alglib_impl15pspline3tangentEPNS_19pspline3interpolantEdPdS2_S2_PNS_8ae_stateE(ptr noundef nonnull %33, double noundef %631, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef %1)
  br i1 %791, label %.critedge695, label %811

811:                                              ; preds = %.critedge692
  %812 = load double, ptr %6, align 8, !tbaa !17
  %813 = load double, ptr %15, align 8, !tbaa !17
  %814 = load double, ptr %16, align 8, !tbaa !17
  %815 = load double, ptr %17, align 8, !tbaa !17
  %816 = call noundef double @_ZN11alglib_impl11safepythag3EdddPNS_8ae_stateE(double noundef %813, double noundef %814, double noundef %815, ptr noundef %1)
  %817 = fdiv double %813, %816
  %818 = fsub double %812, %817
  %819 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %818, ptr noundef %1)
  %820 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %819, double noundef 0x3D95FD7FE1796496)
  br i1 %820, label %.critedge695, label %.critedge694

.critedge694:                                     ; preds = %811
  %821 = load double, ptr %7, align 8, !tbaa !17
  %822 = load double, ptr %16, align 8, !tbaa !17
  %823 = load double, ptr %15, align 8, !tbaa !17
  %824 = load double, ptr %17, align 8, !tbaa !17
  %825 = call noundef double @_ZN11alglib_impl11safepythag3EdddPNS_8ae_stateE(double noundef %823, double noundef %822, double noundef %824, ptr noundef %1)
  %826 = fdiv double %822, %825
  %827 = fsub double %821, %826
  %828 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %827, ptr noundef %1)
  %829 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %828, double noundef 0x3D95FD7FE1796496)
  br i1 %829, label %.critedge695, label %830

830:                                              ; preds = %.critedge694
  %831 = load double, ptr %8, align 8, !tbaa !17
  %832 = load double, ptr %17, align 8, !tbaa !17
  %833 = load double, ptr %15, align 8, !tbaa !17
  %834 = load double, ptr %16, align 8, !tbaa !17
  %835 = call noundef double @_ZN11alglib_impl11safepythag3EdddPNS_8ae_stateE(double noundef %833, double noundef %834, double noundef %832, ptr noundef %1)
  %836 = fdiv double %832, %835
  %837 = fsub double %831, %836
  %838 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %837, ptr noundef %1)
  %839 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %838, double noundef 0x3D95FD7FE1796496)
  br label %.critedge695

.critedge695:                                     ; preds = %811, %.critedge692, %830, %.critedge694
  %840 = phi i1 [ true, %.critedge694 ], [ %839, %830 ], [ true, %.critedge692 ], [ true, %811 ]
  %841 = add nuw nsw i64 %.1569729, 1
  %exitcond749.not = icmp eq i64 %841, 11
  br i1 %exitcond749.not, label %.preheader763, label %601, !llvm.loop !27

.preheader763:                                    ; preds = %.critedge695, %889
  %.2570733 = phi i64 [ %891, %889 ], [ 2, %.critedge695 ]
  %.11732 = phi i1 [ %878, %889 ], [ %810, %.critedge695 ]
  %.10585731 = phi i1 [ %890, %889 ], [ %840, %.critedge695 ]
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %30, i64 noundef %.2570733, i64 noundef 2, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %31, i64 noundef %.2570733, i64 noundef 3, ptr noundef %1)
  br label %842

842:                                              ; preds = %.preheader763, %842
  %.3730 = phi i64 [ 0, %.preheader763 ], [ %862, %842 ]
  %843 = uitofp nneg i64 %.3730 to double
  %844 = load ptr, ptr %35, align 8, !tbaa !9
  %845 = getelementptr inbounds ptr, ptr %844, i64 %.3730
  %846 = load ptr, ptr %845, align 8, !tbaa !10
  store double %843, ptr %846, align 8, !tbaa !17
  %847 = load ptr, ptr %35, align 8, !tbaa !9
  %848 = getelementptr inbounds ptr, ptr %847, i64 %.3730
  %849 = load ptr, ptr %848, align 8, !tbaa !10
  %850 = getelementptr inbounds i8, ptr %849, i64 8
  store double %843, ptr %850, align 8, !tbaa !17
  %851 = load ptr, ptr %38, align 8, !tbaa !9
  %852 = getelementptr inbounds ptr, ptr %851, i64 %.3730
  %853 = load ptr, ptr %852, align 8, !tbaa !10
  store double %843, ptr %853, align 8, !tbaa !17
  %854 = load ptr, ptr %38, align 8, !tbaa !9
  %855 = getelementptr inbounds ptr, ptr %854, i64 %.3730
  %856 = load ptr, ptr %855, align 8, !tbaa !10
  %857 = getelementptr inbounds i8, ptr %856, i64 8
  store double %843, ptr %857, align 8, !tbaa !17
  %858 = load ptr, ptr %38, align 8, !tbaa !9
  %859 = getelementptr inbounds ptr, ptr %858, i64 %.3730
  %860 = load ptr, ptr %859, align 8, !tbaa !10
  %861 = getelementptr inbounds i8, ptr %860, i64 16
  store double %843, ptr %861, align 8, !tbaa !17
  %862 = add nuw nsw i64 %.3730, 1
  %exitcond750.not = icmp eq i64 %862, %.2570733
  br i1 %exitcond750.not, label %863, label %842, !llvm.loop !28

863:                                              ; preds = %842
  %864 = add nsw i64 %.2570733, -1
  call void @_ZN11alglib_impl13pspline2buildEPNS_9ae_matrixElllPNS_19pspline2interpolantEPNS_8ae_stateE(ptr noundef nonnull %30, i64 noundef %.2570733, i64 noundef 1, i64 noundef 0, ptr noundef nonnull %32, ptr noundef %1)
  call void @_ZN11alglib_impl13pspline3buildEPNS_9ae_matrixElllPNS_19pspline3interpolantEPNS_8ae_stateE(ptr noundef nonnull %31, i64 noundef %.2570733, i64 noundef 1, i64 noundef 0, ptr noundef nonnull %33, ptr noundef %1)
  %865 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %866 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  br i1 %.11732, label %877, label %867

867:                                              ; preds = %863
  %868 = call noundef double @_ZN11alglib_impl17pspline2arclengthEPNS_19pspline2interpolantEddPNS_8ae_stateE(ptr noundef nonnull %32, double noundef %865, double noundef %866, ptr noundef %1)
  %869 = fsub double %866, %865
  %870 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 2.000000e+00, ptr noundef %1)
  %871 = sitofp i64 %864 to double
  %872 = fneg double %869
  %873 = fmul double %870, %872
  %874 = call double @llvm.fmuladd.f64(double %873, double %871, double %868)
  %875 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %874, ptr noundef %1)
  %876 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %875, double noundef 1.000000e-05)
  br label %877

877:                                              ; preds = %867, %863
  %878 = phi i1 [ true, %863 ], [ %876, %867 ]
  br i1 %.10585731, label %889, label %879

879:                                              ; preds = %877
  %880 = call noundef double @_ZN11alglib_impl17pspline3arclengthEPNS_19pspline3interpolantEddPNS_8ae_stateE(ptr noundef nonnull %33, double noundef %865, double noundef %866, ptr noundef %1)
  %881 = fsub double %866, %865
  %882 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 3.000000e+00, ptr noundef %1)
  %883 = sitofp i64 %864 to double
  %884 = fneg double %881
  %885 = fmul double %882, %884
  %886 = call double @llvm.fmuladd.f64(double %885, double %883, double %880)
  %887 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %886, ptr noundef %1)
  %888 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %887, double noundef 1.000000e-05)
  br label %889

889:                                              ; preds = %879, %877
  %890 = phi i1 [ true, %877 ], [ %888, %879 ]
  %891 = add nuw nsw i64 %.2570733, 1
  %exitcond751.not = icmp eq i64 %891, 11
  br i1 %exitcond751.not, label %892, label %.preheader763, !llvm.loop !29

892:                                              ; preds = %889
  %brmerge = or i1 %878, %890
  br i1 %brmerge, label %896, label %893

893:                                              ; preds = %892
  %894 = load i8, ptr %4, align 1, !tbaa !5, !range !30, !noundef !31
  %895 = trunc nuw i8 %894 to i1
  br label %896

896:                                              ; preds = %892, %893
  %897 = phi i1 [ true, %892 ], [ %895, %893 ]
  br i1 %0, label %910, label %898

898:                                              ; preds = %896
  %899 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.632)
  %900 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.633)
  %.str.7..str.6 = select i1 %878, ptr @.str.7, ptr @.str.6
  %901 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %902 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.634)
  %.str.6.sink761 = select i1 %890, ptr @.str.7, ptr @.str.6
  %903 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink761)
  %904 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.635)
  %905 = load i8, ptr %4, align 1, !tbaa !5, !range !30, !noundef !31
  %906 = trunc nuw i8 %905 to i1
  %.str.6.sink762 = select i1 %906, ptr @.str.7, ptr @.str.6
  %907 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink762)
  %.str.2.sink = select i1 %897, ptr @.str.1, ptr @.str.2
  %908 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
  %909 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %910

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !14, i64 16}
!13 = !{!"_ZTSN11alglib_impl9ae_matrixE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !6, i64 32, !15, i64 40, !7, i64 72}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!16 = !{!14, !14, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}
!30 = !{i8 0, i8 2}
!31 = !{}


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