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

@.str.433 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.434 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.435 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.436 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.437 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.438 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.439 = external hidden unnamed_addr constant [69 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_impl19dfbuildersetdatasetEPNS_21decisionforestbuilderEPNS_9ae_matrixElllPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store i64 %3, ptr %10, align 8, !tbaa !9
  store i64 %4, ptr %11, align 8, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %15 = load i64, ptr %9, align 8, !tbaa !9
  %16 = icmp sge i64 %15, 1
  %17 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef @.str.433, ptr noundef %17)
  %18 = load i64, ptr %10, align 8, !tbaa !9
  %19 = icmp sge i64 %18, 1
  %20 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef @.str.434, ptr noundef %20)
  %21 = load i64, ptr %11, align 8, !tbaa !9
  %22 = icmp sge i64 %21, 1
  %23 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef @.str.435, ptr noundef %23)
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %24, i32 0, i32 0
  %26 = load i64, ptr %25, align 8, !tbaa !11
  %27 = load i64, ptr %9, align 8, !tbaa !9
  %28 = icmp sge i64 %26, %27
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %28, ptr noundef @.str.436, ptr noundef %29)
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %30, i32 0, i32 1
  %32 = load i64, ptr %31, align 8, !tbaa !15
  %33 = load i64, ptr %10, align 8, !tbaa !9
  %34 = add nsw i64 %33, 1
  %35 = icmp sge i64 %32, %34
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef @.str.437, ptr noundef %36)
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = load i64, ptr %9, align 8, !tbaa !9
  %39 = load i64, ptr %10, align 8, !tbaa !9
  %40 = add nsw i64 %39, 1
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %37, i64 noundef %38, i64 noundef %40, ptr noundef %41)
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef @.str.438, ptr noundef %43)
  %44 = load i64, ptr %11, align 8, !tbaa !9
  %45 = icmp sgt i64 %44, 1
  br i1 %45, label %46, label %77

46:                                               ; preds = %6
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %47

47:                                               ; preds = %73, %46
  %48 = load i64, ptr %13, align 8, !tbaa !9
  %49 = load i64, ptr %9, align 8, !tbaa !9
  %50 = sub nsw i64 %49, 1
  %51 = icmp sle i64 %48, %50
  br i1 %51, label %52, label %76

52:                                               ; preds = %47
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %53, i32 0, i32 6
  %55 = load ptr, ptr %54, align 8, !tbaa !16
  %56 = load i64, ptr %13, align 8, !tbaa !9
  %57 = getelementptr inbounds ptr, ptr %55, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = load i64, ptr %10, align 8, !tbaa !9
  %60 = getelementptr inbounds double, ptr %58, i64 %59
  %61 = load double, ptr %60, align 8, !tbaa !17
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %61, ptr noundef %62)
  store i64 %63, ptr %14, align 8, !tbaa !9
  %64 = load i64, ptr %14, align 8, !tbaa !9
  %65 = icmp sge i64 %64, 0
  br i1 %65, label %66, label %70

66:                                               ; preds = %52
  %67 = load i64, ptr %14, align 8, !tbaa !9
  %68 = load i64, ptr %11, align 8, !tbaa !9
  %69 = icmp slt i64 %67, %68
  br label %70

70:                                               ; preds = %66, %52
  %71 = phi i1 [ false, %52 ], [ %69, %66 ]
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %71, ptr noundef @.str.439, ptr noundef %72)
  br label %73

73:                                               ; preds = %70
  %74 = load i64, ptr %13, align 8, !tbaa !9
  %75 = add nsw i64 %74, 1
  store i64 %75, ptr %13, align 8, !tbaa !9
  br label %47, !llvm.loop !19

76:                                               ; preds = %47
  br label %77

