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

; 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::rbfmodel" = type { i64, i64, i64, %"struct.alglib_impl::rbfv1model", %"struct.alglib_impl::rbfv2model", double, double, double, i64, i64, i64, double, double, i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i8, %"struct.alglib_impl::ae_vector", i64, i8 }
%"struct.alglib_impl::rbfv1model" = type { i64, i64, i64, i64, %"struct.alglib_impl::kdtree", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::kdtree" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::kdtreerequestbuffer", i64 }
%"struct.alglib_impl::kdtreerequestbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, double, i8, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double }
%"struct.alglib_impl::rbfv2model" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", double, i64, double, i64, %"struct.alglib_impl::rbfv2calcbuffer" }
%"struct.alglib_impl::rbfv2calcbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }
%"struct.alglib_impl::rbfreport" = type { double, double, i64, i64, i64, i64, i64, i64 }

@.str.688 = external hidden unnamed_addr constant [66 x i8], align 1

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

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

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

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) #1

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z24basicmultilayerrbf1dtestPN11alglib_impl8ae_stateE(ptr noundef %0) #4 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %"struct.alglib_impl::ae_frame", align 8
  %5 = alloca %"struct.alglib_impl::rbfmodel", align 8
  %6 = alloca %"struct.alglib_impl::rbfreport", align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i64, align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca i64, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, 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 %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca %"struct.alglib_impl::ae_vector", align 8
  %25 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %26 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %27 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %28 = alloca %"struct.alglib_impl::ae_vector", align 8
  %29 = alloca %"struct.alglib_impl::ae_vector", align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i8, align 1
  %35 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 2832, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 64, 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 64, 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 8, 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 64, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #5
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %36, ptr noundef %4)
  call void @llvm.memset.p0.i64(ptr align 8 %5, i8 0, i64 2832, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %14, 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)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %29, i8 0, i64 64, i1 false)
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14_rbfmodel_initEPvPNS_8ae_stateEb(ptr noundef %5, ptr noundef %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl15_rbfreport_initEPvPNS_8ae_stateEb(ptr noundef %6, ptr noundef %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %14, i64 noundef 0, i64 noundef 3, ptr noundef %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 3, ptr noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 3, ptr noundef %41, i1 noundef zeroext true)
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %42, i1 noundef zeroext true)
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %23, i64 noundef 0, i64 noundef 3, ptr noundef %43, i1 noundef zeroext true)
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %24, i64 noundef 0, i64 noundef 3, ptr noundef %44, i1 noundef zeroext true)
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %25, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %45, i1 noundef zeroext true)
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %26, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %46, i1 noundef zeroext true)
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %27, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %47, i1 noundef zeroext true)
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %28, i64 noundef 0, i64 noundef 3, ptr noundef %48, i1 noundef zeroext true)
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %29, i64 noundef 0, i64 noundef 3, ptr noundef %49, i1 noundef zeroext true)
  store double 1.000000e+00, ptr %16, align 8, !tbaa !9
  store double 0x3FBC71C71C71C71C, ptr %17, align 8, !tbaa !9
  store double 1.000000e+00, ptr %18, align 8, !tbaa !9
  store double 1.000000e+01, ptr %19, align 8, !tbaa !9
  store i64 5, ptr %31, align 8, !tbaa !11
  store i64 100, ptr %10, align 8, !tbaa !11
  %50 = load i64, ptr %10, align 8, !tbaa !11
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %28, i64 noundef %50, ptr noundef %51)
  %52 = load i64, ptr %10, align 8, !tbaa !11
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %29, i64 noundef %52, ptr noundef %53)
  store i64 0, ptr %32, align 8, !tbaa !11
  br label %54

54:                                               ; preds = %73, %1
  %55 = load i64, ptr %32, align 8, !tbaa !11
  %56 = load i64, ptr %10, align 8, !tbaa !11
  %57 = sub nsw i64 %56, 1
  %58 = icmp sle i64 %55, %57
  br i1 %58, label %59, label %76

59:                                               ; preds = %54
  %60 = load i64, ptr %32, align 8, !tbaa !11
  %61 = sitofp i64 %60 to double
  %62 = load i64, ptr %10, align 8, !tbaa !11
  %63 = sitofp i64 %62 to double
  %64 = fdiv double %61, %63
  %65 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %66 = load ptr, ptr %65, align 8, !tbaa !13
  %67 = load i64, ptr %32, align 8, !tbaa !11
  %68 = getelementptr inbounds double, ptr %66, i64 %67
  store double %64, ptr %68, align 8, !tbaa !9
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %29, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !13
  %71 = load i64, ptr %32, align 8, !tbaa !11
  %72 = getelementptr inbounds double, ptr %70, i64 %71
  store double 0.000000e+00, ptr %72, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %59
  %74 = load i64, ptr %32, align 8, !tbaa !11
  %75 = add nsw i64 %74, 1
  store i64 %75, ptr %32, align 8, !tbaa !11
  br label %54, !llvm.loop !14

76:                                               ; preds = %54
  store double 1.000000e+00, ptr %12, align 8, !tbaa !9
  store i64 0, ptr %30, align 8, !tbaa !11
  br label %77

77:                                               ; preds = %575, %76
  %78 = load i64, ptr %30, align 8, !tbaa !11
  %79 = load i64, ptr %31, align 8, !tbaa !11
  %80 = sub nsw i64 %79, 1
  %81 = icmp sle i64 %78, %80
  br i1 %81, label %82, label %578

82:                                               ; preds = %77
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %83)
  %85 = add nsw i64 %84, 2
  store i64 %85, ptr %7, align 8, !tbaa !11
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %86)
  %88 = add nsw i64 %87, 1
  store i64 %88, ptr %8, align 8, !tbaa !11
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %89)
  %91 = add nsw i64 %90, 1
  store i64 %91, ptr %9, align 8, !tbaa !11
  %92 = load i64, ptr %7, align 8, !tbaa !11
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %23, i64 noundef %92, ptr noundef %93)
  %94 = load i64, ptr %8, align 8, !tbaa !11
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %24, i64 noundef %94, ptr noundef %95)
  %96 = load i64, ptr %8, align 8, !tbaa !11
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %96, ptr noundef %97)
  %98 = load i64, ptr %8, align 8, !tbaa !11
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %98, ptr noundef %99)
  %100 = load i64, ptr %8, align 8, !tbaa !11
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %14, i64 noundef %100, ptr noundef %101)
  %102 = load i64, ptr %10, align 8, !tbaa !11
  %103 = load i64, ptr %8, align 8, !tbaa !11
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %25, i64 noundef %102, i64 noundef %103, ptr noundef %104)
  %105 = load i64, ptr %10, align 8, !tbaa !11
  %106 = load i64, ptr %8, align 8, !tbaa !11
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %26, i64 noundef %105, i64 noundef %106, ptr noundef %107)
  store i64 0, ptr %32, align 8, !tbaa !11
  br label %108

108:                                              ; preds = %146, %82
  %109 = load i64, ptr %32, align 8, !tbaa !11
  %110 = load i64, ptr %8, align 8, !tbaa !11
  %111 = sub nsw i64 %110, 1
  %112 = icmp sle i64 %109, %111
  br i1 %112, label %113, label %149

113:                                              ; preds = %108
  %114 = load double, ptr %16, align 8, !tbaa !9
  %115 = load double, ptr %16, align 8, !tbaa !9
  %116 = fmul double 1.000000e-02, %115
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %117)
  %119 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %118, double -1.000000e+00)
  %120 = call double @llvm.fmuladd.f64(double %116, double %119, double %114)
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %122 = load ptr, ptr %121, align 8, !tbaa !13
  %123 = load i64, ptr %32, align 8, !tbaa !11
  %124 = getelementptr inbounds double, ptr %122, i64 %123
  store double %120, ptr %124, align 8, !tbaa !9
  %125 = load double, ptr %17, align 8, !tbaa !9
  %126 = load double, ptr %17, align 8, !tbaa !9
  %127 = fmul double 1.000000e-02, %126
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %128)
  %130 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %129, double -1.000000e+00)
  %131 = call double @llvm.fmuladd.f64(double %127, double %130, double %125)
  %132 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !13
  %134 = load i64, ptr %32, align 8, !tbaa !11
  %135 = getelementptr inbounds double, ptr %133, i64 %134
  store double %131, ptr %135, align 8, !tbaa !9
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !13
  %138 = load i64, ptr %32, align 8, !tbaa !11
  %139 = getelementptr inbounds double, ptr %137, i64 %138
  %140 = load double, ptr %139, align 8, !tbaa !9
  %141 = fmul double 3.500000e-01, %140
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %143 = load ptr, ptr %142, align 8, !tbaa !13
  %144 = load i64, ptr %32, align 8, !tbaa !11
  %145 = getelementptr inbounds double, ptr %143, i64 %144
  store double %141, ptr %145, align 8, !tbaa !9
  br label %146

146:                                              ; preds = %113
  %147 = load i64, ptr %32, align 8, !tbaa !11
  %148 = add nsw i64 %147, 1
  store i64 %148, ptr %32, align 8, !tbaa !11
  br label %108, !llvm.loop !16

149:                                              ; preds = %108
  %150 = load i64, ptr %10, align 8, !tbaa !11
  %151 = load i64, ptr %7, align 8, !tbaa !11
  %152 = load i64, ptr %8, align 8, !tbaa !11
  %153 = add nsw i64 %151, %152
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %22, i64 noundef %150, i64 noundef %153, ptr noundef %154)
  store i64 0, ptr %32, align 8, !tbaa !11
  br label %155

155:                                              ; preds = %263, %149
  %156 = load i64, ptr %32, align 8, !tbaa !11
  %157 = load i64, ptr %10, align 8, !tbaa !11
  %158 = sub nsw i64 %157, 1
  %159 = icmp sle i64 %156, %158
  br i1 %159, label %160, label %266

160:                                              ; preds = %155
  store i64 0, ptr %33, align 8, !tbaa !11
  br label %161

161:                                              ; preds = %174, %160
  %162 = load i64, ptr %33, align 8, !tbaa !11
  %163 = load i64, ptr %7, align 8, !tbaa !11
  %164 = sub nsw i64 %163, 1
  %165 = icmp sle i64 %162, %164
  br i1 %165, label %166, label %177

