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

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

@.str.10 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @abort() #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11alglib_impl9ae_sizeofEl(i64 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl14ae_check_zerosEPKvl(ptr noundef, i64 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl10ae_db_initEPNS_12ae_dyn_blockElPNS_8ae_stateEb(ptr noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl26ae_matrix_init_attach_to_xEPNS_9ae_matrixEPNS_8x_matrixEPNS_8ae_stateEb(ptr noundef %0, ptr noundef %1, ptr noundef %2, i1 noundef zeroext %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  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
  %15 = zext i1 %3 to i8
  store i8 %15, ptr %8, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %19, label %18

18:                                               ; preds = %4
  call void @abort() #5
  unreachable

19:                                               ; preds = %4
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = call noundef zeroext i1 @_ZN11alglib_impl14ae_check_zerosEPKvl(ptr noundef %20, i64 noundef 80)
  br i1 %21, label %23, label %22

22:                                               ; preds = %19
  call void @abort() #5
  unreachable

23:                                               ; preds = %19
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.alglib_impl::x_matrix", ptr %24, i32 0, i32 0
  %26 = load i64, ptr %25, align 8, !tbaa !11
  store i64 %26, ptr %9, align 8, !tbaa !14
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::x_matrix", ptr %27, i32 0, i32 1
  %29 = load i64, ptr %28, align 8, !tbaa !16
  store i64 %29, ptr %10, align 8, !tbaa !14
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::x_matrix", ptr %30, i32 0, i32 1
  %32 = load i64, ptr %31, align 8, !tbaa !16
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.alglib_impl::x_matrix", ptr %33, i32 0, i32 2
  %35 = load i64, ptr %34, align 8, !tbaa !17
  %36 = icmp eq i64 %32, %35
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef @.str.10, ptr noundef %37)
  %38 = load i64, ptr %9, align 8, !tbaa !14
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::x_matrix", ptr %39, i32 0, i32 0
  %41 = load i64, ptr %40, align 8, !tbaa !11
  %42 = icmp eq i64 %38, %41
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef @.str.11, ptr noundef %43)
  %44 = load i64, ptr %10, align 8, !tbaa !14
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::x_matrix", ptr %45, i32 0, i32 1
  %47 = load i64, ptr %46, align 8, !tbaa !16
  %48 = icmp eq i64 %44, %47
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.11, ptr noundef %49)
  %50 = load i64, ptr %9, align 8, !tbaa !14
  %51 = icmp sge i64 %50, 0
  br i1 %51, label %52, label %55

52:                                               ; preds = %23
  %53 = load i64, ptr %10, align 8, !tbaa !14
  %54 = icmp sge i64 %53, 0
  br label %55

55:                                               ; preds = %52, %23
  %56 = phi i1 [ false, %23 ], [ %54, %52 ]
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %56, ptr noundef @.str.12, ptr noundef %57)
  %58 = load i64, ptr %9, align 8, !tbaa !14
  %59 = icmp eq i64 %58, 0
  br i1 %59, label %63, label %60

60:                                               ; preds = %55
  %61 = load i64, ptr %10, align 8, !tbaa !14
  %62 = icmp eq i64 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %60, %55
  store i64 0, ptr %9, align 8, !tbaa !14
  store i64 0, ptr %10, align 8, !tbaa !14
  br label %64

