; LLVM IR from Dimandragon/non-parametric-dsp :: 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", %"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::ae_vector" }
%"struct.alglib_impl::dftreebuf" = type { %"struct.alglib_impl::ae_vector", i64 }
%"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, 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", i8, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_shared_pool" = type { %"struct.alglib_impl::ae_lock", ptr, ptr, ptr, ptr, i64, 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::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::decisionforest" = type { i64, i8, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::decisionforestbuffer", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::decisionforestbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@_ZN11alglib_implL23dforest_needpermutationE = external hidden global i64, align 8
@.str.303 = external hidden unnamed_addr constant [37 x i8], align 1
@_ZN11alglib_implL21dforest_leafnodewidthE = external hidden global i64, align 8
@.str.304 = external hidden unnamed_addr constant [51 x i8], align 1
@_ZN11alglib_implL24dforest_dfuncompressedv0E = external hidden global i64, align 8
@_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_impl14dfcreatebufferEPKNS_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 i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca %"struct.alglib_impl::dfworkbuf", align 8
  %21 = alloca %"struct.alglib_impl::dfvotebuf", align 8
  %22 = alloca %"struct.alglib_impl::dftreebuf", align 8
  %23 = 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) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 1368, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 320, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 72, ptr %22) #4
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %24, ptr noundef %11)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 1368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 320, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 72, i1 false)
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl21_decisionforest_clearEPv(ptr noundef %25)
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl15_dfreport_clearEPv(ptr noundef %26)
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl15_dfworkbuf_initEPvPNS_8ae_stateEb(ptr noundef %20, ptr noundef %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl15_dfvotebuf_initEPvPNS_8ae_stateEb(ptr noundef %21, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl15_dftreebuf_initEPvPNS_8ae_stateEb(ptr noundef %22, ptr noundef %29, i1 noundef zeroext true)
  %30 = load i64, ptr %7, align 8, !tbaa !9
  %31 = icmp sge i64 %30, 1
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef @.str.303, ptr noundef %32)
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL19dforest_cleanreportEPKNS_21decisionforestbuilderEPNS_8dfreportEPNS_8ae_stateE(ptr noundef %33, ptr noundef %34, ptr noundef %35)
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %36, i32 0, i32 1
  %38 = load i64, ptr %37, align 8, !tbaa !11
  store i64 %38, ptr %16, 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 2
  %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 3
  %44 = load i64, ptr %43, align 8, !tbaa !21
  store i64 %44, ptr %15, 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 0, ptr %46, align 8, !tbaa !22
  %47 = load i64, ptr %7, align 8, !tbaa !9
  %48 = load i64, ptr %16, align 8, !tbaa !9
  %49 = mul nsw i64 %47, %48
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %50, i32 0, i32 19
  store i64 %49, ptr %51, align 8, !tbaa !23
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %52, i32 0, i32 12
  %54 = load i64, ptr %53, align 8, !tbaa !24
  %55 = load i64, ptr @_ZN11alglib_implL23dforest_needpermutationE, align 8, !tbaa !9
  %56 = icmp eq i64 %54, %55
  br i1 %56, label %57, label %67

57:                                               ; preds = %5
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %58, i32 0, i32 19
  %60 = load i64, ptr %59, align 8, !tbaa !23
  %61 = load i64, ptr %7, align 8, !tbaa !9
  %62 = load i64, ptr %16, align 8, !tbaa !9
  %63 = mul nsw i64 %61, %62
  %64 = add nsw i64 %60, %63
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %65, i32 0, i32 19
  store i64 %64, ptr %66, align 8, !tbaa !23
  br label %67

67:                                               ; preds = %57, %5
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %68, i32 0, i32 0
  %70 = load i64, ptr %69, align 8, !tbaa !25
  %71 = icmp eq i64 %70, -1
  br i1 %71, label %75, label %72

72:                                               ; preds = %67
  %73 = load i64, ptr %16, align 8, !tbaa !9
  %74 = icmp eq i64 %73, 0
  br i1 %74, label %75, label %126

75:                                               ; preds = %72, %67
  %76 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !9
  %77 = icmp eq i64 %76, 2
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %77, ptr noundef @.str.304, ptr noundef %78)
  %79 = load i64, ptr @_ZN11alglib_implL24dforest_dfuncompressedv0E, align 8, !tbaa !9
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %80, i32 0, i32 0
  store i64 %79, ptr %81, align 8, !tbaa !26
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %82, i32 0, i32 2
  %84 = load i64, ptr %83, align 8, !tbaa !20
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %85, i32 0, i32 2
  store i64 %84, ptr %86, align 8, !tbaa !29
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %87, i32 0, i32 3
  %89 = load i64, ptr %88, align 8, !tbaa !21
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %90, i32 0, i32 3
  store i64 %89, ptr %91, align 8, !tbaa !30
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %92, i32 0, i32 4
  store i64 1, ptr %93, align 8, !tbaa !31
  %94 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !9
  %95 = add nsw i64 1, %94
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %96, i32 0, i32 5
  store i64 %95, ptr %97, align 8, !tbaa !32
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %98, i32 0, i32 6
  %100 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !9
  %101 = add nsw i64 1, %100
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %99, i64 noundef %101, ptr noundef %102)
  %103 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !9
  %104 = add nsw i64 1, %103
  %105 = sitofp i64 %104 to double
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %106, i32 0, i32 6
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %107, i32 0, i32 4
  %109 = load ptr, ptr %108, align 8, !tbaa !33
  %110 = getelementptr inbounds double, ptr %109, i64 0
  store double %105, ptr %110, align 8, !tbaa !34
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %111, i32 0, i32 6
  %113 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %112, i32 0, i32 4
  %114 = load ptr, ptr %113, align 8, !tbaa !33
  %115 = getelementptr inbounds double, ptr %114, i64 1
  store double -1.000000e+00, ptr %115, align 8, !tbaa !34
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %116, i32 0, i32 6
  %118 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %117, i32 0, i32 4
  %119 = load ptr, ptr %118, align 8, !tbaa !33
  %120 = getelementptr inbounds double, ptr %119, i64 2
  store double 0.000000e+00, ptr %120, align 8, !tbaa !34
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %122, i32 0, i32 7
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14dfcreatebufferEPKNS_14decisionforestEPNS_20decisionforestbufferEPNS_8ae_stateE(ptr noundef %121, ptr noundef %123, ptr noundef %124)
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %125)
  store i32 1, ptr %23, align 4
  br label %399

