; 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::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" }
%"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 }

@_ZN11alglib_implL24dforest_dfuncompressedv0E = external hidden global i64, align 8
@_ZN11alglib_implL22dforest_dfcompressedv0E = external hidden global i64, align 8
@.str.306 = external hidden unnamed_addr constant [33 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
declare dso_local void @_ZN11alglib_impl14dfcreatebufferEPKNS_14decisionforestEPNS_20decisionforestbufferEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl6dfcopyEPKNS_14decisionforestEPS0_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl21_decisionforest_clearEPv(ptr noundef %10)
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %11, i32 0, i32 0
  %13 = load i64, ptr %12, align 8, !tbaa !9
  %14 = load i64, ptr @_ZN11alglib_implL24dforest_dfuncompressedv0E, align 8, !tbaa !16
  %15 = icmp eq i64 %13, %14
  br i1 %15, label %16, label %67

16:                                               ; preds = %3
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %17, i32 0, i32 0
  %19 = load i64, ptr %18, align 8, !tbaa !9
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %20, i32 0, i32 0
  store i64 %19, ptr %21, align 8, !tbaa !9
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %22, i32 0, i32 2
  %24 = load i64, ptr %23, align 8, !tbaa !17
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %25, i32 0, i32 2
  store i64 %24, ptr %26, align 8, !tbaa !17
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %27, i32 0, i32 3
  %29 = load i64, ptr %28, align 8, !tbaa !18
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %30, i32 0, i32 3
  store i64 %29, ptr %31, align 8, !tbaa !18
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %32, i32 0, i32 4
  %34 = load i64, ptr %33, align 8, !tbaa !19
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %35, i32 0, i32 4
  store i64 %34, ptr %36, align 8, !tbaa !19
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %37, i32 0, i32 5
  %39 = load i64, ptr %38, align 8, !tbaa !20
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %40, i32 0, i32 5
  store i64 %39, ptr %41, align 8, !tbaa !20
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %42, i32 0, i32 6
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %44, i32 0, i32 5
  %46 = load i64, ptr %45, align 8, !tbaa !20
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %43, i64 noundef %46, ptr noundef %47)
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %48, i32 0, i32 6
  %50 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %51 = load ptr, ptr %50, align 8, !tbaa !21
  %52 = getelementptr inbounds double, ptr %51, i64 0
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %53, i32 0, i32 6
  %55 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %54, i32 0, i32 4
  %56 = load ptr, ptr %55, align 8, !tbaa !21
  %57 = getelementptr inbounds double, ptr %56, i64 0
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %58, i32 0, i32 5
  %60 = load i64, ptr %59, align 8, !tbaa !20
  %61 = sub nsw i64 %60, 1
  %62 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %61)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %52, i64 noundef 1, ptr noundef %57, i64 noundef 1, i64 noundef %62)
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %64, i32 0, i32 7
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14dfcreatebufferEPKNS_14decisionforestEPNS_20decisionforestbufferEPNS_8ae_stateE(ptr noundef %63, ptr noundef %65, ptr noundef %66)
  store i32 1, ptr %9, align 4
  br label %138

67:                                               ; preds = %3
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %68, i32 0, i32 0
  %70 = load i64, ptr %69, align 8, !tbaa !9
  %71 = load i64, ptr @_ZN11alglib_implL22dforest_dfcompressedv0E, align 8, !tbaa !16
  %72 = icmp eq i64 %70, %71
  br i1 %72, label %73, label %136

