; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z13testchebyshevbPN11alglib_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 }

@.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.691 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.692 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.693 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.696 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.697 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.698 = external hidden unnamed_addr constant [49 x i8], align 1

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

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

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

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

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

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

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

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

declare noundef 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_impl9ae_v_adddEPdlPKdlld(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, double noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z13testchebyshevbPN11alglib_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 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 i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = zext i1 %0 to i8
  store i8 %25, 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 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, 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 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #5
  %26 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %26, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 80, i1 false)
  %27 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 3, ptr noundef %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 3, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 3, ptr noundef %29, i1 noundef zeroext true)
  %30 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %30, i1 noundef zeroext true)
  store double 0.000000e+00, ptr %6, align 8, !tbaa !11
  store double 0.000000e+00, ptr %7, align 8, !tbaa !11
  store double 0.000000e+00, ptr %8, align 8, !tbaa !11
  store double 0.000000e+00, ptr %9, align 8, !tbaa !11
  store double 1.000000e-09, ptr %10, align 8, !tbaa !11
  store i8 0, ptr %23, align 1, !tbaa !5
  %31 = load double, ptr %6, align 8, !tbaa !11
  %32 = load ptr, ptr %4, align 8, !tbaa !9
  %33 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %32)
  %34 = fsub double %33, 1.000000e+00
  %35 = load ptr, ptr %4, align 8, !tbaa !9
  %36 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %34, ptr noundef %35)
  %37 = load ptr, ptr %4, align 8, !tbaa !9
  %38 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %31, double noundef %36, ptr noundef %37)
  store double %38, ptr %6, align 8, !tbaa !11
  %39 = load double, ptr %6, align 8, !tbaa !11
  %40 = load ptr, ptr %4, align 8, !tbaa !9
  %41 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 0, double noundef 3.300000e-01, ptr noundef %40)
  %42 = fsub double %41, 1.000000e+00
  %43 = load ptr, ptr %4, align 8, !tbaa !9
  %44 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %42, ptr noundef %43)
  %45 = load ptr, ptr %4, align 8, !tbaa !9
  %46 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %39, double noundef %44, ptr noundef %45)
  store double %46, ptr %6, align 8, !tbaa !11
  %47 = load double, ptr %6, align 8, !tbaa !11
  %48 = load ptr, ptr %4, align 8, !tbaa !9
  %49 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 0, double noundef -4.200000e-01, ptr noundef %48)
  %50 = fsub double %49, 1.000000e+00
  %51 = load ptr, ptr %4, align 8, !tbaa !9
  %52 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %50, ptr noundef %51)
  %53 = load ptr, ptr %4, align 8, !tbaa !9
  %54 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %47, double noundef %52, ptr noundef %53)
  store double %54, ptr %6, align 8, !tbaa !11
  store double 2.000000e-01, ptr %11, align 8, !tbaa !11
  %55 = load double, ptr %6, align 8, !tbaa !11
  %56 = load double, ptr %11, align 8, !tbaa !11
  %57 = load ptr, ptr %4, align 8, !tbaa !9
  %58 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef %56, ptr noundef %57)
  %59 = fsub double %58, 2.000000e-01
  %60 = load ptr, ptr %4, align 8, !tbaa !9
  %61 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %59, ptr noundef %60)
  %62 = load ptr, ptr %4, align 8, !tbaa !9
  %63 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %55, double noundef %61, ptr noundef %62)
  store double %63, ptr %6, align 8, !tbaa !11
  store double 4.000000e-01, ptr %11, align 8, !tbaa !11
  %64 = load double, ptr %6, align 8, !tbaa !11
  %65 = load double, ptr %11, align 8, !tbaa !11
  %66 = load ptr, ptr %4, align 8, !tbaa !9
  %67 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef %65, ptr noundef %66)
  %68 = fsub double %67, 4.000000e-01
  %69 = load ptr, ptr %4, align 8, !tbaa !9
  %70 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %68, ptr noundef %69)
  %71 = load ptr, ptr %4, align 8, !tbaa !9
  %72 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %64, double noundef %70, ptr noundef %71)
  store double %72, ptr %6, align 8, !tbaa !11
  store double 6.000000e-01, ptr %11, align 8, !tbaa !11
  %73 = load double, ptr %6, align 8, !tbaa !11
  %74 = load double, ptr %11, align 8, !tbaa !11
  %75 = load ptr, ptr %4, align 8, !tbaa !9
  %76 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef %74, ptr noundef %75)
  %77 = fsub double %76, 6.000000e-01
  %78 = load ptr, ptr %4, align 8, !tbaa !9
  %79 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %77, ptr noundef %78)
  %80 = load ptr, ptr %4, align 8, !tbaa !9
  %81 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %73, double noundef %79, ptr noundef %80)
  store double %81, ptr %6, align 8, !tbaa !11
  store double 8.000000e-01, ptr %11, align 8, !tbaa !11
  %82 = load double, ptr %6, align 8, !tbaa !11
  %83 = load double, ptr %11, align 8, !tbaa !11
  %84 = load ptr, ptr %4, align 8, !tbaa !9
  %85 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef %83, ptr noundef %84)
  %86 = fsub double %85, 8.000000e-01
  %87 = load ptr, ptr %4, align 8, !tbaa !9
  %88 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %86, ptr noundef %87)
  %89 = load ptr, ptr %4, align 8, !tbaa !9
  %90 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %82, double noundef %88, ptr noundef %89)
  store double %90, ptr %6, align 8, !tbaa !11
  store double 1.000000e+00, ptr %11, align 8, !tbaa !11
  %91 = load double, ptr %6, align 8, !tbaa !11
  %92 = load double, ptr %11, align 8, !tbaa !11
  %93 = load ptr, ptr %4, align 8, !tbaa !9
  %94 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef %92, ptr noundef %93)
  %95 = fsub double %94, 1.000000e+00
  %96 = load ptr, ptr %4, align 8, !tbaa !9
  %97 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %95, ptr noundef %96)
  %98 = load ptr, ptr %4, align 8, !tbaa !9
  %99 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %91, double noundef %97, ptr noundef %98)
  store double %99, ptr %6, align 8, !tbaa !11
  store double 2.000000e-01, ptr %11, align 8, !tbaa !11
  %100 = load double, ptr %6, align 8, !tbaa !11
  %101 = load double, ptr %11, align 8, !tbaa !11
  %102 = load ptr, ptr %4, align 8, !tbaa !9
  %103 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 2, double noundef %101, ptr noundef %102)
  %104 = fadd double %103, 9.200000e-01
  %105 = load ptr, ptr %4, align 8, !tbaa !9
  %106 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %104, ptr noundef %105)
  %107 = load ptr, ptr %4, align 8, !tbaa !9
  %108 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %100, double noundef %106, ptr noundef %107)
  store double %108, ptr %6, align 8, !tbaa !11
  store double 4.000000e-01, ptr %11, align 8, !tbaa !11
  %109 = load double, ptr %6, align 8, !tbaa !11
  %110 = load double, ptr %11, align 8, !tbaa !11
  %111 = load ptr, ptr %4, align 8, !tbaa !9
  %112 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 2, double noundef %110, ptr noundef %111)
  %113 = fadd double %112, 6.800000e-01
  %114 = load ptr, ptr %4, align 8, !tbaa !9
  %115 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %113, ptr noundef %114)
  %116 = load ptr, ptr %4, align 8, !tbaa !9
  %117 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %109, double noundef %115, ptr noundef %116)
  store double %117, ptr %6, align 8, !tbaa !11
  store double 6.000000e-01, ptr %11, align 8, !tbaa !11
  %118 = load double, ptr %6, align 8, !tbaa !11
  %119 = load double, ptr %11, align 8, !tbaa !11
  %120 = load ptr, ptr %4, align 8, !tbaa !9
  %121 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 2, double noundef %119, ptr noundef %120)
  %122 = fadd double %121, 2.800000e-01
  %123 = load ptr, ptr %4, align 8, !tbaa !9
  %124 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %122, ptr noundef %123)
  %125 = load ptr, ptr %4, align 8, !tbaa !9
  %126 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %118, double noundef %124, ptr noundef %125)
  store double %126, ptr %6, align 8, !tbaa !11
  store double 8.000000e-01, ptr %11, align 8, !tbaa !11
  %127 = load double, ptr %6, align 8, !tbaa !11
  %128 = load double, ptr %11, align 8, !tbaa !11
  %129 = load ptr, ptr %4, align 8, !tbaa !9
  %130 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 2, double noundef %128, ptr noundef %129)
  %131 = fsub double %130, 2.800000e-01
  %132 = load ptr, ptr %4, align 8, !tbaa !9
  %133 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %131, ptr noundef %132)
  %134 = load ptr, ptr %4, align 8, !tbaa !9
  %135 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %127, double noundef %133, ptr noundef %134)
  store double %135, ptr %6, align 8, !tbaa !11
  store double 1.000000e+00, ptr %11, align 8, !tbaa !11
  %136 = load double, ptr %6, align 8, !tbaa !11
  %137 = load double, ptr %11, align 8, !tbaa !11
  %138 = load ptr, ptr %4, align 8, !tbaa !9
  %139 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 2, double noundef %137, ptr noundef %138)
  %140 = fsub double %139, 1.000000e+00
  %141 = load ptr, ptr %4, align 8, !tbaa !9
  %142 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %140, ptr noundef %141)
  %143 = load ptr, ptr %4, align 8, !tbaa !9
  %144 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %136, double noundef %142, ptr noundef %143)
  store double %144, ptr %6, align 8, !tbaa !11
  store i64 10, ptr %17, align 8, !tbaa !13
  %145 = load double, ptr %6, align 8, !tbaa !11
  %146 = load i64, ptr %17, align 8, !tbaa !13
  %147 = load ptr, ptr %4, align 8, !tbaa !9
  %148 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef %146, double noundef 2.000000e-01, ptr noundef %147)
  %149 = fsub double %148, 0x3FDB6BD1285EEB5E
  %150 = load ptr, ptr %4, align 8, !tbaa !9
  %151 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %149, ptr noundef %150)
  %152 = load ptr, ptr %4, align 8, !tbaa !9
  %153 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %145, double noundef %151, ptr noundef %152)
  store double %153, ptr %6, align 8, !tbaa !11
  store i64 11, ptr %17, align 8, !tbaa !13
  %154 = load double, ptr %6, align 8, !tbaa !11
  %155 = load i64, ptr %17, align 8, !tbaa !13
  %156 = load ptr, ptr %4, align 8, !tbaa !9
  %157 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef %155, double noundef 2.000000e-01, ptr noundef %156)
  %158 = fadd double %157, 0x3FE99674562CF71E
  %159 = load ptr, ptr %4, align 8, !tbaa !9
  %160 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %158, ptr noundef %159)
  %161 = load ptr, ptr %4, align 8, !tbaa !9
  %162 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %154, double noundef %160, ptr noundef %161)
  store double %162, ptr %6, align 8, !tbaa !11
  store i64 12, ptr %17, align 8, !tbaa !13
  %163 = load double, ptr %6, align 8, !tbaa !11
  %164 = load i64, ptr %17, align 8, !tbaa !13
  %165 = load ptr, ptr %4, align 8, !tbaa !9
  %166 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef %164, double noundef 2.000000e-01, ptr noundef %165)
  %167 = fadd double %166, 0x3FE7F2171D0E3EEE
  %168 = load ptr, ptr %4, align 8, !tbaa !9
  %169 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %167, ptr noundef %168)
  %170 = load ptr, ptr %4, align 8, !tbaa !9
  %171 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %163, double noundef %169, ptr noundef %170)
  store double %171, ptr %6, align 8, !tbaa !11
  store i64 0, ptr %17, align 8, !tbaa !13
  %172 = load double, ptr %6, align 8, !tbaa !11
  %173 = load i64, ptr %17, align 8, !tbaa !13
  %174 = load ptr, ptr %4, align 8, !tbaa !9
  %175 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef %173, double noundef 2.000000e-01, ptr noundef %174)
  %176 = fsub double %175, 1.000000e+00
  %177 = load ptr, ptr %4, align 8, !tbaa !9
  %178 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %176, ptr noundef %177)
  %179 = load ptr, ptr %4, align 8, !tbaa !9
  %180 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %172, double noundef %178, ptr noundef %179)
  store double %180, ptr %6, align 8, !tbaa !11
  store i64 1, ptr %17, align 8, !tbaa !13
  %181 = load double, ptr %6, align 8, !tbaa !11
  %182 = load i64, ptr %17, align 8, !tbaa !13
  %183 = load ptr, ptr %4, align 8, !tbaa !9
  %184 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef %182, double noundef 2.000000e-01, ptr noundef %183)
  %185 = fsub double %184, 4.000000e-01
  %186 = load ptr, ptr %4, align 8, !tbaa !9
  %187 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %185, ptr noundef %186)
  %188 = load ptr, ptr %4, align 8, !tbaa !9
  %189 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %181, double noundef %187, ptr noundef %188)
  store double %189, ptr %6, align 8, !tbaa !11
  store i64 2, ptr %17, align 8, !tbaa !13
  %190 = load double, ptr %6, align 8, !tbaa !11
  %191 = load i64, ptr %17, align 8, !tbaa !13
  %192 = load ptr, ptr %4, align 8, !tbaa !9
  %193 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef %191, double noundef 2.000000e-01, ptr noundef %192)
  %194 = fadd double %193, 8.400000e-01
  %195 = load ptr, ptr %4, align 8, !tbaa !9
  %196 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %194, ptr noundef %195)
  %197 = load ptr, ptr %4, align 8, !tbaa !9
  %198 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %190, double noundef %196, ptr noundef %197)
  store double %198, ptr %6, align 8, !tbaa !11
  store i64 3, ptr %17, align 8, !tbaa !13
  %199 = load double, ptr %6, align 8, !tbaa !11
  %200 = load i64, ptr %17, align 8, !tbaa !13
  %201 = load ptr, ptr %4, align 8, !tbaa !9
  %202 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef %200, double noundef 2.000000e-01, ptr noundef %201)
  %203 = fadd double %202, 0x3FE78D4FDF3B645A
  %204 = load ptr, ptr %4, align 8, !tbaa !9
  %205 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %203, ptr noundef %204)
  %206 = load ptr, ptr %4, align 8, !tbaa !9
  %207 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %199, double noundef %205, ptr noundef %206)
  store double %207, ptr %6, align 8, !tbaa !11
  store i64 4, ptr %17, align 8, !tbaa !13
  %208 = load double, ptr %6, align 8, !tbaa !11
  %209 = load i64, ptr %17, align 8, !tbaa !13
  %210 = load ptr, ptr %4, align 8, !tbaa !9
  %211 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef %209, double noundef 2.000000e-01, ptr noundef %210)
  %212 = fsub double %211, 5.456000e-01
  %213 = load ptr, ptr %4, align 8, !tbaa !9
  %214 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %212, ptr noundef %213)
  %215 = load ptr, ptr %4, align 8, !tbaa !9
  %216 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %208, double noundef %214, ptr noundef %215)
  store double %216, ptr %6, align 8, !tbaa !11
  store i64 10, ptr %17, align 8, !tbaa !13
  %217 = load double, ptr %6, align 8, !tbaa !11
  %218 = load i64, ptr %17, align 8, !tbaa !13
  %219 = load ptr, ptr %4, align 8, !tbaa !9
  %220 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef %218, double noundef 2.000000e-01, ptr noundef %219)
  %221 = fsub double %220, 0x3FE39CD52C4F90CD
  %222 = load ptr, ptr %4, align 8, !tbaa !9
  %223 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %221, ptr noundef %222)
  %224 = load ptr, ptr %4, align 8, !tbaa !9
  %225 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %217, double noundef %223, ptr noundef %224)
  store double %225, ptr %6, align 8, !tbaa !11
  store i64 11, ptr %17, align 8, !tbaa !13
  %226 = load double, ptr %6, align 8, !tbaa !11
  %227 = load i64, ptr %17, align 8, !tbaa !13
  %228 = load ptr, ptr %4, align 8, !tbaa !9
  %229 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef %227, double noundef 2.000000e-01, ptr noundef %228)
  %230 = fadd double %229, 0x3FE5AA49B3B966A5
  %231 = load ptr, ptr %4, align 8, !tbaa !9
  %232 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %230, ptr noundef %231)
  %233 = load ptr, ptr %4, align 8, !tbaa !9
  %234 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %226, double noundef %232, ptr noundef %233)
  store double %234, ptr %6, align 8, !tbaa !11
  store i64 12, ptr %17, align 8, !tbaa !13
  %235 = load double, ptr %6, align 8, !tbaa !11
  %236 = load i64, ptr %17, align 8, !tbaa !13
  %237 = load ptr, ptr %4, align 8, !tbaa !9
  %238 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef %236, double noundef 2.000000e-01, ptr noundef %237)
  %239 = fadd double %238, 0x3FEC47590DCCED0F
  %240 = load ptr, ptr %4, align 8, !tbaa !9
  %241 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %239, ptr noundef %240)
  %242 = load ptr, ptr %4, align 8, !tbaa !9
  %243 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %235, double noundef %241, ptr noundef %242)
  store double %243, ptr %6, align 8, !tbaa !11
  store i64 20, ptr %18, align 8, !tbaa !13
  %244 = load i64, ptr %18, align 8, !tbaa !13
  %245 = add nsw i64 %244, 1
  %246 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %245, ptr noundef %246)
  store i64 1, ptr %16, align 8, !tbaa !13
  br label %247

