; 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 }
%"struct.alglib_impl::ae_state" = type { i64, double, double, double, ptr, %"struct.alglib_impl::ae_dyn_block", ptr, i32, ptr, i64, ptr, ptr, ptr }

; 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_impl23bvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl7sasinitElPNS_10sactivesetEPNS_8ae_stateE(i64 noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  store i64 %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %8 = load i64, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %5, align 8, !tbaa !9
  %10 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %9, i32 0, i32 0
  store i64 %8, ptr %10, align 8, !tbaa !11
  %11 = load ptr, ptr %5, align 8, !tbaa !9
  %12 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %11, i32 0, i32 1
  store i64 0, ptr %12, align 8, !tbaa !19
  %13 = load ptr, ptr %5, align 8, !tbaa !9
  %14 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %13, i32 0, i32 16
  store i8 1, ptr %14, align 1, !tbaa !20
  %15 = load ptr, ptr %5, align 8, !tbaa !9
  %16 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %15, i32 0, i32 22
  store i64 0, ptr %16, align 8, !tbaa !21
  %17 = load ptr, ptr %5, align 8, !tbaa !9
  %18 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %17, i32 0, i32 23
  store i64 0, ptr %18, align 8, !tbaa !22
  %19 = load ptr, ptr %5, align 8, !tbaa !9
  %20 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %19, i32 0, i32 19
  %21 = load i64, ptr %4, align 8, !tbaa !5
  %22 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %21, ptr noundef %22)
  %23 = load ptr, ptr %5, align 8, !tbaa !9
  %24 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %23, i32 0, i32 17
  %25 = load i64, ptr %4, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl23bvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %24, i64 noundef %25, ptr noundef %26)
  %27 = load ptr, ptr %5, align 8, !tbaa !9
  %28 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %27, i32 0, i32 20
  %29 = load i64, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %28, i64 noundef %29, ptr noundef %30)
  %31 = load ptr, ptr %5, align 8, !tbaa !9
  %32 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %31, i32 0, i32 18
  %33 = load i64, ptr %4, align 8, !tbaa !5
  %34 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl23bvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %33, ptr noundef %34)
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %71, %3
  %36 = load i64, ptr %7, align 8, !tbaa !5
  %37 = load i64, ptr %4, align 8, !tbaa !5
  %38 = sub nsw i64 %37, 1
  %39 = icmp sle i64 %36, %38
  br i1 %39, label %40, label %74

40:                                               ; preds = %35
  %41 = load ptr, ptr %6, align 8, !tbaa !9
  %42 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %41, i32 0, i32 3
  %43 = load double, ptr %42, align 8, !tbaa !23
  %44 = load ptr, ptr %5, align 8, !tbaa !9
  %45 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %44, i32 0, i32 19
  %46 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !27
  %48 = load i64, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds double, ptr %47, i64 %48
  store double %43, ptr %49, align 8, !tbaa !28
  %50 = load ptr, ptr %6, align 8, !tbaa !9
  %51 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %50, i32 0, i32 2
  %52 = load double, ptr %51, align 8, !tbaa !29
  %53 = load ptr, ptr %5, align 8, !tbaa !9
  %54 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %53, i32 0, i32 20
  %55 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %54, i32 0, i32 4
  %56 = load ptr, ptr %55, align 8, !tbaa !27
  %57 = load i64, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds double, ptr %56, i64 %57
  store double %52, ptr %58, align 8, !tbaa !28
  %59 = load ptr, ptr %5, align 8, !tbaa !9
  %60 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %59, i32 0, i32 17
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %60, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !27
  %63 = load i64, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %62, i64 %63
  store i8 0, ptr %64, align 1, !tbaa !30
  %65 = load ptr, ptr %5, align 8, !tbaa !9
  %66 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %65, i32 0, i32 18
  %67 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %66, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !27
  %69 = load i64, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %68, i64 %69
  store i8 0, ptr %70, align 1, !tbaa !30
  br label %71

71:                                               ; preds = %40
  %72 = load i64, ptr %7, align 8, !tbaa !5
  %73 = add nsw i64 %72, 1
  store i64 %73, ptr %7, align 8, !tbaa !5
  br label %35, !llvm.loop !31

