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

@.str.118 = external hidden unnamed_addr constant [32 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_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl6cqmadxEPNS_20convexquadraticmodelEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, 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
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = getelementptr inbounds %"struct.alglib_impl::convexquadraticmodel", ptr %11, i32 0, i32 0
  %13 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %13, ptr %9, align 8, !tbaa !17
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = load i64, ptr %9, align 8, !tbaa !17
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  %17 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %14, i64 noundef %15, ptr noundef %16)
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef @.str.118, ptr noundef %18)
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = load i64, ptr %9, align 8, !tbaa !17
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %20, ptr noundef %21)
  store i64 0, ptr %10, align 8, !tbaa !17
  br label %22

22:                                               ; preds = %33, %4
  %23 = load i64, ptr %10, align 8, !tbaa !17
  %24 = load i64, ptr %9, align 8, !tbaa !17
  %25 = sub nsw i64 %24, 1
  %26 = icmp sle i64 %23, %25
  br i1 %26, label %27, label %36

27:                                               ; preds = %22
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %30 = load ptr, ptr %29, align 8, !tbaa !18
  %31 = load i64, ptr %10, align 8, !tbaa !17
  %32 = getelementptr inbounds double, ptr %30, i64 %31
  store double 0.000000e+00, ptr %32, align 8, !tbaa !19
  br label %33

33:                                               ; preds = %27
  %34 = load i64, ptr %10, align 8, !tbaa !17
  %35 = add nsw i64 %34, 1
  store i64 %35, ptr %10, align 8, !tbaa !17
  br label %22, !llvm.loop !20

36:                                               ; preds = %22
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::convexquadraticmodel", ptr %37, i32 0, i32 2
  %39 = load double, ptr %38, align 8, !tbaa !22
  %40 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %39, double noundef 0.000000e+00)
  br i1 %40, label %41, label %51

41:                                               ; preds = %36
  %42 = load i64, ptr %9, align 8, !tbaa !17
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.alglib_impl::convexquadraticmodel", ptr %43, i32 0, i32 2
  %45 = load double, ptr %44, align 8, !tbaa !22
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::convexquadraticmodel", ptr %46, i32 0, i32 5
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmatrixsymvEldPNS_9ae_matrixEllbPNS_9ae_vectorEldS3_lPNS_8ae_stateE(i64 noundef %42, double noundef %45, ptr noundef %47, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, ptr noundef %48, i64 noundef 0, double noundef 1.000000e+00, ptr noundef %49, i64 noundef 0, ptr noundef %50)
  br label %51

51:                                               ; preds = %41, %36
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::convexquadraticmodel", ptr %52, i32 0, i32 3
  %54 = load double, ptr %53, align 8, !tbaa !23
  %55 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %54, double noundef 0.000000e+00)
  br i1 %55, label %56, label %96

56:                                               ; preds = %51
  store i64 0, ptr %10, align 8, !tbaa !17
  br label %57

57:                                               ; preds = %92, %56
  %58 = load i64, ptr %10, align 8, !tbaa !17
  %59 = load i64, ptr %9, align 8, !tbaa !17
  %60 = sub nsw i64 %59, 1
  %61 = icmp sle i64 %58, %60
  br i1 %61, label %62, label %95

62:                                               ; preds = %57
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %63, i32 0, i32 4
  %65 = load ptr, ptr %64, align 8, !tbaa !18
  %66 = load i64, ptr %10, align 8, !tbaa !17
  %67 = getelementptr inbounds double, ptr %65, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !19
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %69, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !18
  %72 = load i64, ptr %10, align 8, !tbaa !17
  %73 = getelementptr inbounds double, ptr %71, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !19
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::convexquadraticmodel", ptr %75, i32 0, i32 3
  %77 = load double, ptr %76, align 8, !tbaa !23
  %78 = fmul double %74, %77
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::convexquadraticmodel", ptr %79, i32 0, i32 10
  %81 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %80, i32 0, i32 4
  %82 = load ptr, ptr %81, align 8, !tbaa !18
  %83 = load i64, ptr %10, align 8, !tbaa !17
  %84 = getelementptr inbounds double, ptr %82, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !19
  %86 = call double @llvm.fmuladd.f64(double %78, double %85, double %68)
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %87, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !18
  %90 = load i64, ptr %10, align 8, !tbaa !17
  %91 = getelementptr inbounds double, ptr %89, i64 %90
  store double %86, ptr %91, align 8, !tbaa !19
  br label %92