166:                                              ; preds = %161
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %168 = load ptr, ptr %167, align 8, !tbaa !13
  %169 = load i64, ptr %32, align 8, !tbaa !11
  %170 = getelementptr inbounds ptr, ptr %168, i64 %169
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = load i64, ptr %33, align 8, !tbaa !11
  %173 = getelementptr inbounds double, ptr %171, i64 %172
  store double 0.000000e+00, ptr %173, align 8, !tbaa !9
  br label %174

174:                                              ; preds = %166
  %175 = load i64, ptr %33, align 8, !tbaa !11
  %176 = add nsw i64 %175, 1
  store i64 %176, ptr %33, align 8, !tbaa !11
  br label %161, !llvm.loop !17

177:                                              ; preds = %161
  %178 = load i64, ptr %32, align 8, !tbaa !11
  %179 = sitofp i64 %178 to double
  %180 = load i64, ptr %10, align 8, !tbaa !11
  %181 = sitofp i64 %180 to double
  %182 = fdiv double %179, %181
  %183 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %184 = load ptr, ptr %183, align 8, !tbaa !13
  %185 = load i64, ptr %32, align 8, !tbaa !11
  %186 = getelementptr inbounds ptr, ptr %184, i64 %185
  %187 = load ptr, ptr %186, align 8, !tbaa !5
  %188 = getelementptr inbounds double, ptr %187, i64 0
  store double %182, ptr %188, align 8, !tbaa !9
  store i64 0, ptr %33, align 8, !tbaa !11
  br label %189

189:                                              ; preds = %259, %177
  %190 = load i64, ptr %33, align 8, !tbaa !11
  %191 = load i64, ptr %8, align 8, !tbaa !11
  %192 = sub nsw i64 %191, 1
  %193 = icmp sle i64 %190, %192
  br i1 %193, label %194, label %262

194:                                              ; preds = %189
  %195 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %196 = load ptr, ptr %195, align 8, !tbaa !13
  %197 = load i64, ptr %33, align 8, !tbaa !11
  %198 = getelementptr inbounds double, ptr %196, i64 %197
  %199 = load double, ptr %198, align 8, !tbaa !9
  %200 = load double, ptr %18, align 8, !tbaa !9
  %201 = fmul double %200, 2.000000e+00
  %202 = fmul double %201, 0x400921FB54442D18
  %203 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %204 = load ptr, ptr %203, align 8, !tbaa !13
  %205 = load i64, ptr %32, align 8, !tbaa !11
  %206 = getelementptr inbounds ptr, ptr %204, i64 %205
  %207 = load ptr, ptr %206, align 8, !tbaa !5
  %208 = getelementptr inbounds double, ptr %207, i64 0
  %209 = load double, ptr %208, align 8, !tbaa !9
  %210 = fmul double %202, %209
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %210, ptr noundef %211)
  %213 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %214 = load ptr, ptr %213, align 8, !tbaa !13
  %215 = load i64, ptr %33, align 8, !tbaa !11
  %216 = getelementptr inbounds double, ptr %214, i64 %215
  %217 = load double, ptr %216, align 8, !tbaa !9
  %218 = load double, ptr %19, align 8, !tbaa !9
  %219 = fmul double %218, 2.000000e+00
  %220 = fmul double %219, 0x400921FB54442D18
  %221 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %222 = load ptr, ptr %221, align 8, !tbaa !13
  %223 = load i64, ptr %32, align 8, !tbaa !11
  %224 = getelementptr inbounds ptr, ptr %222, i64 %223
  %225 = load ptr, ptr %224, align 8, !tbaa !5
  %226 = getelementptr inbounds double, ptr %225, i64 0
  %227 = load double, ptr %226, align 8, !tbaa !9
  %228 = fmul double %220, %227
  %229 = load ptr, ptr %3, align 8, !tbaa !5
  %230 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %228, ptr noundef %229)
  %231 = fmul double %217, %230
  %232 = call double @llvm.fmuladd.f64(double %199, double %212, double %231)
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %234 = load ptr, ptr %233, align 8, !tbaa !13
  %235 = load i64, ptr %32, align 8, !tbaa !11
  %236 = getelementptr inbounds ptr, ptr %234, i64 %235
  %237 = load ptr, ptr %236, align 8, !tbaa !5
  %238 = load i64, ptr %7, align 8, !tbaa !11
  %239 = load i64, ptr %33, align 8, !tbaa !11
  %240 = add nsw i64 %238, %239
  %241 = getelementptr inbounds double, ptr %237, i64 %240
  store double %232, ptr %241, align 8, !tbaa !9
  %242 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %243 = load ptr, ptr %242, align 8, !tbaa !13
  %244 = load i64, ptr %32, align 8, !tbaa !11
  %245 = getelementptr inbounds ptr, ptr %243, i64 %244
  %246 = load ptr, ptr %245, align 8, !tbaa !5
  %247 = load i64, ptr %7, align 8, !tbaa !11
  %248 = load i64, ptr %33, align 8, !tbaa !11
  %249 = add nsw i64 %247, %248
  %250 = getelementptr inbounds double, ptr %246, i64 %249
  %251 = load double, ptr %250, align 8, !tbaa !9
  %252 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %25, i32 0, i32 6
  %253 = load ptr, ptr %252, align 8, !tbaa !13
  %254 = load i64, ptr %32, align 8, !tbaa !11
  %255 = getelementptr inbounds ptr, ptr %253, i64 %254
  %256 = load ptr, ptr %255, align 8, !tbaa !5
  %257 = load i64, ptr %33, align 8, !tbaa !11
  %258 = getelementptr inbounds double, ptr %256, i64 %257
  store double %251, ptr %258, align 8, !tbaa !9
  br label %259

259:                                              ; preds = %194
  %260 = load i64, ptr %33, align 8, !tbaa !11
  %261 = add nsw i64 %260, 1
  store i64 %261, ptr %33, align 8, !tbaa !11
  br label %189, !llvm.loop !18

262:                                              ; preds = %189
  br label %263

263:                                              ; preds = %262
  %264 = load i64, ptr %32, align 8, !tbaa !11
  %265 = add nsw i64 %264, 1
  store i64 %265, ptr %32, align 8, !tbaa !11
  br label %155, !llvm.loop !19

266:                                              ; preds = %155
  store double 1.000000e+00, ptr %11, align 8, !tbaa !9
  store i64 1, ptr %15, align 8, !tbaa !11
  store i64 1, ptr %13, align 8, !tbaa !11
  br label %267

267:                                              ; preds = %573, %266
  %268 = load double, ptr %11, align 8, !tbaa !9
  %269 = load double, ptr %19, align 8, !tbaa !9
  %270 = fmul double 2.000000e+00, %269
  %271 = fdiv double 1.000000e+00, %270
  %272 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %268, double noundef %271)
  br i1 %272, label %273, label %574

273:                                              ; preds = %267
  %274 = load i64, ptr %7, align 8, !tbaa !11
  %275 = load i64, ptr %8, align 8, !tbaa !11
  %276 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9rbfcreateEllPNS_8rbfmodelEPNS_8ae_stateE(i64 noundef %274, i64 noundef %275, ptr noundef %5, ptr noundef %276)
  %277 = load double, ptr %12, align 8, !tbaa !9
  %278 = load i64, ptr %15, align 8, !tbaa !11
  %279 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20rbfsetalgomultilayerEPNS_8rbfmodelEdldPNS_8ae_stateE(ptr noundef %5, double noundef %277, i64 noundef %278, double noundef 0.000000e+00, ptr noundef %279)
  %280 = load i64, ptr %9, align 8, !tbaa !11
  %281 = icmp eq i64 %280, 1
  br i1 %281, label %282, label %284

282:                                              ; preds = %273
  %283 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13rbfsetlintermEPNS_8rbfmodelEPNS_8ae_stateE(ptr noundef %5, ptr noundef %283)
  br label %284

284:                                              ; preds = %282, %273
  %285 = load i64, ptr %9, align 8, !tbaa !11
  %286 = icmp eq i64 %285, 2
  br i1 %286, label %287, label %289

287:                                              ; preds = %284
  %288 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rbfsetconsttermEPNS_8rbfmodelEPNS_8ae_stateE(ptr noundef %5, ptr noundef %288)
  br label %289

289:                                              ; preds = %287, %284
  %290 = load i64, ptr %9, align 8, !tbaa !11
  %291 = icmp eq i64 %290, 3
  br i1 %291, label %292, label %294

292:                                              ; preds = %289
  %293 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14rbfsetzerotermEPNS_8rbfmodelEPNS_8ae_stateE(ptr noundef %5, ptr noundef %293)
  br label %294

294:                                              ; preds = %292, %289
  %295 = load i64, ptr %10, align 8, !tbaa !11
  %296 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12rbfsetpointsEPNS_8rbfmodelEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %5, ptr noundef %22, i64 noundef %295, ptr noundef %296)
  %297 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13rbfbuildmodelEPNS_8rbfmodelEPNS_9rbfreportEPNS_8ae_stateE(ptr noundef %5, ptr noundef %6, ptr noundef %297)
  %298 = load i64, ptr %8, align 8, !tbaa !11
  %299 = icmp eq i64 %298, 1
  br i1 %299, label %300, label %430

300:                                              ; preds = %294
  store i64 0, ptr %32, align 8, !tbaa !11
  br label %301

301:                                              ; preds = %376, %300
  %302 = load i64, ptr %32, align 8, !tbaa !11
  %303 = load i64, ptr %10, align 8, !tbaa !11
  %304 = sub nsw i64 %303, 1
  %305 = icmp sle i64 %302, %304
  br i1 %305, label %306, label %379

306:                                              ; preds = %301
  store i64 0, ptr %33, align 8, !tbaa !11
  br label %307

307:                                              ; preds = %325, %306
  %308 = load i64, ptr %33, align 8, !tbaa !11
  %309 = load i64, ptr %7, align 8, !tbaa !11
  %310 = sub nsw i64 %309, 1
  %311 = icmp sle i64 %308, %310
  br i1 %311, label %312, label %328

312:                                              ; preds = %307
  %313 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %314 = load ptr, ptr %313, align 8, !tbaa !13
  %315 = load i64, ptr %32, align 8, !tbaa !11
  %316 = getelementptr inbounds ptr, ptr %314, i64 %315
  %317 = load ptr, ptr %316, align 8, !tbaa !5
  %318 = load i64, ptr %33, align 8, !tbaa !11
  %319 = getelementptr inbounds double, ptr %317, i64 %318
  %320 = load double, ptr %319, align 8, !tbaa !9
  %321 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %322 = load ptr, ptr %321, align 8, !tbaa !13
  %323 = load i64, ptr %33, align 8, !tbaa !11
  %324 = getelementptr inbounds double, ptr %322, i64 %323
  store double %320, ptr %324, align 8, !tbaa !9
  br label %325