126:                                              ; preds = %72
  %127 = load i64, ptr %16, align 8, !tbaa !9
  %128 = icmp sgt i64 %127, 0
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %128, ptr noundef @.str.304, ptr noundef %129)
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL35dforest_analyzeandpreprocessdatasetEPNS_21decisionforestbuilderEPNS_8ae_stateE(ptr noundef %130, ptr noundef %131)
  %132 = load i64, ptr %16, align 8, !tbaa !9
  %133 = sitofp i64 %132 to double
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %134, i32 0, i32 8
  %136 = load double, ptr %135, align 8, !tbaa !35
  %137 = fmul double %133, %136
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %137, ptr noundef %138)
  store i64 %139, ptr %17, align 8, !tbaa !9
  %140 = load i64, ptr %17, align 8, !tbaa !9
  %141 = load ptr, ptr %10, align 8, !tbaa !5
  %142 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %140, i64 noundef 1, ptr noundef %141)
  store i64 %142, ptr %17, align 8, !tbaa !9
  %143 = load i64, ptr %17, align 8, !tbaa !9
  %144 = load i64, ptr %16, align 8, !tbaa !9
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  %146 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %143, i64 noundef %144, ptr noundef %145)
  store i64 %146, ptr %17, align 8, !tbaa !9
  %147 = load i64, ptr @_ZN11alglib_implL22dforest_innernodewidthE, align 8, !tbaa !9
  %148 = load i64, ptr %17, align 8, !tbaa !9
  %149 = sub nsw i64 %148, 1
  %150 = mul nsw i64 %147, %149
  %151 = add nsw i64 1, %150
  %152 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !9
  %153 = load i64, ptr %17, align 8, !tbaa !9
  %154 = mul nsw i64 %152, %153
  %155 = add nsw i64 %151, %154
  store i64 %155, ptr %18, align 8, !tbaa !9
  %156 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 1
  %157 = load i64, ptr %14, align 8, !tbaa !9
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %156, i64 noundef %157, ptr noundef %158)
  %159 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 3
  %160 = load i64, ptr %17, align 8, !tbaa !9
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %159, i64 noundef %160, ptr noundef %161)
  %162 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 7
  %163 = load i64, ptr %16, align 8, !tbaa !9
  %164 = load i64, ptr %17, align 8, !tbaa !9
  %165 = sub nsw i64 %163, %164
  %166 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %162, i64 noundef %165, ptr noundef %166)
  %167 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 14
  %168 = load i64, ptr %16, 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 %20, i32 0, i32 15
  %171 = load i64, ptr %16, 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 %20, i32 0, i32 16
  %174 = load i64, ptr %16, 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 %20, i32 0, i32 17
  %177 = load i64, ptr %16, align 8, !tbaa !9
  %178 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %176, i64 noundef %177, ptr noundef %178)
  %179 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 18
  %180 = load i64, ptr %16, align 8, !tbaa !9
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %179, i64 noundef %180, ptr noundef %181)
  %182 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 19
  %183 = load i64, ptr %16, align 8, !tbaa !9
  %184 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %182, i64 noundef %183, ptr noundef %184)
  %185 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 6
  %186 = load i64, ptr %16, align 8, !tbaa !9
  %187 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %185, i64 noundef %186, ptr noundef %187)
  %188 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 5
  %189 = load i64, ptr %16, align 8, !tbaa !9
  %190 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %188, i64 noundef %189, ptr noundef %190)
  %191 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 10
  %192 = load i64, ptr %16, align 8, !tbaa !9
  %193 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %191, i64 noundef %192, ptr noundef %193)
  %194 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 9
  %195 = load i64, ptr %16, align 8, !tbaa !9
  %196 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %194, i64 noundef %195, ptr noundef %196)
  %197 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 12
  %198 = load i64, ptr %16, align 8, !tbaa !9
  %199 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %197, i64 noundef %198, ptr noundef %199)
  %200 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 13
  %201 = load i64, ptr %16, align 8, !tbaa !9
  %202 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %200, i64 noundef %201, ptr noundef %202)
  %203 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 0
  %204 = load i64, ptr %15, align 8, !tbaa !9
  %205 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %203, i64 noundef %204, ptr noundef %205)
  %206 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 21
  %207 = load i64, ptr %15, align 8, !tbaa !9
  %208 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %206, i64 noundef %207, ptr noundef %208)
  %209 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 22
  %210 = load i64, ptr %15, align 8, !tbaa !9
  %211 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %209, i64 noundef %210, ptr noundef %211)
  %212 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 23
  %213 = load i64, ptr %15, align 8, !tbaa !9
  %214 = mul nsw i64 2, %213
  %215 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %212, i64 noundef %214, ptr noundef %215)
  %216 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 11
  %217 = load i64, ptr %18, align 8, !tbaa !9
  %218 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %216, i64 noundef %217, ptr noundef %218)
  %219 = load i64, ptr %17, align 8, !tbaa !9
  %220 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 4
  store i64 %219, ptr %220, align 8, !tbaa !36
  %221 = load i64, ptr %16, align 8, !tbaa !9
  %222 = load i64, ptr %17, align 8, !tbaa !9
  %223 = sub nsw i64 %221, %222
  %224 = getelementptr inbounds %"struct.alglib_impl::dfworkbuf", ptr %20, i32 0, i32 8
  store i64 %223, ptr %224, align 8, !tbaa !38
  %225 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %21, i32 0, i32 0
  %226 = load i64, ptr %16, align 8, !tbaa !9
  %227 = load i64, ptr %15, align 8, !tbaa !9
  %228 = mul nsw i64 %226, %227
  %229 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %225, i64 noundef %228, ptr noundef %229)
  %230 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %21, i32 0, i32 1
  %231 = load i64, ptr %16, align 8, !tbaa !9
  %232 = load i64, ptr %15, align 8, !tbaa !9
  %233 = mul nsw i64 %231, %232
  %234 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %230, i64 noundef %233, ptr noundef %234)
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %235

235:                                              ; preds = %253, %126
  %236 = load i64, ptr %12, align 8, !tbaa !9
  %237 = load i64, ptr %16, align 8, !tbaa !9
  %238 = load i64, ptr %15, align 8, !tbaa !9
  %239 = mul nsw i64 %237, %238
  %240 = sub nsw i64 %239, 1
  %241 = icmp sle i64 %236, %240
  br i1 %241, label %242, label %256

242:                                              ; preds = %235
  %243 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %21, i32 0, i32 0
  %244 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %243, i32 0, i32 4
  %245 = load ptr, ptr %244, align 8, !tbaa !33
  %246 = load i64, ptr %12, align 8, !tbaa !9
  %247 = getelementptr inbounds double, ptr %245, i64 %246
  store double 0.000000e+00, ptr %247, align 8, !tbaa !34
  %248 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %21, i32 0, i32 1
  %249 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %248, i32 0, i32 4
  %250 = load ptr, ptr %249, align 8, !tbaa !33
  %251 = load i64, ptr %12, align 8, !tbaa !9
  %252 = getelementptr inbounds double, ptr %250, i64 %251
  store double 0.000000e+00, ptr %252, align 8, !tbaa !34
  br label %253

253:                                              ; preds = %242
  %254 = load i64, ptr %12, align 8, !tbaa !9
  %255 = add nsw i64 %254, 1
  store i64 %255, ptr %12, align 8, !tbaa !9
  br label %235, !llvm.loop !39

256:                                              ; preds = %235
  %257 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %21, i32 0, i32 2
  %258 = load i64, ptr %16, align 8, !tbaa !9
  %259 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %257, i64 noundef %258, ptr noundef %259)
  %260 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %21, i32 0, i32 3
  %261 = load i64, ptr %16, align 8, !tbaa !9
  %262 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %260, i64 noundef %261, ptr noundef %262)
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %263

263:                                              ; preds = %279, %256
  %264 = load i64, ptr %12, align 8, !tbaa !9
  %265 = load i64, ptr %16, align 8, !tbaa !9
  %266 = sub nsw i64 %265, 1
  %267 = icmp sle i64 %264, %266
  br i1 %267, label %268, label %282