247:                                              ; preds = %302, %2
  %248 = load i64, ptr %16, align 8, !tbaa !13
  %249 = icmp sle i64 %248, 2
  br i1 %249, label %250, label %305

250:                                              ; preds = %247
  store i64 1, ptr %13, align 8, !tbaa !13
  br label %251

251:                                              ; preds = %298, %250
  %252 = load i64, ptr %13, align 8, !tbaa !13
  %253 = icmp sle i64 %252, 10
  br i1 %253, label %254, label %301

254:                                              ; preds = %251
  %255 = load ptr, ptr %4, align 8, !tbaa !9
  %256 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %255)
  %257 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %256, double -1.000000e+00)
  store double %257, ptr %11, align 8, !tbaa !11
  store double 0.000000e+00, ptr %12, align 8, !tbaa !11
  store i64 0, ptr %17, align 8, !tbaa !13
  br label %258

258:                                              ; preds = %294, %254
  %259 = load i64, ptr %17, align 8, !tbaa !13
  %260 = load i64, ptr %18, align 8, !tbaa !13
  %261 = icmp sle i64 %259, %260
  br i1 %261, label %262, label %297

262:                                              ; preds = %258
  %263 = load ptr, ptr %4, align 8, !tbaa !9
  %264 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %263)
  %265 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %264, double -1.000000e+00)
  %266 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %267 = load ptr, ptr %266, align 8, !tbaa !15
  %268 = load i64, ptr %17, align 8, !tbaa !13
  %269 = getelementptr inbounds double, ptr %267, i64 %268
  store double %265, ptr %269, align 8, !tbaa !11
  %270 = load double, ptr %12, align 8, !tbaa !11
  %271 = load i64, ptr %16, align 8, !tbaa !13
  %272 = load i64, ptr %17, align 8, !tbaa !13
  %273 = load double, ptr %11, align 8, !tbaa !11
  %274 = load ptr, ptr %4, align 8, !tbaa !9
  %275 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef %271, i64 noundef %272, double noundef %273, ptr noundef %274)
  %276 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %277 = load ptr, ptr %276, align 8, !tbaa !15
  %278 = load i64, ptr %17, align 8, !tbaa !13
  %279 = getelementptr inbounds double, ptr %277, i64 %278
  %280 = load double, ptr %279, align 8, !tbaa !11
  %281 = call double @llvm.fmuladd.f64(double %275, double %280, double %270)
  store double %281, ptr %12, align 8, !tbaa !11
  %282 = load double, ptr %7, align 8, !tbaa !11
  %283 = load double, ptr %12, align 8, !tbaa !11
  %284 = load i64, ptr %16, align 8, !tbaa !13
  %285 = load i64, ptr %17, align 8, !tbaa !13
  %286 = load double, ptr %11, align 8, !tbaa !11
  %287 = load ptr, ptr %4, align 8, !tbaa !9
  %288 = call noundef double @_ZN11alglib_impl12chebyshevsumEPNS_9ae_vectorElldPNS_8ae_stateE(ptr noundef %19, i64 noundef %284, i64 noundef %285, double noundef %286, ptr noundef %287)
  %289 = fsub double %283, %288
  %290 = load ptr, ptr %4, align 8, !tbaa !9
  %291 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %289, ptr noundef %290)
  %292 = load ptr, ptr %4, align 8, !tbaa !9
  %293 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %282, double noundef %291, ptr noundef %292)
  store double %293, ptr %7, align 8, !tbaa !11
  br label %294

