; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src (linalg)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::spcholanalysis" = type { i64, i64, i64, i8, i64, double, double, double, double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, i8, %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, i8, %"struct.alglib_impl::spcholadj", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::amdbuffer", %"struct.alglib_impl::priorityamdbuffers", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::spcholadj" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_nxpool" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_dyn_block", %"struct.alglib_impl::ae_lock", %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }
%"struct.alglib_impl::amdbuffer" = type { i64, i8, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::amdknset", %"struct.alglib_impl::amdknset", %"struct.alglib_impl::amdknset", %"struct.alglib_impl::amdllmatrix", %"struct.alglib_impl::amdvertexset", %"struct.alglib_impl::niset", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::amdknset", %"struct.alglib_impl::niset", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::amdllmatrix" = type { i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64 }
%"struct.alglib_impl::amdvertexset" = type { i64, i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::amdknset" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::niset" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64 }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::priorityamdbuffers" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::amdbuffer", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix" }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }

@.str.380 = external hidden unnamed_addr constant [34 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_impl20spsymmreloaddiagonalEPNS_14spcholanalysisEPKNS_9ae_vectorEPNS_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 i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 0
  %15 = load i64, ptr %14, align 8, !tbaa !9
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %16, i32 0, i32 1
  %18 = load i64, ptr %17, align 8, !tbaa !14
  %19 = icmp sge i64 %15, %18
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef @.str.380, ptr noundef %20)
  store i64 0, ptr %7, align 8, !tbaa !28
  br label %21

21:                                               ; preds = %97, %3
  %22 = load i64, ptr %7, align 8, !tbaa !28
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %23, i32 0, i32 16
  %25 = load i64, ptr %24, align 8, !tbaa !29
  %26 = sub nsw i64 %25, 1
  %27 = icmp sle i64 %22, %26
  br i1 %27, label %28, label %100

28:                                               ; preds = %21
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %29, i32 0, i32 20
  %31 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %32 = load ptr, ptr %31, align 8, !tbaa !30
  %33 = load i64, ptr %7, align 8, !tbaa !28
  %34 = getelementptr inbounds i64, ptr %32, i64 %33
  %35 = load i64, ptr %34, align 8, !tbaa !28
  store i64 %35, ptr %8, align 8, !tbaa !28
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %36, i32 0, i32 20
  %38 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %39 = load ptr, ptr %38, align 8, !tbaa !30
  %40 = load i64, ptr %7, align 8, !tbaa !28
  %41 = add nsw i64 %40, 1
  %42 = getelementptr inbounds i64, ptr %39, i64 %41
  %43 = load i64, ptr %42, align 8, !tbaa !28
  store i64 %43, ptr %9, align 8, !tbaa !28
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %44, i32 0, i32 37
  %46 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !30
  %48 = load i64, ptr %7, align 8, !tbaa !28
  %49 = getelementptr inbounds i64, ptr %47, i64 %48
  %50 = load i64, ptr %49, align 8, !tbaa !28
  store i64 %50, ptr %10, align 8, !tbaa !28
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %51, i32 0, i32 36
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %52, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !30
  %55 = load i64, ptr %7, align 8, !tbaa !28
  %56 = getelementptr inbounds i64, ptr %54, i64 %55
  %57 = load i64, ptr %56, align 8, !tbaa !28
  store i64 %57, ptr %11, align 8, !tbaa !28
  %58 = load i64, ptr %8, align 8, !tbaa !28
  store i64 %58, ptr %12, align 8, !tbaa !28
  br label %59

59:                                               ; preds = %93, %28
  %60 = load i64, ptr %12, align 8, !tbaa !28
  %61 = load i64, ptr %9, align 8, !tbaa !28
  %62 = sub nsw i64 %61, 1
  %63 = icmp sle i64 %60, %62
  br i1 %63, label %64, label %96

64:                                               ; preds = %59
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %65, i32 0, i32 4
  %67 = load ptr, ptr %66, align 8, !tbaa !30
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %68, i32 0, i32 29
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %69, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !30
  %72 = load i64, ptr %12, align 8, !tbaa !28
  %73 = getelementptr inbounds i64, ptr %71, i64 %72
  %74 = load i64, ptr %73, align 8, !tbaa !28
  %75 = getelementptr inbounds double, ptr %67, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !31
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::spcholanalysis", ptr %77, i32 0, i32 34
  %79 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %78, i32 0, i32 4
  %80 = load ptr, ptr %79, align 8, !tbaa !30
  %81 = load i64, ptr %10, align 8, !tbaa !28
  %82 = load i64, ptr %12, align 8, !tbaa !28
  %83 = load i64, ptr %8, align 8, !tbaa !28
  %84 = sub nsw i64 %82, %83
  %85 = load i64, ptr %11, align 8, !tbaa !28
  %86 = mul nsw i64 %84, %85
  %87 = add nsw i64 %81, %86
  %88 = load i64, ptr %12, align 8, !tbaa !28
  %89 = load i64, ptr %8, align 8, !tbaa !28
  %90 = sub nsw i64 %88, %89
  %91 = add nsw i64 %87, %90
  %92 = getelementptr inbounds double, ptr %80, i64 %91
  store double %76, ptr %92, align 8, !tbaa !31
  br label %93

93:                                               ; preds = %64
  %94 = load i64, ptr %12, align 8, !tbaa !28
  %95 = add nsw i64 %94, 1
  store i64 %95, ptr %12, align 8, !tbaa !28
  br label %59, !llvm.loop !32

96:                                               ; preds = %59
  br label %97

97:                                               ; preds = %96
  %98 = load i64, ptr %7, align 8, !tbaa !28
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %7, align 8, !tbaa !28
  br label %21, !llvm.loop !34

100:                                              ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

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_impl9ae_vectorE", !11, i64 0, !11, i64 8, !12, i64 16, !13, i64 24, !7, i64 56}
!11 = !{!"long", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!15, !11, i64 8}
!15 = !{!"_ZTSN11alglib_impl14spcholanalysisE", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !11, i64 32, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !10, i64 72, !12, i64 136, !12, i64 137, !12, i64 138, !12, i64 139, !12, i64 140, !10, i64 144, !11, i64 208, !10, i64 216, !10, i64 280, !10, i64 344, !10, i64 408, !10, i64 472, !10, i64 536, !12, i64 600, !10, i64 608, !10, i64 672, !10, i64 736, !10, i64 800, !10, i64 864, !10, i64 928, !12, i64 992, !12, i64 993, !17, i64 1000, !10, i64 1512, !10, i64 1576, !10, i64 1640, !10, i64 1704, !10, i64 1768, !10, i64 1832, !18, i64 1896, !18, i64 2040, !18, i64 2184, !18, i64 2328, !18, i64 2472, !18, i64 2616, !10, i64 2760, !10, i64 2824, !10, i64 2888, !10, i64 2952, !10, i64 3016, !20, i64 3080, !26, i64 7464, !10, i64 13816, !10, i64 13880, !10, i64 13944, !10, i64 14008, !10, i64 14072, !10, i64 14136, !27, i64 14200, !27, i64 14568, !10, i64 14936, !10, i64 15000}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl9spcholadjE", !10, i64 0, !10, i64 64, !10, i64 128, !10, i64 192, !10, i64 256, !10, i64 320, !10, i64 384, !10, i64 448}
!18 = !{!"_ZTSN11alglib_impl9ae_nxpoolE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !13, i64 32, !19, i64 64, !13, i64 112}
!19 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !13, i64 8, !12, i64 40}
!20 = !{!"_ZTSN11alglib_impl9amdbufferE", !11, i64 0, !12, i64 8, !12, i64 9, !10, i64 16, !10, i64 80, !10, i64 144, !21, i64 208, !21, i64 568, !21, i64 928, !22, i64 1288, !23, i64 1496, !24, i64 1968, !10, i64 2120, !10, i64 2184, !10, i64 2248, !24, i64 2312, !24, i64 2464, !24, i64 2616, !24, i64 2768, !24, i64 2920, !24, i64 3072, !10, i64 3224, !11, i64 3288, !24, i64 3296, !24, i64 3448, !21, i64 3600, !24, i64 3960, !10, i64 4112, !10, i64 4176, !10, i64 4240, !25, i64 4304}
!21 = !{!"_ZTSN11alglib_impl8amdknsetE", !11, i64 0, !11, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !10, i64 208, !10, i64 272, !11, i64 336, !11, i64 344, !11, i64 352}
!22 = !{!"_ZTSN11alglib_impl11amdllmatrixE", !11, i64 0, !10, i64 8, !10, i64 72, !10, i64 136, !11, i64 200}
!23 = !{!"_ZTSN11alglib_impl12amdvertexsetE", !11, i64 0, !12, i64 8, !11, i64 16, !10, i64 24, !10, i64 88, !10, i64 152, !10, i64 216, !10, i64 280, !10, i64 344, !10, i64 408}
!24 = !{!"_ZTSN11alglib_impl5nisetE", !11, i64 0, !11, i64 8, !10, i64 16, !10, i64 80, !11, i64 144}
!25 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !13, i64 40, !7, i64 72}
!26 = !{!"_ZTSN11alglib_impl18priorityamdbuffersE", !10, i64 0, !10, i64 64, !20, i64 128, !27, i64 4512, !27, i64 4880, !27, i64 5248, !27, i64 5616, !27, i64 5984}
!27 = !{!"_ZTSN11alglib_impl12sparsematrixE", !10, i64 0, !10, i64 64, !10, i64 128, !10, i64 192, !10, i64 256, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360}
!28 = !{!11, !11, i64 0}
!29 = !{!15, !11, i64 208}
!30 = !{!7, !7, i64 0}
!31 = !{!16, !16, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}