268:                                              ; preds = %263
  %269 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %21, i32 0, i32 2
  %270 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %269, i32 0, i32 4
  %271 = load ptr, ptr %270, align 8, !tbaa !33
  %272 = load i64, ptr %12, align 8, !tbaa !9
  %273 = getelementptr inbounds i64, ptr %271, i64 %272
  store i64 0, ptr %273, align 8, !tbaa !9
  %274 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %21, i32 0, i32 3
  %275 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %274, i32 0, i32 4
  %276 = load ptr, ptr %275, align 8, !tbaa !33
  %277 = load i64, ptr %12, align 8, !tbaa !9
  %278 = getelementptr inbounds i64, ptr %276, i64 %277
  store i64 0, ptr %278, align 8, !tbaa !9
  br label %279

279:                                              ; preds = %268
  %280 = load i64, ptr %12, align 8, !tbaa !9
  %281 = add nsw i64 %280, 1
  store i64 %281, ptr %12, align 8, !tbaa !9
  br label %263, !llvm.loop !41

282:                                              ; preds = %263
  %283 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %21, i32 0, i32 4
  %284 = load i64, ptr %14, align 8, !tbaa !9
  %285 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %283, i64 noundef %284, ptr noundef %285)
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %286

286:                                              ; preds = %297, %282
  %287 = load i64, ptr %12, align 8, !tbaa !9
  %288 = load i64, ptr %14, align 8, !tbaa !9
  %289 = sub nsw i64 %288, 1
  %290 = icmp sle i64 %287, %289
  br i1 %290, label %291, label %300

291:                                              ; preds = %286
  %292 = getelementptr inbounds %"struct.alglib_impl::dfvotebuf", ptr %21, i32 0, i32 4
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %292, i32 0, i32 4
  %294 = load ptr, ptr %293, align 8, !tbaa !33
  %295 = load i64, ptr %12, align 8, !tbaa !9
  %296 = getelementptr inbounds double, ptr %294, i64 %295
  store double 0.000000e+00, ptr %296, align 8, !tbaa !34
  br label %297

297:                                              ; preds = %291
  %298 = load i64, ptr %12, align 8, !tbaa !9
  %299 = add nsw i64 %298, 1
  store i64 %299, ptr %12, align 8, !tbaa !9
  br label %286, !llvm.loop !42

300:                                              ; preds = %286
  %301 = getelementptr inbounds %"struct.alglib_impl::dftreebuf", ptr %22, i32 0, i32 1
  store i64 -1, ptr %301, align 8, !tbaa !43
  %302 = load ptr, ptr %6, align 8, !tbaa !5
  %303 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %302, i32 0, i32 20
  %304 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPKvlPFvPvS3_PNS_8ae_stateEbEPFvS4_ES6_(ptr noundef %303, ptr noundef %20, i64 noundef 1368, ptr noundef @_ZN11alglib_impl20_dfworkbuf_init_copyEPvPKvPNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl18_dfworkbuf_destroyEPv, ptr noundef %304)
  %305 = load ptr, ptr %6, align 8, !tbaa !5
  %306 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %305, i32 0, i32 21
  %307 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPKvlPFvPvS3_PNS_8ae_stateEbEPFvS4_ES6_(ptr noundef %306, ptr noundef %21, i64 noundef 320, ptr noundef @_ZN11alglib_impl20_dfvotebuf_init_copyEPvPKvPNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl18_dfvotebuf_destroyEPv, ptr noundef %307)
  %308 = load ptr, ptr %6, align 8, !tbaa !5
  %309 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %308, i32 0, i32 22
  %310 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPKvlPFvPvS3_PNS_8ae_stateEbEPFvS4_ES6_(ptr noundef %309, ptr noundef %22, i64 noundef 72, ptr noundef @_ZN11alglib_impl20_dftreebuf_init_copyEPvPKvPNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl18_dftreebuf_destroyEPv, ptr noundef %310)
  %311 = load ptr, ptr %6, align 8, !tbaa !5
  %312 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %311, i32 0, i32 23
  %313 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPKvlPFvPvS3_PNS_8ae_stateEbEPFvS4_ES6_(ptr noundef %312, ptr noundef %22, i64 noundef 72, ptr noundef @_ZN11alglib_impl20_dftreebuf_init_copyEPvPKvPNS_8ae_stateEb, ptr noundef @_ZN11alglib_impl18_dftreebuf_destroyEPv, ptr noundef %313)
  %314 = load ptr, ptr %6, align 8, !tbaa !5
  %315 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %314, i32 0, i32 10
  %316 = load i64, ptr %315, align 8, !tbaa !45
  store i64 %316, ptr %19, align 8, !tbaa !9
  %317 = load ptr, ptr %6, align 8, !tbaa !5
  %318 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %317, i32 0, i32 10
  %319 = load i64, ptr %318, align 8, !tbaa !45
  %320 = icmp sle i64 %319, 0
  br i1 %320, label %321, label %324

321:                                              ; preds = %300
  %322 = load ptr, ptr %10, align 8, !tbaa !5
  %323 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 30000, ptr noundef %322)
  store i64 %323, ptr %19, align 8, !tbaa !9
  br label %324

324:                                              ; preds = %321, %300
  %325 = load ptr, ptr %6, align 8, !tbaa !5
  %326 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %325, i32 0, i32 12
  %327 = load i64, ptr %326, align 8, !tbaa !24
  %328 = load i64, ptr @_ZN11alglib_implL23dforest_needpermutationE, align 8, !tbaa !9
  %329 = icmp eq i64 %327, %328
  %330 = load ptr, ptr %6, align 8, !tbaa !5
  %331 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %330, i32 0, i32 24
  %332 = zext i1 %329 to i8
  store i8 %332, ptr %331, align 8, !tbaa !46
  %333 = load ptr, ptr %6, align 8, !tbaa !5
  %334 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %333, i32 0, i32 24
  %335 = load i8, ptr %334, align 8, !tbaa !46, !range !47, !noundef !48
  %336 = trunc i8 %335 to i1
  br i1 %336, label %337, label %372

337:                                              ; preds = %324
  %338 = load ptr, ptr %6, align 8, !tbaa !5
  %339 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %338, i32 0, i32 25
  %340 = load i64, ptr %7, align 8, !tbaa !9
  %341 = load i64, ptr %16, align 8, !tbaa !9
  %342 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23bmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %339, i64 noundef %340, i64 noundef %341, ptr noundef %342)
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %343

343:                                              ; preds = %368, %337
  %344 = load i64, ptr %12, align 8, !tbaa !9
  %345 = load i64, ptr %7, align 8, !tbaa !9
  %346 = sub nsw i64 %345, 1
  %347 = icmp sle i64 %344, %346
  br i1 %347, label %348, label %371

348:                                              ; preds = %343
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %349

349:                                              ; preds = %364, %348
  %350 = load i64, ptr %13, align 8, !tbaa !9
  %351 = load i64, ptr %16, align 8, !tbaa !9
  %352 = sub nsw i64 %351, 1
  %353 = icmp sle i64 %350, %352
  br i1 %353, label %354, label %367