294:                                              ; preds = %262
  %295 = load i64, ptr %17, align 8, !tbaa !13
  %296 = add nsw i64 %295, 1
  store i64 %296, ptr %17, align 8, !tbaa !13
  br label %258, !llvm.loop !16

297:                                              ; preds = %258
  br label %298

298:                                              ; preds = %297
  %299 = load i64, ptr %13, align 8, !tbaa !13
  %300 = add nsw i64 %299, 1
  store i64 %300, ptr %13, align 8, !tbaa !13
  br label %251, !llvm.loop !18

301:                                              ; preds = %251
  br label %302

302:                                              ; preds = %301
  %303 = load i64, ptr %16, align 8, !tbaa !13
  %304 = add nsw i64 %303, 1
  store i64 %304, ptr %16, align 8, !tbaa !13
  br label %247, !llvm.loop !19

305:                                              ; preds = %247
  %306 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21chebyshevcoefficientsElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 0, ptr noundef %19, ptr noundef %306)
  %307 = load double, ptr %8, align 8, !tbaa !11
  %308 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %309 = load ptr, ptr %308, align 8, !tbaa !15
  %310 = getelementptr inbounds double, ptr %309, i64 0
  %311 = load double, ptr %310, align 8, !tbaa !11
  %312 = fsub double %311, 1.000000e+00
  %313 = load ptr, ptr %4, align 8, !tbaa !9
  %314 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %312, ptr noundef %313)
  %315 = load ptr, ptr %4, align 8, !tbaa !9
  %316 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %307, double noundef %314, ptr noundef %315)
  store double %316, ptr %8, align 8, !tbaa !11
  %317 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21chebyshevcoefficientsElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 1, ptr noundef %19, ptr noundef %317)
  %318 = load double, ptr %8, align 8, !tbaa !11
  %319 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %320 = load ptr, ptr %319, align 8, !tbaa !15
  %321 = getelementptr inbounds double, ptr %320, i64 0
  %322 = load double, ptr %321, align 8, !tbaa !11
  %323 = fsub double %322, 0.000000e+00
  %324 = load ptr, ptr %4, align 8, !tbaa !9
  %325 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %323, ptr noundef %324)
  %326 = load ptr, ptr %4, align 8, !tbaa !9
  %327 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %318, double noundef %325, ptr noundef %326)
  store double %327, ptr %8, align 8, !tbaa !11
  %328 = load double, ptr %8, align 8, !tbaa !11
  %329 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %330 = load ptr, ptr %329, align 8, !tbaa !15
  %331 = getelementptr inbounds double, ptr %330, i64 1
  %332 = load double, ptr %331, align 8, !tbaa !11
  %333 = fsub double %332, 1.000000e+00
  %334 = load ptr, ptr %4, align 8, !tbaa !9
  %335 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %333, ptr noundef %334)
  %336 = load ptr, ptr %4, align 8, !tbaa !9
  %337 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %328, double noundef %335, ptr noundef %336)
  store double %337, ptr %8, align 8, !tbaa !11
  %338 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21chebyshevcoefficientsElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 2, ptr noundef %19, ptr noundef %338)
  %339 = load double, ptr %8, align 8, !tbaa !11
  %340 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %341 = load ptr, ptr %340, align 8, !tbaa !15
  %342 = getelementptr inbounds double, ptr %341, i64 0
  %343 = load double, ptr %342, align 8, !tbaa !11
  %344 = fadd double %343, 1.000000e+00
  %345 = load ptr, ptr %4, align 8, !tbaa !9
  %346 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %344, ptr noundef %345)
  %347 = load ptr, ptr %4, align 8, !tbaa !9
  %348 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %339, double noundef %346, ptr noundef %347)
  store double %348, ptr %8, align 8, !tbaa !11
  %349 = load double, ptr %8, align 8, !tbaa !11
  %350 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %351 = load ptr, ptr %350, align 8, !tbaa !15
  %352 = getelementptr inbounds double, ptr %351, i64 1
  %353 = load double, ptr %352, align 8, !tbaa !11
  %354 = fsub double %353, 0.000000e+00
  %355 = load ptr, ptr %4, align 8, !tbaa !9
  %356 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %354, ptr noundef %355)
  %357 = load ptr, ptr %4, align 8, !tbaa !9
  %358 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %349, double noundef %356, ptr noundef %357)
  store double %358, ptr %8, align 8, !tbaa !11
  %359 = load double, ptr %8, align 8, !tbaa !11
  %360 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %361 = load ptr, ptr %360, align 8, !tbaa !15
  %362 = getelementptr inbounds double, ptr %361, i64 2
  %363 = load double, ptr %362, align 8, !tbaa !11
  %364 = fsub double %363, 2.000000e+00
  %365 = load ptr, ptr %4, align 8, !tbaa !9
  %366 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %364, ptr noundef %365)
  %367 = load ptr, ptr %4, align 8, !tbaa !9
  %368 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %359, double noundef %366, ptr noundef %367)
  store double %368, ptr %8, align 8, !tbaa !11
  %369 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21chebyshevcoefficientsElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 3, ptr noundef %19, ptr noundef %369)
  %370 = load double, ptr %8, align 8, !tbaa !11
  %371 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %372 = load ptr, ptr %371, align 8, !tbaa !15
  %373 = getelementptr inbounds double, ptr %372, i64 0
  %374 = load double, ptr %373, align 8, !tbaa !11
  %375 = fsub double %374, 0.000000e+00
  %376 = load ptr, ptr %4, align 8, !tbaa !9
  %377 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %375, ptr noundef %376)
  %378 = load ptr, ptr %4, align 8, !tbaa !9
  %379 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %370, double noundef %377, ptr noundef %378)
  store double %379, ptr %8, align 8, !tbaa !11
  %380 = load double, ptr %8, align 8, !tbaa !11
  %381 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %382 = load ptr, ptr %381, align 8, !tbaa !15
  %383 = getelementptr inbounds double, ptr %382, i64 1
  %384 = load double, ptr %383, align 8, !tbaa !11
  %385 = fadd double %384, 3.000000e+00
  %386 = load ptr, ptr %4, align 8, !tbaa !9
  %387 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %385, ptr noundef %386)
  %388 = load ptr, ptr %4, align 8, !tbaa !9
  %389 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %380, double noundef %387, ptr noundef %388)
  store double %389, ptr %8, align 8, !tbaa !11
  %390 = load double, ptr %8, align 8, !tbaa !11
  %391 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %392 = load ptr, ptr %391, align 8, !tbaa !15
  %393 = getelementptr inbounds double, ptr %392, i64 2
  %394 = load double, ptr %393, align 8, !tbaa !11
  %395 = fsub double %394, 0.000000e+00
  %396 = load ptr, ptr %4, align 8, !tbaa !9
  %397 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %395, ptr noundef %396)
  %398 = load ptr, ptr %4, align 8, !tbaa !9
  %399 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %390, double noundef %397, ptr noundef %398)
  store double %399, ptr %8, align 8, !tbaa !11
  %400 = load double, ptr %8, align 8, !tbaa !11
  %401 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %402 = load ptr, ptr %401, align 8, !tbaa !15
  %403 = getelementptr inbounds double, ptr %402, i64 3
  %404 = load double, ptr %403, align 8, !tbaa !11
  %405 = fsub double %404, 4.000000e+00
  %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 ptr, ptr %4, align 8, !tbaa !9
  %409 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %400, double noundef %407, ptr noundef %408)
  store double %409, ptr %8, align 8, !tbaa !11
  %410 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21chebyshevcoefficientsElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 4, ptr noundef %19, ptr noundef %410)
  %411 = load double, ptr %8, align 8, !tbaa !11
  %412 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %413 = load ptr, ptr %412, align 8, !tbaa !15
  %414 = getelementptr inbounds double, ptr %413, i64 0
  %415 = load double, ptr %414, align 8, !tbaa !11
  %416 = fsub double %415, 1.000000e+00
  %417 = load ptr, ptr %4, align 8, !tbaa !9
  %418 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %416, ptr noundef %417)
  %419 = load ptr, ptr %4, align 8, !tbaa !9
  %420 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %411, double noundef %418, ptr noundef %419)
  store double %420, ptr %8, align 8, !tbaa !11
  %421 = load double, ptr %8, align 8, !tbaa !11
  %422 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %423 = load ptr, ptr %422, align 8, !tbaa !15
  %424 = getelementptr inbounds double, ptr %423, i64 1
  %425 = load double, ptr %424, align 8, !tbaa !11
  %426 = fsub double %425, 0.000000e+00
  %427 = load ptr, ptr %4, align 8, !tbaa !9
  %428 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %426, ptr noundef %427)
  %429 = load ptr, ptr %4, align 8, !tbaa !9
  %430 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %421, double noundef %428, ptr noundef %429)
  store double %430, ptr %8, align 8, !tbaa !11
  %431 = load double, ptr %8, align 8, !tbaa !11
  %432 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %433 = load ptr, ptr %432, align 8, !tbaa !15
  %434 = getelementptr inbounds double, ptr %433, i64 2
  %435 = load double, ptr %434, align 8, !tbaa !11
  %436 = fadd double %435, 8.000000e+00
  %437 = load ptr, ptr %4, align 8, !tbaa !9
  %438 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %436, ptr noundef %437)
  %439 = load ptr, ptr %4, align 8, !tbaa !9
  %440 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %431, double noundef %438, ptr noundef %439)
  store double %440, ptr %8, align 8, !tbaa !11
  %441 = load double, ptr %8, align 8, !tbaa !11
  %442 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %443 = load ptr, ptr %442, align 8, !tbaa !15
  %444 = getelementptr inbounds double, ptr %443, i64 3
  %445 = load double, ptr %444, align 8, !tbaa !11
  %446 = fsub double %445, 0.000000e+00
  %447 = load ptr, ptr %4, align 8, !tbaa !9
  %448 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %446, ptr noundef %447)
  %449 = load ptr, ptr %4, align 8, !tbaa !9
  %450 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %441, double noundef %448, ptr noundef %449)
  store double %450, ptr %8, align 8, !tbaa !11
  %451 = load double, ptr %8, align 8, !tbaa !11
  %452 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %453 = load ptr, ptr %452, align 8, !tbaa !15
  %454 = getelementptr inbounds double, ptr %453, i64 4
  %455 = load double, ptr %454, align 8, !tbaa !11
  %456 = fsub double %455, 8.000000e+00
  %457 = load ptr, ptr %4, align 8, !tbaa !9
  %458 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %456, ptr noundef %457)
  %459 = load ptr, ptr %4, align 8, !tbaa !9
  %460 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %451, double noundef %458, ptr noundef %459)
  store double %460, ptr %8, align 8, !tbaa !11
  %461 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21chebyshevcoefficientsElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 9, ptr noundef %19, ptr noundef %461)
  %462 = load double, ptr %8, align 8, !tbaa !11
  %463 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %464 = load ptr, ptr %463, align 8, !tbaa !15
  %465 = getelementptr inbounds double, ptr %464, i64 0
  %466 = load double, ptr %465, align 8, !tbaa !11
  %467 = fsub double %466, 0.000000e+00
  %468 = load ptr, ptr %4, align 8, !tbaa !9
  %469 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %467, ptr noundef %468)
  %470 = load ptr, ptr %4, align 8, !tbaa !9
  %471 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %462, double noundef %469, ptr noundef %470)
  store double %471, ptr %8, align 8, !tbaa !11
  %472 = load double, ptr %8, align 8, !tbaa !11
  %473 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %474 = load ptr, ptr %473, align 8, !tbaa !15
  %475 = getelementptr inbounds double, ptr %474, i64 1
  %476 = load double, ptr %475, align 8, !tbaa !11
  %477 = fsub double %476, 9.000000e+00
  %478 = load ptr, ptr %4, align 8, !tbaa !9
  %479 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %477, ptr noundef %478)
  %480 = load ptr, ptr %4, align 8, !tbaa !9
  %481 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %472, double noundef %479, ptr noundef %480)
  store double %481, ptr %8, align 8, !tbaa !11
  %482 = load double, ptr %8, align 8, !tbaa !11
  %483 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %484 = load ptr, ptr %483, align 8, !tbaa !15
  %485 = getelementptr inbounds double, ptr %484, i64 2
  %486 = load double, ptr %485, align 8, !tbaa !11
  %487 = fsub double %486, 0.000000e+00
  %488 = load ptr, ptr %4, align 8, !tbaa !9
  %489 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %487, ptr noundef %488)
  %490 = load ptr, ptr %4, align 8, !tbaa !9
  %491 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %482, double noundef %489, ptr noundef %490)
  store double %491, ptr %8, align 8, !tbaa !11
  %492 = load double, ptr %8, align 8, !tbaa !11
  %493 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %494 = load ptr, ptr %493, align 8, !tbaa !15
  %495 = getelementptr inbounds double, ptr %494, i64 3
  %496 = load double, ptr %495, align 8, !tbaa !11
  %497 = fadd double %496, 1.200000e+02
  %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 ptr, ptr %4, align 8, !tbaa !9
  %501 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %492, double noundef %499, ptr noundef %500)
  store double %501, ptr %8, align 8, !tbaa !11
  %502 = load double, ptr %8, align 8, !tbaa !11
  %503 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %504 = load ptr, ptr %503, align 8, !tbaa !15
  %505 = getelementptr inbounds double, ptr %504, i64 4
  %506 = load double, ptr %505, align 8, !tbaa !11
  %507 = fsub double %506, 0.000000e+00
  %508 = load ptr, ptr %4, align 8, !tbaa !9
  %509 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %507, ptr noundef %508)
  %510 = load ptr, ptr %4, align 8, !tbaa !9
  %511 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %502, double noundef %509, ptr noundef %510)
  store double %511, ptr %8, align 8, !tbaa !11
  %512 = load double, ptr %8, align 8, !tbaa !11
  %513 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %514 = load ptr, ptr %513, align 8, !tbaa !15
  %515 = getelementptr inbounds double, ptr %514, i64 5
  %516 = load double, ptr %515, align 8, !tbaa !11
  %517 = fsub double %516, 4.320000e+02
  %518 = load ptr, ptr %4, align 8, !tbaa !9
  %519 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %517, ptr noundef %518)
  %520 = load ptr, ptr %4, align 8, !tbaa !9
  %521 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %512, double noundef %519, ptr noundef %520)
  store double %521, ptr %8, align 8, !tbaa !11
  %522 = load double, ptr %8, align 8, !tbaa !11
  %523 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %524 = load ptr, ptr %523, align 8, !tbaa !15
  %525 = getelementptr inbounds double, ptr %524, i64 6
  %526 = load double, ptr %525, align 8, !tbaa !11
  %527 = fsub double %526, 0.000000e+00
  %528 = load ptr, ptr %4, align 8, !tbaa !9
  %529 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %527, ptr noundef %528)
  %530 = load ptr, ptr %4, align 8, !tbaa !9
  %531 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %522, double noundef %529, ptr noundef %530)
  store double %531, ptr %8, align 8, !tbaa !11
  %532 = load double, ptr %8, align 8, !tbaa !11
  %533 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %534 = load ptr, ptr %533, align 8, !tbaa !15
  %535 = getelementptr inbounds double, ptr %534, i64 7
  %536 = load double, ptr %535, align 8, !tbaa !11
  %537 = fadd double %536, 5.760000e+02
  %538 = load ptr, ptr %4, align 8, !tbaa !9
  %539 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %537, ptr noundef %538)
  %540 = load ptr, ptr %4, align 8, !tbaa !9
  %541 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %532, double noundef %539, ptr noundef %540)
  store double %541, ptr %8, align 8, !tbaa !11
  %542 = load double, ptr %8, align 8, !tbaa !11
  %543 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %544 = load ptr, ptr %543, align 8, !tbaa !15
  %545 = getelementptr inbounds double, ptr %544, i64 8
  %546 = load double, ptr %545, align 8, !tbaa !11
  %547 = fsub double %546, 0.000000e+00
  %548 = load ptr, ptr %4, align 8, !tbaa !9
  %549 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %547, ptr noundef %548)
  %550 = load ptr, ptr %4, align 8, !tbaa !9
  %551 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %542, double noundef %549, ptr noundef %550)
  store double %551, ptr %8, align 8, !tbaa !11
  %552 = load double, ptr %8, align 8, !tbaa !11
  %553 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %554 = load ptr, ptr %553, align 8, !tbaa !15
  %555 = getelementptr inbounds double, ptr %554, i64 9
  %556 = load double, ptr %555, align 8, !tbaa !11
  %557 = fsub double %556, 2.560000e+02
  %558 = load ptr, ptr %4, align 8, !tbaa !9
  %559 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %557, ptr noundef %558)
  %560 = load ptr, ptr %4, align 8, !tbaa !9
  %561 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %552, double noundef %559, ptr noundef %560)
  store double %561, ptr %8, align 8, !tbaa !11
  store i64 10, ptr %18, align 8, !tbaa !13
  %562 = load i64, ptr %18, align 8, !tbaa !13
  %563 = add nsw i64 %562, 1
  %564 = load i64, ptr %18, align 8, !tbaa !13
  %565 = add nsw i64 %564, 1
  %566 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %22, i64 noundef %563, i64 noundef %565, ptr noundef %566)
  store i64 0, ptr %14, align 8, !tbaa !13
  br label %567

