; 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_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.1 = 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_implL24dforest_dfuncompressedv0E = external hidden global i64, align 8
@_ZN11alglib_implL22dforest_dfcompressedv0E = external hidden global i64, align 8
@.str.305 = external hidden unnamed_addr constant [55 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9dfprocessEPKNS_14decisionforestEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca double, align 8
  %12 = alloca i64, align 8
  %13 = alloca i8, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 0
  %16 = load i64, ptr %15, align 8, !tbaa !9
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %17, i32 0, i32 3
  %19 = load i64, ptr %18, align 8, !tbaa !14
  %20 = icmp slt i64 %16, %19
  br i1 %20, label %21, label %27

21:                                               ; preds = %4
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %23, i32 0, i32 3
  %25 = load i64, ptr %24, align 8, !tbaa !14
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef %25, ptr noundef %26)
  br label %27

27:                                               ; preds = %21, %4
  store i64 0, ptr %10, align 8, !tbaa !17
  br label %28

28:                                               ; preds = %41, %27
  %29 = load i64, ptr %10, align 8, !tbaa !17
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %30, i32 0, i32 3
  %32 = load i64, ptr %31, align 8, !tbaa !14
  %33 = sub nsw i64 %32, 1
  %34 = icmp sle i64 %29, %33
  br i1 %34, label %35, label %44

35:                                               ; preds = %28
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %36, i32 0, i32 4
  %38 = load ptr, ptr %37, align 8, !tbaa !18
  %39 = load i64, ptr %10, align 8, !tbaa !17
  %40 = getelementptr inbounds double, ptr %38, i64 %39
  store double 0.000000e+00, ptr %40, align 8, !tbaa !19
  br label %41

41:                                               ; preds = %35
  %42 = load i64, ptr %10, align 8, !tbaa !17
  %43 = add nsw i64 %42, 1
  store i64 %43, ptr %10, align 8, !tbaa !17
  br label %28, !llvm.loop !21

44:                                               ; preds = %28
  store i8 0, ptr %13, align 1, !tbaa !23
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %45, i32 0, i32 0
  %47 = load i64, ptr %46, align 8, !tbaa !24
  %48 = load i64, ptr @_ZN11alglib_implL24dforest_dfuncompressedv0E, align 8, !tbaa !17
  %49 = icmp eq i64 %47, %48
  br i1 %49, label %50, label %81

50:                                               ; preds = %44
  store i64 0, ptr %9, align 8, !tbaa !17
  store i64 0, ptr %10, align 8, !tbaa !17
  br label %51

51:                                               ; preds = %77, %50
  %52 = load i64, ptr %10, align 8, !tbaa !17
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %53, i32 0, i32 4
  %55 = load i64, ptr %54, align 8, !tbaa !25
  %56 = sub nsw i64 %55, 1
  %57 = icmp sle i64 %52, %56
  br i1 %57, label %58, label %80

58:                                               ; preds = %51
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = load i64, ptr %9, align 8, !tbaa !17
  %61 = load i64, ptr %9, align 8, !tbaa !17
  %62 = add nsw i64 %61, 1
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_implL37dforest_dfprocessinternaluncompressedEPKNS_14decisionforestEllPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef %59, i64 noundef %60, i64 noundef %62, ptr noundef %63, ptr noundef %64, ptr noundef %65)
  %66 = load i64, ptr %9, align 8, !tbaa !17
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %67, i32 0, i32 6
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %68, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !18
  %71 = load i64, ptr %9, align 8, !tbaa !17
  %72 = getelementptr inbounds double, ptr %70, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !19
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %73, ptr noundef %74)
  %76 = add nsw i64 %66, %75
  store i64 %76, ptr %9, align 8, !tbaa !17
  br label %77

77:                                               ; preds = %58
  %78 = load i64, ptr %10, align 8, !tbaa !17
  %79 = add nsw i64 %78, 1
  store i64 %79, ptr %10, align 8, !tbaa !17
  br label %51, !llvm.loop !26

80:                                               ; preds = %51
  store i8 1, ptr %13, align 1, !tbaa !23
  br label %81