74:                                               ; preds = %35
  %75 = load ptr, ptr %5, align 8, !tbaa !9
  %76 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %75, i32 0, i32 3
  store i8 0, ptr %76, align 8, !tbaa !33
  %77 = load ptr, ptr %5, align 8, !tbaa !9
  %78 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %77, i32 0, i32 2
  %79 = load i64, ptr %4, align 8, !tbaa !5
  %80 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %78, i64 noundef %79, ptr noundef %80)
  %81 = load ptr, ptr %5, align 8, !tbaa !9
  %82 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %81, i32 0, i32 4
  %83 = load i64, ptr %4, align 8, !tbaa !5
  %84 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %82, i64 noundef %83, ptr noundef %84)
  %85 = load ptr, ptr %5, align 8, !tbaa !9
  %86 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %85, i32 0, i32 5
  %87 = load i64, ptr %4, align 8, !tbaa !5
  %88 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %86, i64 noundef %87, ptr noundef %88)
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %89

89:                                               ; preds = %113, %74
  %90 = load i64, ptr %7, align 8, !tbaa !5
  %91 = load i64, ptr %4, align 8, !tbaa !5
  %92 = sub nsw i64 %91, 1
  %93 = icmp sle i64 %90, %92
  br i1 %93, label %94, label %116

94:                                               ; preds = %89
  %95 = load ptr, ptr %5, align 8, !tbaa !9
  %96 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %95, i32 0, i32 2
  %97 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %96, i32 0, i32 4
  %98 = load ptr, ptr %97, align 8, !tbaa !27
  %99 = load i64, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds double, ptr %98, i64 %99
  store double 0.000000e+00, ptr %100, align 8, !tbaa !28
  %101 = load ptr, ptr %5, align 8, !tbaa !9
  %102 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %101, i32 0, i32 4
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !27
  %105 = load i64, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds double, ptr %104, i64 %105
  store double 1.000000e+00, ptr %106, align 8, !tbaa !28
  %107 = load ptr, ptr %5, align 8, !tbaa !9
  %108 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %107, i32 0, i32 5
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %108, i32 0, i32 4
  %110 = load ptr, ptr %109, align 8, !tbaa !27
  %111 = load i64, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds double, ptr %110, i64 %111
  store double 1.000000e+00, ptr %112, align 8, !tbaa !28
  br label %113

113:                                              ; preds = %94
  %114 = load i64, ptr %7, align 8, !tbaa !5
  %115 = add nsw i64 %114, 1
  store i64 %115, ptr %7, align 8, !tbaa !5
  br label %89, !llvm.loop !34

116:                                              ; preds = %89
  %117 = load ptr, ptr %5, align 8, !tbaa !9
  %118 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %117, i32 0, i32 29
  %119 = load i64, ptr %4, align 8, !tbaa !5
  %120 = load ptr, ptr %6, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %118, i64 noundef %119, ptr noundef %120)
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %121

121:                                              ; preds = %133, %116
  %122 = load i64, ptr %7, align 8, !tbaa !5
  %123 = load i64, ptr %4, align 8, !tbaa !5
  %124 = sub nsw i64 %123, 1
  %125 = icmp sle i64 %122, %124
  br i1 %125, label %126, label %136

126:                                              ; preds = %121
  %127 = load ptr, ptr %5, align 8, !tbaa !9
  %128 = getelementptr inbounds %"struct.alglib_impl::sactiveset", ptr %127, i32 0, i32 29
  %129 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %128, i32 0, i32 4
  %130 = load ptr, ptr %129, align 8, !tbaa !27
  %131 = load i64, ptr %7, align 8, !tbaa !5
  %132 = getelementptr inbounds double, ptr %130, i64 %131
  store double 1.000000e+00, ptr %132, align 8, !tbaa !28
  br label %133

133:                                              ; preds = %126
  %134 = load i64, ptr %7, align 8, !tbaa !5
  %135 = add nsw i64 %134, 1
  store i64 %135, ptr %7, align 8, !tbaa !5
  br label %121, !llvm.loop !35

136:                                              ; preds = %121
  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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN11alglib_impl10sactivesetE", !6, i64 0, !6, 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, !6, i64 528, !13, i64 536, !6, i64 600, !6, i64 608, !14, i64 616, !14, i64 617, !13, i64 624, !13, i64 688, !13, i64 752, !13, i64 816, !16, i64 880, !6, i64 960, !6, 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", !6, i64 0, !6, i64 8, !14, i64 16, !15, i64 24, !7, i64 56}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !14, i64 32, !15, i64 40, !7, i64 72}