567:                                              ; preds = %601, %305
  %568 = load i64, ptr %14, align 8, !tbaa !13
  %569 = load i64, ptr %18, align 8, !tbaa !13
  %570 = icmp sle i64 %568, %569
  br i1 %570, label %571, label %604

571:                                              ; preds = %567
  store i64 0, ptr %15, align 8, !tbaa !13
  br label %572

572:                                              ; preds = %584, %571
  %573 = load i64, ptr %15, align 8, !tbaa !13
  %574 = load i64, ptr %18, align 8, !tbaa !13
  %575 = icmp sle i64 %573, %574
  br i1 %575, label %576, label %587

576:                                              ; preds = %572
  %577 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %578 = load ptr, ptr %577, align 8, !tbaa !15
  %579 = load i64, ptr %14, align 8, !tbaa !13
  %580 = getelementptr inbounds ptr, ptr %578, i64 %579
  %581 = load ptr, ptr %580, align 8, !tbaa !9
  %582 = load i64, ptr %15, align 8, !tbaa !13
  %583 = getelementptr inbounds double, ptr %581, i64 %582
  store double 0.000000e+00, ptr %583, align 8, !tbaa !11
  br label %584

584:                                              ; preds = %576
  %585 = load i64, ptr %15, align 8, !tbaa !13
  %586 = add nsw i64 %585, 1
  store i64 %586, ptr %15, align 8, !tbaa !13
  br label %572, !llvm.loop !20

587:                                              ; preds = %572
  %588 = load i64, ptr %14, align 8, !tbaa !13
  %589 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21chebyshevcoefficientsElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %588, ptr noundef %19, ptr noundef %589)
  %590 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %591 = load ptr, ptr %590, align 8, !tbaa !15
  %592 = load i64, ptr %14, align 8, !tbaa !13
  %593 = getelementptr inbounds ptr, ptr %591, i64 %592
  %594 = load ptr, ptr %593, align 8, !tbaa !9
  %595 = getelementptr inbounds double, ptr %594, i64 0
  %596 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %597 = load ptr, ptr %596, align 8, !tbaa !15
  %598 = getelementptr inbounds double, ptr %597, i64 0
  %599 = load i64, ptr %14, align 8, !tbaa !13
  %600 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %599)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %595, i64 noundef 1, ptr noundef %598, i64 noundef 1, i64 noundef %600)
  br label %601

601:                                              ; preds = %587
  %602 = load i64, ptr %14, align 8, !tbaa !13
  %603 = add nsw i64 %602, 1
  store i64 %603, ptr %14, align 8, !tbaa !13
  br label %567, !llvm.loop !21

604:                                              ; preds = %567
  %605 = load i64, ptr %18, align 8, !tbaa !13
  %606 = add nsw i64 %605, 1
  %607 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %606, ptr noundef %607)
  %608 = load i64, ptr %18, align 8, !tbaa !13
  %609 = add nsw i64 %608, 1
  %610 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %609, ptr noundef %610)
  store i64 0, ptr %17, align 8, !tbaa !13
  br label %611

611:                                              ; preds = %697, %604
  %612 = load i64, ptr %17, align 8, !tbaa !13
  %613 = load i64, ptr %18, align 8, !tbaa !13
  %614 = icmp sle i64 %612, %613
  br i1 %614, label %615, label %700

615:                                              ; preds = %611
  store i64 1, ptr %13, align 8, !tbaa !13
  br label %616

