; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (dataanalysis)

; 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::dfworkbuf" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", 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_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::dfvotebuf" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::dftreebuf" = type { %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::decisionforestbuilder" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, double, double, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i64, i64, %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_shared_pool" }
%"struct.alglib_impl::ae_shared_pool" = type { %"struct.alglib_impl::ae_lock", ptr, ptr, ptr, ptr, i64, ptr, ptr, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }
%"struct.alglib_impl::decisionforest" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::decisionforestbuffer" }
%"struct.alglib_impl::decisionforestbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.444 = external hidden unnamed_addr constant [37 x i8], align 1
@_ZN11alglib_implL21dforest_leafnodewidthE = external hidden global i64, align 8
@.str.445 = external hidden unnamed_addr constant [51 x i8], align 1
@_ZN11alglib_implL22dforest_innernodewidthE = external hidden global i64, align 8

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl14dfcreatebufferEPNS_14decisionforestEPNS_20decisionforestbufferEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl26dfbuilderbuildrandomforestEPNS_21decisionforestbuilderElPNS_14decisionforestEPNS_8dfreportEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.alglib_impl::ae_frame", align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca %"struct.alglib_impl::dfworkbuf", align 8
  %19 = alloca %"struct.alglib_impl::dfvotebuf", align 8
  %20 = alloca %"struct.alglib_impl::dftreebuf", align 8
  %21 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 1176, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 256, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #5
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %22, ptr noundef %11)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 1176, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 256, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl21_decisionforest_clearEPv(ptr noundef %23)
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl15_dfreport_clearEPv(ptr noundef %24)
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl15_dfworkbuf_initEPvPNS_8ae_stateEb(ptr noundef %18, ptr noundef %25, i1 noundef zeroext true)
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl15_dfvotebuf_initEPvPNS_8ae_stateEb(ptr noundef %19, ptr noundef %26, i1 noundef zeroext true)
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl15_dftreebuf_initEPvPNS_8ae_stateEb(ptr noundef %20, ptr noundef %27, i1 noundef zeroext true)
  %28 = load i64, ptr %7, align 8, !tbaa !9
  %29 = icmp sge i64 %28, 1
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef @.str.444, ptr noundef %30)
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL19dforest_cleanreportEPNS_8dfreportEPNS_8ae_stateE(ptr noundef %31, ptr noundef %32)
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %33, i32 0, i32 1
  %35 = load i64, ptr %34, align 8, !tbaa !11
  store i64 %35, ptr %15, align 8, !tbaa !9
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %36, i32 0, i32 2
  %38 = load i64, ptr %37, align 8, !tbaa !19
  store i64 %38, ptr %13, align 8, !tbaa !9
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %39, i32 0, i32 3
  %41 = load i64, ptr %40, align 8, !tbaa !20
  store i64 %41, ptr %14, align 8, !tbaa !9
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %42, i32 0, i32 17
  store i64 0, ptr %43, align 8, !tbaa !21
  %44 = load i64, ptr %7, align 8, !tbaa !9
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %45, i32 0, i32 18
  store i64 %44, ptr %46, align 8, !tbaa !22
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %47, i32 0, i32 0
  %49 = load i64, ptr %48, align 8, !tbaa !23
  %50 = icmp eq i64 %49, -1
  br i1 %50, label %51, label %99

51:                                               ; preds = %5
  %52 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !9
  %53 = icmp eq i64 %52, 2
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %53, ptr noundef @.str.445, ptr noundef %54)
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %55, i32 0, i32 2
  %57 = load i64, ptr %56, align 8, !tbaa !19
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %58, i32 0, i32 0
  store i64 %57, ptr %59, align 8, !tbaa !24
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %60, i32 0, i32 3
  %62 = load i64, ptr %61, align 8, !tbaa !20
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %63, i32 0, i32 1
  store i64 %62, ptr %64, align 8, !tbaa !27
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %65, i32 0, i32 2
  store i64 1, ptr %66, align 8, !tbaa !28
  %67 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !9
  %68 = add nsw i64 1, %67
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %69, i32 0, i32 3
  store i64 %68, ptr %70, align 8, !tbaa !29
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %71, i32 0, i32 4
  %73 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !9
  %74 = add nsw i64 1, %73
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %72, i64 noundef %74, ptr noundef %75)
  %76 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !9
  %77 = add nsw i64 1, %76
  %78 = sitofp i64 %77 to double
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %79, i32 0, i32 4
  %81 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %80, i32 0, i32 4
  %82 = load ptr, ptr %81, align 8, !tbaa !30
  %83 = getelementptr inbounds double, ptr %82, i64 0
  store double %78, ptr %83, align 8, !tbaa !31
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %84, i32 0, i32 4
  %86 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %85, i32 0, i32 4
  %87 = load ptr, ptr %86, align 8, !tbaa !30
  %88 = getelementptr inbounds double, ptr %87, i64 1
  store double -1.000000e+00, ptr %88, align 8, !tbaa !31
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %89, i32 0, i32 4
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %90, i32 0, i32 4
  %92 = load ptr, ptr %91, align 8, !tbaa !30
  %93 = getelementptr inbounds double, ptr %92, i64 2
  store double 0.000000e+00, ptr %93, align 8, !tbaa !31
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %95, i32 0, i32 5
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14dfcreatebufferEPNS_14decisionforestEPNS_20decisionforestbufferEPNS_8ae_stateE(ptr noundef %94, ptr noundef %96, ptr noundef %97)
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %98)
  store i32 1, ptr %21, align 4
  br label %278