325:                                              ; preds = %312
  %326 = load i64, ptr %33, align 8, !tbaa !11
  %327 = add nsw i64 %326, 1
  store i64 %327, ptr %33, align 8, !tbaa !11
  br label %307, !llvm.loop !20

328:                                              ; preds = %307
  %329 = load i64, ptr %7, align 8, !tbaa !11
  %330 = icmp eq i64 %329, 2
  br i1 %330, label %331, label %348

331:                                              ; preds = %328
  %332 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %333 = load ptr, ptr %332, align 8, !tbaa !13
  %334 = getelementptr inbounds double, ptr %333, i64 0
  %335 = load double, ptr %334, align 8, !tbaa !9
  %336 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %337 = load ptr, ptr %336, align 8, !tbaa !13
  %338 = getelementptr inbounds double, ptr %337, i64 1
  %339 = load double, ptr %338, align 8, !tbaa !9
  %340 = load ptr, ptr %3, align 8, !tbaa !5
  %341 = call noundef double @_ZN11alglib_impl8rbfcalc2EPNS_8rbfmodelEddPNS_8ae_stateE(ptr noundef %5, double noundef %335, double noundef %339, ptr noundef %340)
  %342 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %26, i32 0, i32 6
  %343 = load ptr, ptr %342, align 8, !tbaa !13
  %344 = load i64, ptr %32, align 8, !tbaa !11
  %345 = getelementptr inbounds ptr, ptr %343, i64 %344
  %346 = load ptr, ptr %345, align 8, !tbaa !5
  %347 = getelementptr inbounds double, ptr %346, i64 0
  store double %341, ptr %347, align 8, !tbaa !9
  br label %375

348:                                              ; preds = %328
  %349 = load i64, ptr %7, align 8, !tbaa !11
  %350 = icmp eq i64 %349, 3
  br i1 %350, label %351, label %372

351:                                              ; preds = %348
  %352 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %353 = load ptr, ptr %352, align 8, !tbaa !13
  %354 = getelementptr inbounds double, ptr %353, i64 0
  %355 = load double, ptr %354, align 8, !tbaa !9
  %356 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %357 = load ptr, ptr %356, align 8, !tbaa !13
  %358 = getelementptr inbounds double, ptr %357, i64 1
  %359 = load double, ptr %358, align 8, !tbaa !9
  %360 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %361 = load ptr, ptr %360, align 8, !tbaa !13
  %362 = getelementptr inbounds double, ptr %361, i64 2
  %363 = load double, ptr %362, align 8, !tbaa !9
  %364 = load ptr, ptr %3, align 8, !tbaa !5
  %365 = call noundef double @_ZN11alglib_impl8rbfcalc3EPNS_8rbfmodelEdddPNS_8ae_stateE(ptr noundef %5, double noundef %355, double noundef %359, double noundef %363, ptr noundef %364)
  %366 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %26, i32 0, i32 6
  %367 = load ptr, ptr %366, align 8, !tbaa !13
  %368 = load i64, ptr %32, align 8, !tbaa !11
  %369 = getelementptr inbounds ptr, ptr %367, i64 %368
  %370 = load ptr, ptr %369, align 8, !tbaa !5
  %371 = getelementptr inbounds double, ptr %370, i64 0
  store double %365, ptr %371, align 8, !tbaa !9
  br label %374

372:                                              ; preds = %348
  %373 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.688, ptr noundef %373)
  br label %374

374:                                              ; preds = %372, %351
  br label %375

375:                                              ; preds = %374, %331
  br label %376

376:                                              ; preds = %375
  %377 = load i64, ptr %32, align 8, !tbaa !11
  %378 = add nsw i64 %377, 1
  store i64 %378, ptr %32, align 8, !tbaa !11
  br label %301, !llvm.loop !21

379:                                              ; preds = %301
  %380 = load i64, ptr %10, align 8, !tbaa !11
  %381 = load i64, ptr %8, align 8, !tbaa !11
  %382 = load i64, ptr %13, align 8, !tbaa !11
  %383 = load ptr, ptr %3, align 8, !tbaa !5
  %384 = call noundef zeroext i1 @_ZL21testrbfunit_searcherrPN11alglib_impl9ae_matrixES1_lllPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %25, ptr noundef %26, i64 noundef %380, i64 noundef %381, i64 noundef %382, ptr noundef %21, ptr noundef %14, ptr noundef %383)
  br i1 %384, label %385, label %389

385:                                              ; preds = %379
  store i8 1, ptr %34, align 1, !tbaa !22
  %386 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %386)
  %387 = load i8, ptr %34, align 1, !tbaa !22, !range !24, !noundef !25
  %388 = trunc i8 %387 to i1
  store i1 %388, ptr %2, align 1
  store i32 1, ptr %35, align 4
  br label %582

389:                                              ; preds = %379
  %390 = load i64, ptr %7, align 8, !tbaa !11
  %391 = icmp eq i64 %390, 2
  br i1 %391, label %392, label %419

392:                                              ; preds = %389
  %393 = load i64, ptr %10, align 8, !tbaa !11
  %394 = load i64, ptr %10, align 8, !tbaa !11
  %395 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12rbfgridcalc2EPNS_8rbfmodelEPNS_9ae_vectorElS3_lPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %5, ptr noundef %28, i64 noundef %393, ptr noundef %29, i64 noundef %394, ptr noundef %27, ptr noundef %395)
  store i64 0, ptr %32, align 8, !tbaa !11
  br label %396

396:                                              ; preds = %415, %392
  %397 = load i64, ptr %32, align 8, !tbaa !11
  %398 = load i64, ptr %10, align 8, !tbaa !11
  %399 = sub nsw i64 %398, 1
  %400 = icmp sle i64 %397, %399
  br i1 %400, label %401, label %418

401:                                              ; preds = %396
  %402 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %27, i32 0, i32 6
  %403 = load ptr, ptr %402, align 8, !tbaa !13
  %404 = load i64, ptr %32, align 8, !tbaa !11
  %405 = getelementptr inbounds ptr, ptr %403, i64 %404
  %406 = load ptr, ptr %405, align 8, !tbaa !5
  %407 = getelementptr inbounds double, ptr %406, i64 0
  %408 = load double, ptr %407, align 8, !tbaa !9
  %409 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %26, i32 0, i32 6
  %410 = load ptr, ptr %409, align 8, !tbaa !13
  %411 = load i64, ptr %32, align 8, !tbaa !11
  %412 = getelementptr inbounds ptr, ptr %410, i64 %411
  %413 = load ptr, ptr %412, align 8, !tbaa !5
  %414 = getelementptr inbounds double, ptr %413, i64 0
  store double %408, ptr %414, align 8, !tbaa !9
  br label %415

415:                                              ; preds = %401
  %416 = load i64, ptr %32, align 8, !tbaa !11
  %417 = add nsw i64 %416, 1
  store i64 %417, ptr %32, align 8, !tbaa !11
  br label %396, !llvm.loop !26

418:                                              ; preds = %396
  br label %419

419:                                              ; preds = %418, %389
  %420 = load i64, ptr %10, align 8, !tbaa !11
  %421 = load i64, ptr %8, align 8, !tbaa !11
  %422 = load i64, ptr %13, align 8, !tbaa !11
  %423 = load ptr, ptr %3, align 8, !tbaa !5
  %424 = call noundef zeroext i1 @_ZL21testrbfunit_searcherrPN11alglib_impl9ae_matrixES1_lllPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %25, ptr noundef %26, i64 noundef %420, i64 noundef %421, i64 noundef %422, ptr noundef %21, ptr noundef %14, ptr noundef %423)
  br i1 %424, label %425, label %429

425:                                              ; preds = %419
  store i8 1, ptr %34, align 1, !tbaa !22
  %426 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %426)
  %427 = load i8, ptr %34, align 1, !tbaa !22, !range !24, !noundef !25
  %428 = trunc i8 %427 to i1
  store i1 %428, ptr %2, align 1
  store i32 1, ptr %35, align 4
  br label %582

429:                                              ; preds = %419
  br label %430

430:                                              ; preds = %429, %294
  store i64 0, ptr %32, align 8, !tbaa !11
  br label %431

431:                                              ; preds = %482, %430
  %432 = load i64, ptr %32, align 8, !tbaa !11
  %433 = load i64, ptr %10, align 8, !tbaa !11
  %434 = sub nsw i64 %433, 1
  %435 = icmp sle i64 %432, %434
  br i1 %435, label %436, label %485

436:                                              ; preds = %431
  store i64 0, ptr %33, align 8, !tbaa !11
  br label %437

437:                                              ; preds = %455, %436
  %438 = load i64, ptr %33, align 8, !tbaa !11
  %439 = load i64, ptr %7, align 8, !tbaa !11
  %440 = sub nsw i64 %439, 1
  %441 = icmp sle i64 %438, %440
  br i1 %441, label %442, label %458

442:                                              ; preds = %437
  %443 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %444 = load ptr, ptr %443, align 8, !tbaa !13
  %445 = load i64, ptr %32, align 8, !tbaa !11
  %446 = getelementptr inbounds ptr, ptr %444, i64 %445
  %447 = load ptr, ptr %446, align 8, !tbaa !5
  %448 = load i64, ptr %33, align 8, !tbaa !11
  %449 = getelementptr inbounds double, ptr %447, i64 %448
  %450 = load double, ptr %449, align 8, !tbaa !9
  %451 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %452 = load ptr, ptr %451, align 8, !tbaa !13
  %453 = load i64, ptr %33, align 8, !tbaa !11
  %454 = getelementptr inbounds double, ptr %452, i64 %453
  store double %450, ptr %454, align 8, !tbaa !9
  br label %455

455:                                              ; preds = %442
  %456 = load i64, ptr %33, align 8, !tbaa !11
  %457 = add nsw i64 %456, 1
  store i64 %457, ptr %33, align 8, !tbaa !11
  br label %437, !llvm.loop !27

458:                                              ; preds = %437
  %459 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rbfcalcEPNS_8rbfmodelEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %5, ptr noundef %23, ptr noundef %24, ptr noundef %459)
  store i64 0, ptr %33, align 8, !tbaa !11
  br label %460

460:                                              ; preds = %478, %458
  %461 = load i64, ptr %33, align 8, !tbaa !11
  %462 = load i64, ptr %8, align 8, !tbaa !11
  %463 = sub nsw i64 %462, 1
  %464 = icmp sle i64 %461, %463
  br i1 %464, label %465, label %481