616:                                              ; preds = %693, %615
  %617 = load i64, ptr %13, align 8, !tbaa !13
  %618 = icmp sle i64 %617, 10
  br i1 %618, label %619, label %696

619:                                              ; preds = %616
  store i64 0, ptr %14, align 8, !tbaa !13
  br label %620

620:                                              ; preds = %629, %619
  %621 = load i64, ptr %14, align 8, !tbaa !13
  %622 = load i64, ptr %17, align 8, !tbaa !13
  %623 = icmp sle i64 %621, %622
  br i1 %623, label %624, label %632

624:                                              ; preds = %620
  %625 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %626 = load ptr, ptr %625, align 8, !tbaa !15
  %627 = load i64, ptr %14, align 8, !tbaa !13
  %628 = getelementptr inbounds double, ptr %626, i64 %627
  store double 0.000000e+00, ptr %628, align 8, !tbaa !11
  br label %629

629:                                              ; preds = %624
  %630 = load i64, ptr %14, align 8, !tbaa !13
  %631 = add nsw i64 %630, 1
  store i64 %631, ptr %14, align 8, !tbaa !13
  br label %620, !llvm.loop !22

632:                                              ; preds = %620
  store i64 0, ptr %14, align 8, !tbaa !13
  br label %633

633:                                              ; preds = %662, %632
  %634 = load i64, ptr %14, align 8, !tbaa !13
  %635 = load i64, ptr %17, align 8, !tbaa !13
  %636 = icmp sle i64 %634, %635
  br i1 %636, label %637, label %665

637:                                              ; preds = %633
  %638 = load ptr, ptr %4, align 8, !tbaa !9
  %639 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %638)
  %640 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %639, double -1.000000e+00)
  %641 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %642 = load ptr, ptr %641, align 8, !tbaa !15
  %643 = load i64, ptr %14, align 8, !tbaa !13
  %644 = getelementptr inbounds double, ptr %642, i64 %643
  store double %640, ptr %644, align 8, !tbaa !11
  %645 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %646 = load ptr, ptr %645, align 8, !tbaa !15
  %647 = load i64, ptr %14, align 8, !tbaa !13
  %648 = getelementptr inbounds double, ptr %646, i64 %647
  %649 = load double, ptr %648, align 8, !tbaa !11
  store double %649, ptr %12, align 8, !tbaa !11
  %650 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %651 = load ptr, ptr %650, align 8, !tbaa !15
  %652 = getelementptr inbounds double, ptr %651, i64 0
  %653 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %654 = load ptr, ptr %653, align 8, !tbaa !15
  %655 = load i64, ptr %14, align 8, !tbaa !13
  %656 = getelementptr inbounds ptr, ptr %654, i64 %655
  %657 = load ptr, ptr %656, align 8, !tbaa !9
  %658 = getelementptr inbounds double, ptr %657, i64 0
  %659 = load i64, ptr %14, align 8, !tbaa !13
  %660 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %659)
  %661 = load double, ptr %12, align 8, !tbaa !11
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %652, i64 noundef 1, ptr noundef %658, i64 noundef 1, i64 noundef %660, double noundef %661)
  br label %662

662:                                              ; preds = %637
  %663 = load i64, ptr %14, align 8, !tbaa !13
  %664 = add nsw i64 %663, 1
  store i64 %664, ptr %14, align 8, !tbaa !13
  br label %633, !llvm.loop !23

665:                                              ; preds = %633
  %666 = load i64, ptr %17, align 8, !tbaa !13
  %667 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13fromchebyshevEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef %19, i64 noundef %666, ptr noundef %21, ptr noundef %667)
  store i64 0, ptr %14, align 8, !tbaa !13
  br label %668

668:                                              ; preds = %689, %665
  %669 = load i64, ptr %14, align 8, !tbaa !13
  %670 = load i64, ptr %17, align 8, !tbaa !13
  %671 = icmp sle i64 %669, %670
  br i1 %671, label %672, label %692

672:                                              ; preds = %668
  %673 = load double, ptr %9, align 8, !tbaa !11
  %674 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %675 = load ptr, ptr %674, align 8, !tbaa !15
  %676 = load i64, ptr %14, align 8, !tbaa !13
  %677 = getelementptr inbounds double, ptr %675, i64 %676
  %678 = load double, ptr %677, align 8, !tbaa !11
  %679 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %680 = load ptr, ptr %679, align 8, !tbaa !15
  %681 = load i64, ptr %14, align 8, !tbaa !13
  %682 = getelementptr inbounds double, ptr %680, i64 %681
  %683 = load double, ptr %682, align 8, !tbaa !11
  %684 = fsub double %678, %683
  %685 = load ptr, ptr %4, align 8, !tbaa !9
  %686 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %684, ptr noundef %685)
  %687 = load ptr, ptr %4, align 8, !tbaa !9
  %688 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %673, double noundef %686, ptr noundef %687)
  store double %688, ptr %9, align 8, !tbaa !11
  br label %689

689:                                              ; preds = %672
  %690 = load i64, ptr %14, align 8, !tbaa !13
  %691 = add nsw i64 %690, 1
  store i64 %691, ptr %14, align 8, !tbaa !13
  br label %668, !llvm.loop !24

692:                                              ; preds = %668
  br label %693

693:                                              ; preds = %692
  %694 = load i64, ptr %13, align 8, !tbaa !13
  %695 = add nsw i64 %694, 1
  store i64 %695, ptr %13, align 8, !tbaa !13
  br label %616, !llvm.loop !25

696:                                              ; preds = %616
  br label %697

697:                                              ; preds = %696
  %698 = load i64, ptr %17, align 8, !tbaa !13
  %699 = add nsw i64 %698, 1
  store i64 %699, ptr %17, align 8, !tbaa !13
  br label %611, !llvm.loop !26

700:                                              ; preds = %611
  %701 = load double, ptr %6, align 8, !tbaa !11
  %702 = load double, ptr %10, align 8, !tbaa !11
  %703 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %701, double noundef %702)
  br i1 %703, label %716, label %704

704:                                              ; preds = %700
  %705 = load double, ptr %7, align 8, !tbaa !11
  %706 = load double, ptr %10, align 8, !tbaa !11
  %707 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %705, double noundef %706)
  br i1 %707, label %716, label %708

708:                                              ; preds = %704
  %709 = load double, ptr %8, align 8, !tbaa !11
  %710 = load double, ptr %10, align 8, !tbaa !11
  %711 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %709, double noundef %710)
  br i1 %711, label %716, label %712

712:                                              ; preds = %708
  %713 = load double, ptr %9, align 8, !tbaa !11
  %714 = load double, ptr %10, align 8, !tbaa !11
  %715 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %713, double noundef %714)
  br label %716

716:                                              ; preds = %712, %708, %704, %700
  %717 = phi i1 [ true, %708 ], [ true, %704 ], [ true, %700 ], [ %715, %712 ]
  %718 = zext i1 %717 to i8
  store i8 %718, ptr %23, align 1, !tbaa !5
  %719 = load i8, ptr %3, align 1, !tbaa !5, !range !27, !noundef !28
  %720 = trunc i8 %719 to i1
  br i1 %720, label %740, label %721

721:                                              ; preds = %716
  %722 = call i32 (ptr, ...) @printf(ptr noundef @.str.696)
  %723 = load double, ptr %6, align 8, !tbaa !11
  %724 = call i32 (ptr, ...) @printf(ptr noundef @.str.697, double noundef %723)
  %725 = load double, ptr %7, align 8, !tbaa !11
  %726 = call i32 (ptr, ...) @printf(ptr noundef @.str.691, double noundef %725)
  %727 = load double, ptr %8, align 8, !tbaa !11
  %728 = call i32 (ptr, ...) @printf(ptr noundef @.str.692, double noundef %727)
  %729 = load double, ptr %9, align 8, !tbaa !11
  %730 = call i32 (ptr, ...) @printf(ptr noundef @.str.698, double noundef %729)
  %731 = load double, ptr %10, align 8, !tbaa !11
  %732 = call i32 (ptr, ...) @printf(ptr noundef @.str.693, double noundef %731)
  %733 = load i8, ptr %23, align 1, !tbaa !5, !range !27, !noundef !28
  %734 = trunc i8 %733 to i1
  br i1 %734, label %737, label %735

735:                                              ; preds = %721
  %736 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %739

737:                                              ; preds = %721
  %738 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %739

739:                                              ; preds = %737, %735
  br label %740

740:                                              ; preds = %739, %716
  %741 = load i8, ptr %23, align 1, !tbaa !5, !range !27, !noundef !28
  %742 = trunc i8 %741 to i1
  %743 = xor i1 %742, true
  %744 = zext i1 %743 to i8
  store i8 %744, ptr %24, align 1, !tbaa !5
  %745 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %745)
  %746 = load i8, ptr %24, align 1, !tbaa !5, !range !27, !noundef !28
  %747 = trunc i8 %746 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 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 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  ret i1 %747
}

declare noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef, i64 noundef, double noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl12chebyshevsumEPNS_9ae_vectorElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) #1

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

declare void @_ZN11alglib_impl13fromchebyshevEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr 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 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = !{i8 0, i8 2}
!28 = !{}


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

@.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.691 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.692 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.693 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.696 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.697 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.698 = external hidden unnamed_addr constant [49 x i8], align 1

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

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

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

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

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

; 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 double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #1

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

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