81:                                               ; preds = %80, %44
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %82, i32 0, i32 0
  %84 = load i64, ptr %83, align 8, !tbaa !24
  %85 = load i64, ptr @_ZN11alglib_implL22dforest_dfcompressedv0E, align 8, !tbaa !17
  %86 = icmp eq i64 %84, %85
  br i1 %86, label %87, label %112

87:                                               ; preds = %81
  store i64 0, ptr %9, align 8, !tbaa !17
  store i64 0, ptr %10, align 8, !tbaa !17
  br label %88

88:                                               ; preds = %108, %87
  %89 = load i64, ptr %10, align 8, !tbaa !17
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %90, i32 0, i32 4
  %92 = load i64, ptr %91, align 8, !tbaa !25
  %93 = sub nsw i64 %92, 1
  %94 = icmp sle i64 %89, %93
  br i1 %94, label %95, label %111

95:                                               ; preds = %88
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %96, i32 0, i32 8
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = call noundef i64 @_ZN11alglib_implL20dforest_unstreamuintEPKNS_9ae_vectorEPlPNS_8ae_stateE(ptr noundef %97, ptr noundef %9, ptr noundef %98)
  store i64 %99, ptr %12, align 8, !tbaa !17
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = load i64, ptr %9, align 8, !tbaa !17
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_implL35dforest_dfprocessinternalcompressedEPKNS_14decisionforestElPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef %100, i64 noundef %101, ptr noundef %102, ptr noundef %103, ptr noundef %104)
  %105 = load i64, ptr %9, align 8, !tbaa !17
  %106 = load i64, ptr %12, align 8, !tbaa !17
  %107 = add nsw i64 %105, %106
  store i64 %107, ptr %9, align 8, !tbaa !17
  br label %108

108:                                              ; preds = %95
  %109 = load i64, ptr %10, align 8, !tbaa !17
  %110 = add nsw i64 %109, 1
  store i64 %110, ptr %10, align 8, !tbaa !17
  br label %88, !llvm.loop !27

111:                                              ; preds = %88
  store i8 1, ptr %13, align 1, !tbaa !23
  br label %112

112:                                              ; preds = %111, %81
  %113 = load i8, ptr %13, align 1, !tbaa !23, !range !28, !noundef !29
  %114 = trunc i8 %113 to i1
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %114, ptr noundef @.str.305, ptr noundef %115)
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %116, i32 0, i32 4
  %118 = load i64, ptr %117, align 8, !tbaa !25
  %119 = sitofp i64 %118 to double
  %120 = fdiv double 1.000000e+00, %119
  store double %120, ptr %11, align 8, !tbaa !19
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %121, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !18
  %124 = getelementptr inbounds double, ptr %123, i64 0
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %125, i32 0, i32 3
  %127 = load i64, ptr %126, align 8, !tbaa !14
  %128 = sub nsw i64 %127, 1
  %129 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %128)
  %130 = load double, ptr %11, align 8, !tbaa !19
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %124, i64 noundef 1, i64 noundef %129, double noundef %130)
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

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

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #1

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !12, i64 16, !13, i64 24, !7, i64 56}
!11 = !{!"long", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!15, !11, i64 24}
!15 = !{!"_ZTSN11alglib_impl14decisionforestE", !11, i64 0, !12, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !10, i64 48, !16, i64 112, !10, i64 240}
!16 = !{!"_ZTSN11alglib_impl20decisionforestbufferE", !10, i64 0, !10, i64 64}
!17 = !{!11, !11, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!12, !12, i64 0}
!24 = !{!15, !11, i64 0}
!25 = !{!15, !11, i64 32}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !22}
!28 = !{i8 0, i8 2}
!29 = !{}


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

@_ZN11alglib_implL24dforest_dfuncompressedv0E = external hidden local_unnamed_addr global i64, align 8
@_ZN11alglib_implL22dforest_dfcompressedv0E = external hidden local_unnamed_addr global i64, align 8
@.str.305 = external hidden unnamed_addr constant [55 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9dfprocessEPKNS_14decisionforestEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %6 = load i64, ptr %2, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load i64, ptr %7, align 8, !tbaa !13
  %9 = icmp slt i64 %6, %8
  br i1 %9, label %10, label %11

10:                                               ; preds = %4
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %2, i64 noundef %8, ptr noundef %3)
  %.pre = load i64, ptr %7, align 8, !tbaa !13
  br label %11