354:                                              ; preds = %349
  %355 = load ptr, ptr %6, align 8, !tbaa !5
  %356 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %355, i32 0, i32 25
  %357 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %356, i32 0, i32 6
  %358 = load ptr, ptr %357, align 8, !tbaa !33
  %359 = load i64, ptr %12, align 8, !tbaa !9
  %360 = getelementptr inbounds ptr, ptr %358, i64 %359
  %361 = load ptr, ptr %360, align 8, !tbaa !5
  %362 = load i64, ptr %13, align 8, !tbaa !9
  %363 = getelementptr inbounds i8, ptr %361, i64 %362
  store i8 0, ptr %363, align 1, !tbaa !49
  br label %364

364:                                              ; preds = %354
  %365 = load i64, ptr %13, align 8, !tbaa !9
  %366 = add nsw i64 %365, 1
  store i64 %366, ptr %13, align 8, !tbaa !9
  br label %349, !llvm.loop !50

367:                                              ; preds = %349
  br label %368

368:                                              ; preds = %367
  %369 = load i64, ptr %12, align 8, !tbaa !9
  %370 = add nsw i64 %369, 1
  store i64 %370, ptr %12, align 8, !tbaa !9
  br label %343, !llvm.loop !51

371:                                              ; preds = %343
  br label %372

372:                                              ; preds = %371, %324
  %373 = load ptr, ptr %6, align 8, !tbaa !5
  %374 = load i64, ptr %7, align 8, !tbaa !9
  %375 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL23dforest_buildrandomtreeEPNS_21decisionforestbuilderEllPNS_8ae_stateE(ptr noundef %373, i64 noundef 0, i64 noundef %374, ptr noundef %375)
  %376 = load ptr, ptr %6, align 8, !tbaa !5
  %377 = load ptr, ptr %8, align 8, !tbaa !5
  %378 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL18dforest_mergetreesEPNS_21decisionforestbuilderEPNS_14decisionforestEPNS_8ae_stateE(ptr noundef %376, ptr noundef %377, ptr noundef %378)
  %379 = load ptr, ptr %6, align 8, !tbaa !5
  %380 = load i64, ptr %7, align 8, !tbaa !9
  %381 = load ptr, ptr %9, align 8, !tbaa !5
  %382 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL28dforest_processvotingresultsEPNS_21decisionforestbuilderElPNS_9dfvotebufEPNS_8dfreportEPNS_8ae_stateE(ptr noundef %379, i64 noundef %380, ptr noundef %21, ptr noundef %381, ptr noundef %382)
  %383 = load ptr, ptr %8, align 8, !tbaa !5
  %384 = load ptr, ptr %8, align 8, !tbaa !5
  %385 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %384, i32 0, i32 7
  %386 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14dfcreatebufferEPKNS_14decisionforestEPNS_20decisionforestbufferEPNS_8ae_stateE(ptr noundef %383, ptr noundef %385, ptr noundef %386)
  %387 = load ptr, ptr %6, align 8, !tbaa !5
  %388 = load i64, ptr %19, align 8, !tbaa !9
  %389 = load ptr, ptr %8, align 8, !tbaa !5
  %390 = load i64, ptr %7, align 8, !tbaa !9
  %391 = load ptr, ptr %9, align 8, !tbaa !5
  %392 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL34dforest_estimatevariableimportanceEPNS_21decisionforestbuilderElPKNS_14decisionforestElPNS_8dfreportEPNS_8ae_stateE(ptr noundef %387, i64 noundef %388, ptr noundef %389, i64 noundef %390, ptr noundef %391, ptr noundef %392)
  %393 = load ptr, ptr %6, align 8, !tbaa !5
  %394 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %393, i32 0, i32 19
  %395 = load i64, ptr %394, align 8, !tbaa !23
  %396 = load ptr, ptr %6, align 8, !tbaa !5
  %397 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %396, i32 0, i32 18
  store i64 %395, ptr %397, align 8, !tbaa !22
  %398 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %398)
  store i32 0, ptr %23, align 4
  br label %399

399:                                              ; preds = %372, %75
  call void @llvm.lifetime.end.p0(i64 72, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 320, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 1368, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  %400 = load i32, ptr %23, align 4
  switch i32 %400, label %402 [
    i32 0, label %401
    i32 1, label %401
  ]

401:                                              ; preds = %399, %399
  ret void

402:                                              ; preds = %399
  unreachable
}

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(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_poolEPKvlPFvPvS3_PNS_8ae_stateEbEPFvS4_ES6_(ptr noundef, ptr noundef, i64 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 uwtable
declare hidden void @_ZN11alglib_implL19dforest_cleanreportEPKNS_21decisionforestbuilderEPNS_8dfreportEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #3

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

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

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

; 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_21decisionforestbuilderElPNS_9dfvotebufEPNS_8dfreportEPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL34dforest_estimatevariableimportanceEPNS_21decisionforestbuilderElPKNS_14decisionforestElPNS_8dfreportEPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, i64 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 = { 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, !10, i64 264, !13, i64 272, !13, i64 336, !13, i64 400, !16, i64 464, !13, i64 472, !10, i64 536, !10, i64 544, !17, i64 552, !17, i64 688, !17, i64 824, !17, i64 960, !14, i64 1096, !19, i64 1104, !13, i64 1184}
!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, !15, i64 104}
!18 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !15, i64 8, !14, i64 40}
!19 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !15, i64 40, !7, i64 72}
!20 = !{!12, !10, i64 16}
!21 = !{!12, !10, i64 24}
!22 = !{!12, !10, i64 536}
!23 = !{!12, !10, i64 544}
!24 = !{!12, !10, i64 264}
!25 = !{!12, !10, i64 0}
!26 = !{!27, !10, i64 0}
!27 = !{!"_ZTSN11alglib_impl14decisionforestE", !10, i64 0, !14, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !13, i64 48, !28, i64 112, !13, i64 240}
!28 = !{!"_ZTSN11alglib_impl20decisionforestbufferE", !13, i64 0, !13, i64 64}
!29 = !{!27, !10, i64 16}
!30 = !{!27, !10, i64 24}
!31 = !{!27, !10, i64 32}
!32 = !{!27, !10, i64 40}
!33 = !{!7, !7, i64 0}
!34 = !{!16, !16, i64 0}
!35 = !{!12, !16, i64 232}
!36 = !{!37, !10, i64 200}
!37 = !{!"_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, !13, i64 1176, !13, i64 1240, !13, i64 1304}
!38 = !{!37, !10, i64 400}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !40}
!42 = distinct !{!42, !40}
!43 = !{!44, !10, i64 64}
!44 = !{!"_ZTSN11alglib_impl9dftreebufE", !13, i64 0, !10, i64 64}
!45 = !{!12, !10, i64 248}
!46 = !{!12, !14, i64 1096}
!47 = !{i8 0, i8 2}
!48 = !{}
!49 = !{!14, !14, i64 0}
!50 = distinct !{!50, !40}
!51 = distinct !{!51, !40}


; 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", %"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::ae_vector" }
%"struct.alglib_impl::dftreebuf" = type { %"struct.alglib_impl::ae_vector", i64 }