declare noundef 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_impl9ae_v_adddEPdlPKdlld(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z13testchebyshevbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #5 {
.preheader311:
  %2 = alloca %"struct.alglib_impl::ae_frame", align 8
  %3 = alloca %"struct.alglib_impl::ae_vector", align 8
  %4 = alloca %"struct.alglib_impl::ae_vector", align 8
  %5 = alloca %"struct.alglib_impl::ae_vector", align 8
  %6 = alloca %"struct.alglib_impl::ae_matrix", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %2)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %3, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %4, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %5, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %6, i8 0, i64 80, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %3, 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 %4, 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 %5, 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 %6, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  %7 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %1)
  %8 = fadd double %7, -1.000000e+00
  %9 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %8, ptr noundef %1)
  %10 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef 0.000000e+00, double noundef %9, ptr noundef %1)
  %11 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 0, double noundef 3.300000e-01, ptr noundef %1)
  %12 = fadd double %11, -1.000000e+00
  %13 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %12, ptr noundef %1)
  %14 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %10, double noundef %13, ptr noundef %1)
  %15 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 0, double noundef -4.200000e-01, ptr noundef %1)
  %16 = fadd double %15, -1.000000e+00
  %17 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %16, ptr noundef %1)
  %18 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %14, double noundef %17, ptr noundef %1)
  %19 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef 2.000000e-01, ptr noundef %1)
  %20 = fadd double %19, -2.000000e-01
  %21 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %20, ptr noundef %1)
  %22 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %18, double noundef %21, ptr noundef %1)
  %23 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef 4.000000e-01, ptr noundef %1)
  %24 = fadd double %23, -4.000000e-01
  %25 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %24, ptr noundef %1)
  %26 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %22, double noundef %25, ptr noundef %1)
  %27 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef 6.000000e-01, ptr noundef %1)
  %28 = fadd double %27, -6.000000e-01
  %29 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %28, ptr noundef %1)
  %30 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %26, double noundef %29, ptr noundef %1)
  %31 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef 8.000000e-01, ptr noundef %1)
  %32 = fadd double %31, -8.000000e-01
  %33 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %32, ptr noundef %1)
  %34 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %30, double noundef %33, ptr noundef %1)
  %35 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef 1.000000e+00, ptr noundef %1)
  %36 = fadd double %35, -1.000000e+00
  %37 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %36, ptr noundef %1)
  %38 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %34, double noundef %37, ptr noundef %1)
  %39 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 2, double noundef 2.000000e-01, ptr noundef %1)
  %40 = fadd double %39, 9.200000e-01
  %41 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %40, ptr noundef %1)
  %42 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %38, double noundef %41, ptr noundef %1)
  %43 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 2, double noundef 4.000000e-01, ptr noundef %1)
  %44 = fadd double %43, 6.800000e-01
  %45 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %44, ptr noundef %1)
  %46 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %42, double noundef %45, ptr noundef %1)
  %47 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 2, double noundef 6.000000e-01, ptr noundef %1)
  %48 = fadd double %47, 2.800000e-01
  %49 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %48, ptr noundef %1)
  %50 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %46, double noundef %49, ptr noundef %1)
  %51 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 2, double noundef 8.000000e-01, ptr noundef %1)
  %52 = fadd double %51, -2.800000e-01
  %53 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %52, ptr noundef %1)
  %54 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %50, double noundef %53, ptr noundef %1)
  %55 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 2, double noundef 1.000000e+00, ptr noundef %1)
  %56 = fadd double %55, -1.000000e+00
  %57 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %56, ptr noundef %1)
  %58 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %54, double noundef %57, ptr noundef %1)
  %59 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 10, double noundef 2.000000e-01, ptr noundef %1)
  %60 = fadd double %59, 0xBFDB6BD1285EEB5E
  %61 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %60, ptr noundef %1)
  %62 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %58, double noundef %61, ptr noundef %1)
  %63 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 11, double noundef 2.000000e-01, ptr noundef %1)
  %64 = fadd double %63, 0x3FE99674562CF71E
  %65 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %64, ptr noundef %1)
  %66 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %62, double noundef %65, ptr noundef %1)
  %67 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef 12, double noundef 2.000000e-01, ptr noundef %1)
  %68 = fadd double %67, 0x3FE7F2171D0E3EEE
  %69 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %68, ptr noundef %1)
  %70 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %66, double noundef %69, ptr noundef %1)
  %71 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef 0, double noundef 2.000000e-01, ptr noundef %1)
  %72 = fadd double %71, -1.000000e+00
  %73 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %72, ptr noundef %1)
  %74 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %70, double noundef %73, ptr noundef %1)
  %75 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef 1, double noundef 2.000000e-01, ptr noundef %1)
  %76 = fadd double %75, -4.000000e-01
  %77 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %76, ptr noundef %1)
  %78 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %74, double noundef %77, ptr noundef %1)
  %79 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef 2, double noundef 2.000000e-01, ptr noundef %1)
  %80 = fadd double %79, 8.400000e-01
  %81 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %80, ptr noundef %1)
  %82 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %78, double noundef %81, ptr noundef %1)
  %83 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef 3, double noundef 2.000000e-01, ptr noundef %1)
  %84 = fadd double %83, 0x3FE78D4FDF3B645A
  %85 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %84, ptr noundef %1)
  %86 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %82, double noundef %85, ptr noundef %1)
  %87 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef 4, double noundef 2.000000e-01, ptr noundef %1)
  %88 = fadd double %87, -5.456000e-01
  %89 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %88, ptr noundef %1)
  %90 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %86, double noundef %89, ptr noundef %1)
  %91 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef 10, double noundef 2.000000e-01, ptr noundef %1)
  %92 = fadd double %91, 0xBFE39CD52C4F90CD
  %93 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %92, ptr noundef %1)
  %94 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %90, double noundef %93, ptr noundef %1)
  %95 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef 11, double noundef 2.000000e-01, ptr noundef %1)
  %96 = fadd double %95, 0x3FE5AA49B3B966A5
  %97 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %96, ptr noundef %1)
  %98 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %94, double noundef %97, ptr noundef %1)
  %99 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef 12, double noundef 2.000000e-01, ptr noundef %1)
  %100 = fadd double %99, 0x3FEC47590DCCED0F
  %101 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %100, ptr noundef %1)
  %102 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %98, double noundef %101, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef 21, ptr noundef %1)
  %103 = getelementptr inbounds i8, ptr %3, i64 56
  br label %104

104:                                              ; preds = %.preheader311, %122
  %.0297316 = phi i64 [ 1, %.preheader311 ], [ %123, %122 ]
  %.1301315 = phi double [ 0.000000e+00, %.preheader311 ], [ %120, %122 ]
  %105 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %106 = call double @llvm.fmuladd.f64(double %105, double 2.000000e+00, double -1.000000e+00)
  br label %107

107:                                              ; preds = %104, %107
  %.0314 = phi i64 [ 0, %104 ], [ %121, %107 ]
  %.0299313 = phi double [ 0.000000e+00, %104 ], [ %116, %107 ]
  %.2302312 = phi double [ %.1301315, %104 ], [ %120, %107 ]
  %108 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %109 = call double @llvm.fmuladd.f64(double %108, double 2.000000e+00, double -1.000000e+00)
  %110 = load ptr, ptr %103, align 8, !tbaa !5
  %111 = getelementptr inbounds double, ptr %110, i64 %.0314
  store double %109, ptr %111, align 8, !tbaa !8
  %112 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 1, i64 noundef %.0314, double noundef %106, ptr noundef %1)
  %113 = load ptr, ptr %103, align 8, !tbaa !5
  %114 = getelementptr inbounds double, ptr %113, i64 %.0314
  %115 = load double, ptr %114, align 8, !tbaa !8
  %116 = call double @llvm.fmuladd.f64(double %112, double %115, double %.0299313)
  %117 = call noundef double @_ZN11alglib_impl12chebyshevsumEPNS_9ae_vectorElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef 1, i64 noundef %.0314, double noundef %106, ptr noundef %1)
  %118 = fsub double %116, %117
  %119 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %118, ptr noundef %1)
  %120 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.2302312, double noundef %119, ptr noundef %1)
  %121 = add nuw nsw i64 %.0314, 1
  %exitcond.not = icmp eq i64 %121, 21
  br i1 %exitcond.not, label %122, label %107, !llvm.loop !10

122:                                              ; preds = %107
  %123 = add nuw nsw i64 %.0297316, 1
  %exitcond330.not = icmp eq i64 %123, 11
  br i1 %exitcond330.not, label %.preheader311.1, label %104, !llvm.loop !12

.preheader311.1:                                  ; preds = %122, %141
  %.0297316.1 = phi i64 [ %142, %141 ], [ 1, %122 ]
  %.1301315.1 = phi double [ %139, %141 ], [ %120, %122 ]
  %124 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %125 = call double @llvm.fmuladd.f64(double %124, double 2.000000e+00, double -1.000000e+00)
  br label %126

126:                                              ; preds = %126, %.preheader311.1
  %.0314.1 = phi i64 [ 0, %.preheader311.1 ], [ %140, %126 ]
  %.0299313.1 = phi double [ 0.000000e+00, %.preheader311.1 ], [ %135, %126 ]
  %.2302312.1 = phi double [ %.1301315.1, %.preheader311.1 ], [ %139, %126 ]
  %127 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %128 = call double @llvm.fmuladd.f64(double %127, double 2.000000e+00, double -1.000000e+00)
  %129 = load ptr, ptr %103, align 8, !tbaa !5
  %130 = getelementptr inbounds double, ptr %129, i64 %.0314.1
  store double %128, ptr %130, align 8, !tbaa !8
  %131 = call noundef double @_ZN11alglib_impl18chebyshevcalculateElldPNS_8ae_stateE(i64 noundef 2, i64 noundef %.0314.1, double noundef %125, ptr noundef %1)
  %132 = load ptr, ptr %103, align 8, !tbaa !5
  %133 = getelementptr inbounds double, ptr %132, i64 %.0314.1
  %134 = load double, ptr %133, align 8, !tbaa !8
  %135 = call double @llvm.fmuladd.f64(double %131, double %134, double %.0299313.1)
  %136 = call noundef double @_ZN11alglib_impl12chebyshevsumEPNS_9ae_vectorElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef 2, i64 noundef %.0314.1, double noundef %125, ptr noundef %1)
  %137 = fsub double %135, %136
  %138 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %137, ptr noundef %1)
  %139 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.2302312.1, double noundef %138, ptr noundef %1)
  %140 = add nuw nsw i64 %.0314.1, 1
  %exitcond.1.not = icmp eq i64 %140, 21
  br i1 %exitcond.1.not, label %141, label %126, !llvm.loop !10

141:                                              ; preds = %126
  %142 = add nuw nsw i64 %.0297316.1, 1
  %exitcond330.1.not = icmp eq i64 %142, 11
  br i1 %exitcond330.1.not, label %143, label %.preheader311.1, !llvm.loop !12