465:                                              ; preds = %460
  %466 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %467 = load ptr, ptr %466, align 8, !tbaa !13
  %468 = load i64, ptr %33, align 8, !tbaa !11
  %469 = getelementptr inbounds double, ptr %467, i64 %468
  %470 = load double, ptr %469, align 8, !tbaa !9
  %471 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %26, i32 0, i32 6
  %472 = load ptr, ptr %471, align 8, !tbaa !13
  %473 = load i64, ptr %32, align 8, !tbaa !11
  %474 = getelementptr inbounds ptr, ptr %472, i64 %473
  %475 = load ptr, ptr %474, align 8, !tbaa !5
  %476 = load i64, ptr %33, align 8, !tbaa !11
  %477 = getelementptr inbounds double, ptr %475, i64 %476
  store double %470, ptr %477, align 8, !tbaa !9
  br label %478

478:                                              ; preds = %465
  %479 = load i64, ptr %33, align 8, !tbaa !11
  %480 = add nsw i64 %479, 1
  store i64 %480, ptr %33, align 8, !tbaa !11
  br label %460, !llvm.loop !28

481:                                              ; preds = %460
  br label %482

482:                                              ; preds = %481
  %483 = load i64, ptr %32, align 8, !tbaa !11
  %484 = add nsw i64 %483, 1
  store i64 %484, ptr %32, align 8, !tbaa !11
  br label %431, !llvm.loop !29

485:                                              ; preds = %431
  %486 = load i64, ptr %10, align 8, !tbaa !11
  %487 = load i64, ptr %8, align 8, !tbaa !11
  %488 = load i64, ptr %13, align 8, !tbaa !11
  %489 = load ptr, ptr %3, align 8, !tbaa !5
  %490 = call noundef zeroext i1 @_ZL21testrbfunit_searcherrPN11alglib_impl9ae_matrixES1_lllPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %25, ptr noundef %26, i64 noundef %486, i64 noundef %487, i64 noundef %488, ptr noundef %21, ptr noundef %14, ptr noundef %489)
  br i1 %490, label %491, label %495

491:                                              ; preds = %485
  store i8 1, ptr %34, align 1, !tbaa !22
  %492 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %492)
  %493 = load i8, ptr %34, align 1, !tbaa !22, !range !24, !noundef !25
  %494 = trunc i8 %493 to i1
  store i1 %494, ptr %2, align 1
  store i32 1, ptr %35, align 4
  br label %582

495:                                              ; preds = %485
  store i64 0, ptr %32, align 8, !tbaa !11
  br label %496

496:                                              ; preds = %547, %495
  %497 = load i64, ptr %32, align 8, !tbaa !11
  %498 = load i64, ptr %10, align 8, !tbaa !11
  %499 = sub nsw i64 %498, 1
  %500 = icmp sle i64 %497, %499
  br i1 %500, label %501, label %550

501:                                              ; preds = %496
  store i64 0, ptr %33, align 8, !tbaa !11
  br label %502

502:                                              ; preds = %520, %501
  %503 = load i64, ptr %33, align 8, !tbaa !11
  %504 = load i64, ptr %7, align 8, !tbaa !11
  %505 = sub nsw i64 %504, 1
  %506 = icmp sle i64 %503, %505
  br i1 %506, label %507, label %523

507:                                              ; preds = %502
  %508 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %509 = load ptr, ptr %508, align 8, !tbaa !13
  %510 = load i64, ptr %32, align 8, !tbaa !11
  %511 = getelementptr inbounds ptr, ptr %509, i64 %510
  %512 = load ptr, ptr %511, align 8, !tbaa !5
  %513 = load i64, ptr %33, align 8, !tbaa !11
  %514 = getelementptr inbounds double, ptr %512, i64 %513
  %515 = load double, ptr %514, align 8, !tbaa !9
  %516 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %517 = load ptr, ptr %516, align 8, !tbaa !13
  %518 = load i64, ptr %33, align 8, !tbaa !11
  %519 = getelementptr inbounds double, ptr %517, i64 %518
  store double %515, ptr %519, align 8, !tbaa !9
  br label %520

520:                                              ; preds = %507
  %521 = load i64, ptr %33, align 8, !tbaa !11
  %522 = add nsw i64 %521, 1
  store i64 %522, ptr %33, align 8, !tbaa !11
  br label %502, !llvm.loop !30

523:                                              ; preds = %502
  %524 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rbfcalcbufEPNS_8rbfmodelEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %5, ptr noundef %23, ptr noundef %24, ptr noundef %524)
  store i64 0, ptr %33, align 8, !tbaa !11
  br label %525

525:                                              ; preds = %543, %523
  %526 = load i64, ptr %33, align 8, !tbaa !11
  %527 = load i64, ptr %8, align 8, !tbaa !11
  %528 = sub nsw i64 %527, 1
  %529 = icmp sle i64 %526, %528
  br i1 %529, label %530, label %546

530:                                              ; preds = %525
  %531 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 4
  %532 = load ptr, ptr %531, align 8, !tbaa !13
  %533 = load i64, ptr %33, align 8, !tbaa !11
  %534 = getelementptr inbounds double, ptr %532, i64 %533
  %535 = load double, ptr %534, align 8, !tbaa !9
  %536 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %26, i32 0, i32 6
  %537 = load ptr, ptr %536, align 8, !tbaa !13
  %538 = load i64, ptr %32, align 8, !tbaa !11
  %539 = getelementptr inbounds ptr, ptr %537, i64 %538
  %540 = load ptr, ptr %539, align 8, !tbaa !5
  %541 = load i64, ptr %33, align 8, !tbaa !11
  %542 = getelementptr inbounds double, ptr %540, i64 %541
  store double %535, ptr %542, align 8, !tbaa !9
  br label %543

543:                                              ; preds = %530
  %544 = load i64, ptr %33, align 8, !tbaa !11
  %545 = add nsw i64 %544, 1
  store i64 %545, ptr %33, align 8, !tbaa !11
  br label %525, !llvm.loop !31

546:                                              ; preds = %525
  br label %547

547:                                              ; preds = %546
  %548 = load i64, ptr %32, align 8, !tbaa !11
  %549 = add nsw i64 %548, 1
  store i64 %549, ptr %32, align 8, !tbaa !11
  br label %496, !llvm.loop !32

550:                                              ; preds = %496
  %551 = load i64, ptr %10, align 8, !tbaa !11
  %552 = load i64, ptr %8, align 8, !tbaa !11
  %553 = load i64, ptr %13, align 8, !tbaa !11
  %554 = load ptr, ptr %3, align 8, !tbaa !5
  %555 = call noundef zeroext i1 @_ZL21testrbfunit_searcherrPN11alglib_impl9ae_matrixES1_lllPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %25, ptr noundef %26, i64 noundef %551, i64 noundef %552, i64 noundef %553, ptr noundef %21, ptr noundef %14, ptr noundef %554)
  br i1 %555, label %556, label %560

556:                                              ; preds = %550
  store i8 1, ptr %34, align 1, !tbaa !22
  %557 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %557)
  %558 = load i8, ptr %34, align 1, !tbaa !22, !range !24, !noundef !25
  %559 = trunc i8 %558 to i1
  store i1 %559, ptr %2, align 1
  store i32 1, ptr %35, align 4
  br label %582

560:                                              ; preds = %550
  %561 = load double, ptr %11, align 8, !tbaa !9
  %562 = fdiv double %561, 2.000000e+00
  store double %562, ptr %11, align 8, !tbaa !9
  %563 = load i64, ptr %15, align 8, !tbaa !11
  %564 = add nsw i64 %563, 1
  store i64 %564, ptr %15, align 8, !tbaa !11
  %565 = load i64, ptr %13, align 8, !tbaa !11
  %566 = icmp eq i64 %565, 1
  br i1 %566, label %567, label %573

567:                                              ; preds = %560
  %568 = load double, ptr %11, align 8, !tbaa !9
  %569 = load double, ptr %19, align 8, !tbaa !9
  %570 = fdiv double 1.000000e+00, %569
  %571 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %568, double noundef %570)
  br i1 %571, label %572, label %573

572:                                              ; preds = %567
  store i64 2, ptr %13, align 8, !tbaa !11
  br label %573

573:                                              ; preds = %572, %567, %560
  br label %267, !llvm.loop !33

574:                                              ; preds = %267
  br label %575

575:                                              ; preds = %574
  %576 = load i64, ptr %30, align 8, !tbaa !11
  %577 = add nsw i64 %576, 1
  store i64 %577, ptr %30, align 8, !tbaa !11
  br label %77, !llvm.loop !34

578:                                              ; preds = %77
  store i8 0, ptr %34, align 1, !tbaa !22
  %579 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %579)
  %580 = load i8, ptr %34, align 1, !tbaa !22, !range !24, !noundef !25
  %581 = trunc i8 %580 to i1
  store i1 %581, ptr %2, align 1
  store i32 1, ptr %35, align 4
  br label %582