@_ZN11alglib_implL23dforest_needpermutationE = external hidden local_unnamed_addr global i64, align 8
@.str.303 = external hidden unnamed_addr constant [37 x i8], align 1
@_ZN11alglib_implL21dforest_leafnodewidthE = external hidden local_unnamed_addr global i64, align 8
@.str.304 = external hidden unnamed_addr constant [51 x i8], align 1
@_ZN11alglib_implL24dforest_dfuncompressedv0E = external hidden local_unnamed_addr global i64, align 8
@_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_impl14dfcreatebufferEPKNS_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) #4
  call void @llvm.lifetime.start.p0(i64 1368, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 320, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %9) #4
  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(1368) %7, i8 0, i64 1368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(320) %8, i8 0, i64 320, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %9, i8 0, i64 72, 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.303, ptr noundef %4)
  call void @_ZN11alglib_implL19dforest_cleanreportEPKNS_21decisionforestbuilderEPNS_8dfreportEPNS_8ae_stateE(ptr noundef %0, 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 !18
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  %16 = load i64, ptr %15, align 8, !tbaa !19
  %17 = getelementptr inbounds i8, ptr %0, i64 536
  store i64 0, ptr %17, align 8, !tbaa !20
  %18 = mul nsw i64 %12, %1
  %19 = getelementptr inbounds i8, ptr %0, i64 544
  store i64 %18, ptr %19, align 8, !tbaa !21
  %20 = getelementptr inbounds i8, ptr %0, i64 264
  %21 = load i64, ptr %20, align 8, !tbaa !22
  %22 = load i64, ptr @_ZN11alglib_implL23dforest_needpermutationE, align 8, !tbaa !23
  %23 = icmp eq i64 %21, %22
  br i1 %23, label %24, label %26

24:                                               ; preds = %5
  %25 = shl nsw i64 %18, 1
  store i64 %25, ptr %19, align 8, !tbaa !21
  br label %26

26:                                               ; preds = %24, %5
  %27 = load i64, ptr %0, align 8, !tbaa !24
  %28 = icmp eq i64 %27, -1
  %29 = icmp eq i64 %12, 0
  %or.cond = select i1 %28, i1 true, i1 %29
  br i1 %or.cond, label %30, label %51

30:                                               ; preds = %26
  %31 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !23
  %32 = icmp eq i64 %31, 2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef nonnull @.str.304, ptr noundef %4)
  %33 = load i64, ptr @_ZN11alglib_implL24dforest_dfuncompressedv0E, align 8, !tbaa !23
  store i64 %33, ptr %2, align 8, !tbaa !25
  %34 = getelementptr inbounds i8, ptr %2, i64 16
  %35 = load <2 x i64>, ptr %13, align 8, !tbaa !23
  store <2 x i64> %35, ptr %34, align 8, !tbaa !23
  %36 = getelementptr inbounds i8, ptr %2, i64 32
  store i64 1, ptr %36, align 8, !tbaa !28
  %37 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !23
  %38 = add nsw i64 %37, 1
  %39 = getelementptr inbounds i8, ptr %2, i64 40
  store i64 %38, ptr %39, align 8, !tbaa !29
  %40 = getelementptr inbounds i8, ptr %2, i64 48
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %40, i64 noundef %38, ptr noundef %4)
  %41 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !23
  %42 = add nsw i64 %41, 1
  %43 = sitofp i64 %42 to double
  %44 = getelementptr inbounds i8, ptr %2, i64 104
  %45 = load ptr, ptr %44, align 8, !tbaa !30
  store double %43, ptr %45, align 8, !tbaa !31
  %46 = load ptr, ptr %44, align 8, !tbaa !30
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  store double -1.000000e+00, ptr %47, align 8, !tbaa !31
  %48 = load ptr, ptr %44, align 8, !tbaa !30
  %49 = getelementptr inbounds i8, ptr %48, i64 16
  store double 0.000000e+00, ptr %49, align 8, !tbaa !31
  %50 = getelementptr inbounds i8, ptr %2, i64 112
  call void @_ZN11alglib_impl14dfcreatebufferEPKNS_14decisionforestEPNS_20decisionforestbufferEPNS_8ae_stateE(ptr noundef nonnull %2, ptr noundef nonnull %50, ptr noundef %4)
  br label %197

51:                                               ; preds = %26
  %52 = icmp sgt i64 %12, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef nonnull @.str.304, ptr noundef %4)
  call void @_ZN11alglib_implL35dforest_analyzeandpreprocessdatasetEPNS_21decisionforestbuilderEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %4)
  %53 = sitofp i64 %12 to double
  %54 = getelementptr inbounds i8, ptr %0, i64 232
  %55 = load double, ptr %54, align 8, !tbaa !32
  %56 = fmul double %55, %53
  %57 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %56, ptr noundef %4)
  %58 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %57, i64 noundef 1, ptr noundef %4)
  %59 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %58, i64 noundef %12, ptr noundef %4)
  %60 = load i64, ptr @_ZN11alglib_implL22dforest_innernodewidthE, align 8, !tbaa !23
  %61 = add nsw i64 %59, -1
  %62 = mul nsw i64 %60, %61
  %63 = add nsw i64 %62, 1
  %64 = load i64, ptr @_ZN11alglib_implL21dforest_leafnodewidthE, align 8, !tbaa !23
  %65 = mul nsw i64 %64, %59
  %66 = add nsw i64 %63, %65
  %67 = getelementptr inbounds i8, ptr %7, i64 64
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %67, i64 noundef %14, ptr noundef %4)
  %68 = getelementptr inbounds i8, ptr %7, i64 136
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %68, i64 noundef %59, ptr noundef %4)
  %69 = getelementptr inbounds i8, ptr %7, i64 336
  %70 = sub nsw i64 %12, %59
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %69, i64 noundef %70, ptr noundef %4)
  %71 = getelementptr inbounds i8, ptr %7, i64 728
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %71, i64 noundef %12, ptr noundef %4)
  %72 = getelementptr inbounds i8, ptr %7, i64 792
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %72, i64 noundef %12, ptr noundef %4)
  %73 = getelementptr inbounds i8, ptr %7, i64 856
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %73, i64 noundef %12, ptr noundef %4)
  %74 = getelementptr inbounds i8, ptr %7, i64 920
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %74, i64 noundef %12, ptr noundef %4)
  %75 = getelementptr inbounds i8, ptr %7, i64 984
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %75, i64 noundef %12, ptr noundef %4)
  %76 = getelementptr inbounds i8, ptr %7, i64 1048
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %76, i64 noundef %12, ptr noundef %4)
  %77 = getelementptr inbounds i8, ptr %7, i64 272
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %77, i64 noundef %12, ptr noundef %4)
  %78 = getelementptr inbounds i8, ptr %7, i64 208
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %78, i64 noundef %12, ptr noundef %4)
  %79 = getelementptr inbounds i8, ptr %7, i64 472
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %79, i64 noundef %12, ptr noundef %4)
  %80 = getelementptr inbounds i8, ptr %7, i64 408
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %80, i64 noundef %12, ptr noundef %4)
  %81 = getelementptr inbounds i8, ptr %7, i64 600
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %81, i64 noundef %12, ptr noundef %4)
  %82 = getelementptr inbounds i8, ptr %7, i64 664
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %82, 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)
  %83 = getelementptr inbounds i8, ptr %7, i64 1176
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %83, i64 noundef %16, ptr noundef %4)
  %84 = getelementptr inbounds i8, ptr %7, i64 1240
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %84, i64 noundef %16, ptr noundef %4)
  %85 = getelementptr inbounds i8, ptr %7, i64 1304
  %86 = shl nsw i64 %16, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %85, i64 noundef %86, ptr noundef %4)
  %87 = getelementptr inbounds i8, ptr %7, i64 536
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %87, i64 noundef %66, ptr noundef %4)
  %88 = getelementptr inbounds i8, ptr %7, i64 200
  store i64 %59, ptr %88, align 8, !tbaa !33
  %89 = getelementptr inbounds i8, ptr %7, i64 400
  store i64 %70, ptr %89, align 8, !tbaa !35
  %90 = mul nsw i64 %16, %12
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %90, ptr noundef %4)
  %91 = getelementptr inbounds i8, ptr %8, i64 64
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %91, i64 noundef %90, ptr noundef %4)
  %.not.not185 = icmp sgt i64 %90, 0
  br i1 %.not.not185, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %51
  %92 = getelementptr inbounds i8, ptr %8, i64 56
  %93 = getelementptr inbounds i8, ptr %8, i64 120
  %xtraiter = and i64 %90, 1
  %94 = icmp eq i64 %90, 1
  br i1 %94, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

