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

; 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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl19dfbuildersetdatasetEPNS_21decisionforestbuilderEPNS_9ae_matrixElllPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl19dfbuildersetrndvarsEPNS_21decisionforestbuilderElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl26dfbuildersetsubsampleratioEPNS_21decisionforestbuilderEdPNS_8ae_stateE(ptr noundef, double noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl26dfbuilderbuildrandomforestEPNS_21decisionforestbuilderElPNS_14decisionforestEPNS_8dfreportEPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15dfbuildinternalEPNS_9ae_matrixElllllllPlPNS_14decisionforestEPNS_8dfreportEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, i64 noundef %6, i64 noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) #2 {
  %13 = alloca ptr, 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 i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"struct.alglib_impl::ae_frame", align 8
  %26 = alloca %"struct.alglib_impl::decisionforestbuilder", align 8
  %27 = alloca i64, align 8
  %28 = alloca i32, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  store i64 %1, ptr %14, align 8, !tbaa !9
  store i64 %2, ptr %15, align 8, !tbaa !9
  store i64 %3, ptr %16, align 8, !tbaa !9
  store i64 %4, ptr %17, align 8, !tbaa !9
  store i64 %5, ptr %18, align 8, !tbaa !9
  store i64 %6, ptr %19, align 8, !tbaa !9
  store i64 %7, ptr %20, align 8, !tbaa !9
  store ptr %8, ptr %21, align 8, !tbaa !5
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  store ptr %11, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 1120, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %29 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %29, ptr noundef %25)
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 1120, i1 false)
  %30 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 0, ptr %30, align 8, !tbaa !9
  %31 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl21_decisionforest_clearEPv(ptr noundef %31)
  %32 = load ptr, ptr %23, align 8, !tbaa !5
  call void @_ZN11alglib_impl15_dfreport_clearEPv(ptr noundef %32)
  %33 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl27_decisionforestbuilder_initEPvPNS_8ae_stateEb(ptr noundef %26, ptr noundef %33, i1 noundef zeroext true)
  %34 = load i64, ptr %14, align 8, !tbaa !9
  %35 = icmp slt i64 %34, 1
  br i1 %35, label %55, label %36

36:                                               ; preds = %12
  %37 = load i64, ptr %18, align 8, !tbaa !9
  %38 = icmp slt i64 %37, 1
  br i1 %38, label %55, label %39

39:                                               ; preds = %36
  %40 = load i64, ptr %18, align 8, !tbaa !9
  %41 = load i64, ptr %14, align 8, !tbaa !9
  %42 = icmp sgt i64 %40, %41
  br i1 %42, label %55, label %43

43:                                               ; preds = %39
  %44 = load i64, ptr %15, align 8, !tbaa !9
  %45 = icmp slt i64 %44, 1
  br i1 %45, label %55, label %46

46:                                               ; preds = %43
  %47 = load i64, ptr %16, align 8, !tbaa !9
  %48 = icmp slt i64 %47, 1
  br i1 %48, label %55, label %49

49:                                               ; preds = %46
  %50 = load i64, ptr %17, align 8, !tbaa !9
  %51 = icmp slt i64 %50, 1
  br i1 %51, label %55, label %52

52:                                               ; preds = %49
  %53 = load i64, ptr %19, align 8, !tbaa !9
  %54 = icmp slt i64 %53, 1
  br i1 %54, label %55, label %58

55:                                               ; preds = %52, %49, %46, %43, %39, %36, %12
  %56 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -1, ptr %56, align 8, !tbaa !9
  %57 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %57)
  store i32 1, ptr %28, align 4
  br label %123

58:                                               ; preds = %52
  %59 = load i64, ptr %16, align 8, !tbaa !9
  %60 = icmp sgt i64 %59, 1
  br i1 %60, label %61, label %102

61:                                               ; preds = %58
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %62

62:                                               ; preds = %98, %61
  %63 = load i64, ptr %27, align 8, !tbaa !9
  %64 = load i64, ptr %14, align 8, !tbaa !9
  %65 = sub nsw i64 %64, 1
  %66 = icmp sle i64 %63, %65
  br i1 %66, label %67, label %101

67:                                               ; preds = %62
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %68, i32 0, i32 6
  %70 = load ptr, ptr %69, align 8, !tbaa !11
  %71 = load i64, ptr %27, align 8, !tbaa !9
  %72 = getelementptr inbounds ptr, ptr %70, i64 %71
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = load i64, ptr %15, align 8, !tbaa !9
  %75 = getelementptr inbounds double, ptr %73, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !12
  %77 = load ptr, ptr %24, align 8, !tbaa !5
  %78 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %76, ptr noundef %77)
  %79 = icmp slt i64 %78, 0
  br i1 %79, label %94, label %80