73:                                               ; preds = %67
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %74, i32 0, i32 0
  %76 = load i64, ptr %75, align 8, !tbaa !9
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %77, i32 0, i32 0
  store i64 %76, ptr %78, align 8, !tbaa !9
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %79, i32 0, i32 1
  %81 = load i8, ptr %80, align 8, !tbaa !22, !range !23, !noundef !24
  %82 = trunc i8 %81 to i1
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %83, i32 0, i32 1
  %85 = zext i1 %82 to i8
  store i8 %85, ptr %84, align 8, !tbaa !22
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %86, i32 0, i32 2
  %88 = load i64, ptr %87, align 8, !tbaa !17
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %89, i32 0, i32 2
  store i64 %88, ptr %90, align 8, !tbaa !17
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %91, i32 0, i32 3
  %93 = load i64, ptr %92, align 8, !tbaa !18
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %94, i32 0, i32 3
  store i64 %93, ptr %95, align 8, !tbaa !18
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %96, i32 0, i32 4
  %98 = load i64, ptr %97, align 8, !tbaa !19
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %99, i32 0, i32 4
  store i64 %98, ptr %100, align 8, !tbaa !19
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %101, i32 0, i32 8
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %102, i32 0, i32 0
  %104 = load i64, ptr %103, align 8, !tbaa !25
  store i64 %104, ptr %8, align 8, !tbaa !16
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %105, i32 0, i32 8
  %107 = load i64, ptr %8, align 8, !tbaa !16
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %106, i64 noundef %107, ptr noundef %108)
  store i64 0, ptr %7, align 8, !tbaa !16
  br label %109

109:                                              ; preds = %128, %73
  %110 = load i64, ptr %7, align 8, !tbaa !16
  %111 = load i64, ptr %8, align 8, !tbaa !16
  %112 = sub nsw i64 %111, 1
  %113 = icmp sle i64 %110, %112
  br i1 %113, label %114, label %131

114:                                              ; preds = %109
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %115, i32 0, i32 8
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %116, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !21
  %119 = load i64, ptr %7, align 8, !tbaa !16
  %120 = getelementptr inbounds i8, ptr %118, i64 %119
  %121 = load i8, ptr %120, align 1, !tbaa !21
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %122, i32 0, i32 8
  %124 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %123, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !21
  %126 = load i64, ptr %7, align 8, !tbaa !16
  %127 = getelementptr inbounds i8, ptr %125, i64 %126
  store i8 %121, ptr %127, align 1, !tbaa !21
  br label %128

128:                                              ; preds = %114
  %129 = load i64, ptr %7, align 8, !tbaa !16
  %130 = add nsw i64 %129, 1
  store i64 %130, ptr %7, align 8, !tbaa !16
  br label %109, !llvm.loop !26

131:                                              ; preds = %109
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::decisionforest", ptr %133, i32 0, i32 7
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14dfcreatebufferEPKNS_14decisionforestEPNS_20decisionforestbufferEPNS_8ae_stateE(ptr noundef %132, ptr noundef %134, ptr noundef %135)
  store i32 1, ptr %9, align 4
  br label %138

136:                                              ; preds = %67
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.306, ptr noundef %137)
  store i32 0, ptr %9, align 4
  br label %138

138:                                              ; preds = %136, %131, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  %139 = load i32, ptr %9, align 4
  switch i32 %139, label %141 [
    i32 0, label %140
    i32 1, label %140
  ]

140:                                              ; preds = %138, %138
  ret void