95:                                               ; preds = %95, %.lr.ph.new
  %.0176186 = phi i64 [ 0, %.lr.ph.new ], [ %105, %95 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %95 ]
  %96 = load ptr, ptr %92, align 8, !tbaa !30
  %97 = getelementptr inbounds double, ptr %96, i64 %.0176186
  store double 0.000000e+00, ptr %97, align 8, !tbaa !31
  %98 = load ptr, ptr %93, align 8, !tbaa !30
  %99 = getelementptr inbounds double, ptr %98, i64 %.0176186
  store double 0.000000e+00, ptr %99, align 8, !tbaa !31
  %100 = or disjoint i64 %.0176186, 1
  %101 = load ptr, ptr %92, align 8, !tbaa !30
  %102 = getelementptr inbounds double, ptr %101, i64 %100
  store double 0.000000e+00, ptr %102, align 8, !tbaa !31
  %103 = load ptr, ptr %93, align 8, !tbaa !30
  %104 = getelementptr inbounds double, ptr %103, i64 %100
  store double 0.000000e+00, ptr %104, align 8, !tbaa !31
  %105 = add nuw nsw i64 %.0176186, 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 %95, !llvm.loop !36

._crit_edge.loopexit.unr-lcssa:                   ; preds = %95, %.lr.ph
  %.0176186.unr = phi i64 [ 0, %.lr.ph ], [ %105, %95 ]
  %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
  %106 = load ptr, ptr %92, align 8, !tbaa !30
  %107 = getelementptr inbounds double, ptr %106, i64 %.0176186.unr
  store double 0.000000e+00, ptr %107, align 8, !tbaa !31
  %108 = load ptr, ptr %93, align 8, !tbaa !30
  %109 = getelementptr inbounds double, ptr %108, i64 %.0176186.unr
  store double 0.000000e+00, ptr %109, align 8, !tbaa !31
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %51
  %110 = getelementptr inbounds i8, ptr %8, i64 128
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %110, i64 noundef %12, ptr noundef %4)
  %111 = getelementptr inbounds i8, ptr %8, i64 192
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %111, i64 noundef %12, ptr noundef %4)
  br i1 %52, label %.lr.ph190, label %._crit_edge191

.lr.ph190:                                        ; preds = %._crit_edge
  %112 = getelementptr inbounds i8, ptr %8, i64 184
  %113 = getelementptr inbounds i8, ptr %8, i64 248
  %xtraiter209 = and i64 %12, 1
  %114 = icmp eq i64 %12, 1
  br i1 %114, label %._crit_edge191.loopexit.unr-lcssa, label %.lr.ph190.new

.lr.ph190.new:                                    ; preds = %.lr.ph190
  %unroll_iter211 = and i64 %12, 9223372036854775806
  br label %115

115:                                              ; preds = %115, %.lr.ph190.new
  %.1188 = phi i64 [ 0, %.lr.ph190.new ], [ %125, %115 ]
  %niter212 = phi i64 [ 0, %.lr.ph190.new ], [ %niter212.next.1, %115 ]
  %116 = load ptr, ptr %112, align 8, !tbaa !30
  %117 = getelementptr inbounds i64, ptr %116, i64 %.1188
  store i64 0, ptr %117, align 8, !tbaa !23
  %118 = load ptr, ptr %113, align 8, !tbaa !30
  %119 = getelementptr inbounds i64, ptr %118, i64 %.1188
  store i64 0, ptr %119, align 8, !tbaa !23
  %120 = or disjoint i64 %.1188, 1
  %121 = load ptr, ptr %112, align 8, !tbaa !30
  %122 = getelementptr inbounds i64, ptr %121, i64 %120
  store i64 0, ptr %122, align 8, !tbaa !23
  %123 = load ptr, ptr %113, align 8, !tbaa !30
  %124 = getelementptr inbounds i64, ptr %123, i64 %120
  store i64 0, ptr %124, align 8, !tbaa !23
  %125 = add nuw nsw i64 %.1188, 2
  %niter212.next.1 = add i64 %niter212, 2
  %niter212.ncmp.1 = icmp eq i64 %niter212.next.1, %unroll_iter211
  br i1 %niter212.ncmp.1, label %._crit_edge191.loopexit.unr-lcssa, label %115, !llvm.loop !38

._crit_edge191.loopexit.unr-lcssa:                ; preds = %115, %.lr.ph190
  %.1188.unr = phi i64 [ 0, %.lr.ph190 ], [ %125, %115 ]
  %lcmp.mod210.not = icmp eq i64 %xtraiter209, 0
  br i1 %lcmp.mod210.not, label %._crit_edge191, label %._crit_edge191.loopexit.epilog-lcssa

._crit_edge191.loopexit.epilog-lcssa:             ; preds = %._crit_edge191.loopexit.unr-lcssa
  %126 = load ptr, ptr %112, align 8, !tbaa !30
  %127 = getelementptr inbounds i64, ptr %126, i64 %.1188.unr
  store i64 0, ptr %127, align 8, !tbaa !23
  %128 = load ptr, ptr %113, align 8, !tbaa !30
  %129 = getelementptr inbounds i64, ptr %128, i64 %.1188.unr
  store i64 0, ptr %129, align 8, !tbaa !23
  br label %._crit_edge191

._crit_edge191:                                   ; preds = %._crit_edge191.loopexit.epilog-lcssa, %._crit_edge191.loopexit.unr-lcssa, %._crit_edge
  %130 = getelementptr inbounds i8, ptr %8, i64 256
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %130, i64 noundef %14, ptr noundef %4)
  %.not.not182192 = icmp sgt i64 %14, 0
  br i1 %.not.not182192, label %.lr.ph195, label %._crit_edge196

.lr.ph195:                                        ; preds = %._crit_edge191
  %131 = getelementptr inbounds i8, ptr %8, i64 312
  %xtraiter214 = and i64 %14, 3
  %132 = icmp ult i64 %14, 4
  br i1 %132, label %._crit_edge196.loopexit.unr-lcssa, label %.lr.ph195.new