99:                                               ; preds = %5
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL35dforest_analyzeandpreprocessdatasetEPNS_21decisionforestbuilderEPNS_8ae_stateE(ptr noundef %100, ptr noundef %101)
  %102 = load i64, ptr %15, align 8, !tbaa !9
  %103 = sitofp i64 %102 to double
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %104, i32 0, i32 8
  %106 = load double, ptr %105, align 8, !tbaa !32
  %107 = fmul double %103, %106
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %107, ptr noundef %108)
  store i64 %109, ptr %16, align 8, !tbaa !9
  %110 = load i64, ptr %16, align 8, !tbaa !9
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %110, i64 noundef 1, ptr noundef %111)
  store i64 %112, ptr %16, align 8, !tbaa !9
  %113 = load i64, ptr %16, align 8, !tbaa !9
  %114 = load i64, ptr %15, align 8, !tbaa !9
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %113, i64 noundef %114, ptr noundef %115)
  store i64 %116, ptr %16, align 8, !tbaa !9
  %117 = load i64, ptr @_ZN11alglib_implL22dforest_innernodewidthE, align 8, !tbaa !9
  %118 = load i64, ptr %16, align 8, !tbaa !9
  %119 = sub nsw i64 %118, 1
  %120 = mul nsw i64 %117, %119
  %121 = add nsw i64 1, %120
  %122 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !9
  %123 = load i64, ptr %16, align 8, !tbaa !9
  %124 = mul nsw i64 %122, %123
  %125 = add nsw i64 %121, %124
  store i64 %125, ptr %17, align 8, !tbaa !9
  %126 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 1
  %127 = load i64, ptr %13, align 8, !tbaa !9
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %126, i64 noundef %127, ptr noundef %128)
  %129 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 3
  %130 = load i64, ptr %16, align 8, !tbaa !9
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %129, i64 noundef %130, ptr noundef %131)
  %132 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 7
  %133 = load i64, ptr %15, align 8, !tbaa !9
  %134 = load i64, ptr %16, align 8, !tbaa !9
  %135 = sub nsw i64 %133, %134
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %132, i64 noundef %135, ptr noundef %136)
  %137 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 12
  %138 = load i64, ptr %15, align 8, !tbaa !9
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %137, i64 noundef %138, ptr noundef %139)
  %140 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 13
  %141 = load i64, ptr %15, align 8, !tbaa !9
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %140, i64 noundef %141, ptr noundef %142)
  %143 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 14
  %144 = load i64, ptr %15, align 8, !tbaa !9
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %143, i64 noundef %144, ptr noundef %145)
  %146 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 15
  %147 = load i64, ptr %15, align 8, !tbaa !9
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %146, i64 noundef %147, ptr noundef %148)
  %149 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 16
  %150 = load i64, ptr %15, align 8, !tbaa !9
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %149, i64 noundef %150, ptr noundef %151)
  %152 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 17
  %153 = load i64, ptr %15, align 8, !tbaa !9
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %152, i64 noundef %153, ptr noundef %154)
  %155 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 6
  %156 = load i64, ptr %15, align 8, !tbaa !9
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %155, i64 noundef %156, ptr noundef %157)
  %158 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 5
  %159 = load i64, ptr %15, align 8, !tbaa !9
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %158, i64 noundef %159, ptr noundef %160)
  %161 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 10
  %162 = load i64, ptr %15, align 8, !tbaa !9
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %161, i64 noundef %162, ptr noundef %163)
  %164 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 11
  %165 = load i64, ptr %15, align 8, !tbaa !9
  %166 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %164, i64 noundef %165, ptr noundef %166)
  %167 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 0
  %168 = load i64, ptr %14, align 8, !tbaa !9
  %169 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %167, i64 noundef %168, ptr noundef %169)
  %170 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 18
  %171 = load i64, ptr %14, align 8, !tbaa !9
  %172 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %170, i64 noundef %171, ptr noundef %172)
  %173 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 19
  %174 = load i64, ptr %14, align 8, !tbaa !9
  %175 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %173, i64 noundef %174, ptr noundef %175)
  %176 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 20
  %177 = load i64, ptr %14, align 8, !tbaa !9
  %178 = mul nsw i64 2, %177
  %179 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %176, i64 noundef %178, ptr noundef %179)
  %180 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 9
  %181 = load i64, ptr %17, align 8, !tbaa !9
  %182 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %180, i64 noundef %181, ptr noundef %182)
  %183 = load i64, ptr %16, align 8, !tbaa !9
  %184 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 4
  store i64 %183, ptr %184, align 8, !tbaa !33
  %185 = load i64, ptr %15, align 8, !tbaa !9
  %186 = load i64, ptr %16, align 8, !tbaa !9
  %187 = sub nsw i64 %185, %186
  %188 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %18, i32 0, i32 8
  store i64 %187, ptr %188, align 8, !tbaa !35
  %189 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %19, i32 0, i32 0
  %190 = load i64, ptr %15, align 8, !tbaa !9
  %191 = load i64, ptr %14, align 8, !tbaa !9
  %192 = mul nsw i64 %190, %191
  %193 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %189, i64 noundef %192, ptr noundef %193)
  %194 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %19, i32 0, i32 1
  %195 = load i64, ptr %15, align 8, !tbaa !9
  %196 = load i64, ptr %14, align 8, !tbaa !9
  %197 = mul nsw i64 %195, %196
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %194, i64 noundef %197, ptr noundef %198)
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %199

