; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (statistics)

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

@.str.39 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [47 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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl12pearsoncorrmEPNS_9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.alglib_impl::ae_frame", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca double, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store i64 %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %16 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %16, ptr noundef %11)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 64, i1 false)
  %17 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %17)
  %18 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %12, i64 noundef 0, i64 noundef 3, ptr noundef %18, i1 noundef zeroext true)
  %19 = load i64, ptr %7, align 8, !tbaa !9
  %20 = icmp sge i64 %19, 0
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef @.str.39, ptr noundef %21)
  %22 = load i64, ptr %8, align 8, !tbaa !9
  %23 = icmp sge i64 %22, 1
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef @.str.40, ptr noundef %24)
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %25, i32 0, i32 0
  %27 = load i64, ptr %26, align 8, !tbaa !11
  %28 = load i64, ptr %7, align 8, !tbaa !9
  %29 = icmp sge i64 %27, %28
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef @.str.41, ptr noundef %30)
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %31, i32 0, i32 1
  %33 = load i64, ptr %32, align 8, !tbaa !15
  %34 = load i64, ptr %8, align 8, !tbaa !9
  %35 = icmp sge i64 %33, %34
  br i1 %35, label %39, label %36

36:                                               ; preds = %5
  %37 = load i64, ptr %7, align 8, !tbaa !9
  %38 = icmp eq i64 %37, 0
  br label %39

39:                                               ; preds = %36, %5
  %40 = phi i1 [ true, %5 ], [ %38, %36 ]
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %40, ptr noundef @.str.42, ptr noundef %41)
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = load i64, ptr %7, align 8, !tbaa !9
  %44 = load i64, ptr %8, align 8, !tbaa !9
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %42, i64 noundef %43, i64 noundef %44, ptr noundef %45)
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %46, ptr noundef @.str.43, ptr noundef %47)
  %48 = load i64, ptr %8, align 8, !tbaa !9
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %48, ptr noundef %49)
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load i64, ptr %7, align 8, !tbaa !9
  %52 = load i64, ptr %8, align 8, !tbaa !9
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl4covmEPNS_9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef %50, i64 noundef %51, i64 noundef %52, ptr noundef %53, ptr noundef %54)
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %94, %39
  %56 = load i64, ptr %13, align 8, !tbaa !9
  %57 = load i64, ptr %8, align 8, !tbaa !9
  %58 = sub nsw i64 %57, 1
  %59 = icmp sle i64 %56, %58
  br i1 %59, label %60, label %97

60:                                               ; preds = %55
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %61, i32 0, i32 6
  %63 = load ptr, ptr %62, align 8, !tbaa !16
  %64 = load i64, ptr %13, align 8, !tbaa !9
  %65 = getelementptr inbounds ptr, ptr %63, i64 %64
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = load i64, ptr %13, align 8, !tbaa !9
  %68 = getelementptr inbounds double, ptr %66, i64 %67
  %69 = load double, ptr %68, align 8, !tbaa !17
  %70 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %69, double noundef 0.000000e+00)
  br i1 %70, label %71, label %88

71:                                               ; preds = %60
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %72, i32 0, i32 6
  %74 = load ptr, ptr %73, align 8, !tbaa !16
  %75 = load i64, ptr %13, align 8, !tbaa !9
  %76 = getelementptr inbounds ptr, ptr %74, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = load i64, ptr %13, align 8, !tbaa !9
  %79 = getelementptr inbounds double, ptr %77, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !17
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %80, ptr noundef %81)
  %83 = fdiv double 1.000000e+00, %82
  %84 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !16
  %86 = load i64, ptr %13, align 8, !tbaa !9
  %87 = getelementptr inbounds double, ptr %85, i64 %86
  store double %83, ptr %87, align 8, !tbaa !17
  br label %93

88:                                               ; preds = %60
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !16
  %91 = load i64, ptr %13, align 8, !tbaa !9
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  store double 0.000000e+00, ptr %92, align 8, !tbaa !17
  br label %93

93:                                               ; preds = %88, %71
  br label %94

94:                                               ; preds = %93
  %95 = load i64, ptr %13, align 8, !tbaa !9
  %96 = add nsw i64 %95, 1
  store i64 %96, ptr %13, align 8, !tbaa !9
  br label %55, !llvm.loop !19

97:                                               ; preds = %55
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %98

98:                                               ; preds = %144, %97
  %99 = load i64, ptr %13, align 8, !tbaa !9
  %100 = load i64, ptr %8, align 8, !tbaa !9
  %101 = sub nsw i64 %100, 1
  %102 = icmp sle i64 %99, %101
  br i1 %102, label %103, label %147