; 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.380 = external hidden unnamed_addr constant [34 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_impl20spsymmreloaddiagonalEPNS_14spcholanalysisEPKNS_9ae_vectorEPNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = load i64, ptr %1, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load i64, ptr %5, align 8, !tbaa !13
  %7 = icmp sge i64 %4, %6
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.380, ptr noundef %2)
  %8 = getelementptr inbounds i8, ptr %0, i64 208
  %9 = load i64, ptr %8, align 8, !tbaa !27
  %.not.not31 = icmp sgt i64 %9, 0
  br i1 %.not.not31, label %.lr.ph33, label %._crit_edge

.lr.ph33:                                         ; preds = %3
  %10 = getelementptr inbounds i8, ptr %0, i64 464
  %11 = getelementptr inbounds i8, ptr %0, i64 1824
  %12 = getelementptr inbounds i8, ptr %0, i64 1760
  %13 = getelementptr inbounds i8, ptr %1, i64 56
  %14 = getelementptr inbounds i8, ptr %0, i64 984
  %15 = getelementptr inbounds i8, ptr %0, i64 1632
  br label %16

.loopexit:                                        ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %16
  %exitcond34.not = icmp eq i64 %20, %9
  br i1 %exitcond34.not, label %._crit_edge, label %16, !llvm.loop !28