582:                                              ; preds = %578, %556, %491, %425, %385
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 64, 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 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 64, 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 64, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 2832, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  %583 = load i1, ptr %2, align 1
  ret i1 %583
}

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

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl10rbfcalcbufEPNS_8rbfmodelEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, ptr 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = !{!23, !23, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = distinct !{!29, !15}
!30 = distinct !{!30, !15}
!31 = distinct !{!31, !15}
!32 = distinct !{!32, !15}
!33 = distinct !{!33, !15}
!34 = distinct !{!34, !15}


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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::rbfmodel" = type { i64, i64, i64, %"struct.alglib_impl::rbfv1model", %"struct.alglib_impl::rbfv2model", double, double, double, i64, i64, i64, double, double, i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i8, %"struct.alglib_impl::ae_vector", i64, i8 }
%"struct.alglib_impl::rbfv1model" = type { i64, i64, i64, i64, %"struct.alglib_impl::kdtree", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::kdtree" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::kdtreerequestbuffer", i64 }
%"struct.alglib_impl::kdtreerequestbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, double, i8, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double }
%"struct.alglib_impl::rbfv2model" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", double, i64, double, i64, %"struct.alglib_impl::rbfv2calcbuffer" }
%"struct.alglib_impl::rbfv2calcbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }
%"struct.alglib_impl::rbfreport" = type { double, double, i64, i64, i64, i64, i64, i64 }

@.str.688 = external hidden unnamed_addr constant [66 x i8], align 1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z24basicmultilayerrbf1dtestPN11alglib_impl8ae_stateE(ptr noundef %0) local_unnamed_addr #4 {
  %2 = alloca %"struct.alglib_impl::ae_frame", align 8
  %3 = alloca %"struct.alglib_impl::rbfmodel", align 8
  %4 = alloca %"struct.alglib_impl::rbfreport", align 8
  %5 = alloca %"struct.alglib_impl::ae_vector", align 8
  %6 = alloca %"struct.alglib_impl::ae_vector", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %12 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 2832, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %0, ptr noundef nonnull %2)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(2832) %3, i8 0, i64 2832, 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(64) %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %8, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %11, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %12, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %13, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %15, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14_rbfmodel_initEPvPNS_8ae_stateEb(ptr noundef nonnull %3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl15_rbfreport_initEPvPNS_8ae_stateEb(ptr noundef nonnull %4, ptr noundef %0, 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 %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef 100, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef 100, ptr noundef %0)
  %16 = getelementptr inbounds i8, ptr %14, i64 56
  %17 = getelementptr inbounds i8, ptr %15, i64 56
  br label %27

.preheader229:                                    ; preds = %27
  %18 = getelementptr inbounds i8, ptr %6, i64 56
  %19 = getelementptr inbounds i8, ptr %7, i64 56
  %20 = getelementptr inbounds i8, ptr %5, i64 56
  %21 = getelementptr inbounds i8, ptr %8, i64 72
  %22 = getelementptr inbounds i8, ptr %11, i64 72
  %23 = getelementptr inbounds i8, ptr %9, i64 56
  %24 = getelementptr inbounds i8, ptr %12, i64 72
  %25 = getelementptr inbounds i8, ptr %13, i64 72
  %26 = getelementptr inbounds i8, ptr %10, i64 56
  br label %42

27:                                               ; preds = %27, %1
  %.0200234 = phi i64 [ 0, %1 ], [ %41, %27 ]
  %28 = uitofp nneg i64 %.0200234 to double
  %29 = fdiv double %28, 1.000000e+02
  %30 = load ptr, ptr %16, align 8, !tbaa !5
  %31 = getelementptr inbounds double, ptr %30, i64 %.0200234
  store double %29, ptr %31, align 8, !tbaa !8
  %32 = load ptr, ptr %17, align 8, !tbaa !5
  %33 = getelementptr inbounds double, ptr %32, i64 %.0200234
  store double 0.000000e+00, ptr %33, align 8, !tbaa !8
  %34 = or disjoint i64 %.0200234, 1
  %35 = uitofp nneg i64 %34 to double
  %36 = fdiv double %35, 1.000000e+02
  %37 = load ptr, ptr %16, align 8, !tbaa !5
  %38 = getelementptr inbounds double, ptr %37, i64 %34
  store double %36, ptr %38, align 8, !tbaa !8
  %39 = load ptr, ptr %17, align 8, !tbaa !5
  %40 = getelementptr inbounds double, ptr %39, i64 %34
  store double 0.000000e+00, ptr %40, align 8, !tbaa !8
  %41 = add nuw nsw i64 %.0200234, 2
  %exitcond.not.1 = icmp eq i64 %41, 100
  br i1 %exitcond.not.1, label %.preheader229, label %27, !llvm.loop !10

42:                                               ; preds = %.preheader229, %._crit_edge277
  %43 = phi i1 [ true, %.preheader229 ], [ %326, %._crit_edge277 ]
  %.0208278 = phi i64 [ 0, %.preheader229 ], [ %325, %._crit_edge277 ]
  %44 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %0)
  %45 = add i64 %44, 2
  %46 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %0)
  %47 = add i64 %46, 1
  %48 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %45, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %47, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %47, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %47, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %47, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef 100, i64 noundef %47, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef 100, i64 noundef %47, ptr noundef %0)
  %.not235 = icmp slt i64 %46, 0
  br i1 %.not235, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %42, %.lr.ph
  %.1201236 = phi i64 [ %65, %.lr.ph ], [ 0, %42 ]
  %49 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %50 = call double @llvm.fmuladd.f64(double %49, double 2.000000e+00, double -1.000000e+00)
  %51 = call double @llvm.fmuladd.f64(double %50, double 1.000000e-02, double 1.000000e+00)
  %52 = load ptr, ptr %18, align 8, !tbaa !5
  %53 = getelementptr inbounds double, ptr %52, i64 %.1201236
  store double %51, ptr %53, align 8, !tbaa !8
  %54 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %55 = call double @llvm.fmuladd.f64(double %54, double 2.000000e+00, double -1.000000e+00)
  %56 = call double @llvm.fmuladd.f64(double %55, double 0x3F523456789ABCDF, double 0x3FBC71C71C71C71C)
  %57 = load ptr, ptr %19, align 8, !tbaa !5
  %58 = getelementptr inbounds double, ptr %57, i64 %.1201236
  store double %56, ptr %58, align 8, !tbaa !8
  %59 = load ptr, ptr %19, align 8, !tbaa !5
  %60 = getelementptr inbounds double, ptr %59, i64 %.1201236
  %61 = load double, ptr %60, align 8, !tbaa !8
  %62 = fmul double %61, 3.500000e-01
  %63 = load ptr, ptr %20, align 8, !tbaa !5
  %64 = getelementptr inbounds double, ptr %63, i64 %.1201236
  store double %62, ptr %64, align 8, !tbaa !8
  %65 = add nuw i64 %.1201236, 1
  %exitcond284.not = icmp eq i64 %.1201236, %46
  br i1 %exitcond284.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph, %42
  %66 = add nsw i64 %47, %45
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef 100, i64 noundef %66, ptr noundef %0)
  %.not221237 = icmp slt i64 %44, -1
  %67 = add i64 %44, 1
  %xtraiter = and i64 %45, 3
  %68 = icmp ult i64 %67, 3
  %unroll_iter = and i64 %45, -4
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader227

.preheader228:                                    ; preds = %._crit_edge245
  %69 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef 1.000000e+00, double noundef 5.000000e-02)
  br i1 %69, label %.lr.ph276, label %._crit_edge277

.lr.ph276:                                        ; preds = %.preheader228
  %70 = icmp eq i64 %46, 0
  %71 = icmp eq i64 %44, 0
  %72 = icmp eq i64 %45, 3
  %73 = add i64 %46, 1
  %xtraiter311 = and i64 %44, 1
  %74 = icmp eq i64 %67, 0
  %unroll_iter314 = and i64 %45, -2
  %lcmp.mod313.not = icmp eq i64 %xtraiter311, 0
  %xtraiter316 = and i64 %44, 1
  %75 = icmp eq i64 %67, 0
  %unroll_iter319 = and i64 %45, -2
  %lcmp.mod318.not = icmp eq i64 %xtraiter316, 0
  %76 = icmp eq i64 %46, 0
  %unroll_iter324 = and i64 %73, -2
  %77 = and i64 %46, 1
  %lcmp.mod323.not.not = icmp eq i64 %77, 0
  %xtraiter326 = and i64 %44, 1
  %78 = icmp eq i64 %67, 0
  %unroll_iter329 = and i64 %45, -2
  %lcmp.mod328.not = icmp eq i64 %xtraiter326, 0
  %79 = icmp eq i64 %46, 0
  %unroll_iter334 = and i64 %73, -2
  %80 = and i64 %46, 1
  %lcmp.mod333.not.not = icmp eq i64 %80, 0
  br label %147

.preheader227:                                    ; preds = %._crit_edge, %._crit_edge245
  %.2202246 = phi i64 [ 0, %._crit_edge ], [ %146, %._crit_edge245 ]
  br i1 %.not221237, label %._crit_edge240, label %.lr.ph239.preheader

.lr.ph239.preheader:                              ; preds = %.preheader227
  br i1 %68, label %._crit_edge240.loopexit.unr-lcssa, label %.lr.ph239

.lr.ph239:                                        ; preds = %.lr.ph239.preheader, %.lr.ph239
  %.0238 = phi i64 [ %100, %.lr.ph239 ], [ 0, %.lr.ph239.preheader ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph239 ], [ 0, %.lr.ph239.preheader ]
  %81 = load ptr, ptr %21, align 8, !tbaa !5
  %82 = getelementptr inbounds ptr, ptr %81, i64 %.2202246
  %83 = load ptr, ptr %82, align 8, !tbaa !13
  %84 = getelementptr inbounds double, ptr %83, i64 %.0238
  store double 0.000000e+00, ptr %84, align 8, !tbaa !8
  %85 = or disjoint i64 %.0238, 1
  %86 = load ptr, ptr %21, align 8, !tbaa !5
  %87 = getelementptr inbounds ptr, ptr %86, i64 %.2202246
  %88 = load ptr, ptr %87, align 8, !tbaa !13
  %89 = getelementptr inbounds double, ptr %88, i64 %85
  store double 0.000000e+00, ptr %89, align 8, !tbaa !8
  %90 = or disjoint i64 %.0238, 2
  %91 = load ptr, ptr %21, align 8, !tbaa !5
  %92 = getelementptr inbounds ptr, ptr %91, i64 %.2202246
  %93 = load ptr, ptr %92, align 8, !tbaa !13
  %94 = getelementptr inbounds double, ptr %93, i64 %90
  store double 0.000000e+00, ptr %94, align 8, !tbaa !8
  %95 = or disjoint i64 %.0238, 3
  %96 = load ptr, ptr %21, align 8, !tbaa !5
  %97 = getelementptr inbounds ptr, ptr %96, i64 %.2202246
  %98 = load ptr, ptr %97, align 8, !tbaa !13
  %99 = getelementptr inbounds double, ptr %98, i64 %95
  store double 0.000000e+00, ptr %99, align 8, !tbaa !8
  %100 = add nuw i64 %.0238, 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 %._crit_edge240.loopexit.unr-lcssa, label %.lr.ph239, !llvm.loop !15

._crit_edge240.loopexit.unr-lcssa:                ; preds = %.lr.ph239, %.lr.ph239.preheader
  %.0238.unr = phi i64 [ 0, %.lr.ph239.preheader ], [ %100, %.lr.ph239 ]
  br i1 %lcmp.mod.not, label %._crit_edge240, label %.lr.ph239.epil