77:                                               ; preds = %76, %6
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %78, i32 0, i32 0
  store i64 0, ptr %79, align 8, !tbaa !21
  %80 = load i64, ptr %9, align 8, !tbaa !9
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %81, i32 0, i32 1
  store i64 %80, ptr %82, align 8, !tbaa !26
  %83 = load i64, ptr %10, align 8, !tbaa !9
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %84, i32 0, i32 2
  store i64 %83, ptr %85, align 8, !tbaa !27
  %86 = load i64, ptr %11, align 8, !tbaa !9
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %87, i32 0, i32 3
  store i64 %86, ptr %88, align 8, !tbaa !28
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %89, i32 0, i32 4
  %91 = load i64, ptr %9, align 8, !tbaa !9
  %92 = load i64, ptr %10, align 8, !tbaa !9
  %93 = mul nsw i64 %91, %92
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %90, i64 noundef %93, ptr noundef %94)
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %130, %77
  %96 = load i64, ptr %13, align 8, !tbaa !9
  %97 = load i64, ptr %9, align 8, !tbaa !9
  %98 = sub nsw i64 %97, 1
  %99 = icmp sle i64 %96, %98
  br i1 %99, label %100, label %133

100:                                              ; preds = %95
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %101

101:                                              ; preds = %126, %100
  %102 = load i64, ptr %14, align 8, !tbaa !9
  %103 = load i64, ptr %10, align 8, !tbaa !9
  %104 = sub nsw i64 %103, 1
  %105 = icmp sle i64 %102, %104
  br i1 %105, label %106, label %129

106:                                              ; preds = %101
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %107, i32 0, i32 6
  %109 = load ptr, ptr %108, align 8, !tbaa !16
  %110 = load i64, ptr %13, align 8, !tbaa !9
  %111 = getelementptr inbounds ptr, ptr %109, i64 %110
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = load i64, ptr %14, align 8, !tbaa !9
  %114 = getelementptr inbounds double, ptr %112, i64 %113
  %115 = load double, ptr %114, align 8, !tbaa !17
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %116, i32 0, i32 4
  %118 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %117, i32 0, i32 4
  %119 = load ptr, ptr %118, align 8, !tbaa !16
  %120 = load i64, ptr %14, align 8, !tbaa !9
  %121 = load i64, ptr %9, align 8, !tbaa !9
  %122 = mul nsw i64 %120, %121
  %123 = load i64, ptr %13, align 8, !tbaa !9
  %124 = add nsw i64 %122, %123
  %125 = getelementptr inbounds double, ptr %119, i64 %124
  store double %115, ptr %125, align 8, !tbaa !17
  br label %126

126:                                              ; preds = %106
  %127 = load i64, ptr %14, align 8, !tbaa !9
  %128 = add nsw i64 %127, 1
  store i64 %128, ptr %14, align 8, !tbaa !9
  br label %101, !llvm.loop !29

129:                                              ; preds = %101
  br label %130

130:                                              ; preds = %129
  %131 = load i64, ptr %13, align 8, !tbaa !9
  %132 = add nsw i64 %131, 1
  store i64 %132, ptr %13, align 8, !tbaa !9
  br label %95, !llvm.loop !30

133:                                              ; preds = %95
  %134 = load i64, ptr %11, align 8, !tbaa !9
  %135 = icmp sgt i64 %134, 1
  br i1 %135, label %136, label %168

136:                                              ; preds = %133
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %137, i32 0, i32 6
  %139 = load i64, ptr %9, align 8, !tbaa !9
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %138, i64 noundef %139, ptr noundef %140)
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %141

141:                                              ; preds = %164, %136
  %142 = load i64, ptr %13, align 8, !tbaa !9
  %143 = load i64, ptr %9, align 8, !tbaa !9
  %144 = sub nsw i64 %143, 1
  %145 = icmp sle i64 %142, %144
  br i1 %145, label %146, label %167

146:                                              ; preds = %141
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %147, i32 0, i32 6
  %149 = load ptr, ptr %148, align 8, !tbaa !16
  %150 = load i64, ptr %13, align 8, !tbaa !9
  %151 = getelementptr inbounds ptr, ptr %149, i64 %150
  %152 = load ptr, ptr %151, align 8, !tbaa !5
  %153 = load i64, ptr %10, align 8, !tbaa !9
  %154 = getelementptr inbounds double, ptr %152, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !17
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  %157 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %155, ptr noundef %156)
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %158, i32 0, i32 6
  %160 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %159, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !16
  %162 = load i64, ptr %13, align 8, !tbaa !9
  %163 = getelementptr inbounds i64, ptr %161, i64 %162
  store i64 %157, ptr %163, align 8, !tbaa !9
  br label %164