.lr.ph195.new:                                    ; preds = %.lr.ph195
  %unroll_iter216 = and i64 %14, 9223372036854775804
  br label %133

133:                                              ; preds = %133, %.lr.ph195.new
  %.2193 = phi i64 [ 0, %.lr.ph195.new ], [ %145, %133 ]
  %niter217 = phi i64 [ 0, %.lr.ph195.new ], [ %niter217.next.3, %133 ]
  %134 = load ptr, ptr %131, align 8, !tbaa !30
  %135 = getelementptr inbounds double, ptr %134, i64 %.2193
  store double 0.000000e+00, ptr %135, align 8, !tbaa !31
  %136 = or disjoint i64 %.2193, 1
  %137 = load ptr, ptr %131, align 8, !tbaa !30
  %138 = getelementptr inbounds double, ptr %137, i64 %136
  store double 0.000000e+00, ptr %138, align 8, !tbaa !31
  %139 = or disjoint i64 %.2193, 2
  %140 = load ptr, ptr %131, align 8, !tbaa !30
  %141 = getelementptr inbounds double, ptr %140, i64 %139
  store double 0.000000e+00, ptr %141, align 8, !tbaa !31
  %142 = or disjoint i64 %.2193, 3
  %143 = load ptr, ptr %131, align 8, !tbaa !30
  %144 = getelementptr inbounds double, ptr %143, i64 %142
  store double 0.000000e+00, ptr %144, align 8, !tbaa !31
  %145 = add nuw nsw i64 %.2193, 4
  %niter217.next.3 = add i64 %niter217, 4
  %niter217.ncmp.3 = icmp eq i64 %niter217.next.3, %unroll_iter216
  br i1 %niter217.ncmp.3, label %._crit_edge196.loopexit.unr-lcssa, label %133, !llvm.loop !39

._crit_edge196.loopexit.unr-lcssa:                ; preds = %133, %.lr.ph195
  %.2193.unr = phi i64 [ 0, %.lr.ph195 ], [ %145, %133 ]
  %lcmp.mod215.not = icmp eq i64 %xtraiter214, 0
  br i1 %lcmp.mod215.not, label %._crit_edge196, label %.epil.preheader213

.epil.preheader213:                               ; preds = %._crit_edge196.loopexit.unr-lcssa, %.epil.preheader213
  %.2193.epil = phi i64 [ %148, %.epil.preheader213 ], [ %.2193.unr, %._crit_edge196.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader213 ], [ 0, %._crit_edge196.loopexit.unr-lcssa ]
  %146 = load ptr, ptr %131, align 8, !tbaa !30
  %147 = getelementptr inbounds double, ptr %146, i64 %.2193.epil
  store double 0.000000e+00, ptr %147, align 8, !tbaa !31
  %148 = add nuw nsw i64 %.2193.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter214
  br i1 %epil.iter.cmp.not, label %._crit_edge196, label %.epil.preheader213, !llvm.loop !40

._crit_edge196:                                   ; preds = %._crit_edge196.loopexit.unr-lcssa, %.epil.preheader213, %._crit_edge191
  %149 = getelementptr inbounds i8, ptr %9, i64 64
  store i64 -1, ptr %149, align 8, !tbaa !42
  %150 = getelementptr inbounds i8, ptr %0, i64 552
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPKvlPFvPvS3_PNS_8ae_stateEbEPFvS4_ES6_(ptr noundef nonnull %150, ptr noundef nonnull %7, i64 noundef 1368, ptr noundef nonnull @_ZN11alglib_impl20_dfworkbuf_init_copyEPvPKvPNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl18_dfworkbuf_destroyEPv, ptr noundef %4)
  %151 = getelementptr inbounds i8, ptr %0, i64 688
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPKvlPFvPvS3_PNS_8ae_stateEbEPFvS4_ES6_(ptr noundef nonnull %151, ptr noundef nonnull %8, i64 noundef 320, ptr noundef nonnull @_ZN11alglib_impl20_dfvotebuf_init_copyEPvPKvPNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl18_dfvotebuf_destroyEPv, ptr noundef %4)
  %152 = getelementptr inbounds i8, ptr %0, i64 824
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPKvlPFvPvS3_PNS_8ae_stateEbEPFvS4_ES6_(ptr noundef nonnull %152, ptr noundef nonnull %9, i64 noundef 72, ptr noundef nonnull @_ZN11alglib_impl20_dftreebuf_init_copyEPvPKvPNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl18_dftreebuf_destroyEPv, ptr noundef %4)
  %153 = getelementptr inbounds i8, ptr %0, i64 960
  call void @_ZN11alglib_impl23ae_shared_pool_set_seedEPNS_14ae_shared_poolEPKvlPFvPvS3_PNS_8ae_stateEbEPFvS4_ES6_(ptr noundef nonnull %153, ptr noundef nonnull %9, i64 noundef 72, ptr noundef nonnull @_ZN11alglib_impl20_dftreebuf_init_copyEPvPKvPNS_8ae_stateEb, ptr noundef nonnull @_ZN11alglib_impl18_dftreebuf_destroyEPv, ptr noundef %4)
  %154 = getelementptr inbounds i8, ptr %0, i64 248
  %155 = load i64, ptr %154, align 8, !tbaa !44
  %156 = icmp slt i64 %155, 1
  br i1 %156, label %157, label %159

157:                                              ; preds = %._crit_edge196
  %158 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 30000, ptr noundef %4)
  br label %159

159:                                              ; preds = %157, %._crit_edge196
  %.0 = phi i64 [ %158, %157 ], [ %155, %._crit_edge196 ]
  %160 = load i64, ptr %20, align 8, !tbaa !22
  %161 = load i64, ptr @_ZN11alglib_implL23dforest_needpermutationE, align 8, !tbaa !23
  %162 = icmp eq i64 %160, %161
  %163 = getelementptr inbounds i8, ptr %0, i64 1096
  %164 = zext i1 %162 to i8
  store i8 %164, ptr %163, align 8, !tbaa !45
  br i1 %162, label %165, label %.loopexit