64:                                               ; preds = %63, %60
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %65, i32 0, i32 4
  store i8 1, ptr %66, align 8, !tbaa !18
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %67, i32 0, i32 0
  store i64 0, ptr %68, align 8, !tbaa !21
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %69, i32 0, i32 1
  store i64 0, ptr %70, align 8, !tbaa !22
  %71 = load i64, ptr %10, align 8, !tbaa !14
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %72, i32 0, i32 2
  store i64 %71, ptr %73, align 8, !tbaa !23
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.alglib_impl::x_matrix", ptr %74, i32 0, i32 3
  %76 = load i64, ptr %75, align 8, !tbaa !24
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %77, i32 0, i32 3
  store i64 %76, ptr %78, align 8, !tbaa !25
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %79, i32 0, i32 6
  store ptr null, ptr %80, align 8, !tbaa !26
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %81, i32 0, i32 5
  %83 = load i64, ptr %9, align 8, !tbaa !14
  %84 = mul nsw i64 %83, 8
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = load i8, ptr %8, align 1, !tbaa !9, !range !27, !noundef !28
  %87 = trunc i8 %86 to i1
  call void @_ZN11alglib_impl10ae_db_initEPNS_12ae_dyn_blockElPNS_8ae_stateEb(ptr noundef %82, i64 noundef %84, ptr noundef %85, i1 noundef zeroext %87)
  %88 = load i64, ptr %9, align 8, !tbaa !14
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %89, i32 0, i32 0
  store i64 %88, ptr %90, align 8, !tbaa !21
  %91 = load i64, ptr %10, align 8, !tbaa !14
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %92, i32 0, i32 1
  store i64 %91, ptr %93, align 8, !tbaa !22
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %94, i32 0, i32 0
  %96 = load i64, ptr %95, align 8, !tbaa !21
  %97 = icmp sgt i64 %96, 0
  br i1 %97, label %98, label %140

98:                                               ; preds = %64
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %99, i32 0, i32 1
  %101 = load i64, ptr %100, align 8, !tbaa !22
  %102 = icmp sgt i64 %101, 0
  br i1 %102, label %103, label %140

103:                                              ; preds = %98
  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 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::x_matrix", ptr %104, i32 0, i32 6
  %106 = load ptr, ptr %105, align 8, !tbaa !26
  store ptr %106, ptr %13, align 8, !tbaa !5
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %107, i32 0, i32 2
  %109 = load i64, ptr %108, align 8, !tbaa !23
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %110, i32 0, i32 3
  %112 = load i64, ptr %111, align 8, !tbaa !25
  %113 = call noundef i64 @_ZN11alglib_impl9ae_sizeofEl(i64 noundef %112)
  %114 = mul nsw i64 %109, %113
  store i64 %114, ptr %12, align 8, !tbaa !14
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %115, i32 0, i32 5
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_dyn_block", ptr %116, i32 0, i32 2
  %118 = load volatile ptr, ptr %117, align 8, !tbaa !29
  store ptr %118, ptr %14, align 8, !tbaa !5
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %120, i32 0, i32 6
  store ptr %119, ptr %121, align 8, !tbaa !26
  store i64 0, ptr %11, align 8, !tbaa !14
  br label %122

122:                                              ; preds = %133, %103
  %123 = load i64, ptr %11, align 8, !tbaa !14
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %124, i32 0, i32 0
  %126 = load i64, ptr %125, align 8, !tbaa !21
  %127 = icmp slt i64 %123, %126
  br i1 %127, label %128, label %139

128:                                              ; preds = %122
  %129 = load ptr, ptr %13, align 8, !tbaa !5
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = load i64, ptr %11, align 8, !tbaa !14
  %132 = getelementptr inbounds ptr, ptr %130, i64 %131
  store ptr %129, ptr %132, align 8, !tbaa !5
  br label %133

133:                                              ; preds = %128
  %134 = load i64, ptr %11, align 8, !tbaa !14
  %135 = add nsw i64 %134, 1
  store i64 %135, ptr %11, align 8, !tbaa !14
  %136 = load i64, ptr %12, align 8, !tbaa !14
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = getelementptr inbounds i8, ptr %137, i64 %136
  store ptr %138, ptr %13, align 8, !tbaa !5
  br label %122, !llvm.loop !30

139:                                              ; preds = %122
  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 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %140

140:                                              ; preds = %139, %98, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