.lr.ph239.epil:                                   ; preds = %._crit_edge240.loopexit.unr-lcssa, %.lr.ph239.epil
  %.0238.epil = phi i64 [ %105, %.lr.ph239.epil ], [ %.0238.unr, %._crit_edge240.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph239.epil ], [ 0, %._crit_edge240.loopexit.unr-lcssa ]
  %101 = load ptr, ptr %21, align 8, !tbaa !5
  %102 = getelementptr inbounds ptr, ptr %101, i64 %.2202246
  %103 = load ptr, ptr %102, align 8, !tbaa !13
  %104 = getelementptr inbounds double, ptr %103, i64 %.0238.epil
  store double 0.000000e+00, ptr %104, align 8, !tbaa !8
  %105 = add nuw i64 %.0238.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 %._crit_edge240, label %.lr.ph239.epil, !llvm.loop !16

._crit_edge240:                                   ; preds = %._crit_edge240.loopexit.unr-lcssa, %.lr.ph239.epil, %.preheader227
  %106 = uitofp nneg i64 %.2202246 to double
  %107 = fdiv double %106, 1.000000e+02
  %108 = load ptr, ptr %21, align 8, !tbaa !5
  %109 = getelementptr inbounds ptr, ptr %108, i64 %.2202246
  %110 = load ptr, ptr %109, align 8, !tbaa !13
  store double %107, ptr %110, align 8, !tbaa !8
  br i1 %.not235, label %._crit_edge245, label %.lr.ph244

.lr.ph244:                                        ; preds = %._crit_edge240, %.lr.ph244
  %.1242 = phi i64 [ %145, %.lr.ph244 ], [ 0, %._crit_edge240 ]
  %111 = load ptr, ptr %18, align 8, !tbaa !5
  %112 = getelementptr inbounds double, ptr %111, i64 %.1242
  %113 = load double, ptr %112, align 8, !tbaa !8
  %114 = load ptr, ptr %21, align 8, !tbaa !5
  %115 = getelementptr inbounds ptr, ptr %114, i64 %.2202246
  %116 = load ptr, ptr %115, align 8, !tbaa !13
  %117 = load double, ptr %116, align 8, !tbaa !8
  %118 = fmul double %117, 0x401921FB54442D18
  %119 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %118, ptr noundef %0)
  %120 = load ptr, ptr %19, align 8, !tbaa !5
  %121 = getelementptr inbounds double, ptr %120, i64 %.1242
  %122 = load double, ptr %121, align 8, !tbaa !8
  %123 = load ptr, ptr %21, align 8, !tbaa !5
  %124 = getelementptr inbounds ptr, ptr %123, i64 %.2202246
  %125 = load ptr, ptr %124, align 8, !tbaa !13
  %126 = load double, ptr %125, align 8, !tbaa !8
  %127 = fmul double %126, 0x404F6A7A2955385E
  %128 = call noundef double @_ZN11alglib_impl6ae_cosEdPNS_8ae_stateE(double noundef %127, ptr noundef %0)
  %129 = fmul double %122, %128
  %130 = call double @llvm.fmuladd.f64(double %113, double %119, double %129)
  %131 = load ptr, ptr %21, align 8, !tbaa !5
  %132 = getelementptr inbounds ptr, ptr %131, i64 %.2202246
  %133 = load ptr, ptr %132, align 8, !tbaa !13
  %134 = add nsw i64 %.1242, %45
  %135 = getelementptr inbounds double, ptr %133, i64 %134
  store double %130, ptr %135, align 8, !tbaa !8
  %136 = load ptr, ptr %21, align 8, !tbaa !5
  %137 = getelementptr inbounds ptr, ptr %136, i64 %.2202246
  %138 = load ptr, ptr %137, align 8, !tbaa !13
  %139 = getelementptr inbounds double, ptr %138, i64 %134
  %140 = load double, ptr %139, align 8, !tbaa !8
  %141 = load ptr, ptr %22, align 8, !tbaa !5
  %142 = getelementptr inbounds ptr, ptr %141, i64 %.2202246
  %143 = load ptr, ptr %142, align 8, !tbaa !13
  %144 = getelementptr inbounds double, ptr %143, i64 %.1242
  store double %140, ptr %144, align 8, !tbaa !8
  %145 = add nuw i64 %.1242, 1
  %exitcond286.not = icmp eq i64 %.1242, %46
  br i1 %exitcond286.not, label %._crit_edge245, label %.lr.ph244, !llvm.loop !18

._crit_edge245:                                   ; preds = %.lr.ph244, %._crit_edge240
  %146 = add nuw nsw i64 %.2202246, 1
  %exitcond287.not = icmp eq i64 %146, 100
  br i1 %exitcond287.not, label %.preheader228, label %.preheader227, !llvm.loop !19

147:                                              ; preds = %.lr.ph276, %323
  %.0209275 = phi double [ 1.000000e+00, %.lr.ph276 ], [ %318, %323 ]
  %.0210274 = phi i64 [ 1, %.lr.ph276 ], [ %.1211, %323 ]
  %.0212273 = phi i64 [ 1, %.lr.ph276 ], [ %319, %323 ]
  call void @_ZN11alglib_impl9rbfcreateEllPNS_8rbfmodelEPNS_8ae_stateE(i64 noundef %45, i64 noundef %47, ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl20rbfsetalgomultilayerEPNS_8rbfmodelEdldPNS_8ae_stateE(ptr noundef nonnull %3, double noundef 1.000000e+00, i64 noundef %.0212273, double noundef 0.000000e+00, ptr noundef %0)
  switch i64 %48, label %150 [
    i64 0, label %.thread
    i64 1, label %148
    i64 2, label %149
  ]

.thread:                                          ; preds = %147
  call void @_ZN11alglib_impl13rbfsetlintermEPNS_8rbfmodelEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  br label %150

148:                                              ; preds = %147
  call void @_ZN11alglib_impl15rbfsetconsttermEPNS_8rbfmodelEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  br label %150

149:                                              ; preds = %147
  call void @_ZN11alglib_impl14rbfsetzerotermEPNS_8rbfmodelEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  br label %150

150:                                              ; preds = %147, %.thread, %148, %149
  call void @_ZN11alglib_impl12rbfsetpointsEPNS_8rbfmodelEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %8, i64 noundef 100, ptr noundef %0)
  call void @_ZN11alglib_impl13rbfbuildmodelEPNS_8rbfmodelEPNS_9rbfreportEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef %0)
  br i1 %70, label %.preheader224, label %.preheader223.preheader

.preheader224:                                    ; preds = %150, %195
  %.3203251 = phi i64 [ %196, %195 ], [ 0, %150 ]
  br i1 %.not221237, label %.thread298, label %.lr.ph249.preheader

.lr.ph249.preheader:                              ; preds = %.preheader224
  br i1 %74, label %._crit_edge250.unr-lcssa, label %.lr.ph249

.lr.ph249:                                        ; preds = %.lr.ph249.preheader, %.lr.ph249
  %.2248 = phi i64 [ %166, %.lr.ph249 ], [ 0, %.lr.ph249.preheader ]
  %niter315 = phi i64 [ %niter315.next.1, %.lr.ph249 ], [ 0, %.lr.ph249.preheader ]
  %151 = load ptr, ptr %21, align 8, !tbaa !5
  %152 = getelementptr inbounds ptr, ptr %151, i64 %.3203251
  %153 = load ptr, ptr %152, align 8, !tbaa !13
  %154 = getelementptr inbounds double, ptr %153, i64 %.2248
  %155 = load double, ptr %154, align 8, !tbaa !8
  %156 = load ptr, ptr %23, align 8, !tbaa !5
  %157 = getelementptr inbounds double, ptr %156, i64 %.2248
  store double %155, ptr %157, align 8, !tbaa !8
  %158 = or disjoint i64 %.2248, 1
  %159 = load ptr, ptr %21, align 8, !tbaa !5
  %160 = getelementptr inbounds ptr, ptr %159, i64 %.3203251
  %161 = load ptr, ptr %160, align 8, !tbaa !13
  %162 = getelementptr inbounds double, ptr %161, i64 %158
  %163 = load double, ptr %162, align 8, !tbaa !8
  %164 = load ptr, ptr %23, align 8, !tbaa !5
  %165 = getelementptr inbounds double, ptr %164, i64 %158
  store double %163, ptr %165, align 8, !tbaa !8
  %166 = add nuw i64 %.2248, 2
  %niter315.next.1 = add i64 %niter315, 2
  %niter315.ncmp.1 = icmp eq i64 %niter315.next.1, %unroll_iter314
  br i1 %niter315.ncmp.1, label %._crit_edge250.unr-lcssa, label %.lr.ph249, !llvm.loop !20

._crit_edge250.unr-lcssa:                         ; preds = %.lr.ph249, %.lr.ph249.preheader
  %.2248.unr = phi i64 [ 0, %.lr.ph249.preheader ], [ %166, %.lr.ph249 ]
  br i1 %lcmp.mod313.not, label %._crit_edge250, label %.lr.ph249.epil

.lr.ph249.epil:                                   ; preds = %._crit_edge250.unr-lcssa
  %167 = load ptr, ptr %21, align 8, !tbaa !5
  %168 = getelementptr inbounds ptr, ptr %167, i64 %.3203251
  %169 = load ptr, ptr %168, align 8, !tbaa !13
  %170 = getelementptr inbounds double, ptr %169, i64 %.2248.unr
  %171 = load double, ptr %170, align 8, !tbaa !8
  %172 = load ptr, ptr %23, align 8, !tbaa !5
  %173 = getelementptr inbounds double, ptr %172, i64 %.2248.unr
  store double %171, ptr %173, align 8, !tbaa !8
  br label %._crit_edge250

._crit_edge250:                                   ; preds = %._crit_edge250.unr-lcssa, %.lr.ph249.epil
  br i1 %71, label %174, label %183

174:                                              ; preds = %._crit_edge250
  %175 = load ptr, ptr %23, align 8, !tbaa !5
  %176 = load double, ptr %175, align 8, !tbaa !8
  %177 = getelementptr inbounds i8, ptr %175, i64 8
  %178 = load double, ptr %177, align 8, !tbaa !8
  %179 = call noundef double @_ZN11alglib_impl8rbfcalc2EPNS_8rbfmodelEddPNS_8ae_stateE(ptr noundef nonnull %3, double noundef %176, double noundef %178, ptr noundef %0)
  %180 = load ptr, ptr %24, align 8, !tbaa !5
  %181 = getelementptr inbounds ptr, ptr %180, i64 %.3203251
  %182 = load ptr, ptr %181, align 8, !tbaa !13
  store double %179, ptr %182, align 8, !tbaa !8
  br label %195