80:                                               ; preds = %67
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %81, i32 0, i32 6
  %83 = load ptr, ptr %82, align 8, !tbaa !11
  %84 = load i64, ptr %27, align 8, !tbaa !9
  %85 = getelementptr inbounds ptr, ptr %83, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = load i64, ptr %15, align 8, !tbaa !9
  %88 = getelementptr inbounds double, ptr %86, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !12
  %90 = load ptr, ptr %24, align 8, !tbaa !5
  %91 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %89, ptr noundef %90)
  %92 = load i64, ptr %16, align 8, !tbaa !9
  %93 = icmp sge i64 %91, %92
  br i1 %93, label %94, label %97

94:                                               ; preds = %80, %67
  %95 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -2, ptr %95, align 8, !tbaa !9
  %96 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %96)
  store i32 1, ptr %28, align 4
  br label %123

97:                                               ; preds = %80
  br label %98

98:                                               ; preds = %97
  %99 = load i64, ptr %27, align 8, !tbaa !9
  %100 = add nsw i64 %99, 1
  store i64 %100, ptr %27, align 8, !tbaa !9
  br label %62, !llvm.loop !14

101:                                              ; preds = %62
  br label %102

102:                                              ; preds = %101, %58
  %103 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 1, ptr %103, align 8, !tbaa !9
  %104 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl15dfbuildercreateEPNS_21decisionforestbuilderEPNS_8ae_stateE(ptr noundef %26, ptr noundef %104)
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = load i64, ptr %14, align 8, !tbaa !9
  %107 = load i64, ptr %15, align 8, !tbaa !9
  %108 = load i64, ptr %16, align 8, !tbaa !9
  %109 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl19dfbuildersetdatasetEPNS_21decisionforestbuilderEPNS_9ae_matrixElllPNS_8ae_stateE(ptr noundef %26, ptr noundef %105, i64 noundef %106, i64 noundef %107, i64 noundef %108, ptr noundef %109)
  %110 = load i64, ptr %18, align 8, !tbaa !9
  %111 = sitofp i64 %110 to double
  %112 = load i64, ptr %14, align 8, !tbaa !9
  %113 = sitofp i64 %112 to double
  %114 = fdiv double %111, %113
  %115 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl26dfbuildersetsubsampleratioEPNS_21decisionforestbuilderEdPNS_8ae_stateE(ptr noundef %26, double noundef %114, ptr noundef %115)
  %116 = load i64, ptr %19, align 8, !tbaa !9
  %117 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl19dfbuildersetrndvarsEPNS_21decisionforestbuilderElPNS_8ae_stateE(ptr noundef %26, i64 noundef %116, ptr noundef %117)
  %118 = load i64, ptr %17, align 8, !tbaa !9
  %119 = load ptr, ptr %22, align 8, !tbaa !5
  %120 = load ptr, ptr %23, align 8, !tbaa !5
  %121 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl26dfbuilderbuildrandomforestEPNS_21decisionforestbuilderElPNS_14decisionforestEPNS_8dfreportEPNS_8ae_stateE(ptr noundef %26, i64 noundef %118, ptr noundef %119, ptr noundef %120, ptr noundef %121)
  %122 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %122)
  store i32 0, ptr %28, align 4
  br label %123

123:                                              ; preds = %102, %94, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 1120, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #4
  %124 = load i32, ptr %28, align 4
  switch i32 %124, label %126 [
    i32 0, label %125
    i32 1, label %125
  ]

125:                                              ; preds = %123, %123
  ret void

126:                                              ; preds = %123
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #3 = { "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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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