103:                                              ; preds = %98
  %104 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !16
  %106 = load i64, ptr %13, align 8, !tbaa !9
  %107 = getelementptr inbounds double, ptr %105, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !17
  store double %108, ptr %15, align 8, !tbaa !17
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %109

109:                                              ; preds = %140, %103
  %110 = load i64, ptr %14, align 8, !tbaa !9
  %111 = load i64, ptr %8, align 8, !tbaa !9
  %112 = sub nsw i64 %111, 1
  %113 = icmp sle i64 %110, %112
  br i1 %113, label %114, label %143

114:                                              ; preds = %109
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %115, i32 0, i32 6
  %117 = load ptr, ptr %116, align 8, !tbaa !16
  %118 = load i64, ptr %13, align 8, !tbaa !9
  %119 = getelementptr inbounds ptr, ptr %117, i64 %118
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  %121 = load i64, ptr %14, align 8, !tbaa !9
  %122 = getelementptr inbounds double, ptr %120, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !17
  %124 = load double, ptr %15, align 8, !tbaa !17
  %125 = fmul double %123, %124
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %127 = load ptr, ptr %126, align 8, !tbaa !16
  %128 = load i64, ptr %14, align 8, !tbaa !9
  %129 = getelementptr inbounds double, ptr %127, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !17
  %131 = fmul double %125, %130
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %132, i32 0, i32 6
  %134 = load ptr, ptr %133, align 8, !tbaa !16
  %135 = load i64, ptr %13, align 8, !tbaa !9
  %136 = getelementptr inbounds ptr, ptr %134, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = load i64, ptr %14, align 8, !tbaa !9
  %139 = getelementptr inbounds double, ptr %137, i64 %138
  store double %131, ptr %139, align 8, !tbaa !17
  br label %140

140:                                              ; preds = %114
  %141 = load i64, ptr %14, align 8, !tbaa !9
  %142 = add nsw i64 %141, 1
  store i64 %142, ptr %14, align 8, !tbaa !9
  br label %109, !llvm.loop !21

143:                                              ; preds = %109
  br label %144

144:                                              ; preds = %143
  %145 = load i64, ptr %13, align 8, !tbaa !9
  %146 = add nsw i64 %145, 1
  store i64 %146, ptr %13, align 8, !tbaa !9
  br label %98, !llvm.loop !22

147:                                              ; preds = %98
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %148)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  ret void
}

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

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) #2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 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 = distinct !{!21, !20}
!22 = distinct !{!22, !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"

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

@.str.39 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [47 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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl12pearsoncorrmEPNS_9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = alloca %"struct.alglib_impl::ae_frame", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %4, ptr noundef nonnull %6)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %3)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  %8 = icmp sgt i64 %1, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.39, ptr noundef %4)
  %9 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.40, ptr noundef %4)
  %10 = load i64, ptr %0, align 8, !tbaa !5
  %11 = icmp sge i64 %10, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.41, ptr noundef %4)
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load i64, ptr %12, align 8, !tbaa !13
  %14 = icmp sge i64 %13, %2
  %15 = icmp eq i64 %1, 0
  %16 = or i1 %15, %14
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.42, ptr noundef %4)
  %17 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %1, i64 noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.43, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl4covmEPNS_9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4)
  br i1 %9, label %.lr.ph, label %._crit_edge65

.lr.ph:                                           ; preds = %5
  %18 = getelementptr inbounds i8, ptr %3, i64 72
  %19 = getelementptr inbounds i8, ptr %7, i64 56
  br label %59

.preheader:                                       ; preds = %74
  br i1 %9, label %.lr.ph64, label %._crit_edge65

.lr.ph64:                                         ; preds = %.preheader
  %20 = getelementptr inbounds i8, ptr %7, i64 56
  %21 = getelementptr inbounds i8, ptr %3, i64 72
  %xtraiter = and i64 %2, 1
  %22 = icmp eq i64 %2, 1
  %unroll_iter = and i64 %2, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph61.us

.lr.ph61.us:                                      ; preds = %._crit_edge.us, %.lr.ph64
  %.163.us = phi i64 [ 0, %.lr.ph64 ], [ %58, %._crit_edge.us ]
  %23 = load ptr, ptr %20, align 8, !tbaa !14
  %24 = getelementptr inbounds double, ptr %23, i64 %.163.us
  %25 = load double, ptr %24, align 8, !tbaa !15
  br i1 %22, label %._crit_edge.us.unr-lcssa, label %.lr.ph61.us.new