!17 = !{!"_ZTSN11alglib_impl11snnlssolverE", !6, i64 0, !6, i64 8, !6, i64 16, !16, i64 24, !13, i64 104, !13, i64 168, !18, i64 232, !6, 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, !6, i64 8}
!20 = !{!12, !14, i64 617}
!21 = !{!12, !6, i64 960}
!22 = !{!12, !6, i64 968}
!23 = !{!24, !18, i64 24}
!24 = !{!"_ZTSN11alglib_impl8ae_stateE", !6, i64 0, !18, i64 8, !18, i64 16, !18, i64 24, !10, i64 32, !15, i64 40, !10, i64 72, !25, i64 80, !10, i64 88, !26, i64 96, !10, i64 104, !10, i64 112, !10, i64 120}
!25 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !7, i64 0}
!26 = !{!"long long", !7, i64 0}
!27 = !{!7, !7, i64 0}
!28 = !{!18, !18, i64 0}
!29 = !{!24, !18, i64 16}
!30 = !{!14, !14, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!12, !14, i64 80}
!34 = distinct !{!34, !32}
!35 = distinct !{!35, !32}


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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl7sasinitElPNS_10sactivesetEPNS_8ae_stateE(i64 noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  store i64 %0, ptr %1, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %1, i64 8
  store i64 0, ptr %4, align 8, !tbaa !17
  %5 = getelementptr inbounds i8, ptr %1, i64 617
  store i8 1, ptr %5, align 1, !tbaa !18
  %6 = getelementptr inbounds i8, ptr %1, i64 960
  %7 = getelementptr inbounds i8, ptr %1, i64 752
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %6, i8 0, i64 16, i1 false)
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %0, ptr noundef %2)
  %8 = getelementptr inbounds i8, ptr %1, i64 624
  tail call void @_ZN11alglib_impl23bvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %0, ptr noundef %2)
  %9 = getelementptr inbounds i8, ptr %1, i64 816
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %0, ptr noundef %2)
  %10 = getelementptr inbounds i8, ptr %1, i64 688
  tail call void @_ZN11alglib_impl23bvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %0, ptr noundef %2)
  %.not.not60 = icmp sgt i64 %0, 0
  br i1 %.not.not60, label %.lr.ph, label %._crit_edge66.thread.critedge

.lr.ph:                                           ; preds = %3
  %11 = getelementptr inbounds i8, ptr %2, i64 24
  %12 = getelementptr inbounds i8, ptr %1, i64 808
  %13 = getelementptr inbounds i8, ptr %2, i64 16
  %14 = getelementptr inbounds i8, ptr %1, i64 872
  %15 = getelementptr inbounds i8, ptr %1, i64 680
  %16 = getelementptr inbounds i8, ptr %1, i64 744
  br label %17

17:                                               ; preds = %.lr.ph, %17
  %.061 = phi i64 [ 0, %.lr.ph ], [ %28, %17 ]
  %18 = load double, ptr %11, align 8, !tbaa !19
  %19 = load ptr, ptr %12, align 8, !tbaa !23
  %20 = getelementptr inbounds double, ptr %19, i64 %.061
  store double %18, ptr %20, align 8, !tbaa !24
  %21 = load double, ptr %13, align 8, !tbaa !25
  %22 = load ptr, ptr %14, align 8, !tbaa !23
  %23 = getelementptr inbounds double, ptr %22, i64 %.061
  store double %21, ptr %23, align 8, !tbaa !24
  %24 = load ptr, ptr %15, align 8, !tbaa !23
  %25 = getelementptr inbounds i8, ptr %24, i64 %.061
  store i8 0, ptr %25, align 1, !tbaa !26
  %26 = load ptr, ptr %16, align 8, !tbaa !23
  %27 = getelementptr inbounds i8, ptr %26, i64 %.061
  store i8 0, ptr %27, align 1, !tbaa !26
  %28 = add nuw nsw i64 %.061, 1
  %exitcond.not = icmp eq i64 %28, %0
  br i1 %exitcond.not, label %._crit_edge, label %17, !llvm.loop !27

._crit_edge:                                      ; preds = %17
  %29 = getelementptr inbounds i8, ptr %1, i64 80
  store i8 0, ptr %29, align 8, !tbaa !29
  %30 = getelementptr inbounds i8, ptr %1, i64 16
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %30, i64 noundef %0, ptr noundef %2)
  %31 = getelementptr inbounds i8, ptr %1, i64 88
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %31, i64 noundef %0, ptr noundef %2)
  %32 = getelementptr inbounds i8, ptr %1, i64 152
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %32, i64 noundef %0, ptr noundef %2)
  br i1 %.not.not60, label %.lr.ph65, label %._crit_edge66.thread