16:                                               ; preds = %.lr.ph33, %.loopexit
  %.02732 = phi i64 [ 0, %.lr.ph33 ], [ %20, %.loopexit ]
  %17 = load ptr, ptr %10, align 8, !tbaa !30
  %18 = getelementptr inbounds i64, ptr %17, i64 %.02732
  %19 = load i64, ptr %18, align 8, !tbaa !31
  %20 = add nuw nsw i64 %.02732, 1
  %21 = getelementptr inbounds i64, ptr %17, i64 %20
  %22 = load i64, ptr %21, align 8, !tbaa !31
  %23 = load ptr, ptr %11, align 8, !tbaa !30
  %24 = getelementptr inbounds i64, ptr %23, i64 %.02732
  %25 = load i64, ptr %24, align 8, !tbaa !31
  %26 = load ptr, ptr %12, align 8, !tbaa !30
  %27 = getelementptr inbounds i64, ptr %26, i64 %.02732
  %28 = load i64, ptr %27, align 8, !tbaa !31
  %.not.not2829 = icmp slt i64 %19, %22
  br i1 %.not.not2829, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %16
  %29 = sub i64 %22, %19
  %.neg = add i64 %19, 1
  %xtraiter = and i64 %29, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader
  %30 = load ptr, ptr %13, align 8, !tbaa !30
  %31 = load ptr, ptr %14, align 8, !tbaa !30
  %32 = getelementptr inbounds i64, ptr %31, i64 %19
  %33 = load i64, ptr %32, align 8, !tbaa !31
  %34 = getelementptr inbounds double, ptr %30, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !32
  %36 = load ptr, ptr %15, align 8, !tbaa !30
  %37 = getelementptr double, ptr %36, i64 %25
  store double %35, ptr %37, align 8, !tbaa !32
  %38 = add nsw i64 %19, 1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.030.unr = phi i64 [ %19, %.lr.ph.preheader ], [ %38, %.lr.ph.prol ]
  %39 = icmp eq i64 %22, %.neg
  br i1 %39, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.030 = phi i64 [ %65, %.lr.ph ], [ %.030.unr, %.lr.ph.prol.loopexit ]
  %40 = load ptr, ptr %13, align 8, !tbaa !30
  %41 = load ptr, ptr %14, align 8, !tbaa !30
  %42 = getelementptr inbounds i64, ptr %41, i64 %.030
  %43 = load i64, ptr %42, align 8, !tbaa !31
  %44 = getelementptr inbounds double, ptr %40, i64 %43
  %45 = load double, ptr %44, align 8, !tbaa !32
  %46 = load ptr, ptr %15, align 8, !tbaa !30
  %47 = sub nsw i64 %.030, %19
  %48 = mul nsw i64 %47, %28
  %49 = getelementptr double, ptr %46, i64 %25
  %50 = getelementptr double, ptr %49, i64 %48
  %51 = getelementptr double, ptr %50, i64 %47
  store double %45, ptr %51, align 8, !tbaa !32
  %52 = add nsw i64 %.030, 1
  %53 = load ptr, ptr %13, align 8, !tbaa !30
  %54 = load ptr, ptr %14, align 8, !tbaa !30
  %55 = getelementptr inbounds i64, ptr %54, i64 %52
  %56 = load i64, ptr %55, align 8, !tbaa !31
  %57 = getelementptr inbounds double, ptr %53, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !32
  %59 = load ptr, ptr %15, align 8, !tbaa !30
  %60 = sub nsw i64 %52, %19
  %61 = mul nsw i64 %60, %28
  %62 = getelementptr double, ptr %59, i64 %25
  %63 = getelementptr double, ptr %62, i64 %61
  %64 = getelementptr double, ptr %63, i64 %60
  store double %58, ptr %64, align 8, !tbaa !32
  %65 = add nsw i64 %.030, 2
  %exitcond.not.1 = icmp eq i64 %65, %22
  br i1 %exitcond.not.1, label %.loopexit, label %.lr.ph, !llvm.loop !33

