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

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

@.str.173 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.174 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.176 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [50 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

declare void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9sassetlcxEPNS_10sactivesetEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store i64 %3, ptr %9, align 8, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %14, i32 0, i32 1
  %16 = load i64, ptr %15, align 8, !tbaa !11
  %17 = icmp eq i64 %16, 0
  %18 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef @.str.173, ptr noundef %18)
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %19, i32 0, i32 0
  %21 = load i64, ptr %20, align 8, !tbaa !19
  store i64 %21, ptr %11, align 8, !tbaa !9
  %22 = load i64, ptr %8, align 8, !tbaa !9
  %23 = icmp sge i64 %22, 0
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef @.str.174, ptr noundef %24)
  %25 = load i64, ptr %9, align 8, !tbaa !9
  %26 = icmp sge i64 %25, 0
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef @.str.175, ptr noundef %27)
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %28, i32 0, i32 1
  %30 = load i64, ptr %29, align 8, !tbaa !20
  %31 = load i64, ptr %11, align 8, !tbaa !9
  %32 = add nsw i64 %31, 1
  %33 = icmp sge i64 %30, %32
  br i1 %33, label %39, label %34

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

39:                                               ; preds = %34, %5
  %40 = phi i1 [ true, %5 ], [ %38, %34 ]
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %40, ptr noundef @.str.176, ptr noundef %41)
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %42, i32 0, i32 0
  %44 = load i64, ptr %43, align 8, !tbaa !21
  %45 = load i64, ptr %8, align 8, !tbaa !9
  %46 = load i64, ptr %9, align 8, !tbaa !9
  %47 = add nsw i64 %45, %46
  %48 = icmp sge i64 %44, %47
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.177, ptr noundef %49)
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = load i64, ptr %8, align 8, !tbaa !9
  %52 = load i64, ptr %9, align 8, !tbaa !9
  %53 = add nsw i64 %51, %52
  %54 = load i64, ptr %11, align 8, !tbaa !9
  %55 = add nsw i64 %54, 1
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %50, i64 noundef %53, i64 noundef %55, ptr noundef %56)
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %57, ptr noundef @.str.178, ptr noundef %58)
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %59, i32 0, i32 21
  %61 = load i64, ptr %8, align 8, !tbaa !9
  %62 = load i64, ptr %9, align 8, !tbaa !9
  %63 = add nsw i64 %61, %62
  %64 = load i64, ptr %11, align 8, !tbaa !9
  %65 = add nsw i64 %64, 1
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %60, i64 noundef %63, i64 noundef %65, ptr noundef %66)
  %67 = load i64, ptr %8, align 8, !tbaa !9
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %68, i32 0, i32 22
  store i64 %67, ptr %69, align 8, !tbaa !22
  %70 = load i64, ptr %9, align 8, !tbaa !9
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %71, i32 0, i32 23
  store i64 %70, ptr %72, align 8, !tbaa !23
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %108, %39
  %74 = load i64, ptr %12, align 8, !tbaa !9
  %75 = load i64, ptr %8, align 8, !tbaa !9
  %76 = load i64, ptr %9, align 8, !tbaa !9
  %77 = add nsw i64 %75, %76
  %78 = sub nsw i64 %77, 1
  %79 = icmp sle i64 %74, %78
  br i1 %79, label %80, label %111

80:                                               ; preds = %73
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %81

81:                                               ; preds = %104, %80
  %82 = load i64, ptr %13, align 8, !tbaa !9
  %83 = load i64, ptr %11, align 8, !tbaa !9
  %84 = icmp sle i64 %82, %83
  br i1 %84, label %85, label %107

85:                                               ; preds = %81
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %86, i32 0, i32 6
  %88 = load ptr, ptr %87, align 8, !tbaa !24
  %89 = load i64, ptr %12, align 8, !tbaa !9
  %90 = getelementptr inbounds ptr, ptr %88, i64 %89
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  %92 = load i64, ptr %13, align 8, !tbaa !9
  %93 = getelementptr inbounds double, ptr %91, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !25
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %95, i32 0, i32 21
  %97 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %96, i32 0, i32 6
  %98 = load ptr, ptr %97, align 8, !tbaa !24
  %99 = load i64, ptr %12, align 8, !tbaa !9
  %100 = getelementptr inbounds ptr, ptr %98, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  %102 = load i64, ptr %13, align 8, !tbaa !9
  %103 = getelementptr inbounds double, ptr %101, i64 %102
  store double %94, ptr %103, align 8, !tbaa !25
  br label %104

104:                                              ; preds = %85
  %105 = load i64, ptr %13, align 8, !tbaa !9
  %106 = add nsw i64 %105, 1
  store i64 %106, ptr %13, align 8, !tbaa !9
  br label %81, !llvm.loop !26

107:                                              ; preds = %81
  br label %108

108:                                              ; preds = %107
  %109 = load i64, ptr %12, align 8, !tbaa !9
  %110 = add nsw i64 %109, 1
  store i64 %110, ptr %12, align 8, !tbaa !9
  br label %73, !llvm.loop !28