164:                                              ; preds = %146
  %165 = load i64, ptr %13, align 8, !tbaa !9
  %166 = add nsw i64 %165, 1
  store i64 %166, ptr %13, align 8, !tbaa !9
  br label %141, !llvm.loop !31

167:                                              ; preds = %141
  br label %198

168:                                              ; preds = %133
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %169, i32 0, i32 5
  %171 = load i64, ptr %9, align 8, !tbaa !9
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %170, i64 noundef %171, ptr noundef %172)
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %173

173:                                              ; preds = %194, %168
  %174 = load i64, ptr %13, align 8, !tbaa !9
  %175 = load i64, ptr %9, align 8, !tbaa !9
  %176 = sub nsw i64 %175, 1
  %177 = icmp sle i64 %174, %176
  br i1 %177, label %178, label %197

178:                                              ; preds = %173
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %179, i32 0, i32 6
  %181 = load ptr, ptr %180, align 8, !tbaa !16
  %182 = load i64, ptr %13, align 8, !tbaa !9
  %183 = getelementptr inbounds ptr, ptr %181, i64 %182
  %184 = load ptr, ptr %183, align 8, !tbaa !5
  %185 = load i64, ptr %10, align 8, !tbaa !9
  %186 = getelementptr inbounds double, ptr %184, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !17
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = getelementptr inbounds %"struct.alglib_impl::decisionforestbuilder", ptr %188, i32 0, i32 5
  %190 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %189, i32 0, i32 4
  %191 = load ptr, ptr %190, align 8, !tbaa !16
  %192 = load i64, ptr %13, align 8, !tbaa !9
  %193 = getelementptr inbounds double, ptr %191, i64 %192
  store double %187, ptr %193, align 8, !tbaa !17
  br label %194

194:                                              ; preds = %178
  %195 = load i64, ptr %13, align 8, !tbaa !9
  %196 = add nsw i64 %195, 1
  store i64 %196, ptr %13, align 8, !tbaa !9
  br label %173, !llvm.loop !32

197:                                              ; preds = %173
  br label %198

198:                                              ; preds = %197, %167
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  ret void
}

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

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

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

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

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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!12, !10, i64 8}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !10, i64 0}
!22 = !{!"_ZTSN11alglib_impl21decisionforestbuilderE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !23, i64 32, !23, i64 96, !23, i64 160, !10, i64 224, !18, i64 232, !18, i64 240, !10, i64 248, !10, i64 256, !23, i64 264, !23, i64 328, !23, i64 392, !18, i64 456, !23, i64 464, !10, i64 528, !10, i64 536, !24, i64 544, !24, i64 688, !24, i64 832, !24, i64 976}
!23 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!24 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !25, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !10, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !14, i64 112}
!25 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !14, i64 8, !13, i64 40}
!26 = !{!22, !10, i64 8}
!27 = !{!22, !10, i64 16}
!28 = !{!22, !10, i64 24}
!29 = distinct !{!29, !20}
!30 = distinct !{!30, !20}
!31 = distinct !{!31, !20}
!32 = distinct !{!32, !20}


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

@.str.433 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.434 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.435 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.436 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.437 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.438 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.439 = external hidden unnamed_addr constant [69 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
define dso_local void @_ZN11alglib_impl19dfbuildersetdatasetEPNS_21decisionforestbuilderEPNS_9ae_matrixElllPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = icmp sgt i64 %2, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.433, ptr noundef %5)
  %8 = icmp sgt i64 %3, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.434, ptr noundef %5)
  %9 = icmp sgt i64 %4, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.435, ptr noundef %5)
  %10 = load i64, ptr %1, align 8, !tbaa !5
  %11 = icmp sge i64 %10, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.436, ptr noundef %5)
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = load i64, ptr %12, align 8, !tbaa !13
  %14 = add nsw i64 %3, 1
  %15 = icmp sgt i64 %13, %3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.437, ptr noundef %5)
  %16 = tail call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %2, i64 noundef %14, ptr noundef %5)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.438, ptr noundef %5)
  %17 = icmp sgt i64 %4, 1
  %or.cond = and i1 %17, %7
  br i1 %or.cond, label %.lr.ph, label %.loopexit85