183:                                              ; preds = %._crit_edge250
  br i1 %72, label %184, label %.thread298

184:                                              ; preds = %183
  %185 = load ptr, ptr %23, align 8, !tbaa !5
  %186 = load double, ptr %185, align 8, !tbaa !8
  %187 = getelementptr inbounds i8, ptr %185, i64 8
  %188 = load double, ptr %187, align 8, !tbaa !8
  %189 = getelementptr inbounds i8, ptr %185, i64 16
  %190 = load double, ptr %189, align 8, !tbaa !8
  %191 = call noundef double @_ZN11alglib_impl8rbfcalc3EPNS_8rbfmodelEdddPNS_8ae_stateE(ptr noundef nonnull %3, double noundef %186, double noundef %188, double noundef %190, ptr noundef %0)
  %192 = load ptr, ptr %24, align 8, !tbaa !5
  %193 = getelementptr inbounds ptr, ptr %192, i64 %.3203251
  %194 = load ptr, ptr %193, align 8, !tbaa !13
  store double %191, ptr %194, align 8, !tbaa !8
  br label %195

.thread298:                                       ; preds = %.preheader224, %183
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.688, ptr noundef %0)
  br label %195

195:                                              ; preds = %174, %.thread298, %184
  %196 = add nuw nsw i64 %.3203251, 1
  %exitcond289.not = icmp eq i64 %196, 100
  br i1 %exitcond289.not, label %197, label %.preheader224, !llvm.loop !21

197:                                              ; preds = %195
  %198 = call noundef zeroext i1 @_ZL21testrbfunit_searcherrPN11alglib_impl9ae_matrixES1_lllPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef nonnull %12, i64 noundef 100, i64 noundef 1, i64 noundef %.0210274, ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef %0)
  br i1 %198, label %.loopexit304, label %199

199:                                              ; preds = %197
  br i1 %71, label %200, label %.loopexit

200:                                              ; preds = %199
  call void @_ZN11alglib_impl12rbfgridcalc2EPNS_8rbfmodelEPNS_9ae_vectorElS3_lPNS_9ae_matrixEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %14, i64 noundef 100, ptr noundef nonnull %15, i64 noundef 100, ptr noundef nonnull %13, ptr noundef %0)
  br label %201

201:                                              ; preds = %201, %200
  %.4204252 = phi i64 [ 0, %200 ], [ %217, %201 ]
  %202 = load ptr, ptr %25, align 8, !tbaa !5
  %203 = getelementptr inbounds ptr, ptr %202, i64 %.4204252
  %204 = load ptr, ptr %203, align 8, !tbaa !13
  %205 = load double, ptr %204, align 8, !tbaa !8
  %206 = load ptr, ptr %24, align 8, !tbaa !5
  %207 = getelementptr inbounds ptr, ptr %206, i64 %.4204252
  %208 = load ptr, ptr %207, align 8, !tbaa !13
  store double %205, ptr %208, align 8, !tbaa !8
  %209 = or disjoint i64 %.4204252, 1
  %210 = load ptr, ptr %25, align 8, !tbaa !5
  %211 = getelementptr inbounds ptr, ptr %210, i64 %209
  %212 = load ptr, ptr %211, align 8, !tbaa !13
  %213 = load double, ptr %212, align 8, !tbaa !8
  %214 = load ptr, ptr %24, align 8, !tbaa !5
  %215 = getelementptr inbounds ptr, ptr %214, i64 %209
  %216 = load ptr, ptr %215, align 8, !tbaa !13
  store double %213, ptr %216, align 8, !tbaa !8
  %217 = add nuw nsw i64 %.4204252, 2
  %exitcond290.not.1 = icmp eq i64 %217, 100
  br i1 %exitcond290.not.1, label %.loopexit, label %201, !llvm.loop !22

.loopexit:                                        ; preds = %201, %199
  %218 = call noundef zeroext i1 @_ZL21testrbfunit_searcherrPN11alglib_impl9ae_matrixES1_lllPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef nonnull %12, i64 noundef 100, i64 noundef 1, i64 noundef %.0210274, ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef %0)
  br i1 %218, label %.loopexit304, label %.preheader223.preheader

.preheader223.preheader:                          ; preds = %.loopexit, %150
  br label %.preheader223

.preheader223:                                    ; preds = %.preheader223.preheader, %._crit_edge261
  %.5205262 = phi i64 [ %265, %._crit_edge261 ], [ 0, %.preheader223.preheader ]
  br i1 %.not221237, label %._crit_edge256, label %.lr.ph255.preheader

.lr.ph255.preheader:                              ; preds = %.preheader223
  br i1 %75, label %._crit_edge256.loopexit.unr-lcssa, label %.lr.ph255

.lr.ph255:                                        ; preds = %.lr.ph255.preheader, %.lr.ph255
  %.3254 = phi i64 [ %234, %.lr.ph255 ], [ 0, %.lr.ph255.preheader ]
  %niter320 = phi i64 [ %niter320.next.1, %.lr.ph255 ], [ 0, %.lr.ph255.preheader ]
  %219 = load ptr, ptr %21, align 8, !tbaa !5
  %220 = getelementptr inbounds ptr, ptr %219, i64 %.5205262
  %221 = load ptr, ptr %220, align 8, !tbaa !13
  %222 = getelementptr inbounds double, ptr %221, i64 %.3254
  %223 = load double, ptr %222, align 8, !tbaa !8
  %224 = load ptr, ptr %23, align 8, !tbaa !5
  %225 = getelementptr inbounds double, ptr %224, i64 %.3254
  store double %223, ptr %225, align 8, !tbaa !8
  %226 = or disjoint i64 %.3254, 1
  %227 = load ptr, ptr %21, align 8, !tbaa !5
  %228 = getelementptr inbounds ptr, ptr %227, i64 %.5205262
  %229 = load ptr, ptr %228, align 8, !tbaa !13
  %230 = getelementptr inbounds double, ptr %229, i64 %226
  %231 = load double, ptr %230, align 8, !tbaa !8
  %232 = load ptr, ptr %23, align 8, !tbaa !5
  %233 = getelementptr inbounds double, ptr %232, i64 %226
  store double %231, ptr %233, align 8, !tbaa !8
  %234 = add nuw i64 %.3254, 2
  %niter320.next.1 = add i64 %niter320, 2
  %niter320.ncmp.1 = icmp eq i64 %niter320.next.1, %unroll_iter319
  br i1 %niter320.ncmp.1, label %._crit_edge256.loopexit.unr-lcssa, label %.lr.ph255, !llvm.loop !23

._crit_edge256.loopexit.unr-lcssa:                ; preds = %.lr.ph255, %.lr.ph255.preheader
  %.3254.unr = phi i64 [ 0, %.lr.ph255.preheader ], [ %234, %.lr.ph255 ]
  br i1 %lcmp.mod318.not, label %._crit_edge256, label %.lr.ph255.epil

.lr.ph255.epil:                                   ; preds = %._crit_edge256.loopexit.unr-lcssa
  %235 = load ptr, ptr %21, align 8, !tbaa !5
  %236 = getelementptr inbounds ptr, ptr %235, i64 %.5205262
  %237 = load ptr, ptr %236, align 8, !tbaa !13
  %238 = getelementptr inbounds double, ptr %237, i64 %.3254.unr
  %239 = load double, ptr %238, align 8, !tbaa !8
  %240 = load ptr, ptr %23, align 8, !tbaa !5
  %241 = getelementptr inbounds double, ptr %240, i64 %.3254.unr
  store double %239, ptr %241, align 8, !tbaa !8
  br label %._crit_edge256

._crit_edge256:                                   ; preds = %.lr.ph255.epil, %._crit_edge256.loopexit.unr-lcssa, %.preheader223
  call void @_ZN11alglib_impl7rbfcalcEPNS_8rbfmodelEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %0)
  br i1 %.not235, label %._crit_edge261, label %.lr.ph260.preheader

.lr.ph260.preheader:                              ; preds = %._crit_edge256
  br i1 %76, label %._crit_edge261.loopexit.unr-lcssa, label %.lr.ph260

.lr.ph260:                                        ; preds = %.lr.ph260.preheader, %.lr.ph260
  %.4258 = phi i64 [ %257, %.lr.ph260 ], [ 0, %.lr.ph260.preheader ]
  %niter325 = phi i64 [ %niter325.next.1, %.lr.ph260 ], [ 0, %.lr.ph260.preheader ]
  %242 = load ptr, ptr %26, align 8, !tbaa !5
  %243 = getelementptr inbounds double, ptr %242, i64 %.4258
  %244 = load double, ptr %243, align 8, !tbaa !8
  %245 = load ptr, ptr %24, align 8, !tbaa !5
  %246 = getelementptr inbounds ptr, ptr %245, i64 %.5205262
  %247 = load ptr, ptr %246, align 8, !tbaa !13
  %248 = getelementptr inbounds double, ptr %247, i64 %.4258
  store double %244, ptr %248, align 8, !tbaa !8
  %249 = or disjoint i64 %.4258, 1
  %250 = load ptr, ptr %26, align 8, !tbaa !5
  %251 = getelementptr inbounds double, ptr %250, i64 %249
  %252 = load double, ptr %251, align 8, !tbaa !8
  %253 = load ptr, ptr %24, align 8, !tbaa !5
  %254 = getelementptr inbounds ptr, ptr %253, i64 %.5205262
  %255 = load ptr, ptr %254, align 8, !tbaa !13
  %256 = getelementptr inbounds double, ptr %255, i64 %249
  store double %252, ptr %256, align 8, !tbaa !8
  %257 = add nuw i64 %.4258, 2
  %niter325.next.1 = add i64 %niter325, 2
  %niter325.ncmp.1 = icmp eq i64 %niter325.next.1, %unroll_iter324
  br i1 %niter325.ncmp.1, label %._crit_edge261.loopexit.unr-lcssa, label %.lr.ph260, !llvm.loop !24

._crit_edge261.loopexit.unr-lcssa:                ; preds = %.lr.ph260, %.lr.ph260.preheader
  %.4258.unr = phi i64 [ 0, %.lr.ph260.preheader ], [ %257, %.lr.ph260 ]
  br i1 %lcmp.mod323.not.not, label %.lr.ph260.epil, label %._crit_edge261