92:                                               ; preds = %62
  %93 = load i64, ptr %10, align 8, !tbaa !17
  %94 = add nsw i64 %93, 1
  store i64 %94, ptr %10, align 8, !tbaa !17
  br label %57, !llvm.loop !24

95:                                               ; preds = %57
  br label %96

96:                                               ; preds = %95, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

declare void @_ZN11alglib_impl11rmatrixsymvEldPNS_9ae_matrixEllbPNS_9ae_vectorEldS3_lPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, ptr noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, ptr noundef) #1

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 }

!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_impl20convexquadraticmodelE", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !13, i64 40, !13, i64 120, !16, i64 200, !16, i64 264, !16, i64 328, !16, i64 392, !16, i64 456, !13, i64 520, !13, i64 600, !16, i64 680, !16, i64 744, !16, i64 808, !12, i64 872, !12, i64 880, !16, i64 888, !16, i64 952, !11, i64 1016, !11, i64 1024, !13, i64 1032, !13, i64 1112, !13, i64 1192, !16, i64 1272, !16, i64 1336, !12, i64 1400, !16, i64 1408, !16, i64 1472, !16, i64 1536, !13, i64 1600, !14, i64 1680, !14, i64 1681, !14, i64 1682, !14, i64 1683}
!11 = !{!"long", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !14, i64 32, !15, i64 40, !7, i64 72}
!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_vectorE", !11, i64 0, !11, i64 8, !14, i64 16, !15, i64 24, !7, i64 56}
!17 = !{!11, !11, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!12, !12, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!10, !12, i64 16}
!23 = !{!10, !12, i64 24}
!24 = distinct !{!24, !21}


; 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.118 = external hidden unnamed_addr constant [32 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_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl6cqmadxEPNS_20convexquadraticmodelEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = load i64, ptr %0, align 8, !tbaa !5
  %6 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %1, i64 noundef %5, ptr noundef %3)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %6, ptr noundef nonnull @.str.118, ptr noundef %3)
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %2, i64 noundef %5, ptr noundef %3)
  %.not.not34 = icmp sgt i64 %5, 0
  br i1 %.not.not34, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %7 = getelementptr inbounds i8, ptr %2, i64 56
  %xtraiter = and i64 %5, 3
  %8 = icmp ult i64 %5, 4
  br i1 %8, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %5, 9223372036854775804
  br label %9

9:                                                ; preds = %9, %.lr.ph.new
  %.035 = phi i64 [ 0, %.lr.ph.new ], [ %21, %9 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %9 ]
  %10 = load ptr, ptr %7, align 8, !tbaa !16
  %11 = getelementptr inbounds double, ptr %10, i64 %.035
  store double 0.000000e+00, ptr %11, align 8, !tbaa !17
  %12 = or disjoint i64 %.035, 1
  %13 = load ptr, ptr %7, align 8, !tbaa !16
  %14 = getelementptr inbounds double, ptr %13, i64 %12
  store double 0.000000e+00, ptr %14, align 8, !tbaa !17
  %15 = or disjoint i64 %.035, 2
  %16 = load ptr, ptr %7, align 8, !tbaa !16
  %17 = getelementptr inbounds double, ptr %16, i64 %15
  store double 0.000000e+00, ptr %17, align 8, !tbaa !17
  %18 = or disjoint i64 %.035, 3
  %19 = load ptr, ptr %7, align 8, !tbaa !16
  %20 = getelementptr inbounds double, ptr %19, i64 %18
  store double 0.000000e+00, ptr %20, align 8, !tbaa !17
  %21 = add nuw nsw i64 %.035, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %9, !llvm.loop !18