attributes #0 = { noreturn nounwind "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nounwind }
attributes #5 = { noreturn 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN11alglib_impl8x_matrixE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !7, i64 48}
!13 = !{!"long long", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!12, !13, i64 8}
!17 = !{!12, !13, i64 16}
!18 = !{!19, !10, i64 32}
!19 = !{!"_ZTSN11alglib_impl9ae_matrixE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !10, i64 32, !20, i64 40, !7, i64 72}
!20 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!21 = !{!19, !15, i64 0}
!22 = !{!19, !15, i64 8}
!23 = !{!19, !15, i64 16}
!24 = !{!12, !13, i64 24}
!25 = !{!19, !15, i64 24}
!26 = !{!7, !7, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!19, !6, i64 56}
!30 = distinct !{!30, !31}
!31 = !{!"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"

@.str.10 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11alglib_impl9ae_sizeofEl(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl14ae_check_zerosEPKvl(ptr noundef, i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl26ae_matrix_init_attach_to_xEPNS_9ae_matrixEPNS_8x_matrixEPNS_8ae_stateEb(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, i1 noundef zeroext %3) local_unnamed_addr #2 {
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %5, label %6

5:                                                ; preds = %4
  tail call void @abort() #4
  unreachable

6:                                                ; preds = %4
  %7 = tail call noundef zeroext i1 @_ZN11alglib_impl14ae_check_zerosEPKvl(ptr noundef %0, i64 noundef 80)
  br i1 %7, label %9, label %8

8:                                                ; preds = %6
  tail call void @abort() #4
  unreachable

9:                                                ; preds = %6
  %10 = load i64, ptr %1, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !10
  %13 = getelementptr inbounds i8, ptr %1, i64 16
  %14 = load i64, ptr %13, align 8, !tbaa !11
  %15 = icmp eq i64 %12, %14
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.10, ptr noundef nonnull %2)
  %16 = load i64, ptr %1, align 8, !tbaa !5
  %17 = icmp eq i64 %10, %16
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.11, ptr noundef nonnull %2)
  %18 = load i64, ptr %11, align 8, !tbaa !10
  %19 = icmp eq i64 %12, %18
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.11, ptr noundef nonnull %2)
  %20 = or i64 %12, %10
  %21 = icmp sgt i64 %20, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.12, ptr noundef nonnull %2)
  %22 = icmp eq i64 %10, 0
  %23 = icmp eq i64 %12, 0
  %spec.select = select i1 %22, i64 0, i64 %12
  %spec.select56 = select i1 %23, i64 0, i64 %10
  %24 = getelementptr inbounds i8, ptr %0, i64 32
  store i8 1, ptr %24, align 8, !tbaa !12
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  %26 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %0, i8 0, i64 16, i1 false)
  store i64 %spec.select, ptr %26, align 8, !tbaa !18
  %27 = getelementptr inbounds i8, ptr %1, i64 24
  %28 = load i64, ptr %27, align 8, !tbaa !19
  %29 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 %28, ptr %29, align 8, !tbaa !20
  %30 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr null, ptr %30, align 8, !tbaa !21
  %31 = getelementptr inbounds i8, ptr %0, i64 40
  %32 = shl nsw i64 %spec.select56, 3
  tail call void @_ZN11alglib_impl10ae_db_initEPNS_12ae_dyn_blockElPNS_8ae_stateEb(ptr noundef nonnull %31, i64 noundef %32, ptr noundef nonnull %2, i1 noundef zeroext %3)
  store i64 %spec.select56, ptr %0, align 8, !tbaa !22
  store i64 %spec.select, ptr %25, align 8, !tbaa !23
  %33 = icmp sgt i64 %spec.select56, 0
  %34 = icmp sgt i64 %spec.select, 0
  %or.cond57 = and i1 %34, %33
  br i1 %or.cond57, label %35, label %.loopexit