.lr.ph260.epil:                                   ; preds = %._crit_edge261.loopexit.unr-lcssa
  %258 = load ptr, ptr %26, align 8, !tbaa !5
  %259 = getelementptr inbounds double, ptr %258, i64 %.4258.unr
  %260 = load double, ptr %259, align 8, !tbaa !8
  %261 = load ptr, ptr %24, align 8, !tbaa !5
  %262 = getelementptr inbounds ptr, ptr %261, i64 %.5205262
  %263 = load ptr, ptr %262, align 8, !tbaa !13
  %264 = getelementptr inbounds double, ptr %263, i64 %.4258.unr
  store double %260, ptr %264, align 8, !tbaa !8
  br label %._crit_edge261

._crit_edge261:                                   ; preds = %.lr.ph260.epil, %._crit_edge261.loopexit.unr-lcssa, %._crit_edge256
  %265 = add nuw nsw i64 %.5205262, 1
  %exitcond293.not = icmp eq i64 %265, 100
  br i1 %exitcond293.not, label %266, label %.preheader223, !llvm.loop !25

266:                                              ; preds = %._crit_edge261
  %267 = call noundef zeroext i1 @_ZL21testrbfunit_searcherrPN11alglib_impl9ae_matrixES1_lllPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef nonnull %12, i64 noundef 100, i64 noundef %47, i64 noundef %.0210274, ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef %0)
  br i1 %267, label %.loopexit304, label %.preheader

.preheader:                                       ; preds = %266, %._crit_edge271
  %.6206272 = phi i64 [ %314, %._crit_edge271 ], [ 0, %266 ]
  br i1 %.not221237, label %._crit_edge266, label %.lr.ph265.preheader

.lr.ph265.preheader:                              ; preds = %.preheader
  br i1 %78, label %._crit_edge266.loopexit.unr-lcssa, label %.lr.ph265

.lr.ph265:                                        ; preds = %.lr.ph265.preheader, %.lr.ph265
  %.5264 = phi i64 [ %283, %.lr.ph265 ], [ 0, %.lr.ph265.preheader ]
  %niter330 = phi i64 [ %niter330.next.1, %.lr.ph265 ], [ 0, %.lr.ph265.preheader ]
  %268 = load ptr, ptr %21, align 8, !tbaa !5
  %269 = getelementptr inbounds ptr, ptr %268, i64 %.6206272
  %270 = load ptr, ptr %269, align 8, !tbaa !13
  %271 = getelementptr inbounds double, ptr %270, i64 %.5264
  %272 = load double, ptr %271, align 8, !tbaa !8
  %273 = load ptr, ptr %23, align 8, !tbaa !5
  %274 = getelementptr inbounds double, ptr %273, i64 %.5264
  store double %272, ptr %274, align 8, !tbaa !8
  %275 = or disjoint i64 %.5264, 1
  %276 = load ptr, ptr %21, align 8, !tbaa !5
  %277 = getelementptr inbounds ptr, ptr %276, i64 %.6206272
  %278 = load ptr, ptr %277, align 8, !tbaa !13
  %279 = getelementptr inbounds double, ptr %278, i64 %275
  %280 = load double, ptr %279, align 8, !tbaa !8
  %281 = load ptr, ptr %23, align 8, !tbaa !5
  %282 = getelementptr inbounds double, ptr %281, i64 %275
  store double %280, ptr %282, align 8, !tbaa !8
  %283 = add nuw i64 %.5264, 2
  %niter330.next.1 = add i64 %niter330, 2
  %niter330.ncmp.1 = icmp eq i64 %niter330.next.1, %unroll_iter329
  br i1 %niter330.ncmp.1, label %._crit_edge266.loopexit.unr-lcssa, label %.lr.ph265, !llvm.loop !26

._crit_edge266.loopexit.unr-lcssa:                ; preds = %.lr.ph265, %.lr.ph265.preheader
  %.5264.unr = phi i64 [ 0, %.lr.ph265.preheader ], [ %283, %.lr.ph265 ]
  br i1 %lcmp.mod328.not, label %._crit_edge266, label %.lr.ph265.epil

.lr.ph265.epil:                                   ; preds = %._crit_edge266.loopexit.unr-lcssa
  %284 = load ptr, ptr %21, align 8, !tbaa !5
  %285 = getelementptr inbounds ptr, ptr %284, i64 %.6206272
  %286 = load ptr, ptr %285, align 8, !tbaa !13
  %287 = getelementptr inbounds double, ptr %286, i64 %.5264.unr
  %288 = load double, ptr %287, align 8, !tbaa !8
  %289 = load ptr, ptr %23, align 8, !tbaa !5
  %290 = getelementptr inbounds double, ptr %289, i64 %.5264.unr
  store double %288, ptr %290, align 8, !tbaa !8
  br label %._crit_edge266

._crit_edge266:                                   ; preds = %.lr.ph265.epil, %._crit_edge266.loopexit.unr-lcssa, %.preheader
  call void @_ZN11alglib_impl10rbfcalcbufEPNS_8rbfmodelEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %0)
  br i1 %.not235, label %._crit_edge271, label %.lr.ph270.preheader

.lr.ph270.preheader:                              ; preds = %._crit_edge266
  br i1 %79, label %._crit_edge271.loopexit.unr-lcssa, label %.lr.ph270

.lr.ph270:                                        ; preds = %.lr.ph270.preheader, %.lr.ph270
  %.6268 = phi i64 [ %306, %.lr.ph270 ], [ 0, %.lr.ph270.preheader ]
  %niter335 = phi i64 [ %niter335.next.1, %.lr.ph270 ], [ 0, %.lr.ph270.preheader ]
  %291 = load ptr, ptr %26, align 8, !tbaa !5
  %292 = getelementptr inbounds double, ptr %291, i64 %.6268
  %293 = load double, ptr %292, align 8, !tbaa !8
  %294 = load ptr, ptr %24, align 8, !tbaa !5
  %295 = getelementptr inbounds ptr, ptr %294, i64 %.6206272
  %296 = load ptr, ptr %295, align 8, !tbaa !13
  %297 = getelementptr inbounds double, ptr %296, i64 %.6268
  store double %293, ptr %297, align 8, !tbaa !8
  %298 = or disjoint i64 %.6268, 1
  %299 = load ptr, ptr %26, align 8, !tbaa !5
  %300 = getelementptr inbounds double, ptr %299, i64 %298
  %301 = load double, ptr %300, align 8, !tbaa !8
  %302 = load ptr, ptr %24, align 8, !tbaa !5
  %303 = getelementptr inbounds ptr, ptr %302, i64 %.6206272
  %304 = load ptr, ptr %303, align 8, !tbaa !13
  %305 = getelementptr inbounds double, ptr %304, i64 %298
  store double %301, ptr %305, align 8, !tbaa !8
  %306 = add nuw i64 %.6268, 2
  %niter335.next.1 = add i64 %niter335, 2
  %niter335.ncmp.1 = icmp eq i64 %niter335.next.1, %unroll_iter334
  br i1 %niter335.ncmp.1, label %._crit_edge271.loopexit.unr-lcssa, label %.lr.ph270, !llvm.loop !27

._crit_edge271.loopexit.unr-lcssa:                ; preds = %.lr.ph270, %.lr.ph270.preheader
  %.6268.unr = phi i64 [ 0, %.lr.ph270.preheader ], [ %306, %.lr.ph270 ]
  br i1 %lcmp.mod333.not.not, label %.lr.ph270.epil, label %._crit_edge271

.lr.ph270.epil:                                   ; preds = %._crit_edge271.loopexit.unr-lcssa
  %307 = load ptr, ptr %26, align 8, !tbaa !5
  %308 = getelementptr inbounds double, ptr %307, i64 %.6268.unr
  %309 = load double, ptr %308, align 8, !tbaa !8
  %310 = load ptr, ptr %24, align 8, !tbaa !5
  %311 = getelementptr inbounds ptr, ptr %310, i64 %.6206272
  %312 = load ptr, ptr %311, align 8, !tbaa !13
  %313 = getelementptr inbounds double, ptr %312, i64 %.6268.unr
  store double %309, ptr %313, align 8, !tbaa !8
  br label %._crit_edge271

._crit_edge271:                                   ; preds = %.lr.ph270.epil, %._crit_edge271.loopexit.unr-lcssa, %._crit_edge266
  %314 = add nuw nsw i64 %.6206272, 1
  %exitcond296.not = icmp eq i64 %314, 100
  br i1 %exitcond296.not, label %315, label %.preheader, !llvm.loop !28

315:                                              ; preds = %._crit_edge271
  %316 = call noundef zeroext i1 @_ZL21testrbfunit_searcherrPN11alglib_impl9ae_matrixES1_lllPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef nonnull %12, i64 noundef 100, i64 noundef %47, i64 noundef %.0210274, ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef %0)
  br i1 %316, label %.loopexit304, label %317

317:                                              ; preds = %315
  %318 = fmul double %.0209275, 5.000000e-01
  %319 = add nuw nsw i64 %.0212273, 1
  %320 = icmp eq i64 %.0210274, 1
  br i1 %320, label %321, label %323

321:                                              ; preds = %317
  %322 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %318, double noundef 1.000000e-01)
  %spec.select = select i1 %322, i64 2, i64 1
  br label %323

323:                                              ; preds = %321, %317
  %.1211 = phi i64 [ 2, %317 ], [ %spec.select, %321 ]
  %324 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %318, double noundef 5.000000e-02)
  br i1 %324, label %147, label %._crit_edge277, !llvm.loop !29

._crit_edge277:                                   ; preds = %323, %.preheader228
  %325 = add nuw nsw i64 %.0208278, 1
  %326 = icmp ult i64 %.0208278, 4
  %exitcond297.not = icmp eq i64 %325, 5
  br i1 %exitcond297.not, label %.loopexit304, label %42, !llvm.loop !30

.loopexit304:                                     ; preds = %._crit_edge277, %315, %266, %.loopexit, %197
  %327 = phi i1 [ %43, %197 ], [ %43, %.loopexit ], [ %43, %266 ], [ %43, %315 ], [ %326, %._crit_edge277 ]
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 2832, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  ret i1 %327
}

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

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl10rbfcalcbufEPNS_8rbfmodelEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, ptr 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 = { mustprogress 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 = !{!"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, !17}
!17 = !{!"llvm.loop.unroll.disable"}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}
!23 = distinct !{!23, !11}
!24 = distinct !{!24, !11}
!25 = distinct !{!25, !11}
!26 = distinct !{!26, !11}
!27 = distinct !{!27, !11}
!28 = distinct !{!28, !11}
!29 = distinct !{!29, !11}
!30 = distinct !{!30, !11}


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