.lr.ph:                                           ; preds = %6
  %18 = getelementptr inbounds i8, ptr %1, i64 72
  br label %19

19:                                               ; preds = %.lr.ph, %19
  %.07687 = phi i64 [ 0, %.lr.ph ], [ %27, %19 ]
  %20 = load ptr, ptr %18, align 8, !tbaa !14
  %21 = getelementptr inbounds ptr, ptr %20, i64 %.07687
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = getelementptr inbounds double, ptr %22, i64 %3
  %24 = load double, ptr %23, align 8, !tbaa !16
  %25 = tail call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %24, ptr noundef %5)
  %26 = icmp ult i64 %25, %4
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef nonnull @.str.439, ptr noundef %5)
  %27 = add nuw nsw i64 %.07687, 1
  %exitcond.not = icmp eq i64 %27, %2
  br i1 %exitcond.not, label %.loopexit85, label %19, !llvm.loop !18

.loopexit85:                                      ; preds = %19, %6
  store i64 0, ptr %0, align 8, !tbaa !20
  %28 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %2, ptr %28, align 8, !tbaa !25
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %3, ptr %29, align 8, !tbaa !26
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 %4, ptr %30, align 8, !tbaa !27
  %31 = getelementptr inbounds i8, ptr %0, i64 32
  %32 = mul nsw i64 %3, %2
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %31, i64 noundef %32, ptr noundef %5)
  br i1 %7, label %.preheader.lr.ph, label %._crit_edge93.thread

.preheader.lr.ph:                                 ; preds = %.loopexit85
  %33 = getelementptr inbounds i8, ptr %1, i64 72
  %34 = getelementptr inbounds i8, ptr %0, i64 88
  br i1 %8, label %.preheader.us.preheader, label %._crit_edge93.thread106

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter = and i64 %3, 1
  %35 = icmp eq i64 %3, 1
  %unroll_iter = and i64 %3, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.192.us = phi i64 [ %65, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  br i1 %35, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.089.us = phi i64 [ %55, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %36 = load ptr, ptr %33, align 8, !tbaa !14
  %37 = getelementptr inbounds ptr, ptr %36, i64 %.192.us
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = getelementptr inbounds double, ptr %38, i64 %.089.us
  %40 = load double, ptr %39, align 8, !tbaa !16
  %41 = load ptr, ptr %34, align 8, !tbaa !14
  %42 = mul nuw nsw i64 %.089.us, %2
  %43 = getelementptr double, ptr %41, i64 %42
  %44 = getelementptr double, ptr %43, i64 %.192.us
  store double %40, ptr %44, align 8, !tbaa !16
  %45 = or disjoint i64 %.089.us, 1
  %46 = load ptr, ptr %33, align 8, !tbaa !14
  %47 = getelementptr inbounds ptr, ptr %46, i64 %.192.us
  %48 = load ptr, ptr %47, align 8, !tbaa !15
  %49 = getelementptr inbounds double, ptr %48, i64 %45
  %50 = load double, ptr %49, align 8, !tbaa !16
  %51 = load ptr, ptr %34, align 8, !tbaa !14
  %52 = mul nuw nsw i64 %45, %2
  %53 = getelementptr double, ptr %51, i64 %52
  %54 = getelementptr double, ptr %53, i64 %.192.us
  store double %50, ptr %54, align 8, !tbaa !16
  %55 = add nuw nsw i64 %.089.us, 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.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !28

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us.new, %.preheader.us
  %.089.us.unr = phi i64 [ 0, %.preheader.us ], [ %55, %.preheader.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %56 = load ptr, ptr %33, align 8, !tbaa !14
  %57 = getelementptr inbounds ptr, ptr %56, i64 %.192.us
  %58 = load ptr, ptr %57, align 8, !tbaa !15
  %59 = getelementptr inbounds double, ptr %58, i64 %.089.us.unr
  %60 = load double, ptr %59, align 8, !tbaa !16
  %61 = load ptr, ptr %34, align 8, !tbaa !14
  %62 = mul nuw nsw i64 %.089.us.unr, %2
  %63 = getelementptr double, ptr %61, i64 %62
  %64 = getelementptr double, ptr %63, i64 %.192.us
  store double %60, ptr %64, align 8, !tbaa !16
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %65 = add nuw nsw i64 %.192.us, 1
  %exitcond103.not = icmp eq i64 %65, %2
  br i1 %exitcond103.not, label %._crit_edge93, label %.preheader.us, !llvm.loop !29

._crit_edge93:                                    ; preds = %._crit_edge.us
  br i1 %17, label %70, label %84

._crit_edge93.thread106:                          ; preds = %.preheader.lr.ph
  br i1 %17, label %.thread107, label %.thread108

.thread108:                                       ; preds = %._crit_edge93.thread106
  %66 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %66, i64 noundef %2, ptr noundef %5)
  br label %.lr.ph96

.thread107:                                       ; preds = %._crit_edge93.thread106
  %67 = getelementptr inbounds i8, ptr %0, i64 160
  tail call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %67, i64 noundef %2, ptr noundef %5)
  br label %.lr.ph99

._crit_edge93.thread:                             ; preds = %.loopexit85
  br i1 %17, label %.thread, label %.thread109

.thread109:                                       ; preds = %._crit_edge93.thread
  %68 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %68, i64 noundef %2, ptr noundef %5)
  br label %.loopexit