._crit_edge66.thread.critedge:                    ; preds = %3
  %33 = getelementptr inbounds i8, ptr %1, i64 80
  store i8 0, ptr %33, align 8, !tbaa !29
  %34 = getelementptr inbounds i8, ptr %1, i64 16
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %34, i64 noundef %0, ptr noundef %2)
  %35 = getelementptr inbounds i8, ptr %1, i64 88
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %35, i64 noundef %0, ptr noundef %2)
  %36 = getelementptr inbounds i8, ptr %1, i64 152
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %36, i64 noundef %0, ptr noundef %2)
  br label %._crit_edge66.thread

._crit_edge66.thread:                             ; preds = %._crit_edge66.thread.critedge, %._crit_edge
  %37 = getelementptr inbounds i8, ptr %1, i64 1296
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %37, i64 noundef %0, ptr noundef %2)
  br label %._crit_edge71

.lr.ph65:                                         ; preds = %._crit_edge
  %38 = getelementptr inbounds i8, ptr %1, i64 72
  %39 = getelementptr inbounds i8, ptr %1, i64 144
  %40 = getelementptr inbounds i8, ptr %1, i64 208
  %xtraiter = and i64 %0, 1
  %41 = icmp eq i64 %0, 1
  br i1 %41, label %._crit_edge66.unr-lcssa, label %.lr.ph65.new

.lr.ph65.new:                                     ; preds = %.lr.ph65
  %unroll_iter = and i64 %0, 9223372036854775806
  br label %42

42:                                               ; preds = %42, %.lr.ph65.new
  %.163 = phi i64 [ 0, %.lr.ph65.new ], [ %56, %42 ]
  %niter = phi i64 [ 0, %.lr.ph65.new ], [ %niter.next.1, %42 ]
  %43 = load ptr, ptr %38, align 8, !tbaa !23
  %44 = getelementptr inbounds double, ptr %43, i64 %.163
  store double 0.000000e+00, ptr %44, align 8, !tbaa !24
  %45 = load ptr, ptr %39, align 8, !tbaa !23
  %46 = getelementptr inbounds double, ptr %45, i64 %.163
  store double 1.000000e+00, ptr %46, align 8, !tbaa !24
  %47 = load ptr, ptr %40, align 8, !tbaa !23
  %48 = getelementptr inbounds double, ptr %47, i64 %.163
  store double 1.000000e+00, ptr %48, align 8, !tbaa !24
  %49 = or disjoint i64 %.163, 1
  %50 = load ptr, ptr %38, align 8, !tbaa !23
  %51 = getelementptr inbounds double, ptr %50, i64 %49
  store double 0.000000e+00, ptr %51, align 8, !tbaa !24
  %52 = load ptr, ptr %39, align 8, !tbaa !23
  %53 = getelementptr inbounds double, ptr %52, i64 %49
  store double 1.000000e+00, ptr %53, align 8, !tbaa !24
  %54 = load ptr, ptr %40, align 8, !tbaa !23
  %55 = getelementptr inbounds double, ptr %54, i64 %49
  store double 1.000000e+00, ptr %55, align 8, !tbaa !24
  %56 = add nuw nsw i64 %.163, 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_edge66.unr-lcssa, label %42, !llvm.loop !30

._crit_edge66.unr-lcssa:                          ; preds = %42, %.lr.ph65
  %.163.unr = phi i64 [ 0, %.lr.ph65 ], [ %56, %42 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge66, label %._crit_edge66.epilog-lcssa

._crit_edge66.epilog-lcssa:                       ; preds = %._crit_edge66.unr-lcssa
  %57 = load ptr, ptr %38, align 8, !tbaa !23
  %58 = getelementptr inbounds double, ptr %57, i64 %.163.unr
  store double 0.000000e+00, ptr %58, align 8, !tbaa !24
  %59 = load ptr, ptr %39, align 8, !tbaa !23
  %60 = getelementptr inbounds double, ptr %59, i64 %.163.unr
  store double 1.000000e+00, ptr %60, align 8, !tbaa !24
  %61 = load ptr, ptr %40, align 8, !tbaa !23
  %62 = getelementptr inbounds double, ptr %61, i64 %.163.unr
  store double 1.000000e+00, ptr %62, align 8, !tbaa !24
  br label %._crit_edge66

._crit_edge66:                                    ; preds = %._crit_edge66.unr-lcssa, %._crit_edge66.epilog-lcssa
  %63 = getelementptr inbounds i8, ptr %1, i64 1296
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %63, i64 noundef %0, ptr noundef %2)
  br i1 %.not.not60, label %.lr.ph70, label %._crit_edge71