.lr.ph61.us.new:                                  ; preds = %.lr.ph61.us, %.lr.ph61.us.new
  %.05360.us = phi i64 [ %47, %.lr.ph61.us.new ], [ 0, %.lr.ph61.us ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph61.us.new ], [ 0, %.lr.ph61.us ]
  %26 = load ptr, ptr %21, align 8, !tbaa !14
  %27 = getelementptr inbounds ptr, ptr %26, i64 %.163.us
  %28 = load ptr, ptr %27, align 8, !tbaa !17
  %29 = getelementptr inbounds double, ptr %28, i64 %.05360.us
  %30 = load double, ptr %29, align 8, !tbaa !15
  %31 = fmul double %25, %30
  %32 = load ptr, ptr %20, align 8, !tbaa !14
  %33 = getelementptr inbounds double, ptr %32, i64 %.05360.us
  %34 = load double, ptr %33, align 8, !tbaa !15
  %35 = fmul double %31, %34
  store double %35, ptr %29, align 8, !tbaa !15
  %36 = or disjoint i64 %.05360.us, 1
  %37 = load ptr, ptr %21, align 8, !tbaa !14
  %38 = getelementptr inbounds ptr, ptr %37, i64 %.163.us
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  %40 = getelementptr inbounds double, ptr %39, i64 %36
  %41 = load double, ptr %40, align 8, !tbaa !15
  %42 = fmul double %25, %41
  %43 = load ptr, ptr %20, align 8, !tbaa !14
  %44 = getelementptr inbounds double, ptr %43, i64 %36
  %45 = load double, ptr %44, align 8, !tbaa !15
  %46 = fmul double %42, %45
  store double %46, ptr %40, align 8, !tbaa !15
  %47 = add nuw nsw i64 %.05360.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 %.lr.ph61.us.new, !llvm.loop !18

._crit_edge.us.unr-lcssa:                         ; preds = %.lr.ph61.us.new, %.lr.ph61.us
  %.05360.us.unr = phi i64 [ 0, %.lr.ph61.us ], [ %47, %.lr.ph61.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
  %48 = load ptr, ptr %21, align 8, !tbaa !14
  %49 = getelementptr inbounds ptr, ptr %48, i64 %.163.us
  %50 = load ptr, ptr %49, align 8, !tbaa !17
  %51 = getelementptr inbounds double, ptr %50, i64 %.05360.us.unr
  %52 = load double, ptr %51, align 8, !tbaa !15
  %53 = fmul double %25, %52
  %54 = load ptr, ptr %20, align 8, !tbaa !14
  %55 = getelementptr inbounds double, ptr %54, i64 %.05360.us.unr
  %56 = load double, ptr %55, align 8, !tbaa !15
  %57 = fmul double %53, %56
  store double %57, ptr %51, align 8, !tbaa !15
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %58 = add nuw nsw i64 %.163.us, 1
  %exitcond67.not = icmp eq i64 %58, %2
  br i1 %exitcond67.not, label %._crit_edge65, label %.lr.ph61.us, !llvm.loop !20

59:                                               ; preds = %.lr.ph, %74
  %.058 = phi i64 [ 0, %.lr.ph ], [ %77, %74 ]
  %60 = load ptr, ptr %18, align 8, !tbaa !14
  %61 = getelementptr inbounds ptr, ptr %60, i64 %.058
  %62 = load ptr, ptr %61, align 8, !tbaa !17
  %63 = getelementptr inbounds double, ptr %62, i64 %.058
  %64 = load double, ptr %63, align 8, !tbaa !15
  %65 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %64, double noundef 0.000000e+00)
  br i1 %65, label %66, label %74

66:                                               ; preds = %59
  %67 = load ptr, ptr %18, align 8, !tbaa !14
  %68 = getelementptr inbounds ptr, ptr %67, i64 %.058
  %69 = load ptr, ptr %68, align 8, !tbaa !17
  %70 = getelementptr inbounds double, ptr %69, i64 %.058
  %71 = load double, ptr %70, align 8, !tbaa !15
  %72 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %71, ptr noundef %4)
  %73 = fdiv double 1.000000e+00, %72
  br label %74

74:                                               ; preds = %59, %66
  %.sink = phi double [ %73, %66 ], [ 0.000000e+00, %59 ]
  %75 = load ptr, ptr %19, align 8, !tbaa !14
  %76 = getelementptr inbounds double, ptr %75, i64 %.058
  store double %.sink, ptr %76, align 8, !tbaa !15
  %77 = add nuw nsw i64 %.058, 1
  %exitcond.not = icmp eq i64 %77, %2
  br i1 %exitcond.not, label %.preheader, label %59, !llvm.loop !21

._crit_edge65:                                    ; preds = %._crit_edge.us, %5, %.preheader
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %4)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  ret void
}

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

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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_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 = !{!16, !16, i64 0}
!16 = !{!"double", !8, i64 0}
!17 = !{!12, !12, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


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