199:                                              ; preds = %217, %99
  %200 = load i64, ptr %12, align 8, !tbaa !9
  %201 = load i64, ptr %15, align 8, !tbaa !9
  %202 = load i64, ptr %14, align 8, !tbaa !9
  %203 = mul nsw i64 %201, %202
  %204 = sub nsw i64 %203, 1
  %205 = icmp sle i64 %200, %204
  br i1 %205, label %206, label %220

206:                                              ; preds = %199
  %207 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %19, i32 0, i32 0
  %208 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %207, i32 0, i32 4
  %209 = load ptr, ptr %208, align 8, !tbaa !30
  %210 = load i64, ptr %12, align 8, !tbaa !9
  %211 = getelementptr inbounds double, ptr %209, i64 %210
  store double 0.000000e+00, ptr %211, align 8, !tbaa !31
  %212 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %19, i32 0, i32 1
  %213 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %212, i32 0, i32 4
  %214 = load ptr, ptr %213, align 8, !tbaa !30
  %215 = load i64, ptr %12, align 8, !tbaa !9
  %216 = getelementptr inbounds double, ptr %214, i64 %215
  store double 0.000000e+00, ptr %216, align 8, !tbaa !31
  br label %217

217:                                              ; preds = %206
  %218 = load i64, ptr %12, align 8, !tbaa !9
  %219 = add nsw i64 %218, 1
  store i64 %219, ptr %12, align 8, !tbaa !9
  br label %199, !llvm.loop !36

220:                                              ; preds = %199
  %221 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %19, i32 0, i32 2
  %222 = load i64, ptr %15, align 8, !tbaa !9
  %223 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %221, i64 noundef %222, ptr noundef %223)
  %224 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %19, i32 0, i32 3
  %225 = load i64, ptr %15, align 8, !tbaa !9
  %226 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %224, i64 noundef %225, ptr noundef %226)
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %227

227:                                              ; preds = %243, %220
  %228 = load i64, ptr %12, align 8, !tbaa !9
  %229 = load i64, ptr %15, align 8, !tbaa !9
  %230 = sub nsw i64 %229, 1
  %231 = icmp sle i64 %228, %230
  br i1 %231, label %232, label %246

232:                                              ; preds = %227
  %233 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %19, i32 0, i32 2
  %234 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %233, i32 0, i32 4
  %235 = load ptr, ptr %234, align 8, !tbaa !30
  %236 = load i64, ptr %12, align 8, !tbaa !9
  %237 = getelementptr inbounds i64, ptr %235, i64 %236
  store i64 0, ptr %237, align 8, !tbaa !9
  %238 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %19, i32 0, i32 3
  %239 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %238, i32 0, i32 4
  %240 = load ptr, ptr %239, align 8, !tbaa !30
  %241 = load i64, ptr %12, align 8, !tbaa !9
  %242 = getelementptr inbounds i64, ptr %240, i64 %241
  store i64 0, ptr %242, align 8, !tbaa !9
  br label %243

243:                                              ; preds = %232
  %244 = load i64, ptr %12, align 8, !tbaa !9
  %245 = add nsw i64 %244, 1
  store i64 %245, ptr %12, align 8, !tbaa !9
  br label %227, !llvm.loop !38