._crit_edge.loopexit.unr-lcssa:                   ; preds = %9, %.lr.ph
  %.035.unr = phi i64 [ 0, %.lr.ph ], [ %21, %9 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %.035.epil = phi i64 [ %24, %.epil.preheader ], [ %.035.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %22 = load ptr, ptr %7, align 8, !tbaa !16
  %23 = getelementptr inbounds double, ptr %22, i64 %.035.epil
  store double 0.000000e+00, ptr %23, align 8, !tbaa !17
  %24 = add nuw nsw i64 %.035.epil, 1
  %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 %._crit_edge, label %.epil.preheader, !llvm.loop !20

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %4
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = load double, ptr %25, align 8, !tbaa !22
  %27 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %26, double noundef 0.000000e+00)
  br i1 %27, label %28, label %31

28:                                               ; preds = %._crit_edge
  %29 = load double, ptr %25, align 8, !tbaa !22
  %30 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZN11alglib_impl11rmatrixsymvEldPNS_9ae_matrixEllbPNS_9ae_vectorEldS3_lPNS_8ae_stateE(i64 noundef %5, double noundef %29, ptr noundef nonnull %30, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, ptr noundef %1, i64 noundef 0, double noundef 1.000000e+00, ptr noundef %2, i64 noundef 0, ptr noundef %3)
  br label %31

31:                                               ; preds = %28, %._crit_edge
  %32 = getelementptr inbounds i8, ptr %0, i64 24
  %33 = load double, ptr %32, align 8, !tbaa !23
  %34 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %33, double noundef 0.000000e+00)
  %or.cond = and i1 %34, %.not.not34
  br i1 %or.cond, label %.lr.ph38, label %.loopexit

.lr.ph38:                                         ; preds = %31
  %35 = getelementptr inbounds i8, ptr %2, i64 56
  %36 = getelementptr inbounds i8, ptr %1, i64 56
  %37 = getelementptr inbounds i8, ptr %0, i64 448
  %xtraiter41 = and i64 %5, 1
  %38 = icmp eq i64 %5, 1
  br i1 %38, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph38.new

.lr.ph38.new:                                     ; preds = %.lr.ph38
  %unroll_iter44 = and i64 %5, 9223372036854775806
  br label %39

39:                                               ; preds = %39, %.lr.ph38.new
  %.137 = phi i64 [ 0, %.lr.ph38.new ], [ %65, %39 ]
  %niter45 = phi i64 [ 0, %.lr.ph38.new ], [ %niter45.next.1, %39 ]
  %40 = load ptr, ptr %35, align 8, !tbaa !16
  %41 = getelementptr inbounds double, ptr %40, i64 %.137
  %42 = load double, ptr %41, align 8, !tbaa !17
  %43 = load ptr, ptr %36, align 8, !tbaa !16
  %44 = getelementptr inbounds double, ptr %43, i64 %.137
  %45 = load double, ptr %44, align 8, !tbaa !17
  %46 = load double, ptr %32, align 8, !tbaa !23
  %47 = fmul double %45, %46
  %48 = load ptr, ptr %37, align 8, !tbaa !16
  %49 = getelementptr inbounds double, ptr %48, i64 %.137
  %50 = load double, ptr %49, align 8, !tbaa !17
  %51 = tail call double @llvm.fmuladd.f64(double %47, double %50, double %42)
  store double %51, ptr %41, align 8, !tbaa !17
  %52 = or disjoint i64 %.137, 1
  %53 = load ptr, ptr %35, align 8, !tbaa !16
  %54 = getelementptr inbounds double, ptr %53, i64 %52
  %55 = load double, ptr %54, align 8, !tbaa !17
  %56 = load ptr, ptr %36, align 8, !tbaa !16
  %57 = getelementptr inbounds double, ptr %56, i64 %52
  %58 = load double, ptr %57, align 8, !tbaa !17
  %59 = load double, ptr %32, align 8, !tbaa !23
  %60 = fmul double %58, %59
  %61 = load ptr, ptr %37, align 8, !tbaa !16
  %62 = getelementptr inbounds double, ptr %61, i64 %52
  %63 = load double, ptr %62, align 8, !tbaa !17
  %64 = tail call double @llvm.fmuladd.f64(double %60, double %63, double %55)
  store double %64, ptr %54, align 8, !tbaa !17
  %65 = add nuw nsw i64 %.137, 2
  %niter45.next.1 = add i64 %niter45, 2
  %niter45.ncmp.1 = icmp eq i64 %niter45.next.1, %unroll_iter44
  br i1 %niter45.ncmp.1, label %.loopexit.loopexit.unr-lcssa, label %39, !llvm.loop !24