111:                                              ; preds = %73
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %112, i32 0, i32 16
  store i8 1, ptr %113, align 1, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN11alglib_impl10sactivesetE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 80, !13, i64 88, !13, i64 152, !13, i64 216, !14, i64 280, !16, i64 288, !16, i64 368, !16, i64 448, !10, i64 528, !13, i64 536, !10, i64 600, !10, i64 608, !14, i64 616, !14, i64 617, !13, i64 624, !13, i64 688, !13, i64 752, !13, i64 816, !16, i64 880, !10, i64 960, !10, i64 968, !13, i64 976, !13, i64 1040, !13, i64 1104, !13, i64 1168, !13, i64 1232, !13, i64 1296, !17, i64 1360, !13, i64 3000, !13, i64 3064, !13, i64 3128, !16, i64 3192, !13, i64 3272, !13, i64 3336, !13, i64 3400, !16, i64 3464, !16, i64 3544, !13, i64 3624, !13, i64 3688, !13, i64 3752, !16, i64 3816, !13, i64 3896, !13, i64 3960, !13, i64 4024, !13, i64 4088, !13, i64 4152, !13, i64 4216, !13, i64 4280}
!13 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !14, i64 16, !15, i64 24, !7, i64 56}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !15, i64 40, !7, i64 72}
!17 = !{!"_ZTSN11alglib_impl11snnlssolverE", !10, i64 0, !10, i64 8, !10, i64 16, !16, i64 24, !13, i64 104, !13, i64 168, !18, i64 232, !10, i64 240, !13, i64 248, !13, i64 312, !16, i64 376, !16, i64 456, !16, i64 536, !13, i64 616, !13, i64 680, !13, i64 744, !13, i64 808, !13, i64 872, !13, i64 936, !13, i64 1000, !13, i64 1064, !13, i64 1128, !13, i64 1192, !13, i64 1256, !13, i64 1320, !13, i64 1384, !13, i64 1448, !13, i64 1512, !13, i64 1576}
!18 = !{!"double", !7, i64 0}
!19 = !{!12, !10, i64 0}
!20 = !{!16, !10, i64 8}
!21 = !{!16, !10, i64 0}
!22 = !{!12, !10, i64 960}
!23 = !{!12, !10, i64 968}
!24 = !{!7, !7, i64 0}
!25 = !{!18, !18, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = !{!12, !14, i64 617}


; 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.173 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.174 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.176 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [50 x i8], align 1

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

declare void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9sassetlcxEPNS_10sactivesetEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = icmp eq i64 %7, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.173, ptr noundef %4)
  %9 = load i64, ptr %0, align 8, !tbaa !17
  %10 = icmp sgt i64 %2, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.174, ptr noundef %4)
  %11 = icmp sgt i64 %3, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.175, ptr noundef %4)
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = load i64, ptr %12, align 8, !tbaa !18
  %14 = add i64 %9, 1
  %15 = icmp sgt i64 %13, %9
  %16 = add i64 %3, %2
  %17 = icmp eq i64 %16, 0
  %18 = or i1 %15, %17
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.176, ptr noundef %4)
  %19 = load i64, ptr %1, align 8, !tbaa !19
  %20 = icmp sge i64 %19, %16
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.177, ptr noundef %4)
  %21 = tail call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %16, i64 noundef %14, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.178, ptr noundef %4)
  %22 = getelementptr inbounds i8, ptr %0, i64 880
  tail call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %22, i64 noundef %16, i64 noundef %14, ptr noundef %4)
  %23 = getelementptr inbounds i8, ptr %0, i64 960
  store i64 %2, ptr %23, align 8, !tbaa !20
  %24 = getelementptr inbounds i8, ptr %0, i64 968
  store i64 %3, ptr %24, align 8, !tbaa !21
  %.not.not47 = icmp sgt i64 %16, 0
  br i1 %.not.not47, label %.preheader.lr.ph, label %._crit_edge49

.preheader.lr.ph:                                 ; preds = %5
  %.not45 = icmp slt i64 %9, 0
  %25 = getelementptr inbounds i8, ptr %1, i64 72
  %26 = getelementptr inbounds i8, ptr %0, i64 952
  br i1 %.not45, label %._crit_edge49, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %27 = add nuw i64 %9, 1
  %28 = icmp eq i64 %9, 0
  %unroll_iter = and i64 %27, -2
  %29 = and i64 %9, 1
  %lcmp.mod.not.not = icmp eq i64 %29, 0
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge
  %.04448 = phi i64 [ %59, %._crit_edge ], [ 0, %.preheader.preheader ]
  br i1 %28, label %._crit_edge.unr-lcssa, label %.preheader.new