246:                                              ; preds = %227
  %247 = load ptr, ptr %6, align 8, !tbaa !5
  %248 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %247, i32 0, i32 19
  %249 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef %248, ptr noundef %18, i64 noundef 1176, ptr noundef @_ZN11alglib_impl15_dfworkbuf_initEPvPNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl20_dfworkbuf_init_copyEPvS0_PNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl18_dfworkbuf_destroyEPv, ptr noundef %249)
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %250, i32 0, i32 20
  %252 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef %251, ptr noundef %19, i64 noundef 256, ptr noundef @_ZN11alglib_impl15_dfvotebuf_initEPvPNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl20_dfvotebuf_init_copyEPvS0_PNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl18_dfvotebuf_destroyEPv, ptr noundef %252)
  %253 = load ptr, ptr %6, align 8, !tbaa !5
  %254 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %253, i32 0, i32 21
  %255 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef %254, ptr noundef %20, i64 noundef 64, ptr noundef @_ZN11alglib_impl15_dftreebuf_initEPvPNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl20_dftreebuf_init_copyEPvS0_PNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl18_dftreebuf_destroyEPv, ptr noundef %255)
  %256 = load ptr, ptr %6, align 8, !tbaa !5
  %257 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %256, i32 0, i32 22
  %258 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef %257, ptr noundef %20, i64 noundef 64, ptr noundef @_ZN11alglib_impl15_dftreebuf_initEPvPNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl20_dftreebuf_init_copyEPvS0_PNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl18_dftreebuf_destroyEPv, ptr noundef %258)
  %259 = load ptr, ptr %6, align 8, !tbaa !5
  %260 = load i64, ptr %7, align 8, !tbaa !9
  %261 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL23dforest_buildrandomtreeEPNS_21decisionforestbuilderEllPNS_8ae_stateE(ptr noundef %259, i64 noundef 0, i64 noundef %260, ptr noundef %261)
  %262 = load ptr, ptr %6, align 8, !tbaa !5
  %263 = load ptr, ptr %8, align 8, !tbaa !5
  %264 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL18dforest_mergetreesEPNS_21decisionforestbuilderEPNS_14decisionforestEPNS_8ae_stateE(ptr noundef %262, ptr noundef %263, ptr noundef %264)
  %265 = load ptr, ptr %6, align 8, !tbaa !5
  %266 = load ptr, ptr %9, align 8, !tbaa !5
  %267 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL28dforest_processvotingresultsEPNS_21decisionforestbuilderEPNS_9dfvotebufEPNS_8dfreportEPNS_8ae_stateE(ptr noundef %265, ptr noundef %19, ptr noundef %266, ptr noundef %267)
  %268 = load ptr, ptr %6, align 8, !tbaa !5
  %269 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %268, i32 0, i32 18
  %270 = load i64, ptr %269, align 8, !tbaa !22
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %271, i32 0, i32 17
  store i64 %270, ptr %272, align 8, !tbaa !21
  %273 = load ptr, ptr %8, align 8, !tbaa !5
  %274 = load ptr, ptr %8, align 8, !tbaa !5
  %275 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %274, i32 0, i32 5
  %276 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14dfcreatebufferEPNS_14decisionforestEPNS_20decisionforestbufferEPNS_8ae_stateE(ptr noundef %273, ptr noundef %275, ptr noundef %276)
  %277 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %277)
  store i32 0, ptr %21, align 4
  br label %278

278:                                              ; preds = %246, %51
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 1176, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  %279 = load i32, ptr %21, align 4
  switch i32 %279, label %281 [
    i32 0, label %280
    i32 1, label %280
  ]

280:                                              ; preds = %278, %278
  ret void

281:                                              ; preds = %278
  unreachable
}

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #2

declare noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #2

declare void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl21_decisionforest_clearEPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15_dfreport_clearEPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15_dfworkbuf_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15_dfvotebuf_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15_dftreebuf_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl20_dfworkbuf_init_copyEPvS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18_dfworkbuf_destroyEPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl20_dfvotebuf_init_copyEPvS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18_dfvotebuf_destroyEPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl20_dftreebuf_init_copyEPvS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18_dftreebuf_destroyEPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL23dforest_buildrandomtreeEPNS_21decisionforestbuilderEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "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 #3 = { 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 #4 = { mustprogress nounwind 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN11alglib_impl21decisionforestbuilderE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !13, i64 96, !13, i64 160, !10, i64 224, !16, i64 232, !16, i64 240, !10, i64 248, !10, i64 256, !13, i64 264, !13, i64 328, !13, i64 392, !16, i64 456, !13, i64 464, !10, i64 528, !10, i64 536, !17, i64 544, !17, i64 688, !17, i64 832, !17, i64 976}
!13 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !14, i64 16, !15, i64 24, !7, i64 56}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !18, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !10, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !15, i64 112}
!18 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !15, i64 8, !14, i64 40}
!19 = !{!12, !10, i64 16}
!20 = !{!12, !10, i64 24}
!21 = !{!12, !10, i64 528}
!22 = !{!12, !10, i64 536}
!23 = !{!12, !10, i64 0}
!24 = !{!25, !10, i64 0}
!25 = !{!"_ZTSN11alglib_impl14decisionforestE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !26, i64 96}
!26 = !{!"_ZTSN11alglib_impl20decisionforestbufferE", !13, i64 0, !13, i64 64}
!27 = !{!25, !10, i64 8}
!28 = !{!25, !10, i64 16}
!29 = !{!25, !10, i64 24}
!30 = !{!7, !7, i64 0}
!31 = !{!16, !16, i64 0}
!32 = !{!12, !16, i64 232}
!33 = !{!34, !10, i64 200}
!34 = !{!"_ZTSN11alglib_impl9dfworkbufE", !13, i64 0, !13, i64 64, !10, i64 128, !13, i64 136, !10, i64 200, !13, i64 208, !13, i64 272, !13, i64 336, !10, i64 400, !13, i64 408, !13, i64 472, !13, i64 536, !13, i64 600, !13, i64 664, !13, i64 728, !13, i64 792, !13, i64 856, !13, i64 920, !13, i64 984, !13, i64 1048, !13, i64 1112}
!35 = !{!34, !10, i64 400}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}