.loopexit.loopexit.unr-lcssa:                     ; preds = %39, %.lr.ph38
  %.137.unr = phi i64 [ 0, %.lr.ph38 ], [ %65, %39 ]
  %lcmp.mod43.not = icmp eq i64 %xtraiter41, 0
  br i1 %lcmp.mod43.not, label %.loopexit, label %.loopexit.loopexit.epilog-lcssa

.loopexit.loopexit.epilog-lcssa:                  ; preds = %.loopexit.loopexit.unr-lcssa
  %66 = load ptr, ptr %35, align 8, !tbaa !16
  %67 = getelementptr inbounds double, ptr %66, i64 %.137.unr
  %68 = load double, ptr %67, align 8, !tbaa !17
  %69 = load ptr, ptr %36, align 8, !tbaa !16
  %70 = getelementptr inbounds double, ptr %69, i64 %.137.unr
  %71 = load double, ptr %70, align 8, !tbaa !17
  %72 = load double, ptr %32, align 8, !tbaa !23
  %73 = fmul double %71, %72
  %74 = load ptr, ptr %37, align 8, !tbaa !16
  %75 = getelementptr inbounds double, ptr %74, i64 %.137.unr
  %76 = load double, ptr %75, align 8, !tbaa !17
  %77 = tail call double @llvm.fmuladd.f64(double %73, double %76, double %68)
  store double %77, ptr %67, align 8, !tbaa !17
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit.epilog-lcssa, %.loopexit.loopexit.unr-lcssa, %31
  ret void
}

declare void @_ZN11alglib_impl11rmatrixsymvEldPNS_9ae_matrixEllbPNS_9ae_vectorEldS3_lPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, ptr noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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" }

!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_impl20convexquadraticmodelE", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !11, i64 40, !11, i64 120, !15, i64 200, !15, i64 264, !15, i64 328, !15, i64 392, !15, i64 456, !11, i64 520, !11, i64 600, !15, i64 680, !15, i64 744, !15, i64 808, !10, i64 872, !10, i64 880, !15, i64 888, !15, i64 952, !7, i64 1016, !7, i64 1024, !11, i64 1032, !11, i64 1112, !11, i64 1192, !15, i64 1272, !15, i64 1336, !10, i64 1400, !15, i64 1408, !15, i64 1472, !15, i64 1536, !11, i64 1600, !12, i64 1680, !12, i64 1681, !12, i64 1682, !12, i64 1683}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !12, i64 32, !13, i64 40, !8, i64 72}
!12 = !{!"bool", !8, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !12, i64 16, !13, i64 24, !8, i64 56}
!16 = !{!8, !8, i64 0}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = !{!6, !10, i64 16}
!23 = !{!6, !10, i64 24}
!24 = distinct !{!24, !19}


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