141:                                              ; preds = %138
  unreachable
}

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 = { 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_impl14decisionforestE", !11, i64 0, !12, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !13, i64 48, !15, i64 112, !13, i64 240}
!11 = !{!"long", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !12, i64 16, !14, i64 24, !7, i64 56}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!"_ZTSN11alglib_impl20decisionforestbufferE", !13, i64 0, !13, i64 64}
!16 = !{!11, !11, i64 0}
!17 = !{!10, !11, i64 16}
!18 = !{!10, !11, i64 24}
!19 = !{!10, !11, i64 32}
!20 = !{!10, !11, i64 40}
!21 = !{!7, !7, i64 0}
!22 = !{!10, !12, i64 8}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!10, !11, i64 240}
!26 = distinct !{!26, !27}
!27 = !{!"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"

@_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.306 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

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

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl6dfcopyEPKNS_14decisionforestEPS0_PNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl21_decisionforest_clearEPv(ptr noundef %1)
  %4 = load i64, ptr %0, align 8, !tbaa !5
  %5 = load i64, ptr @_ZN11alglib_implL24dforest_dfuncompressedv0E, align 8, !tbaa !15
  %6 = icmp eq i64 %4, %5
  br i1 %6, label %7, label %26

7:                                                ; preds = %3
  store i64 %4, ptr %1, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  %9 = getelementptr inbounds i8, ptr %1, i64 16
  %10 = load <2 x i64>, ptr %8, align 8, !tbaa !15
  store <2 x i64> %10, ptr %9, align 8, !tbaa !15
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  %12 = load i64, ptr %11, align 8, !tbaa !16
  %13 = getelementptr inbounds i8, ptr %1, i64 32
  store i64 %12, ptr %13, align 8, !tbaa !16
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  %15 = load i64, ptr %14, align 8, !tbaa !17
  %16 = getelementptr inbounds i8, ptr %1, i64 40
  store i64 %15, ptr %16, align 8, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %1, i64 48
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %15, ptr noundef %2)
  %18 = getelementptr inbounds i8, ptr %1, i64 104
  %19 = load ptr, ptr %18, align 8, !tbaa !18
  %20 = getelementptr inbounds i8, ptr %0, i64 104
  %21 = load ptr, ptr %20, align 8, !tbaa !18
  %22 = load i64, ptr %14, align 8, !tbaa !17
  %23 = add nsw i64 %22, -1
  %24 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %23)
  tail call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %19, i64 noundef 1, ptr noundef %21, i64 noundef 1, i64 noundef %24)
  %25 = getelementptr inbounds i8, ptr %1, i64 112
  tail call void @_ZN11alglib_impl14dfcreatebufferEPKNS_14decisionforestEPNS_20decisionforestbufferEPNS_8ae_stateE(ptr noundef nonnull %1, ptr noundef nonnull %25, ptr noundef %2)
  br label %78

26:                                               ; preds = %3
  %27 = load i64, ptr @_ZN11alglib_implL22dforest_dfcompressedv0E, align 8, !tbaa !15
  %28 = icmp eq i64 %4, %27
  br i1 %28, label %29, label %77

29:                                               ; preds = %26
  store i64 %4, ptr %1, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %0, i64 8
  %31 = load i8, ptr %30, align 8, !tbaa !19, !range !20, !noundef !21
  %32 = getelementptr inbounds i8, ptr %1, i64 8
  store i8 %31, ptr %32, align 8, !tbaa !19
  %33 = getelementptr inbounds i8, ptr %0, i64 16
  %34 = getelementptr inbounds i8, ptr %1, i64 16
  %35 = load <2 x i64>, ptr %33, align 8, !tbaa !15
  store <2 x i64> %35, ptr %34, align 8, !tbaa !15
  %36 = getelementptr inbounds i8, ptr %0, i64 32
  %37 = load i64, ptr %36, align 8, !tbaa !16
  %38 = getelementptr inbounds i8, ptr %1, i64 32
  store i64 %37, ptr %38, align 8, !tbaa !16
  %39 = getelementptr inbounds i8, ptr %0, i64 240
  %40 = load i64, ptr %39, align 8, !tbaa !22
  %41 = getelementptr inbounds i8, ptr %1, i64 240
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %41, i64 noundef %40, ptr noundef %2)
  %.not.not47 = icmp sgt i64 %40, 0
  br i1 %.not.not47, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %29
  %42 = getelementptr inbounds i8, ptr %0, i64 296
  %43 = getelementptr inbounds i8, ptr %1, i64 296
  %xtraiter = and i64 %40, 3
  %44 = icmp ult i64 %40, 4
  br i1 %44, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