; 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::dfworkbuf" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", 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_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::dfvotebuf" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::dftreebuf" = type { %"struct.alglib_impl::ae_vector" }

@.str.444 = external hidden unnamed_addr constant [37 x i8], align 1
@_ZN11alglib_implL21dforest_leafnodewidthE = external hidden local_unnamed_addr global i64, align 8
@.str.445 = external hidden unnamed_addr constant [51 x i8], align 1
@_ZN11alglib_implL22dforest_innernodewidthE = external hidden local_unnamed_addr global i64, align 8

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl14dfcreatebufferEPNS_14decisionforestEPNS_20decisionforestbufferEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl26dfbuilderbuildrandomforestEPNS_21decisionforestbuilderElPNS_14decisionforestEPNS_8dfreportEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #3 {
  %6 = alloca %"struct.alglib_impl::ae_frame", align 8
  %7 = alloca %"struct.alglib_impl::dfworkbuf", align 8
  %8 = alloca %"struct.alglib_impl::dfvotebuf", align 8
  %9 = alloca %"struct.alglib_impl::dftreebuf", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 1176, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %4, ptr noundef nonnull %6)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1176) %7, i8 0, i64 1176, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(256) %8, i8 0, i64 256, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl21_decisionforest_clearEPv(ptr noundef %2)
  call void @_ZN11alglib_impl15_dfreport_clearEPv(ptr noundef %3)
  call void @_ZN11alglib_impl15_dfworkbuf_initEPvPNS_8ae_stateEb(ptr noundef nonnull %7, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl15_dfvotebuf_initEPvPNS_8ae_stateEb(ptr noundef nonnull %8, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl15_dftreebuf_initEPvPNS_8ae_stateEb(ptr noundef nonnull %9, ptr noundef %4, i1 noundef zeroext true)
  %10 = icmp sgt i64 %1, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.444, ptr noundef %4)
  call void @_ZN11alglib_implL19dforest_cleanreportEPNS_8dfreportEPNS_8ae_stateE(ptr noundef %3, ptr noundef %4)
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = load i64, ptr %13, align 8, !tbaa !17
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  %16 = load i64, ptr %15, align 8, !tbaa !18
  %17 = getelementptr inbounds i8, ptr %0, i64 528
  store i64 0, ptr %17, align 8, !tbaa !19
  %18 = getelementptr inbounds i8, ptr %0, i64 536
  store i64 %1, ptr %18, align 8, !tbaa !20
  %19 = load i64, ptr %0, align 8, !tbaa !21
  %20 = icmp eq i64 %19, -1
  br i1 %20, label %21, label %40

21:                                               ; preds = %5
  %22 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !22
  %23 = icmp eq i64 %22, 2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef nonnull @.str.445, ptr noundef %4)
  %24 = load <2 x i64>, ptr %13, align 8, !tbaa !22
  store <2 x i64> %24, ptr %2, align 8, !tbaa !22
  %25 = getelementptr inbounds i8, ptr %2, i64 16
  store i64 1, ptr %25, align 8, !tbaa !23
  %26 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !22
  %27 = add nsw i64 %26, 1
  %28 = getelementptr inbounds i8, ptr %2, i64 24
  store i64 %27, ptr %28, align 8, !tbaa !26
  %29 = getelementptr inbounds i8, ptr %2, i64 32
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %29, i64 noundef %27, ptr noundef %4)
  %30 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !22
  %31 = add nsw i64 %30, 1
  %32 = sitofp i64 %31 to double
  %33 = getelementptr inbounds i8, ptr %2, i64 88
  %34 = load ptr, ptr %33, align 8, !tbaa !27
  store double %32, ptr %34, align 8, !tbaa !28
  %35 = load ptr, ptr %33, align 8, !tbaa !27
  %36 = getelementptr inbounds i8, ptr %35, i64 8
  store double -1.000000e+00, ptr %36, align 8, !tbaa !28
  %37 = load ptr, ptr %33, align 8, !tbaa !27
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  store double 0.000000e+00, ptr %38, align 8, !tbaa !28
  %39 = getelementptr inbounds i8, ptr %2, i64 96
  call void @_ZN11alglib_impl14dfcreatebufferEPNS_14decisionforestEPNS_20decisionforestbufferEPNS_8ae_stateE(ptr noundef nonnull %2, ptr noundef nonnull %39, ptr noundef %4)
  br label %122