._crit_edge:                                      ; preds = %.loopexit, %3
  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_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 8}
!14 = !{!"_ZTSN11alglib_impl14spcholanalysisE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !6, i64 72, !10, i64 136, !10, i64 137, !10, i64 138, !10, i64 139, !10, i64 140, !6, i64 144, !7, i64 208, !6, i64 216, !6, i64 280, !6, i64 344, !6, i64 408, !6, i64 472, !6, i64 536, !10, i64 600, !6, i64 608, !6, i64 672, !6, i64 736, !6, i64 800, !6, i64 864, !6, i64 928, !10, i64 992, !10, i64 993, !16, i64 1000, !6, i64 1512, !6, i64 1576, !6, i64 1640, !6, i64 1704, !6, i64 1768, !6, i64 1832, !17, i64 1896, !17, i64 2040, !17, i64 2184, !17, i64 2328, !17, i64 2472, !17, i64 2616, !6, i64 2760, !6, i64 2824, !6, i64 2888, !6, i64 2952, !6, i64 3016, !19, i64 3080, !25, i64 7464, !6, i64 13816, !6, i64 13880, !6, i64 13944, !6, i64 14008, !6, i64 14072, !6, i64 14136, !26, i64 14200, !26, i64 14568, !6, i64 14936, !6, i64 15000}
!15 = !{!"double", !8, i64 0}
!16 = !{!"_ZTSN11alglib_impl9spcholadjE", !6, i64 0, !6, i64 64, !6, i64 128, !6, i64 192, !6, i64 256, !6, i64 320, !6, i64 384, !6, i64 448}
!17 = !{!"_ZTSN11alglib_impl9ae_nxpoolE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !18, i64 64, !11, i64 112}
!18 = !{!"_ZTSN11alglib_impl7ae_lockE", !12, i64 0, !11, i64 8, !10, i64 40}
!19 = !{!"_ZTSN11alglib_impl9amdbufferE", !7, i64 0, !10, i64 8, !10, i64 9, !6, i64 16, !6, i64 80, !6, i64 144, !20, i64 208, !20, i64 568, !20, i64 928, !21, i64 1288, !22, i64 1496, !23, i64 1968, !6, i64 2120, !6, i64 2184, !6, i64 2248, !23, i64 2312, !23, i64 2464, !23, i64 2616, !23, i64 2768, !23, i64 2920, !23, i64 3072, !6, i64 3224, !7, i64 3288, !23, i64 3296, !23, i64 3448, !20, i64 3600, !23, i64 3960, !6, i64 4112, !6, i64 4176, !6, i64 4240, !24, i64 4304}
!20 = !{!"_ZTSN11alglib_impl8amdknsetE", !7, i64 0, !7, i64 8, !6, i64 16, !6, i64 80, !6, i64 144, !6, i64 208, !6, i64 272, !7, i64 336, !7, i64 344, !7, i64 352}
!21 = !{!"_ZTSN11alglib_impl11amdllmatrixE", !7, i64 0, !6, i64 8, !6, i64 72, !6, i64 136, !7, i64 200}
!22 = !{!"_ZTSN11alglib_impl12amdvertexsetE", !7, i64 0, !10, i64 8, !7, i64 16, !6, i64 24, !6, i64 88, !6, i64 152, !6, i64 216, !6, i64 280, !6, i64 344, !6, i64 408}
!23 = !{!"_ZTSN11alglib_impl5nisetE", !7, i64 0, !7, i64 8, !6, i64 16, !6, i64 80, !7, i64 144}
!24 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!25 = !{!"_ZTSN11alglib_impl18priorityamdbuffersE", !6, i64 0, !6, i64 64, !19, i64 128, !26, i64 4512, !26, i64 4880, !26, i64 5248, !26, i64 5616, !26, i64 5984}
!26 = !{!"_ZTSN11alglib_impl12sparsematrixE", !6, i64 0, !6, i64 64, !6, i64 128, !6, i64 192, !6, i64 256, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360}
!27 = !{!14, !7, i64 208}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!8, !8, i64 0}
!31 = !{!7, !7, i64 0}
!32 = !{!15, !15, i64 0}
!33 = distinct !{!33, !29}


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