.thread:                                          ; preds = %._crit_edge93.thread
  %69 = getelementptr inbounds i8, ptr %0, i64 160
  tail call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %69, i64 noundef %2, ptr noundef %5)
  br label %.loopexit

70:                                               ; preds = %._crit_edge93
  %71 = getelementptr inbounds i8, ptr %0, i64 160
  tail call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %71, i64 noundef %2, ptr noundef %5)
  br i1 %7, label %.lr.ph99, label %.loopexit

.lr.ph99:                                         ; preds = %.thread107, %70
  %72 = getelementptr inbounds i8, ptr %1, i64 72
  %73 = getelementptr inbounds i8, ptr %0, i64 216
  br label %74

74:                                               ; preds = %.lr.ph99, %74
  %.298 = phi i64 [ 0, %.lr.ph99 ], [ %83, %74 ]
  %75 = load ptr, ptr %72, align 8, !tbaa !14
  %76 = getelementptr inbounds ptr, ptr %75, i64 %.298
  %77 = load ptr, ptr %76, align 8, !tbaa !15
  %78 = getelementptr inbounds double, ptr %77, i64 %3
  %79 = load double, ptr %78, align 8, !tbaa !16
  %80 = tail call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %79, ptr noundef %5)
  %81 = load ptr, ptr %73, align 8, !tbaa !14
  %82 = getelementptr inbounds i64, ptr %81, i64 %.298
  store i64 %80, ptr %82, align 8, !tbaa !30
  %83 = add nuw nsw i64 %.298, 1
  %exitcond105.not = icmp eq i64 %83, %2
  br i1 %exitcond105.not, label %.loopexit, label %74, !llvm.loop !31

84:                                               ; preds = %._crit_edge93
  %85 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %85, i64 noundef %2, ptr noundef %5)
  br i1 %7, label %.lr.ph96, label %.loopexit

.lr.ph96:                                         ; preds = %.thread108, %84
  %86 = getelementptr inbounds i8, ptr %1, i64 72
  %87 = getelementptr inbounds i8, ptr %0, i64 152
  %xtraiter114 = and i64 %2, 1
  %88 = icmp eq i64 %2, 1
  br i1 %88, label %.loopexit.loopexit112.unr-lcssa, label %.lr.ph96.new

.lr.ph96.new:                                     ; preds = %.lr.ph96
  %unroll_iter116 = and i64 %2, 9223372036854775806
  br label %89