45:                                               ; preds = %45, %.lr.ph.new
  %.048 = phi i64 [ 0, %.lr.ph.new ], [ %69, %45 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %45 ]
  %46 = load ptr, ptr %42, align 8, !tbaa !18
  %47 = getelementptr inbounds i8, ptr %46, i64 %.048
  %48 = load i8, ptr %47, align 1, !tbaa !18
  %49 = load ptr, ptr %43, align 8, !tbaa !18
  %50 = getelementptr inbounds i8, ptr %49, i64 %.048
  store i8 %48, ptr %50, align 1, !tbaa !18
  %51 = or disjoint i64 %.048, 1
  %52 = load ptr, ptr %42, align 8, !tbaa !18
  %53 = getelementptr inbounds i8, ptr %52, i64 %51
  %54 = load i8, ptr %53, align 1, !tbaa !18
  %55 = load ptr, ptr %43, align 8, !tbaa !18
  %56 = getelementptr inbounds i8, ptr %55, i64 %51
  store i8 %54, ptr %56, align 1, !tbaa !18
  %57 = or disjoint i64 %.048, 2
  %58 = load ptr, ptr %42, align 8, !tbaa !18
  %59 = getelementptr inbounds i8, ptr %58, i64 %57
  %60 = load i8, ptr %59, align 1, !tbaa !18
  %61 = load ptr, ptr %43, align 8, !tbaa !18
  %62 = getelementptr inbounds i8, ptr %61, i64 %57
  store i8 %60, ptr %62, align 1, !tbaa !18
  %63 = or disjoint i64 %.048, 3
  %64 = load ptr, ptr %42, align 8, !tbaa !18
  %65 = getelementptr inbounds i8, ptr %64, i64 %63
  %66 = load i8, ptr %65, align 1, !tbaa !18
  %67 = load ptr, ptr %43, align 8, !tbaa !18
  %68 = getelementptr inbounds i8, ptr %67, i64 %63
  store i8 %66, ptr %68, align 1, !tbaa !18
  %69 = add nuw nsw i64 %.048, 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 %45, !llvm.loop !23

._crit_edge.loopexit.unr-lcssa:                   ; preds = %45, %.lr.ph
  %.048.unr = phi i64 [ 0, %.lr.ph ], [ %69, %45 ]
  %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
  %.048.epil = phi i64 [ %75, %.epil.preheader ], [ %.048.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %70 = load ptr, ptr %42, align 8, !tbaa !18
  %71 = getelementptr inbounds i8, ptr %70, i64 %.048.epil
  %72 = load i8, ptr %71, align 1, !tbaa !18
  %73 = load ptr, ptr %43, align 8, !tbaa !18
  %74 = getelementptr inbounds i8, ptr %73, i64 %.048.epil
  store i8 %72, ptr %74, align 1, !tbaa !18
  %75 = add nuw nsw i64 %.048.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 !25

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %29
  %76 = getelementptr inbounds i8, ptr %1, i64 112
  tail call void @_ZN11alglib_impl14dfcreatebufferEPKNS_14decisionforestEPNS_20decisionforestbufferEPNS_8ae_stateE(ptr noundef nonnull %1, ptr noundef nonnull %76, ptr noundef %2)
  br label %78

77:                                               ; preds = %26
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.306, ptr noundef %2)
  br label %78

78:                                               ; preds = %77, %._crit_edge, %7
  ret void
}

attributes #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 #1 = { 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" }

!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_impl14decisionforestE", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !11, i64 48, !14, i64 112, !11, i64 240}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !12, i64 24, !8, i64 56}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"_ZTSN11alglib_impl20decisionforestbufferE", !11, i64 0, !11, i64 64}
!15 = !{!7, !7, i64 0}
!16 = !{!6, !7, i64 32}
!17 = !{!6, !7, i64 40}
!18 = !{!8, !8, i64 0}
!19 = !{!6, !10, i64 8}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!6, !7, i64 240}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.unroll.disable"}


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