11:                                               ; preds = %10, %4
  %12 = phi i64 [ %.pre, %10 ], [ %8, %4 ]
  %.not.not42 = icmp sgt i64 %12, 0
  br i1 %.not.not42, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %11
  %13 = getelementptr inbounds i8, ptr %2, i64 56
  %xtraiter = and i64 %12, 3
  %14 = icmp ult i64 %12, 4
  br i1 %14, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %12, 9223372036854775804
  br label %15

15:                                               ; preds = %15, %.lr.ph.new
  %.03643 = phi i64 [ 0, %.lr.ph.new ], [ %27, %15 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %15 ]
  %16 = load ptr, ptr %13, align 8, !tbaa !16
  %17 = getelementptr inbounds double, ptr %16, i64 %.03643
  store double 0.000000e+00, ptr %17, align 8, !tbaa !17
  %18 = or disjoint i64 %.03643, 1
  %19 = load ptr, ptr %13, align 8, !tbaa !16
  %20 = getelementptr inbounds double, ptr %19, i64 %18
  store double 0.000000e+00, ptr %20, align 8, !tbaa !17
  %21 = or disjoint i64 %.03643, 2
  %22 = load ptr, ptr %13, align 8, !tbaa !16
  %23 = getelementptr inbounds double, ptr %22, i64 %21
  store double 0.000000e+00, ptr %23, align 8, !tbaa !17
  %24 = or disjoint i64 %.03643, 3
  %25 = load ptr, ptr %13, align 8, !tbaa !16
  %26 = getelementptr inbounds double, ptr %25, i64 %24
  store double 0.000000e+00, ptr %26, align 8, !tbaa !17
  %27 = add nuw nsw i64 %.03643, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %15, !llvm.loop !19

._crit_edge.loopexit.unr-lcssa:                   ; preds = %15, %.lr.ph
  %.03643.unr = phi i64 [ 0, %.lr.ph ], [ %27, %15 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.03643.epil = phi i64 [ %30, %.epil.preheader ], [ %.03643.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %28 = load ptr, ptr %13, align 8, !tbaa !16
  %29 = getelementptr inbounds double, ptr %28, i64 %.03643.epil
  store double 0.000000e+00, ptr %29, align 8, !tbaa !17
  %30 = add nuw nsw i64 %.03643.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !21

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %11
  %31 = load i64, ptr %0, align 8, !tbaa !23
  %32 = load i64, ptr @_ZN11alglib_implL24dforest_dfuncompressedv0E, align 8, !tbaa !24
  %33 = icmp eq i64 %31, %32
  br i1 %33, label %34, label %48

34:                                               ; preds = %._crit_edge
  %35 = getelementptr inbounds i8, ptr %0, i64 32
  %36 = load i64, ptr %35, align 8, !tbaa !25
  %.not.not3944 = icmp sgt i64 %36, 0
  br i1 %.not.not3944, label %.lr.ph47, label %.loopexit41

.lr.ph47:                                         ; preds = %34
  %37 = getelementptr inbounds i8, ptr %0, i64 104
  br label %38

38:                                               ; preds = %.lr.ph47, %38
  %.13745 = phi i64 [ 0, %.lr.ph47 ], [ %46, %38 ]
  %39 = phi i64 [ 0, %.lr.ph47 ], [ %45, %38 ]
  %40 = add nsw i64 %39, 1
  tail call void @_ZN11alglib_implL37dforest_dfprocessinternaluncompressedEPKNS_14decisionforestEllPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %39, i64 noundef %40, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3)
  %41 = load ptr, ptr %37, align 8, !tbaa !16
  %42 = getelementptr inbounds double, ptr %41, i64 %39
  %43 = load double, ptr %42, align 8, !tbaa !17
  %44 = tail call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %43, ptr noundef %3)
  %45 = add nsw i64 %44, %39
  %46 = add nuw nsw i64 %.13745, 1
  %47 = load i64, ptr %35, align 8, !tbaa !25
  %.not.not39 = icmp slt i64 %46, %47
  br i1 %.not.not39, label %38, label %.loopexit41.loopexit, !llvm.loop !26