40:                                               ; preds = %5
  call void @_ZN11alglib_implL35dforest_analyzeandpreprocessdatasetEPNS_21decisionforestbuilderEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %4)
  %41 = sitofp i64 %12 to double
  %42 = getelementptr inbounds i8, ptr %0, i64 232
  %43 = load double, ptr %42, align 8, !tbaa !29
  %44 = fmul double %43, %41
  %45 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %44, ptr noundef %4)
  %46 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %45, i64 noundef 1, ptr noundef %4)
  %47 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %46, i64 noundef %12, ptr noundef %4)
  %48 = load i64, ptr @_ZN11alglib_implL22dforest_innernodewidthE, align 8, !tbaa !22
  %49 = add nsw i64 %47, -1
  %50 = mul nsw i64 %48, %49
  %51 = add nsw i64 %50, 1
  %52 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !22
  %53 = mul nsw i64 %52, %47
  %54 = add nsw i64 %51, %53
  %55 = getelementptr inbounds i8, ptr %7, i64 64
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %55, i64 noundef %14, ptr noundef %4)
  %56 = getelementptr inbounds i8, ptr %7, i64 136
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %56, i64 noundef %47, ptr noundef %4)
  %57 = getelementptr inbounds i8, ptr %7, i64 336
  %58 = sub nsw i64 %12, %47
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %57, i64 noundef %58, ptr noundef %4)
  %59 = getelementptr inbounds i8, ptr %7, i64 600
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %59, i64 noundef %12, ptr noundef %4)
  %60 = getelementptr inbounds i8, ptr %7, i64 664
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %60, i64 noundef %12, ptr noundef %4)
  %61 = getelementptr inbounds i8, ptr %7, i64 728
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %61, i64 noundef %12, ptr noundef %4)
  %62 = getelementptr inbounds i8, ptr %7, i64 792
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %62, i64 noundef %12, ptr noundef %4)
  %63 = getelementptr inbounds i8, ptr %7, i64 856
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %63, i64 noundef %12, ptr noundef %4)
  %64 = getelementptr inbounds i8, ptr %7, i64 920
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %64, i64 noundef %12, ptr noundef %4)
  %65 = getelementptr inbounds i8, ptr %7, i64 272
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %65, i64 noundef %12, ptr noundef %4)
  %66 = getelementptr inbounds i8, ptr %7, i64 208
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %66, i64 noundef %12, ptr noundef %4)
  %67 = getelementptr inbounds i8, ptr %7, i64 472
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %67, i64 noundef %12, ptr noundef %4)
  %68 = getelementptr inbounds i8, ptr %7, i64 536
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %68, i64 noundef %12, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %16, ptr noundef %4)
  %69 = getelementptr inbounds i8, ptr %7, i64 984
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %69, i64 noundef %16, ptr noundef %4)
  %70 = getelementptr inbounds i8, ptr %7, i64 1048
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %70, i64 noundef %16, ptr noundef %4)
  %71 = getelementptr inbounds i8, ptr %7, i64 1112
  %72 = shl nsw i64 %16, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %71, i64 noundef %72, ptr noundef %4)
  %73 = getelementptr inbounds i8, ptr %7, i64 408
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %73, i64 noundef %54, ptr noundef %4)
  %74 = getelementptr inbounds i8, ptr %7, i64 200
  store i64 %47, ptr %74, align 8, !tbaa !30
  %75 = getelementptr inbounds i8, ptr %7, i64 400
  store i64 %58, ptr %75, align 8, !tbaa !32
  %76 = mul nsw i64 %16, %12
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %76, ptr noundef %4)
  %77 = getelementptr inbounds i8, ptr %8, i64 64
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %77, i64 noundef %76, ptr noundef %4)
  %.not.not129 = icmp sgt i64 %76, 0
  br i1 %.not.not129, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %40
  %78 = getelementptr inbounds i8, ptr %8, i64 56
  %79 = getelementptr inbounds i8, ptr %8, i64 120
  %xtraiter = and i64 %76, 1
  %80 = icmp eq i64 %76, 1
  br i1 %80, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %76, 9223372036854775806
  br label %81

81:                                               ; preds = %81, %.lr.ph.new
  %.0130 = phi i64 [ 0, %.lr.ph.new ], [ %91, %81 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %81 ]
  %82 = load ptr, ptr %78, align 8, !tbaa !27
  %83 = getelementptr inbounds double, ptr %82, i64 %.0130
  store double 0.000000e+00, ptr %83, align 8, !tbaa !28
  %84 = load ptr, ptr %79, align 8, !tbaa !27
  %85 = getelementptr inbounds double, ptr %84, i64 %.0130
  store double 0.000000e+00, ptr %85, align 8, !tbaa !28
  %86 = or disjoint i64 %.0130, 1
  %87 = load ptr, ptr %78, align 8, !tbaa !27
  %88 = getelementptr inbounds double, ptr %87, i64 %86
  store double 0.000000e+00, ptr %88, align 8, !tbaa !28
  %89 = load ptr, ptr %79, align 8, !tbaa !27
  %90 = getelementptr inbounds double, ptr %89, i64 %86
  store double 0.000000e+00, ptr %90, align 8, !tbaa !28
  %91 = add nuw nsw i64 %.0130, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %81, !llvm.loop !33