89:                                               ; preds = %89, %.lr.ph96.new
  %.395 = phi i64 [ 0, %.lr.ph96.new ], [ %105, %89 ]
  %niter117 = phi i64 [ 0, %.lr.ph96.new ], [ %niter117.next.1, %89 ]
  %90 = load ptr, ptr %86, align 8, !tbaa !14
  %91 = getelementptr inbounds ptr, ptr %90, i64 %.395
  %92 = load ptr, ptr %91, align 8, !tbaa !15
  %93 = getelementptr inbounds double, ptr %92, i64 %3
  %94 = load double, ptr %93, align 8, !tbaa !16
  %95 = load ptr, ptr %87, align 8, !tbaa !14
  %96 = getelementptr inbounds double, ptr %95, i64 %.395
  store double %94, ptr %96, align 8, !tbaa !16
  %97 = or disjoint i64 %.395, 1
  %98 = load ptr, ptr %86, align 8, !tbaa !14
  %99 = getelementptr inbounds ptr, ptr %98, i64 %97
  %100 = load ptr, ptr %99, align 8, !tbaa !15
  %101 = getelementptr inbounds double, ptr %100, i64 %3
  %102 = load double, ptr %101, align 8, !tbaa !16
  %103 = load ptr, ptr %87, align 8, !tbaa !14
  %104 = getelementptr inbounds double, ptr %103, i64 %97
  store double %102, ptr %104, align 8, !tbaa !16
  %105 = add nuw nsw i64 %.395, 2
  %niter117.next.1 = add i64 %niter117, 2
  %niter117.ncmp.1 = icmp eq i64 %niter117.next.1, %unroll_iter116
  br i1 %niter117.ncmp.1, label %.loopexit.loopexit112.unr-lcssa, label %89, !llvm.loop !32

.loopexit.loopexit112.unr-lcssa:                  ; preds = %89, %.lr.ph96
  %.395.unr = phi i64 [ 0, %.lr.ph96 ], [ %105, %89 ]
  %lcmp.mod115.not = icmp eq i64 %xtraiter114, 0
  br i1 %lcmp.mod115.not, label %.loopexit, label %.loopexit.loopexit112.epilog-lcssa

.loopexit.loopexit112.epilog-lcssa:               ; preds = %.loopexit.loopexit112.unr-lcssa
  %106 = load ptr, ptr %86, align 8, !tbaa !14
  %107 = getelementptr inbounds ptr, ptr %106, i64 %.395.unr
  %108 = load ptr, ptr %107, align 8, !tbaa !15
  %109 = getelementptr inbounds double, ptr %108, i64 %3
  %110 = load double, ptr %109, align 8, !tbaa !16
  %111 = load ptr, ptr %87, align 8, !tbaa !14
  %112 = getelementptr inbounds double, ptr %111, i64 %.395.unr
  store double %110, ptr %112, align 8, !tbaa !16
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit112.epilog-lcssa, %.loopexit.loopexit112.unr-lcssa, %74, %.thread109, %.thread, %84, %70
  ret void
}

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

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

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

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_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!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 = !{!6, !7, i64 8}
!14 = !{!8, !8, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !7, i64 0}
!21 = !{!"_ZTSN11alglib_impl21decisionforestbuilderE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !22, i64 32, !22, i64 96, !22, i64 160, !7, i64 224, !17, i64 232, !17, i64 240, !7, i64 248, !7, i64 256, !22, i64 264, !22, i64 328, !22, i64 392, !17, i64 456, !22, i64 464, !7, i64 528, !7, i64 536, !23, i64 544, !23, i64 688, !23, i64 832, !23, i64 976}
!22 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!23 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !24, i64 0, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !7, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !11, i64 112}
!24 = !{!"_ZTSN11alglib_impl7ae_lockE", !12, i64 0, !11, i64 8, !10, i64 40}
!25 = !{!21, !7, i64 8}
!26 = !{!21, !7, i64 16}
!27 = !{!21, !7, i64 24}
!28 = distinct !{!28, !19}
!29 = distinct !{!29, !19}
!30 = !{!7, !7, i64 0}
!31 = distinct !{!31, !19}
!32 = distinct !{!32, !19}


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