.lr.ph70:                                         ; preds = %._crit_edge66
  %64 = getelementptr inbounds i8, ptr %1, i64 1352
  %xtraiter75 = and i64 %0, 3
  %65 = icmp ult i64 %0, 4
  br i1 %65, label %._crit_edge71.loopexit.unr-lcssa, label %.lr.ph70.new

.lr.ph70.new:                                     ; preds = %.lr.ph70
  %unroll_iter77 = and i64 %0, 9223372036854775804
  br label %66

66:                                               ; preds = %66, %.lr.ph70.new
  %.268 = phi i64 [ 0, %.lr.ph70.new ], [ %78, %66 ]
  %niter78 = phi i64 [ 0, %.lr.ph70.new ], [ %niter78.next.3, %66 ]
  %67 = load ptr, ptr %64, align 8, !tbaa !23
  %68 = getelementptr inbounds double, ptr %67, i64 %.268
  store double 1.000000e+00, ptr %68, align 8, !tbaa !24
  %69 = or disjoint i64 %.268, 1
  %70 = load ptr, ptr %64, align 8, !tbaa !23
  %71 = getelementptr inbounds double, ptr %70, i64 %69
  store double 1.000000e+00, ptr %71, align 8, !tbaa !24
  %72 = or disjoint i64 %.268, 2
  %73 = load ptr, ptr %64, align 8, !tbaa !23
  %74 = getelementptr inbounds double, ptr %73, i64 %72
  store double 1.000000e+00, ptr %74, align 8, !tbaa !24
  %75 = or disjoint i64 %.268, 3
  %76 = load ptr, ptr %64, align 8, !tbaa !23
  %77 = getelementptr inbounds double, ptr %76, i64 %75
  store double 1.000000e+00, ptr %77, align 8, !tbaa !24
  %78 = add nuw nsw i64 %.268, 4
  %niter78.next.3 = add i64 %niter78, 4
  %niter78.ncmp.3 = icmp eq i64 %niter78.next.3, %unroll_iter77
  br i1 %niter78.ncmp.3, label %._crit_edge71.loopexit.unr-lcssa, label %66, !llvm.loop !31

._crit_edge71.loopexit.unr-lcssa:                 ; preds = %66, %.lr.ph70
  %.268.unr = phi i64 [ 0, %.lr.ph70 ], [ %78, %66 ]
  %lcmp.mod76.not = icmp eq i64 %xtraiter75, 0
  br i1 %lcmp.mod76.not, label %._crit_edge71, label %.epil.preheader74

.epil.preheader74:                                ; preds = %._crit_edge71.loopexit.unr-lcssa, %.epil.preheader74
  %.268.epil = phi i64 [ %81, %.epil.preheader74 ], [ %.268.unr, %._crit_edge71.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader74 ], [ 0, %._crit_edge71.loopexit.unr-lcssa ]
  %79 = load ptr, ptr %64, align 8, !tbaa !23
  %80 = getelementptr inbounds double, ptr %79, i64 %.268.epil
  store double 1.000000e+00, ptr %80, align 8, !tbaa !24
  %81 = add nuw nsw i64 %.268.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter75
  br i1 %epil.iter.cmp.not, label %._crit_edge71, label %.epil.preheader74, !llvm.loop !32

._crit_edge71:                                    ; preds = %._crit_edge71.loopexit.unr-lcssa, %.epil.preheader74, %._crit_edge66.thread, %._crit_edge66
  ret void
}

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

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" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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_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 8}
!18 = !{!6, !11, i64 617}
!19 = !{!20, !16, i64 24}
!20 = !{!"_ZTSN11alglib_impl8ae_stateE", !7, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !13, i64 32, !12, i64 40, !13, i64 72, !21, i64 80, !13, i64 88, !22, i64 96, !13, i64 104, !13, i64 112, !13, i64 120}
!21 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !8, i64 0}
!22 = !{!"long long", !8, i64 0}
!23 = !{!8, !8, i64 0}
!24 = !{!16, !16, i64 0}
!25 = !{!20, !16, i64 16}
!26 = !{!11, !11, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!6, !11, i64 80}
!30 = distinct !{!30, !28}
!31 = distinct !{!31, !28}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.unroll.disable"}


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