._crit_edge.loopexit.unr-lcssa:                   ; preds = %81, %.lr.ph
  %.0130.unr = phi i64 [ 0, %.lr.ph ], [ %91, %81 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %92 = load ptr, ptr %78, align 8, !tbaa !27
  %93 = getelementptr inbounds double, ptr %92, i64 %.0130.unr
  store double 0.000000e+00, ptr %93, align 8, !tbaa !28
  %94 = load ptr, ptr %79, align 8, !tbaa !27
  %95 = getelementptr inbounds double, ptr %94, i64 %.0130.unr
  store double 0.000000e+00, ptr %95, align 8, !tbaa !28
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %40
  %96 = getelementptr inbounds i8, ptr %8, i64 128
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %96, i64 noundef %12, ptr noundef %4)
  %97 = getelementptr inbounds i8, ptr %8, i64 192
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %97, i64 noundef %12, ptr noundef %4)
  %.not.not128131 = icmp sgt i64 %12, 0
  br i1 %.not.not128131, label %.lr.ph134, label %._crit_edge135

.lr.ph134:                                        ; preds = %._crit_edge
  %98 = getelementptr inbounds i8, ptr %8, i64 184
  %99 = getelementptr inbounds i8, ptr %8, i64 248
  %xtraiter138 = and i64 %12, 1
  %100 = icmp eq i64 %12, 1
  br i1 %100, label %._crit_edge135.loopexit.unr-lcssa, label %.lr.ph134.new

.lr.ph134.new:                                    ; preds = %.lr.ph134
  %unroll_iter140 = and i64 %12, 9223372036854775806
  br label %101

101:                                              ; preds = %101, %.lr.ph134.new
  %.1132 = phi i64 [ 0, %.lr.ph134.new ], [ %111, %101 ]
  %niter141 = phi i64 [ 0, %.lr.ph134.new ], [ %niter141.next.1, %101 ]
  %102 = load ptr, ptr %98, align 8, !tbaa !27
  %103 = getelementptr inbounds i64, ptr %102, i64 %.1132
  store i64 0, ptr %103, align 8, !tbaa !22
  %104 = load ptr, ptr %99, align 8, !tbaa !27
  %105 = getelementptr inbounds i64, ptr %104, i64 %.1132
  store i64 0, ptr %105, align 8, !tbaa !22
  %106 = or disjoint i64 %.1132, 1
  %107 = load ptr, ptr %98, align 8, !tbaa !27
  %108 = getelementptr inbounds i64, ptr %107, i64 %106
  store i64 0, ptr %108, align 8, !tbaa !22
  %109 = load ptr, ptr %99, align 8, !tbaa !27
  %110 = getelementptr inbounds i64, ptr %109, i64 %106
  store i64 0, ptr %110, align 8, !tbaa !22
  %111 = add nuw nsw i64 %.1132, 2
  %niter141.next.1 = add i64 %niter141, 2
  %niter141.ncmp.1 = icmp eq i64 %niter141.next.1, %unroll_iter140
  br i1 %niter141.ncmp.1, label %._crit_edge135.loopexit.unr-lcssa, label %101, !llvm.loop !35

._crit_edge135.loopexit.unr-lcssa:                ; preds = %101, %.lr.ph134
  %.1132.unr = phi i64 [ 0, %.lr.ph134 ], [ %111, %101 ]
  %lcmp.mod139.not = icmp eq i64 %xtraiter138, 0
  br i1 %lcmp.mod139.not, label %._crit_edge135, label %._crit_edge135.loopexit.epilog-lcssa

._crit_edge135.loopexit.epilog-lcssa:             ; preds = %._crit_edge135.loopexit.unr-lcssa
  %112 = load ptr, ptr %98, align 8, !tbaa !27
  %113 = getelementptr inbounds i64, ptr %112, i64 %.1132.unr
  store i64 0, ptr %113, align 8, !tbaa !22
  %114 = load ptr, ptr %99, align 8, !tbaa !27
  %115 = getelementptr inbounds i64, ptr %114, i64 %.1132.unr
  store i64 0, ptr %115, align 8, !tbaa !22
  br label %._crit_edge135