35:                                               ; preds = %9
  %36 = getelementptr inbounds i8, ptr %1, i64 48
  %37 = load ptr, ptr %36, align 8, !tbaa !21
  %38 = load i64, ptr %26, align 8, !tbaa !18
  %39 = load i64, ptr %29, align 8, !tbaa !20
  %40 = tail call noundef i64 @_ZN11alglib_impl9ae_sizeofEl(i64 noundef %39)
  %41 = mul nsw i64 %40, %38
  %42 = getelementptr inbounds i8, ptr %0, i64 56
  %43 = load volatile ptr, ptr %42, align 8, !tbaa !24
  store ptr %43, ptr %30, align 8, !tbaa !21
  %44 = load i64, ptr %0, align 8, !tbaa !22
  %45 = icmp sgt i64 %44, 0
  br i1 %45, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %35
  %xtraiter = and i64 %44, 7
  %46 = icmp ult i64 %44, 8
  br i1 %46, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %44, 9223372036854775800
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.05059 = phi ptr [ %37, %.lr.ph.preheader.new ], [ %70, %.lr.ph ]
  %.05258 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %69, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.7, %.lr.ph ]
  %47 = getelementptr inbounds ptr, ptr %43, i64 %.05258
  store ptr %.05059, ptr %47, align 8, !tbaa !25
  %48 = or disjoint i64 %.05258, 1
  %49 = getelementptr inbounds i8, ptr %.05059, i64 %41
  %50 = getelementptr inbounds ptr, ptr %43, i64 %48
  store ptr %49, ptr %50, align 8, !tbaa !25
  %51 = or disjoint i64 %.05258, 2
  %52 = getelementptr inbounds i8, ptr %49, i64 %41
  %53 = getelementptr inbounds ptr, ptr %43, i64 %51
  store ptr %52, ptr %53, align 8, !tbaa !25
  %54 = or disjoint i64 %.05258, 3
  %55 = getelementptr inbounds i8, ptr %52, i64 %41
  %56 = getelementptr inbounds ptr, ptr %43, i64 %54
  store ptr %55, ptr %56, align 8, !tbaa !25
  %57 = or disjoint i64 %.05258, 4
  %58 = getelementptr inbounds i8, ptr %55, i64 %41
  %59 = getelementptr inbounds ptr, ptr %43, i64 %57
  store ptr %58, ptr %59, align 8, !tbaa !25
  %60 = or disjoint i64 %.05258, 5
  %61 = getelementptr inbounds i8, ptr %58, i64 %41
  %62 = getelementptr inbounds ptr, ptr %43, i64 %60
  store ptr %61, ptr %62, align 8, !tbaa !25
  %63 = or disjoint i64 %.05258, 6
  %64 = getelementptr inbounds i8, ptr %61, i64 %41
  %65 = getelementptr inbounds ptr, ptr %43, i64 %63
  store ptr %64, ptr %65, align 8, !tbaa !25
  %66 = or disjoint i64 %.05258, 7
  %67 = getelementptr inbounds i8, ptr %64, i64 %41
  %68 = getelementptr inbounds ptr, ptr %43, i64 %66
  store ptr %67, ptr %68, align 8, !tbaa !25
  %69 = add nuw nsw i64 %.05258, 8
  %70 = getelementptr inbounds i8, ptr %67, i64 %41
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !26

.loopexit.loopexit.unr-lcssa:                     ; preds = %.lr.ph, %.lr.ph.preheader
  %.05059.unr = phi ptr [ %37, %.lr.ph.preheader ], [ %70, %.lr.ph ]
  %.05258.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %69, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.loopexit.loopexit.unr-lcssa, %.lr.ph.epil
  %.05059.epil = phi ptr [ %73, %.lr.ph.epil ], [ %.05059.unr, %.loopexit.loopexit.unr-lcssa ]
  %.05258.epil = phi i64 [ %72, %.lr.ph.epil ], [ %.05258.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %71 = getelementptr inbounds ptr, ptr %43, i64 %.05258.epil
  store ptr %.05059.epil, ptr %71, align 8, !tbaa !25
  %72 = add nuw nsw i64 %.05258.epil, 1
  %73 = getelementptr inbounds i8, ptr %.05059.epil, i64 %41
  %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 %.loopexit, label %.lr.ph.epil, !llvm.loop !28

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.lr.ph.epil, %35, %9
  ret void
}

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

attributes #0 = { noreturn nounwind "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 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { noreturn 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_impl8x_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !8, i64 48}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 16}
!12 = !{!13, !15, i64 32}
!13 = !{!"_ZTSN11alglib_impl9ae_matrixE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32, !16, i64 40, !8, i64 72}
!14 = !{!"long", !8, i64 0}
!15 = !{!"bool", !8, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24}
!17 = !{!"any pointer", !8, i64 0}
!18 = !{!13, !14, i64 16}
!19 = !{!6, !7, i64 24}
!20 = !{!13, !14, i64 24}
!21 = !{!8, !8, i64 0}
!22 = !{!13, !14, i64 0}
!23 = !{!13, !14, i64 8}
!24 = !{!13, !17, i64 56}
!25 = !{!17, !17, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.unroll.disable"}


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