165:                                              ; preds = %159
  %166 = getelementptr inbounds i8, ptr %0, i64 1104
  call void @_ZN11alglib_impl23bmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %166, i64 noundef %1, i64 noundef %12, ptr noundef %4)
  br i1 %10, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %165
  %167 = getelementptr inbounds i8, ptr %0, i64 1176
  br i1 %52, label %.preheader.us.preheader, label %.loopexit

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter219 = and i64 %12, 3
  %168 = icmp ult i64 %12, 4
  %unroll_iter222 = and i64 %12, 9223372036854775804
  %lcmp.mod221.not = icmp eq i64 %xtraiter219, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge200.us
  %.3202.us = phi i64 [ %194, %._crit_edge200.us ], [ 0, %.preheader.us.preheader ]
  br i1 %168, label %._crit_edge200.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.0177198.us = phi i64 [ %188, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter223 = phi i64 [ %niter223.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %169 = load ptr, ptr %167, align 8, !tbaa !30
  %170 = getelementptr inbounds ptr, ptr %169, i64 %.3202.us
  %171 = load ptr, ptr %170, align 8, !tbaa !46
  %172 = getelementptr inbounds i8, ptr %171, i64 %.0177198.us
  store i8 0, ptr %172, align 1, !tbaa !47
  %173 = or disjoint i64 %.0177198.us, 1
  %174 = load ptr, ptr %167, align 8, !tbaa !30
  %175 = getelementptr inbounds ptr, ptr %174, i64 %.3202.us
  %176 = load ptr, ptr %175, align 8, !tbaa !46
  %177 = getelementptr inbounds i8, ptr %176, i64 %173
  store i8 0, ptr %177, align 1, !tbaa !47
  %178 = or disjoint i64 %.0177198.us, 2
  %179 = load ptr, ptr %167, align 8, !tbaa !30
  %180 = getelementptr inbounds ptr, ptr %179, i64 %.3202.us
  %181 = load ptr, ptr %180, align 8, !tbaa !46
  %182 = getelementptr inbounds i8, ptr %181, i64 %178
  store i8 0, ptr %182, align 1, !tbaa !47
  %183 = or disjoint i64 %.0177198.us, 3
  %184 = load ptr, ptr %167, align 8, !tbaa !30
  %185 = getelementptr inbounds ptr, ptr %184, i64 %.3202.us
  %186 = load ptr, ptr %185, align 8, !tbaa !46
  %187 = getelementptr inbounds i8, ptr %186, i64 %183
  store i8 0, ptr %187, align 1, !tbaa !47
  %188 = add nuw nsw i64 %.0177198.us, 4
  %niter223.next.3 = add i64 %niter223, 4
  %niter223.ncmp.3 = icmp eq i64 %niter223.next.3, %unroll_iter222
  br i1 %niter223.ncmp.3, label %._crit_edge200.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !48

._crit_edge200.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.0177198.us.unr = phi i64 [ 0, %.preheader.us ], [ %188, %.preheader.us.new ]
  br i1 %lcmp.mod221.not, label %._crit_edge200.us, label %.epil.preheader218

.epil.preheader218:                               ; preds = %._crit_edge200.us.unr-lcssa, %.epil.preheader218
  %.0177198.us.epil = phi i64 [ %193, %.epil.preheader218 ], [ %.0177198.us.unr, %._crit_edge200.us.unr-lcssa ]
  %epil.iter220 = phi i64 [ %epil.iter220.next, %.epil.preheader218 ], [ 0, %._crit_edge200.us.unr-lcssa ]
  %189 = load ptr, ptr %167, align 8, !tbaa !30
  %190 = getelementptr inbounds ptr, ptr %189, i64 %.3202.us
  %191 = load ptr, ptr %190, align 8, !tbaa !46
  %192 = getelementptr inbounds i8, ptr %191, i64 %.0177198.us.epil
  store i8 0, ptr %192, align 1, !tbaa !47
  %193 = add nuw nsw i64 %.0177198.us.epil, 1
  %epil.iter220.next = add i64 %epil.iter220, 1
  %epil.iter220.cmp.not = icmp eq i64 %epil.iter220.next, %xtraiter219
  br i1 %epil.iter220.cmp.not, label %._crit_edge200.us, label %.epil.preheader218, !llvm.loop !49

._crit_edge200.us:                                ; preds = %.epil.preheader218, %._crit_edge200.us.unr-lcssa
  %194 = add nuw nsw i64 %.3202.us, 1
  %exitcond207.not = icmp eq i64 %194, %1
  br i1 %exitcond207.not, label %.loopexit, label %.preheader.us, !llvm.loop !50

.loopexit:                                        ; preds = %._crit_edge200.us, %.preheader.lr.ph, %165, %159
  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_21decisionforestbuilderElPNS_9dfvotebufEPNS_8dfreportEPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %1, ptr noundef nonnull %8, ptr noundef %3, ptr noundef %4)
  %195 = getelementptr inbounds i8, ptr %2, i64 112
  call void @_ZN11alglib_impl14dfcreatebufferEPKNS_14decisionforestEPNS_20decisionforestbufferEPNS_8ae_stateE(ptr noundef %2, ptr noundef nonnull %195, ptr noundef %4)
  call void @_ZN11alglib_implL34dforest_estimatevariableimportanceEPNS_21decisionforestbuilderElPKNS_14decisionforestElPNS_8dfreportEPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %.0, ptr noundef %2, i64 noundef %1, ptr noundef %3, ptr noundef %4)
  %196 = load i64, ptr %19, align 8, !tbaa !21
  store i64 %196, ptr %17, align 8, !tbaa !20
  br label %197

197:                                              ; preds = %.loopexit, %30
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %4)
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 320, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 1368, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  ret void
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, 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 void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(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_poolEPKvlPFvPvS3_PNS_8ae_stateEbEPFvS4_ES6_(ptr noundef, ptr noundef, i64 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) local_unnamed_addr #3

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

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

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

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

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

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

; 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_21decisionforestbuilderElPNS_9dfvotebufEPNS_8dfreportEPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL34dforest_estimatevariableimportanceEPNS_21decisionforestbuilderElPKNS_14decisionforestElPNS_8dfreportEPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, i64 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 = { 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, !7, i64 264, !10, i64 272, !10, i64 336, !10, i64 400, !14, i64 464, !10, i64 472, !7, i64 536, !7, i64 544, !15, i64 552, !15, i64 688, !15, i64 824, !15, i64 960, !11, i64 1096, !17, i64 1104, !10, i64 1184}
!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, !12, i64 104}
!16 = !{!"_ZTSN11alglib_impl7ae_lockE", !13, i64 0, !12, i64 8, !11, i64 40}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !12, i64 40, !8, i64 72}
!18 = !{!6, !7, i64 16}
!19 = !{!6, !7, i64 24}
!20 = !{!6, !7, i64 536}
!21 = !{!6, !7, i64 544}
!22 = !{!6, !7, i64 264}
!23 = !{!7, !7, i64 0}
!24 = !{!6, !7, i64 0}
!25 = !{!26, !7, i64 0}
!26 = !{!"_ZTSN11alglib_impl14decisionforestE", !7, i64 0, !11, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !27, i64 112, !10, i64 240}
!27 = !{!"_ZTSN11alglib_impl20decisionforestbufferE", !10, i64 0, !10, i64 64}
!28 = !{!26, !7, i64 32}
!29 = !{!26, !7, i64 40}
!30 = !{!8, !8, i64 0}
!31 = !{!14, !14, i64 0}
!32 = !{!6, !14, i64 232}
!33 = !{!34, !7, i64 200}
!34 = !{!"_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, !10, i64 1176, !10, i64 1240, !10, i64 1304}
!35 = !{!34, !7, i64 400}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}
!39 = distinct !{!39, !37}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.unroll.disable"}
!42 = !{!43, !7, i64 64}
!43 = !{!"_ZTSN11alglib_impl9dftreebufE", !10, i64 0, !7, i64 64}
!44 = !{!6, !7, i64 248}
!45 = !{!6, !11, i64 1096}
!46 = !{!13, !13, i64 0}
!47 = !{!11, !11, i64 0}
!48 = distinct !{!48, !37}
!49 = distinct !{!49, !41}
!50 = distinct !{!50, !37}


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