.preheader.new:                                   ; preds = %.preheader, %.preheader.new
  %.046 = phi i64 [ %49, %.preheader.new ], [ 0, %.preheader ]
  %niter = phi i64 [ %niter.next.1, %.preheader.new ], [ 0, %.preheader ]
  %30 = load ptr, ptr %25, align 8, !tbaa !22
  %31 = getelementptr inbounds ptr, ptr %30, i64 %.04448
  %32 = load ptr, ptr %31, align 8, !tbaa !23
  %33 = getelementptr inbounds double, ptr %32, i64 %.046
  %34 = load double, ptr %33, align 8, !tbaa !24
  %35 = load ptr, ptr %26, align 8, !tbaa !22
  %36 = getelementptr inbounds ptr, ptr %35, i64 %.04448
  %37 = load ptr, ptr %36, align 8, !tbaa !23
  %38 = getelementptr inbounds double, ptr %37, i64 %.046
  store double %34, ptr %38, align 8, !tbaa !24
  %39 = or disjoint i64 %.046, 1
  %40 = load ptr, ptr %25, align 8, !tbaa !22
  %41 = getelementptr inbounds ptr, ptr %40, i64 %.04448
  %42 = load ptr, ptr %41, align 8, !tbaa !23
  %43 = getelementptr inbounds double, ptr %42, i64 %39
  %44 = load double, ptr %43, align 8, !tbaa !24
  %45 = load ptr, ptr %26, align 8, !tbaa !22
  %46 = getelementptr inbounds ptr, ptr %45, i64 %.04448
  %47 = load ptr, ptr %46, align 8, !tbaa !23
  %48 = getelementptr inbounds double, ptr %47, i64 %39
  store double %44, ptr %48, align 8, !tbaa !24
  %49 = add nuw i64 %.046, 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.unr-lcssa, label %.preheader.new, !llvm.loop !25

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

._crit_edge.epilog-lcssa:                         ; preds = %._crit_edge.unr-lcssa
  %50 = load ptr, ptr %25, align 8, !tbaa !22
  %51 = getelementptr inbounds ptr, ptr %50, i64 %.04448
  %52 = load ptr, ptr %51, align 8, !tbaa !23
  %53 = getelementptr inbounds double, ptr %52, i64 %.046.unr
  %54 = load double, ptr %53, align 8, !tbaa !24
  %55 = load ptr, ptr %26, align 8, !tbaa !22
  %56 = getelementptr inbounds ptr, ptr %55, i64 %.04448
  %57 = load ptr, ptr %56, align 8, !tbaa !23
  %58 = getelementptr inbounds double, ptr %57, i64 %.046.unr
  store double %54, ptr %58, align 8, !tbaa !24
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %._crit_edge.epilog-lcssa
  %59 = add nuw nsw i64 %.04448, 1
  %exitcond52.not = icmp eq i64 %59, %16
  br i1 %exitcond52.not, label %._crit_edge49, label %.preheader, !llvm.loop !27

._crit_edge49:                                    ; preds = %._crit_edge, %.preheader.lr.ph, %5
  %60 = getelementptr inbounds i8, ptr %0, i64 617
  store i8 1, ptr %60, align 1, !tbaa !28
  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 8}
!6 = !{!"_ZTSN11alglib_impl10sactivesetE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 80, !10, i64 88, !10, i64 152, !10, i64 216, !11, i64 280, !14, i64 288, !14, i64 368, !14, i64 448, !7, i64 528, !10, i64 536, !7, i64 600, !7, i64 608, !11, i64 616, !11, i64 617, !10, i64 624, !10, i64 688, !10, i64 752, !10, i64 816, !14, i64 880, !7, i64 960, !7, i64 968, !10, i64 976, !10, i64 1040, !10, i64 1104, !10, i64 1168, !10, i64 1232, !10, i64 1296, !15, i64 1360, !10, i64 3000, !10, i64 3064, !10, i64 3128, !14, i64 3192, !10, i64 3272, !10, i64 3336, !10, i64 3400, !14, i64 3464, !14, i64 3544, !10, i64 3624, !10, i64 3688, !10, i64 3752, !14, i64 3816, !10, i64 3896, !10, i64 3960, !10, i64 4024, !10, i64 4088, !10, i64 4152, !10, i64 4216, !10, i64 4280}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 56}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !12, i64 40, !8, i64 72}
!15 = !{!"_ZTSN11alglib_impl11snnlssolverE", !7, i64 0, !7, i64 8, !7, i64 16, !14, i64 24, !10, i64 104, !10, i64 168, !16, i64 232, !7, i64 240, !10, i64 248, !10, i64 312, !14, i64 376, !14, i64 456, !14, i64 536, !10, i64 616, !10, i64 680, !10, i64 744, !10, i64 808, !10, i64 872, !10, i64 936, !10, i64 1000, !10, i64 1064, !10, i64 1128, !10, i64 1192, !10, i64 1256, !10, i64 1320, !10, i64 1384, !10, i64 1448, !10, i64 1512, !10, i64 1576}
!16 = !{!"double", !8, i64 0}
!17 = !{!6, !7, i64 0}
!18 = !{!14, !7, i64 8}
!19 = !{!14, !7, i64 0}
!20 = !{!6, !7, i64 960}
!21 = !{!6, !7, i64 968}
!22 = !{!8, !8, i64 0}
!23 = !{!13, !13, i64 0}
!24 = !{!16, !16, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = !{!6, !11, i64 617}


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