143:                                              ; preds = %141
  call void @_ZN11alglib_impl21chebyshevcoefficientsElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 0, ptr noundef nonnull %3, ptr noundef %1)
  %144 = load ptr, ptr %103, align 8, !tbaa !5
  %145 = load double, ptr %144, align 8, !tbaa !8
  %146 = fadd double %145, -1.000000e+00
  %147 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %146, ptr noundef %1)
  %148 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef 0.000000e+00, double noundef %147, ptr noundef %1)
  call void @_ZN11alglib_impl21chebyshevcoefficientsElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 1, ptr noundef nonnull %3, ptr noundef %1)
  %149 = load ptr, ptr %103, align 8, !tbaa !5
  %150 = load double, ptr %149, align 8, !tbaa !8
  %151 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %150, ptr noundef %1)
  %152 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %148, double noundef %151, ptr noundef %1)
  %153 = load ptr, ptr %103, align 8, !tbaa !5
  %154 = getelementptr inbounds i8, ptr %153, i64 8
  %155 = load double, ptr %154, align 8, !tbaa !8
  %156 = fadd double %155, -1.000000e+00
  %157 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %156, ptr noundef %1)
  %158 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %152, double noundef %157, ptr noundef %1)
  call void @_ZN11alglib_impl21chebyshevcoefficientsElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 2, ptr noundef nonnull %3, ptr noundef %1)
  %159 = load ptr, ptr %103, align 8, !tbaa !5
  %160 = load double, ptr %159, align 8, !tbaa !8
  %161 = fadd double %160, 1.000000e+00
  %162 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %161, ptr noundef %1)
  %163 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %158, double noundef %162, ptr noundef %1)
  %164 = load ptr, ptr %103, align 8, !tbaa !5
  %165 = getelementptr inbounds i8, ptr %164, i64 8
  %166 = load double, ptr %165, align 8, !tbaa !8
  %167 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %166, ptr noundef %1)
  %168 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %163, double noundef %167, ptr noundef %1)
  %169 = load ptr, ptr %103, align 8, !tbaa !5
  %170 = getelementptr inbounds i8, ptr %169, i64 16
  %171 = load double, ptr %170, align 8, !tbaa !8
  %172 = fadd double %171, -2.000000e+00
  %173 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %172, ptr noundef %1)
  %174 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %168, double noundef %173, ptr noundef %1)
  call void @_ZN11alglib_impl21chebyshevcoefficientsElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 3, ptr noundef nonnull %3, ptr noundef %1)
  %175 = load ptr, ptr %103, align 8, !tbaa !5
  %176 = load double, ptr %175, align 8, !tbaa !8
  %177 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %176, ptr noundef %1)
  %178 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %174, double noundef %177, ptr noundef %1)
  %179 = load ptr, ptr %103, align 8, !tbaa !5
  %180 = getelementptr inbounds i8, ptr %179, i64 8
  %181 = load double, ptr %180, align 8, !tbaa !8
  %182 = fadd double %181, 3.000000e+00
  %183 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %182, ptr noundef %1)
  %184 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %178, double noundef %183, ptr noundef %1)
  %185 = load ptr, ptr %103, align 8, !tbaa !5
  %186 = getelementptr inbounds i8, ptr %185, i64 16
  %187 = load double, ptr %186, align 8, !tbaa !8
  %188 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %187, ptr noundef %1)
  %189 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %184, double noundef %188, ptr noundef %1)
  %190 = load ptr, ptr %103, align 8, !tbaa !5
  %191 = getelementptr inbounds i8, ptr %190, i64 24
  %192 = load double, ptr %191, align 8, !tbaa !8
  %193 = fadd double %192, -4.000000e+00
  %194 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %193, ptr noundef %1)
  %195 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %189, double noundef %194, ptr noundef %1)
  call void @_ZN11alglib_impl21chebyshevcoefficientsElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 4, ptr noundef nonnull %3, ptr noundef %1)
  %196 = load ptr, ptr %103, align 8, !tbaa !5
  %197 = load double, ptr %196, align 8, !tbaa !8
  %198 = fadd double %197, -1.000000e+00
  %199 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %198, ptr noundef %1)
  %200 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %195, double noundef %199, ptr noundef %1)
  %201 = load ptr, ptr %103, align 8, !tbaa !5
  %202 = getelementptr inbounds i8, ptr %201, i64 8
  %203 = load double, ptr %202, align 8, !tbaa !8
  %204 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %203, ptr noundef %1)
  %205 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %200, double noundef %204, ptr noundef %1)
  %206 = load ptr, ptr %103, align 8, !tbaa !5
  %207 = getelementptr inbounds i8, ptr %206, i64 16
  %208 = load double, ptr %207, align 8, !tbaa !8
  %209 = fadd double %208, 8.000000e+00
  %210 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %209, ptr noundef %1)
  %211 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %205, double noundef %210, ptr noundef %1)
  %212 = load ptr, ptr %103, align 8, !tbaa !5
  %213 = getelementptr inbounds i8, ptr %212, i64 24
  %214 = load double, ptr %213, align 8, !tbaa !8
  %215 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %214, ptr noundef %1)
  %216 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %211, double noundef %215, ptr noundef %1)
  %217 = load ptr, ptr %103, align 8, !tbaa !5
  %218 = getelementptr inbounds i8, ptr %217, i64 32
  %219 = load double, ptr %218, align 8, !tbaa !8
  %220 = fadd double %219, -8.000000e+00
  %221 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %220, ptr noundef %1)
  %222 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %216, double noundef %221, ptr noundef %1)
  call void @_ZN11alglib_impl21chebyshevcoefficientsElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 9, ptr noundef nonnull %3, ptr noundef %1)
  %223 = load ptr, ptr %103, align 8, !tbaa !5
  %224 = load double, ptr %223, align 8, !tbaa !8
  %225 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %224, ptr noundef %1)
  %226 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %222, double noundef %225, ptr noundef %1)
  %227 = load ptr, ptr %103, align 8, !tbaa !5
  %228 = getelementptr inbounds i8, ptr %227, i64 8
  %229 = load double, ptr %228, align 8, !tbaa !8
  %230 = fadd double %229, -9.000000e+00
  %231 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %230, ptr noundef %1)
  %232 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %226, double noundef %231, ptr noundef %1)
  %233 = load ptr, ptr %103, align 8, !tbaa !5
  %234 = getelementptr inbounds i8, ptr %233, i64 16
  %235 = load double, ptr %234, align 8, !tbaa !8
  %236 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %235, ptr noundef %1)
  %237 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %232, double noundef %236, ptr noundef %1)
  %238 = load ptr, ptr %103, align 8, !tbaa !5
  %239 = getelementptr inbounds i8, ptr %238, i64 24
  %240 = load double, ptr %239, align 8, !tbaa !8
  %241 = fadd double %240, 1.200000e+02
  %242 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %241, ptr noundef %1)
  %243 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %237, double noundef %242, ptr noundef %1)
  %244 = load ptr, ptr %103, align 8, !tbaa !5
  %245 = getelementptr inbounds i8, ptr %244, i64 32
  %246 = load double, ptr %245, align 8, !tbaa !8
  %247 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %246, ptr noundef %1)
  %248 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %243, double noundef %247, ptr noundef %1)
  %249 = load ptr, ptr %103, align 8, !tbaa !5
  %250 = getelementptr inbounds i8, ptr %249, i64 40
  %251 = load double, ptr %250, align 8, !tbaa !8
  %252 = fadd double %251, -4.320000e+02
  %253 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %252, ptr noundef %1)
  %254 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %248, double noundef %253, ptr noundef %1)
  %255 = load ptr, ptr %103, align 8, !tbaa !5
  %256 = getelementptr inbounds i8, ptr %255, i64 48
  %257 = load double, ptr %256, align 8, !tbaa !8
  %258 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %257, ptr noundef %1)
  %259 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %254, double noundef %258, ptr noundef %1)
  %260 = load ptr, ptr %103, align 8, !tbaa !5
  %261 = getelementptr inbounds i8, ptr %260, i64 56
  %262 = load double, ptr %261, align 8, !tbaa !8
  %263 = fadd double %262, 5.760000e+02
  %264 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %263, ptr noundef %1)
  %265 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %259, double noundef %264, ptr noundef %1)
  %266 = load ptr, ptr %103, align 8, !tbaa !5
  %267 = getelementptr inbounds i8, ptr %266, i64 64
  %268 = load double, ptr %267, align 8, !tbaa !8
  %269 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %268, ptr noundef %1)
  %270 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %265, double noundef %269, ptr noundef %1)
  %271 = load ptr, ptr %103, align 8, !tbaa !5
  %272 = getelementptr inbounds i8, ptr %271, i64 72
  %273 = load double, ptr %272, align 8, !tbaa !8
  %274 = fadd double %273, -2.560000e+02
  %275 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %274, ptr noundef %1)
  %276 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %270, double noundef %275, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 11, i64 noundef 11, ptr noundef %1)
  %277 = getelementptr inbounds i8, ptr %6, i64 72
  br label %.preheader310