.loopexit41.loopexit:                             ; preds = %38
  %.pre53.pre = load i64, ptr %0, align 8, !tbaa !23
  br label %.loopexit41

.loopexit41:                                      ; preds = %.loopexit41.loopexit, %34
  %.pre53 = phi i64 [ %31, %34 ], [ %.pre53.pre, %.loopexit41.loopexit ]
  %.lcssa = phi i64 [ 0, %34 ], [ %45, %.loopexit41.loopexit ]
  store i64 %.lcssa, ptr %5, align 8, !tbaa !24
  br label %48

48:                                               ; preds = %.loopexit41, %._crit_edge
  %49 = phi i64 [ %.pre53, %.loopexit41 ], [ %31, %._crit_edge ]
  %50 = load i64, ptr @_ZN11alglib_implL22dforest_dfcompressedv0E, align 8, !tbaa !24
  %51 = icmp eq i64 %49, %50
  br i1 %51, label %52, label %.loopexit

52:                                               ; preds = %48
  store i64 0, ptr %5, align 8, !tbaa !24
  %53 = getelementptr inbounds i8, ptr %0, i64 32
  %54 = load i64, ptr %53, align 8, !tbaa !25
  %.not.not4048 = icmp sgt i64 %54, 0
  br i1 %.not.not4048, label %.lr.ph51, label %.loopexit

.lr.ph51:                                         ; preds = %52
  %55 = getelementptr inbounds i8, ptr %0, i64 240
  br label %56

56:                                               ; preds = %.lr.ph51, %56
  %.249 = phi i64 [ 0, %.lr.ph51 ], [ %61, %56 ]
  %57 = call noundef i64 @_ZN11alglib_implL20dforest_unstreamuintEPKNS_9ae_vectorEPlPNS_8ae_stateE(ptr noundef nonnull %55, ptr noundef nonnull %5, ptr noundef %3)
  %58 = load i64, ptr %5, align 8, !tbaa !24
  call void @_ZN11alglib_implL35dforest_dfprocessinternalcompressedEPKNS_14decisionforestElPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %58, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3)
  %59 = load i64, ptr %5, align 8, !tbaa !24
  %60 = add nsw i64 %59, %57
  store i64 %60, ptr %5, align 8, !tbaa !24
  %61 = add nuw nsw i64 %.249, 1
  %62 = load i64, ptr %53, align 8, !tbaa !25
  %.not.not40 = icmp slt i64 %61, %62
  br i1 %.not.not40, label %56, label %.loopexit, !llvm.loop !27

.loopexit:                                        ; preds = %56, %52, %48
  %.1 = phi i1 [ %33, %48 ], [ true, %52 ], [ true, %56 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %.1, ptr noundef nonnull @.str.305, ptr noundef %3)
  %63 = getelementptr inbounds i8, ptr %0, i64 32
  %64 = load i64, ptr %63, align 8, !tbaa !25
  %65 = sitofp i64 %64 to double
  %66 = fdiv double 1.000000e+00, %65
  %67 = getelementptr inbounds i8, ptr %2, i64 56
  %68 = load ptr, ptr %67, align 8, !tbaa !16
  %69 = load i64, ptr %7, align 8, !tbaa !13
  %70 = add nsw i64 %69, -1
  %71 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %70)
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %68, i64 noundef 1, i64 noundef %71, double noundef %66)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  ret void
}

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

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #1

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 0}
!6 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 24}
!14 = !{!"_ZTSN11alglib_impl14decisionforestE", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !6, i64 48, !15, i64 112, !6, i64 240}
!15 = !{!"_ZTSN11alglib_impl20decisionforestbufferE", !6, i64 0, !6, i64 64}
!16 = !{!8, !8, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.unroll.disable"}
!23 = !{!14, !7, i64 0}
!24 = !{!7, !7, i64 0}
!25 = !{!14, !7, i64 32}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}


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