._crit_edge135:                                   ; preds = %._crit_edge135.loopexit.epilog-lcssa, %._crit_edge135.loopexit.unr-lcssa, %._crit_edge
  %116 = getelementptr inbounds i8, ptr %0, i64 544
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef nonnull %116, ptr noundef nonnull %7, i64 noundef 1176, ptr noundef nonnull @_ZN11alglib_impl15_dfworkbuf_initEPvPNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl20_dfworkbuf_init_copyEPvS0_PNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl18_dfworkbuf_destroyEPv, ptr noundef %4)
  %117 = getelementptr inbounds i8, ptr %0, i64 688
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef nonnull %117, ptr noundef nonnull %8, i64 noundef 256, ptr noundef nonnull @_ZN11alglib_impl15_dfvotebuf_initEPvPNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl20_dfvotebuf_init_copyEPvS0_PNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl18_dfvotebuf_destroyEPv, ptr noundef %4)
  %118 = getelementptr inbounds i8, ptr %0, i64 832
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef nonnull %118, ptr noundef nonnull %9, i64 noundef 64, ptr noundef nonnull @_ZN11alglib_impl15_dftreebuf_initEPvPNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl20_dftreebuf_init_copyEPvS0_PNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl18_dftreebuf_destroyEPv, ptr noundef %4)
  %119 = getelementptr inbounds i8, ptr %0, i64 976
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef nonnull %119, ptr noundef nonnull %9, i64 noundef 64, ptr noundef nonnull @_ZN11alglib_impl15_dftreebuf_initEPvPNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl20_dftreebuf_init_copyEPvS0_PNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl18_dftreebuf_destroyEPv, ptr noundef %4)
  call void @_ZN11alglib_implL23dforest_buildrandomtreeEPNS_21decisionforestbuilderEllPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef 0, i64 noundef %1, ptr noundef %4)
  call void @_ZN11alglib_implL18dforest_mergetreesEPNS_21decisionforestbuilderEPNS_14decisionforestEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %2, ptr noundef %4)
  call void @_ZN11alglib_implL28dforest_processvotingresultsEPNS_21decisionforestbuilderEPNS_9dfvotebufEPNS_8dfreportEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %8, ptr noundef %3, ptr noundef %4)
  %120 = load i64, ptr %18, align 8, !tbaa !20
  store i64 %120, ptr %17, align 8, !tbaa !19
  %121 = getelementptr inbounds i8, ptr %2, i64 96
  call void @_ZN11alglib_impl14dfcreatebufferEPNS_14decisionforestEPNS_20decisionforestbufferEPNS_8ae_stateE(ptr noundef %2, ptr noundef nonnull %121, ptr noundef %4)
  br label %122

122:                                              ; preds = %._crit_edge135, %21
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %4)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 1176, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  ret void
}

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPvlPFvS2_PNS_8ae_stateEbEPFvS2_S2_S4_bEPFvS2_ES4_(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl21_decisionforest_clearEPv(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15_dfreport_clearEPv(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15_dfworkbuf_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15_dfvotebuf_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15_dftreebuf_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl20_dfworkbuf_init_copyEPvS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18_dfworkbuf_destroyEPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl20_dfvotebuf_init_copyEPvS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18_dfvotebuf_destroyEPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl20_dftreebuf_init_copyEPvS0_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18_dftreebuf_destroyEPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL23dforest_buildrandomtreeEPNS_21decisionforestbuilderEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "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 #3 = { 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 #4 = { mustprogress nounwind 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, !7, i64 8}
!6 = !{!"_ZTSN11alglib_impl21decisionforestbuilderE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 96, !10, i64 160, !7, i64 224, !14, i64 232, !14, i64 240, !7, i64 248, !7, i64 256, !10, i64 264, !10, i64 328, !10, i64 392, !14, i64 456, !10, i64 464, !7, i64 528, !7, i64 536, !15, i64 544, !15, i64 688, !15, i64 832, !15, i64 976}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 56}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"double", !8, i64 0}
!15 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !16, i64 0, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !7, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !12, i64 112}
!16 = !{!"_ZTSN11alglib_impl7ae_lockE", !13, i64 0, !12, i64 8, !11, i64 40}
!17 = !{!6, !7, i64 16}
!18 = !{!6, !7, i64 24}
!19 = !{!6, !7, i64 528}
!20 = !{!6, !7, i64 536}
!21 = !{!6, !7, i64 0}
!22 = !{!7, !7, i64 0}
!23 = !{!24, !7, i64 16}
!24 = !{!"_ZTSN11alglib_impl14decisionforestE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !25, i64 96}
!25 = !{!"_ZTSN11alglib_impl20decisionforestbufferE", !10, i64 0, !10, i64 64}
!26 = !{!24, !7, i64 24}
!27 = !{!8, !8, i64 0}
!28 = !{!14, !14, i64 0}
!29 = !{!6, !14, i64 232}
!30 = !{!31, !7, i64 200}
!31 = !{!"_ZTSN11alglib_impl9dfworkbufE", !10, i64 0, !10, i64 64, !7, i64 128, !10, i64 136, !7, i64 200, !10, i64 208, !10, i64 272, !10, i64 336, !7, i64 400, !10, i64 408, !10, i64 472, !10, i64 536, !10, i64 600, !10, i64 664, !10, i64 728, !10, i64 792, !10, i64 856, !10, i64 920, !10, i64 984, !10, i64 1048, !10, i64 1112}
!32 = !{!31, !7, i64 400}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}


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