.preheader310:                                    ; preds = %143, %.preheader310
  %.0295320 = phi i64 [ 0, %143 ], [ %326, %.preheader310 ]
  %278 = load ptr, ptr %277, align 8, !tbaa !5
  %279 = getelementptr inbounds ptr, ptr %278, i64 %.0295320
  %280 = load ptr, ptr %279, align 8, !tbaa !13
  store double 0.000000e+00, ptr %280, align 8, !tbaa !8
  %281 = load ptr, ptr %277, align 8, !tbaa !5
  %282 = getelementptr inbounds ptr, ptr %281, i64 %.0295320
  %283 = load ptr, ptr %282, align 8, !tbaa !13
  %284 = getelementptr inbounds i8, ptr %283, i64 8
  store double 0.000000e+00, ptr %284, align 8, !tbaa !8
  %285 = load ptr, ptr %277, align 8, !tbaa !5
  %286 = getelementptr inbounds ptr, ptr %285, i64 %.0295320
  %287 = load ptr, ptr %286, align 8, !tbaa !13
  %288 = getelementptr inbounds i8, ptr %287, i64 16
  store double 0.000000e+00, ptr %288, align 8, !tbaa !8
  %289 = load ptr, ptr %277, align 8, !tbaa !5
  %290 = getelementptr inbounds ptr, ptr %289, i64 %.0295320
  %291 = load ptr, ptr %290, align 8, !tbaa !13
  %292 = getelementptr inbounds i8, ptr %291, i64 24
  store double 0.000000e+00, ptr %292, align 8, !tbaa !8
  %293 = load ptr, ptr %277, align 8, !tbaa !5
  %294 = getelementptr inbounds ptr, ptr %293, i64 %.0295320
  %295 = load ptr, ptr %294, align 8, !tbaa !13
  %296 = getelementptr inbounds i8, ptr %295, i64 32
  store double 0.000000e+00, ptr %296, align 8, !tbaa !8
  %297 = load ptr, ptr %277, align 8, !tbaa !5
  %298 = getelementptr inbounds ptr, ptr %297, i64 %.0295320
  %299 = load ptr, ptr %298, align 8, !tbaa !13
  %300 = getelementptr inbounds i8, ptr %299, i64 40
  store double 0.000000e+00, ptr %300, align 8, !tbaa !8
  %301 = load ptr, ptr %277, align 8, !tbaa !5
  %302 = getelementptr inbounds ptr, ptr %301, i64 %.0295320
  %303 = load ptr, ptr %302, align 8, !tbaa !13
  %304 = getelementptr inbounds i8, ptr %303, i64 48
  store double 0.000000e+00, ptr %304, align 8, !tbaa !8
  %305 = load ptr, ptr %277, align 8, !tbaa !5
  %306 = getelementptr inbounds ptr, ptr %305, i64 %.0295320
  %307 = load ptr, ptr %306, align 8, !tbaa !13
  %308 = getelementptr inbounds i8, ptr %307, i64 56
  store double 0.000000e+00, ptr %308, align 8, !tbaa !8
  %309 = load ptr, ptr %277, align 8, !tbaa !5
  %310 = getelementptr inbounds ptr, ptr %309, i64 %.0295320
  %311 = load ptr, ptr %310, align 8, !tbaa !13
  %312 = getelementptr inbounds i8, ptr %311, i64 64
  store double 0.000000e+00, ptr %312, align 8, !tbaa !8
  %313 = load ptr, ptr %277, align 8, !tbaa !5
  %314 = getelementptr inbounds ptr, ptr %313, i64 %.0295320
  %315 = load ptr, ptr %314, align 8, !tbaa !13
  %316 = getelementptr inbounds i8, ptr %315, i64 72
  store double 0.000000e+00, ptr %316, align 8, !tbaa !8
  %317 = load ptr, ptr %277, align 8, !tbaa !5
  %318 = getelementptr inbounds ptr, ptr %317, i64 %.0295320
  %319 = load ptr, ptr %318, align 8, !tbaa !13
  %320 = getelementptr inbounds i8, ptr %319, i64 80
  store double 0.000000e+00, ptr %320, align 8, !tbaa !8
  call void @_ZN11alglib_impl21chebyshevcoefficientsElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %.0295320, ptr noundef nonnull %3, ptr noundef %1)
  %321 = load ptr, ptr %277, align 8, !tbaa !5
  %322 = getelementptr inbounds ptr, ptr %321, i64 %.0295320
  %323 = load ptr, ptr %322, align 8, !tbaa !13
  %324 = load ptr, ptr %103, align 8, !tbaa !5
  %325 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.0295320)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %323, i64 noundef 1, ptr noundef %324, i64 noundef 1, i64 noundef %325)
  %326 = add nuw nsw i64 %.0295320, 1
  %exitcond333.not = icmp eq i64 %326, 11
  br i1 %exitcond333.not, label %327, label %.preheader310, !llvm.loop !15

327:                                              ; preds = %.preheader310
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef 11, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef 11, ptr noundef %1)
  %328 = getelementptr inbounds i8, ptr %4, i64 56
  %329 = getelementptr inbounds i8, ptr %5, i64 56
  br label %.preheader309

.preheader309:                                    ; preds = %327, %373
  %indvars.iv = phi i64 [ 1, %327 ], [ %indvars.iv.next, %373 ]
  %.1328 = phi i64 [ 0, %327 ], [ %374, %373 ]
  %.0303327 = phi double [ 0.000000e+00, %327 ], [ %369, %373 ]
  %xtraiter = and i64 %indvars.iv, 3
  %330 = icmp ult i64 %.1328, 3
  %unroll_iter = and i64 %indvars.iv, 9223372036854775804
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader308

.preheader308:                                    ; preds = %.preheader309, %371
  %.1298326 = phi i64 [ 1, %.preheader309 ], [ %372, %371 ]
  %.1304325 = phi double [ %.0303327, %.preheader309 ], [ %369, %371 ]
  br i1 %330, label %.preheader.preheader.unr-lcssa, label %.preheader308.new

.preheader308.new:                                ; preds = %.preheader308, %.preheader308.new
  %.1296321 = phi i64 [ %342, %.preheader308.new ], [ 0, %.preheader308 ]
  %niter = phi i64 [ %niter.next.3, %.preheader308.new ], [ 0, %.preheader308 ]
  %331 = load ptr, ptr %328, align 8, !tbaa !5
  %332 = getelementptr inbounds double, ptr %331, i64 %.1296321
  store double 0.000000e+00, ptr %332, align 8, !tbaa !8
  %333 = or disjoint i64 %.1296321, 1
  %334 = load ptr, ptr %328, align 8, !tbaa !5
  %335 = getelementptr inbounds double, ptr %334, i64 %333
  store double 0.000000e+00, ptr %335, align 8, !tbaa !8
  %336 = or disjoint i64 %.1296321, 2
  %337 = load ptr, ptr %328, align 8, !tbaa !5
  %338 = getelementptr inbounds double, ptr %337, i64 %336
  store double 0.000000e+00, ptr %338, align 8, !tbaa !8
  %339 = or disjoint i64 %.1296321, 3
  %340 = load ptr, ptr %328, align 8, !tbaa !5
  %341 = getelementptr inbounds double, ptr %340, i64 %339
  store double 0.000000e+00, ptr %341, align 8, !tbaa !8
  %342 = add nuw nsw i64 %.1296321, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader.preheader.unr-lcssa, label %.preheader308.new, !llvm.loop !16

.preheader.preheader.unr-lcssa:                   ; preds = %.preheader308.new, %.preheader308
  %.1296321.unr = phi i64 [ 0, %.preheader308 ], [ %342, %.preheader308.new ]
  br i1 %lcmp.mod.not, label %.preheader.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader.preheader.unr-lcssa, %.epil.preheader
  %.1296321.epil = phi i64 [ %345, %.epil.preheader ], [ %.1296321.unr, %.preheader.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader.preheader.unr-lcssa ]
  %343 = load ptr, ptr %328, align 8, !tbaa !5
  %344 = getelementptr inbounds double, ptr %343, i64 %.1296321.epil
  store double 0.000000e+00, ptr %344, align 8, !tbaa !8
  %345 = add nuw nsw i64 %.1296321.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader.preheader, label %.epil.preheader, !llvm.loop !17

.preheader.preheader:                             ; preds = %.epil.preheader, %.preheader.preheader.unr-lcssa
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %.2322 = phi i64 [ %358, %.preheader ], [ 0, %.preheader.preheader ]
  %346 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %347 = call double @llvm.fmuladd.f64(double %346, double 2.000000e+00, double -1.000000e+00)
  %348 = load ptr, ptr %103, align 8, !tbaa !5
  %349 = getelementptr inbounds double, ptr %348, i64 %.2322
  store double %347, ptr %349, align 8, !tbaa !8
  %350 = load ptr, ptr %103, align 8, !tbaa !5
  %351 = getelementptr inbounds double, ptr %350, i64 %.2322
  %352 = load double, ptr %351, align 8, !tbaa !8
  %353 = load ptr, ptr %328, align 8, !tbaa !5
  %354 = load ptr, ptr %277, align 8, !tbaa !5
  %355 = getelementptr inbounds ptr, ptr %354, i64 %.2322
  %356 = load ptr, ptr %355, align 8, !tbaa !13
  %357 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.2322)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %353, i64 noundef 1, ptr noundef %356, i64 noundef 1, i64 noundef %357, double noundef %352)
  %358 = add nuw nsw i64 %.2322, 1
  %exitcond335.not = icmp eq i64 %358, %indvars.iv
  br i1 %exitcond335.not, label %359, label %.preheader, !llvm.loop !19

359:                                              ; preds = %.preheader
  call void @_ZN11alglib_impl13fromchebyshevEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1328, ptr noundef nonnull %5, ptr noundef %1)
  br label %360

360:                                              ; preds = %359, %360
  %.3324 = phi i64 [ 0, %359 ], [ %370, %360 ]
  %.2305323 = phi double [ %.1304325, %359 ], [ %369, %360 ]
  %361 = load ptr, ptr %328, align 8, !tbaa !5
  %362 = getelementptr inbounds double, ptr %361, i64 %.3324
  %363 = load double, ptr %362, align 8, !tbaa !8
  %364 = load ptr, ptr %329, align 8, !tbaa !5
  %365 = getelementptr inbounds double, ptr %364, i64 %.3324
  %366 = load double, ptr %365, align 8, !tbaa !8
  %367 = fsub double %363, %366
  %368 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %367, ptr noundef %1)
  %369 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.2305323, double noundef %368, ptr noundef %1)
  %370 = add nuw nsw i64 %.3324, 1
  %exitcond336.not = icmp eq i64 %370, %indvars.iv
  br i1 %exitcond336.not, label %371, label %360, !llvm.loop !20

371:                                              ; preds = %360
  %372 = add nuw nsw i64 %.1298326, 1
  %exitcond337.not = icmp eq i64 %372, 11
  br i1 %exitcond337.not, label %373, label %.preheader308, !llvm.loop !21

373:                                              ; preds = %371
  %374 = add nuw nsw i64 %.1328, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond338.not = icmp eq i64 %374, 11
  br i1 %exitcond338.not, label %375, label %.preheader309, !llvm.loop !22

375:                                              ; preds = %373
  %376 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %102, double noundef 1.000000e-09)
  br i1 %376, label %383, label %377

377:                                              ; preds = %375
  %378 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %139, double noundef 1.000000e-09)
  br i1 %378, label %383, label %379

379:                                              ; preds = %377
  %380 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %276, double noundef 1.000000e-09)
  br i1 %380, label %383, label %381

381:                                              ; preds = %379
  %382 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %369, double noundef 1.000000e-09)
  br label %383

383:                                              ; preds = %381, %379, %377, %375
  %384 = phi i1 [ true, %379 ], [ true, %377 ], [ true, %375 ], [ %382, %381 ]
  br i1 %0, label %392, label %.sink.split

.sink.split:                                      ; preds = %383
  %385 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.696)
  %386 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.697, double noundef %102)
  %387 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.691, double noundef %139)
  %388 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.692, double noundef %276)
  %389 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.698, double noundef %369)
  %390 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.693, double noundef 1.000000e-09)
  %.str.1..str.2 = select i1 %384, ptr @.str.1, ptr @.str.2
  %391 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1..str.2)
  br label %392

392:                                              ; preds = %.sink.split, %383
  %393 = xor i1 %384, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  ret i1 %393
}

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

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

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

declare void @_ZN11alglib_impl13fromchebyshevEPNS_9ae_vectorElS1_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !6, i64 0}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}


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