; 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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl19dfbuildersetdatasetEPNS_21decisionforestbuilderEPNS_9ae_matrixElllPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl19dfbuildersetrndvarsEPNS_21decisionforestbuilderElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl26dfbuildersetsubsampleratioEPNS_21decisionforestbuilderEdPNS_8ae_stateE(ptr noundef, double noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl26dfbuilderbuildrandomforestEPNS_21decisionforestbuilderElPNS_14decisionforestEPNS_8dfreportEPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15dfbuildinternalEPNS_9ae_matrixElllllllPlPNS_14decisionforestEPNS_8dfreportEPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, i64 noundef %6, i64 noundef %7, ptr nocapture noundef writeonly %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) local_unnamed_addr #2 {
  %13 = alloca %"struct.alglib_impl::ae_frame", align 8
  %14 = alloca %"struct.alglib_impl::decisionforestbuilder", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 1120, ptr nonnull %14) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %11, ptr noundef nonnull %13)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1120) %14, i8 0, i64 1120, i1 false)
  store i64 0, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl21_decisionforest_clearEPv(ptr noundef %9)
  call void @_ZN11alglib_impl15_dfreport_clearEPv(ptr noundef %10)
  call void @_ZN11alglib_impl27_decisionforestbuilder_initEPvPNS_8ae_stateEb(ptr noundef nonnull %14, ptr noundef %11, i1 noundef zeroext true)
  %15 = icmp slt i64 %1, 1
  %16 = icmp slt i64 %5, 1
  %or.cond = or i1 %15, %16
  br i1 %or.cond, label %23, label %17

17:                                               ; preds = %12
  %18 = icmp ugt i64 %5, %1
  %19 = icmp slt i64 %2, 1
  %or.cond3 = or i1 %19, %18
  %20 = icmp slt i64 %3, 1
  %or.cond5 = or i1 %20, %or.cond3
  %21 = icmp slt i64 %4, 1
  %or.cond7 = or i1 %21, %or.cond5
  %22 = icmp slt i64 %6, 1
  %or.cond9 = or i1 %22, %or.cond7
  br i1 %or.cond9, label %23, label %24

23:                                               ; preds = %17, %12
  store i64 -1, ptr %8, align 8, !tbaa !5
  br label %48

24:                                               ; preds = %17
  %25 = icmp ugt i64 %3, 1
  br i1 %25, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %24
  %26 = getelementptr inbounds i8, ptr %0, i64 72
  br label %29

27:                                               ; preds = %37
  %28 = add nuw nsw i64 %.061, 1
  %exitcond.not = icmp eq i64 %28, %1
  br i1 %exitcond.not, label %.loopexit, label %29, !llvm.loop !9

29:                                               ; preds = %.lr.ph, %27
  %.061 = phi i64 [ 0, %.lr.ph ], [ %28, %27 ]
  %30 = load ptr, ptr %26, align 8, !tbaa !11
  %31 = getelementptr inbounds ptr, ptr %30, i64 %.061
  %32 = load ptr, ptr %31, align 8, !tbaa !12
  %33 = getelementptr inbounds double, ptr %32, i64 %2
  %34 = load double, ptr %33, align 8, !tbaa !14
  %35 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %34, ptr noundef %11)
  %36 = icmp slt i64 %35, 0
  br i1 %36, label %44, label %37

37:                                               ; preds = %29
  %38 = load ptr, ptr %26, align 8, !tbaa !11
  %39 = getelementptr inbounds ptr, ptr %38, i64 %.061
  %40 = load ptr, ptr %39, align 8, !tbaa !12
  %41 = getelementptr inbounds double, ptr %40, i64 %2
  %42 = load double, ptr %41, align 8, !tbaa !14
  %43 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %42, ptr noundef %11)
  %.not = icmp slt i64 %43, %3
  br i1 %.not, label %27, label %44

44:                                               ; preds = %37, %29
  store i64 -2, ptr %8, align 8, !tbaa !5
  br label %48

.loopexit:                                        ; preds = %27, %24
  store i64 1, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl15dfbuildercreateEPNS_21decisionforestbuilderEPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef %11)
  call void @_ZN11alglib_impl19dfbuildersetdatasetEPNS_21decisionforestbuilderEPNS_9ae_matrixElllPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %11)
  %45 = uitofp nneg i64 %5 to double
  %46 = uitofp nneg i64 %1 to double
  %47 = fdiv double %45, %46
  call void @_ZN11alglib_impl26dfbuildersetsubsampleratioEPNS_21decisionforestbuilderEdPNS_8ae_stateE(ptr noundef nonnull %14, double noundef %47, ptr noundef %11)
  call void @_ZN11alglib_impl19dfbuildersetrndvarsEPNS_21decisionforestbuilderElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %6, ptr noundef %11)
  call void @_ZN11alglib_impl26dfbuilderbuildrandomforestEPNS_21decisionforestbuilderElPNS_14decisionforestEPNS_8dfreportEPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %4, ptr noundef %9, ptr noundef %10, ptr noundef %11)
  br label %48

48:                                               ; preds = %.loopexit, %44, %23
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %11)
  call void @llvm.lifetime.end.p0(i64 1120, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #4
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #3 = { "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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}


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